freedreno/ir3: nir shader prints with 'disasm' debug option

Move these to 'disasm' instead of the more verbose 'optmsgs' since, like
the tgsi dumps, it is useful without the more verbose compiler logging
enabled.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
Rob Clark 2015-12-05 08:46:40 -05:00
parent a3f90ef0a6
commit 58efff89a2

View file

@ -163,7 +163,7 @@ static struct nir_shader *to_nir(struct ir3_compile *ctx,
struct nir_shader *s = tgsi_to_nir(tokens, &options);
if (fd_mesa_debug & FD_DBG_OPTMSGS) {
if (fd_mesa_debug & FD_DBG_DISASM) {
debug_printf("----------------------\n");
nir_print_shader(s, stdout);
debug_printf("----------------------\n");
@ -201,7 +201,7 @@ static struct nir_shader *to_nir(struct ir3_compile *ctx,
nir_remove_dead_variables(s);
nir_validate_shader(s);
if (fd_mesa_debug & FD_DBG_OPTMSGS) {
if (fd_mesa_debug & FD_DBG_DISASM) {
debug_printf("----------------------\n");
nir_print_shader(s, stdout);
debug_printf("----------------------\n");