]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915: Allow ICL pipe "HDR mode" when the cursor is visible
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 2 May 2019 20:06:07 +0000 (23:06 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 3 May 2019 16:22:33 +0000 (19:22 +0300)
commitb7ffc4a839a553b07b34543684e79526f2ffecb8
tree0acdb4cb8bc2a333eb3a259e8ccc305db33817e1
parenta832d35762a0b3e3ad1d4ce8e4dc3915056c853b
drm/i915: Allow ICL pipe "HDR mode" when the cursor is visible

Turns out the cursor is compatible with the pipe "HDR mode". It's
only the actual SDR planes that get entirely bypassed during
blending. So let's ignore the cursor when checking if we have
any planes active that aren't HDR compatible. This fixes the
regressions in the kms_cursor_crc and kms_plane_cursor tests.

Cc: Uma Shankar <uma.shankar@intel.com>
Cc: Shashank Sharma <shashank.sharma@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110579
Fixes: 09b25812db10 ("drm/i915: Enable pipe HDR mode on ICL if only HDR planes are used")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190502200607.14504-2-ville.syrjala@linux.intel.com
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
drivers/gpu/drm/i915/intel_display.c