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 <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26443>
This commit is contained in:
Samuel Pitoiset
2023-12-01 11:46:47 +01:00
committed by Marge Bot
parent 8d6c059bd2
commit 949fdc9a73
3 changed files with 6 additions and 1 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -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,
};
}