summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_device.c
diff options
context:
space:
mode:
authorSamuel Iglesias Gonsálvez <[email protected]>2018-08-24 12:11:49 +0200
committerSamuel Iglesias Gonsálvez <[email protected]>2018-08-27 09:07:52 +0200
commit59a8e0dbf855d390e96a88d859f0d120dfc34404 (patch)
treeb7c74bbe4432619c126ec589de8824de39a75c00 /src/intel/vulkan/anv_device.c
parentaad501f15e22a96be40c789074a3a1b9518fa70d (diff)
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 <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_device.c')
-rw-r--r--src/intel/vulkan/anv_device.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index d85615caaed..4cb9cc453e6 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;