From 25066eb20a23c023ed7cdeb99f7fed25c0294289 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Pi=C3=B1eiro?= Date: Mon, 9 Nov 2020 11:31:06 +0100 Subject: [PATCH] v3dv/device: do nothing when asked physical device pci bus properties When calling GetPhysicalDeviceProperties2 we were ignoring and logging the structures for extensions not supported. But for the case of VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PCI_BUS_INFO_PROPERTIES_EXT we already know that we are not going to support it, so let's just do nothing (not even logging) when passed. Reviewed-by: Iago Toral Quiroga Part-of: --- src/broadcom/vulkan/v3dv_device.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/broadcom/vulkan/v3dv_device.c b/src/broadcom/vulkan/v3dv_device.c index 4e63a205c4c..3e1078d922c 100644 --- a/src/broadcom/vulkan/v3dv_device.c +++ b/src/broadcom/vulkan/v3dv_device.c @@ -981,6 +981,11 @@ v3dv_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice, id_props->deviceLUIDValid = false; break; } + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PCI_BUS_INFO_PROPERTIES_EXT: + /* Do nothing, not even logging. This is a non-PCI device, so we will + * never provide this extension. + */ + break; default: v3dv_debug_ignored_stype(ext->sType); break;