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>
This commit is contained in:
Gert Wollny 2024-01-29 21:23:07 +01:00 committed by Marge Bot
parent f6383e03f9
commit ca47138fb1

View file

@ -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