summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915simple/i915_debug.c
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2009-01-29 01:29:26 +0100
committerJakob Bornecrantz <[email protected]>2009-01-29 03:00:14 +0100
commit8340a116ea346ee7f11fe150a1439e1d7bd86118 (patch)
tree95b4d16b438d46a1907a63c1b54829ec3d4e08c2 /src/gallium/drivers/i915simple/i915_debug.c
parenta3b89a39d94d94c5e7f9f5389f852171ad0aeb1f (diff)
i915: Don't take a context as argument for debug
Diffstat (limited to 'src/gallium/drivers/i915simple/i915_debug.c')
-rw-r--r--src/gallium/drivers/i915simple/i915_debug.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gallium/drivers/i915simple/i915_debug.c b/src/gallium/drivers/i915simple/i915_debug.c
index 548b60d0037..4adf9decae1 100644
--- a/src/gallium/drivers/i915simple/i915_debug.c
+++ b/src/gallium/drivers/i915simple/i915_debug.c
@@ -864,18 +864,17 @@ static boolean i915_debug_packet( struct debug_stream *stream )
void
-i915_dump_batchbuffer( struct i915_context *i915 )
+i915_dump_batchbuffer( struct i915_batchbuffer *batch )
{
struct debug_stream stream;
- unsigned *start = (unsigned*)i915->batch->map;
- unsigned *end = (unsigned*)i915->batch->ptr;
+ unsigned *start = (unsigned*)batch->map;
+ unsigned *end = (unsigned*)batch->ptr;
unsigned long bytes = (unsigned long) (end - start) * 4;
boolean done = FALSE;
stream.offset = 0;
stream.ptr = (char *)start;
stream.print_addresses = 0;
- stream.winsys = i915->pipe.winsys;
if (!start || !end) {
debug_printf( "\n\nBATCH: ???\n");