From fec9367deb51003ccb74aca796e759502cfedfeb Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Wed, 4 Nov 2015 10:05:32 -0500 Subject: nir/print: show # of uniforms/inputs/outputs Signed-off-by: Rob Clark --- src/glsl/nir/nir_print.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/glsl/nir') diff --git a/src/glsl/nir/nir_print.c b/src/glsl/nir/nir_print.c index c4160e6b50f..54b8cc64a9b 100644 --- a/src/glsl/nir/nir_print.c +++ b/src/glsl/nir/nir_print.c @@ -983,6 +983,10 @@ nir_print_shader(nir_shader *shader, FILE *fp) if (shader->info.label) fprintf(fp, "label: %s\n", shader->info.label); + fprintf(fp, "inputs: %u\n", shader->num_inputs); + fprintf(fp, "outputs: %u\n", shader->num_outputs); + fprintf(fp, "uniforms: %u\n", shader->num_uniforms); + nir_foreach_variable(var, &shader->uniforms) { print_var_decl(var, &state); } -- cgit v1.2.3