drm/i915: only one interrupt per batchbuffer is not enough!
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 2 Feb 2010 16:08:37 +0000 (17:08 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 2 Mar 2010 22:52:30 +0000 (23:52 +0100)
commitc3a3f331d514bf5bdf3d324814f3cdf04ea50309
tree9694efc757e1218e507bebe52239f39b0ca38b1f
parent6feb1cb3da83ee2190d45acf5922fd7361f18f9f
drm/i915: only one interrupt per batchbuffer is not enough!

Previously I thought that one interrupt per batchbuffer should be
enough. Now tedious benchmarking showed this to be wrong.

Therefore track whether any commands have been isssued with a future
seqno (like pipelined fencing changes or flushes). If this is the case
emit a request before issueing the batchbuffer.

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