xshader: fix shader translation across integer, FP16, wave and ray paths #160

Manually merged
github merged 22 commits from gh-pr/160/head into gh-pr/160/base 2026-11-26 06:35:17 +00:00
Owner

@⁠smith-3 on GitHub · 2026-11-25 10:14 UTC · original
smith-3:codex/shader-corrections-handoff → main · +3559 −416 · 29 files · 22 commits · merged 2026-11-25 11:08 UTC

Refs #16. This handoff collects the pending shader fixes in topic commits. All test inputs used for this contribution are synthetic.

  • Integer and floating-point translation: 24-bit multiply and multiply-add saturation, carry and packing, FP16 rounding and exception modes, float-to-integer conversion, and SDWA partial writes.
  • Lane operations: DPP exchanges, inactive sources and destination masks, partial-wave reads, and saved EXEC masks used by lane elections.
  • Resource and ray translation: descriptor stride and store selection, embedded mesh root overrides, ray continuation ALU and material constant folding.

Local validation. All five checks in CONTRIBUTING.md passed. The Python suite also passed with the built xshader and DXC enabled (279 tests). On an RTX 4080 SUPER the synthetic 24-bit compute corpus matched the CPU and native Radeon results on all 2,304 outputs (36 shaders). The ray corpus matched on all 12,451,840 output words (190 cases). A separate 45-shader DPP suite checked row and bank write masks, inactive sources, and aliased destinations; all 2,880 RTX outputs matched the CPU.

Review notes. The DPP and floating-point commits touch common emitter code. The final commit reconciles inline half constants and masked pixel moves. The mesh root override is confined to embedded root signatures that differ from the pipeline root. The separate scalar-guard change overlaps #159, so its implementation and regression test are available as a reference commit for that review.

AI-assisted contribution from smith-3. Gameplay and FPS were outside these tests.

**@⁠smith-3** on GitHub · 2026-11-25 10:14 UTC · [original](https://github.com/brcly/TuxBox/pull/160) `smith-3:codex/shader-corrections-handoff` → `main` · +3559 −416 · 29 files · 22 commits · merged 2026-11-25 11:08 UTC Refs #16. This handoff collects the pending shader fixes in topic commits. All test inputs used for this contribution are synthetic. - Integer and floating-point translation: 24-bit multiply and multiply-add saturation, carry and packing, FP16 rounding and exception modes, float-to-integer conversion, and SDWA partial writes. - Lane operations: DPP exchanges, inactive sources and destination masks, partial-wave reads, and saved EXEC masks used by lane elections. - Resource and ray translation: descriptor stride and store selection, embedded mesh root overrides, ray continuation ALU and material constant folding. **Local validation.** All five checks in `CONTRIBUTING.md` passed. The Python suite also passed with the built `xshader` and DXC enabled (279 tests). On an RTX 4080 SUPER the synthetic 24-bit compute corpus matched the CPU and native Radeon results on all 2,304 outputs (36 shaders). The ray corpus matched on all 12,451,840 output words (190 cases). A separate 45-shader DPP suite checked row and bank write masks, inactive sources, and aliased destinations; all 2,880 RTX outputs matched the CPU. **Review notes.** The DPP and floating-point commits touch common emitter code. The final commit reconciles inline half constants and masked pixel moves. The mesh root override is confined to embedded root signatures that differ from the pipeline root. The separate scalar-guard change overlaps #159, so its implementation and regression test are available [as a reference commit](https://github.com/smith-3/TuxBox/commit/5705b99) for that review. AI-assisted contribution from smith-3. Gameplay and FPS were outside these tests.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:35:15 +00:00
github manually merged commit 16effc088c into gh-pr/160/base 2026-11-26 06:35:17 +00:00
Author
Owner

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