[Mesa-dev] [PATCH 5/7] nir/print: show # of uniforms/inputs/outputs
Rob Clark
robdclark at gmail.com
Fri Nov 6 08:35:23 PST 2015
From: Rob Clark <robclark at freedesktop.org>
Signed-off-by: Rob Clark <robclark at freedesktop.org>
---
src/glsl/nir/nir_print.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/glsl/nir/nir_print.c b/src/glsl/nir/nir_print.c
index bde7535..a110945 100644
--- a/src/glsl/nir/nir_print.c
+++ b/src/glsl/nir/nir_print.c
@@ -979,6 +979,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);
}
--
2.5.0
More information about the mesa-dev
mailing list