]> Gentwo Git Trees - linux/.git/commit
drm/vkms: Add enumerated 1D curve colorop
authorHarry Wentland <harry.wentland@amd.com>
Sat, 15 Nov 2025 00:01:40 +0000 (17:01 -0700)
committerSimon Ser <contact@emersion.fr>
Wed, 26 Nov 2025 22:03:33 +0000 (23:03 +0100)
commitc1e578bd08da79f3bd877faa82e9197ccd3ecd57
treefe494346c534b363e4a5a8a4a623fdfcd6d5175c
parent08b651cad289a789256167a96fe637ab08e0955c
drm/vkms: Add enumerated 1D curve colorop

This patch introduces a VKMS color pipeline that includes two
drm_colorops for named transfer functions. For now the only ones
supported are sRGB EOTF, sRGB Inverse EOTF, and a Linear TF.
We will expand this in the future but I don't want to do so
without accompanying IGT tests.

We introduce a new vkms_luts.c file that hard-codes sRGB EOTF,
sRGB Inverse EOTF, and a linear EOTF LUT. These have been
generated with 256 entries each as IGT is currently testing
only 8 bpc surfaces. We will likely need higher precision
but I'm reluctant to make that change without clear indication
that we need it. We'll revisit and, if necessary, regenerate
the LUTs when we have IGT tests for higher precision buffers.

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Louis Chauvet <louis.chauvet@bootlin.com>
Signed-off-by: Simon Ser <contact@emersion.fr>
Link: https://patch.msgid.link/20251115000237.3561250-16-alex.hung@amd.com
drivers/gpu/drm/vkms/Makefile
drivers/gpu/drm/vkms/vkms_colorop.c [new file with mode: 0644]
drivers/gpu/drm/vkms/vkms_composer.c
drivers/gpu/drm/vkms/vkms_drv.c
drivers/gpu/drm/vkms/vkms_drv.h
drivers/gpu/drm/vkms/vkms_luts.c [new file with mode: 0644]
drivers/gpu/drm/vkms/vkms_luts.h [new file with mode: 0644]
drivers/gpu/drm/vkms/vkms_plane.c