[i915] Reenable batchbuffer debug under INTEL_DEBUG=bat.
authorEric Anholt <eric@anholt.net>
Thu, 25 Oct 2007 18:31:15 +0000 (11:31 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 16 Nov 2007 23:36:18 +0000 (15:36 -0800)
src/mesa/drivers/dri/intel/intel_batchbuffer.c

index 8ece6d2760c94d72b1d0164419bcb114eaef5ccc..9ec60fcff39c6156cd2e3dcd1e4dec97690fa0eb 100644 (file)
@@ -168,10 +168,10 @@ do_flush_locked(struct intel_batchbuffer *batch,
    }
 
    if (INTEL_DEBUG & DEBUG_BATCH) {
-      //      dri_bo_map(batch->buf, GL_FALSE);
-      //      intel_decode(ptr, used / 4, batch->buf->offset,
-      //                  intel->intelScreen->deviceID);
-      //      dri_bo_unmap(batch->buf);
+      dri_bo_map(batch->buf, GL_FALSE);
+      intel_decode(batch->buf->virtual, used / 4, batch->buf->offset,
+                  intel->intelScreen->deviceID);
+      dri_bo_unmap(batch->buf);
    }
 }