radv: advertise VK_EXT_depth_clip_control

Gitlab: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6070
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15192>
This commit is contained in:
Samuel Pitoiset
2022-02-28 11:43:41 +01:00
committed by Marge Bot
parent 43e83949dc
commit 1b2ccea63f
3 changed files with 10 additions and 2 deletions

View File

@@ -537,7 +537,7 @@ Khronos extensions that are not part of any Vulkan version:
VK_EXT_custom_border_color DONE (anv, lvp, radv, tu, v3dv)
VK_EXT_debug_marker DONE (radv)
VK_EXT_depth_clip_enable DONE (anv, lvp, radv, tu)
VK_EXT_depth_clip_control DONE (lvp, tu)
VK_EXT_depth_clip_control DONE (lvp, radv, tu)
VK_EXT_depth_range_unrestricted DONE (radv)
VK_EXT_discard_rectangles DONE (radv)
VK_EXT_display_control DONE (anv, tu)

View File

@@ -1,3 +1,4 @@
d3d12 GL4.2
GL_NV_pack_subimage
lavapipe VK_EXT_depth_clip_control, Vulkan 1.3 support
VK_EXT_depth_clip_control on lavapipe and RADV
Vulkan 1.3 support on lavapipe

View File

@@ -475,6 +475,7 @@ radv_physical_device_get_supported_extensions(const struct radv_physical_device
.EXT_conservative_rasterization = device->rad_info.chip_class >= GFX9,
.EXT_custom_border_color = true,
.EXT_debug_marker = radv_thread_trace_enabled(),
.EXT_depth_clip_control = true,
.EXT_depth_clip_enable = true,
.EXT_depth_range_unrestricted = true,
.EXT_descriptor_indexing = true,
@@ -1713,6 +1714,12 @@ radv_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
features->descriptorSetHostMapping = true;
break;
}
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_CLIP_CONTROL_FEATURES_EXT: {
VkPhysicalDeviceDepthClipControlFeaturesEXT *features =
(VkPhysicalDeviceDepthClipControlFeaturesEXT *)ext;
features->depthClipControl = true;
break;
}
default:
break;
}