drm/i915: support two CSC module on gen11 and later
authorLee Shawn C <shawn.c.lee@intel.com>
Mon, 18 Jan 2021 02:27:53 +0000 (10:27 +0800)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 18 Jan 2021 14:55:28 +0000 (16:55 +0200)
commit0aa5c3835c8ad34034d53a71ab047e5e614e704e
tree179c1d26aa267ac112f404bfccfbc20d0307a994
parentba217b77772a16ad93c8534121b4859e731db384
drm/i915: support two CSC module on gen11 and later

There are two CSC on pipeline on gen11 and later platform.
User space application is allowed to enable CTM and RGB
to YCbCr coversion at the same time now.

v2: check csc capability in {}_color_check function.
v3: can't support two CSC at the same time in {ivb,glk}_color_check.

Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Cc: Imre Deak <imre.deak@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Cooper Chiou <cooper.chiou@intel.com>
Cc: Shankar Uma <uma.shankar@intel.com>
Signed-off-by: Lee Shawn C <shawn.c.lee@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210118022753.8798-1-shawn.c.lee@intel.com
drivers/gpu/drm/i915/display/intel_color.c
drivers/gpu/drm/i915/display/intel_display.c