[Mesa-dev] [PATCH 4/7] nir/print: show shader name/label if set
Rob Clark
robdclark at gmail.com
Fri Nov 6 08:35:22 PST 2015
From: Rob Clark <robclark at freedesktop.org>
Signed-off-by: Rob Clark <robclark at freedesktop.org>
---
src/glsl/nir/nir_print.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/glsl/nir/nir_print.c b/src/glsl/nir/nir_print.c
index 30220c5..bde7535 100644
--- a/src/glsl/nir/nir_print.c
+++ b/src/glsl/nir/nir_print.c
@@ -973,6 +973,12 @@ nir_print_shader(nir_shader *shader, FILE *fp)
fprintf(fp, "shader: %s\n", gl_shader_stage_name(shader->stage));
+ if (shader->info.name)
+ fprintf(fp, "name: %s\n", shader->info.name);
+
+ if (shader->info.label)
+ fprintf(fp, "label: %s\n", shader->info.label);
+
nir_foreach_variable(var, &shader->uniforms) {
print_var_decl(var, &state);
}
--
2.5.0
More information about the mesa-dev
mailing list