]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Kill DRI1 cliprects
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 6 Oct 2015 10:39:55 +0000 (11:39 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 7 Oct 2015 14:05:41 +0000 (16:05 +0200)
commitbd6e298432ad5a4925078e512bd3fa97fffc5b36
tree7c9c38b1c828d586ddfc44951a5e62aa35750698
parent59d4095098849c32f4cc04db5afc90826403b048
drm/i915: Kill DRI1 cliprects

Passing cliprects into the kernel for it to re-execute the batch buffer
with different CMD_DRAWRECT died out long ago. As DRI1 support has been
removed from the kernel, we can now simply reject any execbuf trying to
use this "feature".

To keep Daniel happy with the prospect of being able to reuse these
fields in the next decade, continue to ensure that current userspace is
not passing garbage in through the dead fields.

v2: Fix the cliprects_ptr check

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Dave Gordon <david.s.gordon@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_execbuffer.c
drivers/gpu/drm/i915/intel_lrc.c