Repository navigation
shader: lower ds_nop in pixel_aot - #853
Merged
Merged
Conversation
Owner
|
I refreshed the branch in b99e8b5 after #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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).