Repository navigation
tests: reuse and overlap binary16 draw shader compiles - #2790
Merged
tedin7 merged 1 commit intoNov 26, 2026
Merged
Conversation
Collaborator
|
Win2025 WARP receipt for head 1e632e1. Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
Review of the exact head (comment only, no blocking findings):
AI-assisted; commands listed were executed locally. |
tedin7
reviewed
Nov 26, 2026
tedin7
left a comment
Collaborator
There was a problem hiding this comment.
Review of head 1e632e1 (comment only). No blocking findings.
- Change is confined to
tests/startup_gfx2hlsl_f16_alu_draw_check.py. Compiles are deduplicated by (profile, HLSL source) and run at most three at a time. Results are consumed in draw order, so draws and expected words are unchanged and an earlier failure still wins over a later one. - The final SDWA wrong-word control reuses the shader pair of the first SDWA case (same config, same first four lanes) and is still expected to be rejected.
- No sibling tables or callsites are affected. No other open or merged PR touches this fixture.
- Win2025 WARP dev and release:
startup_gfx2hlsl_f16_alu_draw_controlsandstartup_gfx2hlsl_f16_alu_draw_warppass 2/2 on both (receipt in the thread). CI is green.
Commands run: python3 -m py_compile, git diff --check origin/main...HEAD, the controls mode of the fixture, and the Win2025 ctest runs above.
AI-assisted; commands listed were executed locally.
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
Compile each distinct (profile, generated HLSL) once per compiler in the binary16 ALU draw fixture. Submit the pixel and vertex shaders for the current case together, with at most three compiler processes. Consume their results and issue the draws in the existing order. The final SDWA wrong-word control draws the shader pair from its corresponding positive case.
Refs #448. This addresses the remaining FXC/DXC cost mentioned in #2766. That PR changes the shared renderer. This change is confined to
startup_gfx2hlsl_f16_alu_draw_check.pyand can land independently.Verification
Compared
4bbe52eeand1e632e13on Windows 11 build 26100.9711, DXC 1.9.2609.5 (SM 6.0), Windows SDK FXC (SM 5.1), D3D12 debug layer unavailable. The same MSVC-builtoffscreen_checkwas used on both revisions. Run the fixture on each checkout:Run the hardware command with
XBOX2WINDOWS_ADAPTER=Inteland thenNVIDIA. For each draw I recorded the profiles, SHA-256 of both HLSL sources and both compiled blobs, the expected pixel words, exit code, stdout and stderr.All three runs went from 338 compiler launches to 252 (86 fewer, 25.4%). Four successive full WARP runs with fresh temporary shader directories took 115.2 s, 69.7 s, 62.6 s, 119.6 s, in parent / branch / branch / parent order. Host load affects these times. The launch counts and draw comparisons were identical across adapters.
I also injected compiler failures at the pixel, first-vertex and second-vertex positions of a two-chunk case. Errors surfaced in draw order even when a later worker failed first. A first draw returning skip 77 still took precedence over the later shader's failure.
AI-assisted contribution using Codex.