[Mesa-dev] [PATCH] anv: Fill out protected memory properties

Jason Ekstrand jason at jlekstrand.net
Fri Sep 28 15:01:45 UTC 2018


We don't support the protected memory feature but it's easy enough to
fill out the properties struct to say that we don't support no-fault
either.

Fixes: 9c8b40001dde9 "anv: Support querying for protected memory"
---
 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 d9373ba3127..56bd113d3b4 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -1154,6 +1154,13 @@ void anv_GetPhysicalDeviceProperties2(
          break;
       }
 
+      case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_PROPERTIES: {
+         VkPhysicalDeviceProtectedMemoryProperties *properties =
+            (VkPhysicalDeviceProtectedMemoryProperties *)ext;
+         properties->protectedNoFault = VK_FALSE;
+         break;
+      }
+
       case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_PROPERTIES: {
          VkPhysicalDeviceSubgroupProperties *properties = (void *)ext;
 
-- 
2.17.1



More information about the mesa-dev mailing list