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:
authornullmarsh <360200553+nullmarsh@users.noreply.github.com>2026-11-23 16:12:13 -0500
committernullmarsh <360200553+nullmarsh@users.noreply.github.com>2026-11-23 16:12:13 -0500
commit7e2a9fb050c6402182ce5bbf5d85bfa2b513230b (patch)
tree241b34900593652becb573ca04ddad8086aa5215 /docs
parentd5564ef07bdcf559b1f07bae388736b2473d1ae5 (diff)
valu_fuzz: the mem family runs natively on GFX12 (RDNA4)
The gfx12 kernels are the GFX10/GFX11 text respelled (gfx12_lines): a MUBUF soffset is null instead of the literal 0, which is what made every buffer_load/store_b* "operands are not valid for this GPU or mode"; s_waitcnt_vscnt, s_waitcnt vmcnt/lgkmcnt and buffer_gl0/gl1_inv become s_wait_storecnt, s_wait_loadcnt, s_wait_kmcnt and global_inv. The V#s keep their layout (Mesa gfx12-rsrc.json: word 1 and word 3's fields as on GFX11); word3() now refuses a family it has no layout for. RX 9060 XT (gfx1200), AMD 26.11.2: seeds 2-4 x 2,000 programs x wave32 and wave64, 12,000 of 12,000 match; the negative control catches all 8 perturbations. GFX10, GFX11 and translator text are byte-identical. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/shader_validation.md23
1 files changed, 18 insertions, 5 deletions
diff --git a/docs/shader_validation.md b/docs/shader_validation.md
index fa09d6230..072ee7032 100644
--- a/docs/shader_validation.md
+++ b/docs/shader_validation.md
@@ -935,16 +935,29 @@ vscnt wait plus `s_dcache_inv`; vector accesses only need `s_waitcnt vmcnt(0)`.
935*Results on RDNA4 (RX 9070, gfx1201, RADV/Mesa 26.2.6, the Linux DRM launcher, AMD clang 23.1.5, `main` + this 935*Results on RDNA4 (RX 9070, gfx1201, RADV/Mesa 26.2.6, the Linux DRM launcher, AMD clang 23.1.5, `main` + this
936change).* The hardware gate is per family now: `f16` also runs on gfx1170 and gfx12xx (its kernels assemble clean 936change).* The hardware gate is per family now: `f16` also runs on gfx1170 and gfx12xx (its kernels assemble clean
937for gfx1150, gfx1170 and gfx1201 — 300 programs per wave size each, 0 rejected; the generator's op_sel lines are 937for gfx1150, gfx1170 and gfx1201 — 300 programs per wave size each, 0 rejected; the generator's op_sel lines are
938respelled by `asm.opsel16_spelling` there, as the runner always has), and `mem` still runs on gfx1150 and gfx1170 938respelled by `asm.opsel16_spelling` there, as the runner always has), and `mem` runs on gfx1150 and gfx1170
939(300 programs per wave size, every op kind, 0 rejected) but is refused on gfx12xx with the two rejects AMD clang 939(300 programs per wave size, every op kind, 0 rejected) and, in GFX12 spelling, on gfx12xx (below).
940gives there: GFX12 has no `s_waitcnt_vscnt` ("instruction not supported on this GPU") and takes none of the
941`buffer_load/store_b32/b64/b96/b128` forms the generator writes ("operands are not valid for this GPU or mode"), so
942`--family mem --oracle hw` exits 77 naming both (300 of 300 mem kernels per wave size rejected for gfx1201).
943`f16` numbers: `--programs 500` (1,000 kernels, wave32 and native wave64) 1,000/1,000 match, 0 mismatches, 940`f16` numbers: `--programs 500` (1,000 kernels, wave32 and native wave64) 1,000/1,000 match, 0 mismatches,
9440 assembler rejections; the negative control caught every perturbation (100/87/85/42/31/90 of 100 programs for 9410 assembler rejections; the negative control caught every perturbation (100/87/85/42/31/90 of 100 programs for
945hi_zero, opsel_dst_ignored, pk_swapped, min_is_max, pack_swapped, i16_opsel_ignored). gfx1201 is not RDNA2: the 942hi_zero, opsel_dst_ignored, pk_swapped, min_is_max, pack_swapped, i16_opsel_ignored). gfx1201 is not RDNA2: the
946match supports the model and settles nothing about the console. 943match supports the model and settles nothing about the console.
947 944
945*`mem` on RDNA4 (RX 9060 XT, gfx1200, AMD Windows driver 26.11.2, the HIP launcher, AMD clang from rocm-sdk-core
94610.0.0).* The generator's GFX10/GFX11 text is respelled for gfx12 (`gfx12_lines`): a MUBUF soffset is `null`, not the
947literal `0`, which is what "operands are not valid for this GPU or mode" rejected on every `buffer_load/store_b*`;
948`s_waitcnt_vscnt` becomes `s_wait_storecnt`, and the legacy `s_waitcnt vmcnt(0)` / `lgkmcnt(0)`, which still
949assemble but to the old encoding, become `s_wait_loadcnt` / `s_wait_kmcnt`; `buffer_gl0_inv` and `buffer_gl1_inv`
950become `global_inv scope:SCOPE_DEV`. The V#s are unchanged: Mesa's `gfx12-rsrc.json` keeps word 1
951(BASE_ADDRESS_HI, STRIDE) and word 3's DST_SEL, FORMAT (the GFX11 table, 32_FLOAT = 22) and OOB_SELECT bits, adding
952STRIDE_SCALE and compression fields that stay 0. The gfx10, gfx11 and translator text is byte-identical to before.
953Seeds 2, 3 and 4 × 2,000 programs × wave32 and native wave64: **12,000 of 12,000 match, 0 mismatches, 0 assembler
954rejections**, so the four OOB_SELECT bounds rules of "Buffer bounds checking" hold on gfx1200 as measured on RDNA2
955and gfx1150. Negative control (`--programs 300`): unperturbed 0 of 600; caught 312, 33, 211, 39, 19, 353, 129 and 53
956(oob_ignore_mode, mode0_no_stride, idx_unchecked, soffset_unchecked, whole_access, oob_load_keeps, sbuf_no_bound,
957sbuf_stride_ignored). `--hw-sync` at seed 5 (500 programs, both wave sizes): `scalar` (the default) and `full`
9581,000 of 1,000, `sinv` 964, `min` 955, `none` 935, so on gfx1200 a scalar load after vector stores needs both the
959store wait and the scalar-cache invalidation, as on the earlier families.
960
948*Findings.* The OOB_SELECT per-mode rules, the per-dword straddle rule and the `s_buffer_load` bound of design.md hold 961*Findings.* The OOB_SELECT per-mode rules, the per-dword straddle rule and the `s_buffer_load` bound of design.md hold
949on gfx1150 (they were measured on RDNA2 and, for the vector part, on this GPU before; the `s_buffer_load` bound and the 962on gfx1150 (they were measured on RDNA2 and, for the vector part, on this GPU before; the `s_buffer_load` bound and the
950`idxen offen` and offset-only soffset forms are new on gfx1150). The one difference is `v_pack_b32_f16` quieting 963`idxen offen` and offset-only soffset forms are new on gfx1150). The one difference is `v_pack_b32_f16` quieting