Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3806"
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-02T00:55:00Z.
Summary
Lowers three small unclaimed C++ mesh frontend refusals from @Kawiu's slot 57 census on
main(158ef794), independent of #3793, #3797, and @mumba17's open stack (Part of #2413, #3416):v_fmamk_f32,v_fmaak_f32): admitsv_fmamk_f32alongsidev_fmaak_f32through the shared DXILFMadlowering, explicitly refusing any non-VOP2 (wide) encoding and keeping both register operands (src[0],src[1]) checked for uniformity and partial-register safety.s_and_saveexec_b64without an initialEXECZskip: matches straight-line if-only and if/elseSAVEEXECregions (standalone from fullEXECor inside an open lane skip) and lowers them through the existing lane-merge diamond machinery. Preserves the existing standalone path whens_cbranch_execzfollows (including scheduled waits) and keeps missing restores, saved-mask clobbers, exports/barriers, EXEC mutations, escaping branches, and non-vector else arms strictly refused.exp pos1(target 13)CCDIST0clip/cull masks: generalizes reflectedPOS1beyond the full 4-channel clip mask to any sparse clip-only, cull-only, or disjoint mixed clip+cull mask wherechannels == (clip | cull),PA_CL_VS_OUT_CNTLhas onlyCCDIST0(1 << 22) and0x0f0fbits set, and the float output signature matches each enabled distance channel 1-to-1. Raw slot 57 (no clip/cull layout contract), misc outputs (PSIZE,SV_RenderTargetArrayIndex,SV_ViewportArrayIndex), overlapping clip/cull bits, and signature mismatches stay refused.Verification
Source-built fixtures only (
tests/native_direct_mesh_check.py,tests/native_direct_container_check.py), validated with Windows SDK10.0.26100.0DXC on Windows 11 (26200.9974), MSVC19.44, Ninja:dev):ctest --preset dev --no-tests=error -R 'native_direct_mesh|native_direct_container' -V— 2/2 passed (native_direct_container16.37 s,native_direct_mesh13.65 s, 0 failed, 0 skipped)release):ctest --preset release --no-tests=error -R 'native_direct_mesh|native_direct_container' -V— 2/2 passed (native_direct_container15.34 s,native_direct_mesh12.00 s, 0 failed, 0 skipped)git diff --check origin/main..HEAD: clean; zero new MSVC/W4warnings insrc/gfx1013_direct_mesh.inl.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T01:57:10Z.
Windows and Linux CI passed on
2a590e71. GitHub reports a merge conflict with current main. Please rebase the mesh frontend and fixtures while preserving the merged staged-index mask (#3764) and SAVEEXEC scalar write-width fix (#3785), then rerunnative_direct_meshandnative_direct_container.Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T02:47:08Z.
@R0Y00 Rebased onto
origin/main(b7d61632->50d1ab5b), preserving both the#3764staged-index mask assertions (and i32 ..., 511/ no1023) and#3785's 32-bit SALU single-SGPR write tracking invalidate_saveexec, under the C++20 //W4preset from#3794.Re-verified on Windows 11 (
26200.9974), MSVC19.44, Ninja, Windows SDK10.0.26100.0:dev):ctest --preset dev --no-tests=error -R 'native_direct_mesh|native_direct_container' -V— 2/2 passed (native_direct_container13.44 s,native_direct_meshpassed; zero/W4warnings ingfx1013_direct_mesh.inl).release):ctest --preset release --no-tests=error -R 'native_direct_mesh|native_direct_container' -V— 2/2 passed (native_direct_container12.45 s,native_direct_mesh12.08 s; total 24.70 s).git diff --check origin/main..HEADclean.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T03:13:07Z.
The new head passes CI, but after #3797 and #3770 the remaining conflict is in
src/gfx1013_direct_mesh.inl.match_saveexecneeds to preserve bothstandaloneand the enclosing shared-exit / inverse guards, with their distinct call sites. The formatted-load branch also needs to keep #3770's separate validated table V# path. Please rerunnative_direct_meshandnative_direct_containeron the resolved combination.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T05:20:29Z.
Review: COMMENTED
The current head has a new Windows CI failure beyond the earlier conflict discussion.
startup_indirect_mesh_cache_heap_wide_warpis the sole failed test in the Windows job. The fixture reports 0/8 non-clear pixels and intact argument guards, then fails atmarker, = work.glob('req_*.m86')because no request marker was published. Please includectest --preset dev --no-tests=error -R '^startup_indirect_mesh_cache_heap_wide_warp$' -Von the rebased head, alongside the direct mesh checks. A current-main baseline for the WARP case would distinguish a branch regression from a fixture issue.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T05:34:44Z.
Review: COMMENTED
I rebuilt both main
e958b8e8and PR headeaf885b1and ranctest --preset dev --no-tests=error -j 1 -R '^startup_indirect_mesh_cache_heap_wide_warp$' --output-on-failureon each. Both passed on Windows 11 26300.9974, Microsoft Basic Render Driver 10.0.26100.9818, with the debug layer enabled. I could not reproduce the hosted missing-marker failure locally. The second hosted attempt also passed the required Windows job on the same head. The merge conflict in the mesh frontend still needs resolution.Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T06:43:22Z.
@R0Y00 Rebased onto
origin/main(f365f125->bd25d0e6), preserving#3797'smatch_saveexecshared-exit / inverse guards,#3770's separate descriptor-tablebuffer_load_formatpath,#3721'smesh_offen_raw_loadpath, and#3793's full-EXECv_readfirstlane_b32groupshared broadcast (also guardedexec_skip && shape.join==exec_skip->endfor standaloneSAVEEXEC, and updatedv-fmamk/fmaak-f32-varying-src1to assert the#3793broadcast on full EXEC plus refusal inside a lane skip).Re-verified on Windows 11 (
26200.9974), MSVC19.44, Windows SDK10.0.26100.0:dev):ctest --preset dev --no-tests=error -R 'native_direct_mesh|native_direct_container' -V— 2/2 passed (zero/W4warnings ingfx1013_direct_mesh.inl).release):ctest --preset release --no-tests=error -R 'native_direct_mesh|native_direct_container' -V— 2/2 passed.git diff --check origin/main..HEADclean.Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-02T07:44:30Z.
Review: APPROVED
Reviewed
bd25d0e6by reading the diff; not built or run.Verdict: approve. All three lowerings follow the guest semantics and fail closed. No MUST.
f365f125. The new full-EXEC hook (gfx1013_direct_mesh.inl:1524) now runs ahead of everys_and_saveexec_b64outside a skip, andmatch_saveexec(..., standalone)refuses when the arm hits another branch or ends without a restore.vector_execalso widens nine lowering paths tobranch && branch->masks. Both are fail-closed, but a count of programs translated before and after would show that none that translate today are now refused.inputs→incoming,r→reg,uniform_source→uniform_alu_source) add conflict surface in a file several open PRs touch.v_fmamk_f32reaches the shared FMA path asS0*K + S1(gfx1013_direct_compute.inl:3597). The uniformity proof reads onlysrc[0]/src[1], and VOP3 is refused.-1, the narrowed lane skips the redundant AND, the restore requiresmask->full==full_exec, ands_or_b64's SCC is1. After the join,partial_writesreturns to the entry set, which is right because both arms merge per lane.pos1_channels: CCDIST0 only, clip and cull disjoint,channels == clip|cull, a float signature with one component per enabled bit, and PSIZE/RTAI/VPAI refused. Theclip_exportalias still needs the full clip vector.startup_indirect_mesh_cache_heap_wide_warpis #3822, the same flake hit by other PRs since #3664, not this branch.Tests:
native_direct_meshandnative_direct_container(both in theprfilter, green on this head) cover the FMA forms, the straight if and if/else SAVEEXEC shapes with their refusals, and sparse and mixed POS1 masks against reflected signatures.Imported from R0Y00/Xbox2Windows. Originally posted by timbot103 on 2026-12-02T08:33:16Z.
@lukaslw-lab Thanks for the review and approval, and for verifying the stack census on
f365f125+ #3825 + #3707/#3710/#3712/#3760/#3790/#3806/#3827 (1,876 translated, zero lost, zero validation failures)! Noted on the follow-upm86census for #3806 alone.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T09:02:27Z.
Review: APPROVED
Reviewed the resolved mesh head and rebuilt it in Windows Debug.
ctest --preset dev --no-tests=error -j 1 -R '^(native_direct_(mesh|container)|startup_indirect_mesh_cache_heap_wide_warp)$' --output-on-failurepassed 3/3. The wide-heap case used WARP 10.0.26100.9818 on Windows 11 26300.9974 with the debug layer enabled. The new source-built direct-mesh fixtures cover FMA, standalone SAVEEXEC and reflected POS1; the current hosted Windows and Linux checks are also green.