summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i915tex/intel_batchbuffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri/i915tex/intel_batchbuffer.c')
-rw-r--r--src/mesa/drivers/dri/i915tex/intel_batchbuffer.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/mesa/drivers/dri/i915tex/intel_batchbuffer.c b/src/mesa/drivers/dri/i915tex/intel_batchbuffer.c
index 6665629d03..c740c3d7f6 100644
--- a/src/mesa/drivers/dri/i915tex/intel_batchbuffer.c
+++ b/src/mesa/drivers/dri/i915tex/intel_batchbuffer.c
@@ -27,6 +27,7 @@
#include "intel_batchbuffer.h"
#include "intel_ioctl.h"
+#include "intel_decode.h"
#include "i915_debug.h"
/* Relocations in kernel space:
@@ -67,16 +68,6 @@
* modifying cliprects ???
*/
-static void
-intel_dump_batchbuffer(GLuint offset, GLuint * ptr, GLuint count)
-{
- int i;
- fprintf(stderr, "\n\n\nSTART BATCH (%d dwords):\n", count / 4);
- for (i = 0; i < count / 4; i += 1)
- fprintf(stderr, "\t0x%08x\n", ptr[i]);
- fprintf(stderr, "END BATCH\n\n\n");
-}
-
void
intel_batchbuffer_reset(struct intel_batchbuffer *batch)
{
@@ -186,11 +177,8 @@ do_flush_locked(struct intel_batchbuffer *batch,
ptr[r->offset / 4] = driBOOffset(r->buf) + r->delta;
}
- if (INTEL_DEBUG & DEBUG_BATCH) {
- if (0) i915_dump_batchbuffer(ptr, ptr + used/4);
- intel_dump_batchbuffer(0, ptr, used);
- }
-
+ if (INTEL_DEBUG & DEBUG_BATCH)
+ intel_decode(ptr, used / 4, 0);
driBOUnmap(batch->buffer);
batch->map = NULL;