]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix overlay colorkey for 30bpp and 8bpp
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 28 Oct 2019 11:30:33 +0000 (13:30 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 15 May 2020 17:08:56 +0000 (20:08 +0300)
commit0e12b4e31f0e34e19327e3958ee2b1c0f0d4d5b9
treecf6169eecd95878d08aa5fbe3c9077343535f019
parent5e9e0a3a3be7cf51f80327c069a8706cb59d0c24
drm/i915: Fix overlay colorkey for 30bpp and 8bpp

As with the video sprites the colorkey is always specified
as 8bpc. For 10bpc primary plane formats we just ignore the
two lsbs of each component. For C8 we'll replicate the same
key to each chanel, which is what the hardware wants.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191028113036.27553-3-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/display/intel_overlay.c