summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan/vk_swapchain.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphoreReinUsesLisp2020-09-191-12/+8
| | | | | | | | | | | | | | | | | | | | | | | 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.
* vulkan: Resolve -Wmissing-field-initializer warningsLioncash2020-07-251-0/+2
|
* vk_swapchain: Make use of designated initializers where applicableLioncash2020-07-171-43/+51
|
* renderer_vulkan: Drop Vulkan-HppReinUsesLisp2020-04-111-68/+87
|
* vk_swapchain: Silence TOCTOU race conditionReinUsesLisp2020-02-261-9/+12
| | | | | | | | It's possible that the window is resized from the moment we ask for its size to the moment a swapchain is created, causing validation issues. To workaround this Vulkan issue request the capabilities again just before creating the swapchain, making the race condition less likely.
* vk_blit_screen: Address feedbackReinUsesLisp2020-01-201-1/+1
|
* vk_swapchain: Add support for swapping sRGBReinUsesLisp2019-12-071-22/+23
| | | | | We don't know until the game is running if it's using an sRGB color space or not. Add support for hot-swapping swapchain surface formats.
* vk_swapchain: Implement a swapchain managerReinUsesLisp2019-03-291-0/+210