vc4: Dump NIR at shader state creation time as well.

I keep wanting to see this version of the NIR.
This commit is contained in:
Eric Anholt 2016-07-26 17:21:46 -07:00
parent 435d9595d3
commit 36b9eb82c1
1 changed files with 8 additions and 0 deletions

View File

@ -2173,6 +2173,14 @@ vc4_shader_state_create(struct pipe_context *pctx,
so->base.type = PIPE_SHADER_IR_NIR;
so->base.ir.nir = s;
if (vc4_debug & VC4_DEBUG_NIR) {
fprintf(stderr, "%s prog %d NIR:\n",
gl_shader_stage_name(s->stage),
so->program_id);
nir_print_shader(s, stderr);
fprintf(stderr, "\n");
}
return so;
}