diff options
author | Eric Anholt <[email protected]> | 2016-07-26 17:21:46 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2016-08-03 10:25:08 -0700 |
commit | 36b9eb82c1077af4e30182e13e77e6890ad30105 (patch) | |
tree | de95531e5a145327f90ad320d56cced516bc5686 /src | |
parent | 435d9595d38981187a2eaa025fc437cfc1295107 (diff) |
vc4: Dump NIR at shader state creation time as well.
I keep wanting to see this version of the NIR.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_program.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c index 9057b86068e..0afd8c6e36e 100644 --- a/src/gallium/drivers/vc4/vc4_program.c +++ b/src/gallium/drivers/vc4/vc4_program.c @@ -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; } |