summaryrefslogtreecommitdiffstats
path: root/src/gallium/include
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-09-08 22:21:33 +0900
committerJosé Fonseca <[email protected]>2008-09-08 22:21:33 +0900
commit1da0a13389ce9709586058a8807c0c4120e520a2 (patch)
treebf9fe41fe88771efaaf027a9640e3e08bfb9230d /src/gallium/include
parent7cfc294c70e96269055341d327622774c9173b37 (diff)
util: Dump surfaces to BMP.
This allows quick inspection of surfaces in mass scale.
Diffstat (limited to 'src/gallium/include')
-rw-r--r--src/gallium/include/pipe/p_debug.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_debug.h b/src/gallium/include/pipe/p_debug.h
index 6478ae2f08e..cb6196aa9fb 100644
--- a/src/gallium/include/pipe/p_debug.h
+++ b/src/gallium/include/pipe/p_debug.h
@@ -340,9 +340,12 @@ void debug_dump_image(const char *prefix,
const void *data);
void debug_dump_surface(const char *prefix,
struct pipe_surface *surface);
+void debug_dump_surface_bmp(const char *filename,
+ struct pipe_surface *surface);
#else
#define debug_dump_image(prefix, format, cpp, width, height, stride, data) ((void)0)
#define debug_dump_surface(prefix, surface) ((void)0)
+#define debug_dump_surface_bmp(filename, surface) ((void)0)
#endif