Module: Mesa Branch: master Commit: 212b9096431926d0bc823eadb865e20ad0623183 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=212b9096431926d0bc823eadb865e20ad0623183
Author: Rob Clark <robcl...@freedesktop.org> Date: Fri Jan 2 09:28:23 2015 -0500 freedreno/ir3: runtime enable RA debug for DEBUG builds Signed-off-by: Rob Clark <robcl...@freedesktop.org> --- 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 53b3274..611b542 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) { \ _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit