yuzu/src
ReinUsesLisp 58b0ae84b5 renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphore
This reworks how host<->device synchronization works on the Vulkan
backend. Instead of "protecting" resources with a fence and signalling
these as free when the fence is known to be signalled by the host GPU,
use timeline semaphores.

Vulkan timeline semaphores allow use to work on a subset of D3D12
fences. As far as we are concerned, timeline semaphores are a value set
by the host or the device that can be waited by either of them.

Taking advantange of this, we can have a monolithically increasing
atomic value for each submission to the graphics queue. Instead of
protecting resources with a fence, we simply store the current logical
tick (the atomic value stored in CPU memory). When we want to know if a
resource is free, it can be compared to the current GPU tick.

This greatly simplifies resource management code and the free status of
resources should have less false negatives.

To workaround bugs in validation layers, when these are attached there's
a thread waiting for timeline semaphores.
2020-09-19 01:46:37 -03:00
..
audio_core Merge pull request #4310 from ogniK5377/apollo-1-prod 2020-09-11 10:57:27 -04:00
common Merge pull request #4611 from lioncash/xbyak2 2020-09-03 20:24:27 -04:00
core file_sys/romfs_factory: Eliminate usage of the global system accessor 2020-09-16 19:15:19 -04:00
input_common gc_adapter: Make DeviceConnected() a const member function 2020-09-07 02:49:13 -04:00
tests tests/core_timing: Remove pragma optimize(off) 2020-08-03 11:12:55 -04:00
video_core renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphore 2020-09-19 01:46:37 -03:00
web_service web_service: Move web_result.h into web_service 2020-08-22 19:29:54 -04:00
yuzu crypto/key_manager: Remove dependency on the global system accessor 2020-09-14 16:49:59 -04:00
yuzu_cmd video_core: Remove all Core::System references in renderer 2020-09-06 05:28:48 -03:00
yuzu_tester video_core: Remove all Core::System references in renderer 2020-09-06 05:28:48 -03:00
.clang-format Remove special rules for Windows.h and library includes 2016-09-21 00:16:33 -07:00
CMakeLists.txt CMakeLists: Resolve #4478 2020-08-03 11:21:24 -04:00