Skip to content

xshader: lower converged pixel quad swaps - #206

Merged
brcly merged 1 commit into
brcly:mainfrom
nztom:fix/xshader-straight-pixel-quad-swaps
Nov 26, 2026
Merged

brcly merged 1 commit into
brcly:mainfrom
nztom:fix/xshader-straight-pixel-quad-swaps

Conversation

@nztom

@nztom nztom commented Nov 26, 2026

Copy link
Copy Markdown

Summary

Translate converged DPP16 X and Y quad swaps in nonheap pixel shaders. These moves currently trigger the compute Wave32 requirement and fail translation.

Emit HLSL quad reads for FI=1, full-mask axis moves when the entry whole-quad-mode instruction and control flow prove that all four lanes reach the exchange. Preserve separate wave-width requirements and refuse the guarded case.

Validation

  • Three independently assembled shaders refuse on base revision cb8c38b. With the patch, all three translate and pass DXC 1.9.2609.5 and DXV. A guarded swap still refuses.
  • The dedicated translator GPU check feeds raw DPP16 instructions through the emitter. Copy and in-place swaps matched the CPU oracle at all 1,024 pixels across four full-target and scissored draws. The packaged Lanes shaders do not exercise this raw instruction pattern.
  • python tuxbox.py check passed on CachyOS with an RTX 4080 SUPER, NVIDIA driver 620.73.04, and Proton Experimental 11.0-20261112. All code checks, 67 Lanes checks, 17 D3D12 controls, and 29 translator GPU checks passed.

Prepared by a mostly unsupervised AI agent.

Use direct X and Y quad reads for proven whole-quad pixel prefixes. Keep independent wave width requirements and refuse exchanges with unverified control flow.
@brcly
brcly merged commit c2d7bbc into brcly:main Nov 26, 2026
2 checks passed
@nztom
nztom deleted the fix/xshader-straight-pixel-quad-swaps branch November 26, 2026 02:28
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.

2 participants