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

Author: Samuel Pitoiset <[email protected]>
Date:   Fri Dec  1 11:46:47 2023 +0100

radv: advertise VK_EXT_depth_clamp_zero_one

RADV already implements this behavior, so enabling this extension is
a no-op.

Signed-off-by: Samuel Pitoiset <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26443>

---

 docs/features.txt                     | 2 +-
 docs/relnotes/new_features.txt        | 1 +
 src/amd/vulkan/radv_physical_device.c | 4 ++++
 3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/docs/features.txt b/docs/features.txt
index 0c9af3c56fd..616e30a7747 100644
--- a/docs/features.txt
+++ b/docs/features.txt
@@ -641,7 +641,7 @@ Khronos extensions that are not part of any Vulkan version:
   VK_ARM_rasterization_order_attachment_access          DONE (lvp, tu)
   VK_EXT_mutable_descriptor_type                        DONE (anv, lvp, nvk, 
radv, tu, vn)
   VK_EXT_swapchain_colorspace                           DONE (radv, anv, tu)
-  VK_EXT_depth_clamp_zero_one                           DONE (anv)
+  VK_EXT_depth_clamp_zero_one                           DONE (anv, radv)
   VK_INTEL_shader_integer_functions2                    DONE (anv, hasvk, radv)
   VK_KHR_map_memory2                                    DONE (anv, nvk, radv)
 
diff --git a/docs/relnotes/new_features.txt b/docs/relnotes/new_features.txt
index 1a08c98080b..066bb0d4fe3 100644
--- a/docs/relnotes/new_features.txt
+++ b/docs/relnotes/new_features.txt
@@ -10,3 +10,4 @@ GL_ARB_timer_query on Asahi
 GL_EXT_disjoint_timer_query on Asahi
 GL_ARB_base_instance on Asahi
 OpenGL 4.6 (up from 4.2) on d3d12
+VK_EXT_depth_clamp_zero_one on RADV
diff --git a/src/amd/vulkan/radv_physical_device.c 
b/src/amd/vulkan/radv_physical_device.c
index d2ae5dca93a..56efc3bd928 100644
--- a/src/amd/vulkan/radv_physical_device.c
+++ b/src/amd/vulkan/radv_physical_device.c
@@ -490,6 +490,7 @@ radv_physical_device_get_supported_extensions(const struct 
radv_physical_device
       .EXT_custom_border_color = true,
       .EXT_debug_marker = device->instance->vk.trace_mode & 
RADV_TRACE_MODE_RGP,
       .EXT_depth_bias_control = true,
+      .EXT_depth_clamp_zero_one = true,
       .EXT_depth_clip_control = true,
       .EXT_depth_clip_enable = true,
       .EXT_depth_range_unrestricted = true,
@@ -1066,6 +1067,9 @@ radv_physical_device_get_features(const struct 
radv_physical_device *pdevice, st
       /* VK_EXT_device_fault */
       .deviceFault = true,
       .deviceFaultVendorBinary = false,
+
+      /* VK_EXT_depth_clamp_zero_one */
+      .depthClampZeroOne = true,
    };
 }
 

Reply via email to