summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2018-09-21 10:56:41 -0700
committerDylan Baker <[email protected]>2018-10-30 14:32:52 -0700
commitfc39dc984123bc3b2f65a76c6ef27af3dc03fb1e (patch)
tree016bcfded92d37d4f737f8fec326d840a0997b71 /src/gallium
parente4f1fea82118a5e9586fedf88f69d4456f72d2ad (diff)
gallium/util: move debug_print_bind_flags to u_debug_gallium
This also appears to be unused. Tested-by: Brian Paul <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/util/u_debug.c33
-rw-r--r--src/gallium/auxiliary/util/u_debug.h4
-rw-r--r--src/gallium/auxiliary/util/u_debug_gallium.c33
-rw-r--r--src/gallium/auxiliary/util/u_debug_gallium.h3
4 files changed, 36 insertions, 37 deletions
diff --git a/src/gallium/auxiliary/util/u_debug.c b/src/gallium/auxiliary/util/u_debug.c
index ece3cf74c18..7e28746890e 100644
--- a/src/gallium/auxiliary/util/u_debug.c
+++ b/src/gallium/auxiliary/util/u_debug.c
@@ -458,37 +458,4 @@ debug_print_transfer_flags(const char *msg, unsigned usage)
}
-/**
- * Print PIPE_BIND_x flags with a message.
- */
-void
-debug_print_bind_flags(const char *msg, unsigned usage)
-{
- static const struct debug_named_value names[] = {
- DEBUG_NAMED_VALUE(PIPE_BIND_DEPTH_STENCIL),
- DEBUG_NAMED_VALUE(PIPE_BIND_RENDER_TARGET),
- DEBUG_NAMED_VALUE(PIPE_BIND_BLENDABLE),
- DEBUG_NAMED_VALUE(PIPE_BIND_SAMPLER_VIEW),
- DEBUG_NAMED_VALUE(PIPE_BIND_VERTEX_BUFFER),
- DEBUG_NAMED_VALUE(PIPE_BIND_INDEX_BUFFER),
- DEBUG_NAMED_VALUE(PIPE_BIND_CONSTANT_BUFFER),
- DEBUG_NAMED_VALUE(PIPE_BIND_DISPLAY_TARGET),
- DEBUG_NAMED_VALUE(PIPE_BIND_STREAM_OUTPUT),
- DEBUG_NAMED_VALUE(PIPE_BIND_CURSOR),
- DEBUG_NAMED_VALUE(PIPE_BIND_CUSTOM),
- DEBUG_NAMED_VALUE(PIPE_BIND_GLOBAL),
- DEBUG_NAMED_VALUE(PIPE_BIND_SHADER_BUFFER),
- DEBUG_NAMED_VALUE(PIPE_BIND_SHADER_IMAGE),
- DEBUG_NAMED_VALUE(PIPE_BIND_COMPUTE_RESOURCE),
- DEBUG_NAMED_VALUE(PIPE_BIND_COMMAND_ARGS_BUFFER),
- DEBUG_NAMED_VALUE(PIPE_BIND_SCANOUT),
- DEBUG_NAMED_VALUE(PIPE_BIND_SHARED),
- DEBUG_NAMED_VALUE(PIPE_BIND_LINEAR),
- DEBUG_NAMED_VALUE_END
- };
-
- debug_printf("%s: %s\n", msg, debug_dump_flags(names, usage));
-}
-
-
#endif
diff --git a/src/gallium/auxiliary/util/u_debug.h b/src/gallium/auxiliary/util/u_debug.h
index 6cacec6740d..2b67a155482 100644
--- a/src/gallium/auxiliary/util/u_debug.h
+++ b/src/gallium/auxiliary/util/u_debug.h
@@ -464,10 +464,6 @@ debug_memory_end(unsigned long beginning);
void
debug_print_transfer_flags(const char *msg, unsigned usage);
-void
-debug_print_bind_flags(const char *msg, unsigned usage);
-
-
#ifdef __cplusplus
}
#endif
diff --git a/src/gallium/auxiliary/util/u_debug_gallium.c b/src/gallium/auxiliary/util/u_debug_gallium.c
index 389c8f848a5..0f2f86ec1cd 100644
--- a/src/gallium/auxiliary/util/u_debug_gallium.c
+++ b/src/gallium/auxiliary/util/u_debug_gallium.c
@@ -41,6 +41,39 @@ debug_print_format(const char *msg, unsigned fmt)
/**
+ * Print PIPE_BIND_x flags with a message.
+ */
+void
+debug_print_bind_flags(const char *msg, unsigned usage)
+{
+ static const struct debug_named_value names[] = {
+ DEBUG_NAMED_VALUE(PIPE_BIND_DEPTH_STENCIL),
+ DEBUG_NAMED_VALUE(PIPE_BIND_RENDER_TARGET),
+ DEBUG_NAMED_VALUE(PIPE_BIND_BLENDABLE),
+ DEBUG_NAMED_VALUE(PIPE_BIND_SAMPLER_VIEW),
+ DEBUG_NAMED_VALUE(PIPE_BIND_VERTEX_BUFFER),
+ DEBUG_NAMED_VALUE(PIPE_BIND_INDEX_BUFFER),
+ DEBUG_NAMED_VALUE(PIPE_BIND_CONSTANT_BUFFER),
+ DEBUG_NAMED_VALUE(PIPE_BIND_DISPLAY_TARGET),
+ DEBUG_NAMED_VALUE(PIPE_BIND_STREAM_OUTPUT),
+ DEBUG_NAMED_VALUE(PIPE_BIND_CURSOR),
+ DEBUG_NAMED_VALUE(PIPE_BIND_CUSTOM),
+ DEBUG_NAMED_VALUE(PIPE_BIND_GLOBAL),
+ DEBUG_NAMED_VALUE(PIPE_BIND_SHADER_BUFFER),
+ DEBUG_NAMED_VALUE(PIPE_BIND_SHADER_IMAGE),
+ DEBUG_NAMED_VALUE(PIPE_BIND_COMPUTE_RESOURCE),
+ DEBUG_NAMED_VALUE(PIPE_BIND_COMMAND_ARGS_BUFFER),
+ DEBUG_NAMED_VALUE(PIPE_BIND_SCANOUT),
+ DEBUG_NAMED_VALUE(PIPE_BIND_SHARED),
+ DEBUG_NAMED_VALUE(PIPE_BIND_LINEAR),
+ DEBUG_NAMED_VALUE_END
+ };
+
+ debug_printf("%s: %s\n", msg, debug_dump_flags(names, usage));
+}
+
+
+/**
* Print PIPE_USAGE_x enum values with a message.
*/
void
diff --git a/src/gallium/auxiliary/util/u_debug_gallium.h b/src/gallium/auxiliary/util/u_debug_gallium.h
index 1e725275834..450137217b6 100644
--- a/src/gallium/auxiliary/util/u_debug_gallium.h
+++ b/src/gallium/auxiliary/util/u_debug_gallium.h
@@ -44,6 +44,9 @@ void debug_print_format(const char *msg, unsigned fmt);
#ifdef DEBUG
void
+debug_print_bind_flags(const char *msg, unsigned usage);
+
+void
debug_print_usage_enum(const char *msg, enum pipe_resource_usage usage);
#endif