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 commitca47138fb1
)
This commit is contained in:

committed by
Eric Engestrom

parent
2747acc06d
commit
0089a659bf
@@ -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
|
||||
|
Reference in New Issue
Block a user