startup: accept entry-prefix DPP broadcasts when a later loop exists #2649
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2657"
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 SimSalabimse on 2026-11-26T00:55:21Z.
Change
Refs #2618 (batch M200-01, ticket M200-01/003) and #2125 item A.
The pixel translator refused every DPP16
quad_perm:[k,k,k,k]broadcast once the stage contained any branch, including a later uniform loop that never touches EXEC. That matches the M200-01/003 shape (broadcast early, loop later).Stage.dpp_broadcastno longer gates onhas_branchesalone.blocks,exec_known,wqm_execafters_wqm exec, exec.loopkind.AI-assisted.
Verification
Commit under test: this PR head.
All passed on Linux. This agent could not run DXC / WARP / hardware draws.
Windows verification:
Expect: controls pass;
startup_gfx2hlsl_dpp_quad_broadcast_warpmatches all 256 pixels for integer, float and loop (wrong-lane / own-lane mutations fail the reference); hardware may pass or skip 77.Evidence and follow-up
Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T01:25:07Z.
Review: COMMENTED
Review of head
f84124ee(main merged in), comment only.Checked:
Stage.dpp_broadcastnow gates onpast_entry(set at gfx2hlsl.py:2731 fromblocksor a branch to offset 0) plusexec_knownandwqm_exec, instead ofhas_branches. This keeps the proof: the broadcast must sit in the entry prefix, with EXEC equal to thes_wqm exec, execmask. A later loop or forward branch cannot reach back to the prefix, so the whole quad is still active. Vertex stage stays refused.has_branchesusers) are unchanged and still conservative.Commands run (Linux, on the head):
python3 -B tests/startup_gfx2hlsl_dpp_quad_broadcast_check.py-> all okpython3 -B tests/docs_links_check.py,python3 -B tests/bidi_controls_check.py,python3 -B tests/startup_gfx2hlsl_handler_arity_check.py-> okgit diff --check origin/main...HEAD-> cleanpast_entrygate withFalsemakes the check FAIL ("broadcast after a branch target", "branch back to the broadcast entry block" refusals), so the new refusals guard the behavior.Scope note: this is fixture and code review only. The PR refers to the M200-01/003 shape but does not claim a verified startup advance; no executable result is claimed here. Win2025 WARP receipt follows in a separate comment.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T01:21:03Z.
I kept your vertex diagnostic fix in
f4d84e83and pushed3e12adf8on top. The old guard also accepted a loop whose branch targets offset zero, because the block list is empty when the translator first sees the broadcast. This uses the translator's existing entry-prefix proof and adds a control with an actual back edge to offset zero. The original vertex refusal and the new back-edge control pass. DXC draws of the integer, float and later-loop fixtures matched all 256 pixels on both WARP and RTX 4060 Laptop. Wrong-lane and self-lane controls still differ.