Mesa (master): intel: When AUB dumping, flush before emitting final bitmap command.
Paul Berry
stereotype441 at kemper.freedesktop.org
Tue May 22 22:25:50 UTC 2012
Module: Mesa
Branch: master
Commit: 1b87a93983c4f217bf7cb4e422de39e418291e39
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1b87a93983c4f217bf7cb4e422de39e418291e39
Author: Paul Berry <stereotype441 at gmail.com>
Date: Sun May 6 10:01:37 2012 -0700
intel: When AUB dumping, flush before emitting final bitmap command.
When we are generating an AUB dump, we make a final call to
aub_dump_bmp() as the context is being destroyed, to ensure that any
rendering performed before the application exits can be seen during a
simulation run. However, we were doing this before flushing the batch
buffer; as a result simulation runs would not always see the effect of
all rendering commands.
This patch flushes the batch buffer just before making the final call
to aub_dump_bmp(), to ensure that all rendering is properly captured
in the final bitmap.
---
src/mesa/drivers/dri/intel/intel_context.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c
index f572f38..b770aa2 100644
--- a/src/mesa/drivers/dri/intel/intel_context.c
+++ b/src/mesa/drivers/dri/intel/intel_context.c
@@ -794,8 +794,10 @@ intelDestroyContext(__DRIcontext * driContextPriv)
INTEL_FIREVERTICES(intel);
/* Dump a final BMP in case the application doesn't call SwapBuffers */
- if (INTEL_DEBUG & DEBUG_AUB)
+ if (INTEL_DEBUG & DEBUG_AUB) {
+ intel_batchbuffer_flush(intel);
aub_dump_bmp(&intel->ctx);
+ }
_mesa_meta_free(&intel->ctx);
More information about the mesa-commit
mailing list