summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_dump.h
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-07-27 11:40:25 +0200
committerNicolai Hähnle <[email protected]>2017-08-02 09:46:24 +0200
commit16923e42a419048b61b72f8fdae2aed32cf1212a (patch)
treeef99ab2dd714d518afe9db2b48ed7b673d5ccd90 /src/gallium/auxiliary/util/u_dump.h
parenta677799e51a8d3651a8c963dac0a09ff0b282d63 (diff)
gallium: rename util_dump_* to util_str_* for enum-to-string conversion
This is mostly mechanical search-and-replace, plus touching up the macros in u_dump_defines.c manually a bit. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_dump.h')
-rw-r--r--src/gallium/auxiliary/util/u_dump.h26
1 files changed, 11 insertions, 15 deletions
diff --git a/src/gallium/auxiliary/util/u_dump.h b/src/gallium/auxiliary/util/u_dump.h
index 408c270040f..de7a451f77d 100644
--- a/src/gallium/auxiliary/util/u_dump.h
+++ b/src/gallium/auxiliary/util/u_dump.h
@@ -52,44 +52,40 @@ extern "C" {
/*
* p_defines.h
- *
- * XXX: These functions don't really dump anything -- just translate into
- * strings so a verb better than "dump" should be used instead, in order to
- * free up the namespace to the true dumper functions.
*/
const char *
-util_dump_blend_factor(unsigned value, boolean shortened);
+util_str_blend_factor(unsigned value, boolean shortened);
const char *
-util_dump_blend_func(unsigned value, boolean shortened);
+util_str_blend_func(unsigned value, boolean shortened);
const char *
-util_dump_logicop(unsigned value, boolean shortened);
+util_str_logicop(unsigned value, boolean shortened);
const char *
-util_dump_func(unsigned value, boolean shortened);
+util_str_func(unsigned value, boolean shortened);
const char *
-util_dump_stencil_op(unsigned value, boolean shortened);
+util_str_stencil_op(unsigned value, boolean shortened);
const char *
-util_dump_tex_target(unsigned value, boolean shortened);
+util_str_tex_target(unsigned value, boolean shortened);
const char *
-util_dump_tex_wrap(unsigned value, boolean shortened);
+util_str_tex_wrap(unsigned value, boolean shortened);
const char *
-util_dump_tex_mipfilter(unsigned value, boolean shortened);
+util_str_tex_mipfilter(unsigned value, boolean shortened);
const char *
-util_dump_tex_filter(unsigned value, boolean shortened);
+util_str_tex_filter(unsigned value, boolean shortened);
const char *
-util_dump_query_type(unsigned value, boolean shortened);
+util_str_query_type(unsigned value, boolean shortened);
const char *
-util_dump_prim_mode(unsigned value, boolean shortened);
+util_str_prim_mode(unsigned value, boolean shortened);
/*