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:
chrg6
2026-11-10 23:35:05 -05:00
54 changed files with 1779 additions and 167 deletions

View File

@@ -726,6 +726,10 @@ static int fence_wait_impl(uint64_t value, uint64_t timeout_ns) {
// CPU side effects of its fence may still be to come. 1 when reached.
int vk_sync_exec_wait(uint64_t value, uint64_t timeout_ns) {
vk_sync_start();
// With shadow storage (vk_mem_shadow_storage) what the GPU wrote reaches guest memory in the completion thread's
// fence callback, after the executed timeline: a wait that returned there let the game rewrite a pool that an
// older write-back then overwrote (Kokiri Forest: a sky coefficient the game had reset came back, and the world
// flickered washed out). So the wait covers the write-backs there, as without the split.
if (!vk_sync_wb_split()) return vk_sync_fence_wait(value, timeout_ns);
if (__atomic_load_n(&done, __ATOMIC_ACQUIRE) >= value) return 1;
uint64_t p0 = perf_begin();