diff options
author | Rob Clark <[email protected]> | 2015-11-04 10:05:32 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2015-11-19 20:03:32 -0500 |
commit | fec9367deb51003ccb74aca796e759502cfedfeb (patch) | |
tree | a6932d262c196bc60c403999624af4cf54186409 /src/glsl/nir | |
parent | 01e94d8d5d32d0debf35533180bf4633a139dd63 (diff) |
nir/print: show # of uniforms/inputs/outputs
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/glsl/nir')
-rw-r--r-- | src/glsl/nir/nir_print.c | 4 |
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); } |