softpipe: Code (commented out) to dump BMPs.
This commit is contained in:
@@ -73,6 +73,19 @@ softpipe_flush( struct pipe_context *pipe,
|
||||
softpipe_unmap_surfaces(softpipe);
|
||||
}
|
||||
|
||||
/* Enable to dump BMPs of the color/depth buffers each frame */
|
||||
#if 0
|
||||
if(flags & PIPE_FLUSH_FRAME) {
|
||||
static unsigned frame_no = 1;
|
||||
static char filename[256];
|
||||
util_snprintf(filename, sizeof(filename), "cbuf_%u.bmp", frame_no);
|
||||
debug_dump_surface_bmp(filename, softpipe->framebuffer.cbufs[0]);
|
||||
util_snprintf(filename, sizeof(filename), "zsbuf_%u.bmp", frame_no);
|
||||
debug_dump_surface_bmp(filename, softpipe->framebuffer.zsbuf);
|
||||
++frame_no;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (fence)
|
||||
*fence = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user