From 9194952e70af87ec498977d9b6698c0e8c15de5e Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 2 Sep 2022 13:32:22 +0300 Subject: [PATCH] hasvk: expose VK_EXT_depth_clamp_zero_one MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Simple enough to expose on hasvk. Signed-off-by: Lionel Landwerlin Reviewed-by: Tapani Pälli Part-of: --- src/intel/vulkan_hasvk/anv_device.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/intel/vulkan_hasvk/anv_device.c b/src/intel/vulkan_hasvk/anv_device.c index 16a2a1aca5f..e6b5f136262 100644 --- a/src/intel/vulkan_hasvk/anv_device.c +++ b/src/intel/vulkan_hasvk/anv_device.c @@ -258,6 +258,7 @@ get_device_extensions(const struct anv_physical_device *device, .EXT_conditional_rendering = device->info.verx10 >= 75, .EXT_conservative_rasterization = device->info.ver >= 9, .EXT_custom_border_color = device->info.ver >= 8, + .EXT_depth_clamp_zero_one = true, .EXT_depth_clip_control = true, .EXT_depth_clip_enable = true, .EXT_descriptor_indexing = device->has_a64_buffer_access && @@ -1437,6 +1438,13 @@ void anv_GetPhysicalDeviceFeatures2( break; } + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_CLAMP_ZERO_ONE_FEATURES_EXT: { + VkPhysicalDeviceDepthClampZeroOneFeaturesEXT *features = + (VkPhysicalDeviceDepthClampZeroOneFeaturesEXT *)ext; + features->depthClampZeroOne = true; + break; + } + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_CLIP_ENABLE_FEATURES_EXT: { VkPhysicalDeviceDepthClipEnableFeaturesEXT *features = (VkPhysicalDeviceDepthClipEnableFeaturesEXT *)ext;