Skip unusable indexed slot eviction records #3811
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3811
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3811"
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?
@Yoruiopz on GitHub · 2026-11-30 07:51 UTC · original
Yoruiopz:pr/skip-unused-indexed-eviction-records→main· +35 −2 · 1 files · 1 commits · closed without mergingRelated to #1644.
What it changes
With sampled eviction disabled, an indexed-only slot blocks its texture in the final eligibility filter. The scan currently allocates and appends an eviction-slot record for that same slot. The filter discards the vector before eviction can use it.
Skip the insertion for that case. The same rows still update the blocked, recent-table, and sampled sets used by the eligibility filter and cold-texture accounting. A slot that can be rebuilt from a table, or an indexed slot considered by trusted sampled eviction, keeps its existing path.
How it was tested
41adb551plus the Series X startup fix and timings. The trial switch selected only this insertion predicate. Both runs used the same checkpoint, input tape, and warm cache. Sampled eviction and sweep slicing were disabled in both.victory-gpuRust test checks that accepted slot lists agree for combinations of table, indexed, and blocking slots, with sampled eviction both trusted and untrusted. Focused Cargo test and staged asset-policy checks passed. No shader changes.Checked for overlap
@tyr0nsur on GitHub · 2026-11-30 08:06 UTC · original
I combined
88497e1with #3750 and the two follow-up descriptor guards from its review. Integration commit58e78c1resolves the twodescriptor.rsconflicts by keepingrecord_eviction_slotand using the typed record with the heap ID and view key for the rows it records. Every row still contributes to the existing eligibility sets.The integration test uses a five-slot D3D12 heap with a table-only texture, an indexed-only texture, and a mixed texture. The table-only texture keeps its two candidates in slot order. With no completed shader readback, the other two stay blocked. The test then rewrites a selected slot and checks that eviction leaves the replacement made and pointing to the new texture. It passed on Windows WARP with sampled eviction off and on. The slot test filter passed 48 tests (2 ignored), and the focused tests also passed with #3697 applied locally. Staged asset policy passed. These are compatibility checks with synthetic textures. The combined build's frame times remain unmeasured. Integration and tests used Codex assistance.
@ghptc on GitHub · 2026-11-30 14:38 UTC · original
We independently tested Yoruiopz's change at
88497e1ba98bb271f51cc0fdf9f7254bf4440cc5. In a CPU fixture we compared the original and patchedevictable_slotsusing the sameslots_showingandoldest_coveringcode, a real mutex per slot, and fixed-lifetime Arc identities in place of COM resources. The fixture generated the slot states and alternated order across eight paired passes per profile and policy.With sampled eviction disabled, the median paired saving per matcher call was 2.308 ms in the blocked-indexed profile and 0.895 ms in a mixed profile. In the all-eligible control the candidate took 0.016 ms more. With sampled eviction enabled, absolute median paired differences were at most 0.017 ms. All 48 pairs agreed on eligible resources, ordered slots per resource, kept/blocked/cold results, selections at four byte budgets, and final ownership. The comparisons used a single CPU quota on Linux.
A separate functional check on an RTX 5070 under Proton exercised a registered descriptor heap with two generated SRVs. The real matcher preserved a recently tabled slot and blocked the indexed-only slot in both builds. The first draw after classification produced identical expected RGBA for both resources at the completed fence, with all 126 background control pixels intact.
The timed region of the CPU comparison covers one matcher call. The complete sweep and gameplay frametime still need separate measurements.
@trustno1-coder on GitHub · 2026-12-01 18:48 UTC · original
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed