summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/i915simple/i915_batch.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/pipe/i915simple/i915_batch.h')
-rw-r--r--src/mesa/pipe/i915simple/i915_batch.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/pipe/i915simple/i915_batch.h b/src/mesa/pipe/i915simple/i915_batch.h
index d0b0946cdf..fb88cd6db0 100644
--- a/src/mesa/pipe/i915simple/i915_batch.h
+++ b/src/mesa/pipe/i915simple/i915_batch.h
@@ -34,7 +34,7 @@
#define BATCH_LOCALS
#define BEGIN_BATCH( dwords, relocs ) \
- i915->winsys->batch_start( i915->winsys, dwords, relocs )
+ (i915->batch_start = i915->winsys->batch_start( i915->winsys, dwords, relocs ))
#define OUT_BATCH( dword ) \
i915->winsys->batch_dword( i915->winsys, dword )
@@ -44,10 +44,10 @@
#define ADVANCE_BATCH()
-#define FLUSH_BATCH() do { \
- if (0) i915_dump_batchbuffer( i915, i915->batch_start, BEGIN_BATCH(0, 0) ); \
- i915->winsys->batch_flush( i915->winsys ); \
- i915->batch_start = BEGIN_BATCH(0, 0); \
+#define FLUSH_BATCH() do { \
+ if (0) i915_dump_batchbuffer( i915 ); \
+ i915->winsys->batch_flush( i915->winsys ); \
+ i915->batch_start = NULL; \
i915->hardware_dirty = ~0; \
} while (0)