radv: Fix gnu-empty-initializer error

Fixes the following builing error happening with clang:

../src/amd/vulkan/radv_pipeline.c:817:29: error: use of GNU empty initializer extension [-Werror,-Wgnu-empty-initializer]
   struct amd_stats stats = {};
                            ^
1 error generated.

Fixes: 325dfd80 ("radv,aco: switch to shader statistics framework")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35677>
This commit is contained in:
Mauro Rossi
2025-06-22 00:04:08 +02:00
committed by Marge Bot
parent 2754915f07
commit 28f7bb2418
+1 -1
View File
@@ -814,7 +814,7 @@ radv_GetPipelineExecutableStatisticsKHR(VkDevice _device, const VkPipelineExecut
VK_OUTARRAY_MAKE_TYPED(VkPipelineExecutableStatisticKHR, out, pStatistics, pStatisticCount);
struct amd_stats stats = {};
struct amd_stats stats = {0};
if (shader->statistics)
stats = *shader->statistics;
stats.driverhash = pipeline->pipeline_hash;