Module: Mesa
Branch: main
Commit: 0b8ecb5406a2208f9666c91686c65b48cb9d9a50
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0b8ecb5406a2208f9666c91686c65b48cb9d9a50

Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Mar 18 13:25:56 2022 -0400

lavapipe: add a GetPhysicalDeviceToolPropertiesEXT stub

when no tools are loaded, this will otherwise crash

Reviewed-by: Dave Airlie <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15463>

---

 src/gallium/frontends/lavapipe/lvp_device.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/gallium/frontends/lavapipe/lvp_device.c 
b/src/gallium/frontends/lavapipe/lvp_device.c
index 221e3405b27..57af71a760a 100644
--- a/src/gallium/frontends/lavapipe/lvp_device.c
+++ b/src/gallium/frontends/lavapipe/lvp_device.c
@@ -2899,3 +2899,14 @@ VKAPI_ATTR void VKAPI_CALL 
lvp_GetDeviceGroupPeerMemoryFeaturesKHR(
 {
    *pPeerMemoryFeatures = 0;
 }
+
+/* VK_EXT_tooling_info */
+VKAPI_ATTR VkResult VKAPI_CALL
+lvp_GetPhysicalDeviceToolPropertiesEXT(
+   VkPhysicalDevice physicalDevice,
+   uint32_t *pToolCount,
+   VkPhysicalDeviceToolPropertiesEXT *pToolProperties)
+{
+   *pToolCount = 0;
+   return VK_SUCCESS;
+}

Reply via email to