summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan/vk_swapchain.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* general: fix spelling mistakesLiam2023-03-121-1/+1
|
* video_core/vulkan: Explicity check swapchain size when deciding to recreateAlexander Orzechowski2022-12-131-7/+8
| | | | | | Vulkan for whatever reason does not return VK_ERROR_OUT_OF_DATE_KHR when the swapchain is the wrong size. Explicity make sure the size is indeed up to date to workaround this.
* general: fix compile for Apple ClangLiam2022-11-231-0/+1
|
* Vulkan Swapchain: Overall improvements.Fernando Sahmkow2022-10-061-3/+12
|
* Make vsync setting work for VulkanDJRobX2022-08-081-2/+3
|
* yuzu: settings: Remove framerate cap and merge unlocked framerate setting.bunnei2022-07-171-3/+3
| | | | - These were all somewhat redundant.
* video_core: Replace VKSwapchain with Swapchaingerman772022-06-271-13/+13
|
* video_core: Replace VKScheduler with Schedulergerman772022-06-271-1/+1
|
* general: Convert source file copyright comments over to SPDXMorph2022-04-231-3/+2
| | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
* video_core: Reduce unused includesameerj2022-03-191-2/+0
|
* vk_swapchain: Use immediate present mode when mailbox is unavailable and FPS is unlockedameerj2021-09-131-3/+26
| | | | Allows drivers that do not support VK_PRESENT_MODE_MAILBOX_KHR the ability to present at a framerate higher than the monitor's refresh rate when the FPS is unlocked.
* Merge pull request #6941 from ameerj/swapchain-srgbFernando S2021-09-111-7/+17
|\ | | | | vk_swapchain: Prefer linear swapchain format when presenting sRGB images
| * vulkan_device: Enable VK_KHR_swapchain_mutable_format if availableameerj2021-08-291-0/+11
| | | | | | | | Silences validation errors when creating sRGB image views of linear swapchain images
| * vk_swapchain: Prefer linear swapchain format when presenting sRGB imagesameerj2021-08-291-7/+6
| | | | | | | | Fixes broken sRGB when presenting from a secondary GPU.
* | renderer_vulkan: Wait on present semaphore at queue submitameerj2021-09-021-4/+2
|/ | | | | | | | | | The present semaphore is being signalled by the call to acquire the swapchain image. This semaphore is meant to be waited on when rendering to the swapchain image. Currently it is waited on when presenting, but moving its usage to be waited on in the command buffer submission allows for proper usage of this semaphore. Fixes the device lost when launching titles on the Intel Linux Mesa driver.
* vk_swapchain: Handle outdated swapchainsReinUsesLisp2021-07-231-7/+19
| | | | Fixes pixelated presentation on Intel devices.
* vk_scheduler: Allow command submission on worker threadReinUsesLisp2021-07-231-26/+13
| | | | | | | | | | | | This changes how Scheduler::Flush works. It queues the current command buffer to be sent to the GPU but does not do it immediately. The Vulkan worker thread takes care of that. Users will have to use Scheduler::Flush + Scheduler::WaitWorker to get the previous behavior. Scheduler::Finish is unchanged. To avoid waiting on work never queued, Scheduler::Wait sends the current command buffer if that's what the caller wants to wait.
* renderer_vulkan: Check return value of AcquireNextImageJoshua Ashton2021-04-111-3/+5
| | | | | We can get into a really bad state by ignoring this leading to device loss and using incorrect resources.
* gpu: Report renderer errors with exceptionsReinUsesLisp2021-02-131-2/+5
| | | | | | Instead of using a two step initialization to report errors, initialize the GPU renderer and rasterizer on the constructor and report errors through std::runtime_error.
* renderer_vulkan: Move device abstraction to vulkan_commonReinUsesLisp2021-01-041-1/+1
|
* renderer_vulkan: Rename VKDevice to DeviceReinUsesLisp2021-01-031-1/+1
| | | | | | | The "VK" prefix predates the "Vulkan" namespace. It was carried around the codebase for consistency. "VKDevice" currently is a bad alias with "VkDevice" (only an upcase character of difference) that can cause confusion. Rename all instances of it.
* vulkan_common: Rename renderer_vulkan/wrapper.h to vulkan_common/vulkan_wrapper.hReinUsesLisp2020-12-311-1/+1
| | | | Allows sharing Vulkan wrapper code between different rendering backends.
* 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