]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf721cbcf6180bc42782ef9c22c94d23a5689f977
tree66e05e6932edd763d75fc7be7c20d4593fe2b35f
parent1a79e0d0061ce7f7a361a53c3e90975f4a9fd8e5
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