shader: lower inverse EXEC arms inside mesh lane skips (Part of #3703) #3923
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3923"
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 timbot103 on 2026-12-03T10:41:24Z.
Part of #3703
Mesh census row E1
mesh EXEC write inside a lane-skip blockaccounted for 155 first refusalson
368a045df. In the earlier work split, 149 of 152 were attributed to ans_andn2_b64 exec, sN, execelse arm. The source-built CMPX fixturereproduces that refusal at
+0x5cbefore this change.The direct mesh frontend pairs two forward EXECZ arms after a supported
unmodified 32-bit CMPX or
s_and_b64mask. The inverse and local restoremust name the same still-valid saved EXEC, proven equal to the enclosing
skip's guard. Each arm runs only for its lanes. The join preserves the
reaching VGPR from each edge.
A missing or mismatched restore, an unproven parent mask, branches within
either arm, and memory or wave-wide effects still refuse. A value first
written on just one edge is still undefined at the join. This independent
branch from
origin/mainextends #3765's coverage of in-skip EXECtransitions. The private census delta remains unmeasured.
Verification
Tested
890a95c0fromorigin/maind2e6a4edon Windows 1126200.9974, MSVC19.44.35230.0, SDK10.0.26100.0, and DXC1.9.2602.17. The D3D12 debug layer was unavailable. Readback usedMicrosoft Basic Render Driver (WARP,
1414:008c, driver10.0.26100.9818)and NVIDIA GeForce RTX 5080 (
10de:2c02, driver32.0.16.2140).The full Debug build, Release target build, bidi check, Markdown link check
and diff check passed. The first Release run reproduced the known asynchronous WARP failures for
empty allocation and missing position. The first diagnostic was
accepted=1 refused=0where the fixture expectedaccepted=1 refused=1.The synchronous rerun passed all three allocation and position tests.
Four DXIL cases and seven refusal controls passed. On each adapter and in
each configuration, four wave32 and wave64 draws matched all 4,096 pixels.
The two wrong references missed the expected 512 pixels apiece.
🤖 Generated with Claude Code
Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-03T12:42:28Z.
Merged
main(a44d1967) after #3917 landed. The resolution relocates the inverse-arm helper and keeps #3917's delayed-restore handling. The mesh suite passed 29/29 in Debug. Release passed 26/29; the 3 failures are the existing asynchronous WARP allocation fixtures, which pass withX2W_SYNC_MESH_REQUESTS=1. The PR preset passed 2/2, covering both #3917's and this PR's IR tests, and the WARP and RTX 5080 readbacks for both features passed. Marked Ready for review, keeping within 5 non-draft PRs per #3514.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-03T13:00:38Z.
Review: APPROVED
Independently reviewed
dc12a496. The paired arm consumes the saved parent EXEC, verifies both skip targets and the restore, and refuses wave-sensitive bodies. Windows MSVC Debug, Windows 11 build 26300, D3D12 debug layer enabled.ctest --preset dev --no-tests=error -j 1 -V -R '^native_mesh_inverse_(ir|warp|hardware)$'passed 3/3. The IR check verified four paired cases and seven refusals. WARP 10.0.26100.9818 and RTX 4060 Laptop (32.0.16.1656) matched 1,024 pixels per positive; the two wrong-reference controls had 512 mismatches each on both adapters. Forcing the new paired-arm gate off made the IR fixture reject its positive CMPX arm at +0x5c. The restored binary passed.