From 55acf5d2609b49c4b3140ceda7049ba416b22cbf Mon Sep 17 00:00:00 2001 From: John Date: Sun, 23 Aug 2026 17:43:35 +0200 Subject: [PATCH] [Vulkan] Apply MK8D Buffer Fix to Linux (#4289) - [x] I have read and followed the [Contribution Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/CONTRIBUTING.md#code-contributions). - [x] I have read and followed the [AI Policy](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/AI.md) - [x] I have read and followed the [Coding Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/Coding.md) to the best of my ability. ------------------- Credit: MaranBR - Adds the Rainbow Graphics Bug Fix to Linux as the game needs MAX_STREAM_BUFFER_SIZE = 256_MiB ![image](/attachments/722d4014-9449-47a0-be47-730b99e0b464) Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4289 Reviewed-by: Maufeat Reviewed-by: Samuel --- src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp b/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp index 0e52dceaad..7b6571d33d 100644 --- a/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp +++ b/src/video_core/renderer_vulkan/vk_staging_buffer_pool.cpp @@ -33,10 +33,10 @@ constexpr VkDeviceSize MAX_ALIGNMENT = 256; // Windows ones however, can intake bigger buffers and generally do not OOM. // - GTX 960 on Windows will not OOM with 256mib // - GT 1030 on ^NIX will OOM with 256mib -#if defined(_WIN32) || defined(__ANDROID__) -constexpr VkDeviceSize MAX_STREAM_BUFFER_SIZE = 256_MiB; -#else +#if defined(__FreeBSD__) constexpr VkDeviceSize MAX_STREAM_BUFFER_SIZE = 128_MiB; +#else +constexpr VkDeviceSize MAX_STREAM_BUFFER_SIZE = 256_MiB; #endif size_t GetStreamBufferSize(const Device& device) {