radv: Kill unused fs_m local var in radv_create_shaders()
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 22 Jun 2022 21:27:43 +0000 (23:27 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 28 Jun 2022 09:07:32 +0000 (09:07 +0000)
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17186>

src/amd/vulkan/radv_pipeline.c

index f0ef432..a5fe0cc 100644 (file)
@@ -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;