Repository navigation
startup: lower constant-lane writelane/readlane spills in translate_m… - #2637
Conversation
95c66ba to
e131743
Compare
tedin7
left a comment
There was a problem hiding this comment.
Review of head e131743 against current main (0 behind). Comment only.
Result: no blocking findings.
- Change is confined to the slot 57 mesh path: constant-lane
v_writelane_b32/v_readlane_b32, wave64 lanes 0..63,exec_lo/exec_hisaved words. The pixel path keeps lanes 0..31. Ordinary vector use, unwritten slot, register lane and lane 64 stay refused by name. - No other open or merged PR covers this slice (searched mesh57 / lane spill / writelane).
- The new test has a real WARP draw (
startup_mesh57_lane_spill_warp, and_hardware) next to the host check, registered in CMake, windows.yml and AGENTS.md. - This is a source-built fixture only. It makes no claim about game startup, so none is verified here.
Commands run (Linux, clean worktree on the PR head):
python3 -B tests/startup_mesh57_lane_spill_check.py,startup_mesh57_skeleton_check.py,startup_mesh57_loop_refusal_check.py: okpython3 tests/docs_links_check.py,python3 tests/bidi_controls_check.py,git diff --check origin/main...HEAD: ok- Mutation: mesh lane limit 64 -> 32: new test fails (2 cases). Mutation:
exec_hilowers to 1 instead of 0: new test fails. Both reverted.
Windows WARP dev + release will be run and posted next.
AI-assisted; commands listed were executed locally.
|
Win2025 WARP result for head e131743: FAIL, caused by the new test itself (not by the translator). Commands (Win2025, default slot pool, dev + release attempted):
Result: First error (dxc, in the mutant step at The real draw itself is not the failing step; the failure is the negative-control compile. The mutation Linux host checks of this test pass, which is why only the WARP phase shows it. AI-assisted; commands listed were executed locally. |
R0Y00
left a comment
There was a problem hiding this comment.
There is a production correctness problem in addition to the mutant DXC failure already reported. The fixture’s spill follows s_mov_b64 exec, -1 (last word before the spill befe04c1). On wave64, the v_writelane_b32 ... exec_hi, 63 therefore stores 0xffffffff. This candidate emits sp30_63 = 0u. The existing draw never uses the reload in s41. Changing the fixture’s final v_mov_b32 v7, s40 to v_mov_b32 v7, s41 still translates and routes the wrong value to the export. Please keep the ordinary scalar lane 0–63 slice and refuse raw EXEC operands, or prove both EXEC words for each accepted spill and test a consumed reload across the two halves. Please also fix the existing colour mutant so its shader compiles and fails by pixel comparison.
|
Review of head 1. An emits 2. A spill of a register the group-index exchange uses survives the exchange. the guest's exchange writes Both look closed by the remedy in the existing review (refuse raw EXEC operands; the AI-assisted. |
|
Pushed
Host checks listed in the updated body all pass here. Windows WARP/hardware re-run still needed on this head. AI-assisted. |
47516ca to
e529f97
Compare
…esh57 Accept the R0Y00#2127 constant-lane v_writelane_b32 / v_readlane_b32 idiom on the slot 57 mesh request path (Part of R0Y00#2413 T7). Spill-only VGPRs become scalar slots; ordinary vector use, unwritten lanes and non-constant lanes stay refused. Source-built host checks and WARP/hardware draw fixtures cover the happy path and a mutant that zeroes the spilled colour word. AI-assisted. Co-authored-by: SimSalabimse <SimSalabimse@users.noreply.github.com>
Refuse raw EXEC writelane sources under the one-lane model, scan pre-skeleton instructions so exchange VGPRs stay spill-unsafe, park an ordinary scalar in lane 63, and mutate only the colour spill assignment so the multi-decl keeps sp30_63 for DXC. Refs R0Y00#2413 Co-authored-by: SimSalabimse <SimSalabimse@users.noreply.github.com>
e529f97 to
d4ba1d1
Compare
R0Y00#2405 added s_mul_hi_i32 (and an early arity refuse for both mul_hi forms). The negative control still expected only one non-IndexError survivor. Co-authored-by: SimSalabimse <SimSalabimse@users.noreply.github.com>
R0Y00
left a comment
There was a problem hiding this comment.
Re-reviewed this head after integrating the constant-trip loop and keeping the existing pixel branch and join proof. The mesh path refuses raw EXEC and reuse of exchange VGPRs. WARP and RTX 4060 Laptop both passed the spill and loop draws, and the zeroed-spill shader compiled and produced 259 mismatched pixels on both. The pixel spill and branch controls also passed.
Change
Part of #2413 item T7: accept the constant-lane
v_writelane_b32/v_readlane_b32spill idiom intranslate_mesh57, mirroring #2127 /mesh_entry_aotLANE_SPILL_OPS(and the pixel spill helpers ingfx2hlsl).exec_hiword..m57. No R1, no Integrate mesh translation, D3D12 rendering and memory handling #2603 / GPU: verify GPU-written indirect Dispatch with a translated slot 67 pipeline #2492 / startup: dispatch translated compute programs with raw table buffers #2470, no further T6 loop shapes.Claim: #2413 (comment) (main
66026a39).AI-assisted.
Verification
Host (Linux pe-env / system Python):
All reported
ok/PASSon this agent.Windows verification:
Expected: host
startup_mesh57_lane_spillpass;startup_mesh57_lane_spill_warppass;startup_mesh57_lane_spill_hardwarepass or skip 77 without a mesh-capable GPU. This agent could not run DXC / WARP / hardware draws.Evidence and follow-up
tests/startup_mesh57_skeleton.splus the spill/reload sequence; llvm-mc binary mode is wired in CI.v_movinto the spill VGPR, missing colour writelane; draw mutant zeroessp30_3in HLSL and must change pixels.mesh_entry_aot) are unchanged.Checklist