diff options
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/ir3_ra.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_ra.c b/src/gallium/drivers/freedreno/ir3/ir3_ra.c index 53b32743074..611b5425466 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_ra.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_ra.c @@ -60,7 +60,12 @@ struct ir3_ra_ctx { bool error; }; -#define ra_debug 0 +#ifdef DEBUG +# include "freedreno_util.h" +# define ra_debug (fd_mesa_debug & FD_DBG_OPTMSGS) +#else +# define ra_debug 0 +#endif #define ra_dump_list(msg, n) do { \ if (ra_debug) { \ |