Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions android/app/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ android.nonTransitiveRClass=true
# nxGames is every game Banana Native supports on Android, the first the default: the profiles with a status row in their readiness.tsv (dm/games/README.md "Readiness
# rows"; dm/tools/tests/test_android_games.py keeps the two the same), so a test or release build never lacks one. -PnxGames=<title ID>,<title ID>,... builds a smaller APK
# (a game's bring-up, -PnxApp)
# PEANUTS: include both Trails in the Sky Android bring-up profiles.
nxGames=040074A01BF12000,0400C3F00006E000,0400486024DEC000,0400A3A01EE4C000,0400380020056000,04007EF01F8AE000,0400E88025B1A000,0400D4201C6EA000,040015100B514001,04004D300C5AE001,01007A2027548000,01002C9022770000
# PEANUTS: include the Trails in the Sky and Trails through Daybreak II Android bring-up profiles.
nxGames=040074A01BF12000,0400C3F00006E000,0400486024DEC000,0400A3A01EE4C000,0400380020056000,04007EF01F8AE000,0400E88025B1A000,0400D4201C6EA000,040015100B514001,04004D300C5AE001,01007A2027548000,01002C9022770000,0100F6701FED4000
23 changes: 23 additions & 0 deletions dm/games/0100F6701FED4000/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# The Legend of Heroes: Trails through Daybreak II (`0100F6701FED4000`)

<!-- PEANUTS: Android bring-up -->
**Bring-up, base 1.0.0 only.** The base NACP reports 1.0.0 (`v0`); no updates are registered. The 64-bit executable uses NVN and Nintendo SDK 17.5.6. For a single-title Android test build, use `-PnxGames=0100F6701FED4000`. The profile is not a release compatibility claim.

The executable imports the movie module `subsdk0`; the host supplies `rtld`. The allocator reserves ten `0x4be00000`-byte virtual ranges, separately from its heap. The profile leaves 16 GiB for those ranges; this is address space, not physical memory use.

The shader map has 4,471 distinct keys: 885 vertex, 3,539 pixel, 37 compute, five hull and five domain. Eighteen originate in `main`; the rest come from RomFS. The 1,750 vertex/pixel pairs cover shader inputs, not observed draws. The water materials use tessellation; this profile does not implement patch draws or establish that water renders correctly.

## The descriptor pools

The game uses three 1,048,576-entry texture pools. The Vulkan backend used to discard registrations outside the first range and let texture-base bits enter the sampler field. In a trace before the fix, the final composite's texture 386 changed from a 1920×1080 to a 640×360 source between frames 6442 and 6446, and the dialog draw's texture 393 from the 4096×4096 font atlas to a 64×64 image. See [Rotating texture pools select the wrong image](../../../docs/reference/rendering.md#rotating-texture-pools-select-the-wrong-image) for the shared Vulkan fix.

To check it: start a New Game on Normal, decline the optional import, and inspect the stationary recap dialog for flashing rectangles. Texture 386 in the final composite should resolve to the 1920×1080 target and texture 393 in the dialog to the font atlas.

## Hardware checkpoints

These runs were made on an earlier tree than the current `main`, with the descriptor-pool fix; they have not been repeated on it.

- **AYN Thor, Adreno 740, Turnip v27.0.0-R1:** before the fix, five of eight before-present readbacks from the recap contained colored rectangles, and the red corner appeared in 72 of 452 frames of a stationary recap recording; with the fix it appeared in 0 of 602, and materially mismatching dialog frames fell from 148 to 0. The composite and font sources had the expected dimensions in 8 of 8 traced frames each. New Game → Normal → decline import → skip the recap → skip the office event reached the field and save tutorials; after both were dismissed, forward stick input moved Van from Montmart Bistro through its door onto the cobbled street, with building surfaces, shadows and the "Gather info in Riverside" HUD visible.
- **AYN Odin 2, Adreno 740, Android 13:** on both the Qualcomm system driver (Vulkan 1.3.128) and Turnip v27.0.0-R1 (Vulkan 1.4.363), New Game → Normal → decline import reached the recap; 22-second stationary recordings (661 frames each) showed neither the red corner nor a one-frame dialog dropout. On the system driver, after Skip, the opening cinematic played, then the host reported a GPU hang (`VK_ERROR_DEVICE_LOST`, submission 13559 at frame 6779) and exited: field gameplay was not reached on that driver. On Turnip the same Bistro route reached the street labelled **Edith – Old Town** with the "Gather info in Riverside" HUD.

This is early field control, not a compatibility claim: manual save/load, combat, later areas, water and extended play are unverified.
27 changes: 27 additions & 0 deletions dm/games/0100F6701FED4000/game.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# PEANUTS: The Legend of Heroes: Trails through Daybreak II, Switch base 1.0.0, SDK 17.5.6.
title_id 0100F6701FED4000
program_id 0100F6701FED4000
name The Legend of Heroes: Trails through Daybreak II
ipa Trails-through-Daybreak-II.ipa
app_category public.app-category.role-playing-games

build v0 1.0.0 main=49ee48d255d782fa3f7447bd71e55d1c subsdk0=540b08ec046f39a50014ed6cd9117eb9 sdk=38873c89d24e5d11020e8d0aafe51cab
package v0
shader_versions v0

# main imports NintendoSDK_movie; the host supplies rtld.
modules main subsdk0 sdk
romfs_marker asset/asset_config.json
zip_store .mp4:.nxopus:.nvn:.pac:.metallib

# main reserves 10 * 0x4be00000 bytes in the alias region. Its heap can reach
# 0x81600000 bytes with this application pool; leave 2.25 GiB for the heap.
mem_reserve 0x4b0000000
mem_alias 0x400000000
mem_stack 0x10000000
app_pool 0xCD500000
# 16 MiB of system resources in main.npdm.
sys_resource 0x1000000

shader_groups /asset/=asset /pac/=pac /system_nx/=systemnx
shader_note Trails through Daybreak II 1.0.0 NVN shaders
1 change: 1 addition & 0 deletions dm/games/0100F6701FED4000/pso_pairs.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# kind: evidence supplemental vertex / pixel shader pairs (BAHS program variations and legacy Unity pass-input covers) for vertex output padding and the pipeline prebuild (generated by dm/gfx/tools/shader_split.py, do not edit): vertex key <TAB> pixel key
7 changes: 7 additions & 0 deletions dm/games/0100F6701FED4000/readiness.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# PEANUTS: experimental Android profile for the base game. Recap and early field control seen on an AYN Thor and an AYN Odin 2 (Turnip); later gameplay and water unverified.
status bring-up
degraded feature.tessellationShader 1 Tessellation shaders: the base water materials use five hull and five domain shaders; water rendering is unverified and patch draws are not implemented
required feature.shaderDrawParameters 1 Shader draw parameters: all 885 vertex shaders of the game declare DrawParameters
degraded feature.shaderStorageImageWriteWithoutFormat 1 Storage image writes without a format: ten of the game's shaders use them
degraded feature.shaderInt64 1 64-bit integers in shaders: one of the game's shaders uses them
degraded feature.bufferDeviceAddress 1 Buffer device addresses: one of the game's shaders declares physical storage buffer addresses
38 changes: 38 additions & 0 deletions dm/games/0100F6701FED4000/shader_facts.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Answer table for translation queries (generated by dm/gfx/tools/shader_split.py, do not edit): key <TAB> fact JSON. No PC shader pairing supplied: only the thread group / shared memory of compute shaders (taken from the control section); other queries get the translator defaults
00d1c99f82ff2f31 {"local":[1,1,1],"shared":0}
0d23108aeee92121 {"local":[8,8,1],"shared":0}
15befafcd9033049 {"local":[4,8,2],"shared":0}
1631eeb547948353 {"local":[1024,1,1],"shared":0}
1bb631f5612d6480 {"local":[8,8,1],"shared":1280}
1f03491c45214687 {"local":[64,1,1],"shared":0}
1f7eb0c71511c873 {"local":[1,1,1],"shared":0}
25837b960df43e10 {"local":[8,8,1],"shared":0}
3288d3a9901e8cd6 {"local":[8,2,4],"shared":1792}
3ba5920d18369212 {"local":[32,9,1],"shared":0}
40dd3ccfdf5f4d9f {"local":[4,4,10],"shared":0}
45a7b096ad6382b4 {"local":[1024,1,1],"shared":16384}
4ec685f6cb37efea {"local":[32,10,1],"shared":0}
51bb2654ec5dfe72 {"local":[32,32,1],"shared":0}
5289ce357e612f9a {"local":[22,1,1],"shared":0}
5ea8327a9864bb67 {"local":[2,1,1],"shared":0}
5eb4cd26d675cd0b {"local":[16,2,16],"shared":0}
655e979d4a0db2ff {"local":[32,10,1],"shared":0}
6e0618a3440c96eb {"local":[32,1,1],"shared":0}
734cf78a4c4e6848 {"local":[64,1,1],"shared":0}
8963008e8cd4c97a {"local":[32,9,1],"shared":0}
972bbabb56333a61 {"local":[1,1,1],"shared":0}
a54fd54c5ffe538f {"local":[1024,1,1],"shared":16384}
a8c332caff006556 {"local":[1024,1,1],"shared":36864}
ba4c629f6f8184ff {"local":[64,1,1],"shared":0}
bca68c94ca639166 {"local":[512,1,1],"shared":0}
bfb69e5495526e7e {"local":[1024,1,1],"shared":0}
c32ff39ff1c77dd1 {"local":[256,1,1],"shared":0}
cddc7f1aef3ad3bf {"local":[64,1,1],"shared":0}
ce7407477cf8ff65 {"local":[512,1,1],"shared":0}
d4f322e6955a9f4d {"local":[64,1,1],"shared":0}
d9cdea03d105340d {"local":[1024,1,1],"shared":0}
dd41df368d1ab8fb {"local":[1024,1,1],"shared":0}
e35a8d015b3ebe39 {"local":[8,8,1],"shared":0}
e7ab788ed276ae0a {"local":[8,8,1],"shared":0}
e9549bd8134839b8 {"local":[1024,1,1],"shared":0}
f1a6db2980b7609f {"local":[512,1,1],"shared":0}
Loading