summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-07-12 12:19:21 -0700
committerEric Anholt <[email protected]>2011-07-18 11:26:33 -0700
commit96cdbf43404a65a267065250ae6b29be93071520 (patch)
treee260b12e0afd280e6c405ded88498aae3f53d226 /src/mesa
parentf07221056e1822187546b76387714b3172f9b2c5 (diff)
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.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/intel/intel_batchbuffer.c4
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 735382902d1..b61a2ffef19 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);