xshader: accept inline integers in compute v_mul_lo_u16 #137

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

@⁠smith-3 on GitHub · 2026-11-25 02:27 UTC · original
smith-3:codex/mul-lo-u16-inline → main · +23 −1 · 1 files · 1 commits · merged 2026-11-25 07:24 UTC

Summary

Allow an inline integer in either source of compute v_mul_lo_u16 with default half selection. Previously, v_mul_lo_u16 v4, v0, 7 was rejected even though the equivalent register form compiled. The regression test covers both operand positions and checks that the upper 16 destination bits survive.

Related to #16.

Checks

  • Two synthetic gfx1030 compute shaders on a GeForce RTX 4080 SUPER used multipliers 7 and -1. All 128 GPU readbacks matched the CPU reference across the full 32-bit word, including the 0xCAFE and 0xBEEF upper halves.
  • Local checks passed: 259 Python tests, 181 shader compiler tests, 53 DXBC tests, 14 XG layout tests, and the Windows D3D12 typecheck.
**@⁠smith-3** on GitHub · 2026-11-25 02:27 UTC · [original](https://github.com/brcly/TuxBox/pull/137) `smith-3:codex/mul-lo-u16-inline` → `main` · +23 −1 · 1 files · 1 commits · merged 2026-11-25 07:24 UTC ## Summary Allow an inline integer in either source of compute `v_mul_lo_u16` with default half selection. Previously, `v_mul_lo_u16 v4, v0, 7` was rejected even though the equivalent register form compiled. The regression test covers both operand positions and checks that the upper 16 destination bits survive. Related to #16. ## Checks - Two synthetic gfx1030 compute shaders on a GeForce RTX 4080 SUPER used multipliers `7` and `-1`. All 128 GPU readbacks matched the CPU reference across the full 32-bit word, including the `0xCAFE` and `0xBEEF` upper halves. - Local checks passed: 259 Python tests, 181 shader compiler tests, 53 DXBC tests, 14 XG layout tests, and the Windows D3D12 typecheck.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:33:46 +00:00
github manually merged commit 987f845de1 into gh-pr/137/base 2026-11-26 06:33:47 +00:00
Author
Owner

@⁠copilot-pull-request-reviewer[bot] on GitHub · 2026-11-25 02:27 UTC · original · reviewed

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

**@⁠copilot-pull-request-reviewer[bot]** on GitHub · 2026-11-25 02:27 UTC · [original](https://github.com/brcly/TuxBox/pull/137#pullrequestreview-6050828890) · **reviewed** Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
This discussion has been locked. Commenting is limited to contributors.
No description provided.