perf(gpu): resolve eligible copied compute texture records at bind time #601
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!601
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-601"
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-05 15:38 UTC · original
tommiehansen:perf/phase10-resolved-production-20261205→main· +1174 −31 · 11 files · 31 commits · draftWhy
Repeated shader-side resolution of static compute texture descriptors requires redundant record/slot lookups, especially with divergent threads. Binding known immutable records ahead of dispatch may remove part of that work.
What changes
Opt-in VICTORY_RECORD_RESOLVED=1 resolves up to four distinct static compute texture SRVs in a copied table via existing canonical keys. Reuse prepared table/slot only when complete copied words, epoch and generation match. Dynamic/indexed, changed, ambiguous, unready, unavailable or exhausted entries use original lookup. Fence-held leases exclude reclaim/remirror; 16 MiB subarena within existing 64 MiB arena. Default off, cache identity v2.
Benchmark results
Historical synthetic Standard at 16323cf, WARP lookup fixture:
Six-method Quick/Standard: 96/96 paired snapshot wins versus carried lookup, −62.9% median paired change for Standard mixed divergent 16-step. Generic hints regressed and are not enabled. Current head has no measured production binder net time.
Why this should be merged
Prepared lookup shows strong synthetic potential, but full host-bind/dispatch cost and lifetime must justify it. Keep draft until actual patched-UM activation and representative benefit.
Validation
Initial exact outputs, four-record tests: 18 exact single/two-texture WARP cases including late updates/fallback. Lifetime/reuse and current reconciled 1f3f689 pass shader exactness, lease exclusion, cache identity, ABI and compile. Unchanged-main descriptor PSO control reproduces existing failure.
Actual State::bind + Dispatch fixture with 1–4 textures and late updates is compiled, not executed. Pinned AMD runner: patched UM, VICTORY_RECORD_PLACES=1, resolved 0/1, four Quick or eight Standard ABBA/BAAB blocks, exact RESOLVED_BIND_EXACT rows.
Compatibility and dependencies
Independent of HWRT and #606; not a general submission snapshot or direct-index replacement. Base
8c4e663; warm caches after changing modes. Physical SM6.6 and patched AMD UM required for full binder execution.Archived previous description, checklist and historical measurements.
2026-12-06 — production preparation follow-up
The production resolved-record accumulator, copied snapshots and cached slot list now use the existing inline
Few<_,4>storage; >4 entries retain the Vec overflow path. Existing exact keys, epochs, invalidation and fence-held leases are unchanged. CI 47598918321 passed the new inline/overflow test, existing ABI/lifetime controls and production compilation. The actual binder fixture now reports bind, record and full dispatch time separately. Paired CPU accumulator benchmark is not yet complete; it is not the full binder net-cost measurement. Patched AMD UM execution is still required. No promotion.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.