mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
Enable .VALVE_mutable_descriptor_type in physical_device
Signed-off-by: Dawn Han <dawnhan@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17505>
This commit is contained in:
parent
de5879447b
commit
2a2766ce18
2 changed files with 14 additions and 0 deletions
|
|
@ -197,6 +197,11 @@ vn_physical_device_init_features(struct vn_physical_device *physical_dev)
|
|||
feats->ycbcr_2plane_444_formats,
|
||||
YCBCR_2_PLANE_444_FORMATS_FEATURES_EXT, features2);
|
||||
|
||||
/* vendor */
|
||||
VN_ADD_EXT_TO_PNEXT(exts->VALVE_mutable_descriptor_type,
|
||||
feats->mutable_descriptor_type,
|
||||
MUTABLE_DESCRIPTOR_TYPE_FEATURES_VALVE, features2);
|
||||
|
||||
vn_call_vkGetPhysicalDeviceFeatures2(
|
||||
instance, vn_physical_device_to_handle(physical_dev), &features2);
|
||||
|
||||
|
|
@ -1095,6 +1100,9 @@ vn_physical_device_get_passthrough_extensions(
|
|||
.EXT_conservative_rasterization = true,
|
||||
.EXT_custom_border_color = true,
|
||||
.EXT_depth_clip_enable = true,
|
||||
|
||||
/* vendor */
|
||||
.VALVE_mutable_descriptor_type = true,
|
||||
#ifndef ANDROID
|
||||
.EXT_image_drm_format_modifier = true,
|
||||
#endif
|
||||
|
|
@ -1739,6 +1747,9 @@ vn_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
|
|||
CASE(ROBUSTNESS_2_FEATURES_EXT, robustness_2);
|
||||
CASE(TRANSFORM_FEEDBACK_FEATURES_EXT, transform_feedback);
|
||||
CASE(VERTEX_ATTRIBUTE_DIVISOR_FEATURES_EXT, vertex_attribute_divisor);
|
||||
|
||||
/* vendor */
|
||||
CASE(MUTABLE_DESCRIPTOR_TYPE_FEATURES_VALVE, mutable_descriptor_type);
|
||||
/* clang-format on */
|
||||
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -59,6 +59,9 @@ struct vn_physical_device_features {
|
|||
VkPhysicalDeviceTransformFeedbackFeaturesEXT transform_feedback;
|
||||
VkPhysicalDeviceVertexAttributeDivisorFeaturesEXT vertex_attribute_divisor;
|
||||
VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT ycbcr_2plane_444_formats;
|
||||
|
||||
/* vendor */
|
||||
VkPhysicalDeviceMutableDescriptorTypeFeaturesVALVE mutable_descriptor_type;
|
||||
};
|
||||
|
||||
struct vn_physical_device_properties {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue