Skip to content

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

Merged
brcly merged 22 commits into
brcly:mainfrom
smith-3:codex/shader-corrections-handoff
Nov 25, 2026
Merged

brcly merged 22 commits into
brcly:mainfrom
smith-3:codex/shader-corrections-handoff

Conversation

@smith-3

@smith-3 smith-3 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

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.

Copilot AI balanced review requested due to automatic review settings November 25, 2026 10:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@brcly
brcly merged commit 1d4a55c into brcly:main Nov 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants