]> 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)
commite262fe7094f16db9f761d27802cef68e012a1bb2
treecf6169eecd95878d08aa5fbe3c9077343535f019
parent71cfad4d6e6834c3e7d03224d3b35dfec982a7e0
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