mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
radv: Fix gnu-empty-initializer errors in 480a94fb
Fixes the following building errors:
../src/amd/vulkan/radv_shader.c:3460:42: error: use of GNU empty initializer extension [-Werror,-Wgnu-empty-initializer]
struct radv_shader_debug_info debug = {};
^
1 error generated.
../src/amd/vulkan/radv_shader_args.c:975:43: error: use of GNU empty initializer extension [-Werror,-Wgnu-empty-initializer]
struct user_sgpr_info user_sgpr_info = {};
^
1 error generated.
Fixes: 480a94fb ("radv: Gather debug info about shader args")
(cherry picked from commit 46d396d9d8)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41104>
This commit is contained in:
parent
b8e9e83bbe
commit
250aaa9f44
3 changed files with 3 additions and 3 deletions
|
|
@ -2024,7 +2024,7 @@
|
|||
"description": "radv: Fix gnu-empty-initializer errors in 480a94fb",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "480a94fb16ab87bffcade54389a588082120f0bb",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -3457,7 +3457,7 @@ radv_create_trap_handler_shader(struct radv_device *device)
|
|||
info.type = RADV_SHADER_TYPE_TRAP_HANDLER;
|
||||
|
||||
struct radv_shader_args args;
|
||||
struct radv_shader_debug_info debug = {};
|
||||
struct radv_shader_debug_info debug = {0};
|
||||
radv_declare_shader_args(device, NULL, &info, stage, MESA_SHADER_NONE, &args, &debug);
|
||||
|
||||
#if AMD_LLVM_AVAILABLE
|
||||
|
|
|
|||
|
|
@ -972,7 +972,7 @@ radv_declare_shader_args(const struct radv_device *device, const struct radv_gra
|
|||
.args = args,
|
||||
};
|
||||
|
||||
struct user_sgpr_info user_sgpr_info = {};
|
||||
struct user_sgpr_info user_sgpr_info = {0};
|
||||
|
||||
if (!mesa_shader_stage_is_rt(stage)) {
|
||||
declare_shader_args(&state, device, gfx_state, info, stage, previous_stage, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue