diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 15:10:53 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 15:10:53 -0500 |
| commit | bcfedd79ee883a3e29e1e79ff12dde4d69fea407 (patch) | |
| tree | bd197279dc223e733eb921bf9691fbb3bb26bf9d /docs/embedded_shaders.md | |
| parent | 5f5efae004c94a8dc0cbf9653e9af27d05cb043d (diff) | |
| parent | bb4aa153230a83990c4cd0a288b41457943cf262 (diff) | |
Merge pull request #2473 from Vonsek
# Conflicts:
# docs/README.md
# docs/d3d12_vulkan.md
# docs/embedded_shaders.md
Diffstat (limited to 'docs/embedded_shaders.md')
| -rw-r--r-- | docs/embedded_shaders.md | 16 |
1 files changed, 16 insertions, 0 deletions
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 | |||
| 133 | The disassembly count is unchanged: the same 42 programs have no invalid word, and 10 have invalid words in the | ||
| 134 | code. All 10 of those translate; `Box16Rehydration` is one of the 42 clean ones. | ||
| 135 | |||
| 125 | Reproduction, after `--extract` above: | 136 | Reproduction, 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 |