summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2010-03-28 10:42:26 -0700
committerKeith Whitwell <keithw@vmware.com>2010-03-28 10:42:38 -0700
commit1cf669db59573778bab2f957679f353cf142c9d9 (patch)
tree8583c4a78078bddcb1f4afb23af345586b50f824
parentd0d73a38dab49d762dfbe596b66634d5d187501a (diff)
progs/raw: add note about accessing utility functions
-rw-r--r--progs/gallium/raw/clear.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/progs/gallium/raw/clear.c b/progs/gallium/raw/clear.c
index e46d135224..5ef5254edc 100644
--- a/progs/gallium/raw/clear.c
+++ b/progs/gallium/raw/clear.c
@@ -9,6 +9,8 @@
#include "pipe/p_defines.h"
#include <unistd.h> /* for sleep() */
+#include "util/u_debug.h" /* debug_dump_surface_bmp() */
+
enum pipe_format formats[] = {
PIPE_FORMAT_R8G8B8A8_UNORM,
PIPE_FORMAT_B8G8R8A8_UNORM,
@@ -78,6 +80,14 @@ int main( int argc, char *argv[] )
pipe->clear(pipe, PIPE_CLEAR_COLOR, clear_color, 0, 0);
pipe->flush(pipe, PIPE_FLUSH_RENDER_CACHE, NULL);
+ /* At the moment, libgraw includes/makes available all the symbols
+ * from gallium/auxiliary, including these debug helpers. Will
+ * eventually want to bless some of these paths, and lock the
+ * others down so they aren't accessible from test programs.
+ */
+ if (0)
+ debug_dump_surface_bmp(pipe, "result.bmp", surf);
+
screen->flush_frontbuffer(screen, surf, window);
sleep(100);