diff options
author | Jakob Bornecrantz <[email protected]> | 2011-02-22 00:20:39 +0000 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2011-02-24 00:26:02 +0000 |
commit | fbd681f1a03f6ad62432107dc94e02674f6de7bf (patch) | |
tree | 254e23f58d40dd3fe45ee2ef09bdb8fa0d7c3b7e /src/gallium/winsys | |
parent | fc77dee0bd6499177418be347bac875b12277053 (diff) |
i915g: Use dump function in sw winsys
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r-- | src/gallium/winsys/i915/sw/i915_sw_batchbuffer.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gallium/winsys/i915/sw/i915_sw_batchbuffer.c b/src/gallium/winsys/i915/sw/i915_sw_batchbuffer.c index dcb0e54b673..8085591c8eb 100644 --- a/src/gallium/winsys/i915/sw/i915_sw_batchbuffer.c +++ b/src/gallium/winsys/i915/sw/i915_sw_batchbuffer.c @@ -1,6 +1,7 @@ #include "i915_sw_winsys.h" #include "i915/i915_batchbuffer.h" +#include "i915/i915_debug.h" #include "util/u_memory.h" #define BATCH_RESERVED 16 @@ -98,7 +99,6 @@ i915_sw_batchbuffer_flush(struct i915_winsys_batchbuffer *ibatch, { struct i915_sw_batchbuffer *batch = i915_sw_batchbuffer(ibatch); unsigned used = 0; - int i; assert(i915_winsys_batchbuffer_space(ibatch) >= 0); @@ -122,12 +122,7 @@ i915_sw_batchbuffer_flush(struct i915_winsys_batchbuffer *ibatch, assert((used & 4) == 0); if (i915_sw_winsys(ibatch->iws)->dump_cmd) { - unsigned *ptr = (unsigned *)batch->base.map; - - debug_printf("%s:\n", __FUNCTION__); - for (i = 0; i < used / 4; i++, ptr++) { - debug_printf("\t%08x: %08x\n", i*4, *ptr); - } + i915_dump_batchbuffer(ibatch); } if (fence) { |