upleb.uk

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

summaryrefslogtreecommitdiff
path: root/docs/embedded_shaders.md
diff options
context:
space:
mode:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 13:15:47 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 13:15:47 -0500
commitda3779d23c50d2b455fdf5c9992c0167b1da862e (patch)
tree5141702e67fb4ccf536eca0d044d336ac978c998 /docs/embedded_shaders.md
parenta0d3f0b08673c269b081fd70a980298765c2475a (diff)
parent7834593b51b4aec266ff6ee8c1f3598c887a68bb (diff)
Merge pull request #2503 from adriaespii
# Conflicts: # docs/d3d12_vulkan.md # docs/embedded_shaders.md
Diffstat (limited to 'docs/embedded_shaders.md')
-rw-r--r--docs/embedded_shaders.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/embedded_shaders.md b/docs/embedded_shaders.md
index 62a488961..563b35d9b 100644
--- a/docs/embedded_shaders.md
+++ b/docs/embedded_shaders.md
@@ -94,6 +94,21 @@ When this page was first written, 42 translated and 10 stopped at four rules. Th
94 94
95The disassembly count is unchanged: the same 42 programs have no invalid word, and 10 have invalid words in the 95The disassembly count is unchanged: the same 42 programs have no invalid word, and 10 have invalid words in the
96code. All 10 of those translate; `Box16Rehydration` is one of the 42 clean ones. 96code. All 10 of those translate; `Box16Rehydration` is one of the 42 clean ones.
97| `tools/rdna2spirv.py` | **51** translate and pass `spirv-val` |
98
99On current `main`, 51 of the 52 programs translate and pass `spirv-val`. The four earlier blockers were
100implemented in #1871 and #1968 (`427c1376`):
101
102* `tbuffer_load_format_x GFX10_FORMAT_8_UINT` (#1871) unblocked `LeafRehydration`.
103* `global_atomic_fmax` (#1968) unblocked `BuildKDOP`, `LoadInstances`, `ReloadProcedurals`, `LoadProceduralGeometry`, and `LoadTriangles`.
104* `global_atomic_fmin` (#1968) unblocked `PT_LoadInstances`.
105* `buffer_load_ushort` (#1968) unblocked `Box32Rehydration`, `ReloadTriangles`, and the load half of `Box16Rehydration`.
106
107The single remaining untranslated program stops at one rule:
108
109| module(s) | blocker |
110|---|---|
111| `Box16Rehydration` | `buffer_store_short` (#1864) |
97 112
98Reproduction, after `--extract` above: 113Reproduction, after `--extract` above:
99 114
@@ -116,6 +131,12 @@ python -I tools/rdna2spirv.py <work>/embedded/dxbc/disasm --out <work>/embedded/
116 `Box32Rehydration` and `LeafRehydration` are exactly the programs that would turn the dehydrated BVH packs 131 `Box32Rehydration` and `LeafRehydration` are exactly the programs that would turn the dehydrated BVH packs
117 into runtime trees ([bvh.md](bvh.md) §3.1). `Box32Rehydration` and `LeafRehydration` translate; 132 into runtime trees ([bvh.md](bvh.md) §3.1). `Box32Rehydration` and `LeafRehydration` translate;
118 `Box16Rehydration` needs `buffer_store_short`. 133 `Box16Rehydration` needs `buffer_store_short`.
134* **The one missing rule is small and has real fixtures.** `buffer_store_short` (#1864) covers `Box16Rehydration`.
135 It is an ordinary translator rule, not a new compiler backend.
136* **The rehydration programs are the ones closest to the shipped data.** `Box16Rehydration`,
137 `Box32Rehydration` and `LeafRehydration` are exactly the programs that would turn the dehydrated BVH packs
138 into runtime trees ([bvh.md](bvh.md) §3.1). `LeafRehydration` translates since #1871, `Box32Rehydration`
139 translates since #1968 (`427c1376`), and only `Box16Rehydration` awaits #1864 (`buffer_store_short`).
119* **What is still open.** None of the 52 has been executed on a GPU; translation and `spirv-val` do not prove the 140* **What is still open.** None of the 52 has been executed on a GPU; translation and `spirv-val` do not prove the
120 output. Which of them the game actually creates is a call-site question (RT-5). The module-to-pipeline order 141 output. Which of them the game actually creates is a call-site question (RT-5). The module-to-pipeline order
121 above comes from `ILDN`, not from a runtime trace. The `STAT` bitcode and the `0x07 NOBC` record are not 142 above comes from `ILDN`, not from a runtime trace. The `STAT` bitcode and the `0x07 NOBC` record are not