drm/i915: Reject the colorkey ioctls for primary and cursor planes
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 27 Mar 2015 17:59:40 +0000 (19:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Apr 2015 08:10:13 +0000 (10:10 +0200)
commitf2d95aebb650ca307749c06d8cf97a1ad358d13d
treef9e2b4ae627df304739a3a82bed2d174bd794208
parent4b62528ff6abee768b458babacca5ae5e71c3442
drm/i915: Reject the colorkey ioctls for primary and cursor planes

commit 840a1cf0cd533f30da792527ca5ff6a023d4a727 upstream.

The legcy colorkey ioctls are only implemented for sprite planes, so
reject the ioctl for primary/cursor planes. If we want to support
colorkeying with these planes (assuming we have hw support of course)
we should just move ahead with the colorkey property conversion.

Testcase: kms_legacy_colorkey
Cc: Tommi Rantala <tt.rantala@gmail.com>
Reference: http://mid.gmane.org/CA+ydwtr+bCo7LJ44JFmUkVRx144UDFgOS+aJTfK6KHtvBDVuAw@mail.gmail.com
Reported-and-tested-by: Tommi Rantala <tt.rantala@gmail.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/intel_sprite.c