GPU: look up slot-eviction candidates by the raw texture key (part of #2778) #2890
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by SlyWater on 2026-11-29T18:34:45Z.
Part 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
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.