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:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 23:15:30 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 23:15:30 -0500
commita90289cbb4dd9761edbf0c44553aa5a4eead2c8d (patch)
tree619ff2119689dfeab6a440a9240fd3a29f0c8a0b /docs/shader_validation.md
parent4c4cb16bbf2dc642e74e4496bfb8f227adae7465 (diff)
parentdbe5070d185d1c216e21e1f23b80156e7f2b3ad8 (diff)
Merge pull request #4519 from Størm
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/shader_validation.md')
-rw-r--r--docs/shader_validation.md16
1 files changed, 13 insertions, 3 deletions
diff --git a/docs/shader_validation.md b/docs/shader_validation.md
index 9699b46a9..57efa5228 100644
--- a/docs/shader_validation.md
+++ b/docs/shader_validation.md
@@ -517,9 +517,19 @@ python -I tools/lds_fuzz.py --oracle hw --programs 50 --seed 1 --wave 32 --only
517 **`ds_cmpstore_rtn_b32` takes the value to store before the compare value**, the reverse of GFX10's 517 **`ds_cmpstore_rtn_b32` takes the value to store before the compare value**, the reverse of GFX10's
518 `ds_cmpst_rtn_b32 vdst, vaddr, cmp, store`; llvm-mc encodes both spellings of the same text identically, so only 518 `ds_cmpst_rtn_b32 vdst, vaddr, cmp, store`; llvm-mc encodes both spellings of the same text identically, so only
519 the operand order says which. Unswapped, every program with a `cmpst` failed on gfx1150 (each minimized to that one 519 the operand order says which. Unswapped, every program with a `cmpst` failed on gfx1150 (each minimized to that one
520 op); swapped, none does. This is measured on GFX11 only: on gfx12xx the programs with a `cmpst` are skipped with 520 op); swapped, none does. GFX12 takes the same order (measured on an RX 9070 XT, gfx1201: with 7 in the dword and
521 that reason. The model keeps the GFX10 order. Nothing else the generator emits is missing on GFX11, so no other 521 data `v1 = 9`, `v2 = 7` it becomes 9, with `v1 = 7`, `v2 = 9` it stays 7, for `ds_cmpstore_rtn_b32` and
522 program is skipped for its semantics; an assembler rejection is counted as `rejected`, never as a pass. 522 `ds_cmpstore_b32`; gfx1036's `ds_cmpst` does the opposite), and with `--perturb cmpst_swap` 275 of 1,000 wave32
523 programs mismatch there. The model keeps the GFX10 order. Nothing else the generator emits is missing on GFX11, so
524 no other program is skipped for its semantics; an assembler rejection is counted as `rejected`, never as a pass.
525- **GFX12** (`hw_oracle/asm.py` `sync_lines`): there is no `s_barrier` (a workgroup barrier is
526 `s_barrier_signal -1` then `s_barrier_wait -1`), and the LDS wait is `s_wait_dscnt 0` instead of the legacy
527 `s_waitcnt lgkmcnt(0)`. **A wave64 `ds_bpermute_b32` reaches all 64 lanes on GFX12**, while RDNA2 (and gfx1150)
528 keep each 32-lane half separate: with every lane asking for lane `(l + 32) mod 64`, the RX 9070 XT returns lane
529 `l ^ 32` and a gfx1036 iGPU returns lane `l`. The model describes RDNA2, so on gfx12xx a wave64 program with a
530 `ds_bpermute` is skipped with that reason; under `--perturb bpermute_wave64_cross` all 1,000 wave64 programs of
531 seed 1 match there. RX 9070 XT, AMD 26.11.2, `--programs 1000`, seeds 1 and 2: wave32 1,000/1,000 match; wave64
532 537 and 506 match, 0 mismatch, the rest skipped for that reason. The gfx1036 iGPU gives 1,000/1,000 in both.
523- **Wider op mix**, opt-in so that a seed keeps its programs: `--permute` (`ds_permute_b32`), `--swizzle-exec` 533- **Wider op mix**, opt-in so that a seed keeps its programs: `--permute` (`ds_permute_b32`), `--swizzle-exec`
524 (`ds_swizzle_b32` under EXEC masks), `--threads`, `--extended` (all three). `ds_permute_b32` and a masked 534 (`ds_swizzle_b32` under EXEC masks), `--threads`, `--extended` (all three). `ds_permute_b32` and a masked
525 `ds_swizzle_b32` carry a hypothesis (the model's reading of the ISA text); on the hardware a failing one is a 535 `ds_swizzle_b32` carry a hypothesis (the model's reading of the ISA text); on the hardware a failing one is a