summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_debug.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-01-14 19:04:40 -0700
committerBrian Paul <[email protected]>2010-01-14 19:04:42 -0700
commit4f5675e94b936d012b89937aac8a16c28143d5ec (patch)
treebb145aacadce992026267b2690dc9c2535972eb5 /src/gallium/auxiliary/util/u_debug.h
parentdfd6e762e70aef6694fa3baedf8d423b08995233 (diff)
gallium/util: added debug_dump_texture() and ppm output
Now we can get dump debug images on Linux too.
Diffstat (limited to 'src/gallium/auxiliary/util/u_debug.h')
-rw-r--r--src/gallium/auxiliary/util/u_debug.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_debug.h b/src/gallium/auxiliary/util/u_debug.h
index facc30a5534..131c9915391 100644
--- a/src/gallium/auxiliary/util/u_debug.h
+++ b/src/gallium/auxiliary/util/u_debug.h
@@ -354,6 +354,8 @@ debug_memory_end(unsigned long beginning);
#ifdef DEBUG
struct pipe_surface;
struct pipe_transfer;
+struct pipe_texture;
+
void debug_dump_image(const char *prefix,
unsigned format, unsigned cpp,
unsigned width, unsigned height,
@@ -361,6 +363,8 @@ void debug_dump_image(const char *prefix,
const void *data);
void debug_dump_surface(const char *prefix,
struct pipe_surface *surface);
+void debug_dump_texture(const char *prefix,
+ struct pipe_texture *texture);
void debug_dump_surface_bmp(const char *filename,
struct pipe_surface *surface);
void debug_dump_transfer_bmp(const char *filename,