freedreno/ir3: runtime enable RA debug for DEBUG builds
authorRob Clark <robclark@freedesktop.org>
Fri, 2 Jan 2015 14:28:23 +0000 (09:28 -0500)
committerRob Clark <robclark@freedesktop.org>
Thu, 8 Jan 2015 00:37:28 +0000 (19:37 -0500)
Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/ir3/ir3_ra.c

index 53b32743074346430db45ab78cf29f61a05bd810..611b5425466eda9ea5051ef192095fc135e9decc 100644 (file)
@@ -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) { \