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

Author: Emma Anholt <[email protected]>
Date:   Mon Sep 20 12:46:34 2021 -0700

tu: Support VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_PROPERTIES.

We had missed this struct previously, causing a CTS fail.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12944>

---

 src/freedreno/ci/deqp-freedreno-a630-fails.txt | 3 ---
 src/freedreno/vulkan/tu_device.c               | 8 ++++++++
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/freedreno/ci/deqp-freedreno-a630-fails.txt 
b/src/freedreno/ci/deqp-freedreno-a630-fails.txt
index d9748552cfa..5473dbb4924 100644
--- a/src/freedreno/ci/deqp-freedreno-a630-fails.txt
+++ b/src/freedreno/ci/deqp-freedreno-a630-fails.txt
@@ -62,9 +62,6 @@ 
dEQP-VK.api.info.image_format_properties.2d.optimal.g8_b8_r8_3plane_420_unorm,Fa
 # ERROR: VK_FORMAT_G8_B8R8_2PLANE_420_UNORM must support 
VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT|VK_FORMAT_FEATURE_TRANSFER_SRC_BIT|VK_FORMAT_FEATURE_TRANSFER_DST_BIT|VK_FORMAT_FEATURE_COSITED_CHROMA_SAMPLES_BIT
 
dEQP-VK.api.info.image_format_properties.2d.optimal.g8_b8r8_2plane_420_unorm,Fail
 
-# "Mismatch between VkPhysicalDeviceProtectedMemoryProperties at 
vktApiFeatureInfo.cpp:4208"
-dEQP-VK.api.info.get_physical_device_properties2.properties,Fail
-
 # Fails when TU_DEBUG=forcebin is set
 
dEQP-VK.spirv_assembly.instruction.graphics.variable_pointers.graphics.writes_single_buffer_geom,Fail
 
dEQP-VK.spirv_assembly.instruction.graphics.variable_pointers.graphics.writes_two_buffers_geom,Fail
diff --git a/src/freedreno/vulkan/tu_device.c b/src/freedreno/vulkan/tu_device.c
index 23c5ccd219a..699a0d21469 100644
--- a/src/freedreno/vulkan/tu_device.c
+++ b/src/freedreno/vulkan/tu_device.c
@@ -1189,6 +1189,14 @@ tu_GetPhysicalDeviceProperties2(VkPhysicalDevice 
physicalDevice,
          props->maxTimelineSemaphoreValueDifference = UINT64_MAX;
          break;
       }
+
+      case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_PROPERTIES: {
+         VkPhysicalDeviceProtectedMemoryProperties *properties =
+            (VkPhysicalDeviceProtectedMemoryProperties *)ext;
+         CORE_PROPERTY(1, 1, protectedNoFault);
+         break;
+      }
+
       case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROVOKING_VERTEX_PROPERTIES_EXT: {
          VkPhysicalDeviceProvokingVertexPropertiesEXT *properties =
             (VkPhysicalDeviceProvokingVertexPropertiesEXT *)ext;

Reply via email to