SDR planes provides programmable color hardware blocks for
Pre-CSC and Post-CSC operations. Add a color pipeline to
expose these capabilities.

Co-developed-by: Chaitanya Kumar Borah <chaitanya.kumar.bo...@intel.com>
Signed-off-by: Chaitanya Kumar Borah <chaitanya.kumar.bo...@intel.com>
Signed-off-by: Uma Shankar <uma.shan...@intel.com>
---
 drivers/gpu/drm/i915/display/intel_color.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/drivers/gpu/drm/i915/display/intel_color.c 
b/drivers/gpu/drm/i915/display/intel_color.c
index 8c2a858fc452..09e50659befd 100644
--- a/drivers/gpu/drm/i915/display/intel_color.c
+++ b/drivers/gpu/drm/i915/display/intel_color.c
@@ -3941,6 +3941,23 @@ static const struct drm_color_lut_range 
xelpd_post_csc_hdr[] = {
        },
 };
 
+struct drm_color_op color_pipeline_sdr[] = {
+       {
+               .name = DRM_CB_PRE_CSC,
+               .type = CURVE_1D,
+               .blob_id = 0, /* To be updated during plane initialization */
+       },
+       /*
+        * SDR planes have fixed function CSC capabilities.
+        * TODO: Add support for it
+        */
+       {
+               .name = DRM_CB_POST_CSC,
+               .type = CURVE_1D,
+               .blob_id = 0,
+       },
+};
+
 struct drm_color_op color_pipeline_hdr[] = {
        {
                .name = DRM_CB_PRE_CSC,
-- 
2.38.1

Reply via email to