summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/i915simple/i915_batch.h
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2007-11-03 02:00:28 +0000
committerJosé Fonseca <[email protected]>2007-11-03 02:01:32 +0000
commit7a7899a2476592e846b908a557a738a49fa9a948 (patch)
tree58a2d2f5ef1a02d1e916e749d445f4617abe7aa0 /src/mesa/pipe/i915simple/i915_batch.h
parent5fa6ea68586e906a984291dd4c20f664924157eb (diff)
Allow batch buffer debugging without calling i915_winsys->batch_start so often.
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 d0b0946cdf8..fb88cd6db0d 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)