Mesa (18.2): anv: Add support for protected memory properties on anv_GetPhysicalDeviceProperties2()

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Oct 3 12:42:50 UTC 2018


Module: Mesa
Branch: 18.2
Commit: e2607a6da52e2c5f75710c9399ec7b8cd21fce28
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e2607a6da52e2c5f75710c9399ec7b8cd21fce28

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>
(cherry picked from commit 59a8e0dbf855d390e96a88d859f0d120dfc34404)

---

 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 aea35256ec..113aba70a3 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -1183,6 +1183,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