drm/i915: execbuf2 support
authorJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 18 Dec 2009 03:05:42 +0000 (22:05 -0500)
committerEric Anholt <eric@anholt.net>
Wed, 6 Jan 2010 17:39:39 +0000 (09:39 -0800)
commit76446cac68568fc7f5168a27deaf803ed22a4360
tree66e05e6932edd763d75fc7be7c20d4593fe2b35f
parentc566ec49159b806db95a90fd8f37448376cd0ad2
drm/i915: execbuf2 support

This patch adds a new execbuf ioctl, execbuf2, for use by clients that
want to control fence register allocation more finely.  The buffer
passed in to the new ioctl includes a new relocation type to indicate
whether a given object needs a fence register assigned for the command
buffer in question.

Compatibility with the existing execbuf ioctl is implemented in terms
of the new code, preserving the assumption that fence registers are
required for pre-965 rendering commands.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
[ickle: Remove pre-emptive clear_fence_reg()]
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
[anholt: Removed dmesg spam]
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_tiling.c
include/drm/i915_drm.h