aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2010-02-01 07:59:16 -0500
committerEric Anholt <eric@anholt.net>2010-02-22 11:54:41 -0500
commit4a7266123fce399f695b62b7f87b467b317f1487 (patch)
treed3341f3552d1c78069c88af26762f49ae7a3ff19
parentaf86d4b0f064413d2f353a41cdc23b7dbff0823d (diff)
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>
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 4a141993a37a..a236bfb30844 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -2552,12 +2552,12 @@ i915_gem_object_put_fence_reg(struct drm_gem_object *obj)
2552 int ret; 2552 int ret;
2553 2553
2554 i915_gem_object_flush_gpu_write_domain(obj); 2554 i915_gem_object_flush_gpu_write_domain(obj);
2555 i915_gem_object_flush_gtt_write_domain(obj);
2556 ret = i915_gem_object_wait_rendering(obj); 2555 ret = i915_gem_object_wait_rendering(obj);
2557 if (ret != 0) 2556 if (ret != 0)
2558 return ret; 2557 return ret;
2559 } 2558 }
2560 2559
2560 i915_gem_object_flush_gtt_write_domain(obj);
2561 i915_gem_clear_fence_reg (obj); 2561 i915_gem_clear_fence_reg (obj);
2562 2562
2563 return 0; 2563 return 0;