mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
anv/xe: assert we're using drm_syncobjs only once
Everything on our xe.ko backend is built on top of this assertion. Assert it during driver initialization and just don't bother with it anymore later. Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28792>
This commit is contained in:
parent
045182092e
commit
5346442e74
2 changed files with 2 additions and 5 deletions
|
|
@ -2406,6 +2406,7 @@ anv_physical_device_try_create(struct vk_instance *vk_instance,
|
|||
device->sync_types[st_idx++] = &device->sync_timeline_type.sync;
|
||||
}
|
||||
} else {
|
||||
assert(vk_sync_type_is_drm_syncobj(&device->sync_syncobj_type));
|
||||
assert(device->sync_syncobj_type.features & VK_SYNC_FEATURE_TIMELINE);
|
||||
assert(device->sync_syncobj_type.features & VK_SYNC_FEATURE_CPU_WAIT);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -91,12 +91,8 @@ static void
|
|||
xe_exec_fill_sync(struct drm_xe_sync *xe_sync, struct vk_sync *vk_sync,
|
||||
uint64_t value, bool signal)
|
||||
{
|
||||
if (unlikely(!vk_sync_type_is_drm_syncobj(vk_sync->type))) {
|
||||
unreachable("Unsupported sync type");
|
||||
return;
|
||||
}
|
||||
|
||||
const struct vk_drm_syncobj *syncobj = vk_sync_as_drm_syncobj(vk_sync);
|
||||
assert(syncobj);
|
||||
xe_sync->handle = syncobj->syncobj;
|
||||
|
||||
if (value) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue