]> Gentwo Git Trees - linux/.git/commit
drm/i915/color: Create a transfer function color pipeline
authorChaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
Wed, 3 Dec 2025 08:52:00 +0000 (14:22 +0530)
committerJani Nikula <jani.nikula@intel.com>
Thu, 4 Dec 2025 17:43:46 +0000 (19:43 +0200)
commitef105316819d448630b83044fa83ba12905d9086
tree07abecd4d8908abeb229ea799ecf929adf223fe4
parent730df5065ee9d64f972159995832ab1a5626bd4e
drm/i915/color: Create a transfer function color pipeline

Add a color pipeline with three colorops in the sequence

        1D LUT - 3x4 CTM - 1D LUT

This pipeline can be used to do any color space conversion or HDR
tone mapping

v2: Change namespace to drm_plane_colorop*
v3: Use simpler/pre-existing colorops for first iteration
v4:
 - s/*_tf_*/*_color_* (Jani)
 - Refactor to separate files (Jani)
 - Add missing space in comment (Suraj)
 - Consolidate patch that adds/attaches pipeline property
v5:
 - Limit MAX_COLOR_PIPELINES to 2.(Suraj)
Increase it as and when we add more pipelines.
 - Remove redundant initialization code (Suraj)
v6:
 - Use drm_plane_create_color_pipeline_property() (Arun)
Now MAX_COLOR_PIPELINES is 1

Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
Link: https://patch.msgid.link/20251203085211.3663374-5-uma.shankar@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/display/intel_color_pipeline.c [new file with mode: 0644]
drivers/gpu/drm/i915/display/intel_color_pipeline.h [new file with mode: 0644]
drivers/gpu/drm/xe/Makefile