shader: add a WARP readback for src_scc #2725
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!2725
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2725/head"
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?
@tedin7 on GitHub · 2026-11-26 03:51 UTC · original
tedin7:test/src-scc-warp-readback→main· +121 −0 · 4 files · 3 commits · merged 2026-11-26 05:39 UTCPart 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.
@tedin7 on GitHub · 2026-11-26 04:17 UTC · original
Independent gate: PASS on head
f79a17e06f(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
f79a17e06fc4d0436ad93f675c97305e4501894e:--preset dev):cmake --build --preset dev -- -j 2):11.53sctest --preset dev -R '^startup_gfx2hlsl_src_scc' --parallel 2 --no-tests=error --output-on-failure): 6/6 passed (startup_gfx2hlsl_src_scc_dispatch_warp0.34s,startup_gfx2hlsl_src_scc_dispatch_hardware0.35s,startup_gfx2hlsl_src_scc0.14s,startup_gfx2hlsl_src_scc_join0.15s,startup_gfx2hlsl_src_scc_join_dispatch_warp0.26s,startup_gfx2hlsl_src_scc_join_dispatch_hardware0.27s)/O2(--preset release):cmake --build --preset release -- -j 2):5.02sctest --preset release -R '^startup_gfx2hlsl_src_scc' --parallel 2 --no-tests=error --output-on-failure): 6/6 passed (0.87s)Marking Ready. @MasterDomino @R0Y00 this is the WARP readback follow-up for #1821; please review.
AI-assisted; commands listed were executed locally.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-26 04:17 UTC · original · edited 2026-11-26 04:19 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
f79a17eℹ️ About Codex in GitHub
Your 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.
@RonLogic on GitHub · 2026-11-26 04:23 UTC · original
Independent Windows verification of
f79a17e06fc4d0436ad93f675c97305e4501894e: the Python check and directdispatchmode passed on in-box WARP (driver10.0.26100.10068) and on a physical RTX 4070 (32.0.16.2124). On both, all eight readback cases matched, the inverted SCC mutation produced the wrong value in all eight, and the D3D12 debug layer reported zero errors and warnings. I used the Releaseoffscreen_checkfrom #2728 after verifying the runner's native sources were identical between the two heads.git diff --checkalso passed.@tedin7 on GitHub · 2026-11-26 05:11 UTC · original
Thanks @RonLogic for the independent run on
f79a17e06: 8/8 readback on WARP and on the RTX 4070, mutation caught 8/8, 0 debug layer errors. Adding this to the Verification block.AI-assisted; commands listed were executed locally.
@R0Y00 on GitHub · 2026-11-26 05:39 UTC · original · approved these changes
Reviewed the test and its registration. On Windows 11 build 26200, the Python controls passed and the exact head and its composition with main
651577a0each 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.