]> 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)
commit9868ab1224b5c76011b3fd591629ee71cb151fbc
tree938172f70c0de3d59b9841a6d60763d9109816a7
parentefddb9b2d10b480076af1c5581ba66c0a1a321e8
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