gallium/util: move debug_print_tranfer_flags to u_debug_galilum
authorDylan Baker <dylan@pnwbakers.com>
Fri, 21 Sep 2018 18:07:57 +0000 (11:07 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Tue, 30 Oct 2018 21:32:52 +0000 (14:32 -0700)
This also appears to be unused.

Tested-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/util/u_debug.c
src/gallium/auxiliary/util/u_debug.h
src/gallium/auxiliary/util/u_debug_gallium.c
src/gallium/auxiliary/util/u_debug_gallium.h

index 7e28746890eb869dd2920fab6731abe711b3b3f7..081ff10f21010b9c6eea4f31d7b04629bcb21504 100644 (file)
@@ -31,7 +31,6 @@
 
 #include "pipe/p_compiler.h"
 #include "util/u_debug.h"
-#include "util/u_dump.h"
 #include "pipe/p_format.h"
 #include "pipe/p_state.h"
 #include "util/u_inlines.h"
@@ -442,20 +441,3 @@ debug_funclog_enter_exit(const char* f, UNUSED const int line,
    debug_printf("%s\n", f);
 }
 #endif
-
-
-
-#ifdef DEBUG
-/**
- * Print PIPE_TRANSFER_x flags with a message.
- */
-void
-debug_print_transfer_flags(const char *msg, unsigned usage)
-{
-   debug_printf("%s: ", msg);
-   util_dump_transfer_usage(stdout, usage);
-   printf("\n");
-}
-
-
-#endif
index 2b67a155482d89f36ede2f31101ab47acc1176b3..5be648e3f20995b97b41330e4bad36b286a6b71b 100644 (file)
@@ -461,9 +461,6 @@ void
 debug_memory_end(unsigned long beginning);
 
 
-void
-debug_print_transfer_flags(const char *msg, unsigned usage);
-
 #ifdef __cplusplus
 }
 #endif
index 0f2f86ec1cda17a2054ebe4e9d9143c1a69039c2..9dad0c27c554129c301ead544d956bcc6e4c87b1 100644 (file)
@@ -29,6 +29,7 @@
 
 #include "util/u_debug.h"
 #include "u_debug_gallium.h"
+#include "u_dump.h"
 #include "u_format.h"
 
 #ifdef DEBUG
@@ -40,6 +41,18 @@ debug_print_format(const char *msg, unsigned fmt)
 }
 
 
+/**
+ * Print PIPE_TRANSFER_x flags with a message.
+ */
+void
+debug_print_transfer_flags(const char *msg, unsigned usage)
+{
+   debug_printf("%s: ", msg);
+   util_dump_transfer_usage(stdout, usage);
+   printf("\n");
+}
+
+
 /**
  * Print PIPE_BIND_x flags with a message.
  */
index 450137217b6f7e8ab6a2f87d14499616caafc684..df4e919c803d5118fc743bcecb6d5c431684eda5 100644 (file)
@@ -43,6 +43,9 @@ void debug_print_format(const char *msg, unsigned fmt);
 
 #ifdef DEBUG
 
+void
+debug_print_transfer_flags(const char *msg, unsigned usage);
+
 void
 debug_print_bind_flags(const char *msg, unsigned usage);