mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 00:29:58 -04:00
Merge the pull request intake: fewer than six cores, a comma in the game folder's path, the pipeline cache's size check, video memory and commit handling, and smaller fixes.
The two sides both made the wait after a frame's first submission cover the write-backs under shadow storage; the rule is kept in one place, vk_sync_wb_split. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -4018,6 +4018,12 @@ void *vk_staging(VkDeviceSize size, VkBuffer *buf, VmaAllocation *alloc) {
|
||||
VkBuffer b;
|
||||
VmaAllocation a;
|
||||
VkResult r = vmaCreateBuffer(c->vma, &bi, &aci, &b, &a, &info);
|
||||
if (r == VK_ERROR_OUT_OF_DEVICE_MEMORY && aci.pool) {
|
||||
// The staging pool can grow only in 64 MiB blocks of its one memory type. A smaller allocation may
|
||||
// still fit in a default block or another host-visible type. Keep the same mapping requirements.
|
||||
aci.pool = NULL;
|
||||
r = vmaCreateBuffer(c->vma, &bi, &aci, &b, &a, &info);
|
||||
}
|
||||
if (r != VK_SUCCESS) rt_fatal("vk: staging buffer of %llu bytes failed (%d)", (unsigned long long)size, (int)r);
|
||||
vk_texstat_add(VK_TS_STG_NEW, 1, bi.size);
|
||||
*buf = b;
|
||||
|
||||
Reference in New Issue
Block a user