shader: review follow-up for the mesh diamond restore gap (#3633) #3648
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!3648
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3646"
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?
@mumba17 on GitHub · 2026-11-30 20:43 UTC · original
mumba17:shader/mesh-gap-review→main· +21 −6 · 2 files · 2 commits · merged 2026-12-01 00:19 UTCFollow-up to #3635. lukaslw-lab's review had one SHOULD and two NITs. #3635 was merged before I pushed the fix (
dbf725ef), so the fix is here on top of main.scalar_gapnow hass_buffer_load_dword s30, s[24:27], 0and its wait. The positive case now goes through the SMEM op 8–12 branch, which both real sites use.s_cmp*/s_bitcmp*for SOPC.s_call_b64,s_setreg_b32,s_subvector_loop_*,s_rfe_b64and all 64-bit forms now end the gap. A new control,gap-salu-b64(s_mov_b64 s[30:31], 0in the gap), checks that the restore stays refused.diamond_joined=truenow says that a restore at the join of a diamond whose own restore names another mask is accepted only when that mask is the open skip's guard.Mutation checks, each caught by
native_direct_mesh:s_mov_b64;diamond_joinedunconditionally.Verification on main
d5970858:ctest --preset release -R "mesh|compile_dxil" -j 4gives 204 passed (the twomesh_two_exitscases skip, as on main). The census of the 454 cached requests is unchanged: 8mesh EXEC write inside a lane-skip blockleft.🤖 Generated with Claude Code
@mumba17 on GitHub · 2026-11-30 20:53 UTC · original
In
6a5eeedcI moved the restore-at-join note into the gap comment block, so the diamond join line is untouched. This PR and #3647 now merge cleanly in either order; I checked both withgit merge-tree.@lukaslw-lab on GitHub · 2026-11-30 20:54 UTC · original · approved these changes
Reviewed
6a5eeedcby reading the diff; not built or run.Verdict: approve. This settles the three points from my #3635 review. No MUST, no SHOULD.
0xf420078c 0xfa000000is SMEM op 8 (s_buffer_load_dword) withsdata = s30,sbase = s[24:27]andsoffset = null. The positivescalar_gapcase now goes through theop 8–12branch that both real sites use, with its wait.gap-salu-b64(0xbe9e0480= SOP1 op 4,s_mov_b64 s[30:31], 0) isolates the allowlist: the old name-denylist would have accepted it, becausedst < 106and the name has noexec.src/gfx1013_direct_mesh.inl:594-606): only 32-bit SOP1/SOP2/SOPK forms withdst < 106.s_addk_i32/s_mulk_i32also read their destination, butdst < 106already keeps that a plain SGPR. SOPK skips the meaninglesssrc[1], and its unsetsrc[0](s0) passeslane_freetrivially. Calls,setreg,subvector_loop,rfe,movreland every 64-bit form now end the gap. Leaving outs_bcnt*/s_ff1/s_sext*and similar is conservative.s_cmp*/s_bitcmp*with lane-free sources, so a 64-bit compare of EXEC or VCC stays out.:577-579) now states the restore-at-join condition I asked for.Tests: the three mutations you list (allowing
s_mov_b64, SMEM ops 0–4 only, clearingdiamond_joinedunconditionally) are each caught bynative_direct_mesh. That test is still outside the Windowsprpreset filter (also not selected by #3646's pattern), so it has only your run ond5970858.