Module: Mesa Branch: master Commit: d80d03b830c2d884271bd5d44012c39c54fee121 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d80d03b830c2d884271bd5d44012c39c54fee121
Author: Eric Anholt <[email protected]> Date: Thu Aug 4 13:30:10 2016 -0700 vc4: Dump the TGSI before trying to convert it to NIR. In the case of debugging a crash in TTN, this is nice to have. --- src/gallium/drivers/vc4/vc4_program.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c index 406910d..030643a 100644 --- a/src/gallium/drivers/vc4/vc4_program.c +++ b/src/gallium/drivers/vc4/vc4_program.c @@ -2155,16 +2155,15 @@ vc4_shader_state_create(struct pipe_context *pctx, so->program_id = vc4->next_uncompiled_program_id++; - nir_shader *s = tgsi_to_nir(cso->tokens, &nir_options); - if (vc4_debug & VC4_DEBUG_TGSI) { - fprintf(stderr, "%s prog %d TGSI:\n", - gl_shader_stage_name(s->stage), + fprintf(stderr, "prog %d TGSI:\n", so->program_id); tgsi_dump(cso->tokens, 0); fprintf(stderr, "\n"); } + nir_shader *s = tgsi_to_nir(cso->tokens, &nir_options); + NIR_PASS_V(s, nir_opt_global_to_local); NIR_PASS_V(s, nir_convert_to_ssa); NIR_PASS_V(s, nir_normalize_cubemap_coords); _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
