mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 02:40:11 +01:00
anv/android: disable shared representable image support explicitly
Android 9 loader conditionally advertises VK_KHR_shared_presentable_image
extension based on this property and it looks like it does not
initialize the struct before query.
Pragmas are added to ignore warnings with Android specific structure
types in same manner as commit 8d386e6eef did.
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
39a90749af
commit
5e38db0c47
1 changed files with 10 additions and 0 deletions
|
|
@ -1576,6 +1576,16 @@ void anv_GetPhysicalDeviceProperties2(
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wswitch"
|
||||||
|
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENTATION_PROPERTIES_ANDROID: {
|
||||||
|
VkPhysicalDevicePresentationPropertiesANDROID *props =
|
||||||
|
(VkPhysicalDevicePresentationPropertiesANDROID *)ext;
|
||||||
|
props->sharedImage = VK_FALSE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_PROPERTIES: {
|
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_PROPERTIES: {
|
||||||
VkPhysicalDeviceProtectedMemoryProperties *props =
|
VkPhysicalDeviceProtectedMemoryProperties *props =
|
||||||
(VkPhysicalDeviceProtectedMemoryProperties *)ext;
|
(VkPhysicalDeviceProtectedMemoryProperties *)ext;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue