summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/i915simple/i915_debug.h
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2007-08-09 11:18:27 +0100
committerKeith Whitwell <[email protected]>2007-08-09 11:23:18 +0100
commitc046174eb047c95e25f31390019f04f310ae2b8e (patch)
tree95b252e771a972459dac347cbebda9aad0d605cc /src/mesa/pipe/i915simple/i915_debug.h
parent9526f7445e9acea8553769bf8f86e3c95655cca1 (diff)
Pull in debug code for human-readable batchbuffer dumps.
Diffstat (limited to 'src/mesa/pipe/i915simple/i915_debug.h')
-rw-r--r--src/mesa/pipe/i915simple/i915_debug.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mesa/pipe/i915simple/i915_debug.h b/src/mesa/pipe/i915simple/i915_debug.h
index 47a02401eee..3e01db64342 100644
--- a/src/mesa/pipe/i915simple/i915_debug.h
+++ b/src/mesa/pipe/i915simple/i915_debug.h
@@ -31,9 +31,26 @@
#ifndef I915_DEBUG_H
#define I915_DEBUG_H
+struct i915_context;
+
+struct debug_stream
+{
+ unsigned offset; /* current gtt offset */
+ char *ptr; /* pointer to gtt offset zero */
+ char *end; /* pointer to gtt offset zero */
+ unsigned print_addresses;
+};
+
+
extern void i915_disassemble_program(const unsigned *program, unsigned sz);
extern void i915_print_ureg(const char *msg, unsigned ureg);
+void
+i915_dump_batchbuffer( struct i915_context *i915,
+ unsigned *start,
+ unsigned *end );
+
+
#endif