mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
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.
This commit is contained in:
parent
c0be51f270
commit
d80d03b830
1 changed files with 3 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue