feat: translate ds_swizzle_b32 in wave64 shaders #283

Open
github-bot wants to merge 1 commit from github-bot/gh-283 into main AGit
Owner

@⁠Tiimonprog on GitHub · 2026-11-26 00:35 UTC · original
Tiimonprog:feat/wave64-ds-swizzle → main · +42 −9 · 6 files · 1 commits · open

Change

Refs #70. Translate ds_swizzle_b32 in wave64 shaders for QUAD_PERM and BITMASK_PERM. Each 32-lane half exchanges independently, inactive sources supply zero, and inactive destinations keep their value. Reuse the wave32 source-expression builder and offset validation.

Verification

With ANYXBOXX_DXC and ANYXBOXX_RUNTIME pointing to the locally built tools, and PYTHONUTF8=0:

python -m pytest -q tests/test_rdna2_exec_lanes.py tests/test_rdna2_hlsl_wave64.py -rs --tb=short
→ 25 passed on each of NVIDIA RTX 4060 Laptop, Intel UHD Graphics and WARP
python -m pytest -q -rs --tb=short  # ANYXBOXX_GPU=warp
→ 1650 passed, 17 skipped
python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools
→ All checks passed!

The 17 skips require unbuilt Rust/TomBox components or unavailable SPIR-V tools.

Oracle and test data

The new in-place quad-reversal and swap-16 tests compare final memory byte for byte against the existing wave64 reference interpreter. Both failed before this change with Untranslatable: ds_swizzle_b32 (DS). Explicit assertions check preserved inactive destinations, zero from inactive sources, and distinct values in both halves. Reserved and ROTATE/FFT offsets remain rejected with their offset in the error in wave32 and wave64. All shader inputs are synthesized by the existing test encoders.

English and French wave64 notes updated. README counts remain at 1600+. Created with OpenAI Codex assistance.

**@⁠Tiimonprog** on GitHub · 2026-11-26 00:35 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/283) `Tiimonprog:feat/wave64-ds-swizzle` → `main` · +42 −9 · 6 files · 1 commits · open ## Change Refs #70. Translate `ds_swizzle_b32` in wave64 shaders for QUAD_PERM and BITMASK_PERM. Each 32-lane half exchanges independently, inactive sources supply zero, and inactive destinations keep their value. Reuse the wave32 source-expression builder and offset validation. ## Verification With `ANYXBOXX_DXC` and `ANYXBOXX_RUNTIME` pointing to the locally built tools, and `PYTHONUTF8=0`: ``` python -m pytest -q tests/test_rdna2_exec_lanes.py tests/test_rdna2_hlsl_wave64.py -rs --tb=short → 25 passed on each of NVIDIA RTX 4060 Laptop, Intel UHD Graphics and WARP python -m pytest -q -rs --tb=short # ANYXBOXX_GPU=warp → 1650 passed, 17 skipped python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools → All checks passed! ``` The 17 skips require unbuilt Rust/TomBox components or unavailable SPIR-V tools. ## Oracle and test data The new in-place quad-reversal and swap-16 tests compare final memory byte for byte against the existing wave64 reference interpreter. Both failed before this change with `Untranslatable: ds_swizzle_b32 (DS)`. Explicit assertions check preserved inactive destinations, zero from inactive sources, and distinct values in both halves. Reserved and ROTATE/FFT offsets remain rejected with their offset in the error in wave32 and wave64. All shader inputs are synthesized by the existing test encoders. English and French wave64 notes updated. README counts remain at 1600+. Created with OpenAI Codex assistance.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:41:55 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/283/head:github-bot/gh-283'
git switch 'github-bot/gh-283'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-283'
git switch 'github-bot/gh-283'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-283'
git switch 'github-bot/gh-283'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-283'
git switch 'main'
git merge --squash 'github-bot/gh-283'
git switch 'main'
git merge --ff-only 'github-bot/gh-283'
git switch 'main'
git merge 'github-bot/gh-283'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.