GPU: look up slot-eviction candidates by the raw texture key (part of #2778) #2890
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!2890
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2890"
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?
@SlyWater on GitHub · 2026-11-29 18:34 UTC · original
SlyWater:fix/slot-evict-raw-key→main· +10 −2 · 1 files · 1 commits · draftPart of #2778 (analysis and proposed change there; the author could not build it). Draft: it fixes a keyspace mismatch, but on our run it did not by itself make the sweep let textures go.
The mismatch
slot_evictbuildsrawskeyed by the raw host texture pointer, with the title texture address as its value, anddescriptor::evictable_slotsreturns its slots keyed the same way:Both use sites looked the title address up in that raw-keyed map:
A title address is never a key of
slots, soretainemptied the candidates on every pass and the loop below ran zero times. The second site has to change with the first, or the fixedretainmakes the sweep panic on the missing key.Tested
Built and run on Windows 11, i5-12400F, RTX 3070 8 GB, title 1.0.2.1, Series S 1080p, with the change applied on main (
f889bb0):0 textures (0 MB)let go. Before the change it saw30836 idle-lookingwith14926 not to be taken (a slot shaders pick by index shows them); after it the same class of counters, still nothing taken, so the candidate set is empty for a second reason this change does not establish (e.g. the raw keys of those textures are not in theslotsmap at all).So this removes one definite bug on the path and nothing more; it should not be read as closing #2778. A test for it can be written without the title (build
rawswith one entry and aslotsmap keyed the wayevictable_slotsreturns it, then assert theretainkeeps the copy); I have not added one here.No game files, dumps or title logs are included.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.