i915: Fix batchbuffer dumping
authorJakob Bornecrantz <wallbraker@gmail.com>
Wed, 28 Jan 2009 22:23:40 +0000 (23:23 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Wed, 28 Jan 2009 22:28:10 +0000 (23:28 +0100)
src/gallium/drivers/i915simple/i915_debug.c

index 7a4e7051d20d8210c3baee46114015d712989f11..548b60d0037f1a344c7d928518cf96968aa90194 100644 (file)
@@ -29,6 +29,7 @@
 #include "i915_context.h"
 #include "i915_winsys.h"
 #include "i915_debug.h"
+#include "i915_batch.h"
 #include "pipe/p_winsys.h"
 #include "pipe/p_debug.h"
 
@@ -866,9 +867,8 @@ void
 i915_dump_batchbuffer( struct i915_context *i915 )
 {
    struct debug_stream stream;
-   /* TODO fix me */
-   unsigned *start = 0;/*i915->batch_start;*/
-   unsigned *end = 0;/*i915->winsys->batch_start( i915->winsys, 0, 0 );*/
+   unsigned *start = (unsigned*)i915->batch->map;
+   unsigned *end = (unsigned*)i915->batch->ptr;
    unsigned long bytes = (unsigned long) (end - start) * 4;
    boolean done = FALSE;