Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
1e2ceda
test: fssm_pack.py, synthetic FSSM programs from hand-written RDNA2 a…
tedin7 Nov 23, 2026
09e2509
ci: the runtime workflow also runs for tools/rdna2_decode.py and rdna…
tedin7 Nov 23, 2026
369e071
test: fssm_pack.py writes slot bytes, binding records and two 0x0D pa…
tedin7 Nov 23, 2026
683cd3b
fix: fssm_pack.py refuses shader names that differ only in case
tedin7 Nov 23, 2026
feba974
test: Lanterns stage 1, a synthetic title-shaped guest drawn through …
tedin7 Nov 23, 2026
3049375
fix: run_lanterns.py accepts only the whole PASS line and fails when …
tedin7 Nov 23, 2026
e18c24a
fix: the Lanterns shaders are rebuilt when any tools/*.py changes
tedin7 Nov 23, 2026
93d93af
test: Lanterns stage 1 checks the lookup, wave64 and shared edges, an…
tedin7 Nov 23, 2026
836fd93
docs: Lanterns stage 1 after the audit fixes
tedin7 Nov 23, 2026
8848c21
test: Lanterns stage 1 draws shared edges through a wave64 VS/PS with…
tedin7 Nov 23, 2026
6f0f173
fix: the Lanterns shaders are also rebuilt when a tools/*.json changes
tedin7 Nov 23, 2026
13175c9
fix: run_lanterns.py bounds its wineserver stop and needs the subreaper
tedin7 Nov 23, 2026
adb3d50
test: Lanterns stage 3, compute on a second queue feeding a draw
tedin7 Nov 23, 2026
f9b8050
test: Lanterns stage 6, BC1 and BC7 textures with full mip chains
tedin7 Nov 23, 2026
8e52711
test: Lanterns stage 8, a shadow map with PSO depth bias and 2x2 PCF
tedin7 Nov 23, 2026
6836fe8
test: Lanterns stage 5, render to an fp16 target and a bloom post-pro…
tedin7 Nov 23, 2026
89127f0
fix: Lanterns stage 1's edge draw reads its buffers from DEFAULT heaps
tedin7 Nov 23, 2026
285888e
Merge 89127f0f (restacked lower piece) into lanterns-stage3
tedin7 Nov 23, 2026
c28aeb7
Merge 285888e2 (restacked lower piece) into lanterns-stage6
tedin7 Nov 23, 2026
4f22615
Merge c28aeb7d (restacked lower piece) into lanterns-stage8
tedin7 Nov 23, 2026
a2aae90
Merge 4f22615b (restacked lower piece) into lanterns-stage5
tedin7 Nov 23, 2026
bb011b4
fix: Lanterns stage 5's row pass needs its s_barrier
tedin7 Nov 23, 2026
0f937a4
test: Lanterns stage 9, deferred lighting with tiled light culling in…
tedin7 Nov 23, 2026
4f5ded3
fix: Lanterns stage 9's control pipelines, lights buffer, ctest and s…
tedin7 Nov 23, 2026
15648ae
fix: Lanterns stage 5's skipped-blur control checks where the pixels …
tedin7 Nov 23, 2026
8bf1fc6
Merge origin/main into lanterns-stage1
tedin7 Nov 23, 2026
8f3cafa
Merge branch 'lanterns-stage1' into lanterns-stage3
tedin7 Nov 23, 2026
3945e2f
Merge branch 'lanterns-stage3' into lanterns-stage6
tedin7 Nov 23, 2026
5dbf146
Merge branch 'lanterns-stage6' into lanterns-stage8
tedin7 Nov 23, 2026
28dec6b
Merge branch 'lanterns-stage8' into lanterns-stage5
tedin7 Nov 23, 2026
5982d5f
Merge branch 'lanterns-stage5' into lanterns-stage9
tedin7 Nov 23, 2026
39afd92
fix: Lanterns stage 3's compute shaders take D3D-448's root-argument …
tedin7 Nov 23, 2026
8cea126
Merge branch 'lanterns-stage3' into lanterns-stage6
tedin7 Nov 23, 2026
290f62d
Merge branch 'lanterns-stage6' into lanterns-stage8
tedin7 Nov 23, 2026
87db3e1
Merge branch 'lanterns-stage8' into lanterns-stage5
tedin7 Nov 23, 2026
d8b45b7
fix: Lanterns stage 5's compute shaders take D3D-448's root-argument …
tedin7 Nov 23, 2026
525b917
Merge branch 'lanterns-stage5' into lanterns-stage9
tedin7 Nov 23, 2026
97073a6
fix: Lanterns stage 9's compute shaders take D3D-448's root-argument …
tedin7 Nov 23, 2026
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: 4 additions & 0 deletions .github/workflows/runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ on:
- "tools/lane_masks.py"
- "tools/mc_command.py"
- "tools/mesh_compute_vs.py"
- "tools/rdna2_decode.py"
- "tools/rdna2_isa_tables.py"
- "tools/rdna2spirv.py"
- "tools/report_paths.py"
- "tools/shader_carve.py"
Expand Down Expand Up @@ -72,6 +74,8 @@ on:
- "tools/lane_masks.py"
- "tools/mc_command.py"
- "tools/mesh_compute_vs.py"
- "tools/rdna2_decode.py"
- "tools/rdna2_isa_tables.py"
- "tools/rdna2spirv.py"
- "tools/report_paths.py"
- "tools/shader_carve.py"
Expand Down
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ method, scope and caveats. No game data is included.
| [buffer_formats.md](buffer_formats.md) | Every GFX10 buffer data format a V# or MTBUF can name, loaded and stored, measured on a Radeon 880M (RDNA3.5, not RDNA2): 1.33 million validated elements, 0 mismatches; SCALED stores convert as NORM, float stores round toward zero. |
| [fssm_crosscheck.md](fssm_crosscheck.md) | FSSM/RDNA2 facts cross-checked against SCARAB; code starts at `code_off + 0x28`. |
| [fspx.md](fspx.md) | `FSPX`, the FidelityFX DLL's native compute programs (its shaders' `ACCC` part): directory as the DLL reads it, kind-0 dispatch state, the hash prologue, `gfx1030` for its `v_dot4` code; 13 of 29 translate with `tools/fspx_unpack.py`. |
| [lanterns.md](lanterns.md) | Lanterns, a synthetic title-shaped guest through `gta6rt --run`: hand-written RDNA2 shaders packed into FSSM containers, translated offline, drawn on the Vulkan device and checked pixel by pixel against a CPU reference, with a negative control; stage 1 (five instanced draws with depth) passes on an RTX 5080 under Wine. |
| [first_light.md](first_light.md) | Draw an exported model's UVs or sample a supplied texture with `--dds`. The UV draw covered 78.1% on an RTX 2060 SUPER (4,213 vertices, 7,968 triangles). The first draw of a real game model with its own translated VS/PS on a GPU: 4,213 vertices / 7,968 triangles, 78.1% coverage on an RTX 2060 SUPER; `tools/first_light.py`, the `vk_harness` mesh mode, and the same draw through the D3D12 layer (`d3d12_first_light`). |
| [material_pass_replay.md](material_pass_replay.md) | How one authored mesh writes packed draw indices, how six compute programs read the layout, and which sibling passes read the surface material. |
| [embedded_shaders.md](embedded_shaders.md) | DXBC containers embedded in the package's DLLs: 52 in `XboxBvhBuilder.dll` (console `FSSM` via the `XDAT`/`XBCH` record; 51/52 pass `spirv-val` today) and 29 `ACCC`/`FSPX` in the FidelityFX upscaler; the scan/extract tool and the one rule still missing. |
Expand Down
7 changes: 7 additions & 0 deletions docs/d3d12_vulkan.md
Original file line number Diff line number Diff line change
Expand Up @@ -3574,6 +3574,13 @@ M0–M2 do not need the executable.
| **M6** | Ray tracing/XDXR: standard AS builds or the shipped `XboxBvhBuilder` compute path; BVH node format; the builder's 52 console `FSSM` programs (51 pass `spirv-val`, one rule left: [embedded_shaders.md](embedded_shaders.md)) | RT shadows and any RT effects | RT output matches a reference; the builder's shaders run through the `FSSM` translator or a substitute; no unknown XDXR call remains |
| **M7** | HDR, VRS, `PresentX` planes (2-plane HDR + GameDVR compose, `ImmediateThresholdPercent`), resize, alt-tab, `SuspendX`/`ResumeX`, frame pacing and `GetFrameStatisticsX` | Presentation polish | HDR and resize work on the target display; no validation errors over a long run. **Partly met:** `ImmediateThresholdPercent` (late frame flipped at once through `VK_KHR/EXT_swapchain_maintenance1` IMMEDIATE/FIFO_RELAXED, section 4.5; checked on the fake-clock decision and on the Vulkan present mode, 0 VUIDs in our runs with `LEONIDA_VK_VALIDATION=1` on two GPUs, no tearing observed on a display; the console's real semantics are unmeasured). **Plane compose** (section 4.5): 1-2 planes scaled from a source rectangle to a destination placement, point or bilinear, plane 1 alpha-blended (premultiplied or straight), filtered and blended in linear light, SDR (sRGB or gamma 2.2) and HDR10 (PQ) planes converted to the swapchain, SDR white from Windows' setting when HDR10 is active (else 203 nits), checked against a CPU model on two GPUs with 0 VUIDs (exact for point filtering, within 1-2 levels for bilinear, alpha, tone map and PQ conversions); the layouts, flag values and alpha convention are ours, the console's plane semantics are unmeasured, and the public HDR sample's second plane is the GameDVR copy, not an overlay. HDR10 swapchain (ST.2084 surface): verified on an RTX 5080 with an HDR10 display by @JavierBlanco23 in #2069, not on AMD (our test displays list no ST.2084 surface); HDR10 on an SDR swapchain is tone mapped (identity below 0.8 of SDR white, Reinhard shoulder above, then clipped per channel). `SuspendX`/`ResumeX`, frame pacing and a minimal `GetFrameStatisticsX` exist; VRS, alt-tab, an AMD HDR10 display run are open |

**Milestones together in one guest.** [lanterns.md](lanterns.md) runs a synthetic title-shaped guest under
`gta6rt --run`, with hand-written shaders that take the title's FSSM container path (`fssm_unpack.py`,
`shader_disasm.py`, `rdna2spirv.py`). Its stage 1 covers the M1/M1.5 contracts in one frame: translated VS and PS
found by FSSM hash, V# vertex and instance fetch, root constants, a root CBV, the code base, and a depth buffer. Every
pixel is checked against a CPU reference, with a depth-off negative control. It is opt-in
(`-DLEONIDA_TEST_LANTERNS=ON`).

**M3 occlusion portability (D3D-209).** Vulkan's [occlusion query specification](https://registry.khronos.org/vulkan/specs/latest/html/vkspec.html#queries-occlusion)
permits a count multiplied by the number of written color outputs, even with `VK_QUERY_CONTROL_PRECISE_BIT`.
The original two-output query returned twice the CPU area on Intel UHD (Windows driver 31.0.101.4146),
Expand Down
Loading