From 6d0c86c7770c5ed37b8ccbd14bd76a506427a492 Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Wed, 10 Aug 2022 17:49:46 -0700 Subject: [PATCH] venus: Enable VK_EXT_tooling_info Implement it locally with the common implementation. Signed-off-by: Chad Versace Reviewed-by: Yiwei Zhang Reviewed-by: Ryan Neph Part-of: --- docs/features.txt | 1 + src/virtio/vulkan/vn_device.c | 5 +++++ src/virtio/vulkan/vn_physical_device.c | 2 ++ 3 files changed, 8 insertions(+) diff --git a/docs/features.txt b/docs/features.txt index dd50b7a9d57..23677d18db4 100644 --- a/docs/features.txt +++ b/docs/features.txt @@ -493,6 +493,7 @@ Vulkan 1.3 -- all DONE: anv, radv, lvp VK_EXT_shader_demote_to_helper_invocation DONE (anv, lvp, radv, tu, vn) VK_EXT_subgroup_size_control DONE (anv, lvp, radv, tu, vn) VK_EXT_texel_buffer_alignment DONE (anv, lvp, radv, tu, v3dv, vn) + VK_EXT_tooling_info DONE (anv, vn) VK_EXT_ycbcr_2plane_444_formats DONE (vn) Khronos extensions that are not part of any Vulkan version: diff --git a/src/virtio/vulkan/vn_device.c b/src/virtio/vulkan/vn_device.c index b7335e0a8e8..a837755553f 100644 --- a/src/virtio/vulkan/vn_device.c +++ b/src/virtio/vulkan/vn_device.c @@ -290,6 +290,11 @@ vn_device_fix_create_info(const struct vn_device *dev, block_exts[block_count++] = VK_EXT_PHYSICAL_DEVICE_DRM_EXTENSION_NAME; } + if (app_exts->EXT_tooling_info) { + /* see vn_physical_device_get_native_extensions */ + block_exts[block_count++] = VK_EXT_TOOLING_INFO_EXTENSION_NAME; + } + assert(extra_count <= ARRAY_SIZE(extra_exts)); assert(block_count <= ARRAY_SIZE(block_exts)); diff --git a/src/virtio/vulkan/vn_physical_device.c b/src/virtio/vulkan/vn_physical_device.c index 7d6c3b5072a..262d6faa1f8 100644 --- a/src/virtio/vulkan/vn_physical_device.c +++ b/src/virtio/vulkan/vn_physical_device.c @@ -1009,6 +1009,8 @@ vn_physical_device_get_native_extensions( #endif /* ANDROID */ exts->EXT_physical_device_drm = true; + /* use common implementation */ + exts->EXT_tooling_info = true; } static void