vulkan: cast to avoid -Wswitch for Android struct beyond VkStructureType

Fixes: 1afbf0ba4a ("vulkan/properties: support Android in the property generator")
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Tested-by: Oskar Viljasaar <oskar.viljasaar@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29180>
This commit is contained in:
Yiwei Zhang
2024-05-13 22:15:33 +00:00
committed by Marge Bot
parent c522848d5a
commit b1e2293f8c

View File

@@ -169,7 +169,7 @@ vk_common_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice,
% endfor
vk_foreach_struct(ext, pProperties->pNext) {
switch (ext->sType) {
switch ((int32_t)ext->sType) {
% for property_struct in property_structs:
% if property_struct.is_android:
#ifdef ANDROID