aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/softpipe
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-04-08 19:13:29 -0600
committerBrian Paul <[email protected]>2013-04-09 08:27:53 -0600
commit4ad360133cfa71f79e92246218e8222486982b26 (patch)
tree56a0d594e8475871e292bb387af773cd33cee353 /src/gallium/drivers/softpipe
parent04ffce3004faa50f33a740ea36aa4abdc03f652f (diff)
softpipe: misc updates to image dumping in softpipe_flush()
Diffstat (limited to 'src/gallium/drivers/softpipe')
-rw-r--r--src/gallium/drivers/softpipe/sp_flush.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/drivers/softpipe/sp_flush.c b/src/gallium/drivers/softpipe/sp_flush.c
index b3e291f1b7e..899ac535cbe 100644
--- a/src/gallium/drivers/softpipe/sp_flush.c
+++ b/src/gallium/drivers/softpipe/sp_flush.c
@@ -39,6 +39,7 @@
#include "sp_tile_cache.h"
#include "sp_tex_tile_cache.h"
#include "util/u_memory.h"
+#include "util/u_string.h"
void
@@ -77,13 +78,13 @@ softpipe_flush( struct pipe_context *pipe,
/* Enable to dump BMPs of the color/depth buffers each frame */
#if 0
- if(flags & PIPE_FLUSH_FRAME) {
+ if (flags & PIPE_FLUSH_END_OF_FRAME) {
static unsigned frame_no = 1;
static char filename[256];
util_snprintf(filename, sizeof(filename), "cbuf_%u.bmp", frame_no);
- debug_dump_surface_bmp(softpipe, filename, softpipe->framebuffer.cbufs[0]);
+ debug_dump_surface_bmp(pipe, filename, softpipe->framebuffer.cbufs[0]);
util_snprintf(filename, sizeof(filename), "zsbuf_%u.bmp", frame_no);
- debug_dump_surface_bmp(softpipe, filename, softpipe->framebuffer.zsbuf);
+ debug_dump_surface_bmp(pipe, filename, softpipe->framebuffer.zsbuf);
++frame_no;
}
#endif