From 5e38db0c47ca57c6e904f44d0d0e9ef299d14f3c Mon Sep 17 00:00:00 2001 From: Tapani Pälli Date: Thu, 8 Aug 2019 14:57:14 +0300 Subject: anv/android: disable shared representable image support explicitly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 8d386e6eef8 did. Signed-off-by: Tapani Pälli Acked-by: Jason Ekstrand --- src/intel/vulkan/anv_device.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/intel') diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 9a5dba040cc..a41f602f023 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -1576,6 +1576,16 @@ void anv_GetPhysicalDeviceProperties2( 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: { VkPhysicalDeviceProtectedMemoryProperties *props = (VkPhysicalDeviceProtectedMemoryProperties *)ext; -- cgit v1.2.3