Mesa (main): dzn: Add a dummy GetDeviceGroupPeerMemoryFeatures()
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jun 14 23:17:13 UTC 2022
Module: Mesa
Branch: main
Commit: cd8e322816325c06792f832ffe9e4f42719e4b0c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cd8e322816325c06792f832ffe9e4f42719e4b0c
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date: Tue Apr 19 11:01:41 2022 +0200
dzn: Add a dummy GetDeviceGroupPeerMemoryFeatures()
We don't support device groups, but Vulkan 1.1 requires a
GetDeviceGroupPeerMemoryFeatures() implementation, so let's just
advertise no peer-memory features.
Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16926>
---
src/microsoft/vulkan/dzn_device.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/microsoft/vulkan/dzn_device.c b/src/microsoft/vulkan/dzn_device.c
index f32532fca2c..8b6d939dfa0 100644
--- a/src/microsoft/vulkan/dzn_device.c
+++ b/src/microsoft/vulkan/dzn_device.c
@@ -2803,3 +2803,13 @@ dzn_DestroySampler(VkDevice device,
{
dzn_sampler_destroy(dzn_sampler_from_handle(sampler), pAllocator);
}
+
+VKAPI_ATTR void VKAPI_CALL
+dzn_GetDeviceGroupPeerMemoryFeatures(VkDevice device,
+ uint32_t heapIndex,
+ uint32_t localDeviceIndex,
+ uint32_t remoteDeviceIndex,
+ VkPeerMemoryFeatureFlags *pPeerMemoryFeatures)
+{
+ *pPeerMemoryFeatures = 0;
+}
More information about the mesa-commit
mailing list