shader: test back-edges in both mesh descriptor join branches #2283
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2291"
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 RavenCurseBurg on 2026-11-25T10:24:23Z.
Follow-up to the review of #2285. It identified two uses of the signed gfx1013 branch displacement in descriptor joins that could individually be removed without a test failing.
The existing per-material fixture loads a selector into SCC at run time. The first control makes the conditional split branch to itself in LLVM 15's unsigned spelling. The second does the same at the branch that ends the fall-through arm. Its unreachable padding puts an instruction exactly at the address a mistaken unsigned read would choose. Without that instruction, the wrong address and the backward branch produce the same refusal, masking the regression.
Verification
0008525cwith these tests, temporarily restoring the old unsigned read in the dynamic SCC split alone failed withKeyError: 262184. Restoring it only in the arm-ending branch producedUnsupported instruction inside a descriptor join armwhere the test requiresExpected a forward mesh branch. Restoring the signed read made both tests pass.python -B tools/run_checks_parallel.py tests/mesh_join_descriptor_check.py tests/mesh_dynamic_aot_check.py tests/mesh_dynamic_geometry_check.py tests/mesh_scc_any_lane_check.py tests/mesh_lane_spill_check.py tests/docs_links_check.py tests/bidi_controls_check.pypassed 7/7.git diff --checkpassed.python -B tests/mesh_join_descriptor_check.py <dxc> <offscreen_check> warpand the same command withhardwarecompleted. Each adapter ran eight draws of the existing positive fixtures, with 1,024 pixels compared per draw and zero mismatches. WARP 10.0.26100.9711 and desktop RTX 4060 driver 32.0.15.9579 on Windows build 26100.9711. The local debug layer was unavailable. The two new branch controls execute in the host translator before drawing.The changes are confined to the registered mesh join test. AI-assisted with Codex.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T10:29:41Z.
Review: COMMENTED
Review of head
79ad0720af(tests only,tests/mesh_join_descriptor_check.py, +14).Findings: 0 P1, 0 P2.
tools/mesh_entry_aot.py(join_arms): thetarget <= pccheck and thejumps[join_offset] <= targetcheck on the arm latch.Commands executed locally:
python3 tests/mesh_join_descriptor_check.py-> okpython3 tests/docs_links_check.py-> 18 files, 436 links okpython3 tests/bidi_controls_check.py-> no bidi controlsgit diff --check origin/main...HEAD-> cleantarget <= pcreplaced byFalseinjoin_arms-> new test FAILS (Wrong refusal ... Undefined branch predicate). Reverted.or jumps[join_offset] <= target-> new test FAILS (Wrong refusal ... A scalar register is defined in only one join arm). Reverted.Build and test on Windows= pass.AI-assisted; commands listed were executed locally.