mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
hasvk: expose VK_EXT_depth_clamp_zero_one
Simple enough to expose on hasvk. 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:
parent
a6de9dabf6
commit
9194952e70
1 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue