Skip to content
Closed
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ These Switch 2 games have passed Mac gameplay testing. Build them from a [`.nup`
- [Kirby Air Riders](dm/games/040077201BE50000/README.md)
- [Mario Kart World](dm/games/0400C3F00006E000/README.md)
- [Mario Tennis Fever](dm/games/0400D4201C6EA000/README.md)
- [Nintendo Switch 2 Welcome Tour](dm/games/040057C02159A000/README.md)
- [Nintendo Switch Sports Resort](dm/games/04008E001F098000/README.md)
- [Pokémon Pokopia](dm/games/0400A3A01EE4C000/README.md)
- [PRAGMATA](dm/games/0400C76024710000/README.md)
Expand Down
35 changes: 35 additions & 0 deletions dm/games/040057C02159A000/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Nintendo Switch 2 Welcome Tour (`040057C02159A000`)

A Switch 2 game: update v262144 over the base game, SDK 20.5.29 built for the Switch 2 (`Ounce`), NVN2. NintendoWare's Bezel Engine, modules `main`, `subsdk0`, `subsdk1` (movie), `subsdk3` and `sdk`. **In bring-up; plays on the Mac** (M1 Pro, macOS 27.2): past its intro video to the tour, its menus and exhibits, at about 60 fps (frame time p50 16.7 ms, p95 20 ms over 300 frames, 9 minutes into a session). No IPA has been built.

## What it needs

| Setting | Where | Why |
|---|---|---|
| `mem_alias 0x400000000`, `mem_reserve 0x550000000`, `mem_stack 0x10000000`, `app_pool 0x240000000` | [`game.tsv`](game.tsv) | the Switch 2's 9 GB, as Splatoon Raiders and Star Fox: with `profile_guess.py`'s 5 GB block (a 4.4 GB alias region and a 1 GB pool) Bezel's allocator found no room at boot ([Bezel Engine's two memory setups](../../../docs/reference/memory.md#bezel-engines-two-memory-setups)) |
| `sys_resource 0x1000000` | `game.tsv` | the NPDM declares 16 MB, so virtual address memory is on |
| `modules` without `subsdk2`, `subsdk4` | `game.tsv` | C / libc modules main takes nothing from that the host does not supply |

## Files

- Built from a dump folder (`base/`, `updates/262144/`). The display version `v262144` is a placeholder: no control data gave a better one.
- RomFS: 722 files, 1.49 GB, most of it Bezel Engine archives (`Archive/*.bea`).
- Shaders: 6,766 in [`shader_map.tsv`](shader_map.tsv) (6,758 at first; the tables were split again on 7 November, when `main`'s mesh reader found 7 mesh shaders and a task shader of `forward_plus.bfsha` and 14 more pairs). On chain `3df44a5a4e0c` (9 November), 29 fail to translate (current): 28 on Ampere instruction `0x3ad`, which is not implemented, and one `AST` with an offset register and an address. In 9 more shaders the translator deleted 429 bindless accesses (their results read 0). 6,102 pipeline pairs prebuild.

## Controllers

The exhibits use the Joy-Con 2's features: the mouse sensor, the Joy-Con 2 npad styles and HD rumble, which the Switch 2 controllers bring ([The Joy-Con 2 mouse sensor and pointer](../../../docs/reference/services.md#the-joy-con-2-mouse-sensor-and-pointer), issue [#1267](https://github.com/seedds/nxnative/issues/1267)). With the **Switch 2 controllers** setting on, a left and a right Joy-Con 2 over Bluetooth LE moved the cursor on a desk, clicked with R, and played the mouse exhibits and the bead and rubber-ball rumble exhibits. With other controllers the game runs, but the cursor does not move.

## Open

- Ray tracing: `nvnQueueBuilderSetRayTracingMemorySize`, `nvnProgramBuilderSetRayTracingModules`, `nvnProgramBuilderSetProgramRayTracingFlags`, `nvnProgramBuilderSetMaxTraceRecursionDepth`, `nvnProgramBuilderSetMaxCallableRecursionDepth`, `nvnProgramGetShaderGroupHandle` and `nvnDeviceCalculateAccelerationStructureMemoryRequirements` are unimplemented (`[RED]`, once each at boot), as is `nvnDeviceRegisterFastClearStencil`. What the game draws with them is not known.
- `[RED] nn::codec H.264: a packet refused with 12 pictures waiting for a released buffer`, a few times in the videos.
- `[RED] stage 0 cb7 has no uniform buffer bound`, once.
- An IPA: the 16 GB alias region is over iOS's limit.

## Found on this game

- [`vi::InitializeWithVrrLfcEnabled`](../../../docs/reference/services.md#viinitializewithvrrlfcenabled): the first crash at boot.
- [A Nintendo application's scene id](../../../docs/reference/services.md#a-nintendo-applications-scene-id): a null read as each scene module starts.
- [The application's GPU time span](../../../docs/reference/services.md#the-applications-gpu-time-span): a null read after the first frame.
- [Bezel Engine's two memory setups](../../../docs/reference/memory.md#bezel-engines-two-memory-setups): the virtual-memory path, with the Switch 2 layout.
1 change: 1 addition & 0 deletions dm/games/040057C02159A000/bf_want.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# generated
36 changes: 36 additions & 0 deletions dm/games/040057C02159A000/game.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Nintendo Switch 2 Welcome Tour (Switch 2, update v262144). In bring-up
# NintendoWare's Bezel Engine, SDK 20.5.29 built for the Switch 2 (Ounce), NVN2; modules main + subsdk0, subsdk1 (movie), subsdk3 + sdk (subsdk2 and subsdk4, C / libc, are not loaded:
# main takes nothing from them the host does not supply). Started from dm/games/profile_guess.py's profile; the memory below was changed by hand (see the note).

# ---- Identity ----
title_id 040057C02159A000
program_id 040057C02159A000

# ---- App ----
name Nintendo Switch 2 Welcome Tour
ipa WelcomeTour.ipa
app_category public.app-category.games

# ---- Versions ----
build v262144 v262144 main=6e3d11763a988c6b947510e0ae08ad00 subsdk0=4231539cc2c921bf968abf05ffd2cbab subsdk1=d314fe6517f644ccf25d152ff194d3e1 subsdk3=23679a6598fb74093de7fcede0c6e5bd sdk=d743946430d5252672cb63013b73a0ea
package v262144
shader_versions v262144

# ---- Files ----
modules main subsdk0 subsdk1 subsdk3 sdk
romfs_marker Archive/flow~flow100.ounce.bea
zip_store .bea:.bfstm:.mp4:.metallib

# ---- Memory ----
# The Switch 2's 9 GB, as Splatoon Raiders and Star Fox have it: 256 MB in front + alias region + 256 MB stack region + heap region. The guess (a 5 GB block with a 4.4 GB alias region
# and a 1 GB pool) ran out at boot: the Bezel Engine's allocator found no room and stopped on its NotNull check
mem_reserve 0x550000000
mem_alias 0x400000000
mem_stack 0x10000000
app_pool 0x240000000
# the NPDM declares 16 MB of system resource, so virtual address memory is on
sys_resource 0x1000000

# ---- Shader split ----
shader_groups /movie/=movie /Archive/=archive /stream/=stream /nro/=nro /.nrr/=nrr
shader_note 040057C02159A000 shaders
2 changes: 2 additions & 0 deletions dm/games/040057C02159A000/pso_manifest.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Prewarm seed list (shipped in the app, next to shader_map.tsv). Rows: S<TAB>shader key<TAB>stage / R<TAB>render pipeline key (pso_skey hex) / C<TAB>compute shader key.
# Provisional profile: empty until recorded on the Mac (DM_PSO_MANIFEST=off DM_PSO_RECORD).
1 change: 1 addition & 0 deletions dm/games/040057C02159A000/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
81 changes: 81 additions & 0 deletions dm/games/040057C02159A000/shader_facts.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# 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
061280460aeb2d8e {"local":[256,1,1],"shared":0}
06e2bc65efd51329 {"local":[32,1,1],"shared":0}
0ad26b35d924f0f3 {"local":[8,4,1],"shared":0}
0c6670bd5253d6bf {"local":[256,1,1],"shared":0}
1267b4b89f299423 {"local":[256,1,1],"shared":0}
16432506e611c08d {"local":[256,1,1],"shared":0}
19137f950b849aeb {"local":[32,1,1],"shared":0}
1e204834eb5c8509 {"local":[256,1,1],"shared":0}
2638067675ad5fd3 {"local":[256,1,1],"shared":0}
27ce062775432929 {"local":[256,1,1],"shared":0}
28071b6b9263a43e {"local":[256,1,1],"shared":0}
2f4da8de6822f008 {"local":[256,1,1],"shared":0}
320c7f1b1e6b2bc0 {"local":[256,1,1],"shared":0}
33ac9e8680ae71ce {"local":[256,1,1],"shared":0}
392865735b62558d {"local":[256,1,1],"shared":0}
3ddeeff852119e26 {"local":[256,1,1],"shared":0}
418fd5ed83f3ecc4 {"local":[256,1,1],"shared":0}
42d656c43378363e {"local":[256,1,1],"shared":0}
4402ea72a8799600 {"local":[256,1,1],"shared":0}
4829861f26779851 {"local":[256,1,1],"shared":0}
4f7b56a3dedcd84a {"local":[8,4,1],"shared":0}
542a798f8ddb4447 {"local":[32,1,1],"shared":0}
56647bf2a7e6df2f {"local":[256,1,1],"shared":0}
584b0f265342b59f {"local":[32,1,1],"shared":0}
613529ba05e777b4 {"local":[256,1,1],"shared":0}
6a92be6fc8f2d854 {"local":[256,1,1],"shared":0}
70b9c9e8c55f0b00 {"local":[256,1,1],"shared":0}
72ffa8106f0a16dc {"local":[256,1,1],"shared":0}
759311a8146db2ba {"local":[256,1,1],"shared":0}
7974d3445e3d3cfe {"local":[8,4,1],"shared":0}
79c19e761158f16e {"local":[256,1,1],"shared":0}
7ba1ed72d301f92e {"local":[256,1,1],"shared":0}
7c009c371b9fe669 {"local":[256,1,1],"shared":0}
7ef04c61882d6f5c {"local":[256,1,1],"shared":0}
81b84ecdd54f2b9a {"local":[256,1,1],"shared":0}
836334626099b09d {"local":[256,1,1],"shared":0}
845430044a8497eb {"local":[32,1,1],"shared":0}
85be17e3c53b1ec0 {"local":[256,1,1],"shared":0}
87e296a2d5137d86 {"local":[256,1,1],"shared":0}
8823f927a08cbe81 {"local":[256,1,1],"shared":0}
8a288142772e37c5 {"local":[256,1,1],"shared":0}
8c1d06177f9a4516 {"local":[256,1,1],"shared":0}
8f21c062c3beff0c {"local":[256,1,1],"shared":0}
91faff512388e104 {"local":[256,1,1],"shared":0}
965d900ec924797b {"local":[256,1,1],"shared":0}
9af7c2de06e8e35b {"local":[256,1,1],"shared":0}
9ec58759a1fb27ee {"local":[256,1,1],"shared":0}
a00d5cc24cd15220 {"local":[256,1,1],"shared":0}
a20dcae89cbf682d {"local":[256,1,1],"shared":0}
a67c5bb0db51153f {"local":[256,1,1],"shared":0}
a98d1011f24ed2e7 {"local":[32,1,1],"shared":0}
aafe0539fcdf69ed {"local":[256,1,1],"shared":0}
ac20e8bfa2ac03f3 {"local":[256,1,1],"shared":0}
acf3fbde8c40a6c5 {"local":[256,1,1],"shared":0}
b05fe768ed279ca6 {"local":[256,1,1],"shared":0}
b204d7be17674cde {"local":[32,1,1],"shared":0}
b549161b1245a819 {"local":[256,1,1],"shared":0}
b88cfd4e3e0591f4 {"local":[256,1,1],"shared":0}
b9cc91cbfe081825 {"local":[256,1,1],"shared":0}
bf1e9f7b3d7d4b06 {"local":[256,1,1],"shared":0}
c26d24cc9065494d {"local":[256,1,1],"shared":0}
c31aa258f88160e7 {"local":[256,1,1],"shared":0}
c6b1f676b1517c83 {"local":[256,1,1],"shared":0}
c780b6e4f9f7d1ad {"local":[256,1,1],"shared":0}
cbcd6c54de57be58 {"local":[256,1,1],"shared":0}
cf0ba45cbf474456 {"local":[256,1,1],"shared":0}
d07bdd93d27621ee {"local":[32,1,1],"shared":0}
d898cc6388ccc895 {"local":[256,1,1],"shared":0}
d9902c852c84efdc {"local":[256,1,1],"shared":0}
e024eee63ee722bf {"local":[256,1,1],"shared":0}
e0eee88072aac99d {"local":[256,1,1],"shared":0}
e541e59a8a31ef5e {"local":[256,1,1],"shared":0}
ebb4f0629a67c063 {"local":[256,1,1],"shared":0}
f12c6fbf657b5fde {"local":[32,1,1],"shared":0}
f3030feaf737e502 {"local":[256,1,1],"shared":0}
f4ca30b9c454a61d {"local":[32,1,1],"shared":0}
f88fb4669d075613 {"local":[256,1,1],"shared":0}
fb0dc2e13564438d {"local":[256,1,1],"shared":0}
fda3d57867838122 {"local":[256,1,1],"shared":0}
fe82cefb859c9007 {"local":[256,1,1],"shared":0}
Loading
Loading