summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/i915simple/i915_batch.h
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2007-08-08 16:42:01 +0100
committerKeith Whitwell <[email protected]>2007-08-09 11:23:18 +0100
commit93d5cfd8b7c641c5656aed38ad2f9559e09502f0 (patch)
tree5f105eea612826cd4b34f78bc5a8c3f910a3ab7f /src/mesa/pipe/i915simple/i915_batch.h
parentd0521ebd516617f4471279e69af5dc0f4e4992af (diff)
Add flush/finish functionality to pipe.
Not sure if finish() is the right interface yet.
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 77008eee140..b4ca8c38da7 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