From: Rob Clark Date: Mon, 26 Oct 2015 17:29:45 +0000 (-0400) Subject: nir/print: show shader name/label if set X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=01e94d8d5d32d0debf35533180bf4633a139dd63;p=mesa.git nir/print: show shader name/label if set Signed-off-by: Rob Clark Reviewed-by: Jason Ekstrand --- 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); }