Repository navigation
Add South Park: The Fractured But Whole (01008F2005154000) - #631
Open
Unknown15u wants to merge 1 commit into
Open
Unknown15u wants to merge 1 commit into
Unknown15u wants to merge 1 commit into
Conversation
First Android test of the game (POCO X7 Pro, Mali-G720, PanVK faux123 v1.1.8). The profile is imported from nxnative upstream (seedds/nxnative) with the Android memory fix: the Snowdrop allocator's 4 GB reservation did not fit the 4.375 GB alias region (~1 GB already used), so AllocateAddressRegion failed unchecked and the game crashed in DT_INIT (SIGSEGV at 0x8000ffff). The profile now sets mem_alias 8.375 GB and mem_reserve 9 GB. Also ports the bare-zlib Snowdrop shader reader (snowdrop_zlib, snowdrop_objects) from nxnative: this game's shaders are bare zlib streams in SDF data slices, not the 20-byte-header format, so the pack found 0 shaders without it. With it: 4,614 shaders, all valid. Tested on Android: opens and plays on 0.1.8-1, ~29-31 fps real, ~50 fps with frame generation; on the system driver it stays black (readiness fails: missing Placed memory maps), so PanVK is required on this GPU. See issue igawa6#619.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR title
Add South Park: The Fractured But Whole (01008F2005154000)
PR body (English, paste into the PR description)
Adds South Park: The Fractured But Whole (title ID
01008F2005154000, update 1.05 / v327680, Snowdrop engine on NVN). The profile is imported from nxnative upstream (seedds/nxnative,dm/games/01008F2005154000) and is the first Android test of the game. Fixes issue #619.The crash
On first launch the game crashed in
DT_INITwith SIGSEGV writing to0x8000ffff(pc=main+0x17fb4b0). Root cause: the Snowdrop allocator reserves one 4 GB address range viaAllocateAddressRegionand splits it (large pool, 512 KB pages, 64 KB pages starting atbase+0x80000000). The profile's alias region was 4.375 GB (mem_alias 0x118000000), but about 1 GB was already used before the allocator ran (log:alias region mapped up to +1.00 GB (alias region 4.38 GB)), leaving about 3.3 GB free, so the 4 GB reservation did not fit,AllocateAddressRegionfailed (base 0, unchecked), and the first use wrote to0x8000ffff. Same failure mode as Mario + Rabbids (docs/reference/memory.md). Confirmed byDM_ALIAS_SIZE=0x200000000(8 GB), which let the game open.Fix in the profile:
mem_alias 0x118000000->0x218000000(4.375 -> 8.375 GB),mem_reserve 0x140000000->0x240000000(5 -> 9 GB), keeping the 128 MB heap cap.The shader reader
This game's shaders are bare zlib streams (1 KB window, header bytes
28 15) inside SDF data slices (.mcache), not the 20-byte-header Snowdrop records, so the pack found 0 shaders without a reader. Portssnowdrop_zlibandsnowdrop_objects(plusSNOWDROP_CACHE,ZLIB_HEADERS, and thesnowdrop_shadershook) from nxnative intodm/gfx/tools/shader_split.py, markedPEANUTS(upstream-candidate). With it: 4,614 shaders (4,072 vertex, 467 pixel, 75 compute), all valid forspirv-val --target-env vulkan1.3.shader_split.pyis not in theDMSH_CHAINtool list, so no chain-header bump is needed.Test results
Device: POCO X7 Pro (Dimensity 8400 Ultra, Mali-G720 MC7, 12 GB RAM), Android 15, Peanuts Native 0.1.8-1, PanVK faux123 v1.1.8 (Mesa 26.3.0-devel).
Placed memory maps), the guest memory alias export is unavailable, and the game runs at ~35-48 fps but draws only 2-5 items/frame (38 on PanVK), so the scene never renders; no crash. PanVK is required on this GPU.What ran, and what did not
check-profiles.sh(186 titles, exit 0),gen_runtime_profile.py check-all(186 profiles, exit 0),test_docs.py(11/11),docs_symptoms.py(1017 symptoms),docs_patches.py(50 games). Phone runs on PanVK and on the system driver (see above).Files
dm/games/01008F2005154000/(new profile:game.tsv, shader tables,patches.py,README.md)dm/gfx/tools/shader_split.py(bare-zlib Snowdrop reader,PEANUTS(upstream-candidate))dm/games/README.md(games-table row)docs/reference/memory.md,docs/reference/shaders.md,docs/reference/frame-rate.md,docs/reference/rendering.md(South Park entries)docs/agents/symptoms.md,docs/agents/game-patches.md(regenerated indexes)peanuts/UPSTREAM-EDITS.md,peanuts/upstream-unmarked.txtSource only: no binaries, no keys, no firmware, no game files, no download links.
Fixes #619.