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

Author: Boris Brezillon <[email protected]>
Date:   Tue Apr 19 11:02:48 2022 +0200

dzn: Add a dummy GetImageSparseMemoryRequirements2()

We don't support sparse memory yet, but this function needs to be
present.

Reviewed-by: Erik Faye-Lund <[email protected]>
Reviewed-by: Jesse Natalie <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16926>

---

 src/microsoft/vulkan/dzn_device.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/microsoft/vulkan/dzn_device.c 
b/src/microsoft/vulkan/dzn_device.c
index 8b6d939dfa0..002bd14edfc 100644
--- a/src/microsoft/vulkan/dzn_device.c
+++ b/src/microsoft/vulkan/dzn_device.c
@@ -2813,3 +2813,12 @@ dzn_GetDeviceGroupPeerMemoryFeatures(VkDevice device,
 {
    *pPeerMemoryFeatures = 0;
 }
+
+VKAPI_ATTR void VKAPI_CALL
+dzn_GetImageSparseMemoryRequirements2(VkDevice device,
+                                      const 
VkImageSparseMemoryRequirementsInfo2* pInfo,
+                                      uint32_t *pSparseMemoryRequirementCount,
+                                      VkSparseImageMemoryRequirements2 
*pSparseMemoryRequirements)
+{
+   *pSparseMemoryRequirementCount = 0;
+}

Reply via email to