gallium: added util_dump_logicop()
authorBrian Paul <brianp@vmware.com>
Wed, 19 May 2010 17:37:09 +0000 (11:37 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 20 May 2010 16:27:11 +0000 (10:27 -0600)
src/gallium/auxiliary/util/u_dump.h
src/gallium/auxiliary/util/u_dump_defines.c

index 68a6da804e893879f8fe76aa5788a10857d87763..49536c0d593317a0be293d1cb7e68a3f31d222da 100644 (file)
@@ -70,6 +70,9 @@ util_dump_blend_factor(unsigned value, boolean shortened);
 const char *
 util_dump_blend_func(unsigned value, boolean shortened);
 
+const char *
+util_dump_logicop(unsigned value, boolean shortened);
+
 const char *
 util_dump_func(unsigned value, boolean shortened);
 
index c4ffc7ae35a9695c5763bd307fd737fec0d631a9..2492bf0d78557dfb660366cbf9fb7e1abc801ded 100644 (file)
@@ -159,6 +159,49 @@ util_dump_blend_func_short_names[] = {
 DEFINE_UTIL_DUMP_CONTINUOUS(blend_func)
 
 
+static const char *
+util_dump_logicop_names[] = {
+   "PIPE_LOGICOP_CLEAR",
+   "PIPE_LOGICOP_NOR",
+   "PIPE_LOGICOP_AND_INVERTED",
+   "PIPE_LOGICOP_COPY_INVERTED",
+   "PIPE_LOGICOP_AND_REVERSE",
+   "PIPE_LOGICOP_INVERT",
+   "PIPE_LOGICOP_XOR",
+   "PIPE_LOGICOP_NAND",
+   "PIPE_LOGICOP_AND",
+   "PIPE_LOGICOP_EQUIV",
+   "PIPE_LOGICOP_NOOP",
+   "PIPE_LOGICOP_OR_INVERTED",
+   "PIPE_LOGICOP_COPY",
+   "PIPE_LOGICOP_OR_REVERSE",
+   "PIPE_LOGICOP_OR",
+   "PIPE_LOGICOP_SET"
+};
+
+static const char *
+util_dump_logicop_short_names[] = {
+   "clear",
+   "nor",
+   "and_inverted",
+   "copy_inverted",
+   "and_reverse",
+   "invert",
+   "xor",
+   "nand",
+   "and",
+   "equiv",
+   "noop",
+   "or_inverted",
+   "copy",
+   "or_reverse",
+   "or",
+   "set"
+};
+
+DEFINE_UTIL_DUMP_CONTINUOUS(logicop)
+
+
 static const char *
 util_dump_func_names[] = {
    "PIPE_FUNC_NEVER",