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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user