perf(mesh): replace literal Wave64 half-mask counts with clamped lane arithmetic #660
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!660
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-660"
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?
@tommiehansen on GitHub · 2026-12-06 01:38 UTC · original
tommiehansen:perf/phase13-mesh-wave64-count-20261206→main· +135 −5 · 4 files · 6 commits · draftWhy
Literal full-half-mask v_mbcnt instructions reconstruct the guest lane using unnecessary population counts in Wave64 mesh shaders.
What changes
Opt-in VICTORY_MESH_LANE_COUNT64=1 uses min(lane,32) and max(lane-32,0), plus the original src1. Other masks, non-mesh and guest Wave32 retain original lowering. Independent of #656, with separate cache identity.
Benchmark results
48 compiler cases / 24 matched pairs from CI 47592392025, production DXIL -> SPIR-V -> pinned Mesa RADV/ACO.
Consistent across low/high/edge/cull fixtures, register allocation and LDS unchanged. Compiler artifacts. Compiler counts, not physical GPU timing.
Why this should be merged
Removes unnecessary guest lane reconstruction while preserving the original count semantics; no quality change.
Validation
Isolated upstream-base CI 47593620781 both jobs passed, four exact WARP rendered images and production compile; prior ACO evidence on the original BTD audit branch, with identical Wave64 lowering. Actual title shader coverage and GPU timing remain unknown.
Compatibility
Default off; no dependency on #656 or #469. Both guest wave widths remain distinct admission families. Physical AMD validation required before enabling by default.
Final-head census and combined validation
e61fdabe CI 47595108854 passed Linux and Windows with diagnostics-only VICTORY_MESH_LANE_CENSUS=1 (guest_wave=64, translated/eligible counters). Combined CI 47595204584 passed four exact cross-switch controls and four exact Wave64 renders with the Wave32 switch enabled. The earlier compiler audit is not a new final-head audit; real-title frequency and physical GPU timing remain unknown. Draft retained.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.