diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-05-09 21:17:46 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-05-12 20:40:07 +0100 |
commit | 994e45de4919319db37facb4fde810d9079737f7 (patch) | |
tree | 07bf406e942157d3f4bdf5c860ecdcb299a35c60 /src | |
parent | 5326e1846dbe0a37dff7f411a3d76ba91dc8d37c (diff) |
util: Add function to dump PIPE_STENCIL_OP_xxx
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/util/u_dump.h | 3 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_dump_defines.c | 27 |
2 files changed, 30 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_dump.h b/src/gallium/auxiliary/util/u_dump.h index bdc73ac47d..68a6da804e 100644 --- a/src/gallium/auxiliary/util/u_dump.h +++ b/src/gallium/auxiliary/util/u_dump.h @@ -74,6 +74,9 @@ const char * util_dump_func(unsigned value, boolean shortened); const char * +util_dump_stencil_op(unsigned value, boolean shortened); + +const char * util_dump_tex_target(unsigned value, boolean shortened); const char * diff --git a/src/gallium/auxiliary/util/u_dump_defines.c b/src/gallium/auxiliary/util/u_dump_defines.c index 96a2256347..c4ffc7ae35 100644 --- a/src/gallium/auxiliary/util/u_dump_defines.c +++ b/src/gallium/auxiliary/util/u_dump_defines.c @@ -187,6 +187,33 @@ DEFINE_UTIL_DUMP_CONTINUOUS(func) static const char * +util_dump_stencil_op_names[] = { + "PIPE_STENCIL_OP_KEEP", + "PIPE_STENCIL_OP_ZERO", + "PIPE_STENCIL_OP_REPLACE", + "PIPE_STENCIL_OP_INCR", + "PIPE_STENCIL_OP_DECR", + "PIPE_STENCIL_OP_INCR_WRAP", + "PIPE_STENCIL_OP_DECR_WRAP", + "PIPE_STENCIL_OP_INVERT" +}; + +static const char * +util_dump_stencil_op_short_names[] = { + "keep", + "zero", + "replace", + "incr", + "decr", + "incr_wrap", + "decr_wrap", + "invert" +}; + +DEFINE_UTIL_DUMP_CONTINUOUS(stencil_op) + + +static const char * util_dump_tex_target_names[] = { "PIPE_TEXTURE_1D", "PIPE_TEXTURE_2D", |