From: Ryan Neph Date: Fri, 24 Jun 2022 06:57:24 +0000 (-0700) Subject: venus: enable VK_EXT_image_view_min_lod X-Git-Tag: upstream/22.3.5~6940 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8b8109851961b794bbb41cfbb40b7e53012eaf6d;p=platform%2Fupstream%2Fmesa.git venus: enable VK_EXT_image_view_min_lod Signed-off-by: Ryan Neph Part-of: --- diff --git a/src/virtio/vulkan/vn_physical_device.c b/src/virtio/vulkan/vn_physical_device.c index 5fa1a3e..d96f5f7 100644 --- a/src/virtio/vulkan/vn_physical_device.c +++ b/src/virtio/vulkan/vn_physical_device.c @@ -143,6 +143,8 @@ vn_physical_device_init_features(struct vn_physical_device *physical_dev) CUSTOM_BORDER_COLOR_FEATURES_EXT, features2); VN_ADD_EXT_TO_PNEXT(exts->EXT_depth_clip_enable, feats->depth_clip_enable, DEPTH_CLIP_ENABLE_FEATURES_EXT, features2); + VN_ADD_EXT_TO_PNEXT(exts->EXT_image_view_min_lod, feats->image_view_min_lod, + IMAGE_VIEW_MIN_LOD_FEATURES_EXT, features2); VN_ADD_EXT_TO_PNEXT(exts->EXT_index_type_uint8, feats->index_type_uint8, INDEX_TYPE_UINT8_FEATURES_EXT, features2); VN_ADD_EXT_TO_PNEXT(exts->EXT_line_rasterization, @@ -992,6 +994,7 @@ vn_physical_device_get_passthrough_extensions( #ifndef ANDROID .EXT_image_drm_format_modifier = true, #endif + .EXT_image_view_min_lod = true, .EXT_index_type_uint8 = true, .EXT_line_rasterization = true, .EXT_provoking_vertex = true, diff --git a/src/virtio/vulkan/vn_physical_device.h b/src/virtio/vulkan/vn_physical_device.h index 166440e..c17663e 100644 --- a/src/virtio/vulkan/vn_physical_device.h +++ b/src/virtio/vulkan/vn_physical_device.h @@ -34,6 +34,7 @@ struct vn_physical_device_features { VkPhysicalDeviceConditionalRenderingFeaturesEXT conditional_rendering; VkPhysicalDeviceCustomBorderColorFeaturesEXT custom_border_color; VkPhysicalDeviceDepthClipEnableFeaturesEXT depth_clip_enable; + VkPhysicalDeviceImageViewMinLodFeaturesEXT image_view_min_lod; VkPhysicalDeviceIndexTypeUint8FeaturesEXT index_type_uint8; VkPhysicalDeviceLineRasterizationFeaturesEXT line_rasterization; VkPhysicalDeviceProvokingVertexFeaturesEXT provoking_vertex;