]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Allow disabling the destination colorkey for overlay
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 2 Apr 2015 09:35:08 +0000 (10:35 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 10 Apr 2015 06:55:54 +0000 (08:55 +0200)
commit6b5633463ad51e00c413a660c01aa89de0215da2
tree938172f70c0de3d59b9841a6d60763d9109816a7
parent9eecfca1a4c303a26bdfb09d8dbb52a7b94daf9e
drm/i915: Allow disabling the destination colorkey for overlay

Sometimes userspace wants a true overlay that is never clipped. In such
cases, we need to disable the destination colorkey. However, it is
currently unconditionally enabled in the overlay with no means of
disabling. So rectify that by always default to on, and extending the
UPDATE_ATTR ioctl to support explicit disabling of the colorkey.

This is contrast to the spite code which requires explicit enabling of
either the destination or source colorkey. Handling source colorkey is
still todo for the overlay. (Of course it may be worth migrating overlay
to sprite before then.)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_overlay.c
include/uapi/drm/i915_drm.h