OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f072210
)
intel: Use the post-execution batchbuffer contents for dumping.
author
Eric Anholt
<eric@anholt.net>
Tue, 12 Jul 2011 19:19:21 +0000
(12:19 -0700)
committer
Eric Anholt
<eric@anholt.net>
Mon, 18 Jul 2011 18:26:33 +0000
(11:26 -0700)
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
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_batchbuffer.c
b/src/mesa/drivers/dri/intel/intel_batchbuffer.c
index
7353829
..
b61a2ff
100644
(file)
--- 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);