[Mesa-dev] [PATCH 4/7] nir/print: show shader name/label if set
Jason Ekstrand
jason at jlekstrand.net
Fri Nov 6 15:21:40 PST 2015
Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>
On Fri, Nov 6, 2015 at 8:35 AM, Rob Clark <robdclark at gmail.com> wrote:
> 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