util: Dump PIPE_FUNC_x value names.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 19 Aug 2009 19:39:51 +0000 (20:39 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 29 Aug 2009 08:21:37 +0000 (09:21 +0100)
src/gallium/auxiliary/util/u_debug_dump.c
src/gallium/auxiliary/util/u_debug_dump.h

index 2f3d038bf37f422feb196cf9871837002f9a1b43..6bdecde048e8ddfcf22ab688277fe0c6cb3df30f 100644 (file)
@@ -160,3 +160,30 @@ debug_dump_blend_func_short_names[] = {
 };
 
 DEFINE_DEBUG_DUMP_CONTINUOUS(blend_func)
+
+
+static const char *
+debug_dump_func_names[] = {
+   "PIPE_FUNC_NEVER",
+   "PIPE_FUNC_LESS",
+   "PIPE_FUNC_EQUAL",
+   "PIPE_FUNC_LEQUAL",
+   "PIPE_FUNC_GREATER",
+   "PIPE_FUNC_NOTEQUAL",
+   "PIPE_FUNC_GEQUAL",
+   "PIPE_FUNC_ALWAYS"
+};
+
+static const char *
+debug_dump_func_short_names[] = {
+   "never",
+   "less",
+   "equal",
+   "less_equal",
+   "greater",
+   "not_equal",
+   "greater_equal",
+   "always"
+};
+
+DEFINE_DEBUG_DUMP_CONTINUOUS(func)
index e946d91555dfe94bc12c34750fe8b21d711e1e86..102935559c1868fe0316131293ff435c547008e1 100644 (file)
@@ -51,6 +51,8 @@ debug_dump_blend_factor(unsigned value, boolean shortened);
 const char *
 debug_dump_blend_func(unsigned value, boolean shortened);
 
+const char *
+debug_dump_func(unsigned value, boolean shortened);
 
 
 /* FIXME: Move the other debug_dump_xxx functions out of u_debug.h into here. */