Re: [PATCH v2 12/12] drm/vkms: replace uniform sRGB LUT and its inverse with optimal ones

From: Louis Chauvet

Date: Wed Nov 25 2026 - 10:51:35 EST




On 11/6/26 21:18, Leandro Ribeiro wrote:
This uses the script added in "drm/vkms: add script to create optimized
LUTs for color curves" to produce optimized LUTs for sRGB and its
inverse.

The LUTs are non-uniform and have more taps where it matters (areas with
high slope), decreasing the error they produce.
vkms_color_srgb_inv_srgb() error tolerance dropped from 122/65535 to
11/65535.

Reviewed-by: Robert Mader <robert.mader@xxxxxxxxxxxxx>
Tested-by: Robert Mader <robert.mader@xxxxxxxxxxxxx>
Signed-off-by: Leandro Ribeiro <leandro.ribeiro@xxxxxxxxxxxxx>
Reviewed-by: Louis Chauvet <louis.chauvet@xxxxxxxxxxx>