Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318637
b: refs/heads/master
c: 97f209b
h: refs/heads/master
i:
  318635: 39de22a
v: v3
  • Loading branch information
Daniel Vetter committed Jun 28, 2012
1 parent 78e248f commit c9b9a40
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 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: a8b0bbabf756bfb45a712b823ba41f5c95f85589
refs/heads/master: 97f209bcfc0c5db08d9badf8cbafd489f22a6e44
10 changes: 9 additions & 1 deletion trunk/drivers/gpu/drm/i915/intel_ringbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ gen6_render_ring_flush(struct intel_ring_buffer *ring,
int ret;

/* Force SNB workarounds for PIPE_CONTROL flushes */
intel_emit_post_sync_nonzero_flush(ring);
ret = intel_emit_post_sync_nonzero_flush(ring);
if (ret)
return ret;

/* Just flush everything. Experiments have shown that reducing the
* number of bits based on the write domains has little performance
Expand All @@ -233,6 +235,12 @@ gen6_render_ring_flush(struct intel_ring_buffer *ring,
flags |= PIPE_CONTROL_VF_CACHE_INVALIDATE;
flags |= PIPE_CONTROL_CONST_CACHE_INVALIDATE;
flags |= PIPE_CONTROL_STATE_CACHE_INVALIDATE;
/*
* Ensure that any following seqno writes only happen when the render
* cache is indeed flushed (but only if the caller actually wants that).
*/
if (flush_domains)
flags |= PIPE_CONTROL_CS_STALL;

ret = intel_ring_begin(ring, 6);
if (ret)
Expand Down

0 comments on commit c9b9a40

Please sign in to comment.