Mesa (gallium-llvmpipe): util: Dump PIPE_FUNC_x value names.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Wed Aug 19 19:46:13 UTC 2009


Module: Mesa
Branch: gallium-llvmpipe
Commit: 081d35142e5feee66f2e55a42d0f7b23202d1dc9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=081d35142e5feee66f2e55a42d0f7b23202d1dc9

Author: José Fonseca <jfonseca at vmware.com>
Date:   Wed Aug 19 20:39:51 2009 +0100

util: Dump PIPE_FUNC_x value names.

---

 src/gallium/auxiliary/util/u_debug_dump.c |   27 +++++++++++++++++++++++++++
 src/gallium/auxiliary/util/u_debug_dump.h |    2 ++
 2 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_debug_dump.c b/src/gallium/auxiliary/util/u_debug_dump.c
index 2f3d038..6bdecde 100644
--- a/src/gallium/auxiliary/util/u_debug_dump.c
+++ b/src/gallium/auxiliary/util/u_debug_dump.c
@@ -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)
diff --git a/src/gallium/auxiliary/util/u_debug_dump.h b/src/gallium/auxiliary/util/u_debug_dump.h
index e946d91..1029355 100644
--- a/src/gallium/auxiliary/util/u_debug_dump.h
+++ b/src/gallium/auxiliary/util/u_debug_dump.h
@@ -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. */




More information about the mesa-commit mailing list