From 212b9096431926d0bc823eadb865e20ad0623183 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Fri, 2 Jan 2015 09:28:23 -0500 Subject: [PATCH] freedreno/ir3: runtime enable RA debug for DEBUG builds Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/ir3/ir3_ra.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) { \ -- 2.30.2