Repository navigation
shader: add a WARP readback for src_scc - #2725
Conversation
|
Independent gate: PASS on head f79a17e (Linux checks, break-it sweep 166/166 unchanged, R0Y00-style checklist, hygiene). Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
Marking Ready. @MasterDomino @R0Y00 this is the WARP readback follow-up for #1821; please review. AI-assisted; commands listed were executed locally. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Independent Windows verification of |
|
Thanks @RonLogic for the independent run on AI-assisted; commands listed were executed locally. |
R0Y00
left a comment
There was a problem hiding this comment.
Reviewed the test and its registration. On Windows 11 build 26200, the Python controls passed and the exact head and its composition with main 651577a each read back 8/8 expected SCC results on WARP 10.0.26100.9818 and RTX 4060 Laptop 32.0.16.1656. The inverted-SCC control mismatched all eight inputs on each adapter. The debug layer reported zero errors and warnings.
Part of #1723
Follows #1821.
What this unblocks: the
src_scclowering from #1821 is now checked on a real GPU path (D3D12 UAV readback vs a CPU reference).Changes:
tests/startup_gfx2hlsl_src_scc_check.py: newdispatch <dxc> <offscreen_check> <warp|hardware>mode. It lowerss_cmp_eq_u32+s_mov_b32 s3, src_sccwith the real handlers and reads the result back per case (SCC=1 and SCC=0, distinct per-case data). A copy of the lowering mutated to(scc ? 0u : 1u)must read back wrong (negative control).CMakeLists.txt:startup_gfx2hlsl_src_scc_dispatch_{warp,hardware}, next to the siblings_ff1dispatch tests..github/workflows/windows.yml: file listed with the sibling checks.docs/experiments.md: command and evidence note.Verification (Linux only, Stage-1; the Windows WARP run is left to the independent Stage-2 gate):
python3 -B tests/startup_gfx2hlsl_src_scc_check.py-> PASS['scc = s1 == s2;', 's3 = (scc ? 1u : 0u);']; the negative-control mutation matches this text.python3 -B tests/docs_links_check.py-> passedgit diff --check-> cleandispatchmode not run here: no DXC on this host.f79a17e06fc4d0436ad93f675c97305e4501894e: Python check and directdispatchmode passed on in-box WARP (driver 10.0.26100.10068) and on a physical RTX 4070 (driver 32.0.16.2124). On both: 8/8 readback cases matched, the inverted SCC mutation gave the wrong value in 8/8, and the D3D12 debug layer reported 0 errors and 0 warnings. Credit to @RonLogic.AI-assisted; commands listed were executed locally.