The vkms plane pipeline has a fixed matrix, two 1D curves and two 3x4 matrices. Userspace cannot supply its own LUT, do a 3D lookup, or apply a gain to the channels.
Patches 1 to 3 fix three bugs in the pipeline plumbing. Patches 4 to 6 add a 1D LUT, a 3D LUT and a multiplier. Patch 7 adds KUnit coverage for the 3D LUT and the multiplier; the 1D LUT gets its coverage in patch 4. The color math has KUnit coverage; there is no IGT test for the color pipeline yet, so the uAPI paths are not exercised end-to-end. The three new colorops are appended after the existing ones; their order is unchanged. --- Changes in v2: - Use 64-bit division helpers in the LUT code for 32-bit builds. - Compute the 3D LUT cell once per pixel. - Record the colorop states at atomic_check(), before swap_state(). - Only clean up colorops that were actually linked. - Link to v1: https://patch.msgid.link/[email protected] --- Oarora Etimis (7): drm/vkms: add the colorops of a plane that is being enabled drm/vkms: free the colorop whose initialization failed drm/vkms: use the colorop states of the state being composed drm/vkms: add a programmable 1D LUT colorop drm/vkms: add a 3D LUT colorop drm/vkms: add a multiplier colorop drm/vkms: add KUnit coverage for the 3D LUT and multiplier colorops drivers/gpu/drm/vkms/tests/vkms_color_test.c | 194 ++++++++++++++++ drivers/gpu/drm/vkms/vkms_colorop.c | 73 +++++- drivers/gpu/drm/vkms/vkms_composer.c | 327 +++++++++++++++++++++++---- drivers/gpu/drm/vkms/vkms_composer.h | 5 + drivers/gpu/drm/vkms/vkms_crtc.c | 60 ++++- drivers/gpu/drm/vkms/vkms_drv.h | 61 +++++ drivers/gpu/drm/vkms/vkms_plane.c | 2 + 7 files changed, 669 insertions(+), 53 deletions(-) --- base-commit: 5ce32a0c94a827ff44ee60898c28060714dcff75 change-id: 20261113-colorop-693f016a156d Best regards, -- Oarora Etimis <[email protected]>
