summaryrefslogtreecommitdiffstats
path: root/src/gallium/include/pipe/p_debug.h
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-08-06 14:48:11 +0100
committerJosé Fonseca <[email protected]>2008-08-07 18:58:29 +0100
commit72a5e479789febb552ec783a1cba0ed628dfa427 (patch)
tree9ab33d9b38f1254c37915b85d1c2098a22d50f72 /src/gallium/include/pipe/p_debug.h
parent9a20cecc5cf41c5eda6cedd5f30416bc1b49ac91 (diff)
gallium: New function to dump surfaces.
Diffstat (limited to 'src/gallium/include/pipe/p_debug.h')
-rw-r--r--src/gallium/include/pipe/p_debug.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gallium/include/pipe/p_debug.h b/src/gallium/include/pipe/p_debug.h
index a5816c3cbb7..6478ae2f08e 100644
--- a/src/gallium/include/pipe/p_debug.h
+++ b/src/gallium/include/pipe/p_debug.h
@@ -332,13 +332,17 @@ debug_profile_stop(void);
#ifdef DEBUG
+struct pipe_surface;
void debug_dump_image(const char *prefix,
unsigned format, unsigned cpp,
unsigned width, unsigned height,
- unsigned pitch,
+ unsigned stride,
const void *data);
+void debug_dump_surface(const char *prefix,
+ struct pipe_surface *surface);
#else
-#define debug_dump_image(prefix, format, cpp, width, height, pitch, data) ((void)0)
+#define debug_dump_image(prefix, format, cpp, width, height, stride, data) ((void)0)
+#define debug_dump_surface(prefix, surface) ((void)0)
#endif