xshader: fix wave reductions, FP32 rounding and bounded table indexing #166
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/brcly--TuxBox!166
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/166/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@smith-3 on GitHub · 2026-11-25 12:00 UTC · original
smith-3:codex/shader-integration-20261125→main· +636 −77 · 13 files · 15 commits · merged 2026-11-25 14:21 UTCSummary
Refs #16. This PR handles three shader translation cases.
The final commit fixes a case found when testing these changes together. A 64-lane reduction followed by table-selected exponent scaling compiled to DXIL but requested a 64-lane hardware wave. On the RTX 4080 SUPER, pipeline creation failed. The translated shader now executes using the verified group-shared path.
Verified on Lanes
RTX 4080 SUPER (10de:2702), NVIDIA 570.211.01, Linux, Proton Experimental. Tested PR head
54db032merged locally with upstreama79aedb(test treeaee8591).python tuxbox.py checkpassed all code checks, builds, and 10 Lanes GPU checks. The initial run was interrupted by a Wine assertion insteam.exewhile loading the native Steam client. For the passing run,umu-runusedPROTON_VERB=runinprefixand app-local D3D12, D3D12Core, and DXGI DLLs from the same Proton installation.Lanes covers runtime and cache behavior. The synthetic shader corpus above exercises the exact translator cases changed by this PR.
Download the Lanes GPU receipt
Checks
A clean build of
54db032on Linux passed all five contribution checks locally. On an RTX 4080 SUPER, 140 synthetic shaders ran in 392 dispatches. All 24,416 result words matched the CPU reference, and the runner checked all 150,528 words in the readback buffers, including inputs and guards.The archive includes the shader inputs, expected outputs and replay instructions. Download the replay package · GPU receipt
AI-assisted contribution from smith-3. All test inputs are synthetic.
@copilot-pull-request-reviewer[bot] on GitHub · 2026-11-25 12:01 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.