#ifndef EVERGREEN_COMPUTE_H
#define EVERGREEN_COMPUTE_H
-#include "r600.h"
#include "r600_pipe.h"
struct r600_atom;
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