mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-25 14:30:22 +01:00
radv: set VK_SYNC_FEATURE_GPU_MULTI_WAIT
I think amdgpu always supports multi wait since syncobj is just a container of dma-fences. Fixes Assertion `!(req_features & ~ttype->point_sync_type->features)' failed. in vk_sync_timeline_type_validate on older kernels. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27838>
This commit is contained in:
parent
f9907733e3
commit
2c10767732
1 changed files with 3 additions and 0 deletions
|
|
@ -294,6 +294,9 @@ radv_amdgpu_winsys_create(int fd, uint64_t debug_flags, uint64_t perftest_flags,
|
|||
|
||||
ws->syncobj_sync_type = vk_drm_syncobj_get_type(amdgpu_device_get_fd(ws->dev));
|
||||
if (ws->syncobj_sync_type.features) {
|
||||
/* multi wait is always supported */
|
||||
ws->syncobj_sync_type.features |= VK_SYNC_FEATURE_GPU_MULTI_WAIT;
|
||||
|
||||
ws->sync_types[num_sync_types++] = &ws->syncobj_sync_type;
|
||||
if (!(ws->syncobj_sync_type.features & VK_SYNC_FEATURE_TIMELINE)) {
|
||||
ws->emulated_timeline_sync_type = vk_sync_timeline_get_type(&ws->syncobj_sync_type);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue