mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 15:48:36 +02:00
radv: Fix compilation with gcc-13 and tsan enabled
../src/amd/vulkan/radv_sampler.c: In function ‘radv_tex_wrap’:
../src/amd/vulkan/radv_sampler.c:50:1: error: control reaches end of non-void function [-Werror=return-type]
50 | }
| ^
../src/amd/vulkan/radv_sampler.c: In function ‘radv_tex_compare’:
../src/amd/vulkan/radv_sampler.c:76:1: error: control reaches end of non-void function [-Werror=return-type]
76 | }
| ^
Fixes: 4de305cb8a
radv: move sampler related code to radv_sampler.c
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27345>
(cherry picked from commit ca47138fb1)
This commit is contained in:
parent
f135adb82a
commit
22a21925e4
2 changed files with 3 additions and 1 deletions
|
|
@ -654,7 +654,7 @@
|
|||
"description": "radv: Fix compilation with gcc-13 and tsan enabled",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "4de305cb8a3c68df8e89f8c1359f510a1089cfd3",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ radv_tex_wrap(VkSamplerAddressMode address_mode)
|
|||
unreachable("illegal tex wrap mode");
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
static unsigned
|
||||
|
|
@ -73,6 +74,7 @@ radv_tex_compare(VkCompareOp op)
|
|||
unreachable("illegal compare mode");
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
static unsigned
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue