llvmpipe: put .bmp extension on dumped image files
authorBrian Paul <brianp@vmware.com>
Thu, 28 Mar 2013 23:17:26 +0000 (17:17 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 28 Mar 2013 23:17:26 +0000 (17:17 -0600)
src/gallium/drivers/svga/svga_pipe_flush.c

index 353723df58a045918a077fd0329bbd29709f0f48..a6048d9b49230ab813d7a2a44d53c95a97ebf904 100644 (file)
@@ -56,12 +56,12 @@ static void svga_flush( struct pipe_context *pipe,
       unsigned i;
 
       for (i = 0; i < fb->nr_cbufs; i++) {
-         util_snprintf(filename, sizeof(filename), "cbuf%u_%04u", i, frame_no);
+         util_snprintf(filename, sizeof(filename), "cbuf%u_%04u.bmp", i, frame_no);
          debug_dump_surface_bmp(&svga->pipe, filename, fb->cbufs[i]);
       }
 
       if (0 && fb->zsbuf) {
-         util_snprintf(filename, sizeof(filename), "zsbuf_%04u", frame_no);
+         util_snprintf(filename, sizeof(filename), "zsbuf_%04u.bmp", frame_no);
          debug_dump_surface_bmp(&svga->pipe, filename, fb->zsbuf);
       }