radeonsi: print new opt flags in si_dump_shader_key
authorMarek Olšák <marek.olsak@amd.com>
Mon, 21 Nov 2016 19:57:05 +0000 (20:57 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 23 Nov 2016 17:49:10 +0000 (18:49 +0100)
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_shader.c

index abe30e54a587ffea818739670a42d33069950b52..6228a68cdcc8d4c15b22b68e475a63f029a51219 100644 (file)
@@ -6332,6 +6332,15 @@ static void si_dump_shader_key(unsigned shader, struct si_shader_key *key,
        default:
                assert(0);
        }
+
+       if ((shader == PIPE_SHADER_GEOMETRY ||
+            shader == PIPE_SHADER_TESS_EVAL ||
+            shader == PIPE_SHADER_VERTEX) &&
+           !key->as_es && !key->as_ls) {
+               fprintf(f, "  opt.hw_vs.kill_outputs = 0x%"PRIx64"\n", key->opt.hw_vs.kill_outputs);
+               fprintf(f, "  opt.hw_vs.kill_outputs2 = 0x%x\n", key->opt.hw_vs.kill_outputs2);
+               fprintf(f, "  opt.hw_vs.clip_disable = %u\n", key->opt.hw_vs.clip_disable);
+       }
 }
 
 static void si_init_shader_ctx(struct si_shader_context *ctx,