[PATCH v1 0/4] drm/vkms: Add gamma 2.2 and 2.4 1D curve colorops

From: Robert Mader

Date: Fri Dec 04 2026 - 08:52:55 EST


This series implements two LUTs that are typically used for SDR content and
falls into the context of pre- and post-blend pipelines.

It depends on the first commit of
https://lore.kernel.org/dri-devel/20261119195158.2546927-2-harry.wentland@xxxxxxx/
and is implemented in the following Weston MR:
https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/2157

In that MR the curves are further tested to match the corresponding Weston
GL implementations.

Robert Mader (4):
drm/vkms: Fix inverse lut naming scheme in script
drm/vkms: Make LUT test reusable
drm/vkms: Add support for DRM_COLOROP_1D_CURVE_GAMMA22
drm/vkms: Add support for DRM_COLOROP_1D_CURVE_GAMMA24

.../gpu/drm/vkms/scripts/color-curve-lut.py | 40 +-
drivers/gpu/drm/vkms/tests/vkms_color_test.c | 41 +-
drivers/gpu/drm/vkms/vkms_colorop.c | 6 +-
drivers/gpu/drm/vkms/vkms_composer.c | 26 +
drivers/gpu/drm/vkms/vkms_luts.c | 5798 +++++++++++++++++
drivers/gpu/drm/vkms/vkms_luts.h | 4 +
6 files changed, 5893 insertions(+), 22 deletions(-)

--
2.56.1