Mesa (main): venus: enable VK_EXT_image_view_min_lod
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jun 24 23:19:10 UTC 2022
Module: Mesa
Branch: main
Commit: 8b8109851961b794bbb41cfbb40b7e53012eaf6d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8b8109851961b794bbb41cfbb40b7e53012eaf6d
Author: Ryan Neph <ryanneph at google.com>
Date: Thu Jun 23 23:57:24 2022 -0700
venus: enable VK_EXT_image_view_min_lod
Signed-off-by: Ryan Neph <ryanneph at google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17227>
---
src/virtio/vulkan/vn_physical_device.c | 3 +++
src/virtio/vulkan/vn_physical_device.h | 1 +
2 files changed, 4 insertions(+)
diff --git a/src/virtio/vulkan/vn_physical_device.c b/src/virtio/vulkan/vn_physical_device.c
index 5fa1a3ee47e..d96f5f7f929 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 166440e86bd..c17663e2fda 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;
More information about the mesa-commit
mailing list