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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/pipe/i915simple/i915_batch.h b/src/mesa/pipe/i915simple/i915_batch.h
index 77008eee14..b4ca8c38da 100644
--- a/src/mesa/pipe/i915simple/i915_batch.h
+++ b/src/mesa/pipe/i915simple/i915_batch.h
@@ -28,6 +28,9 @@
#ifndef I915_BATCH_H
#define I915_BATCH_H
+#include "i915_winsys.h"
+#include "i915_debug.h"
+
#define BATCH_LOCALS
#define BEGIN_BATCH( dwords, relocs ) \
@@ -41,4 +44,10 @@
#define ADVANCE_BATCH()
+#define FLUSH_BATCH() do { \
+/* i915_dump_batchbuffer( i915, i915->batch_start, BEGIN_BATCH(0, 0) ); */ \
+ i915->winsys->batch_flush( i915->winsys ); \
+ i915->batch_start = BEGIN_BATCH(0, 0); \
+} while (0)
+
#endif