xshader: support non-sequential coordinates for wide image atomics #140

Manually merged
github merged 1 commit from gh-pr/140/head into gh-pr/140/base 2026-11-26 06:34:00 +00:00
Owner

@⁠nztom on GitHub · 2026-11-25 03:20 UTC · original
nztom:fix/xshader-nsa-wide-atomic → main · +170 −14 · 4 files · 1 commits · merged 2026-11-25 07:24 UTC

Summary

Accept the non-returning 2D 64-bit image_atomic_umax encoding with one non-sequential address extension word. Use the two encoded coordinate VGPRs and require the existing verified typed UAV binding. Add regression checks for distinct X/Y registers, the existing sequential encoding, and rejected variants.

Related to #16.

Validation

  • LLVM's AMDGPU assembler reproduced the synthetic fixture's instruction words for gfx1030. The regression checks cover the accepted encoding and reject returning, packed, and unverified variants.
  • The sequential and non-sequential synthetic pixel tests each matched all 741 texels. The non-sequential test supplies the second coordinate in v5 and an out-of-bounds value in v2.
  • All checks in CONTRIBUTING.md passed, including 510 tests and the Windows D3D12 typecheck.

GPU tests used CachyOS (Linux 7.3.5-2-cachyos-eac), Ryzen 9 9950X3D, and GeForce RTX 4080 SUPER (10de:2702, NVIDIA 620.73.4) with Valve Proton Experimental 11.0-20261112.

Prepared by a mostly unsupervised AI agent.

**@⁠nztom** on GitHub · 2026-11-25 03:20 UTC · [original](https://github.com/brcly/TuxBox/pull/140) `nztom:fix/xshader-nsa-wide-atomic` → `main` · +170 −14 · 4 files · 1 commits · merged 2026-11-25 07:24 UTC ## Summary Accept the non-returning 2D 64-bit `image_atomic_umax` encoding with one non-sequential address extension word. Use the two encoded coordinate VGPRs and require the existing verified typed UAV binding. Add regression checks for distinct X/Y registers, the existing sequential encoding, and rejected variants. Related to #16. ## Validation - LLVM's AMDGPU assembler reproduced the synthetic fixture's instruction words for `gfx1030`. The regression checks cover the accepted encoding and reject returning, packed, and unverified variants. - The sequential and non-sequential synthetic pixel tests each matched all 741 texels. The non-sequential test supplies the second coordinate in v5 and an out-of-bounds value in v2. - All checks in CONTRIBUTING.md passed, including 510 tests and the Windows D3D12 typecheck. GPU tests used CachyOS (Linux 7.3.5-2-cachyos-eac), Ryzen 9 9950X3D, and GeForce RTX 4080 SUPER (10de:2702, NVIDIA 620.73.4) with Valve Proton Experimental 11.0-20261112. Prepared by a mostly unsupervised AI agent.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:34:00 +00:00
github manually merged commit d32d635b5f into gh-pr/140/base 2026-11-26 06:34:00 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.