upleb.uk

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

summaryrefslogtreecommitdiff
path: root/docs/shader_validation.md
diff options
context:
space:
mode:
authorAlexis Alberto Reyna Sánchez <99472437+AlejoReyna@users.noreply.github.com>2026-11-23 17:32:22 -0600
committerYash Dubey <yash.dubey803at@gmail.com>2026-11-24 07:30:17 +0530
commitb7fb698e51a2bb27e9cba2e5b53efffd9e247e25 (patch)
tree5dac2fd7d88126ad4c228e7f68bb455970da155d /docs/shader_validation.md
parentbe64e8c7af599044382cdbe4bcdeb9e0da3ed501 (diff)
docs: clarify the default salu_diff opcode pool
Diffstat (limited to 'docs/shader_validation.md')
-rw-r--r--docs/shader_validation.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/shader_validation.md b/docs/shader_validation.md
index 45b13b815..602dbc797 100644
--- a/docs/shader_validation.md
+++ b/docs/shader_validation.md
@@ -134,12 +134,12 @@ python -I tools/cpu_ref.py <listing.s> --json
134python -I tests/test_cpu_ref.py 134python -I tests/test_cpu_ref.py
135``` 135```
136 136
137The scalar ALU has its own differential fuzzer (FUZZ-4), `tools/salu_diff.py`: a separate reference for 99 137The scalar ALU has its own differential fuzzer (FUZZ-4), `tools/salu_diff.py`. It has a separate reference for
138SOP1/SOP2/SOPC/SOPK opcodes by default (112 in `OPS`, `--list-ops` prints all of them; the other 13 are the 138112 SOP1/SOP2/SOPC/SOPK opcodes in `OPS`, all listed by `--list-ops`. The default translator comparison selects
13964-bit mask ops left out by default, below) with SCC kept explicit, seeded programs, the translated SPIR-V run in 139from 99 opcodes, excluding the 13 wave-mask operations in `LANE_MASK_OPS`. The fuzzer keeps SCC explicit,
140`tests/semantic/spirv_mini_interp.py`, and failing programs shrunk to the instructions that matter. 140generates seeded programs, runs translated SPIR-V in `tests/semantic/spirv_mini_interp.py`, and shrinks failing
14164-bit mask ops are left out by default (the translator models them as wave masks), and `s_bfe_*` control 141programs to the instructions that matter. `s_bfe_*` control words stay inside offset + width <= 32 unless
142words stay inside offset + width <= 32 unless `--bfe-any`. Its docstring lists the known divergences. 142`--bfe-any`. Its docstring lists the known divergences.
143 143
144`--branches` puts SCC into control flow, one lane: after an SCC producer comes either a chain of 1..3 consumers 144`--branches` puts SCC into control flow, one lane: after an SCC producer comes either a chain of 1..3 consumers
145(`s_cselect_b32`, `s_addc_u32`, `s_subb_u32`) or `s_cbranch_scc0`/`scc1` forward over the next 1..3 scalar 145(`s_cselect_b32`, `s_addc_u32`, `s_subb_u32`) or `s_cbranch_scc0`/`scc1` forward over the next 1..3 scalar