diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-26 09:57:50 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-26 09:57:50 -0500 |
| commit | 1f7cbeff9a0461c037287e83297e9add75d2646a (patch) | |
| tree | 2a4e2d834efe59c7c1df5d797147a8a119006304 /runtime/src/thread_stacks.cpp | |
| parent | fbf100b1b10e391625585fe6a8bf4e653662ca9a (diff) | |
xmem: a remap retires geometry copies only with LEONIDA_GEOMETRY_REMAP_RELEASE=1
Since #2350 a remap of physical pages that gives a page another frame retired the geometry copies over it, on by
default. In the first world run of that main on an RX 7900 XTX (RADV) the copies were retired by the thousand
(evicted 15010 in about 40 s) and the run ended in a GPUVM page fault (TCP read) and a lost device; the same build
settings without it ran eight minutes with evicted 0 and no fault.
A remap leaves the address valid on the console, so the title keeps using what names it, and not everything that
names a copy's address is rewritten when the copy goes:
- a root view is resolved while its list is recorded (d3d12_com.cpp, GraphicsCommandList::address); a list recorded
before the retirement and executed in an ExecuteCommandLists begun after it is not among the replays the
retirement waits for (kAfterExecutes covers only those in progress), so it reads the freed copy;
- a placed buffer view written outside a console heap carries the copy's address for as long as the descriptor lives.
The remap release is now off unless the variable is 1, read at every remap; the copies follow the new pages through
the refresh, as before #2350. Freeing, decommitting and unmapping still retire copies.
Tests: xmem_test test_remap_releases checks that a remap releases nothing by default and with 0, then the existing
checks with 1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions