drm/i915: optimize fence-stealing for execbuf2
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 12 Feb 2010 08:36:10 +0000 (09:36 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 2 Mar 2010 22:52:56 +0000 (23:52 +0100)
commitf53578a20825d100ec2879f8af9c68512af043d7
treeb099725857787ffd3f00d90b39846e6390d5fadc
parent462b4215f0451d0d53df576b8dabfd4ceff32fb1
drm/i915: optimize fence-stealing for execbuf2

Only wait for the gpu when the gpu is actually using this fence reg.
This should help with mixed execbuf2/old execbuf userspace in the
face of gtt access (cpu fallbacks).

v2: This was too buggy to describe in words. Fix it.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c