summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_debug.h
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2012-12-02 18:57:53 +0000
committerJosé Fonseca <jfonseca@vmware.com>2012-12-04 19:35:19 +0000
commitde76101672a83fd7fda8033b2d5ec8c5b756707a (patch)
tree57b53360f0e6a12152b66451a3116b8353a87b71 /src/gallium/auxiliary/util/u_debug.h
parenta416a4a91dd167f9f018932b0a1c7045bfc08bd8 (diff)
util/u_debug: Cleanup/fix debug_dump_image.
- Handle other formats. - Prevent CRLF on Windows. Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/util/u_debug.h')
-rw-r--r--src/gallium/auxiliary/util/u_debug.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_debug.h b/src/gallium/auxiliary/util/u_debug.h
index 3b42c2f07f7..0eb74433379 100644
--- a/src/gallium/auxiliary/util/u_debug.h
+++ b/src/gallium/auxiliary/util/u_debug.h
@@ -41,6 +41,8 @@
#include "os/os_misc.h"
+#include "pipe/p_format.h"
+
#ifdef __cplusplus
extern "C" {
@@ -418,7 +420,7 @@ struct pipe_transfer;
struct pipe_resource;
void debug_dump_image(const char *prefix,
- unsigned format, unsigned cpp,
+ enum pipe_format format, unsigned cpp,
unsigned width, unsigned height,
unsigned stride,
const void *data);