mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
softpipe: misc updates to image dumping in softpipe_flush()
This commit is contained in:
parent
04ffce3004
commit
4ad360133c
1 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue