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

Author: Mike Blumenkrantz <[email protected]>
Date:   Mon May 29 08:45:29 2023 -0400

zink: require EXT_dynamic_rendering_unused_attachments for dynamic rendering

this eliminates the pDepthAttachment-06181 and pStencilAttachment-06182 VUID 
errors
when enabled, and it should be trivial, so require it in the profile

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

---

 src/gallium/drivers/zink/VP_ZINK_requirements.json | 6 +++++-
 src/gallium/drivers/zink/zink_device_info.py       | 1 +
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/zink/VP_ZINK_requirements.json 
b/src/gallium/drivers/zink/VP_ZINK_requirements.json
index 2b4306880b9..ba753425753 100644
--- a/src/gallium/drivers/zink/VP_ZINK_requirements.json
+++ b/src/gallium/drivers/zink/VP_ZINK_requirements.json
@@ -431,11 +431,15 @@
         "gl46_optimal_ext": {
             "extensions": {
                 "VK_EXT_provoking_vertex": 1,
-                "VK_KHR_dynamic_rendering": 1
+                "VK_KHR_dynamic_rendering": 1,
+                "VK_EXT_dynamic_rendering_unused_attachments": 1
             },
             "features": {
                 "VkPhysicalDeviceDynamicRenderingFeaturesKHR": {
                     "dynamicRendering": true
+                },
+                
"VkPhysicalDeviceDynamicRenderingUnusedAttachmentsFeaturesEXT": {
+                    "dynamicRenderingUnusedAttachments": true
                 }
             }
         },
diff --git a/src/gallium/drivers/zink/zink_device_info.py 
b/src/gallium/drivers/zink/zink_device_info.py
index f6b699a478e..202f63ca2a4 100644
--- a/src/gallium/drivers/zink/zink_device_info.py
+++ b/src/gallium/drivers/zink/zink_device_info.py
@@ -127,6 +127,7 @@ EXTENSIONS = [
     Extension("VK_EXT_memory_priority", alias="memprio", features=True),
     Extension("VK_EXT_pageable_device_local_memory", alias="mempage", 
features=True),
     Extension("VK_KHR_draw_indirect_count"),
+    Extension("VK_EXT_dynamic_rendering_unused_attachments", alias="unused", 
features=True),
     Extension("VK_EXT_shader_object", alias="shobj", features=True, 
properties=True),
     Extension("VK_EXT_attachment_feedback_loop_layout",
               alias="feedback_loop",

Reply via email to