diff options
author | Jason Ekstrand <[email protected]> | 2015-10-05 16:54:36 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-10-19 08:45:14 -0700 |
commit | 5d4bc5ec1339fcdafae957e3473f3c2c9931bb23 (patch) | |
tree | 96565f2f66a18e5fb4a1345f4097d7efd56ac12c /src/glsl/nir/glsl_to_nir.cpp | |
parent | e00314bc57a59b3f816daba6249e7b7157761f86 (diff) |
nir: Add a label to nir_shader_info
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/glsl/nir/glsl_to_nir.cpp')
-rw-r--r-- | src/glsl/nir/glsl_to_nir.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/nir/glsl_to_nir.cpp b/src/glsl/nir/glsl_to_nir.cpp index cf5bb9360c8..edc6f5bd9b4 100644 --- a/src/glsl/nir/glsl_to_nir.cpp +++ b/src/glsl/nir/glsl_to_nir.cpp @@ -151,6 +151,8 @@ glsl_to_nir(const struct gl_shader_program *shader_prog, num_textures = i; shader->info.name = ralloc_asprintf(shader, "GLSL%d", shader_prog->Name); + if (shader_prog->Label) + shader->info.label = ralloc_strdup(shader, shader_prog->Label); shader->info.num_textures = num_textures; shader->info.num_ubos = sh->NumUniformBlocks; shader->info.num_abos = shader_prog->NumAtomicBuffers; |