]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerSasha Levin <sasha.levin@oracle.com>
Thu, 23 Apr 2015 18:58:20 +0000 (14:58 -0400)
commit19f2e4b1c2dbf24ba0c2cb7e36476fe2a9f3c0b0
tree5373a39ca0472f512a9b3f98d53f1171645e0531
parented40507c15a3c67d51d38970717f53e22ecb1e42
drm/i915: Reject the colorkey ioctls for primary and cursor planes

[ Upstream commit 840a1cf0cd533f30da792527ca5ff6a023d4a727 ]

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>
Cc: stable@vger.kernel.org
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: Sasha Levin <sasha.levin@oracle.com>
drivers/gpu/drm/i915/intel_sprite.c