From 01e94d8d5d32d0debf35533180bf4633a139dd63 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Mon, 26 Oct 2015 13:29:45 -0400 Subject: [PATCH] nir/print: show shader name/label if set Signed-off-by: Rob Clark Reviewed-by: Jason Ekstrand --- 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 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); } -- 2.30.2