From: Rob Clark Date: Fri, 2 Jan 2015 14:28:23 +0000 (-0500) Subject: freedreno/ir3: runtime enable RA debug for DEBUG builds X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=212b9096431926d0bc823eadb865e20ad0623183;p=mesa.git freedreno/ir3: runtime enable RA debug for DEBUG builds Signed-off-by: Rob Clark --- 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) { \