evil staging buffers for PS4

This commit is contained in:
lizzie
2026-08-31 00:06:09 +00:00
parent dbfece8ff4
commit ea5d76013a
2 changed files with 7 additions and 1 deletions
@@ -33,7 +33,11 @@ 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(__FreeBSD__)
// With Orbis we need to be insanely chary with our allocations
// anything over 64MB is prone to crash the GPU, I'm sorry.
#if defined(__OPENORBIS__)
constexpr VkDeviceSize MAX_STREAM_BUFFER_SIZE = 32_MiB;
#elif defined(__FreeBSD__)
constexpr VkDeviceSize MAX_STREAM_BUFFER_SIZE = 128_MiB;
#else
constexpr VkDeviceSize MAX_STREAM_BUFFER_SIZE = 256_MiB;
@@ -108,10 +108,12 @@ vk::SurfaceKHR CreateSurface(
}
#endif
#ifndef __OPENORBIS__
if (!unsafe_surface) {
LOG_ERROR(Render_Vulkan, "Presentation not supported on this platform");
throw vk::Exception(VK_ERROR_INITIALIZATION_FAILED);
}
#endif
return vk::SurfaceKHR(unsafe_surface, *instance, dld);
}