Mesa (master): intel: Use the post-execution batchbuffer contents for dumping.
Eric Anholt
anholt at kemper.freedesktop.org
Mon Jul 18 11:43:58 PDT 2011
Module: Mesa
Branch: master
Commit: 96cdbf43404a65a267065250ae6b29be93071520
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=96cdbf43404a65a267065250ae6b29be93071520
Author: Eric Anholt <eric at anholt.net>
Date: Tue Jul 12 12:19:21 2011 -0700
intel: Use the post-execution batchbuffer contents for dumping.
We were missing out on all the relocation changes by dumping what we
subdata()ed in instead of what's there after the kernel finished with
it.
---
src/mesa/drivers/dri/intel/intel_batchbuffer.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/mesa/drivers/dri/intel/intel_batchbuffer.c b/src/mesa/drivers/dri/intel/intel_batchbuffer.c
index 7353829..b61a2ff 100644
--- a/src/mesa/drivers/dri/intel/intel_batchbuffer.c
+++ b/src/mesa/drivers/dri/intel/intel_batchbuffer.c
@@ -127,9 +127,11 @@ do_flush_locked(struct intel_context *intel)
}
if (unlikely(INTEL_DEBUG & DEBUG_BATCH)) {
- intel_decode(batch->map, batch->used,
+ drm_intel_bo_map(batch->bo, false);
+ intel_decode(batch->bo->virtual, batch->used,
batch->bo->offset,
intel->intelScreen->deviceID, GL_TRUE);
+ drm_intel_bo_unmap(batch->bo);
if (intel->vtbl.debug_batch != NULL)
intel->vtbl.debug_batch(intel);
More information about the mesa-commit
mailing list