anv: enable EXT_depth_clamp_zero_one

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18372>
This commit is contained in:
Lionel Landwerlin 2022-09-02 13:30:40 +03:00 committed by Marge Bot
parent 70ea65490c
commit a6de9dabf6

View file

@ -261,6 +261,7 @@ get_device_extensions(const struct anv_physical_device *device,
.EXT_conditional_rendering = true,
.EXT_conservative_rasterization = true,
.EXT_custom_border_color = true,
.EXT_depth_clamp_zero_one = true,
.EXT_depth_clip_control = true,
.EXT_depth_clip_enable = true,
.EXT_descriptor_indexing = true,
@ -1399,6 +1400,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;