summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_flush.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2010-01-10 17:22:09 +0000
committerKeith Whitwell <[email protected]>2010-01-10 17:22:09 +0000
commitc1a04416023e24621e4992caf593e8dfe8d7a2fc (patch)
tree954303fe263279379063ff418f87418f62c205ec /src/gallium/drivers/llvmpipe/lp_flush.c
parentf4321fbd961a0a891c7f40b16efc61aa791e03a9 (diff)
llvmpipe: initial mrt support
Non-mrt apps work, and the code looks correct, but not many mrt test apps handy atm...
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_flush.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_flush.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_flush.c b/src/gallium/drivers/llvmpipe/lp_flush.c
index 9405150c4f7..16fb00092e6 100644
--- a/src/gallium/drivers/llvmpipe/lp_flush.c
+++ b/src/gallium/drivers/llvmpipe/lp_flush.c
@@ -77,8 +77,11 @@ llvmpipe_flush( struct pipe_context *pipe,
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, llvmpipe->framebuffer.cbufs[0]);
+ unsigned i;
+ for (i = 0; i < llvmpipe->framebuffer.nr_cbufs) {
+ util_snprintf(filename, sizeof(filename), "cbuf%u_%u.bmp", i, frame_no);
+ debug_dump_surface_bmp(filename, llvmpipe->framebuffer.cbufs[i]);
+ }
util_snprintf(filename, sizeof(filename), "zsbuf_%u.bmp", frame_no);
debug_dump_surface_bmp(filename, llvmpipe->framebuffer.zsbuf);
++frame_no;