shader: lower packed mesh rows and whole-wave VCC branches (Part of #3703) #3843
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!3843
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3841"
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?
@timbot103 on GitHub · 2026-12-02 08:42 UTC · original
timbot103:shader/mesh-packed-rows-vcc-branch→main· +336 −42 · 4 files · 1 commits · merged 2026-12-02 10:11 UTCPart of #3705.
Summary
Addresses two #3705 mesh refusal buckets (including
unproven pair of packed mesh signature rows, the top remaining wall at 264 programs in the 2 Dec stacked mesh census, plusVCC branch without a whole-wave mask, 35 programs):PARAMexport widening from 2 rows to 1–4 unambiguously reflectedmin16floatrows (s.component == 6), with each row starting at a fresh DWORD and element-relative DXIL columns for non-zero start masks (e.g.,.zw). Mixed-type rows, missing channels, overflow, and duplicate targets stay refused.s_mov_b64 vcc, exec,s_xor_b64 vcc, ..., full-EXEC lane-linearv_cmp_gt_u32count tests (capped > wave_base), wave32VCC_LO-onlyVCCZtests, and invalidates both VCC representations on partials_mov_b32 vcc_lo/vcc_hiwrites or arm VCC changes.Verification
ctest --preset pr --no-tests=error --output-on-failure -R '^native_mesh_packed_rows_vcc_ir$': passed (66 positive DXIL cases + 21 refusal controls).dev) and Release (release): 3/3 passed (native_mesh_packed_rows_vcc_ir|native_direct_mesh|native_direct_container), zero skips, zero new C++20/W4warnings on edited lines.tests/bidi_controls_check.py,tests/docs_links_check.py, andgit diff --check origin/main..HEADpassed.#3514's 5-PR ready cap.s_bitset1_b32, then stop at a scalar loop #3705@lukaslw-lab on GitHub · 2026-12-02 08:47 UTC · original · approved these changes
Reviewed
52744450(draft) by reading the diff; not built or run.Verdict: approve. The new VCC forms keep each lane's bit, the words and the nonempty flag consistent, and the packed-row widening stays unambiguous. No MUST.
m86census onf365f125. On our local stack, the packed-rows wall is 264 programs, so it is the largest one this targets. The VCC changes also mark VCC unknown wherever an arm or partial write changed it, which can refuse programs that translate today.position_scopecondition #3834 relaxes for staged exports).gfx1013_direct_mesh.inl:1908): under full EXEC,v_cmp_gt_u32 limit, tidis nonempty for a wave exactly when its first thread is belowmin(limit, threads). It is recorded only for a uniform limit.s_xor_b64 vccands_mov_b64 vcc, exec: the words and the lane bit come from the same sources, and constant operands give0/-1words with0/1bits. Uniform SGPR words are split per lane bywave_lane.VCC_LOonly (:2241), as the ISA specifies, while SCC of the B64 operation still uses both words.s_mov_b32tovcc_lo/vcc_hi(:2389) and VCC changed in an arm (vcc_changed,:849) clear both representations, so later reads fail closed.:1369): onlymin16floatrows, one per signature row, with no output record of their own. Tail rows are claimed only by a sole packed PARAM, and every channel must be exported.Tests:
native_mesh_packed_rows_vcc_ir(66 cases, 21 refusals) is in theprfilter.s_bitset1_b32, then stop at a scalar loop #3705@lukaslw-lab on GitHub · 2026-12-02 09:23 UTC · original
Census follow-up for the SHOULD in my review:
f365f125+ this PR alone, same capture and method as #3705 / #3816 (6,685 distinct mesh programs, 6,436 pixel stages). Counts only.f365f125f365f125+ #384394 programs move off their first refusal:
unproven pair of packed mesh signature rows59,mesh VCC branch lacks a proven guest whole-wave mask35. No validation failures.@timbot103 on GitHub · 2026-12-02 09:34 UTC · original
Promoted to Ready for review now that #3808 and #3828 merged (keeping at 5/5 non-draft PRs per #3516). Re-checked
CLEAN / MERGEABLEagainstorigin/main(45c809ab) with all CI checks green.@R0Y00 on GitHub · 2026-12-02 10:08 UTC · original · reviewed
On exact head
52744450, a local Windows Debug build passed bothnative_mesh_packed_rows_vcc_irandnative_direct_mesh. This branch's baseline predates the current main failure in the unrelated integer/float row fixture. I am testing its integration with the isolated fixture repair before landing.@R0Y00 on GitHub · 2026-12-02 10:10 UTC · original · approved these changes
Exact-head Windows Debug regression passed
native_mesh_packed_rows_vcc_irandnative_direct_mesh(2/2). The local trial merge with current main, #3830, #3833, and the separate fixture correction from #3853 also passed both Mesh checks and six pixel controls/readbacks (8/8 total).s_bitset1_b32, then stop at a scalar loop #3705