mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-17 09:19:58 -04:00
0.6.1.14 faulted the GPU (a read of an invalid address in a pass) about 30 seconds after its last disuse evictions, and no path by which an evicted image is still read was found in the code. An evicted texture is now first retired: the pool refresh gives its slots the stand-in while the image stays whole. It is destroyed only once the texture pool has taken every set of its ring since and the GPU has finished the submissions recorded until then, so no pool set can still be bound with its view. A mark on one of its slots or any lookup outside the pool refresh takes it back as it is, and the perf line counts those, which shows whether the marks miss a real use. tex_disuse = 2 retires and never frees, so the next fault can be put on the freeing or on the marks and stand-ins. The registration shortcut also read a slot's cached entry without checking that the resolution was current, so it could read the record of a destroyed texture; it now checks the slot's generation first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 4c5b2ae2e030ab00a910d8f071c030e610fd78e1)
282 KiB
282 KiB