venus: remove vn_renderer_info::has_timeline_sync

We are no longer limited to Vulkan 1.1 in VMs.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Ryan Neph <ryanneph@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10146>
This commit is contained in:
Chia-I Wu 2021-04-09 13:14:49 -07:00 committed by Marge Bot
parent 37f03a2c4c
commit 9b71154353
4 changed files with 0 additions and 8 deletions

View File

@ -1250,9 +1250,6 @@ vn_physical_device_init_properties(struct vn_physical_device *physical_dev)
props->apiVersion = VK_HEADER_VERSION_COMPLETE;
if (props->apiVersion > vn_info_vk_xml_version())
props->apiVersion = vn_info_vk_xml_version();
if (!instance->renderer_info.has_timeline_sync &&
props->apiVersion >= VK_API_VERSION_1_2)
props->apiVersion = VK_MAKE_VERSION(1, 1, 130);
}
props->driverVersion = vk_get_driver_version();
@ -1503,8 +1500,6 @@ vn_physical_device_init_extensions(struct vn_physical_device *physical_dev)
struct vk_device_extension_table recognized;
vn_physical_device_get_supported_extensions(physical_dev, &supported,
&recognized);
if (!instance->renderer_info.has_timeline_sync)
recognized.KHR_timeline_semaphore = false;
physical_dev->extension_spec_versions =
vk_zalloc(alloc,

View File

@ -106,7 +106,6 @@ struct vn_renderer_info {
bool has_dmabuf_import;
bool has_cache_management;
bool has_timeline_sync;
bool has_external_sync;
bool has_implicit_fencing;

View File

@ -1248,7 +1248,6 @@ virtgpu_get_info(struct vn_renderer *renderer, struct vn_renderer_info *info)
*/
info->has_cache_management = false;
/* TODO drm_syncobj */
info->has_timeline_sync = false;
info->has_external_sync = false;
info->has_implicit_fencing = false;

View File

@ -908,7 +908,6 @@ vtest_get_info(struct vn_renderer *renderer, struct vn_renderer_info *info)
info->has_dmabuf_import = false;
info->has_cache_management = false;
info->has_timeline_sync = true;
info->has_external_sync = false;
info->has_implicit_fencing = false;