mesa/src/microsoft
Boris Brezillon 8d54a44028 dzn: Use the vk_sync_binary abstraction
D3D12 fences are capable of handling binary operations, but the
current dzn_sync implementation doesn't match vk_sync expectations
when sync objects are used to back semaphores. In that case, the wait
operation is supposed to set the sync object back to an unsignaled
state after the wait succeeded, but there's no way of knowing what
the sync object is used for, and this implicit-reset behavior is not
expected on fence objects, which also use the sync primitive.
That means we currently have a semaphore implementation that works
only once, and, as soon as the semaphore object has been signaled it
stays in a signaled state until it's destroyed.

We could extend the sync framework to pass an
implicit-reset-after-wait flag, but, given no one else seems to
need that, it's probably simpler to drop the binary sync
capability and rely on the binary-on-top-of-timeline emulation provided
by the core.

Fixes: a012b21964 ("microsoft: Initial vulkan-on-12 driver")
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16629>
(cherry picked from commit 1eaba553e2)
2022-06-01 14:10:28 -07:00
..
ci dzn: Add CI target for vulkan driver 2022-04-13 18:05:44 +00:00
clc clc/tests: use dxil_validator 2022-04-07 00:00:45 +00:00
compiler microsoft/compiler: Unload DXIL validator library *after* calling Release() 2022-05-02 10:46:35 -07:00
resource_state_manager d3d12: Add UAV barriers for UAVs that are being used by compute transforms 2022-01-31 13:13:33 -08:00
spirv_to_dxil microsoft/spirv_to_dxil: use dxil_validator 2022-04-07 00:00:45 +00:00
vulkan dzn: Use the vk_sync_binary abstraction 2022-06-01 14:10:28 -07:00
meson.build microsoft: Initial vulkan-on-12 driver 2022-03-25 16:21:45 +00:00