drm/i915: move a gtt flush to the correct place
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 1 Feb 2010 12:59:16 +0000 (13:59 +0100)
committerEric Anholt <eric@anholt.net>
Mon, 22 Feb 2010 16:54:41 +0000 (11:54 -0500)
commit4a7266123fce399f695b62b7f87b467b317f1487
treed3341f3552d1c78069c88af26762f49ae7a3ff19
parentaf86d4b0f064413d2f353a41cdc23b7dbff0823d
drm/i915: move a gtt flush to the correct place

No functional change, because gtt flushing is a no-op. Still, try
to keep the bookkeeping accurate. The if is still slightly wrong
for with execbuf2 even i915-class hw doesn't always need a fence
reg for gpu access. But that's for somewhen lateron.

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