}
-/**
- * Print PIPE_USAGE_x enum values with a message.
- */
-void
-debug_print_usage_enum(const char *msg, enum pipe_resource_usage usage)
-{
- static const struct debug_named_value names[] = {
- DEBUG_NAMED_VALUE(PIPE_USAGE_DEFAULT),
- DEBUG_NAMED_VALUE(PIPE_USAGE_IMMUTABLE),
- DEBUG_NAMED_VALUE(PIPE_USAGE_DYNAMIC),
- DEBUG_NAMED_VALUE(PIPE_USAGE_STREAM),
- DEBUG_NAMED_VALUE(PIPE_USAGE_STAGING),
- DEBUG_NAMED_VALUE_END
- };
-
- debug_printf("%s: %s\n", msg, debug_dump_enum(names, usage));
-}
-
-
#endif
void
debug_print_bind_flags(const char *msg, unsigned usage);
-void
-debug_print_usage_enum(const char *msg, enum pipe_resource_usage usage);
-
#ifdef __cplusplus
}
debug_printf("%s: %s\n", msg, util_format_name(fmt));
}
+
+/**
+ * Print PIPE_USAGE_x enum values with a message.
+ */
+void
+debug_print_usage_enum(const char *msg, enum pipe_resource_usage usage)
+{
+ static const struct debug_named_value names[] = {
+ DEBUG_NAMED_VALUE(PIPE_USAGE_DEFAULT),
+ DEBUG_NAMED_VALUE(PIPE_USAGE_IMMUTABLE),
+ DEBUG_NAMED_VALUE(PIPE_USAGE_DYNAMIC),
+ DEBUG_NAMED_VALUE(PIPE_USAGE_STREAM),
+ DEBUG_NAMED_VALUE(PIPE_USAGE_STAGING),
+ DEBUG_NAMED_VALUE_END
+ };
+
+ debug_printf("%s: %s\n", msg, debug_dump_enum(names, usage));
+}
+
#endif
#ifndef _U_DEBUG_GALLIUM_H_
#define _U_DEBUG_GALLIUM_H_
+#include "pipe/p_defines.h"
+
#ifdef __cplusplus
extern "C" {
#endif
#define debug_print_format(_msg, _fmt) ((void)0)
#endif
+#ifdef DEBUG
+
+void
+debug_print_usage_enum(const char *msg, enum pipe_resource_usage usage);
+
+#endif
+
#ifdef __cplusplus
}
#endif