mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
venus: add VK_EXT_depth_clip_control support
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19285>
This commit is contained in:
parent
8f7b5bf34b
commit
a408f5cafe
2 changed files with 4 additions and 0 deletions
|
|
@ -190,6 +190,7 @@ vn_physical_device_init_features(struct vn_physical_device *physical_dev)
|
|||
/* EXT */
|
||||
VN_ADD_PNEXT_EXT(feats2, CONDITIONAL_RENDERING_FEATURES_EXT, feats->conditional_rendering, exts->EXT_conditional_rendering);
|
||||
VN_ADD_PNEXT_EXT(feats2, CUSTOM_BORDER_COLOR_FEATURES_EXT, feats->custom_border_color, exts->EXT_custom_border_color);
|
||||
VN_ADD_PNEXT_EXT(feats2, DEPTH_CLIP_CONTROL_FEATURES_EXT, feats->depth_clip_control, exts->EXT_depth_clip_control);
|
||||
VN_ADD_PNEXT_EXT(feats2, DEPTH_CLIP_ENABLE_FEATURES_EXT, feats->depth_clip_enable, exts->EXT_depth_clip_enable);
|
||||
VN_ADD_PNEXT_EXT(feats2, IMAGE_VIEW_MIN_LOD_FEATURES_EXT, feats->image_view_min_lod, exts->EXT_image_view_min_lod);
|
||||
VN_ADD_PNEXT_EXT(feats2, INDEX_TYPE_UINT8_FEATURES_EXT, feats->index_type_uint8, exts->EXT_index_type_uint8);
|
||||
|
|
@ -1077,6 +1078,7 @@ vn_physical_device_get_passthrough_extensions(
|
|||
.EXT_conditional_rendering = true,
|
||||
.EXT_conservative_rasterization = true,
|
||||
.EXT_custom_border_color = true,
|
||||
.EXT_depth_clip_control = true,
|
||||
.EXT_depth_clip_enable = true,
|
||||
.EXT_image_drm_format_modifier = true,
|
||||
.EXT_image_view_min_lod = true,
|
||||
|
|
@ -1714,6 +1716,7 @@ vn_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
|
|||
/* EXT */
|
||||
CASE(CONDITIONAL_RENDERING_FEATURES_EXT, conditional_rendering);
|
||||
CASE(CUSTOM_BORDER_COLOR_FEATURES_EXT, custom_border_color);
|
||||
CASE(DEPTH_CLIP_CONTROL_FEATURES_EXT, depth_clip_control);
|
||||
CASE(DEPTH_CLIP_ENABLE_FEATURES_EXT, depth_clip_enable);
|
||||
CASE(INDEX_TYPE_UINT8_FEATURES_EXT, index_type_uint8);
|
||||
CASE(LINE_RASTERIZATION_FEATURES_EXT, line_rasterization);
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ struct vn_physical_device_features {
|
|||
/* EXT */
|
||||
VkPhysicalDeviceConditionalRenderingFeaturesEXT conditional_rendering;
|
||||
VkPhysicalDeviceCustomBorderColorFeaturesEXT custom_border_color;
|
||||
VkPhysicalDeviceDepthClipControlFeaturesEXT depth_clip_control;
|
||||
VkPhysicalDeviceDepthClipEnableFeaturesEXT depth_clip_enable;
|
||||
VkPhysicalDeviceImageViewMinLodFeaturesEXT image_view_min_lod;
|
||||
VkPhysicalDeviceIndexTypeUint8FeaturesEXT index_type_uint8;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue