shader: lower compute DPP16 row_shr for OR and ADD #1877

Merged
roansystemlabs merged 2 commits from upstream-pr/1884 into main 2026-11-25 19:41:13 +00:00
roansystemlabs commented 2026-11-24 20:04:44 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-24T20:04:44Z.


Refs #1543.

Change

This is the row_shr slice claimed in https://github.com/R0Y00/Xbox2Windows/issues/1543#issuecomment-7141031950, the next one after #1613 and separate from the v_mbcnt (#1782), v_readlane (#1858) and s_bcnt1 (#1872) slices. It touches tools/compute_store_aot.py (one new branch next to the quad_perm one), a new test file, its CTest entries, the CI lists, docs/experiments.md and the DPP16 row of README.md.

  • v_or_b32_dpp and v_add_nc_u32_dpp with row_shr:1 to row_shr:15, VGPR operands and row_mask:0xf bank_mask:0xf are lowered for gfx1013.
  • The model is the one from #1613: logical 1D lanes from SV_GroupThreadID.x, src0 staged in group-shared memory, no wave intrinsics, so the result does not depend on the desktop wave width. Rows are 16 logical lanes; lane x reads lane x - n.
  • A lane whose source falls before the start of its row uses 0 as src0 when BOUND_CTRL is set (the operation still runs: 0 | src1, 0 + src1) and keeps its old destination when it is not. Without BOUND_CTRL the old destination must be a known word, otherwise the translation is refused (Unverified DPP16 operand).
  • Semantics: RDNA 2 ISA (30 November 2020), §13.3.9, Table 90 (BC: "0 = do not write when source is out of range, 1 = write") and Table 91 (DPP_ROW_SR: "if ((n&0xf) >= cntl[3:0]) pix[n].srca = pix[n - cntl[3:0]].srca, else use bound_cntl"), printed pages 267–268; the archived copy is the one linked in #669 (SHA-256 22aec03f2706dba2e148ffde1f3a25d5cdd42c71a96f95240aeb48d995d44795). The manual does not say what is written; LLVM 15 AMDGPUModifierSyntax gives the value: with bound_ctrl:1, "accessing data from an invalid lane will return zero", and GCNDPPCombine relies on the operation running with that zero.
  • Spelling: I checked LLVM 15.0.7 before writing the rule. bound_ctrl:0 and bound_ctrl:1 both assemble to the same encoding with bit 19 of the DPP dword set, and the disassembler prints bound_ctrl:1. The lowering accepts both spellings; the binary mode checks that the two encodings are identical.
  • Form coverage: like the other compute_store_aot draws since #2168, the CTest entries set FORM_COVERAGE_RECORD, and after every check has passed the test writes the opcodes of the accepted fixture there (12 forms, including v_or_b32_dpp and v_add_nc_u32_dpp). Without the variable it writes nothing. I checked the record file; I did not run tools/form_coverage.py on a JUnit file.
  • Accepted only: 1D groups with X divisible by 16, uniform participation (DPP after a lane guard is refused, as for quad_perm). Still refused: row_shl, row_ror, row_share, row_xmask, row_mirror, row_half_mirror, row_bcast, wave_shr, fi:1, partial row or bank masks, an SGPR source, other opcodes (v_xor_b32_dpp, v_sub_nc_u32_dpp, v_add_f32_dpp, v_mov_b32_dpp), shifts 0 and 16, gfx1030, groups of 8 and 2D groups. Each has a control in controls().

Verification

Commit b06d9688, rebased onto main at 214ed093. Windows 11 Home build 26200, MSVC 19.44 (VS 2022 Build Tools, vcvars64 -vcvars_ver=14.44), Ninja, DXC from Windows SDK 10.0.26100.0, Python 3.12, D3D12 debug layer enabled.

ctest --preset dev --no-tests=error -R '^compute_store_aot_dpp_' -V
ctest --preset release --no-tests=error -R '^compute_store_aot_dpp_' -V
Backend Adapter / driver Result (dev twice, release once)
WARP Microsoft Basic Render Driver 10.0.26100.9818 shifts 1, 8, 15: each compared_words=320 mismatches=0, debug_errors=0 debug_warnings=0
hardware NVIDIA GeForce RTX 3070, 32.0.16.2101 shifts 1, 8, 15: each compared_words=320 mismatches=0, debug_errors=0 debug_warnings=0

No capability skips. The test prints the adapter and driver lines in the CTest log. The existing compute_store_aot_dpp_(warp|hardware) (quad_perm) passed in every run. Earlier versions of this branch, on older bases, gave the same lines in eight more dev runs and four more release runs.

On an earlier base (330df7f0), ctest --preset dev --no-tests=error -R '^compute_store_aot_' ran 106 tests: 105 passed and compute_store_aot_guard_read_hardware hit its 45 s timeout with every readback line so far at mismatches=0. Run alone afterwards it passed in 40.9 s. It does not use DPP, so this change does not reach it: on main (305d284f) without this branch it took 43.9 s and 35.5 s on the same machine, close to its 45 s limit independently of this change. On b3e9fad4 the full set ran 142 tests and all passed (compute_store_aot_guard_read_hardware in 33.4 s).

LLVM 15 round trip, reported separately from the GPU runs. Locally I have LLVM 15.0.7 as the clang 15 integrated assembler, llvm-objcopy and LLVM-C.dll, not a standalone llvm-mc:

python -B tests/compute_dpp_row_shr_check.py binary <llvm-mc 15> <llvm-objcopy 15> <LLVM-C 15>   # exit 0
python -B tests/compute_dpp_row_shr_check.py                                                     # exit 0

For each shift the program is assembled with both bound_ctrl spellings, the two .text sections must be identical, the four decoded DPP lines must equal the source text, each DPP dword is checked field by field (src0 v1 or v7; DPP_CTRL 0x111, 0x118, 0x11f; FI 0; BOUND_CTRL set on the two bound_ctrl lines only; masks 0xff), and the decoded program must translate exactly as the text. The new file is added to the Ubuntu LLVM 15 job and to the platform-independent Python list; I did not run those jobs.

With main's translator, tests/compute_dpp_row_shr_check.py fails at the first row_shr line with Unsupported compute instruction: v_or_b32_dpp v5, v1, v0 row_shr:8 row_mask:0xf bank_mask:0xf bound_ctrl:1.

Also run on b06d9688: the quad_perm and v_mbcnt controls from tests/compute_store_check.py, tests/docs_links_check.py, tests/bidi_controls_check.py, git diff --check: all pass.

Evidence and follow-up

The fixture is original, written for this test in LLVM 15 spelling and assembled from source; MIT, like the repository. No game files, dumps or captured shaders.

  • One group of 64 threads, four rows: two wave32 waves or one wave64 on the guest, and two warps on the RTX 3070, so rows sit on both sides of a desktop wave boundary.
  • Each thread loads a word that is unique for every lane and every row (checked in the test), and stores four words: OR and ADD, each with and without BOUND_CTRL. OR shifts that word and ADD shifts the word XOR 0x00a50000, so the two steps stage different words. Without BOUND_CTRL the old destination is the dispatch index XOR a key (0x6b000000 for OR, 0x6c000000 for ADD), so a kept value, a zero and a computed value are all different.
  • Shifts 1, 8 and 15. A per-lane CPU reference gives all 320 words, including the 64 sentinel words after the records, so a lane that did not run cannot pass.
  • Negative controls, applied to the generated HLSL, each must fail on the device with the predicted first word, expected and actual value:
    • reading across the row boundary (source bounded by the group start instead of the row start): word=64 expected=00000010, thread 16, the first lane of the second row, on both adapters and all three shifts (actual 8b3fcf50, 8b234579, 8b06bbb2 for shifts 1, 8, 15);
    • writing 0 instead of keeping the old destination without BOUND_CTRL: word=1 expected=6b000000 actual=00000000, thread 0.
  • A limit of the fixture, not of the translation: removing the second barrier of each step lets a step read words staged by the next one. With the distinct ADD source this is now visible on WARP (first mismatch at words 17, 33 and 61 for shifts 1, 8 and 15), but it passed on the RTX 3070, where the race did not occur in these runs. Because the result depends on scheduling, it is not one of the test's controls.

Not covered:

  • AMD and Intel desktop adapters (other desktop wave widths); only WARP and one NVIDIA adapter were run.
  • The Ubuntu LLVM 15 job and the Linux Python job were not run on a fork; locally the binary mode used the clang 15 assembler instead of llvm-mc-15.
  • Xbox hardware; these results cover the tested D3D12 adapters.
  • row_shl, row_ror, row_bcast, partial masks and the other cross-lane forms of #1543 stay open for other slices.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed (README.md, docs/experiments.md).
  • I did not include game files, dumps, distribution links or secrets.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6590358749 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1884). Originally posted by [roansystemlabs](https://github.com/roansystemlabs) on 2026-11-24T20:04:44Z. --- Refs #1543. ## Change This is the `row_shr` slice claimed in https://github.com/R0Y00/Xbox2Windows/issues/1543#issuecomment-7141031950, the next one after #1613 and separate from the `v_mbcnt` (#1782), `v_readlane` (#1858) and `s_bcnt1` (#1872) slices. It touches `tools/compute_store_aot.py` (one new branch next to the `quad_perm` one), a new test file, its CTest entries, the CI lists, `docs/experiments.md` and the DPP16 row of `README.md`. - `v_or_b32_dpp` and `v_add_nc_u32_dpp` with `row_shr:1` to `row_shr:15`, VGPR operands and `row_mask:0xf bank_mask:0xf` are lowered for gfx1013. - The model is the one from #1613: logical 1D lanes from `SV_GroupThreadID.x`, src0 staged in group-shared memory, no wave intrinsics, so the result does not depend on the desktop wave width. Rows are 16 logical lanes; lane `x` reads lane `x - n`. - A lane whose source falls before the start of its row uses 0 as src0 when `BOUND_CTRL` is set (the operation still runs: `0 | src1`, `0 + src1`) and keeps its old destination when it is not. Without `BOUND_CTRL` the old destination must be a known word, otherwise the translation is refused (`Unverified DPP16 operand`). - Semantics: RDNA 2 ISA (30 November 2020), §13.3.9, Table 90 (BC: "0 = do not write when source is out of range, 1 = write") and Table 91 (`DPP_ROW_SR`: "if ((n&0xf) >= cntl[3:0]) pix[n].srca = pix[n - cntl[3:0]].srca, else use bound_cntl"), printed pages 267–268; the archived copy is the one linked in #669 (SHA-256 `22aec03f2706dba2e148ffde1f3a25d5cdd42c71a96f95240aeb48d995d44795`). The manual does not say what is written; LLVM 15 `AMDGPUModifierSyntax` gives the value: with `bound_ctrl:1`, "accessing data from an invalid lane will return zero", and `GCNDPPCombine` relies on the operation running with that zero. - Spelling: I checked LLVM 15.0.7 before writing the rule. `bound_ctrl:0` and `bound_ctrl:1` both assemble to the same encoding with bit 19 of the DPP dword set, and the disassembler prints `bound_ctrl:1`. The lowering accepts both spellings; the binary mode checks that the two encodings are identical. - Form coverage: like the other `compute_store_aot` draws since #2168, the CTest entries set `FORM_COVERAGE_RECORD`, and after every check has passed the test writes the opcodes of the accepted fixture there (12 forms, including `v_or_b32_dpp` and `v_add_nc_u32_dpp`). Without the variable it writes nothing. I checked the record file; I did not run `tools/form_coverage.py` on a JUnit file. - Accepted only: 1D groups with X divisible by 16, uniform participation (DPP after a lane guard is refused, as for `quad_perm`). Still refused: `row_shl`, `row_ror`, `row_share`, `row_xmask`, `row_mirror`, `row_half_mirror`, `row_bcast`, `wave_shr`, `fi:1`, partial row or bank masks, an SGPR source, other opcodes (`v_xor_b32_dpp`, `v_sub_nc_u32_dpp`, `v_add_f32_dpp`, `v_mov_b32_dpp`), shifts 0 and 16, gfx1030, groups of 8 and 2D groups. Each has a control in `controls()`. ## Verification Commit `b06d9688`, rebased onto `main` at `214ed093`. Windows 11 Home build 26200, MSVC 19.44 (VS 2022 Build Tools, `vcvars64 -vcvars_ver=14.44`), Ninja, DXC from Windows SDK 10.0.26100.0, Python 3.12, D3D12 debug layer enabled. ```powershell ctest --preset dev --no-tests=error -R '^compute_store_aot_dpp_' -V ctest --preset release --no-tests=error -R '^compute_store_aot_dpp_' -V ``` | Backend | Adapter / driver | Result (dev twice, release once) | |---|---|---| | WARP | Microsoft Basic Render Driver 10.0.26100.9818 | shifts 1, 8, 15: each `compared_words=320 mismatches=0`, `debug_errors=0 debug_warnings=0` | | hardware | NVIDIA GeForce RTX 3070, 32.0.16.2101 | shifts 1, 8, 15: each `compared_words=320 mismatches=0`, `debug_errors=0 debug_warnings=0` | No capability skips. The test prints the adapter and driver lines in the CTest log. The existing `compute_store_aot_dpp_(warp|hardware)` (`quad_perm`) passed in every run. Earlier versions of this branch, on older bases, gave the same lines in eight more dev runs and four more release runs. On an earlier base (`330df7f0`), `ctest --preset dev --no-tests=error -R '^compute_store_aot_'` ran 106 tests: 105 passed and `compute_store_aot_guard_read_hardware` hit its 45 s timeout with every readback line so far at `mismatches=0`. Run alone afterwards it passed in 40.9 s. It does not use DPP, so this change does not reach it: on `main` (`305d284f`) without this branch it took 43.9 s and 35.5 s on the same machine, close to its 45 s limit independently of this change. On `b3e9fad4` the full set ran 142 tests and all passed (`compute_store_aot_guard_read_hardware` in 33.4 s). LLVM 15 round trip, reported separately from the GPU runs. Locally I have LLVM 15.0.7 as the clang 15 integrated assembler, `llvm-objcopy` and `LLVM-C.dll`, not a standalone `llvm-mc`: ```powershell python -B tests/compute_dpp_row_shr_check.py binary <llvm-mc 15> <llvm-objcopy 15> <LLVM-C 15> # exit 0 python -B tests/compute_dpp_row_shr_check.py # exit 0 ``` For each shift the program is assembled with both `bound_ctrl` spellings, the two `.text` sections must be identical, the four decoded DPP lines must equal the source text, each DPP dword is checked field by field (src0 `v1` or `v7`; `DPP_CTRL` 0x111, 0x118, 0x11f; `FI` 0; `BOUND_CTRL` set on the two `bound_ctrl` lines only; masks 0xff), and the decoded program must translate exactly as the text. The new file is added to the Ubuntu LLVM 15 job and to the platform-independent Python list; I did not run those jobs. With `main`'s translator, `tests/compute_dpp_row_shr_check.py` fails at the first `row_shr` line with `Unsupported compute instruction: v_or_b32_dpp v5, v1, v0 row_shr:8 row_mask:0xf bank_mask:0xf bound_ctrl:1`. Also run on `b06d9688`: the `quad_perm` and `v_mbcnt` controls from `tests/compute_store_check.py`, `tests/docs_links_check.py`, `tests/bidi_controls_check.py`, `git diff --check`: all pass. ## Evidence and follow-up The fixture is original, written for this test in LLVM 15 spelling and assembled from source; MIT, like the repository. No game files, dumps or captured shaders. - One group of 64 threads, four rows: two wave32 waves or one wave64 on the guest, and two warps on the RTX 3070, so rows sit on both sides of a desktop wave boundary. - Each thread loads a word that is unique for every lane and every row (checked in the test), and stores four words: OR and ADD, each with and without `BOUND_CTRL`. OR shifts that word and ADD shifts the word XOR `0x00a50000`, so the two steps stage different words. Without `BOUND_CTRL` the old destination is the dispatch index XOR a key (`0x6b000000` for OR, `0x6c000000` for ADD), so a kept value, a zero and a computed value are all different. - Shifts 1, 8 and 15. A per-lane CPU reference gives all 320 words, including the 64 sentinel words after the records, so a lane that did not run cannot pass. - **Negative controls**, applied to the generated HLSL, each must fail on the device with the predicted first word, expected and actual value: - reading across the row boundary (source bounded by the group start instead of the row start): `word=64 expected=00000010`, thread 16, the first lane of the second row, on both adapters and all three shifts (actual `8b3fcf50`, `8b234579`, `8b06bbb2` for shifts 1, 8, 15); - writing 0 instead of keeping the old destination without `BOUND_CTRL`: `word=1 expected=6b000000 actual=00000000`, thread 0. - A limit of the fixture, not of the translation: removing the second barrier of each step lets a step read words staged by the next one. With the distinct ADD source this is now visible on WARP (first mismatch at words 17, 33 and 61 for shifts 1, 8 and 15), but it passed on the RTX 3070, where the race did not occur in these runs. Because the result depends on scheduling, it is not one of the test's controls. Not covered: - AMD and Intel desktop adapters (other desktop wave widths); only WARP and one NVIDIA adapter were run. - The Ubuntu LLVM 15 job and the Linux Python job were not run on a fork; locally the binary mode used the clang 15 assembler instead of `llvm-mc-15`. - Xbox hardware; these results cover the tested D3D12 adapters. - `row_shl`, `row_ror`, `row_bcast`, partial masks and the other cross-lane forms of #1543 stay open for other slices. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [x] I updated README/docs when a capability or build requirement changed (`README.md`, `docs/experiments.md`). - [x] I did not include game files, dumps, distribution links or secrets. AI-assisted.
tedin7 commented 2026-11-24 21:01:07 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T20:08:38Z.

Review: COMMENTED


Review of 0f2189a8 (merge base = origin/main = df40e4bc). Comment only, not an approval.

Verdict

No P1 or P2 found. The lowering follows the row-shift rule it cites, the BOUND_CTRL cases are right, and the pure-Python controls catch every mutant I applied. Two P3 notes. Clean-room and title-neutral: the fixture is an original source-built program.

Semantics checked against the diff

  • Row and lane boundaries. row_lane = local.x & 15, inside = row_lane >= shift, source lane local.x - shift. Lanes 0..shift-1 of every row (so 16..16+shift-1, 32..., not only the first row) take the out-of-range branch. shift 1..15 only; 0 and 16 are refused.
  • BOUND_CTRL. With it, the out-of-range source is 0 and the operation still runs (0 | src1, 0 + src1). Without it the lane keeps its old destination, and the old destination has to be a known word, otherwise the translation is refused (Unverified DPP16 operand). Both bound_ctrl:0 and bound_ctrl:1 are accepted.
  • Operands. Only src0 goes through the shift; src1 is the lane's own word. Add is a wrapping uint add, as for v_add_nc_u32.
  • Masks and participation. Only row_mask:0xf bank_mask:0xf. A lane guard, 2D groups, group X not divisible by 16, and gfx1030 are refused, so every lane in a row is active when the barriers run (no divergent GroupMemoryBarrierWithGroupSync).
  • Staging. One write, a barrier, one read, a second barrier per step, so the next step cannot overwrite the shared array early. dpp_stage is sized to the group (groupshared uint dpp_stage[64]; for the fixture) and each step gets its own dppN_* names.

Mutants (each applied alone to tools/compute_store_aot.py, run with tests/compute_dpp_row_shr_check.py, then reverted)

All 11 are caught: >= changed to >; row width 15 changed to 31; add lowered as or; no-BOUND_CTRL lane writes 0 instead of the old value; bound sense inverted; shift 0 accepted; the divisible-by-16 check dropped; a lane guard allowed; a partial bank mask accepted; the second barrier removed; the out-of-row source not zeroed.

P3

  • The fixture has one group of 64 threads (four rows) and shifts 1, 8 and 15. Shifts 2..7 and 9..14 share the same formula, and a second group (non-zero group id) is not exercised. I do not expect a defect there, but only the formula covers them.
  • The description pins LLVM 15 for the bound_ctrl:0/:1 spelling. I ran the binary mode with LLVM 19 as well and it passes (both spellings still encode alike, DPP_CTRL 0x111, 0x118, 0x11f), so the CI pin to 15 is not hiding a different encoding in newer releases.

Commands run (Linux, Python 3.14.8)

  • python -B tests/compute_dpp_row_shr_check.py: controls and mutant predictions pass.
  • python -B tests/compute_dpp_row_shr_check.py binary llvm-mc-19 llvm-objcopy-19 /usr/lib/x86_64-linux-gnu/libLLVM.so.19.1: passes (LLVM 19, not the 15 that CI uses).
  • python -B tests/rdna2_tools_check.py: OK (skipped=18).
  • python -B tests/docs_links_check.py: Self-test passed. Checked 18 Markdown files and 378 links.
  • python -B tests/bidi_controls_check.py: Self-test passed. Checked 1327 tracked source, script and build/CI files: no bidirectional controls.
  • git diff --check origin/main...HEAD: clean. git merge-tree with origin/main: clean. All mutations reverted with git checkout -- ..

Not run

compute_store_aot_dpp_row_shr_warp and _hardware (D3D12 dispatch, no Windows or GPU here). The WARP and RTX 3070 tables in the description are the author's. The CPU reference in the fixture is the PR's own, so what Linux checks is that the translation and the reference agree on structure; the ISA reading itself I checked only against the cited rule.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6046539781 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1884#pullrequestreview-6046539781). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T20:08:38Z. **Review:** COMMENTED --- Review of `0f2189a8` (merge base = `origin/main` = `df40e4bc`). Comment only, not an approval. ## Verdict No P1 or P2 found. The lowering follows the row-shift rule it cites, the BOUND_CTRL cases are right, and the pure-Python controls catch every mutant I applied. Two P3 notes. Clean-room and title-neutral: the fixture is an original source-built program. ## Semantics checked against the diff - **Row and lane boundaries.** `row_lane = local.x & 15`, `inside = row_lane >= shift`, source lane `local.x - shift`. Lanes 0..shift-1 of every row (so 16..16+shift-1, 32..., not only the first row) take the out-of-range branch. `shift` 1..15 only; 0 and 16 are refused. - **BOUND_CTRL.** With it, the out-of-range source is 0 and the operation still runs (`0 | src1`, `0 + src1`). Without it the lane keeps its old destination, and the old destination has to be a known word, otherwise the translation is refused (`Unverified DPP16 operand`). Both `bound_ctrl:0` and `bound_ctrl:1` are accepted. - **Operands.** Only src0 goes through the shift; src1 is the lane's own word. Add is a wrapping `uint` add, as for `v_add_nc_u32`. - **Masks and participation.** Only `row_mask:0xf bank_mask:0xf`. A lane guard, 2D groups, group X not divisible by 16, and `gfx1030` are refused, so every lane in a row is active when the barriers run (no divergent `GroupMemoryBarrierWithGroupSync`). - **Staging.** One write, a barrier, one read, a second barrier per step, so the next step cannot overwrite the shared array early. `dpp_stage` is sized to the group (`groupshared uint dpp_stage[64];` for the fixture) and each step gets its own `dppN_*` names. ## Mutants (each applied alone to `tools/compute_store_aot.py`, run with `tests/compute_dpp_row_shr_check.py`, then reverted) All 11 are caught: `>=` changed to `>`; row width 15 changed to 31; add lowered as or; no-BOUND_CTRL lane writes 0 instead of the old value; bound sense inverted; shift 0 accepted; the divisible-by-16 check dropped; a lane guard allowed; a partial bank mask accepted; the second barrier removed; the out-of-row source not zeroed. ## P3 - The fixture has one group of 64 threads (four rows) and shifts 1, 8 and 15. Shifts 2..7 and 9..14 share the same formula, and a second group (non-zero group id) is not exercised. I do not expect a defect there, but only the formula covers them. - The description pins LLVM 15 for the `bound_ctrl:0`/`:1` spelling. I ran the `binary` mode with LLVM 19 as well and it passes (both spellings still encode alike, DPP_CTRL `0x111`, `0x118`, `0x11f`), so the CI pin to 15 is not hiding a different encoding in newer releases. ## Commands run (Linux, Python 3.14.8) - `python -B tests/compute_dpp_row_shr_check.py`: controls and mutant predictions pass. - `python -B tests/compute_dpp_row_shr_check.py binary llvm-mc-19 llvm-objcopy-19 /usr/lib/x86_64-linux-gnu/libLLVM.so.19.1`: passes (LLVM 19, not the 15 that CI uses). - `python -B tests/rdna2_tools_check.py`: OK (skipped=18). - `python -B tests/docs_links_check.py`: Self-test passed. Checked 18 Markdown files and 378 links. - `python -B tests/bidi_controls_check.py`: Self-test passed. Checked 1327 tracked source, script and build/CI files: no bidirectional controls. - `git diff --check origin/main...HEAD`: clean. `git merge-tree` with `origin/main`: clean. All mutations reverted with `git checkout -- .`. ## Not run `compute_store_aot_dpp_row_shr_warp` and `_hardware` (D3D12 dispatch, no Windows or GPU here). The WARP and RTX 3070 tables in the description are the author's. The CPU reference in the fixture is the PR's own, so what Linux checks is that the translation and the reference agree on structure; the ISA reading itself I checked only against the cited rule. AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-25 05:04:35 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T05:01:25Z.

Review: COMMENTED


Re-review of head b3e9fad438e2229e7470fee9ebd4968f966c2851 (previous review was on 0f2189a8). Comment only, not an approval.

Verdict

No P1 or P2 found. Clean-room and title-neutral; mergeable.

What changed since 0f2189a8

The PR was rebased onto current main (merge base 19e04be9). Comparing the PR-only patch of the old and new head, the only functional delta is the form-coverage record added at the end of check_draw in tests/compute_dpp_row_shr_check.py (FORM_COVERAGE_RECORD, written after all dispatches and mutant checks pass, opcodes taken from program(shift)), plus the matching ENVIRONMENT property on compute_store_aot_dpp_row_shr_${adapter} in CMakeLists.txt. This matches the convention used by sibling tests and the unique-test-name requirement of tools/form_coverage.py. The lowering in tools/compute_store_aot.py (+30 lines) is unchanged, so my earlier semantics review (row/lane boundaries, BOUND_CTRL, masks, barriers) still holds.

Commands executed locally (all on this head)

  • git diff --stat origin/main...HEAD: 6 files, +358/-2.
  • python3 tests/compute_dpp_row_shr_check.py: pass ("Self-test passed", all refusal controls and both mutants flagged as predicted).
  • python3 tests/docs_links_check.py: 18 Markdown files, 407 links, pass.
  • python3 tests/bidi_controls_check.py: 1482 files, pass.
  • git diff --check origin/main...HEAD: clean.
  • Mutation 1: inside = row_lane >= shift changed to > in the lowering: the test fails (generated HLSL no longer matches the expected program).
  • Mutation 2: OR/ADD operator swapped: the test fails the same way. Both reverted with git checkout -- ..

Not run

No Windows WARP run from me. The D3D12 GPU-readback leg (compute_store_aot_dpp_row_shr_*) is needed before Ready; it is not exercised by the Linux checks. At review time Build and test on Windows and Assemble and translate gfx1013 fixtures were still pending; the Linux Python checks job passed.

Findings

  • P1: none.
  • P2: none.
  • Nit: none new.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6052098535 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1884#pullrequestreview-6052098535). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T05:01:25Z. **Review:** COMMENTED --- Re-review of head `b3e9fad438e2229e7470fee9ebd4968f966c2851` (previous review was on `0f2189a8`). Comment only, not an approval. ## Verdict No P1 or P2 found. Clean-room and title-neutral; mergeable. ## What changed since `0f2189a8` The PR was rebased onto current `main` (merge base `19e04be9`). Comparing the PR-only patch of the old and new head, the only functional delta is the form-coverage record added at the end of `check_draw` in `tests/compute_dpp_row_shr_check.py` (`FORM_COVERAGE_RECORD`, written after all dispatches and mutant checks pass, opcodes taken from `program(shift)`), plus the matching `ENVIRONMENT` property on `compute_store_aot_dpp_row_shr_${adapter}` in `CMakeLists.txt`. This matches the convention used by sibling tests and the unique-test-name requirement of `tools/form_coverage.py`. The lowering in `tools/compute_store_aot.py` (+30 lines) is unchanged, so my earlier semantics review (row/lane boundaries, BOUND_CTRL, masks, barriers) still holds. ## Commands executed locally (all on this head) - `git diff --stat origin/main...HEAD`: 6 files, +358/-2. - `python3 tests/compute_dpp_row_shr_check.py`: pass ("Self-test passed", all refusal controls and both mutants flagged as predicted). - `python3 tests/docs_links_check.py`: 18 Markdown files, 407 links, pass. - `python3 tests/bidi_controls_check.py`: 1482 files, pass. - `git diff --check origin/main...HEAD`: clean. - Mutation 1: `inside = row_lane >= shift` changed to `>` in the lowering: the test fails (generated HLSL no longer matches the expected program). - Mutation 2: OR/ADD operator swapped: the test fails the same way. Both reverted with `git checkout -- .`. ## Not run No Windows WARP run from me. The D3D12 GPU-readback leg (`compute_store_aot_dpp_row_shr_*`) is needed before Ready; it is not exercised by the Linux checks. At review time `Build and test on Windows` and `Assemble and translate gfx1013 fixtures` were still pending; the Linux Python checks job passed. ## Findings - P1: none. - P2: none. - Nit: none new. AI-assisted; commands listed were executed locally.
roansystemlabs commented 2026-11-25 05:04:58 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-25T05:00:09Z.


Rebased onto main at 19e04be9; the branch is now b3e9fad4. The conflicts in CMakeLists.txt, .github/workflows/windows.yml and README.md are resolved by keeping every entry from main and adding ours after them. The lowering, docs and fixture are unchanged from 0f2189a8.

One addition: like the other compute_store_aot draws since #2168, the new test writes the opcodes of its accepted fixture to FORM_COVERAGE_RECORD when CTest sets it (12 forms, including v_or_b32_dpp and v_add_nc_u32_dpp), and writes nothing when the variable is unset.

Rerun on b3e9fad4, same machine:

  • ctest -R '^compute_store_aot_dpp_', dev twice and release once: 4/4 each time. WARP and RTX 3070, shifts 1, 8 and 15: each compared_words=320 mismatches=0 debug_errors=0 debug_warnings=0. The cross-row and zero mutants still fail at word=64 expected=00000010 and word=1 expected=6b000000 actual=00000000.
  • ctest --preset dev -R '^compute_store_aot_': 142/142 passed.
  • With the translator from main, the new test still fails at Unsupported compute instruction: v_or_b32_dpp v5, v1, v0 row_shr:8 row_mask:0xf bank_mask:0xf bound_ctrl:1.
  • LLVM 15 binary mode, the controls, docs_links_check.py, bidi_controls_check.py and git diff --check pass.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7153357414 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1884#issuecomment-7153357414). Originally posted by [roansystemlabs](https://github.com/roansystemlabs) on 2026-11-25T05:00:09Z. --- Rebased onto `main` at `19e04be9`; the branch is now `b3e9fad4`. The conflicts in `CMakeLists.txt`, `.github/workflows/windows.yml` and `README.md` are resolved by keeping every entry from `main` and adding ours after them. The lowering, docs and fixture are unchanged from `0f2189a8`. One addition: like the other `compute_store_aot` draws since #2168, the new test writes the opcodes of its accepted fixture to `FORM_COVERAGE_RECORD` when CTest sets it (12 forms, including `v_or_b32_dpp` and `v_add_nc_u32_dpp`), and writes nothing when the variable is unset. Rerun on `b3e9fad4`, same machine: - `ctest -R '^compute_store_aot_dpp_'`, dev twice and release once: 4/4 each time. WARP and RTX 3070, shifts 1, 8 and 15: each `compared_words=320 mismatches=0 debug_errors=0 debug_warnings=0`. The cross-row and zero mutants still fail at `word=64 expected=00000010` and `word=1 expected=6b000000 actual=00000000`. - `ctest --preset dev -R '^compute_store_aot_'`: 142/142 passed. - With the translator from `main`, the new test still fails at `Unsupported compute instruction: v_or_b32_dpp v5, v1, v0 row_shr:8 row_mask:0xf bank_mask:0xf bound_ctrl:1`. - LLVM 15 binary mode, the controls, `docs_links_check.py`, `bidi_controls_check.py` and `git diff --check` pass. AI-assisted.
stan495 commented 2026-11-25 06:01:06 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-25T05:33:52Z.

Review: APPROVED


Verified head b3e9fad4 on Windows x64 (dev preset, MSVC 19.44.35228.0, SDK/DXC 10.0.26100.0):

  • python -B tests/compute_dpp_row_shr_check.py -> passed
  • ctest --preset dev --no-tests=error -R '^compute_store_aot_dpp_row_shr_' -V -> 2/2 passed (compute_store_aot_dpp_row_shr_hardware, compute_store_aot_dpp_row_shr_warp; row_shr:1/8/15, 320 words each, 0 mismatches, cross_row and zero mutants failed as predicted, debug_errors=0 debug_warnings=0)
    • Hardware: AMD Radeon RX 7900 XTX (vendor=1002 device=744c, driver 32.0.32029.2010)
    • WARP: Microsoft Basic Render Driver (vendor=1414 device=008c, driver 10.0.26100.9818)

Verdict: Approved at b3e9fad4.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6052345186 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1884#pullrequestreview-6052345186). Originally posted by [stan495](https://github.com/stan495) on 2026-11-25T05:33:52Z. **Review:** APPROVED --- Verified head `b3e9fad4` on Windows x64 (`dev` preset, MSVC `19.44.35228.0`, SDK/DXC `10.0.26100.0`): - `python -B tests/compute_dpp_row_shr_check.py` -> passed - `ctest --preset dev --no-tests=error -R '^compute_store_aot_dpp_row_shr_' -V` -> 2/2 passed (`compute_store_aot_dpp_row_shr_hardware`, `compute_store_aot_dpp_row_shr_warp`; `row_shr:1/8/15`, 320 words each, 0 mismatches, `cross_row` and `zero` mutants failed as predicted, `debug_errors=0 debug_warnings=0`) - Hardware: `AMD Radeon RX 7900 XTX` (`vendor=1002 device=744c`, driver `32.0.32029.2010`) - WARP: `Microsoft Basic Render Driver` (`vendor=1414 device=008c`, driver `10.0.26100.9818`) Verdict: Approved at `b3e9fad4`.
tedin7 commented 2026-11-25 13:01:01 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T12:53:00Z.


@roansystemlabs could you rebase this branch onto current main and force-push?

GitHub reports head b3e9fad4 as conflicting with main, so it cannot be merged as is.

Files that conflict with current main (4aaea119):

  • .github/workflows/windows.yml

Commands run locally:

git fetch origin main pull/1884/head
git merge-tree --write-tree --name-only origin/main FETCH_HEAD
gh pr view 1884 --json mergeable   # CONFLICTING

Once it is rebased and CI is green it will be re-checked right away.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7162988328 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1884#issuecomment-7162988328). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T12:53:00Z. --- @roansystemlabs could you rebase this branch onto current `main` and force-push? GitHub reports head `b3e9fad4` as conflicting with `main`, so it cannot be merged as is. Files that conflict with current `main` (`4aaea119`): - `.github/workflows/windows.yml` Commands run locally: ``` git fetch origin main pull/1884/head git merge-tree --write-tree --name-only origin/main FETCH_HEAD gh pr view 1884 --json mergeable # CONFLICTING ``` Once it is rebased and CI is green it will be re-checked right away. AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-25 14:04:19 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T13:31:24Z.

Review: COMMENTED


Review of head b06d96884fec92780136b993a18f3d78dfe46831.

Result: no P1, no P2. Two nits.

CI on this head: Linux Python checks, gfx1013 fixture assembly/translation and Windows build+test all pass (gh pr checks 1884).

Commands run locally (Linux, worktree at the head SHA):

  • git diff --stat origin/main...HEAD: 6 files, +358/-2 (CMake, CI lists, README row, docs, one lowering branch, one test).
  • python3 -B tests/compute_dpp_row_shr_check.py: "Self-test passed." Controls and both built-in mutants (cross_row at word 64, zero at word 1) are caught.
  • python3 tests/docs_links_check.py: 19 files, 459 links, passed.
  • python3 tests/bidi_controls_check.py: 1642 files, none found.
  • git diff --check origin/main...HEAD: clean.
  • Own mutations of tools/compute_store_aot.py, each reverted with git checkout -- .:
    1. row_lane >= shift changed to row_lane > shift (boundary off by one): killed, the generated-HLSL assertion in controls() fails.
    2. OR lowered as + instead of |: killed, same assertion.

Correctness read (tools/compute_store_aot.py lines ~2104-2132):

  • Lane x reads lane x - n inside its 16-lane row. Lanes with row_lane < n get 0 for src0 with BOUND_CTRL (op still runs) and keep the old destination without it. This matches the RDNA 2 DPP16 description.
  • Without BOUND_CTRL the old destination must be a known word, otherwise it is refused. Good.
  • Two barriers around the staging slot, so a following step cannot overwrite dpp_stage before readers finish.
  • Guards: gfx1013 only, 1 <= shift <= 15, VGPR operands, full row/bank masks, 1D group with size a multiple of 16, no lane guard.

Nits:

  • N1: both mutants I tried were caught by the string-level HLSL assertion in controls(). The GPU readback comparison is Windows-only (draw mode), and llvm-mc-15 is not on this Linux host, so I could not run binary/draw here. I did not run the Windows pool. The Windows CI job passing covers the build and CTest registration, but the new compute_store_aot_dpp_row_shr_* WARP/hardware runs should be confirmed on Win2025 before this is relied on.
  • N2: tools/compute_store_aot.py ~2113: slot = "dpp_stage" and the staging text are now duplicated between the quad_perm and row_shr branches. A small shared helper would shorten both. Not blocking.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6058523557 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1884#pullrequestreview-6058523557). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T13:31:24Z. **Review:** COMMENTED --- Review of head `b06d96884fec92780136b993a18f3d78dfe46831`. **Result: no P1, no P2.** Two nits. CI on this head: Linux Python checks, gfx1013 fixture assembly/translation and Windows build+test all pass (`gh pr checks 1884`). Commands run locally (Linux, worktree at the head SHA): - `git diff --stat origin/main...HEAD`: 6 files, +358/-2 (CMake, CI lists, README row, docs, one lowering branch, one test). - `python3 -B tests/compute_dpp_row_shr_check.py`: "Self-test passed." Controls and both built-in mutants (`cross_row` at word 64, `zero` at word 1) are caught. - `python3 tests/docs_links_check.py`: 19 files, 459 links, passed. - `python3 tests/bidi_controls_check.py`: 1642 files, none found. - `git diff --check origin/main...HEAD`: clean. - Own mutations of `tools/compute_store_aot.py`, each reverted with `git checkout -- .`: 1. `row_lane >= shift` changed to `row_lane > shift` (boundary off by one): killed, the generated-HLSL assertion in `controls()` fails. 2. OR lowered as `+` instead of `|`: killed, same assertion. Correctness read (`tools/compute_store_aot.py` lines ~2104-2132): - Lane `x` reads lane `x - n` inside its 16-lane row. Lanes with `row_lane < n` get 0 for src0 with BOUND_CTRL (op still runs) and keep the old destination without it. This matches the RDNA 2 DPP16 description. - Without BOUND_CTRL the old destination must be a known word, otherwise it is refused. Good. - Two barriers around the staging slot, so a following step cannot overwrite `dpp_stage` before readers finish. - Guards: gfx1013 only, 1 <= shift <= 15, VGPR operands, full row/bank masks, 1D group with size a multiple of 16, no lane guard. Nits: - N1: both mutants I tried were caught by the string-level HLSL assertion in `controls()`. The GPU readback comparison is Windows-only (`draw` mode), and `llvm-mc-15` is not on this Linux host, so I could not run `binary`/`draw` here. I did not run the Windows pool. The Windows CI job passing covers the build and CTest registration, but the new `compute_store_aot_dpp_row_shr_*` WARP/hardware runs should be confirmed on Win2025 before this is relied on. - N2: `tools/compute_store_aot.py` ~2113: `slot = "dpp_stage"` and the staging text are now duplicated between the `quad_perm` and `row_shr` branches. A small shared helper would shorten both. Not blocking. AI-assisted; commands listed were executed locally.
roansystemlabs commented 2026-11-25 14:05:09 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by roansystemlabs on 2026-11-25T13:27:13Z.


Rebased onto current main (214ed093, a bit past 4aaea119) and force-pushed; head is now b06d9688, still one commit.

The only conflict was in .github/workflows/windows.yml, in the platform-independent Python list on Linux: main added mesh_join_descriptor_check.py and mesh_loop_census_check.py at the same spot. I kept both and put tests/compute_dpp_row_shr_check.py after them. The LLVM 15 matrix entry merged on its own and keeps the (command, extra_env) tuple format used with tools/run_checks_parallel.py (#2267). The other five files merged cleanly; git range-diff origin/main b3e9fad4 b06d9688 shows only context changes in the workflow file.

Checked on b06d9688:

git merge-tree --write-tree origin/main b06d9688                              # exit 0, no conflicts
ctest --preset dev --no-tests=error -R '^compute_store_aot_dpp_' -V           # twice, 4/4
ctest --preset release --no-tests=error -R '^compute_store_aot_dpp_' -V       # 4/4
python -B tests/compute_dpp_row_shr_check.py                                  # exit 0
python -B tests/compute_dpp_row_shr_check.py binary <llvm-mc 15> <llvm-objcopy 15> <LLVM-C 15>   # exit 0
python -B tests/docs_links_check.py; python -B tests/bidi_controls_check.py   # exit 0

On WARP 10.0.26100.9818 and an RTX 3070 (32.0.16.2101), shifts 1, 8 and 15 each give compared_words=320 mismatches=0 debug_errors=0 debug_warnings=0, and both negative controls fail at the predicted first word (word=64 expected=00000010, word=1 expected=6b000000 actual=00000000). The quad_perm and v_mbcnt controls in tests/compute_store_check.py also pass. The hashes in the PR description now point at b06d9688 / 214ed093.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7163799176 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1884#issuecomment-7163799176). Originally posted by [roansystemlabs](https://github.com/roansystemlabs) on 2026-11-25T13:27:13Z. --- Rebased onto current `main` (`214ed093`, a bit past `4aaea119`) and force-pushed; head is now `b06d9688`, still one commit. The only conflict was in `.github/workflows/windows.yml`, in the platform-independent Python list on Linux: `main` added `mesh_join_descriptor_check.py` and `mesh_loop_census_check.py` at the same spot. I kept both and put `tests/compute_dpp_row_shr_check.py` after them. The LLVM 15 matrix entry merged on its own and keeps the `(command, extra_env)` tuple format used with `tools/run_checks_parallel.py` (#2267). The other five files merged cleanly; `git range-diff origin/main b3e9fad4 b06d9688` shows only context changes in the workflow file. Checked on `b06d9688`: ``` git merge-tree --write-tree origin/main b06d9688 # exit 0, no conflicts ctest --preset dev --no-tests=error -R '^compute_store_aot_dpp_' -V # twice, 4/4 ctest --preset release --no-tests=error -R '^compute_store_aot_dpp_' -V # 4/4 python -B tests/compute_dpp_row_shr_check.py # exit 0 python -B tests/compute_dpp_row_shr_check.py binary <llvm-mc 15> <llvm-objcopy 15> <LLVM-C 15> # exit 0 python -B tests/docs_links_check.py; python -B tests/bidi_controls_check.py # exit 0 ``` On WARP 10.0.26100.9818 and an RTX 3070 (32.0.16.2101), shifts 1, 8 and 15 each give `compared_words=320 mismatches=0 debug_errors=0 debug_warnings=0`, and both negative controls fail at the predicted first word (`word=64 expected=00000010`, `word=1 expected=6b000000 actual=00000000`). The `quad_perm` and `v_mbcnt` controls in `tests/compute_store_check.py` also pass. The hashes in the PR description now point at `b06d9688` / `214ed093`. AI-assisted.
upstream-sync closed this pull request 2026-11-25 20:04:02 +00:00
tedin7 commented 2026-11-25 20:04:02 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T19:10:57Z.

Review: COMMENTED


Review of head 59bd1b08 (merge of main; same change as the head reviewed earlier).

Code and tests look sound, but I am not merging because of a duplicate.

Duplicate: #2496 ("compute DPP16 row_shr OR/ADD lowering") covers the same slice (v_or_b32_dpp / v_add_nc_u32_dpp with row_shr, compute path). This PR is the older one and matches the claim in #1543. I leave the choice between the two PRs to @R0Y00. If this one is chosen, I see no technical blocker.

What I checked against origin/main (15 commits behind, no conflict):

  • tools/compute_store_aot.py: the new branch sits next to the quad_perm one. The lane-before-row-start rule is correct: with BOUND_CTRL src0 is 0 and the op still runs; without it the old destination is kept and must be a known word, otherwise the translation is refused.
  • Shift range 1..15, gfx1013 only, 1D groups divisible by 16, no lane guard: all refused otherwise, and the test covers each refusal.
  • The test has a per-lane CPU reference for 320 words, plus a WARP/hardware draw readback (compute_store_aot_dpp_row_shr_<adapter>). I could not run the draw part on Linux.
  • The CI lists and CMake entries are in place.

Commands run locally (Linux):

  • python3 -B tests/compute_dpp_row_shr_check.py -> OK
  • python3 tests/docs_links_check.py -> OK
  • python3 tests/bidi_controls_check.py -> OK
  • git diff --check origin/main...HEAD -> clean
  • Mutation: >= changed to > in the row-start test -> the test fails.
  • Mutation: | changed to + for OR -> the test fails.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6063462069 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1884#pullrequestreview-6063462069). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T19:10:57Z. **Review:** COMMENTED --- Review of head 59bd1b08 (merge of main; same change as the head reviewed earlier). Code and tests look sound, but I am not merging because of a duplicate. Duplicate: #2496 ("compute DPP16 row_shr OR/ADD lowering") covers the same slice (`v_or_b32_dpp` / `v_add_nc_u32_dpp` with `row_shr`, compute path). This PR is the older one and matches the claim in #1543. I leave the choice between the two PRs to @R0Y00. If this one is chosen, I see no technical blocker. What I checked against origin/main (15 commits behind, no conflict): - `tools/compute_store_aot.py`: the new branch sits next to the `quad_perm` one. The lane-before-row-start rule is correct: with BOUND_CTRL src0 is 0 and the op still runs; without it the old destination is kept and must be a known word, otherwise the translation is refused. - Shift range 1..15, gfx1013 only, 1D groups divisible by 16, no lane guard: all refused otherwise, and the test covers each refusal. - The test has a per-lane CPU reference for 320 words, plus a WARP/hardware draw readback (`compute_store_aot_dpp_row_shr_<adapter>`). I could not run the draw part on Linux. - The CI lists and CMake entries are in place. Commands run locally (Linux): - `python3 -B tests/compute_dpp_row_shr_check.py` -> OK - `python3 tests/docs_links_check.py` -> OK - `python3 tests/bidi_controls_check.py` -> OK - `git diff --check origin/main...HEAD` -> clean - Mutation: `>=` changed to `>` in the row-start test -> the test fails. - Mutation: `|` changed to `+` for OR -> the test fails. AI-assisted; commands listed were executed locally.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!1877
No description provided.