freedreno/ir3: nir shader prints with 'disasm' debug option
authorRob Clark <robclark@freedesktop.org>
Sat, 5 Dec 2015 13:46:40 +0000 (08:46 -0500)
committerRob Clark <robclark@freedesktop.org>
Sat, 5 Dec 2015 13:48:19 +0000 (08:48 -0500)
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>
src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c

index 4278b0b5b5c9e77a82738a2aff5ff6936d8c6015..2723959cb5f41e03405e9b9abcb13ce626c7f9bc 100644 (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");