From f63e83676daa52809229d55675947baa3963fbb0 Mon Sep 17 00:00:00 2001 From: Mauro Rossi Date: Thu, 2 Apr 2026 17:27:25 -0400 Subject: [PATCH] radv: Fix gnu-empty-initializer error in radv_pipeline_graphics.c Fixes the following building error happening with clang: FAILED: src/amd/vulkan/libvulkan_radeon.so.p/radv_pipeline_graphics.c.o ... ../src/amd/vulkan/radv_pipeline_graphics.c:3199:69: error: use of GNU empty initializer extension [-Werror,-Wgnu-empty-initializer] struct radv_shader_debug_info debug[MESA_VULKAN_SHADER_STAGES] = {}; ^ ../src/amd/vulkan/radv_pipeline_graphics.c:3200:50: error: use of GNU empty initializer extension [-Werror,-Wgnu-empty-initializer] struct radv_shader_debug_info gs_copy_debug = {}; ^ 2 errors generated. Fixes: 2260105b ("radv: move radv_shader_create out of radv_graphics_shaders_compile") Reviewed-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_pipeline_graphics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_pipeline_graphics.c b/src/amd/vulkan/radv_pipeline_graphics.c index 1656ba9ff2c..6c60b705f3e 100644 --- a/src/amd/vulkan/radv_pipeline_graphics.c +++ b/src/amd/vulkan/radv_pipeline_graphics.c @@ -3196,8 +3196,8 @@ radv_graphics_pipeline_compile(struct radv_graphics_pipeline *pipeline, const Vk const bool noop_fs = radv_pipeline_needs_noop_fs(pipeline, &gfx_state->key.gfx_state); - struct radv_shader_debug_info debug[MESA_VULKAN_SHADER_STAGES] = {}; - struct radv_shader_debug_info gs_copy_debug = {}; + struct radv_shader_debug_info debug[MESA_VULKAN_SHADER_STAGES] = {0}; + struct radv_shader_debug_info gs_copy_debug = {0}; radv_graphics_shaders_compile(device, cache, stages, &gfx_state->key.gfx_state, keep_executable_info, keep_statistic_info, pipeline->base.is_internal, retained_shaders, noop_fs, debug, binaries, &gs_copy_debug, &gs_copy_binary);