Mesa (master): anv: Add support for protected memory properties on anv_GetPhysicalDeviceProperties2()
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Aug 27 07:11:42 UTC 2018
Module: Mesa
Branch: master
Commit: 59a8e0dbf855d390e96a88d859f0d120dfc34404
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=59a8e0dbf855d390e96a88d859f0d120dfc34404
Author: Samuel Iglesias Gonsálvez <siglesias at igalia.com>
Date: Fri Aug 24 12:11:49 2018 +0200
anv: Add support for protected memory properties on anv_GetPhysicalDeviceProperties2()
VkPhysicalDeviceProtectedMemoryProperties structure is new on Vulkan 1.1.
Fixes Vulkan CTS CL#2849.
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias at igalia.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
src/intel/vulkan/anv_device.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index d85615caae..4cb9cc453e 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -1158,6 +1158,13 @@ void anv_GetPhysicalDeviceProperties2(
break;
}
+ case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_PROPERTIES: {
+ VkPhysicalDeviceProtectedMemoryProperties *props =
+ (VkPhysicalDeviceProtectedMemoryProperties *)ext;
+ props->protectedNoFault = false;
+ break;
+ }
+
default:
anv_debug_ignored_stype(ext->sType);
break;
More information about the mesa-commit
mailing list