shader: lower 32-bit compute raw MUBUF buffer atomics in gfx2hlsl #2323

Merged
Vladimir-Human merged 1 commit from upstream-pr/2331 into main 2026-11-25 13:11:18 +00:00
Vladimir-Human commented 2026-11-25 12:37:28 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Vladimir-Human on 2026-11-25T12:37:28Z.


Refs #1545

Summary

Lower 11 gfx1013 compute 32-bit raw offen MUBUF buffer atomics (buffer_atomic_swap, cmpswap, add, sub, smin, umin, smax, umax, and, or, xor) in tools/startup/gfx2hlsl.py (Stage.buffer_atomic, MUBUF_ATOMIC_OPS, shared Stage.raw_table_uav_store).

  • Shared Stage.raw_table_uav_store delegates descriptor validation to Stage.store_descriptor(..., stride0_ok=True) and consolidates buffer_store_dword* / buffer_atomic_* operand, offen-only, modifier, aligned soffset, and aligned immediate offset checks (& 0xfffffffcu address rounding).
  • Per RDNA 2 ISA (Ch. 8 MUBUF) / LLVM 15 SIInstrInfo / D3D12 HLSL RWByteAddressBuffer:
    • buffer_atomic_cmpswap flips RDNA 2 (vdata[0]=replacement, vdata[1]=compare) into HLSL InterlockedCompareStore / InterlockedCompareExchange(a, cmp, rep[, ao]), writing pre-atomic return under glc only to vdata[0] (vdata[1] preserved).
    • buffer_atomic_swap lowers via InterlockedExchange(a, val, ao) (assigning vdata[0] = ao only when glc is set).
    • buffer_atomic_sub lowers via InterlockedAdd(a, (0u - val)[, ao]); smin/smax use signed asint overloads (InterlockedMin/InterlockedMax with asuint(ai) writeback on glc).
    • Non-uniform EXEC wraps the atomic call and glc writeback in if (exec & 1).
    • Out-of-scope forms stay refused: non-compute stages, missing offen, idxen, extra modifiers (slc/dlc), unaligned immediate/scalar offsets, bad vdata/vaddr/soffset, non-stride0 modified/misaligned/aliased descriptors, and inc/dec/float/64-bit atomics.
  • Added startup_compute_buffer_atomics_check.py, wired it in CMakeLists.txt, .github/workflows/windows.yml, README.md, and docs/experiments.md.

Verification (2f6c92bb, Windows Build 26300.9974 (26H2), DXC cs_6_0 -Gis -WX, D3D12 debug_layer=enabled)

Commands:

  • . .\tools\dev.ps1; cmake --preset release; cmake --build --preset release --target offscreen_check
  • python -B tests/startup_compute_buffer_atomics_check.py (11 ops x glc on/off, alignment, modifiers, descriptor & out-of-scope refusals)
  • ctest --preset release --no-tests=error -j 1 -R "^startup_(compute_buffer_atomics|gfx2hlsl_compute)(_mbcnt|_swapped-axes|_dropped-store|_b-offset|_c-unpredicated)?(_controls|_warp|_hardware)?$" -V (16/16 passed, 0 failed, 0 skipped)
  • ctest --preset release --no-tests=error -R "^startup_(gfx2hlsl|compute_buffer_atomics|compute_gather|compute_image_store|compute_readfirstlane|compute_request_offline|compute_translate|image_|translator|tools_lint|capture|uniform_lane|smem_address|inline_sampler|sampler_heap|flat_param|ngg_slice)" -E "_(warp|hardware)$" (83/83 passed, 0 failed, 0 skipped)
  • Direct offscreen_check --compute-store-case runs on REDUCE_BYTES (32 contended threads, groups=2x1x1) and EXCHANGE_BYTES (8 lanes, EXEC mask, glc, cmpswap, vdata == vaddr, groups=1x1x1) + 6 mutated GPU negative controls:
    • WARP (Microsoft Basic Render Driver, vendor=1414 device=008c, driver 10.0.26100.9818, debug_layer=enabled): both positive cases compared_words=320 mismatches=0 debug_errors=0 debug_warnings=0; all 6 negative controls rejected with debug_errors=0 debug_warnings=0 (dropped_atomic: word=0 expected=4c5ec7b5 actual=c5c5c5c5, wrong_sub_sign: word=1 expected=3f2cc3d5 actual=4c5ec7b5, unsigned_smin: word=2 expected=a434c802 actual=2434c800, swapped_cmpswap: word=72 expected=55667788 actual=c5c5c5c5, dropped_glc_return: word=8 expected=c5c5c5c5 actual=00000010, dropped_exec_guard: word=6 expected=c5c5c5c5 actual=c5c5c5db).
    • RTX 4070 SUPER (NVIDIA GeForce RTX 4070 SUPER, vendor=10de device=2783, driver 32.0.16.2114, debug_layer=enabled): both positive cases compared_words=320 mismatches=0 debug_errors=0 debug_warnings=0; all 6 negative controls rejected with debug_errors=0 debug_warnings=0 at the exact same first-mismatch words.
  • Pure-Python lint/docs checks (startup_tools_lint_check.py, docs_links_check.py, bidi_controls_check.py, form_coverage_check.py, shader_census_check.py, startup_translator_check.py) all passed.

Not Tested Locally

  • llvm-mc-15 assembly check (python -B tests/startup_compute_buffer_atomics_check.py --llvm-mc llvm-mc-15) was not run locally on Windows (covered by Ubuntu CI in .github/workflows/windows.yml; fixture bytes cross-checked with tools/disasm_rdna2.py).
  • Real title compute shaders, idxen, slc/dlc, and inc/dec/float/64-bit atomics.

AI-assisted implementation and verification.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6604639355 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2331). Originally posted by [Vladimir-Human](https://github.com/Vladimir-Human) on 2026-11-25T12:37:28Z. --- Refs #1545 ### Summary Lower 11 gfx1013 compute 32-bit raw `offen` MUBUF buffer atomics (`buffer_atomic_swap`, `cmpswap`, `add`, `sub`, `smin`, `umin`, `smax`, `umax`, `and`, `or`, `xor`) in `tools/startup/gfx2hlsl.py` (`Stage.buffer_atomic`, `MUBUF_ATOMIC_OPS`, shared `Stage.raw_table_uav_store`). - Shared `Stage.raw_table_uav_store` delegates descriptor validation to `Stage.store_descriptor(..., stride0_ok=True)` and consolidates `buffer_store_dword*` / `buffer_atomic_*` operand, `offen`-only, modifier, aligned `soffset`, and aligned immediate `offset` checks (`& 0xfffffffcu` address rounding). - Per RDNA 2 ISA (Ch. 8 MUBUF) / LLVM 15 `SIInstrInfo` / D3D12 HLSL `RWByteAddressBuffer`: - `buffer_atomic_cmpswap` flips RDNA 2 `(vdata[0]=replacement, vdata[1]=compare)` into HLSL `InterlockedCompareStore` / `InterlockedCompareExchange(a, cmp, rep[, ao])`, writing pre-atomic return under `glc` only to `vdata[0]` (`vdata[1]` preserved). - `buffer_atomic_swap` lowers via `InterlockedExchange(a, val, ao)` (assigning `vdata[0] = ao` only when `glc` is set). - `buffer_atomic_sub` lowers via `InterlockedAdd(a, (0u - val)[, ao])`; `smin`/`smax` use signed `asint` overloads (`InterlockedMin`/`InterlockedMax` with `asuint(ai)` writeback on `glc`). - Non-uniform `EXEC` wraps the atomic call and `glc` writeback in `if (exec & 1)`. - Out-of-scope forms stay refused: non-compute stages, missing `offen`, `idxen`, extra modifiers (`slc`/`dlc`), unaligned immediate/scalar offsets, bad `vdata`/`vaddr`/`soffset`, non-stride0 modified/misaligned/aliased descriptors, and `inc`/`dec`/float/64-bit atomics. - Added [startup_compute_buffer_atomics_check.py](tests/startup_compute_buffer_atomics_check.py), wired it in `CMakeLists.txt`, `.github/workflows/windows.yml`, `README.md`, and `docs/experiments.md`. ### Verification (`2f6c92bb`, Windows Build `26300.9974` (`26H2`), DXC `cs_6_0 -Gis -WX`, D3D12 `debug_layer=enabled`) Commands: - `. .\tools\dev.ps1; cmake --preset release; cmake --build --preset release --target offscreen_check` - `python -B tests/startup_compute_buffer_atomics_check.py` (11 ops x `glc` on/off, alignment, modifiers, descriptor & out-of-scope refusals) - `ctest --preset release --no-tests=error -j 1 -R "^startup_(compute_buffer_atomics|gfx2hlsl_compute)(_mbcnt|_swapped-axes|_dropped-store|_b-offset|_c-unpredicated)?(_controls|_warp|_hardware)?$" -V` (**16/16 passed**, 0 failed, 0 skipped) - `ctest --preset release --no-tests=error -R "^startup_(gfx2hlsl|compute_buffer_atomics|compute_gather|compute_image_store|compute_readfirstlane|compute_request_offline|compute_translate|image_|translator|tools_lint|capture|uniform_lane|smem_address|inline_sampler|sampler_heap|flat_param|ngg_slice)" -E "_(warp|hardware)$"` (**83/83 passed**, 0 failed, 0 skipped) - Direct `offscreen_check --compute-store-case` runs on `REDUCE_BYTES` (32 contended threads, `groups=2x1x1`) and `EXCHANGE_BYTES` (8 lanes, `EXEC` mask, `glc`, `cmpswap`, `vdata == vaddr`, `groups=1x1x1`) + 6 mutated GPU negative controls: - **WARP** (`Microsoft Basic Render Driver`, `vendor=1414 device=008c`, driver `10.0.26100.9818`, `debug_layer=enabled`): both positive cases `compared_words=320 mismatches=0 debug_errors=0 debug_warnings=0`; all 6 negative controls rejected with `debug_errors=0 debug_warnings=0` (`dropped_atomic`: `word=0 expected=4c5ec7b5 actual=c5c5c5c5`, `wrong_sub_sign`: `word=1 expected=3f2cc3d5 actual=4c5ec7b5`, `unsigned_smin`: `word=2 expected=a434c802 actual=2434c800`, `swapped_cmpswap`: `word=72 expected=55667788 actual=c5c5c5c5`, `dropped_glc_return`: `word=8 expected=c5c5c5c5 actual=00000010`, `dropped_exec_guard`: `word=6 expected=c5c5c5c5 actual=c5c5c5db`). - **RTX 4070 SUPER** (`NVIDIA GeForce RTX 4070 SUPER`, `vendor=10de device=2783`, driver `32.0.16.2114`, `debug_layer=enabled`): both positive cases `compared_words=320 mismatches=0 debug_errors=0 debug_warnings=0`; all 6 negative controls rejected with `debug_errors=0 debug_warnings=0` at the exact same first-mismatch words. - Pure-Python lint/docs checks (`startup_tools_lint_check.py`, `docs_links_check.py`, `bidi_controls_check.py`, `form_coverage_check.py`, `shader_census_check.py`, `startup_translator_check.py`) all passed. ### Not Tested Locally - `llvm-mc-15` assembly check (`python -B tests/startup_compute_buffer_atomics_check.py --llvm-mc llvm-mc-15`) was not run locally on Windows (covered by Ubuntu CI in `.github/workflows/windows.yml`; fixture bytes cross-checked with `tools/disasm_rdna2.py`). - Real title compute shaders, `idxen`, `slc`/`dlc`, and `inc`/`dec`/float/64-bit atomics. AI-assisted implementation and verification.
tedin7 commented 2026-11-25 13:00:52 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Review of head 2f6c92bb1a99ef802022d4675c067d308bb7387f.

Result: no P1, no P2. Looks correct.

Checked:

  • buffer_atomic_cmpswap swaps the operand order correctly (RDNA 2 vdata[0]=replacement, vdata[1]=compare -> HLSL compare first). Return goes to vdata[0] only under glc.
  • sub via InterlockedAdd(a, 0u - v), smin/smax via asint with asuint writeback: correct.
  • swap always uses the output form (HLSL needs it), writeback only under glc.
  • Non-uniform EXEC guards both the call and the glc writeback.
  • Refusals kept: non-cs, no offen, idxen, slc/dlc, unaligned offsets, bad descriptors.
  • Refactor of buffer_store_dword* into raw_table_uav_store keeps the same checks and address rounding.
  • Neutral title, MERGEABLE, CI green (Linux checks, fixtures, Windows build and test).

Commands run locally on the PR head:

  • python3 tests/startup_compute_buffer_atomics_check.py -> "buffer_atomic controls (11 ops, glc/non-glc, alignment, modifiers, descriptors, refusals) passed", "Self-test passed."
  • python3 tests/docs_links_check.py -> Checked 18 Markdown files and 452 links.
  • python3 tests/bidi_controls_check.py -> no bidirectional controls.
  • git diff --check origin/main...HEAD -> clean.
  • Mutation: swapped compare/replacement order in the InterlockedCompareExchange emit -> the check failed with AssertionError (killed). Reverted.

Not run: the D3D12 WARP readback part (needs Windows). I relied on the green Build and test on Windows CI job. Win2025 was not queued.

Nits (non-blocking):

  • buffer_atomic re-creates used_atomic defensively for stage objects built without __init__; a class-level default already exists, so the isinstance guard is only needed for unit probes.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6057850076 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2331#pullrequestreview-6057850076). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T12:45:42Z. **Review:** COMMENTED --- Review of head `2f6c92bb1a99ef802022d4675c067d308bb7387f`. **Result: no P1, no P2. Looks correct.** Checked: - `buffer_atomic_cmpswap` swaps the operand order correctly (RDNA 2 vdata[0]=replacement, vdata[1]=compare -> HLSL compare first). Return goes to vdata[0] only under `glc`. - `sub` via `InterlockedAdd(a, 0u - v)`, `smin`/`smax` via `asint` with `asuint` writeback: correct. - `swap` always uses the output form (HLSL needs it), writeback only under `glc`. - Non-uniform EXEC guards both the call and the `glc` writeback. - Refusals kept: non-cs, no `offen`, `idxen`, `slc`/`dlc`, unaligned offsets, bad descriptors. - Refactor of `buffer_store_dword*` into `raw_table_uav_store` keeps the same checks and address rounding. - Neutral title, MERGEABLE, CI green (Linux checks, fixtures, Windows build and test). Commands run locally on the PR head: - `python3 tests/startup_compute_buffer_atomics_check.py` -> "buffer_atomic controls (11 ops, glc/non-glc, alignment, modifiers, descriptors, refusals) passed", "Self-test passed." - `python3 tests/docs_links_check.py` -> Checked 18 Markdown files and 452 links. - `python3 tests/bidi_controls_check.py` -> no bidirectional controls. - `git diff --check origin/main...HEAD` -> clean. - Mutation: swapped compare/replacement order in the `InterlockedCompareExchange` emit -> the check failed with AssertionError (killed). Reverted. Not run: the D3D12 WARP readback part (needs Windows). I relied on the green `Build and test on Windows` CI job. Win2025 was not queued. Nits (non-blocking): - `buffer_atomic` re-creates `used_atomic` defensively for stage objects built without `__init__`; a class-level default already exists, so the `isinstance` guard is only needed for unit probes. AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-25 13:01:00 +00:00 (Migrated from github.com)

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


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

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

Files that conflict with current main (4aaea119):

  • .github/workflows/windows.yml
  • CMakeLists.txt
  • README.md
  • docs/experiments.md

Commands run locally:

git fetch origin main pull/2331/head
git merge-tree --write-tree --name-only origin/main FETCH_HEAD
gh pr view 2331 --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:7162980142 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2331#issuecomment-7162980142). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T12:52:39Z. --- @Vladimir-Human could you rebase this branch onto current `main` and force-push? GitHub reports head `2f6c92bb` as conflicting with `main`, so it cannot be merged as is. Files that conflict with current `main` (`4aaea119`): - `.github/workflows/windows.yml` - `CMakeLists.txt` - `README.md` - `docs/experiments.md` Commands run locally: ``` git fetch origin main pull/2331/head git merge-tree --write-tree --name-only origin/main FETCH_HEAD gh pr view 2331 --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.
RavenCurseBurg commented 2026-11-25 13:01:03 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T12:54:57Z.


I ran 2f6c92bb on Intel UHD Graphics 770 (8086:a780, driver 32.0.101.5973), Windows 11 24H2 build 26100.9711, DXC 1.9.2609.5. Both the 32-thread reduction and the masked exchange matched all 320 words. The six mutants reported their predicted first mismatches at words 0, 1, 2, 72, 8 and 6 respectively. The dropped GLC return changed six words and the dropped EXEC guard changed two. The local D3D12 debug layer was unavailable.

The fixture's assembly check also passed locally for the combined programs and all 11 operations with GLC on and off. I used LLVM 15.0.7's gfx1013 integrated assembler (clang -cc1as -triple amdgcn-amd-amdhsa -target-cpu gfx1013 -filetype asm -show-encoding) as the --llvm-mc encoding provider.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7163032694 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2331#issuecomment-7163032694). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T12:54:57Z. --- I ran 2f6c92bb on Intel UHD Graphics 770 (`8086:a780`, driver 32.0.101.5973), Windows 11 24H2 build 26100.9711, DXC 1.9.2609.5. Both the 32-thread reduction and the masked exchange matched all 320 words. The six mutants reported their predicted first mismatches at words 0, 1, 2, 72, 8 and 6 respectively. The dropped GLC return changed six words and the dropped EXEC guard changed two. The local D3D12 debug layer was unavailable. The fixture's assembly check also passed locally for the combined programs and all 11 operations with GLC on and off. I used LLVM 15.0.7's gfx1013 integrated assembler (`clang -cc1as -triple amdgcn-amd-amdhsa -target-cpu gfx1013 -filetype asm -show-encoding`) as the `--llvm-mc` encoding provider.
upstream-sync closed this pull request 2026-11-25 14:04:46 +00:00
tedin7 commented 2026-11-25 14:04:47 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Review of head b5708a53f2a31929e511b21d7d839310c9d28bf9 (PR #2331, 32-bit compute raw MUBUF atomics in gfx2hlsl).

Verdict: no P1, no P2 findings. Comment only, no approval.

Semantics checked against the RDNA 2 MUBUF atomic definitions

  • cmpswap: replacement is vdata[0], compare is vdata[1]. The lowering emits InterlockedCompareExchange(a, vdata[1], vdata[0], ao), or InterlockedCompareStore(a, vdata[1], vdata[0]) without glc. Operand order matches HLSL (compare first). The pre-atomic value goes only to vdata[0] (set_v(data[1]) is the range start).
  • swap: HLSL requires the output operand, so ao is always declared and used. It is written back only under glc.
  • sub: InterlockedAdd(a, 0u - val). smin/smax: signed overloads with an int ai output, written back through asuint(ai).
  • Non-uniform exec: the call is wrapped in if (exec & 1), and set_v already guards the writeback, so inactive lanes keep their VGPR (gfx2hlsl.py:1111, :2754).
  • Refusals are kept: non-cs, no offen, idxen, slc/dlc, unaligned offset, bad descriptor. The raw_table_uav_store refactor keeps the store path identical (same & 0xfffffffcu rounding and same checks).
  • Declarations of ao/ai come from used_atomic, emitted only when needed.

Commands executed locally in the worktree at this head

  • python3 tests/startup_compute_buffer_atomics_check.py -> buffer_atomic controls (11 ops, glc/non-glc, alignment, modifiers, descriptors, refusals) passed
  • python3 tests/docs_links_check.py -> Checked 19 Markdown files and 454 links.
  • python3 tests/bidi_controls_check.py -> no bidirectional controls
  • git diff --check origin/main...HEAD -> clean
  • Mutations (each reverted with git checkout -- .); all were killed by the check (AssertionError):
    1. swapped compare/replacement in InterlockedCompareStore
    2. removed the 0u - negation for buffer_atomic_sub
    3. dropped the glc writeback (set_v)

CI at review time: Linux Python checks pass, Windows build and test pass. "Assemble and translate gfx1013 fixtures" was still pending.

Not run: Win2025 WARP. The PR adds a --dispatch readback test (startup_compute_buffer_atomics_<adapter>), and I did not exercise it locally. It needs a Windows WARP pass before merge.

Nits (non-blocking)

  • gfx2hlsl.py buffer_atomic: the isinstance(getattr(self, 'used_atomic', None), set) fallback is needed only for stages built without __init__. A short comment would say so.
  • The 1-bit exec guard on the atomic is correct for the current single-lane model. Add a note next to MUBUF_ATOMIC_OPS that wave-wide lowering would have to revisit it.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6058108365 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2331#pullrequestreview-6058108365). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T13:03:23Z. **Review:** COMMENTED --- Review of head `b5708a53f2a31929e511b21d7d839310c9d28bf9` (PR #2331, 32-bit compute raw MUBUF atomics in gfx2hlsl). Verdict: no P1, no P2 findings. Comment only, no approval. Semantics checked against the RDNA 2 MUBUF atomic definitions - `cmpswap`: replacement is `vdata[0]`, compare is `vdata[1]`. The lowering emits `InterlockedCompareExchange(a, vdata[1], vdata[0], ao)`, or `InterlockedCompareStore(a, vdata[1], vdata[0])` without glc. Operand order matches HLSL (compare first). The pre-atomic value goes only to `vdata[0]` (`set_v(data[1])` is the range start). - `swap`: HLSL requires the output operand, so `ao` is always declared and used. It is written back only under glc. - `sub`: `InterlockedAdd(a, 0u - val)`. `smin`/`smax`: signed overloads with an `int ai` output, written back through `asuint(ai)`. - Non-uniform exec: the call is wrapped in `if (exec & 1)`, and `set_v` already guards the writeback, so inactive lanes keep their VGPR (`gfx2hlsl.py:1111`, `:2754`). - Refusals are kept: non-cs, no `offen`, `idxen`, `slc`/`dlc`, unaligned offset, bad descriptor. The `raw_table_uav_store` refactor keeps the store path identical (same `& 0xfffffffcu` rounding and same checks). - Declarations of `ao`/`ai` come from `used_atomic`, emitted only when needed. Commands executed locally in the worktree at this head - `python3 tests/startup_compute_buffer_atomics_check.py` -> `buffer_atomic controls (11 ops, glc/non-glc, alignment, modifiers, descriptors, refusals) passed` - `python3 tests/docs_links_check.py` -> `Checked 19 Markdown files and 454 links.` - `python3 tests/bidi_controls_check.py` -> `no bidirectional controls` - `git diff --check origin/main...HEAD` -> clean - Mutations (each reverted with `git checkout -- .`); all were killed by the check (AssertionError): 1. swapped compare/replacement in `InterlockedCompareStore` 2. removed the `0u -` negation for `buffer_atomic_sub` 3. dropped the glc writeback (`set_v`) CI at review time: Linux Python checks pass, Windows build and test pass. "Assemble and translate gfx1013 fixtures" was still pending. Not run: Win2025 WARP. The PR adds a `--dispatch` readback test (`startup_compute_buffer_atomics_<adapter>`), and I did not exercise it locally. It needs a Windows WARP pass before merge. Nits (non-blocking) - `gfx2hlsl.py` `buffer_atomic`: the `isinstance(getattr(self, 'used_atomic', None), set)` fallback is needed only for stages built without `__init__`. A short comment would say so. - The 1-bit exec guard on the atomic is correct for the current single-lane model. Add a note next to `MUBUF_ATOMIC_OPS` that wave-wide lowering would have to revisit it. 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!2323
No description provided.