]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: add color key support v4
authorJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 3 Jan 2012 16:05:39 +0000 (08:05 -0800)
committerKeith Packard <keithp@keithp.com>
Tue, 3 Jan 2012 17:31:12 +0000 (09:31 -0800)
commit3c4cc11f6b0a3bbfc070cf6c4330b10f374aeafa
tree45d7912ad57216d9e18bef23698d0d099b51cbf2
parent6020aaabe2e8867e0ea9f32543f488676ae2cbff
drm/i915: add color key support v4

Add new ioctls for getting and setting the current destination color
key.  This allows for simple overlay display control by matching a color
key value in the primary plane before blending the overlay on top.

v2: remove unnecessary mutex acquire/release around reg accesses
v3: add support for full color key management
v4: fix copy & paste bug in snb_get_colorkey
    don't bother checking min/max values against docs as the docs are likely
    wrong (how could we handle 10bpc surface formats?)

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_sprite.c
include/drm/i915_drm.h