Mesa (master): v3dv/device: do nothing when asked physical device pci bus properties

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Nov 9 13:02:00 UTC 2020


Module: Mesa
Branch: master
Commit: 25066eb20a23c023ed7cdeb99f7fed25c0294289
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=25066eb20a23c023ed7cdeb99f7fed25c0294289

Author: Alejandro Piñeiro <apinheiro at igalia.com>
Date:   Mon Nov  9 11:31:06 2020 +0100

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 <itoral at igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7497>

---

 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;



More information about the mesa-commit mailing list