util: Add function to dump PIPE_STENCIL_OP_xxx
authorJosé Fonseca <jfonseca@vmware.com>
Sun, 9 May 2010 20:17:46 +0000 (21:17 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 12 May 2010 19:40:07 +0000 (20:40 +0100)
src/gallium/auxiliary/util/u_dump.h
src/gallium/auxiliary/util/u_dump_defines.c

index bdc73ac47d20eaab0ce225055e460803ec58f96c..68a6da804e893879f8fe76aa5788a10857d87763 100644 (file)
@@ -73,6 +73,9 @@ util_dump_blend_func(unsigned value, boolean shortened);
 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);
 
index 96a225634739162e04cf9f73f3b01426121de5eb..c4ffc7ae35a9695c5763bd307fd737fec0d631a9 100644 (file)
@@ -186,6 +186,33 @@ util_dump_func_short_names[] = {
 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",