-
-static inline void COMPUTE_DBG(const char *fmt, ...)
-{
- static bool check_debug = false, debug = false;
-
- 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);
- }
-}
-