Re: [PATCH v2 09/12] drm/vkms: add support to non-uniform LUT for internal color curves
From: Louis Chauvet
Date: Wed Nov 25 2026 - 10:47:22 EST
On 11/6/26 21:18, Leandro Ribeiro wrote:
This extends VKMS internal LUT implementation, allowing it to representReviewed-by: Louis Chauvet <louis.chauvet@xxxxxxxxxxx>
non-uniform LUTs.
Such LUTs have the X axis. LUTs that come from userspace (gamma LUT) are
always uniform, so they don't have a X axis.
Note: vkms_color_srgb_inv_srgb() error tolerance reduced from 1/255 to
119/65535 ~= 0.46/255. Before this patch, the test compared the results
after quantizing them to 8-bit precision, while the updated test
compares directly in 16-bit. The LUT precision does not change with this
patch.
Reviewed-by: Robert Mader <robert.mader@xxxxxxxxxxxxx>
Tested-by: Robert Mader <robert.mader@xxxxxxxxxxxxx>
Signed-off-by: Leandro Ribeiro <leandro.ribeiro@xxxxxxxxxxxxx>