diff options
author | José Fonseca <[email protected]> | 2008-05-07 02:51:49 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-05-07 04:51:55 +0900 |
commit | a6ad4927740e5699f1a047f4c78f069f6a91c6ea (patch) | |
tree | 193efbe2d20c6b1d4dd6d39406872727a44e0d64 /src/gallium/include | |
parent | 809dd9089bae70cf35cea6a75258e700e7455738 (diff) |
gallium: Simple facility to dump and view images for debugging.
Diffstat (limited to 'src/gallium/include')
-rw-r--r-- | src/gallium/include/pipe/p_debug.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_debug.h b/src/gallium/include/pipe/p_debug.h index 7a7312ea122..1263d0da619 100644 --- a/src/gallium/include/pipe/p_debug.h +++ b/src/gallium/include/pipe/p_debug.h @@ -313,6 +313,17 @@ void debug_memory_end(unsigned long beginning); +#ifdef DEBUG +void debug_dump_image(const char *prefix, + unsigned format, unsigned cpp, + unsigned width, unsigned height, + unsigned pitch, + const void *data); +#else +#define debug_dump_image(prefix, format, cpp, width, height, pitch, data) ((void)0) +#endif + + #ifdef __cplusplus } #endif |