mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
vkd3d: Support signalling a fence once all outstanding work is submitted to Vulkan.
When the client acquires the Vulkan queue it has to ensure that it is not submitting work before other work it depends on already submitted through the Direct3D 12 API but currently in the internal vkd3d queue. Currently we suggest to enqueue signalling a fence and than wait for it before acquiring the Vulkan queue, which is correct but excessive: it will wait not just for the work currently in the queue to be submitted, but for it to be executed too, introducing useless dependencies. By adding a way to enqueue signalling a fence on the CPU side we allow the client to wait for the currently outstanding work to be submitted to Vulkan, but nothing more.
This commit is contained in:
committed by
Henri Verbeet
parent
bdb8291f6c
commit
22d0841412
Notes:
Henri Verbeet
2025-01-21 14:13:31 +01:00
Approved-by: Henri Verbeet (@hverbeet) Approved-by: Giovanni Mascellani (@giomasce) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1343
@@ -17,6 +17,7 @@ global:
|
||||
vkd3d_instance_from_device;
|
||||
vkd3d_instance_get_vk_instance;
|
||||
vkd3d_instance_incref;
|
||||
vkd3d_queue_signal_on_cpu;
|
||||
vkd3d_release_vk_queue;
|
||||
vkd3d_resource_decref;
|
||||
vkd3d_resource_incref;
|
||||
|
||||
Reference in New Issue
Block a user