summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2015-11-04 10:05:32 -0500
committerRob Clark <[email protected]>2015-11-19 20:03:32 -0500
commitfec9367deb51003ccb74aca796e759502cfedfeb (patch)
treea6932d262c196bc60c403999624af4cf54186409
parent01e94d8d5d32d0debf35533180bf4633a139dd63 (diff)
nir/print: show # of uniforms/inputs/outputs
Signed-off-by: Rob Clark <[email protected]>
-rw-r--r--src/glsl/nir/nir_print.c4
1 files changed, 4 insertions, 0 deletions
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);
}