GPU: placement by what the card may do: buffers in memory read-only to the card (VICTORY_RO_BAR, RO_TILES, RO_INPLACE; all off) #3401

Closed
github-bot wants to merge 15 commits from github-bot/gh-3401 into main AGit
Owner

@⁠banaanpapa on GitHub · 2026-11-29 22:49 UTC · original
banaanpapa:perf/read-only-to-the-card → main · +2483 −48 · 11 files · 15 commits · closed without merging

Stacked on #3268: the first four commits here are that pull request's (its bench is what measures this one). The six after them are new. Everything new is behind switches that are off; with them off the tree behaves as before. No game was run: every figure is from a synthetic bench on one PC (Ryzen 9 9950X3D, RTX 5080 16 GB, driver 621.24).

The idea

The other layers guess which memory comes back from the card. This title says it: memory it asks for with read-only GPU page protection is memory the console's card cannot write (title_memory_gpu_readonly), and VICTORY_GPU_RO_SKIP already takes such pages out of what shaders are declared to write. So for such memory nothing is ever found, fetched or merged, and a copy's CPU side has no use left there: it is a second copy of every byte in the PC's memory, a second copy of every changed byte on its way up, and a CopyBufferRegion for each run. Placement can follow that declaration.

What is added (all off)

  • VICTORY_RO_BAR=1: a title buffer that lies whole in such memory, where its copy would have had two sides, gets one copy in card memory the CPU maps (what VICTORY_WC_BAR makes for write-combined memory, but from the title's declaration and not from a guess about its CPU).
  • VICTORY_RO_TILES=1: a buffer that lies in such memory in part (the 174 MiB heap: a ring the CPU writes beside pools shaders write) keeps two sides, and its card's side becomes one sparse buffer over two heaps (host/mixed.rs): the read-only stretch in card memory the CPU maps, written by the refresh and never sent. The host is asked once whether a sparse buffer shows what the CPU wrote beside it; where it does not, the copy is made as before.
  • VICTORY_RO_INPLACE=1: such a buffer whose copy would be in the PC's memory is opened in place. What VICTORY_INPLACE=2 must assume of shader writes, this memory has none of.
  • VICTORY_RO_CENSUS=1: the frame-rate line says how many MB a frame went up to card sides and how many of them lay in such memory.
  • A log line in every run, with or without the switches: how many buffers lie whole in such memory and what copy they got.
  • A copy made for read-only memory leaves the table when the title makes any of that memory writable to the card, or gives it up.
  • The title's VirtualProtect, and a commit at an address, tell the card first (title_memory_protecting).

Figures (host::placement, a 64 MiB buffer, 16 MiB written by the title before each submission)

A submission Prepared and sent The card's run
Read-only whole, two sides (today) 3.14-3.17 ms 2.28-2.35 ms 0.62 ms
The same, one mapped copy (RO_BAR) 1.20-1.24 ms 0.85-0.87 ms 0.17 ms
Read-only past 4 MiB that shaders write, two sides 3.60 ms 2.12 ms 1.26 ms (with landing)
The same, that stretch in mapped tiles (RO_TILES) 1.95 ms 0.98 ms 0.77 ms
Read-only whole, kept off the card, a copy in the PC's memory 0.70-0.87 ms 2.1-3.4 ms
The same, in place (RO_INPLACE) 0.05-0.07 ms 2.0-3.8 ms

In every round the title's last written page was read back from the card, and what shaders wrote was in title memory.

What was run

  • New tests, each of which fails when what it covers is broken on purpose: the range rules; copies leaving the table when memory is made writable or freed (600 buffers in one region too); a refresh over a copy with a mapped stretch on a view and on write-watched memory (the stretch reaches the tiles, the CPU's side is not written there, nothing of it is told to go up); a buffer of two kinds read back from the card.
  • host::membench (the title's own calls), memory_bench_reclaims_and_regrows_with_correct_bytes, with its source said read-only by the new VICTORY_MEMBENCH_RO=whole|half: the 32 MiB copied on the card and fetched back match the source with RO_BAR, with RO_TILES and with RO_INPLACE, with and without the relay.
  • cargo test -p victory-gpu --release --lib: 916 pass; the six that fail are those that fail on main beside it (three of pipeline::host, shader_cache's key test, two of texback). Clippy says nothing of a line this branch writes. The all-features build does not compile on main (copystat.rs, host.rs:9231), so that gate was not run.

Limits and risks

  • No title run. How many of the title's buffers lie whole in such memory is not known here; the log line and VICTORY_RO_CENSUS are there to say.
  • VICTORY_RO_TILES leans on what Direct3D's documents do not speak of (tiles of a sparse buffer in a GPU_UPLOAD heap, written through a second buffer placed in it). It works on the one driver asked. A driver that refuses may remove the device at the first such copy.
  • VICTORY_RO_INPLACE carries in place's old risk, and the bench now shows it: after the buffer is let go its heap closes VICTORY_BURY_LAG submissions later, and a VirtualProtect or VirtualFree of the title's within that time is still refused. The same holds for title_memory_freeing. Section 11.4 of the audit has the measurement.
  • A copy on the card into such memory, which the console would refuse, stays on the card and is said in the log.

The audit's section 11.4 lists five runs that say what each switch is worth in the title, and the line each is read off.

Merged with main again (2026-11-30, c71899d9)

Merged, not rebased; four files conflicted with what main did since, and each is fitted to main's form:

  • The buffers' lookup (shadow.rs): main now splits a copy's admission from its making and answers with a BufferHit. This branch's three placements come before the admission, and a copy placed is noted as main notes its own (remember_placed). The table is Buffers now, and ro_let_go walks its map.
  • shader_writes: a copy made for read-only memory leaves before main's copy-back by memory class (VICTORY_UNIFIED_BACK). The two rest on the same declaration: main's class gpu-ro says such memory needs no copy-back, and this branch says it then needs no CPU side either.
  • inplace.rs: main's place_private is what this branch's place_if_it_can_be was; place_read_only calls it.
  • host/send.rs: main plans all copies' runs in one function that does not know the copies; the census is taken before it.
  • xmem.rs: main lets go of what is in place before the title's VirtualProtect already, so this branch's call there is gone.

Run again on the merged branch, RTX 5080:

  • This branch's 11 tests pass. cargo test -p victory-gpu --release --lib, five runs: 1,121 pass and the two that fail are main's (shader_cache's key test, list::thin::tests::bindings_record_no_work); in two of the five the card_steps and uav_pool timing tests failed as well, and both pass alone. Run with #4115 applied and not committed here.
  • host::placement, 16 MiB written before each submission: read-only whole, two sides 2.94 ms and one mapped copy 1.15 ms; read-only past what shaders write, two sides 3.79 ms and that part in mapped tiles 1.85 ms; in place the preparing 0.04 ms against 0.79.
  • host::membench's byte check passes with RO_BAR, RO_TILES and RO_INPLACE, with and without the relay.

What main's document on memory classes does not say is how much of the title's memory is gpu-ro; VICTORY_UNIFIED_STATS=1 and this branch's log line would. Until a run says, these switches stay what they were: off.

🤖 Generated with Claude Code

**@⁠banaanpapa** on GitHub · 2026-11-29 22:49 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3401) `banaanpapa:perf/read-only-to-the-card` → `main` · +2483 −48 · 11 files · 15 commits · closed without merging Stacked on #3268: the first four commits here are that pull request's (its bench is what measures this one). The six after them are new. Everything new is behind switches that are off; with them off the tree behaves as before. No game was run: every figure is from a synthetic bench on one PC (Ryzen 9 9950X3D, RTX 5080 16 GB, driver 621.24). ## The idea The other layers guess which memory comes back from the card. This title says it: memory it asks for with read-only GPU page protection is memory the console's card cannot write (`title_memory_gpu_readonly`), and `VICTORY_GPU_RO_SKIP` already takes such pages out of what shaders are declared to write. So for such memory nothing is ever found, fetched or merged, and a copy's CPU side has no use left there: it is a second copy of every byte in the PC's memory, a second copy of every changed byte on its way up, and a `CopyBufferRegion` for each run. Placement can follow that declaration. ## What is added (all off) - **`VICTORY_RO_BAR=1`**: a title buffer that lies whole in such memory, where its copy would have had two sides, gets one copy in card memory the CPU maps (what `VICTORY_WC_BAR` makes for write-combined memory, but from the title's declaration and not from a guess about its CPU). - **`VICTORY_RO_TILES=1`**: a buffer that lies in such memory in part (the 174 MiB heap: a ring the CPU writes beside pools shaders write) keeps two sides, and its card's side becomes one sparse buffer over two heaps (`host/mixed.rs`): the read-only stretch in card memory the CPU maps, written by the refresh and never sent. The host is asked once whether a sparse buffer shows what the CPU wrote beside it; where it does not, the copy is made as before. - **`VICTORY_RO_INPLACE=1`**: such a buffer whose copy would be in the PC's memory is opened in place. What `VICTORY_INPLACE=2` must assume of shader writes, this memory has none of. - **`VICTORY_RO_CENSUS=1`**: the frame-rate line says how many MB a frame went up to card sides and how many of them lay in such memory. - A log line in every run, with or without the switches: how many buffers lie whole in such memory and what copy they got. - A copy made for read-only memory leaves the table when the title makes any of that memory writable to the card, or gives it up. - The title's `VirtualProtect`, and a commit at an address, tell the card first (`title_memory_protecting`). ## Figures (`host::placement`, a 64 MiB buffer, 16 MiB written by the title before each submission) | | A submission | Prepared and sent | The card's run | |---|---|---|---| | Read-only whole, two sides (today) | 3.14-3.17 ms | 2.28-2.35 ms | 0.62 ms | | The same, one mapped copy (`RO_BAR`) | 1.20-1.24 ms | 0.85-0.87 ms | 0.17 ms | | Read-only past 4 MiB that shaders write, two sides | 3.60 ms | 2.12 ms | 1.26 ms (with landing) | | The same, that stretch in mapped tiles (`RO_TILES`) | 1.95 ms | 0.98 ms | 0.77 ms | | Read-only whole, kept off the card, a copy in the PC's memory | | 0.70-0.87 ms | 2.1-3.4 ms | | The same, in place (`RO_INPLACE`) | | 0.05-0.07 ms | 2.0-3.8 ms | In every round the title's last written page was read back from the card, and what shaders wrote was in title memory. ## What was run - New tests, each of which fails when what it covers is broken on purpose: the range rules; copies leaving the table when memory is made writable or freed (600 buffers in one region too); a refresh over a copy with a mapped stretch on a view and on write-watched memory (the stretch reaches the tiles, the CPU's side is not written there, nothing of it is told to go up); a buffer of two kinds read back from the card. - `host::membench` (the title's own calls), `memory_bench_reclaims_and_regrows_with_correct_bytes`, with its source said read-only by the new `VICTORY_MEMBENCH_RO=whole|half`: the 32 MiB copied on the card and fetched back match the source with `RO_BAR`, with `RO_TILES` and with `RO_INPLACE`, with and without the relay. - `cargo test -p victory-gpu --release --lib`: 916 pass; the six that fail are those that fail on `main` beside it (three of `pipeline::host`, `shader_cache`'s key test, two of `texback`). Clippy says nothing of a line this branch writes. The all-features build does not compile on `main` (`copystat.rs`, `host.rs:9231`), so that gate was not run. ## Limits and risks - No title run. How many of the title's buffers lie whole in such memory is not known here; the log line and `VICTORY_RO_CENSUS` are there to say. - `VICTORY_RO_TILES` leans on what Direct3D's documents do not speak of (tiles of a sparse buffer in a `GPU_UPLOAD` heap, written through a second buffer placed in it). It works on the one driver asked. A driver that refuses may remove the device at the first such copy. - `VICTORY_RO_INPLACE` carries in place's old risk, and the bench now shows it: after the buffer is let go its heap closes `VICTORY_BURY_LAG` submissions later, and a `VirtualProtect` or `VirtualFree` of the title's within that time is still refused. The same holds for `title_memory_freeing`. Section 11.4 of the audit has the measurement. - A copy on the card into such memory, which the console would refuse, stays on the card and is said in the log. The audit's section 11.4 lists five runs that say what each switch is worth in the title, and the line each is read off. ## Merged with `main` again (2026-11-30, `c71899d9`) Merged, not rebased; four files conflicted with what `main` did since, and each is fitted to `main`'s form: - **The buffers' lookup** (`shadow.rs`): `main` now splits a copy's admission from its making and answers with a `BufferHit`. This branch's three placements come before the admission, and a copy placed is noted as `main` notes its own (`remember_placed`). The table is `Buffers` now, and `ro_let_go` walks its map. - **`shader_writes`**: a copy made for read-only memory leaves before `main`'s copy-back by memory class (`VICTORY_UNIFIED_BACK`). The two rest on the same declaration: `main`'s class `gpu-ro` says such memory needs no copy-back, and this branch says it then needs no CPU side either. - **`inplace.rs`**: `main`'s `place_private` is what this branch's `place_if_it_can_be` was; `place_read_only` calls it. - **`host/send.rs`**: `main` plans all copies' runs in one function that does not know the copies; the census is taken before it. - **`xmem.rs`**: `main` lets go of what is in place before the title's `VirtualProtect` already, so this branch's call there is gone. Run again on the merged branch, RTX 5080: - This branch's 11 tests pass. `cargo test -p victory-gpu --release --lib`, five runs: 1,121 pass and the two that fail are `main`'s (`shader_cache`'s key test, `list::thin::tests::bindings_record_no_work`); in two of the five the `card_steps` and `uav_pool` timing tests failed as well, and both pass alone. Run with #4115 applied and not committed here. - `host::placement`, 16 MiB written before each submission: read-only whole, two sides 2.94 ms and one mapped copy 1.15 ms; read-only past what shaders write, two sides 3.79 ms and that part in mapped tiles 1.85 ms; in place the preparing 0.04 ms against 0.79. - `host::membench`'s byte check passes with `RO_BAR`, `RO_TILES` and `RO_INPLACE`, with and without the relay. What `main`'s document on memory classes does not say is how much of the title's memory is `gpu-ro`; `VICTORY_UNIFIED_STATS=1` and this branch's log line would. Until a run says, these switches stay what they were: off. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
An ignored test, no title files: a title buffer of 64 MiB whose copy is found, refreshed, read whole by a pass and written in part by shaders, sent as a flight and settled, with the copy in the PC's memory, with two sides, with two sides and its writes left on the card, and in card memory the CPU maps. Each placement in a process of its own, with the submitting thread's own account of its preparing beside the times.

RTX 5080, Ryzen 9 9950X3D, the title writing 16 MiB before each submission: 5.98 ms in the PC's memory, 4.52 with two sides, 3.97 with the writes left on the card, 1.25 in card memory the CPU maps. Of the two sides' 3.15 ms of preparing, 1.44 are the refresh (0.63 to 0.73 for one side) and 1.39 what goes to the card's side, 0.64 of that taking the bytes out of the CPU's side.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
A refresh of more than a megabyte goes to the helpers (Shadow::take_all), a part to each. Of pages written here and there a part is a page or two: 14 MiB were 2,754 parts, and each told the card's side of its bytes under the lock of the copy's list of what is to go up (card_changed). With a copy whose shader writes come back, each also took the lock of the pages landings wrote (take_landed). The helpers waited for one another: 8 to 12 ms of their time in all at the first lock and 6.5 ms at the second, in one refresh.

The parts now go in tasks of about 256 KiB. A thread keeps what its task's parts would tell and tells it once, when the task's bytes are in (Shadow::telling_once). The landed pages are bits looked at and cleared with no lock.

What stays as it was: a byte is told of only after it is in the CPU's side, and before the refresh that took it returns; nothing reads the list in between for those bytes (what goes up is taken when the submission's refreshes are done, and a landing looks only at ranges flights declared, which no refresh takes). A landing and a refresh do not come to one whole page at once, for the same reason; a bit lost would only have the page copied and sent again, as before pages were noted.

Measured with host::placement (RTX 5080, Ryzen 9 9950X3D; a copy of 64 MiB with two sides, the title writing 16 MiB before each submission; three runs each, turn by turn):
- shader writes brought back: the refresh 1.37-1.44 ms -> 0.73-0.74, preparing and sending 3.11-3.27 -> 2.41-2.47, the submission 4.46-4.57 -> 3.76-3.85;
- shader writes left on the card (write-combined): the refresh 1.36-1.42 -> 0.59-0.61, preparing and sending 2.98-3.10 -> 2.14-2.26, the submission 3.87-3.95 -> 2.98-3.11.
A refresh of less than a megabyte is done on one thread and is not changed: frame_of_refreshes 14.8 ms before and 14.7 after (six runs each).

Test: a_refresh_on_several_threads_tells_the_cards_side_of_all_it_took, on write-watched memory, a view, and write-watched memory that landings write. It passes on the code as it was, and fails if what a task tells is dropped, if the bits are not set, or if they are not seen.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
host:🚌:one_buffer_by_address makes a sparse buffer of 4 GiB, shows it
256 MiB of a heap at the address a title would name, in the card's memory
and in card memory the CPU maps, and checks and times both ways through
it. On an RTX 5080 (621.24): shaders read 939 GB/s and store 300 GB/s
through the sparse buffer, as through a buffer of its own; the CPU writes
the heap through a buffer placed in it at 31.8 GB/s and shaders read all
of it through the sparse one; 4 MiB is hidden or shown in 0.1 ms.

The audit's section 11 reads how Xenia, shadPS4, RPCS3, Ryujinx, yuzu,
Vita3K and Dolphin hold the console's one memory, from their source, and
what that asks of this tree. Section 3.6 had turned the sparse buffer
down because it cannot be mapped; the heap under it can.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
The figures of section 11.2 were counted from the bench's first frame,
which copies everything once; from the third frame on, the big copy's
second taking is 195 us and 3.5 MB a refresh, 5.9 ms a frame.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
The title asks for memory with read-only GPU page protection, which the
console's card cannot write, and VICTORY_GPU_RO_SKIP already takes such
pages out of what shaders are declared to write. A title buffer that lies
whole in such memory never has a shader write to find or merge, so its
copy's CPU side is a second copy of every byte in the PC's memory, a second
copy of every changed byte on its way up, and a CopyBufferRegion for each
run. With VICTORY_RO_BAR=1 such a buffer, where it would have had two
sides, gets the one mapped copy VICTORY_WC_BAR makes for write-combined
memory. Where the host has no such memory, or no room, it is made as
before. When the title makes any of the memory writable to the card, or
gives it up, the copy leaves the table.

host::placement on an RTX 5080, a 64 MiB buffer no shader writes, 16 MiB
written by the title before each submission: 3.14-3.17 ms a submission
with two sides (2.28-2.35 prepared and sent, 0.62 the card's run),
1.20-1.24 ms with the one copy (0.85-0.87 and 0.17-0.18). With 1 MiB
written: 0.76-0.80 against 0.53-0.54 ms. The title's last written page was
read back from the card in every round.

Every run now says in its log how many buffers lie whole in such memory
and what copy they got, so that a run without the switch tells what it is
worth. No run of the title has had it: off by default.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
VICTORY_RO_BAR takes buffers that lie whole in such memory. A buffer that
lies in it in part, as the 174 MiB heap does with its ring, keeps two
sides, and what its read-only part sends up each frame is not known. With
the switch the frame-rate line says how many MB a frame are taken to go up
and how many of them lay in such memory: the figure that says whether the
two kinds of memory under one buffer are worth building.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
VICTORY_INPLACE=2 opens every title buffer in place and cannot be combined
with submissions sent ahead, whose rules know shader writes only by what
copies declare. Memory the card cannot write has none. With
VICTORY_RO_INPLACE=1 a title buffer that lies whole in such memory, and
whose copy would be in the PC's memory, has no copy: nothing refreshed,
nothing asked, no second copy of its bytes.

host::placement on an RTX 5080, a 64 MiB buffer kept off the card:
prepared and sent in 0.05-0.07 ms in place against 0.19-0.30 ms (1 MiB
written) and 0.70-0.87 ms (16 MiB written) with a copy; the card's run is
the bus for either, 2.0-3.8 ms, in place the slower by a tenth or so.

The title's VirtualProtect, and a commit at an address, now tell the card
first (title_memory_protecting), as its VirtualFree does. The bench shows
what that is worth: the buffer is let go, and its heap closes
VICTORY_BURY_LAG submissions later, so the title's call is still refused
until then (taken with VICTORY_BURY_LAG=0). Said in the comments and in the
audit, of this and of title_memory_freeing alike.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
VICTORY_RO_BAR takes a buffer that lies whole in memory read-only to the
card. The title's 174 MiB heap does not: a ring its CPU writes, read-only
to the card, lies under one buffer with pools its shaders write. Its copy
keeps two sides, and every page of the ring is copied into the CPU's side,
copied again into the submission's bytes and copied on the card, for
memory of which nothing ever comes back.

With VICTORY_RO_TILES=1 the card's side of such a copy is one sparse
buffer over two heaps (host/mixed.rs): the card's own memory for what
shaders may write, card memory the CPU maps for the largest stretch of
whole 64 KiB tiles that is read-only to the card. A refresh writes the
title's pages of that stretch into the mapping and never tells the card's
side of them; the CPU's side is not written there; the rest of the copy,
landing with it, is as it was. The host is asked once whether a sparse
buffer shows what the CPU wrote beside it, and where it does not the copy
is made as before.

host::placement on an RTX 5080, a 64 MiB buffer whose first 4 MiB shaders
write and whose rest is read-only to the card, 16 MiB of that written by
the title before each submission: 3.60 ms a submission with two sides
(2.12 prepared and sent, 1.37 of that for the card's side; 1.26 run and
landed), 1.95 ms with the stretch in mapped tiles (0.98, 0.02; 0.77). What
shaders wrote was in title memory and the title's last page on the card in
every round.

Tests: the stretch chosen; a refresh over a copy with such a part, on a
view and on write-watched memory (the tiles hold the part, the CPU's side
is not written there, nothing of it is told to go up, the rest is as
before), which fails if the runs are not cut, if the part goes to the
CPU's side, or if it goes a page off; and on the card, a buffer of both
kinds read back.

It leans on what Direct3D's documents do not speak of (tiles in a heap the
CPU maps), asked of one driver. Off by default.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
ro_let_go looked at the 256 buffers nearest below the region's end, as
lookup does for one address. A region of gigabytes holds more: the copies
of the others stayed, made for memory the card may now write. It looks at
every buffer that starts in the region, and at the 256 nearest before it.
A test makes 600 and breaks without the change.

The audit lists the five runs that say what VICTORY_RO_BAR, RO_TILES,
RO_INPLACE and RO_CENSUS are worth in the title, and what line each is
read off.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
host::membench makes its frames through the title's own calls. Its source
buffer is what the title's CPU writes and the card only reads:
VICTORY_MEMBENCH_RO=whole says so of all of it, =half of its second half,
before the source's copy is first asked for, and the byte-comparing test
says what copy the source got.

memory_bench_reclaims_and_regrows_with_correct_bytes on an RTX 5080, with
and without the relay: the 32 MiB copied out of the source on the card and
fetched back match it with the source's copy one mapped copy
(VICTORY_RO_BAR), with its second half in mapped tiles (VICTORY_RO_TILES),
and with the source opened in place (VICTORY_RO_INPLACE). The audit has
the table, and what of the bench does not pass on main either.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 22:52:16 +00:00
One conflict, in `Shadow::take_all`: main now runs the parts on
`wide_each_scoped`; this branch groups them into tasks and tells the
card's side once a task. Kept both: the tasks run on `wide_each_scoped`
and each is told once.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
No conflict of this branch's own; the one in `Shadow::take_all` is
resolved in the merge beneath.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Foxhound, neonbyte1/VIctory and SlaktarnVI read against 41adb551 for four
things: bytes that come back from the card and nobody reads, memory looked
at that did not change, lists made anew every frame, and the card's own
ray tracing. Three pieces were taken over (pull requests of their own);
one was measured and left (a table's descriptors copied in one call are
slower here than one call each); the rest is here already in the same or
a stronger form, or needs a run of the title to judge.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Four files conflicted with what main did since:

- `shadow.rs`, the buffers' lookup: main splits a copy's admission from its
  making and answers with a `BufferHit`. This branch's placements for
  memory read-only to the card (one mapped copy, in place, tiles the CPU
  maps) come before the admission, each a `BufferHit`, and a copy placed
  is noted as main notes its own (`remember_placed`). The table is
  `Buffers` now: `ro_let_go` and its tests walk its map.
- `shadow.rs`, `shader_writes`: a copy made for read-only memory leaves
  before main's copy-back by memory class.
- `inplace.rs`: main's `place_private` is what this branch's
  `place_if_it_can_be` was; `place_read_only` calls it.
- `host/send.rs`: main plans the runs of all copies in one function that
  does not know the copies; the census of what is sent up into read-only
  memory is taken in `take`, before it.
- `xmem.rs`: main lets go of what is in place before the title's
  `VirtualProtect` already (`title_memory_freeing`), so this branch's call
  there is gone; the one before a commit at an address stays.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
github-bot closed this pull request 2026-12-01 18:58:45 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!3401
No description provided.