summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/i915simple/i915_flush.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-11-07 17:16:47 -0700
committerBrian <[email protected]>2007-11-07 17:16:47 -0700
commit3fe055ec9218a8745d9a53f75f4abd4760fcce28 (patch)
tree3418e9b0ae67dbdd85a4e00783aec5f3785c4bd5 /src/mesa/pipe/i915simple/i915_flush.c
parentae44a81d1bd40852a7cea9b8025dfa3821adc785 (diff)
Remove winsys->wait_idle(), subsumed by pipe->flush().
Connect intel_i915_batch_finish() into i915_winsys, just like intel_i915_batch_flush(). Call i915_winsys->batch_finish() in response to pipe->flush(PIPE_FLUSH_WAIT). Now all the batchbuffer/fence code is in one place and a little cleaner.
Diffstat (limited to 'src/mesa/pipe/i915simple/i915_flush.c')
-rw-r--r--src/mesa/pipe/i915simple/i915_flush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/pipe/i915simple/i915_flush.c b/src/mesa/pipe/i915simple/i915_flush.c
index 5a80ed5e2f5..51cf9960aad 100644
--- a/src/mesa/pipe/i915simple/i915_flush.c
+++ b/src/mesa/pipe/i915simple/i915_flush.c
@@ -69,7 +69,7 @@ static void i915_flush( struct pipe_context *pipe,
FLUSH_BATCH();
if (flags & PIPE_FLUSH_WAIT) {
- i915->pipe.winsys->wait_idle(i915->pipe.winsys, i915->pipe.private);
+ i915->winsys->batch_finish(i915->winsys);
}
}