mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-25 14:05:57 +00:00
Run 1.4.3 into its opening cutscene: CPU-visible physical pools, no add-on content list, probes on SDK 20.5
1.4.3's GPU heap allocator creates a physical pool with flags 0x18c (CPU_CACHED, GPU_NO_ACCESS, COMPRESSIBLE): it keeps the game's storage and gets device memory like the 0x189 pools of 1.2.1, which virtual pools alias. The CPU never writes that storage (its hash was unchanged over 3600 frames of the intro), so nothing is synced. nn::aoc::ListAddOnContent, which 1.4.3's main calls at start, returns no add-on content instead of running the SDK on an uninitialized aoc client. probe-ipc runs the 1.4.3 SDK's renderer semaphore constructor (sdk+0x221fb0) instead of the 1.2.1 sf heaps, and expects SDK 20.5 to keep its audren:u manager session open. probe-services checks ListAddOnContent. package_build.py takes --version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
cd60d20a7f
commit
a7e362fc0a
6 files changed
+50
-18
No files matched your search
+3
-1
@@ -242,7 +242,9 @@ static void destroy_rec(VkCtx *c, PoolRec *r) {
|
||||
int vk_pool_init(pool_t *p) {
|
||||
VkCtx *c = vk_ctx();
|
||||
if (!c) { rt_log("vk: MemoryPoolInitialize before vk_init"); return 0; }
|
||||
// The GPU never sees a GPU_NO_ACCESS pool, except a physical one (0x189) through the virtual pools that map it.
|
||||
// The GPU never sees a GPU_NO_ACCESS pool, except a physical one (0x189; 1.4.3 also 0x18c, CPU-visible) through the
|
||||
// virtual pools that map it. Either gets device-local memory: 1.4.3's CPU never writes its 0x18c pool's storage
|
||||
// (unchanged over 3600 frames of the intro), so the guest storage and the GPU copy need no sync.
|
||||
if ((p->flags & NVN_MEMORY_POOL_FLAGS_GPU_NO_ACCESS) && !(p->flags & NVN_MEMORY_POOL_FLAGS_PHYSICAL)) return 1;
|
||||
PoolRec *r = calloc(1, sizeof *r);
|
||||
if (!r) rt_fatal("vk: out of memory for a pool record");
|
||||
|
||||
Reference in new issue
Block a user