xshader: accept immediates in signed no-carry add and subtract #125

Manually merged
github merged 2 commits from gh-pr/125/head into gh-pr/125/base 2026-11-26 06:32:53 +00:00
Owner

@⁠smith-3 on GitHub · 2026-11-25 00:21 UTC · original
smith-3:codex/shader-regression → main · +59 −9 · 2 files · 2 commits · merged 2026-11-25 01:50 UTC

Summary

Extend #95 to accept integer immediates in v_add_nc_i32 and
v_sub_nc_i32, and low-half integer immediates in v_add_nc_i16 and
v_sub_nc_i16. The 16-bit regression covers writes to either destination
half and checks that the other half is preserved. Both regressions use
synthetic RDNA 2 instructions assembled by LLVM.

Checks

  • All checks in CONTRIBUTING.md passed locally.
  • DXC compiled three synthetic compute shaders. DXV validated all three.
  • On an RTX 4080 SUPER with Proton Experimental, all 24 results for
    32-bit operations and all 48 results for 16-bit operations matched
    the expected values. The untouched half was preserved in all 48
    16-bit results. All 1,152 GPU readback words matched.

AI-assisted contribution.

**@⁠smith-3** on GitHub · 2026-11-25 00:21 UTC · [original](https://github.com/brcly/TuxBox/pull/125) `smith-3:codex/shader-regression` → `main` · +59 −9 · 2 files · 2 commits · merged 2026-11-25 01:50 UTC ## Summary Extend #95 to accept integer immediates in `v_add_nc_i32` and `v_sub_nc_i32`, and low-half integer immediates in `v_add_nc_i16` and `v_sub_nc_i16`. The 16-bit regression covers writes to either destination half and checks that the other half is preserved. Both regressions use synthetic RDNA 2 instructions assembled by LLVM. ## Checks - All checks in CONTRIBUTING.md passed locally. - DXC compiled three synthetic compute shaders. DXV validated all three. - On an RTX 4080 SUPER with Proton Experimental, all 24 results for 32-bit operations and all 48 results for 16-bit operations matched the expected values. The untouched half was preserved in all 48 16-bit results. All 1,152 GPU readback words matched. AI-assisted contribution.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:32:51 +00:00
github manually merged commit 4b40c64e1f into gh-pr/125/base 2026-11-26 06:32:53 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.