feat: image_gather4 compare, bias and clamp forms in the RDNA 2 interpreter and HLSL — 1,303/1,490 #343

Manually merged
github merged 5 commits from github-bot/gh-343 into gh-pr/343/base 2026-11-26 16:01:07 +00:00 AGit
Owner

@⁠KainanP on GitHub · 2026-11-26 10:02 UTC · original
KainanP:feat/mimg-gather-compare → main · +691 −22 · 18 files · 5 commits · merged 2026-11-26 15:57 UTC

Change

The reference interpreter and the HLSL recompiler now run 18 MIMG gather encodings that until now raised Untranslated / Untranslatable:

Group Encodings Semantics
Depth-compare gather (D3D GatherCmp) image_gather4_c, _c_lz, _c_l, _c_o, _c_lz_o, _c_l_o the 4 results 1.0 / 0.0 of z_ref <func> texel.R, not filtered, in gather order (x0, y1), (x1, y1), (x1, y0), (x0, y0); func = S# DEPTH_COMPARE_FUNC
Compare + bias / clamp image_gather4_c_cl, _c_b, _c_b_cl, _c_cl_o, _c_b_o, _c_b_cl_o same, bias / clamp dwords read and ignored (one-level view, see below)
Bias / clamp without compare image_gather4_cl, _b, _b_cl, _cl_o, _b_o, _b_cl_o exactly image_gather4[_o]: the dmask component after DST_SEL

Why this family and not image load/store. On origin/main (c4c93bd), image_load, image_load_mip, image_store, image_store_mip and image_get_resinfo already run (rdna2_exec_image.py, the 6 formats of rdna2_image.py), and the _pck / _pck_sgn opcodes are not in the LLVM-generated table, so they cannot move the count; image_atomic_* is in #309. The remaining well-documented MIMG family that fits the existing one-level 2D image model is the gather family above. (The DS *_src2_* ops were also considered and dropped: the RDNA 2 ISA no longer documents them.)

  • Addresses: { offset } { bias } { z-compare } { s, t } { lod or clamp }, consecutive VGPRs or NSA. The counts equal LLVM's getAddrSizeMIMGOp (port in rdna2_operands_mimg.py), checked for the 18 names in a test.
  • The supported view has one mip level (BASE_LEVEL = LAST_LEVEL = 0, as everywhere in rdna2_image.py). The LOD only selects the mip level, so bias, clamp and lod cannot change the result; image_gather4_l already relies on this. A gather does not filter, so the S# filters do not matter either.
  • The compare is done on integers, in both the interpreter and the HLSL: denormals (of z_ref and of the texel) flush to zero, -0 == +0, a NaN is unordered (NOT_EQUAL true, the other ordered functions false; NEVER / ALWAYS constant). No float compare runs on the GPU, so the result does not depend on the driver's denormal mode.
  • Footprint, addressing modes (wrap, mirror, clamp-to-edge, mirror-once, border), border colours and the _o offsets are those of image_gather4, reused (bilinear_axis, clamp_index, fetch_texel in the interpreter; ImageBilinearAxis, ImageClamp, ImageFetch, ImageGather4 in HLSL).

Refused by name (rule 3), interpreter and HLSL for instruction fields, interpreter for descriptors: dmask other than 0x1 with compare (the compared component is R); any dmask that is not one bit; T# DST_SEL_X other than R with compare; T# BC_SWIZZLE ≠ 0 and S# TRUNC_COORD = 1 (not modelled); plus everything rdna2_image.py already refuses (dimension other than 2D, r128/tfe/lwe/a16/d16, mip levels, formats, anisotropic filtering, half-border clamp modes, non-standard border colours). The neighbours image_sample_b, image_gather4h, image_get_lod stay refused (a test keeps them named).

New files: emu/rdna2_exec_gather.py (interpreter, refusal rules shared with HLSL) and emu/rdna2_hlsl_gather.py (HLSL, integer compare, no 64-bit types). One import and one branch in rdna2_exec.py (step and executable) and rdna2_hlsl.py; the gather helpers are added to the helper lists of rdna2_hlsl.py, rdna2_hlsl_wave64.py and rdna2_hlsl_graphics.py (so a pixel shader using them compiles). rdna2_image.py, rdna2_exec_image.py and rdna2_hlsl_image.py are not touched (no conflict with #309).

Coverage: interpreter 1,285 → 1,303 of 1,490 encodings (README 86% → 87%, from rdna2_exec.coverage()); test count 1600+ → 1700+ (1,711 collected). Same change in the 9 READMEs.

Verification

Branch on main c4c93bd. Runtime unchanged against main; the GPU runner is the one built from main's runtime/.

python -m pytest                          → 1694 passed, 17 skipped (RTX 4060 Laptop GPU, default adapter)
python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools → All checks passed!

New parity file plus test_rdna2_exec_gather.py and the existing image tests (test_rdna2_image.py, test_rdna2_image_ops.py, test_rdna2_image_formats_lod.py) on the other two adapters:

WARP (ANYXBOXX_GPU=warp)          → 114 passed
Intel UHD Graphics (ANYXBOXX_GPU=Intel) → 114 passed

Mutation check: making the HLSL GatherKey keep denormals (no flush) makes 3 of the 4 GPU parity cases fail on the RTX 4060 Laptop, so the special values reach the compare.

Oracle and test data

  • HLSL checked against the reference interpreter, byte for byte, on RTX 4060 Laptop, WARP and Intel UHD: test_gathers_match_the_interpreter runs all 18 gathers in one program, each through its own S# (8 samplers: the 8 compare functions, with wrap / mirror / clamp / mirror-once / border addressing, the 3 standard border colours, one unnormalized), on a 32_32_32_32_FLOAT texture whose R holds ±0, denormals, the smallest normal, ±inf, quiet NaNs with payload and quarter steps, and an 8_8_8_8_UNORM texture for the non-compare forms; per-lane s/t inside and outside [0, 1], per-lane offsets (including negative), per-lane z_ref (same special values) and garbage lod/bias/clamp dwords; consecutive and NSA addresses. Four cases: wave32 and wave64, all lanes and a partial EXEC (0xB5E30F71; 0x8F0F00F37E1CA55A) with the result registers prefilled per lane.
  • Interpreter expectations worked out by hand in tests/test_rdna2_exec_gather.py (arithmetic in the comments): each compare function on a 2x2 depth grid, every compare form against its footprint with and without offset and with a NaN lod, every non-compare form equal to image_gather4, denormal flush and -0, NaN reference and NaN/inf texels, border texels, NSA layout order, vdata overlapping the addresses, and every refusal (with the HLSL refusal for instruction fields). None of these values is a hardware measurement.
  • All test data is built in the tests; no external data.
  • Failure case: on main both new test files fail at collection (emu.rdna2_exec_gather does not exist), and each of the 18 encodings raises instruction non traduite.

Sources (labelled per docs/research/rdna2-sources.md; printed page numbers of the archived PDF http://web.archive.org/web/20230214072857id_/https://developer.amd.com/wp-content/resources/RDNA2_Shader_ISA_November2020.pdf, SHA-256 22aec03f…4795, checked):

  • AMD, "RDNA 2" ISA, November 2020: §12.16 MIMG opcodes 64-95 (p. 220-221): "gather 4 single component elements (2x2) with user bias / LOD clamp / PCF". §8.2.4 table 43 and note 4 (p. 72-73): gather4 body x y, gather4_cl adds clamp; table 44 (p. 73): _B one bias dword, _CL clamp, _C one z-comp dword, _O one offset dword. §8.2.5 (p. 73): "{ offset } { bias } { z-compare } { derivative } { body }", offsets X=[5:0], Y=[13:8]. Table 45 (p. 74-75): T# base/last level, dst_sel, BC swizzle at bits 123:121. Table 46 (p. 76): S# depth compare func 0-7 at bits 14:12, trunc coord at bit 27, min/max LOD "in resource view space (0.0 = T#.base_level)".
  • Microsoft Learn, gather4_c (sm5 - asm): "returns each comparison result, rather than filtering them", "The order of operations is srcReferenceValue {ComparisonFunction} texel.R", "Denorms are flushed to zero going into the comparison". The gather order is the one already cited for image_gather4.
  • LLVM (cross-check): MIMGInstructions.td / AMDGPU::getAddrSizeMIMGOp, as ported in rdna2_operands_mimg.py: one address dword each for c, b, o and for cl/l.
  • No Mesa code or data used; no code copied from anywhere.

Assumptions left open (measurement questions for an RDNA 2 card)

  1. On a one-level view, does image_gather4_b / _cl / _c_b_cl always read level 0 whatever the bias / clamp (negative, huge, NaN)?
  2. Does image_gather4_c flush a denormal z_ref as well as denormal texels (D3D says "going into the comparison")?
  3. With a NaN z_ref or texel, does NOT_EQUAL return 1.0 and the ordered functions 0.0 (as image_sample_c already assumes)?
  4. With compare, does the hardware compare R before DST_SEL (D3D texel.R) or the DST_SEL_X component? Refused when they differ until measured.
  5. Is a dmask other than 0x1 on image_gather4_c legal, and which component does it compare? Refused until measured.

Checklist

  • The PR covers a single reviewable behaviour. (One instruction family: the image_gather4 compare / bias / clamp forms.)
  • A test fails without this change and passes with it.
  • The commands and results of each check are given above.
  • An unimplemented function returns an error (E_NOTIMPL), never a fake success. (Unmodelled cases raise Untranslated / Untranslatable naming the instruction and the field.)
  • README: the same change in all 9 languages (test_readme_sync.py checks it).
  • No game, console or SDK file, no key, no dump, no download link.
  • Findings drawn from a title: none.
  • Code taken from another project: none.

Made with AI assistance: Claude Code with Claude Opus 5.5, for KainanP.

🤖 Generated with Claude Code

**@⁠KainanP** on GitHub · 2026-11-26 10:02 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/343) `KainanP:feat/mimg-gather-compare` → `main` · +691 −22 · 18 files · 5 commits · merged 2026-11-26 15:57 UTC ## Change The reference interpreter and the HLSL recompiler now run 18 MIMG gather encodings that until now raised `Untranslated` / `Untranslatable`: | Group | Encodings | Semantics | | --- | --- | --- | | Depth-compare gather (D3D `GatherCmp`) | `image_gather4_c`, `_c_lz`, `_c_l`, `_c_o`, `_c_lz_o`, `_c_l_o` | the 4 results 1.0 / 0.0 of `z_ref <func> texel.R`, not filtered, in gather order `(x0, y1), (x1, y1), (x1, y0), (x0, y0)`; `func` = S# DEPTH_COMPARE_FUNC | | Compare + bias / clamp | `image_gather4_c_cl`, `_c_b`, `_c_b_cl`, `_c_cl_o`, `_c_b_o`, `_c_b_cl_o` | same, bias / clamp dwords read and ignored (one-level view, see below) | | Bias / clamp without compare | `image_gather4_cl`, `_b`, `_b_cl`, `_cl_o`, `_b_o`, `_b_cl_o` | exactly `image_gather4[_o]`: the dmask component after DST_SEL | **Why this family and not image load/store.** On `origin/main` (`c4c93bd`), `image_load`, `image_load_mip`, `image_store`, `image_store_mip` and `image_get_resinfo` already run (`rdna2_exec_image.py`, the 6 formats of `rdna2_image.py`), and the `_pck` / `_pck_sgn` opcodes are not in the LLVM-generated table, so they cannot move the count; `image_atomic_*` is in #309. The remaining well-documented MIMG family that fits the existing one-level 2D image model is the gather family above. (The DS `*_src2_*` ops were also considered and dropped: the RDNA 2 ISA no longer documents them.) - Addresses: `{ offset } { bias } { z-compare } { s, t } { lod or clamp }`, consecutive VGPRs or NSA. The counts equal LLVM's `getAddrSizeMIMGOp` (port in `rdna2_operands_mimg.py`), checked for the 18 names in a test. - The supported view has one mip level (`BASE_LEVEL = LAST_LEVEL = 0`, as everywhere in `rdna2_image.py`). The LOD only selects the mip level, so bias, clamp and lod cannot change the result; `image_gather4_l` already relies on this. A gather does not filter, so the S# filters do not matter either. - The compare is done on integers, in both the interpreter and the HLSL: denormals (of `z_ref` and of the texel) flush to zero, `-0 == +0`, a NaN is unordered (`NOT_EQUAL` true, the other ordered functions false; `NEVER` / `ALWAYS` constant). No float compare runs on the GPU, so the result does not depend on the driver's denormal mode. - Footprint, addressing modes (wrap, mirror, clamp-to-edge, mirror-once, border), border colours and the `_o` offsets are those of `image_gather4`, reused (`bilinear_axis`, `clamp_index`, `fetch_texel` in the interpreter; `ImageBilinearAxis`, `ImageClamp`, `ImageFetch`, `ImageGather4` in HLSL). Refused by name (rule 3), interpreter and HLSL for instruction fields, interpreter for descriptors: `dmask` other than `0x1` with compare (the compared component is R); any `dmask` that is not one bit; T# `DST_SEL_X` other than R with compare; T# `BC_SWIZZLE` ≠ 0 and S# `TRUNC_COORD` = 1 (not modelled); plus everything `rdna2_image.py` already refuses (dimension other than 2D, `r128`/`tfe`/`lwe`/`a16`/`d16`, mip levels, formats, anisotropic filtering, half-border clamp modes, non-standard border colours). The neighbours `image_sample_b`, `image_gather4h`, `image_get_lod` stay refused (a test keeps them named). New files: `emu/rdna2_exec_gather.py` (interpreter, refusal rules shared with HLSL) and `emu/rdna2_hlsl_gather.py` (HLSL, integer compare, no 64-bit types). One import and one branch in `rdna2_exec.py` (step and `executable`) and `rdna2_hlsl.py`; the gather helpers are added to the helper lists of `rdna2_hlsl.py`, `rdna2_hlsl_wave64.py` and `rdna2_hlsl_graphics.py` (so a pixel shader using them compiles). `rdna2_image.py`, `rdna2_exec_image.py` and `rdna2_hlsl_image.py` are not touched (no conflict with #309). Coverage: interpreter **1,285 → 1,303 of 1,490** encodings (README 86% → 87%, from `rdna2_exec.coverage()`); test count 1600+ → 1700+ (1,711 collected). Same change in the 9 READMEs. ## Verification Branch on main `c4c93bd`. Runtime unchanged against main; the GPU runner is the one built from main's `runtime/`. ``` python -m pytest → 1694 passed, 17 skipped (RTX 4060 Laptop GPU, default adapter) python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools → All checks passed! ``` New parity file plus `test_rdna2_exec_gather.py` and the existing image tests (`test_rdna2_image.py`, `test_rdna2_image_ops.py`, `test_rdna2_image_formats_lod.py`) on the other two adapters: ``` WARP (ANYXBOXX_GPU=warp) → 114 passed Intel UHD Graphics (ANYXBOXX_GPU=Intel) → 114 passed ``` Mutation check: making the HLSL `GatherKey` keep denormals (no flush) makes 3 of the 4 GPU parity cases fail on the RTX 4060 Laptop, so the special values reach the compare. ## Oracle and test data - HLSL checked against the reference interpreter, byte for byte, on RTX 4060 Laptop, WARP and Intel UHD: `test_gathers_match_the_interpreter` runs all 18 gathers in one program, each through its own S# (8 samplers: the 8 compare functions, with wrap / mirror / clamp / mirror-once / border addressing, the 3 standard border colours, one unnormalized), on a 32_32_32_32_FLOAT texture whose R holds `±0`, denormals, the smallest normal, `±inf`, quiet NaNs with payload and quarter steps, and an 8_8_8_8_UNORM texture for the non-compare forms; per-lane `s`/`t` inside and outside [0, 1], per-lane offsets (including negative), per-lane `z_ref` (same special values) and garbage lod/bias/clamp dwords; consecutive and NSA addresses. Four cases: wave32 and wave64, all lanes and a partial EXEC (`0xB5E30F71`; `0x8F0F00F37E1CA55A`) with the result registers prefilled per lane. - Interpreter expectations worked out by hand in `tests/test_rdna2_exec_gather.py` (arithmetic in the comments): each compare function on a 2x2 depth grid, every compare form against its footprint with and without offset and with a NaN lod, every non-compare form equal to `image_gather4`, denormal flush and `-0`, NaN reference and NaN/inf texels, border texels, NSA layout order, `vdata` overlapping the addresses, and every refusal (with the HLSL refusal for instruction fields). None of these values is a hardware measurement. - All test data is built in the tests; no external data. - Failure case: on main both new test files fail at collection (`emu.rdna2_exec_gather` does not exist), and each of the 18 encodings raises `instruction non traduite`. Sources (labelled per `docs/research/rdna2-sources.md`; printed page numbers of the archived PDF `http://web.archive.org/web/20230214072857id_/https://developer.amd.com/wp-content/resources/RDNA2_Shader_ISA_November2020.pdf`, SHA-256 `22aec03f…4795`, checked): - AMD, "RDNA 2" ISA, November 2020: §12.16 MIMG opcodes 64-95 (p. 220-221): "gather 4 single component elements (2x2) with user bias / LOD clamp / PCF". §8.2.4 table 43 and note 4 (p. 72-73): gather4 body `x y`, gather4_cl adds `clamp`; table 44 (p. 73): `_B` one bias dword, `_CL` clamp, `_C` one z-comp dword, `_O` one offset dword. §8.2.5 (p. 73): "{ offset } { bias } { z-compare } { derivative } { body }", offsets X=[5:0], Y=[13:8]. Table 45 (p. 74-75): T# base/last level, dst_sel, BC swizzle at bits 123:121. Table 46 (p. 76): S# depth compare func 0-7 at bits 14:12, trunc coord at bit 27, min/max LOD "in resource view space (0.0 = T#.base_level)". - Microsoft Learn, [gather4_c (sm5 - asm)](https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/gather4-c--sm5---asm-): "returns each comparison result, rather than filtering them", "The order of operations is `srcReferenceValue {ComparisonFunction} texel.R`", "Denorms are flushed to zero going into the comparison". The gather order is the one already cited for `image_gather4`. - LLVM (cross-check): `MIMGInstructions.td` / `AMDGPU::getAddrSizeMIMGOp`, as ported in `rdna2_operands_mimg.py`: one address dword each for `c`, `b`, `o` and for `cl`/`l`. - No Mesa code or data used; no code copied from anywhere. ### Assumptions left open (measurement questions for an RDNA 2 card) 1. On a one-level view, does `image_gather4_b` / `_cl` / `_c_b_cl` always read level 0 whatever the bias / clamp (negative, huge, NaN)? 2. Does `image_gather4_c` flush a denormal `z_ref` as well as denormal texels (D3D says "going into the comparison")? 3. With a NaN `z_ref` or texel, does `NOT_EQUAL` return 1.0 and the ordered functions 0.0 (as `image_sample_c` already assumes)? 4. With compare, does the hardware compare R before DST_SEL (D3D `texel.R`) or the DST_SEL_X component? Refused when they differ until measured. 5. Is a `dmask` other than `0x1` on `image_gather4_c` legal, and which component does it compare? Refused until measured. ## Checklist - [x] The PR covers a single reviewable behaviour. (One instruction family: the image_gather4 compare / bias / clamp forms.) - [x] A test fails without this change and passes with it. - [x] The commands and results of each check are given above. - [x] An unimplemented function returns an error (`E_NOTIMPL`), never a fake success. (Unmodelled cases raise `Untranslated` / `Untranslatable` naming the instruction and the field.) - [x] README: the same change in all 9 languages (`test_readme_sync.py` checks it). - [x] No game, console or SDK file, no key, no dump, no download link. - [x] Findings drawn from a title: none. - [x] Code taken from another project: none. Made with AI assistance: Claude Code with Claude Opus 5.5, for KainanP. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The 18 MIMG encodings image_gather4_c, _c_lz, _c_l, _cl, _b, _b_cl, _c_cl,
_c_b, _c_b_cl and their _o forms now run in the reference interpreter and
translate to HLSL (1,285 -> 1,303 of 1,490). New modules
emu/rdna2_exec_gather.py and emu/rdna2_hlsl_gather.py; one import and one
branch per dispatcher, the existing image modules are untouched.

- Addresses: { offset } { bias } { z-compare } { s, t } { lod or clamp }
  (ISA section 8.2.5 and tables 43-44, p. 72-73), consecutive or NSA; the
  counts match LLVM's getAddrSizeMIMGOp (port in rdna2_operands_mimg.py).
- On the supported one-level 2D view (BASE_LEVEL = LAST_LEVEL = 0) the
  LOD only picks the mip level, so bias, clamp and lod do not change the
  result, as already for image_gather4_l (S# min/max LOD are "in resource
  view space (0.0 = T#.base_level)", table 46, p. 76).
- Without compare: the dmask component after DST_SEL, as image_gather4.
- With compare: the 4 results 1.0/0.0 of `z_ref <func> texel.R`, not
  filtered, in gather order (Microsoft Learn, gather4_c (sm5 - asm));
  denormals flushed to zero before the compare (same page), NaN unordered
  (NOT_EQUAL true). Compared on integers in both the interpreter and the
  HLSL, so no float compare runs on the GPU.
- Refused by name: dmask other than 0x1 or DST_SEL_X other than R with
  compare, T# BC_SWIZZLE != 0, S# TRUNC_COORD, plus what rdna2_image.py
  already refuses.

README: 1,303 of 1,490 (87%), 1700+ tests, in the 9 languages.

Tests: tests/test_rdna2_exec_gather.py (values by hand) and
tests/test_rdna2_hlsl_gather.py (all 18 ops, 8 samplers / compare
functions, wave32 and wave64, full and partial EXEC, GPU parity).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 11:03:17 +00:00
Keeps both sides: #302's VOP3P packed f16 opcodes (rdna2_exec_pkf16 /
rdna2_hlsl_pkf16 imports, dispatch and HELPERS) and this branch's
image_gather4 forms (rdna2_exec_gather / rdna2_hlsl_gather) in
rdna2_exec.py, rdna2_hlsl.py, rdna2_hlsl_graphics.py and
rdna2_hlsl_wave64.py.

README: rdna2_exec.coverage() on the merged tree is 1,330 of 1,490
(#302 + the 18 gather encodings), 89%, in the 9 languages; tests stay
1700+ (1,720 collected).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Owner

@⁠LooperSalty on GitHub · 2026-11-26 11:08 UTC · original

Merge conflict with main after #302 (VOP3P packed f16) landed. Files in conflict: PrototypeScarlett/emu/rdna2_hlsl.py, rdna2_hlsl_graphics.py, rdna2_hlsl_wave64.py. Auto-merged without conflict: README.md and the 8 docs/i18n/README.*.md files.

Resolution: merge main into the branch, keep both sides of the overlapping f16 handling in the three HLSL files (the #302 VOP3P opcodes and this PR's image_gather4 changes must both survive), rerun tests/test_rdna2_hlsl* and the rdna2_ops verifier, then push. No README counter change is expected from the conflict itself.

🤖 Generated with Claude Code

**@⁠LooperSalty** on GitHub · 2026-11-26 11:08 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/343#issuecomment-7190327496) Merge conflict with `main` after #302 (VOP3P packed f16) landed. Files in conflict: `PrototypeScarlett/emu/rdna2_hlsl.py`, `rdna2_hlsl_graphics.py`, `rdna2_hlsl_wave64.py`. Auto-merged without conflict: `README.md` and the 8 `docs/i18n/README.*.md` files. Resolution: merge `main` into the branch, keep both sides of the overlapping f16 handling in the three HLSL files (the #302 VOP3P opcodes and this PR's `image_gather4` changes must both survive), rerun `tests/test_rdna2_hlsl*` and the `rdna2_ops` verifier, then push. No README counter change is expected from the conflict itself. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

@⁠KainanP on GitHub · 2026-11-26 11:26 UTC · original

Merged main into the branch (merge commit de05bc4, no rebase).

Kept both sides in rdna2_exec.py, rdna2_hlsl.py, rdna2_hlsl_graphics.py and rdna2_hlsl_wave64.py: #302's rdna2_exec_pkf16 / rdna2_hlsl_pkf16 imports, dispatch and HELPERS, plus this PR's rdna2_exec_gather / rdna2_hlsl_gather import, branch and HELPERS.

README: one change. #302 moved rdna2_exec.coverage() on main to 1,312, so on the merged tree it is now 1,330 of 1,490 (89%) instead of the 1,303 (87%) this PR claimed. I updated that in the 9 READMEs. The test count stays 1700+ (1,720 collected).

Tests on the merged tree:

  • RTX 4060 Laptop: tests/test_rdna2_hlsl* 95 passed. Full suite: 1705 passed, 15 skipped. The skips are Rust/TomBox builds that aren't present locally.
  • WARP and Intel UHD: test_rdna2_hlsl_gather.py, test_rdna2_exec_gather.py and test_rdna2_hlsl_pkf16.py 50/50 passed on each.
  • tools/rdna2_mnemonics.py --verifier: 38,999 encodings, 0 wrong lengths. Regenerating rdna2_ops.py leaves it unchanged.
  • ruff (CI selection): clean.

AI use: Claude Code (Claude Opus 5.5).

**@⁠KainanP** on GitHub · 2026-11-26 11:26 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/343#issuecomment-7190725659) Merged `main` into the branch (merge commit de05bc4, no rebase). Kept both sides in `rdna2_exec.py`, `rdna2_hlsl.py`, `rdna2_hlsl_graphics.py` and `rdna2_hlsl_wave64.py`: #302's `rdna2_exec_pkf16` / `rdna2_hlsl_pkf16` imports, dispatch and HELPERS, plus this PR's `rdna2_exec_gather` / `rdna2_hlsl_gather` import, branch and HELPERS. README: one change. #302 moved `rdna2_exec.coverage()` on `main` to 1,312, so on the merged tree it is now 1,330 of 1,490 (89%) instead of the 1,303 (87%) this PR claimed. I updated that in the 9 READMEs. The test count stays 1700+ (1,720 collected). Tests on the merged tree: - RTX 4060 Laptop: `tests/test_rdna2_hlsl*` 95 passed. Full suite: 1705 passed, 15 skipped. The skips are Rust/TomBox builds that aren't present locally. - WARP and Intel UHD: `test_rdna2_hlsl_gather.py`, `test_rdna2_exec_gather.py` and `test_rdna2_hlsl_pkf16.py` 50/50 passed on each. - `tools/rdna2_mnemonics.py --verifier`: 38,999 encodings, 0 wrong lengths. Regenerating `rdna2_ops.py` leaves it unchanged. - ruff (CI selection): clean. _AI use: Claude Code (Claude Opus 5.5)._
Brings #351 (Rust workspace in main). Only the 9 READMEs conflicted, on the
test count row: kept main's 1800+ (1,855 collected on the merged tree). The
RDNA 2 figures are 1,330 of 1,490 (89%), from rdna2_exec.coverage() on the
merged tree; the French and Russian READMEs now write 1 330 with a space,
like the 1 490 next to it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Since #351, crates/anyxboxx-report/data/rdna2-coverage.txt mirrors the
Python measure and test_built_in_gpu_table_is_up_to_date fails when it
drifts. Regenerated with python tests/test_rust_traduction_parity.py for
the encodings this branch adds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Owner

@⁠KainanP on GitHub · 2026-11-26 12:48 UTC · original

Merged main (#351) into the branch with a merge commit (938071c), no rebase.

  • Conflict only in the 9 READMEs, on the test-count row: kept main's 1800+ (1,855 tests collected on the merged tree). RDNA 2 figure 1,330 of 1,490 (89%), from rdna2_exec.coverage() on the merged tree; the French and Russian READMEs now write 1 330 with a space, like the 1 490 next to it.
  • New since #351: 689b74c regenerates crates/anyxboxx-report/data/rdna2-coverage.txt (MIMG 39 → 57) so test_built_in_gpu_table_is_up_to_date passes.
  • Checks: full suite on RTX 4060 Laptop (Rust + CMake runtime + TomBox DLLs, pytest -n auto) 1854 passed, 1 skipped; test_rdna2_hlsl_gather.py 5 passed on WARP and on Intel UHD; ruff clean; mnemonic verifier OK. CI green.

#275 regenerates the same table (VOP1/VOP3 rows), so the second of the two to merge needs a one-line merge there.

AI use: Claude Code (Claude Opus 5.5).

**@⁠KainanP** on GitHub · 2026-11-26 12:48 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/343#issuecomment-7192496906) Merged `main` (#351) into the branch with a merge commit (938071c), no rebase. - Conflict only in the 9 READMEs, on the test-count row: kept main's **1800+** (1,855 tests collected on the merged tree). RDNA 2 figure **1,330 of 1,490 (89%)**, from `rdna2_exec.coverage()` on the merged tree; the French and Russian READMEs now write `1 330` with a space, like the `1 490` next to it. - New since #351: 689b74c regenerates `crates/anyxboxx-report/data/rdna2-coverage.txt` (MIMG 39 → 57) so `test_built_in_gpu_table_is_up_to_date` passes. - Checks: full suite on RTX 4060 Laptop (Rust + CMake runtime + TomBox DLLs, `pytest -n auto`) 1854 passed, 1 skipped; `test_rdna2_hlsl_gather.py` 5 passed on WARP and on Intel UHD; ruff clean; mnemonic verifier OK. CI green. #275 regenerates the same table (VOP1/VOP3 rows), so the second of the two to merge needs a one-line merge there. _AI use: Claude Code (Claude Opus 5.5)._
github-bot changed target branch from main to gh-pr/343/base 2026-11-26 16:01:06 +00:00
github manually merged commit 86671436d7 into gh-pr/343/base 2026-11-26 16:01:07 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.