Mesa (gallium-0.2): i915: Fix batchbuffer dumping

Jakob Bornecrantz wallbraker at kemper.freedesktop.org
Wed Jan 28 22:29:17 UTC 2009


Module: Mesa
Branch: gallium-0.2
Commit: 1642dd2f86938242bfa8293323daaaf64573976f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1642dd2f86938242bfa8293323daaaf64573976f

Author: Jakob Bornecrantz <wallbraker at gmail.com>
Date:   Wed Jan 28 23:23:40 2009 +0100

i915: Fix batchbuffer dumping

---

 src/gallium/drivers/i915simple/i915_debug.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gallium/drivers/i915simple/i915_debug.c b/src/gallium/drivers/i915simple/i915_debug.c
index 7a4e705..548b60d 100644
--- a/src/gallium/drivers/i915simple/i915_debug.c
+++ b/src/gallium/drivers/i915simple/i915_debug.c
@@ -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;
 




More information about the mesa-commit mailing list