mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-04 15:00:36 +01:00
radv/rt: Fix gnu-empty-initializer error in radv_pipeline_rt.c
Fixes the following building error happening with clang:
FAILED: src/amd/vulkan/libvulkan_radeon.so.p/radv_pipeline_rt.c.o
...
../src/amd/vulkan/radv_pipeline_rt.c:934:38: error: use of GNU empty initializer extension [-Werror,-Wgnu-empty-initializer]
struct nir_function raygen_stub = {};
^
1 error generated.
Fixes: 0a1911b2 ("radv,aco: Use function call structure for RT programs")
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39370>
This commit is contained in:
parent
ba43568f4b
commit
197cb437cd
1 changed files with 1 additions and 1 deletions
|
|
@ -931,7 +931,7 @@ static void
|
|||
compile_rt_prolog(struct radv_device *device, struct radv_ray_tracing_pipeline *pipeline)
|
||||
{
|
||||
const struct radv_physical_device *pdev = radv_device_physical(device);
|
||||
struct nir_function raygen_stub = {};
|
||||
struct nir_function raygen_stub = {0};
|
||||
uint32_t push_constant_size = 0;
|
||||
|
||||
/* Create a dummy function signature for raygen shaders in order to pass parameter info to the prolog */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue