This also appears to be unused.
Tested-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
}
-/**
- * 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
void
debug_print_transfer_flags(const char *msg, unsigned usage);
-void
-debug_print_bind_flags(const char *msg, unsigned usage);
-
-
#ifdef __cplusplus
}
#endif
}
+/**
+ * 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.
*/
#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);