]> nv-tegra.nvidia Code Review - linux-2.6.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)
commit8ea30864229e54b01ac0e9fe88c4b733a940ec4e
tree45d7912ad57216d9e18bef23698d0d099b51cbf2
parent175bd4204e069f8bd855ca3dcf70a78db4410936
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