upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 15:10:53 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 15:10:53 -0500
commitbcfedd79ee883a3e29e1e79ff12dde4d69fea407 (patch)
treebd197279dc223e733eb921bf9691fbb3bb26bf9d /docs
parent5f5efae004c94a8dc0cbf9653e9af27d05cb043d (diff)
parentbb4aa153230a83990c4cd0a288b41457943cf262 (diff)
Merge pull request #2473 from Vonsek
# Conflicts: # docs/README.md # docs/d3d12_vulkan.md # docs/embedded_shaders.md
Diffstat (limited to 'docs')
-rw-r--r--docs/README.md1
-rw-r--r--docs/d3d12_vulkan.md1
-rw-r--r--docs/embedded_shaders.md16
3 files changed, 18 insertions, 0 deletions
diff --git a/docs/README.md b/docs/README.md
index 5eff8e3c1..eef86406d 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -71,6 +71,7 @@ method, scope and caveats. No game data is included.
71| [buffer_bounds.md](buffer_bounds.md) | V# `OOB_SELECT` bounds measured natively: RDNA2 (gfx1036) follows Mesa's GFX11 column (729/732 cases), not GFX10; raw mode also counts `soffset`. | 71| [buffer_bounds.md](buffer_bounds.md) | V# `OOB_SELECT` bounds measured natively: RDNA2 (gfx1036) follows Mesa's GFX11 column (729/732 cases), not GFX10; raw mode also counts `soffset`. |
72| [fssm_crosscheck.md](fssm_crosscheck.md) | FSSM/RDNA2 facts cross-checked against SCARAB; code starts at `code_off + 0x28`. | 72| [fssm_crosscheck.md](fssm_crosscheck.md) | FSSM/RDNA2 facts cross-checked against SCARAB; code starts at `code_off + 0x28`. |
73| [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`. | 73| [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`. |
74| [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. |
74| [first_light.md](first_light.md) | 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`). | 75| [first_light.md](first_light.md) | 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`). |
75| [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. | 76| [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. |
76| [coder.md](coder.md) | The compressed mass in `story000_script.rpf`: entry framing (`align16(entry+8)` payload), the 32-value tag alphabet, deflate-shaped but proprietary, variable-length 7/8-bit LSB-first codes with no stored table, and the `n7 = 116..127` search that finishes it. | 77| [coder.md](coder.md) | The compressed mass in `story000_script.rpf`: entry framing (`align16(entry+8)` payload), the 32-value tag alphabet, deflate-shaped but proprietary, variable-length 7/8-bit LSB-first codes with no stored table, and the `n7 = 116..127` search that finishes it. |
diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md
index 24f4e36e7..9ab798dd6 100644
--- a/docs/d3d12_vulkan.md
+++ b/docs/d3d12_vulkan.md
@@ -2585,6 +2585,7 @@ Vulkan AS would be invisible to them. Two paths:
25851. If `XboxBvhBuilder` does the build with its own compute dispatches (the likely case, given it ships as a DLL 25851. If `XboxBvhBuilder` does the build with its own compute dispatches (the likely case, given it ships as a DLL
2586 with a device and command lists), the layer must translate and run its compute shaders. The console programs 2586 with a device and command lists), the layer must translate and run its compute shaders. The console programs
2587 are `FSSM` and 51 of the 52 already pass `spirv-val`; only `Box16Rehydration` still needs `buffer_store_short` (#1864). Buffers, 2587 are `FSSM` and 51 of the 52 already pass `spirv-val`; only `Box16Rehydration` still needs `buffer_store_short` (#1864). Buffers,
2588 are `FSSM` and 51 of the 52 already pass `spirv-val`; the one left still needs `buffer_store_short`. Buffers,
2588 UAVs, descriptors, barriers and indirect dispatch are necessary but not sufficient. The standard 2589 UAVs, descriptors, barriers and indirect dispatch are necessary but not sufficient. The standard
2589 `BuildRaytracingAccelerationStructure` calls may never reach our command list. 2590 `BuildRaytracingAccelerationStructure` calls may never reach our command list.
25902. If the game calls `ID3D12GraphicsCommandList4::BuildRaytracingAccelerationStructure`, the layer must implement 25912. If the game calls `ID3D12GraphicsCommandList4::BuildRaytracingAccelerationStructure`, the layer must implement
diff --git a/docs/embedded_shaders.md b/docs/embedded_shaders.md
index a2aa99262..4c913d2a1 100644
--- a/docs/embedded_shaders.md
+++ b/docs/embedded_shaders.md
@@ -122,6 +122,17 @@ The single remaining untranslated program stops at one rule:
122|---|---| 122|---|---|
123| `Box16Rehydration` | `buffer_store_short` (#1864) | 123| `Box16Rehydration` | `buffer_store_short` (#1864) |
124 124
125| module(s) | blocker then | now |
126|---|---|---|
127| `BuildKDOP`, `LoadInstances`, `ReloadProcedurals`, `LoadProceduralGeometry`, `LoadTriangles` | `global_atomic_fmax` | translate |
128| `PT_LoadInstances` | `global_atomic_fmin` | translates |
129| `Box32Rehydration`, `ReloadTriangles` | `buffer_load_ushort` | translate |
130| `LeafRehydration` | `tbuffer_load_format_x GFX10_FORMAT_8_UINT` | translates |
131| `Box16Rehydration` | `buffer_load_ushort` | stops at `buffer_store_short` (#1864) |
132
133The disassembly count is unchanged: the same 42 programs have no invalid word, and 10 have invalid words in the
134code. All 10 of those translate; `Box16Rehydration` is one of the 42 clean ones.
135
125Reproduction, after `--extract` above: 136Reproduction, after `--extract` above:
126 137
127```sh 138```sh
@@ -143,6 +154,11 @@ python -I tools/rdna2spirv.py <work>/embedded/dxbc/disasm --out <work>/embedded/
143 `Box32Rehydration` and `LeafRehydration` are exactly the programs that would turn the dehydrated BVH packs 154 `Box32Rehydration` and `LeafRehydration` are exactly the programs that would turn the dehydrated BVH packs
144 into runtime trees ([bvh.md](bvh.md) §3.1). `LeafRehydration` translates since #1871, `Box32Rehydration` 155 into runtime trees ([bvh.md](bvh.md) §3.1). `LeafRehydration` translates since #1871, `Box32Rehydration`
145 translates since #1968 (`427c1376`), and only `Box16Rehydration` awaits #1864 (`buffer_store_short`). 156 translates since #1968 (`427c1376`), and only `Box16Rehydration` awaits #1864 (`buffer_store_short`).
157 compiler backend, and they are on `main`. The one left is `buffer_store_short`, for `Box16Rehydration`.
158* **The rehydration programs are the ones closest to the shipped data.** `Box16Rehydration`,
159 `Box32Rehydration` and `LeafRehydration` are exactly the programs that would turn the dehydrated BVH packs
160 into runtime trees ([bvh.md](bvh.md) §3.1). `Box32Rehydration` and `LeafRehydration` translate;
161 `Box16Rehydration` needs `buffer_store_short`.
146* **What is still open.** None of the 52 has been executed on a GPU; translation and `spirv-val` do not prove the 162* **What is still open.** None of the 52 has been executed on a GPU; translation and `spirv-val` do not prove the
147 output. Which of them the game actually creates is a call-site question (RT-5). The module-to-pipeline order 163 output. Which of them the game actually creates is a call-site question (RT-5). The module-to-pipeline order
148 above comes from `ILDN`, not from a runtime trace. The `STAT` bitcode and the `0x07 NOBC` record are not 164 above comes from `ILDN`, not from a runtime trace. The `STAT` bitcode and the `0x07 NOBC` record are not