Mesa (main): zink: Enable the VK_EXT_depth_clip_enable extension.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 21 16:23:05 UTC 2022


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

Author: Timur Kristóf <timur.kristof at gmail.com>
Date:   Wed Jun  8 18:25:54 2022 +0200

zink: Enable the VK_EXT_depth_clip_enable extension.

Signed-off-by: Timur Kristóf <timur.kristof at gmail.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16929>

---

 docs/drivers/zink.rst                        | 18 ++++++++++++------
 src/gallium/drivers/zink/zink_device_info.py |  3 +++
 2 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/docs/drivers/zink.rst b/docs/drivers/zink.rst
index fb4588af2d0..bd82ca4b017 100644
--- a/docs/drivers/zink.rst
+++ b/docs/drivers/zink.rst
@@ -83,13 +83,18 @@ are required:
 OpenGL 3.2
 ^^^^^^^^^^
 
-For OpenGL 3.2 support, the following additional ``VkPhysicalDeviceFeatures``
-are required to be supported, although some of these might not actually get
-verified:
+For OpenGL 3.2 support, the following additional requirements must be
+supported, although some of these might not actually get verified:
+
+* ``VkPhysicalDeviceFeatures``:
+
+  * ``depthClamp``
+  * ``geometryShader``
+  * ``shaderTessellationAndGeometryPointSize``
+
+* Device extensions:
 
-* ``depthClamp``
-* ``geometryShader``
-* ``shaderTessellationAndGeometryPointSize``
+  * `VK_EXT_depth_clip_enable`_
 
 OpenGL 3.3
 ^^^^^^^^^^
@@ -311,3 +316,4 @@ questions, don't hesitate to visit `#zink on OFTC
 .. _VK_EXT_custom_border_color: https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VK_EXT_custom_border_color.html
 .. _VK_EXT_provoking_vertex: https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VK_EXT_provoking_vertex.html
 .. _VK_EXT_line_rasterization: https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VK_EXT_line_rasterization.html
+.. _VK_EXT_depth_clip_enable: https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VK_EXT_depth_clip_enable.html
diff --git a/src/gallium/drivers/zink/zink_device_info.py b/src/gallium/drivers/zink/zink_device_info.py
index 15b5ef49c2b..24ccc4e89b5 100644
--- a/src/gallium/drivers/zink/zink_device_info.py
+++ b/src/gallium/drivers/zink/zink_device_info.py
@@ -241,6 +241,9 @@ EXTENSIONS = [
         features=True,
         properties=True,
         conditions=["$feats.descriptorBindingPartiallyBound"]),
+    Extension("VK_EXT_depth_clip_enable",
+        alias="depth_clip_enable",
+        features=True),
 ]
 
 # constructor: Versions(device_version(major, minor, patch), struct_version(major, minor))



More information about the mesa-commit mailing list