freedreno/ir3: runtime enable RA debug for DEBUG builds

Signed-off-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
Rob Clark 2015-01-02 09:28:23 -05:00
parent 8c3952051e
commit 212b909643
1 changed files with 6 additions and 1 deletions

View 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) { \