xshader: accept an inline zero accumulator for v_sad_u8 #138

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

@⁠smith-3 on GitHub · 2026-11-25 02:39 UTC · original
smith-3:codex/sad-u8-zero → main · +20 −2 · 1 files · 1 commits · merged 2026-11-25 07:24 UTC

Summary

v_sad_u8 v4, v1, v2, 0 previously failed translation even though putting zero in a register produced a valid compute shader. This change accepts inline zero in the accumulator operand. The regression test covers that encoding and checks the existing limits for other immediates, operand positions, and the high-half variant.

Related to #16.

Checks

  • All 64 outputs from the synthetic compute shader on a GeForce RTX 4080 SUPER matched the CPU reference. The control shader with zero in a register also matched on all 64 lanes.
  • All 507 local tests passed across Python, xshader, DXBC, and XG layout. The Windows D3D12 typecheck passed.
**@⁠smith-3** on GitHub · 2026-11-25 02:39 UTC · [original](https://github.com/brcly/TuxBox/pull/138) `smith-3:codex/sad-u8-zero` → `main` · +20 −2 · 1 files · 1 commits · merged 2026-11-25 07:24 UTC ## Summary `v_sad_u8 v4, v1, v2, 0` previously failed translation even though putting zero in a register produced a valid compute shader. This change accepts inline zero in the accumulator operand. The regression test covers that encoding and checks the existing limits for other immediates, operand positions, and the high-half variant. Related to #16. ## Checks - All 64 outputs from the synthetic compute shader on a GeForce RTX 4080 SUPER matched the CPU reference. The control shader with zero in a register also matched on all 64 lanes. - All 507 local tests passed across Python, xshader, DXBC, and XG layout. The Windows D3D12 typecheck passed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:33:50 +00:00
github manually merged commit bf30dd81cf into gh-pr/138/base 2026-11-26 06:33:52 +00:00
Author
Owner

@⁠copilot-pull-request-reviewer[bot] on GitHub · 2026-11-25 02:40 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:40 UTC · [original](https://github.com/brcly/TuxBox/pull/138#pullrequestreview-6050988060) · **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.