radeon: make texture logging more useful
[mesa.git] / src / gallium / drivers / r600 / evergreen_compute.h
index db57520a74c1d4e3ffbf6aabdfd0c2783f42a90a..e6c6d8f100d39a6bc97ccb900e1b357313a7da34 100644 (file)
@@ -26,7 +26,6 @@
 
 #ifndef EVERGREEN_COMPUTE_H
 #define EVERGREEN_COMPUTE_H
-#include "r600.h"
 #include "r600_pipe.h"
 
 struct r600_atom;
@@ -54,20 +53,16 @@ void r600_compute_global_transfer_inline_write( struct pipe_context *, struct pi
                                                 unsigned usage, const struct pipe_box *, const void *data, unsigned stride, unsigned layer_stride);
 
 
-static inline void COMPUTE_DBG(const char *fmt, ...)
+static inline void COMPUTE_DBG(struct r600_screen *rscreen, const char *fmt, ...)
 {
-   static bool check_debug = false, debug = false;
+       if (!(rscreen->b.debug_flags & DBG_COMPUTE)) {
+               return;
+       }
 
-   if (!check_debug) {
-               debug = debug_get_bool_option("R600_COMPUTE_DEBUG", FALSE);
-   }
-
-   if (debug) {
-      va_list ap;
-      va_start(ap, fmt);
-      _debug_vprintf(fmt, ap);
-      va_end(ap);
-   }
+       va_list ap;
+       va_start(ap, fmt);
+       _debug_vprintf(fmt, ap);
+       va_end(ap);
 }
 
 #endif