diff options
| author | 2023-12-16 18:57:23 -0500 | |
|---|---|---|
| committer | 2023-12-16 18:59:44 -0500 | |
| commit | 7fc06260d1fa8d0e18e7fc0ea80a16d1bb4ee29c (patch) | |
| tree | 94b76b57f0c1d67fc43a512d6aada280e4cf04fe /src/video_core/renderer_vulkan | |
| parent | Merge pull request #12378 from liamwhite/offsetof (diff) | |
| download | yuzu-7fc06260d1fa8d0e18e7fc0ea80a16d1bb4ee29c.tar.gz yuzu-7fc06260d1fa8d0e18e7fc0ea80a16d1bb4ee29c.tar.xz yuzu-7fc06260d1fa8d0e18e7fc0ea80a16d1bb4ee29c.zip | |
renderer_vulkan: allow up to 7 swapchain images
Diffstat (limited to 'src/video_core/renderer_vulkan')
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_present_manager.cpp | 6 | ||||
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_update_descriptor.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/renderer_vulkan/vk_present_manager.cpp b/src/video_core/renderer_vulkan/vk_present_manager.cpp index a59e2d2d1..5e7518d96 100644 --- a/src/video_core/renderer_vulkan/vk_present_manager.cpp +++ b/src/video_core/renderer_vulkan/vk_present_manager.cpp | |||
| @@ -293,10 +293,10 @@ void PresentManager::RecreateSwapchain(Frame* frame) { | |||
| 293 | } | 293 | } |
| 294 | 294 | ||
| 295 | void PresentManager::SetImageCount() { | 295 | void PresentManager::SetImageCount() { |
| 296 | // We cannot have more than 5 images in flight at any given time. | 296 | // We cannot have more than 7 images in flight at any given time. |
| 297 | // FRAMES_IN_FLIGHT is 7, and the cache TICKS_TO_DESTROY is 6. | 297 | // FRAMES_IN_FLIGHT is 8, and the cache TICKS_TO_DESTROY is 8. |
| 298 | // Mali drivers will give us 6. | 298 | // Mali drivers will give us 6. |
| 299 | image_count = std::min<size_t>(swapchain.GetImageCount(), 5); | 299 | image_count = std::min<size_t>(swapchain.GetImageCount(), 7); |
| 300 | } | 300 | } |
| 301 | 301 | ||
| 302 | void PresentManager::CopyToSwapchain(Frame* frame) { | 302 | void PresentManager::CopyToSwapchain(Frame* frame) { |
diff --git a/src/video_core/renderer_vulkan/vk_update_descriptor.h b/src/video_core/renderer_vulkan/vk_update_descriptor.h index e77b576ec..82fce298d 100644 --- a/src/video_core/renderer_vulkan/vk_update_descriptor.h +++ b/src/video_core/renderer_vulkan/vk_update_descriptor.h | |||
| @@ -31,7 +31,7 @@ struct DescriptorUpdateEntry { | |||
| 31 | class UpdateDescriptorQueue final { | 31 | class UpdateDescriptorQueue final { |
| 32 | // This should be plenty for the vast majority of cases. Most desktop platforms only | 32 | // This should be plenty for the vast majority of cases. Most desktop platforms only |
| 33 | // provide up to 3 swapchain images. | 33 | // provide up to 3 swapchain images. |
| 34 | static constexpr size_t FRAMES_IN_FLIGHT = 7; | 34 | static constexpr size_t FRAMES_IN_FLIGHT = 8; |
| 35 | static constexpr size_t FRAME_PAYLOAD_SIZE = 0x20000; | 35 | static constexpr size_t FRAME_PAYLOAD_SIZE = 0x20000; |
| 36 | static constexpr size_t PAYLOAD_SIZE = FRAME_PAYLOAD_SIZE * FRAMES_IN_FLIGHT; | 36 | static constexpr size_t PAYLOAD_SIZE = FRAME_PAYLOAD_SIZE * FRAMES_IN_FLIGHT; |
| 37 | 37 | ||