Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318763
b: refs/heads/master
c: 09cf7c9
h: refs/heads/master
i:
  318761: 24b091d
  318759: d8bf342
v: v3
  • Loading branch information
Chris Wilson authored and Daniel Vetter committed Jul 20, 2012
1 parent 3ac3583 commit f6e33d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2e6c21ed63af34059009c2ddfa44988d850fca7f
refs/heads/master: 09cf7c9a1299c386525d31305fd50591acf49a9a
9 changes: 7 additions & 2 deletions trunk/drivers/gpu/drm/i915/i915_gem_execbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -885,11 +885,16 @@ i915_gem_execbuffer_move_to_gpu(struct intel_ring_buffer *ring,
return ret;
}

/* Unconditionally invalidate gpu caches. */
ret = i915_gem_flush_ring(ring, I915_GEM_GPU_DOMAINS, 0);
/* Unconditionally invalidate gpu caches and ensure that we do flush
* any residual writes from the previous batch.
*/
ret = i915_gem_flush_ring(ring,
I915_GEM_GPU_DOMAINS,
ring->gpu_caches_dirty ? I915_GEM_GPU_DOMAINS : 0);
if (ret)
return ret;

ring->gpu_caches_dirty = false;
return 0;
}

Expand Down

0 comments on commit f6e33d0

Please sign in to comment.