anv: Add support for protected memory properties on anv_GetPhysicalDeviceProperties2()
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Fri, 24 Aug 2018 10:11:49 +0000 (12:11 +0200)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Mon, 27 Aug 2018 07:07:52 +0000 (09:07 +0200)
VkPhysicalDeviceProtectedMemoryProperties structure is new on Vulkan 1.1.

Fixes Vulkan CTS CL#2849.

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_device.c

index d85615caaedebd770d2866d61a54c687834cda08..4cb9cc453e650df85ece1e63e26456b47e75f249 100644 (file)
@@ -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;