aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2015-01-02 09:28:23 -0500
committerRob Clark <[email protected]>2015-01-07 19:37:28 -0500
commit212b9096431926d0bc823eadb865e20ad0623183 (patch)
treea99795a815a7739dfb64615949c78f1bb3d04277 /src/gallium
parent8c3952051e26c644448fa607a7bdba97631728cb (diff)
freedreno/ir3: runtime enable RA debug for DEBUG builds
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/freedreno/ir3/ir3_ra.c7
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) { \