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:
@@ -169,7 +169,7 @@ vk_common_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice,
|
|||||||
% endfor
|
% endfor
|
||||||
|
|
||||||
vk_foreach_struct(ext, pProperties->pNext) {
|
vk_foreach_struct(ext, pProperties->pNext) {
|
||||||
switch (ext->sType) {
|
switch ((int32_t)ext->sType) {
|
||||||
% for property_struct in property_structs:
|
% for property_struct in property_structs:
|
||||||
% if property_struct.is_android:
|
% if property_struct.is_android:
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
|
Reference in New Issue
Block a user