Mesa (main): radv: Kill unused fs_m local var in radv_create_shaders()
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jun 28 09:37:16 UTC 2022
Module: Mesa
Branch: main
Commit: d2bb3b11e5fc044b4bdf4b10501fa88638df9ad6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d2bb3b11e5fc044b4bdf4b10501fa88638df9ad6
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date: Wed Jun 22 23:27:43 2022 +0200
radv: Kill unused fs_m local var in radv_create_shaders()
Reviewed-by: Jason Ekstrand <jason.ekstrand at collabora.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17186>
---
src/amd/vulkan/radv_pipeline.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index f0ef432d06d..a5fe0cc3ebb 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -4648,7 +4648,6 @@ radv_create_shaders(struct radv_pipeline *pipeline, struct radv_pipeline_layout
uint32_t *num_stack_sizes,
gl_shader_stage *last_vgt_api_stage)
{
- struct vk_shader_module fs_m = {0};
const char *noop_fs_entrypoint = "noop_fs";
struct radv_shader_binary *binaries[MESA_VULKAN_SHADER_STAGES] = {NULL};
struct radv_shader_binary *gs_copy_binary = NULL;
@@ -5052,9 +5051,6 @@ radv_create_shaders(struct radv_pipeline *pipeline, struct radv_pipeline_layout
}
}
- if (fs_m.nir)
- ralloc_free(fs_m.nir);
-
done:
pipeline_feedback.duration = os_time_get_nano() - pipeline_start;
More information about the mesa-commit
mailing list