summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2015-10-26 13:29:45 -0400
committerRob Clark <[email protected]>2015-11-19 20:03:32 -0500
commit01e94d8d5d32d0debf35533180bf4633a139dd63 (patch)
treeaf215a77d5d1326464c95ad4c4ce13eb6d835660 /src/glsl
parent006e4f070f08ff1e1731863940bc51de9e97b865 (diff)
nir/print: show shader name/label if set
Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/nir/nir_print.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glsl/nir/nir_print.c b/src/glsl/nir/nir_print.c
index f7f5fdf3181..c4160e6b50f 100644
--- a/src/glsl/nir/nir_print.c
+++ b/src/glsl/nir/nir_print.c
@@ -977,6 +977,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);
}