shader: lower ds_nop in pixel_aot #847
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/853"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-23T13:23:37Z.
Change
Lower operandless
ds_nopin the straight-line pixel profile. Keep the program-end, color-export and immediate DS swizzle wait guards ahead of the new handling. Reuse the gfx1030 wave64 swizzle fixture to exercise the instruction at entry and under whole-quad EXEC.Verification
Tested
3d84719based on34d03c7. With LLVM 15.0.7, the source-built round trip verified the leading eight-byte encoding and decoded bothds_nopinstructions. The Python controls matched the HLSL generated withs_nop 0at the same positions and rejected operands, GDS, an offset, post-export and post-end placements, and ads_nopinserted before a required wait. Before the change, the new positive control raisedUnsupported instruction 0: ds_nop.On Windows 11 25H2 build 26200.9974 and DXC 1.8.2502.11, both program variants matched all 256 UINT channel words against the CPU oracle on WARP (10.0.26100.9818) and Radeon RX 7900 XTX (32.0.32029.2010). The D3D12 debug layer reported zero errors and warnings. Both backends caught the existing blue-channel mutation at (0, 0), with
0x3e400000expected and0x3d800000observed. CTest passed 3/3 with zero skips. The targeted coverage report recorded 2/123 gfx1030 DS forms, includingds_nop.The LLVM-enabled disassembler suite passed 72/72. The tests use source-built fixtures and measure desktop translation.
AI-assisted (Codex and DeepSeek Harness).
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T13:34:25Z.
I refreshed the branch in
b99e8b5after #651 changed the shared LLVM round-trip assertions. The test preserves both the branch offsets and the DS NOP encoding/count checks. On Windows 26200.9974, WARP 10.0.26100.9818 and RTX 4060 Laptop driver 32.0.16.1656 each matched both 256-word variants and caught the blue-channel mutation. The debug layer reported zero errors and warnings. LLVM 15 and form coverage passed. GitHub CI is running.