From: Chad Versace Date: Thu, 14 Jan 2016 02:09:01 +0000 (-0800) Subject: anv/meta: Name the nir shaders X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=13610c03a712fac8110aa77bf19712846e394c40;p=mesa.git anv/meta: Name the nir shaders The names appear in debug output. --- diff --git a/src/vulkan/anv_meta.c b/src/vulkan/anv_meta.c index 3cbb3a65f22..3ddeab1ef2d 100644 --- a/src/vulkan/anv_meta.c +++ b/src/vulkan/anv_meta.c @@ -42,6 +42,7 @@ build_nir_vertex_shader(bool attr_flat) const struct glsl_type *vertex_type = glsl_vec4_type(); nir_builder_init_simple_shader(&b, NULL, MESA_SHADER_VERTEX, NULL); + b.shader->info.name = ralloc_strdup(b.shader, "meta_blit_vs"); nir_variable *pos_in = nir_variable_create(b.shader, nir_var_shader_in, vertex_type, "a_pos"); @@ -74,6 +75,7 @@ build_nir_copy_fragment_shader(enum glsl_sampler_dim tex_dim) nir_builder b; nir_builder_init_simple_shader(&b, NULL, MESA_SHADER_FRAGMENT, NULL); + b.shader->info.name = ralloc_strdup(b.shader, "meta_blit_fs"); const struct glsl_type *color_type = glsl_vec4_type(); diff --git a/src/vulkan/anv_meta_clear.c b/src/vulkan/anv_meta_clear.c index 9a572ba984b..5eea02380d8 100644 --- a/src/vulkan/anv_meta_clear.c +++ b/src/vulkan/anv_meta_clear.c @@ -69,6 +69,9 @@ build_color_shaders(struct nir_shader **out_vs, nir_builder_init_simple_shader(&vs_b, NULL, MESA_SHADER_VERTEX, NULL); nir_builder_init_simple_shader(&fs_b, NULL, MESA_SHADER_FRAGMENT, NULL); + vs_b.shader->info.name = ralloc_strdup(vs_b.shader, "meta_clear_color_vs"); + fs_b.shader->info.name = ralloc_strdup(fs_b.shader, "meta_clear_color_fs"); + const struct glsl_type *position_type = glsl_vec4_type(); const struct glsl_type *color_type = glsl_vec4_type(); @@ -381,6 +384,9 @@ build_depthstencil_shaders(struct nir_shader **out_vs, nir_builder_init_simple_shader(&vs_b, NULL, MESA_SHADER_VERTEX, NULL); nir_builder_init_simple_shader(&fs_b, NULL, MESA_SHADER_FRAGMENT, NULL); + vs_b.shader->info.name = ralloc_strdup(vs_b.shader, "meta_clear_depthstencil_vs"); + fs_b.shader->info.name = ralloc_strdup(fs_b.shader, "meta_clear_depthstencil_fs"); + const struct glsl_type *position_type = glsl_vec4_type(); nir_variable *vs_in_pos =