Merge avatarmanz/VIctory-7900XTX up to c9c932cb #37

Manually merged
github merged 179 commits from github-bot/gh-37 into main 2026-11-26 17:20:16 +00:00 AGit
Owner

@⁠TaynanGT on GitHub · 2026-11-26 17:13 UTC · original
TaynanGT:merge/avatarmanz-c9c932cb → main · +13532 −1149 · 90 files · 179 commits · merged 2026-11-26 17:20 UTC

Brings avatarmanz/VIctory-7900XTX up to c9c932cb into Vice-Tay. The last shared point was 0a435665, the base cool_fox started from.

What comes in

On by default:

  • Shader translation: every shader the title uses translates (avatarmanz counts 25,790 of 25,985; the rest are unused geometry shaders). The shader store is keyed by TRANSLATOR_VERSION instead of the translator's source.
  • The light stand-in settles by time (VICTORY_AMBIENT_SETTLE, default 250,3), so rooms are no longer too bright or too dark for a few seconds after you walk in.
  • Two-plane compose for titles that present a second plane (VICTORY_PLANES=0 turns it off).
  • 33 avatarmanz PRs from their triage, among them feanorsun's play.ps1 fixes: exit with an error when an executable is missing, and say which inherited settings were dropped.
  • Faster lookups on the submit path: asked ranges by binary search, heap records read in place, the frame meter on a thread of its own.

Off by default, behind switches:

  • Renderer ports 1, 2 and 5–7 (VICTORY_PORT_CONSTANTS, VICTORY_PORT_DESCRIPTORS, VICTORY_PORT_CBV, VICTORY_PORT_GUARD, VICTORY_PORT_JOURNAL).
  • Output size and render scale (VICTORY_OUTPUT, VICTORY_RENDER_SCALE).
  • Frame-rate unlock (VICTORY_FRAME_INTERVAL_MS).
  • Texture store on disk (VICTORY_TEXTURE_STORE).
  • Upload copy queue (VICTORY_UP_QUEUE) and joined barriers (VICTORY_JOIN_BARRIERS).

Merge decisions

  • README.md stays ours. scripts/play.ps1 takes feanorsun's fixes and keeps our full-screen default.
  • ambient.rs: the probe statistics read the title's leftover light before the magenta filter from #27 drops it.
  • descriptor.rs: the ownerless-view cap from #27 stays, and VIEW_TAG is exported to the crate for port 5.
  • shader_cache.rs: the version-keyed store with stale-entry refresh is combined with #29's rule that a translation reaches the caller even when the cache write fails.
  • descriptor/host.rs, draw.rs: a slot flip keeps the record key read at selection (#29), and the texture-wait notes stay.
  • lower.rs: thread tickets (#29) and the partial-group mask both stay. LDS regions that read and write are taken when the loose-LDS fallback is on; with it off, only regions that just raise flags are taken.
  • TRANSLATOR_VERSION is 2, so cache entries made by avatarmanz's own builds under version 1 are not served for our translator.
  • watch.rs: open() gets the remap guards by shared reference (clippy).
  • descriptor/host.rs: gomeaw's b68e65e0 (a structured view with no raw twin, starting off 16 bytes, gets a copy of its own bytes) stays behind VICTORY_STRUCTURED_RAW=1, off by default. An RTX 4090 takes no heap with raw twins, so the rule caught every such view: 265 to 1,968 views a frame went through shadow::exact, which made 16 to 313 new buffers a frame while holding its lock. A PIX capture showed the list threads waiting on that lock about 40% of the time, and the merge ran at 6.2 fps instead of 21. With the rule off it behaves like main does today.

Checks

ci-local.ps1 on 2b51c6cf: clippy with and without all features, workspace tests.

watch::port7_tests::no_write_is_lost_with_port_7 failed once in a full run and passed 10 of 10 on its own. It is a timing-sensitive stress test.

Measured

RTX 4090, Ryzen 9 9950X3D, Series S profile, 30 minutes in the world, against main after #29:

main (#29) this branch
fps median / p10 / 1% low 21.6 / 18.6 / 15.5 22.7 / 19.8 / 17.0
ms per frame 46.3 44.1
private memory, median 25.0 GB 32.3 GB
card memory max 10.1 GB 16.7 GB
compute shaders that don't translate 3 3

Memory use is up by about 7 GB. That still needs a closer look; the 64 KiB placement of pooled textures (c278f0d5, VICTORY_POOL_SMALL=1 restores 4 KiB) accounts for part of it. The picture matches main, square blocks in clouds included.

🤖 Generated with Claude Code

**@⁠TaynanGT** on GitHub · 2026-11-26 17:13 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/37) `TaynanGT:merge/avatarmanz-c9c932cb` → `main` · +13532 −1149 · 90 files · 179 commits · merged 2026-11-26 17:20 UTC Brings avatarmanz/VIctory-7900XTX up to c9c932cb into Vice-Tay. The last shared point was 0a435665, the base cool_fox started from. ## What comes in On by default: - Shader translation: every shader the title uses translates (avatarmanz counts 25,790 of 25,985; the rest are unused geometry shaders). The shader store is keyed by `TRANSLATOR_VERSION` instead of the translator's source. - The light stand-in settles by time (`VICTORY_AMBIENT_SETTLE`, default `250,3`), so rooms are no longer too bright or too dark for a few seconds after you walk in. - Two-plane compose for titles that present a second plane (`VICTORY_PLANES=0` turns it off). - 33 avatarmanz PRs from their triage, among them feanorsun's `play.ps1` fixes: exit with an error when an executable is missing, and say which inherited settings were dropped. - Faster lookups on the submit path: asked ranges by binary search, heap records read in place, the frame meter on a thread of its own. Off by default, behind switches: - Renderer ports 1, 2 and 5–7 (`VICTORY_PORT_CONSTANTS`, `VICTORY_PORT_DESCRIPTORS`, `VICTORY_PORT_CBV`, `VICTORY_PORT_GUARD`, `VICTORY_PORT_JOURNAL`). - Output size and render scale (`VICTORY_OUTPUT`, `VICTORY_RENDER_SCALE`). - Frame-rate unlock (`VICTORY_FRAME_INTERVAL_MS`). - Texture store on disk (`VICTORY_TEXTURE_STORE`). - Upload copy queue (`VICTORY_UP_QUEUE`) and joined barriers (`VICTORY_JOIN_BARRIERS`). ## Merge decisions - `README.md` stays ours. `scripts/play.ps1` takes feanorsun's fixes and keeps our full-screen default. - `ambient.rs`: the probe statistics read the title's leftover light before the magenta filter from #27 drops it. - `descriptor.rs`: the ownerless-view cap from #27 stays, and `VIEW_TAG` is exported to the crate for port 5. - `shader_cache.rs`: the version-keyed store with stale-entry refresh is combined with #29's rule that a translation reaches the caller even when the cache write fails. - `descriptor/host.rs`, `draw.rs`: a slot flip keeps the record key read at selection (#29), and the texture-wait notes stay. - `lower.rs`: thread tickets (#29) and the partial-group mask both stay. LDS regions that read and write are taken when the loose-LDS fallback is on; with it off, only regions that just raise flags are taken. - `TRANSLATOR_VERSION` is 2, so cache entries made by avatarmanz's own builds under version 1 are not served for our translator. - `watch.rs`: `open()` gets the remap guards by shared reference (clippy). - `descriptor/host.rs`: gomeaw's b68e65e0 (a structured view with no raw twin, starting off 16 bytes, gets a copy of its own bytes) stays behind `VICTORY_STRUCTURED_RAW=1`, off by default. An RTX 4090 takes no heap with raw twins, so the rule caught every such view: 265 to 1,968 views a frame went through `shadow::exact`, which made 16 to 313 new buffers a frame while holding its lock. A PIX capture showed the list threads waiting on that lock about 40% of the time, and the merge ran at 6.2 fps instead of 21. With the rule off it behaves like main does today. ## Checks `ci-local.ps1` on 2b51c6cf: clippy with and without all features, workspace tests. `watch::port7_tests::no_write_is_lost_with_port_7` failed once in a full run and passed 10 of 10 on its own. It is a timing-sensitive stress test. ## Measured RTX 4090, Ryzen 9 9950X3D, Series S profile, 30 minutes in the world, against main after #29: | | main (#29) | this branch | |---|---|---| | fps median / p10 / 1% low | 21.6 / 18.6 / 15.5 | 22.7 / 19.8 / 17.0 | | ms per frame | 46.3 | 44.1 | | private memory, median | 25.0 GB | 32.3 GB | | card memory max | 10.1 GB | 16.7 GB | | compute shaders that don't translate | 3 | 3 | Memory use is up by about 7 GB. That still needs a closer look; the 64 KiB placement of pooled textures (c278f0d5, `VICTORY_POOL_SMALL=1` restores 4 KiB) accounts for part of it. The picture matches main, square blocks in clouds included. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A console wave64 program with LDS in a group over 32 threads runs on a
32-lane host as two host waves that meet at group barriers on the edges of
each lane-branch region. A region that both reads and writes LDS was
refused, since a read inside it may miss the other half's write.

That changes nothing the region leaves behind when it only raises a flag:
every access is a ds_read_b32/ds_write_b32 at a constant address, every
write stores the same constant, at most one address is both read and
written, every write a lane can reach after a read goes to that flag, the
region has no other effect, and no register it writes is live (lane by
lane) where a lane leaves it. A missed write then only keeps a lane going
as if the flag were down, and what it writes is the constant already
there. VICTORY_LDS_FLAGS=0 turns this off.

sr_tracing:CS_Tiling_Generate_Opaque (2cc4c197ee29e291) now translates in
waves of 32 and its pipeline is created on an RTX 5070 Ti. Translating
the whole shader pack for a 32-lane host, it is the only program whose
outcome changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 8bc48bf7eff5017ae2f43cfe55c12c88bfbbad2d)
Adapt the selector and high-performance preference from fxceless/victory-fork#261. Prefer Shader Model 6.6 in the shared path and seed offline translation from the selected adapter.
Title memory has guard pages: stack guards, and guards the title sets up
itself. A copy of title memory (safecopy: victory_safe_copy, _put and
_merge, under the write-catch handler in watch.rs) that touched one got
STATUS_GUARD_PAGE_VIOLATION (0x80000001), and the OS cleared the page's
guard flag. on_write sent every fault inside a copy to the copy's failing
exit, whatever the code, and nothing set the flag again. The page stayed an
ordinary page, so the title's next touch of it no longer raised the guard
fault it was set up for. Under Proton the process then exits silently 1-3
minutes into a world; a traced run logged two 0x80000001 among three
million access violations. That the lost guard causes the exit is the
reading of that trace, not something reproduced here.

A guard fault inside a copy now sets the guard flag again on its page, with
the protection the page has, and fails the copy as before. A guard fault
outside a copy still goes on to the next handler (CONTINUE_SEARCH).

The direct copy (VICTORY_DIRECT_COPY) had the same bug; klbf-lab PR #34
(commit 478c6ef) fixed it there. This is the same fix for safecopy.

Test: safecopy::tests::a_guard_page_fails_the_copy_and_stays_a_guard_page.
Under Proton Experimental it fails without this change ("the guard flag was
consumed") and passes with it.
When a structured view starts on one of its elements but off the raw alignment, use the existing view-relative copy. This covers native NVIDIA descriptor heaps that cannot allocate a second raw slot for every view.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Switching VICTORY_LDS_FLAGS changes the required wave size for the affected shaders. Use the same cache fingerprint path as the other wave64 lowering switches.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The meter's 5 s block (sorting, VirtualQuery, some forty log lines) ran on
the presenting thread, the lane: about 30 ms once every 5 s. It now goes to
"victory-meter" through a channel; =0 keeps it where it was.

ask_ahead's runs (some 50 kernel askings a frame on the lane, 3 ms) can be
asked on the victory-under threads with all held, as before; off until
measured.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
pLastBreadcrumbValue is the count of completed breadcrumbs, so history[done]
is the first op that had not completed. The old "stopped at command {done}
of {count} (op X)" read like one-based numbering and was mistaken for the
last completed command (issue #22). Say the count, the last completed op
and the zero-based index of the first uncompleted one explicitly, and skip
the detail when the reported count is out of range.

Refs #22
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Review of avatarmanz/VIctory-7900XTX#14 (itsonewi) asked for three things on
the guard path.

Destination: a copy, a put and a merge into a guard page each fail and leave
the page a guard page. The fix in the previous commit already does this; the
tests pin it. Without the fix they fail ("the copy's fault cleared the guard
flag", the same for put and merge).

Re-arm: rearm_guard checks that the page is still committed (VirtualQuery)
and that VirtualProtect succeeds. A failed re-arm, or a guard fault that
gave no address (NumberParameters < 2), is counted in NOT_REARMED; the first
is logged once as a warning, "guard not re-armed". Test:
a_page_that_cannot_be_guarded_again_is_counted (red against a stub that
always answers true, green with the checks).

Kernel retries: none. With safecopy on, no caller of copy, put or merge falls
back to ReadProcessMemory, NtWriteVirtualMemory, WriteProcessMemory or a
memcpy after a failed copy. The kernel calls are only on the
VICTORY_SAFE_COPY=0 branches (host.rs read and write_mapped). The retries go
through the same safecopy routine again, and each guard fault re-arms the
page. No code change for this.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
On a GPU with 32-lane waves a console wave64 program runs as two host
waves, and a v_readfirstlane where not every lane runs was refused (the
two halves cannot meet there to give each other their first lane). Three
programs of the ray-tracing structure builder stopped that way, so the
builder (all or none) could not run on NVIDIA at all (issue #4).

They read the first lane of a value every lane of the console wave holds
alike, inside a loop whose conditions are alike in the console wave too:
a prefix over wave totals, `if (id >> 6 != 0)` and lanes leaving at their
wave's own index. Then each host wave can take its own first lane.

lane_uniform now proves that: it runs to a fixed point; an instruction
under a condition whose atoms are compares of alike values (or uniform)
counts, over an old value that is alike too (waves the condition leaves
out keep that); LDS reads at an alike address count; phis count where
every predecessor is reached by whole console waves (past branches on
alike conditions only); and the thread id's x shifted right by 6 or more
is alike where console waves are runs of 64 ids along x. The result is
only used for v_readfirstlane in the two-host-wave form.

Checked: a GPU test of the same shape (256 threads, four console waves)
fails on the old analysis with the builder's refusal and passes with
this one on an RTX 5070 Ti (driver 621.40), every thread getting the
console's sum. Over the title's whole shader pack and the builder DLL
(VICTORY_HOST_WAVE=32), the only programs whose translation changes are
these three (now emitted and validated: compute 2,718 -> 2,721 of 2,734)
and one other builder program, whose first-lane read of `id >> 6` now
skips an exchange that gave the same value. victory-shader tests: 211
passed. In a world run with VICTORY_BVH_BUILDER=1 the builder now runs
(all 53 programs have host pipelines); the title still crashes within
seconds of it, with or without VICTORY_BVH_QUARANTINE, so it stays off by
default.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 3f2bcc7f2d79f04dca6d26e32f823a700b1c327f)
(cherry picked from commit 9e24afa06d4d332d432c92680c398b31f59f28d3)
Reuse the control-flow region map during fixed-point analysis. Require all explicit register words and exclude partial LDS loads, GDS and implicit state from the proof. The LDS and operand restrictions draw on adriaespii’s review in fxceless/victory-fork#36.

Validate both a wave-uniform prefix scan and its lane-dependent counterpart and require a compute PSO when the hardware can exercise the wave32 program.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
FILL_TITLE=2 (small fills from title memory no shader landed in for 600
frames are done from the title's bytes): run fills-ab3, standing in a
street, A/B by 10 s: mean 88.8 ms a frame against 100.5, median 83.4
against 88.1, p90 104 against 154; fills on the card 20-40 a frame against
900-3,500. Walking (fills-ab1, fills-ab2) the picture held. =0 turns it off.

ASK_SPREAD (fills-ab2): the asking took 6.2-6.3 ms with it, 5.6-5.8
without: the kernel's askings do not go on side by side. Removed.

Timeline spans: "asking: ahead", "asking: the rest", "asking refused",
"steps on the card: whether in the way".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Run fills-ab4 (VICTORY_THIN=1, submissions on our thread, A/B by 10 s,
walking): FILL_TITLE=2 60-71 ms a frame against 64-65 off. With it about
one submission a frame waited 8-15 ms for landings for "what a copy at its
place writes": the fills no longer stop blocked_by, which now reaches
place::read_by, and the card's steps take nothing. Off, the card does them.

ask_once holds everything once for both its parts: the second hold waited
for other threads' askings again (0.5 ms a time in run fills-ab3).
VICTORY_ASK_GAP=1 joins ranges up to 24 MB apart into one asking (off).

Diagnostics: the kind of step found reading a placed copy's destination.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Shadow::merge_under_writes, for a copy in the card's memory, found the
changed word runs of a page and then copied each run on its own into the
CPU's side: 190,000 runs in 400 pages a frame in session play-1125-1724.
Now each 32-byte block in which a word differs takes the title's bytes as
it is compared (the words of a block that do not differ are equal, so the
same bytes end up there; VICTORY_UNDER_FUSED=0: as before). The copies of
their own a page can need (runs of more than 256 bytes, at most n/260+1)
are taken from what the submission may send up before the pass and the
rest given back, so a page never has to be put back; where they cannot
be taken, the pass is as before. The runs of a range's pages go into the
copy's dirty list in one call, with room reserved.

A frame-rate line says where the time of this step goes: finding the
copies in the lists' refreshes, asking what was written, finding the
pages, waiting for the copy's locks, comparing (wall, and threads
together: reading title memory, comparing and putting in), noting runs.

Measured, city, lane on (VICTORY_THIN=1, JOIN_PARTS=8, UPLOAD_AHEAD=1):
- late-1 (no ray tracing, before this): 7-13 ms a frame on the lane, of
  them compare 3-6 wall (7-16 threads together), noting 1.4-3.6, asking
  1.0-1.7, the refreshes looked through 0.9, locks 0.0-0.2.
- late-3 (ray tracing, A/B of the switch in one run, world phases): 1.96
  -> 1.87 ms; compare and put 0.42 -> 0.27 (threads together), noting
  0.11 -> 0.06; frame unchanged within noise (110-121 ms both).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The structure builder's one-dimensional programs are dispatched by a count
of threads whose last group may be partial (USER_DISPATCH_THREADS_X). On a
host of 32-lane waves (NVIDIA) a console wave64 program that crosses halves
runs as two host waves that exchange through group barriers, so the lanes
past the count cannot leave at entry. `counted_in_threads` therefore skipped
these programs on 32-lane hosts, and their lanes past the count ran: they
counted in wave ops and stored.

Now the lanes stay for the barriers and `partial_active` leaves them out of
memory accesses, EXEC's ballots and the wave's reductions. Shuffles keep the
plain guard (they read other lanes, not memory).

Test: a spilled 64-thread wave64 program with s_bcnt1(exec) and a whole-wave
OR across halves, lowered through `lower::lower` on a 32-lane host; it must
take 32-lane waves and give the console's results for counts 45, 1, 33, 0.
It fails without the change (no USER_DISPATCH_THREADS_X) and passes with it
on an RTX 5070 Ti (Wine + vkd3d-proton).

AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Check the previous destination of swaps and accumulators. A conditional select needs a proven uniform predicate, since a scalar bit pattern can select different inputs in different lanes. Leave relative register accesses and operations with an implicit VCC input outside the proof.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
What changed on the CPU's side of copies in the card's memory goes to a buffer of
ours in the card's memory on a copy queue of its own; the drawing queue waits for
it by a fence and copies from there, at the same place in its order as before.
The host list's D3D12 list is a Rec: state changes, aliasing and the title's
barriers wait there and go in one call at the next use of the list (every use
goes through its Deref). Replay of replay5: the PC-to-card copies 5-6 ms of the
drawing queue; joining barrier calls -2.4 of 79.5 ms.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Run card-ab1 showed the up queue unused: with VICTORY_SEND_OWN on, the bytes go
from the submission's own memory, not from the copies' CPU sides.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Adapt the far early-out and deep scalar-copy parts of fxceless/victory-fork#1002. This tree already tracks parked scalar pairs by lifetime. Retain that implementation and bring across the synthetic regressions, including the hardware gate.

Adapted from eaeb8f173a

Co-authored-by: Bruno Magalhães <[email protected]>
Run lane2-0: two write-watch askings of 11 and 13 ms on the submitting
thread each ended with one of the memory map walk's VirtualQuery calls
(16.6 and 13.1 ms, thread victory-memory-map); the walk asks about 250,000
regions in 0.9 s every 30 s and holds the process's memory map meanwhile.
Run ask-1 without it: no asking over 1.5 ms on that thread in 50 frames of
five timelines.

The 5 s lines' VirtualQuery for the kind of each busiest range (10 ms on
the submitting thread in lane2-0) is asked once per address.

Diagnostics: ranges a submission's asking asks about alone (askings, pages
found, time), the costliest.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Checked every VICTORY_* name in the Markdown files against the source.
One was dead: VICTORY_MERGE_RACE (its counter was taken out after
8dd30ab); the line keeps the finding and drops the switch.
VICTORY_LATE_WAIT (host.rs late_stage: 1, 2, 3) and VICTORY_WIDE_REFRESH
(host.rs wide_refresh: 0, 1, else on at four or more CPUs) are read, as
documented; VICTORY_LATE_WAITS in frame.rs is a different switch.

What the docs had wrong, by the code:
- VICTORY_RELAY (stage 2), VICTORY_LATE_WAIT (stage 3 with the relay)
  and VICTORY_WIDE_BACK are on by default, not off; the frame-rate line
  says these are now the defaults (#34 copied it and saw no change).
- VICTORY_CARD_ROOM_FOR_BUFFERS is on by default (=0 as before).
- VICTORY_PAGE_WRITES opens the guards by default (=0 counts only).
- VICTORY_CARD_BUFFERS_MIN_KB, when above 0, wins over _MIN_MB: said
  in both places that name them.

xtask: a test that every VICTORY_* name in a tracked Markdown file is
quoted in at least one Rust file outside xtask, as every switch is read.

Fixes #49

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The file holds places in the title's code, which is game-derived, and was
opened wherever the variable pointed: with scripts/play.ps1's working
directory a relative name landed in the checkout, and cargo xtask policy
accepts a small .txt of that shape. The path now goes through
victory_core::ensure_outside_repo, as every other writer's does. It is
looked at once, on the thread that writes and not under the title's fault,
and kept in a OnceLock: a refused file is said once with a warning, and no
thread is started for it again.

victory-gpu depends on victory-core directly now (no cycle: victory-core
has no workspace dependencies, and it was already built through
victory-pipeline).

Fixes #33

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The per-second part of the meter took about 3 ms on the submitting thread
(run ask-1). VICTORY_METER_THREAD=0 keeps all of it there.

Built and tested (329 victory-gpu tests pass); the A/B run ask-3 was stopped
before the game ran (the user plays).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refs #29
Suggested by sharan104 in #88.
Every device loss with the pool in the report (n08, n11, n15, steps-ab2,
start-3, the user's play-1125-2107 without ray tracing) was a page fault
at the first byte of a texture in a block made that millisecond, its title
slot changed "at once" (mirror) while lists sent before read it by index;
VICTORY_SHOW_AFTER covered only some paths. mirror() now holds such a slot
on what it showed (or the neutral texture) and flips it when every
submission begun before the texture was made has finished.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Backport the capture conversion and regression test from fxceless/victory-fork#910.
With VICTORY_GPU_TIMING each list runs and is timed on its own, preludes and
the compare of copies in the card's memory included, and the frame line sums
them: the title's lists (their noted commands and the rest), preludes, steps on
the card, compares, others of ours, and the least a list took.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Whether the submission's asking holds a range was asked two or three times
per refresh (10,000 a frame), each a walk through all its ranges (a few
hundred). They are now kept by their starts with the furthest end so far:
the same answers in a few steps.

Measured and left out (run ask-3b, A/B in one city run, no ray tracing):
VICTORY_ASK_NORESET lane asking 7.2 ms a frame against 5.4 off, kernel
3.7 against 4.4 ms; VICTORY_ASK_SPREAD kernel askings 17 ms against 4.4
(they wait for each other in the kernel), lane 6.5; both 8.1 ms and frames
74 ms. Both stay off.

Tried and dropped (run ask-4): askings within one reservation only (the
refused askings stayed at 280-300 a frame: they are not the ahead runs'; and
VirtualQuery of the pieces stalled the lane 100-1100 ms every 5 s), and
askings of the refreshed ranges only (they are 99% of the copies' spans).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Tests: victory-gpu 330 pass. Replay of captures\replay5\capture-1 (3 loops)
ran to its picture.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refs #30
The executable's three debug-text shaders (TextVSQuad, TextPS_Tex,
TextPS_Sdf) carry their FSSM blob unpacked, under XDAT kind 0x0c
instead of 0x0d; they were read as containers without a program.
All three now translate and validate. `victory shaders --list <file>`
writes every shader that does not translate, one line each.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The ray-traced shadow tracers (CS_TraceShadowRays_*) take their
structure's address out of an SRV they pick from a table by an index
from a constant buffer, read its header at +48 and build the BVH
descriptor themselves. Only views at a fixed table place had their
address from the host (USER_VIEW_ADDRESS); these were refused as a
descriptor read only as data.

The host's table of strides by view heap slot (root SRV t255) now has a
second part after the strides: per slot the title address of the buffer
view or ray-tracing structure there (VIEW_ADDRESSES, two dwords, entered
where the stride is). Such a load reads dwords 0 and 1 from there;
dwords 2 and 3 stay without a value (a program that reads them still
stops). Pages the address reaches are found by the existing fault notes.
Four of the five tracers now translate and validate (FullAdaptive stops
later, at a lane mask).

shortcut: tables made afresh in dynamic slots have no entry (read 0), as
for strides; dword 1 holds the address bits only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The title's routine at image+0x1e86440 reserves 185 MB of graphics memory
below 4 GiB, splits it into five pieces, takes all their physical pages
in one XMemAllocatePhysicalPages and maps them in order: one stretch of
one section. Its 174 MB buffer at 0x34e10000 (the ring of constants, and
what the skinning passes write through one view of all of it) had a host
copy in the card's memory, ~17 MB a frame sent up in ~600 pieces, shader
writes fetched back and compared, and ~6,000 constant fills a frame.

With the switch the stretch is mapped once more at an address of ours and
opened as a host heap there (OpenExistingHeapFromAddress1); title buffers
and windows in it are buffers placed in that heap, the existing in-place
form of a host copy: nothing tracked, sent up, fetched back or compared.
The title's own views stay free to change; when it maps other pages
there the region is forgotten. A line on the frame-rate report counts
the CPU fills and buffer copies of ours that still read or write it.

Replay (play-1125-0127, heap in the PC's memory): the title's own work
+~3 ms on the card; the 30 ms added there are our compare passes, which
do not run over memory in place.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
DXIL wants one interpolation mode per signature row; the console packs a
nointerpolation float beside an int or a system value (the front face)
in one row, and our signatures declared the float linear: 48 pixel and
mesh programs were rejected by the validator ("interpolation mode that
differs from another element packed into the same row"). Float elements
nothing decides (unread inputs, outputs) now take the mode the row's
other elements agree on: same_mode_per_row from VIctory 13091f6e, ported
by hand (the whole commit conflicts in 18 places with what local/next
already took of it). All 48 now validate.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
image_get_lod of a 2D array passed the slice as CalculateLOD's third
coordinate, which DXIL wants undefined: three pixel programs
(PS_DeferredTextured_AlphaClip, PS_MirrorReflectionDeferredTextured_
AlphaClip, PS_VfxVBuffer_AlphaClip) were refused by the validator
("out of bound coord must be undef"). The level does not depend on the
slice, so the result is unchanged where a driver took the module.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Run port1-1: the title maps the five pieces of its 185 MB heap in another
order than their addresses, so the heap was views of one section in a
scattered order ("not one stretch of a section: Scattered") and nothing
was placed. With VICTORY_PORT_CONSTANTS=1 xmem now gives the page numbers
mapped into a 32-bit graphics reservation the slices at their offset in
it, when the reservation is all one section and both slices are fresh
(never mapped or written: no commit bit), which the title cannot observe.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Run port1-2: nothing was arranged and the heap was still scattered. The
title reserves it with kind 0x42000 (reserve, 0x40000), without the
64 KiB page bits, so it was not taken for a placeholder and was never
recorded. Any 32-bit reservation without commit is recorded now; the
test reserves the way the title does. A warning says once why pages
mapped there are left where they are.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit e278bc8091a0cb61a100caef6dff646d4b3b9e6f)
(cherry picked from commit 25b1bf3b5fa5f27998b3b3bcfaad58c79fef7423)
members() tested all 385 register slots to return the few that are live,
twice for every block of a program: 1.27 M tests for a 1,651-block
shader. Walk the seven set words by their lowest set bit instead, in the
same register order. The IR build is 4.5% faster on a synthetic GFX10
program of 12k and 24k instructions, and range::build 4.1% faster.

Co-authored-by: slatefield <[email protected]>
(cherry picked from commit 129a9ba2d5bed98004e373aa49804734ed0882ee)
Extend bfe_signed_and_unsigned_match_rdna2 in valu_tests with scalar unsigned s_bfe_u32 (SOP2 0x27), literal src1 operands, ignored src1[15:5]/[31:23] bits, 7-bit widths >= 32 (32, 64, 127), v_bfe_u32 5-bit width wrap, and SCC conditional selection for both s_bfe_u32 and s_bfe_i32 (#803).

(cherry picked from commit 23446978c24640c10a0fe3c6e94d8e097e48a914)
CS_TraceShadowRays_FullAdaptive reuses SGPRs between saved lane masks
and constant-buffer fields: a join of a mask and a number (lowered as
the number it is) is cut with s_and_b32 / s_or_b32, which
structurisation takes for lane masks, and the result is compared per
lane as a number. Its ballot holds lanes outside EXEC, so the program
was refused ("a lane mask holding lanes elsewhere read as data").

Such a read now takes the number the bit operations compute from their
operands (constants, root constants, values lowered as numbers, such
operations again; console lanes only, where the joined mask is the
console's number). Only on a second try, as first halves of
interpolations: with it on for every program, 69 compute programs that
already translated came out changed (CS_RaytracingResolve, ...); now
none does. `victory translate` makes the same second tries as runs
(emit_with_retries). FullAdaptive now translates and validates.

The test runs the joined register through both paths on the hardware
device (WARP takes no declared wave size); it found that a join read
only through such operations must be marked read, or its mask's edge
brought 0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The title's placed shader-visible view heap is its frame allocator's memory
(image +0x4d9f400); draws' and dispatches' tables are filled by six 32-byte
stores in +0x4d9efd0 and +0x4eec8e0. With the switch, the launcher patches
those stores (original bytes checked, a site that differs is left alone and
logged) to jump to code that does the store and marks the slot and its 4 KiB
chunk in maps of ours; our own mirroring marks too. sync_heaps takes the
marked slots in place of the write watch's changed pages. Fallback: every 8
frames the watch is asked, and 16 of its pages a frame are looked at whole;
a view record no mark told of is made, counted and logged with the place in
the title's code that last faulted on its block.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every rebuild of the translator translated every shader again into a
new set of entries (the key held the BLAKE3 of the translator's
sources): 16 GB of sets of earlier builds in victory-fork-cache\shaders.
The key is now victory_shader::TRANSLATOR_VERSION (bump it with any
change of what the translator makes), the entries' format and the
settings, plus the container: a rebuild that leaves the version keeps
every translation, and the store grows only by shaders that newly
translate.

Each entry (VSH2) also names the translator build that made it. An
entry of an earlier build is served as it is (counted, said once in the
log); `victory shaders` translates such entries again in place and
prints how many came out different, which tells whether the version
should have been bumped. VICTORY_SHADER_FRESH=1 refreshes in a run;
VICTORY_SHADER_KEY=source keys by the source as before. The pipeline
warm-up's fingerprint follows the same key.

Checked: all shaders translated into a fresh cache (25,790), then the
translator rebuilt with a comment added: 25,790 entries refreshed in
place, 0 different, no new files. Entries of the old key (VSH1) are
not read and not deleted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Run port2-2's fallback found ~250 view records a frame on its 16 pages that
the six patched stores had not told of; the runtime's memcpy was among the
last writers of their blocks. With the switch, the title's memcpy/memmove
imports mark each slot of the marked heap whose first word they copied is a
view record's. The fallback now also says how many of the missed records a
draw read through a table lately (made by the draw anyway).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
From codec-d/cool_fox (Graham): compose.rs (two planes drawn as one,
the second premultiplied over the first, each scaled to the screen),
Host::present_planes, the second plane read at the retail PresentX
stride of 72 bytes and checked to be a resource of ours, the overlay
carried through the submit lane's present job. Barriers from and to
COPY_SOURCE are left out when the texture is in it already.

Off by default: without VICTORY_PLANES=1 the first plane is shown alone
as before. Either way the first present with more than one plane is
logged once with what its second plane is. Left out of the fork's
commit: WakeByAddressAll on memory writes (the title never waits with
WaitOnAddress; only our threads do).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
From codec-d/cool_fox (Graham). TablePlan: what a shader's descriptor
tables hold (slots, CBV/UAV, last dword, entries by descriptor) is
grouped once when the pipeline is translated, not searched in the
declarations at every bind (State::tables). Same tables made, same
order of entries.

Fallback heaps: with VICTORY_FALLBACK_HEAPS=1 a list always has a view
heap and a sampler heap bound, a host heap of one slot (a null view, a
point sampler) for the one the title did not set, as a root signature
with directly indexed heaps wants. Off by default: only the heaps the
title set, as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The IR can retain an old destination on ordinary instructions that overwrite it. Only require implicit VGPR values on swaps and accumulators, where lowering consumes them.
Separate renderer-side shader translation and lock acquisition from D3D12 load and create calls. Also trace first-use waits and library serialization so a Present dependency trace can attribute worker time with the existing diagnostics.
From codec-d/cool_fox (641835a4, fabb872a, c64fc9b4, 08e4574d, e94d277a,
the values of the last): residency.rs asks the system's memory once a
second (the sweep). Under pressure (3 GiB of free RAM or 4 GiB of commit;
out again above 5 / 6) texture prefetch is limited to 64 MiB a frame,
idle scratch chunks are let go and the texture and staging pools keep
fewer empty blocks; below 1.5 GiB of commit 16 MiB a frame and no
spare staging block; the texture pass stops below 512 MiB of commit and
no new staging block or upload-ahead is made for textures picked by
index below 1 GiB (those a draw samples still get one). With 32 GiB of
RAM or less (or VICTORY_RESIDENCY_LIMITED=1): 128 MiB a frame, 32 MiB
on its way ahead, 16 submissions before objects are let go, fewer
spare chunks. Off by default.

Always (only after a failure): a pool whose new block was refused does
not ask again for 500 ms (it still uses its blocks), and an
E_OUTOFMEMORY from an upload buffer, texture heap or host texture stops
the texture pass for 500 ms, leaving its slots due. Tests from the fork
for the back-off and the reclaim.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
From codec-d/cool_fox (Graham). What the bindless buffer pass keeps of a
view heap (its passes, the ranges of its slots, and for
VICTORY_UNWATCHED_FRAMES > 1 the last refresh of each unwatched copy with
the span it covered) now lives on the host heap, so a heap made at the
address of one let go starts afresh instead of taking the old one's
ranges. With the default interval of 1 nothing else changes.

VICTORY_SWEEP_PER_HEAP=1 (off by default): the pass runs once a frame for
each view heap, not once for all of them, a list holds each heap's table
of strides by its own key, and a pass put off to submission time is left
out if the heap at that address has another table by then.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
From codec-d/cool_fox (Graham). VICTORY_XMA_REFILL=1 (off by default):
an XMA voice that ran out of input goes on when the title gives it a
valid buffer again, and the pump publishes only whole blocks (but the
padded tail) after at most 8 decoding steps. (The fork clears 6 bits at
word 2 bit 26 where the field read is 5 bits; 5 here.)

VICTORY_DSTORAGE_STAGING_MB=<n>: the DirectStorage staging buffer is at
least that big; unset, what the title asks for (32 MiB). The fork makes
it 256 MiB by default.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
From codec-d/cool_fox (Graham): the COPY_DEST -> NON_PIXEL_SHADER_RESOURCE
transitions after the card's copies of dirty ranges are made once for
each buffer; two shadows in one buffer gave two transitions of the same
subresource in one ResourceBarrier call.

Tests: victory-gpu --lib 343 ok, victory-hle ok, victory-shader --lib
286 ok, victory-loader --lib 42 ok.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
On a Ryzen with two core complexes of which one has the stacked cache
(7900X3D, 7950X3D, 9900X3D, 9950X3D) every core reports the same efficiency
class, so `fast_of` found no fast cores and no thread of ours asked for
any. Where the classes are alike and the last-level caches differ in size,
the sets on the largest one now count as the fast ones (at least eight of
them); processors with two kinds of cores still go by their class, and
those whose caches are all alike are left as they were. In diagnostics
builds `VICTORY_AB` can switch it while the title runs.

Measured on a 9950X3D + Radeon AI PRO R9700, diagnostics build,
VICTORY_AB=20,VICTORY_CACHE_CORES, 10 pairs of phases of matched draws
(within 15 %): median frame -1.3 % (noise), p90 -12.2 %, better in 8 of
10. In the steady part (about 3,900 draws) every phase with it had a lower
p90 (69-79 ms) than every phase without (81-86 ms).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	crates/victory-shader/src/emit/wave64_tests.rs
Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	crates/victory-shader/src/emit/wave64_tests.rs
Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	crates/victory-shader/src/emit/wave64_tests.rs
Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	apps/victory/src/translate.rs
Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	apps/victory/src/warm.rs
Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	apps/victory/src/main.rs
#	apps/victory/src/translate.rs
Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	docs/README-fxceless.md
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The title asks for 33,333 us (SetFrameIntervalX) because its graphics
settings hold a frame rate of 30 (settings +0x210): +0x1e0fb30 and
+0x22434a0 turn it into a frame time (+0x98f84ac), +0x247ab10 picks the
interval from it and the display's 60/120 Hz (a 120 Hz mode alone changes
nothing at 30), and +0x120530 is a QueryPerformanceCounter limiter of its
own at the same rate.

VICTORY_FRAME_INTERVAL_MS=<ms> (16.667, 8.333, 0 = no wait): frame.rs ticks
at that interval whatever the title sets; the loader makes the two loads of
the setting "mov eax, rate; nop" (rate = 1000/ms rounded, 0 = the title's
own "no limit"), with the original bytes checked. VICTORY_TITLE_FPS=<n>|off
overrides the rate or leaves the title alone. Diagnostics:
VICTORY_TIMER_LOG=1 logs the title's timers once a second and frame pacing
bands every 5 s.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Run fps-1 (our clock at 16.667 ms, the title left at 30): the menus ran at
16.7 ms until the title's own limiter came up at 30 s (then 33.3 ms), and
meanwhile five of its seven timers stepped 33.3 ms a frame: game time ran
at twice the wall clock. The timer update (+0x2226040) takes the real time
since the last frame but at least 1/rate (+0x6849844), and that rate comes
from +0x2241fd0, a third read of the same setting. It now returns the rate
asked for (1000 for no limit), the original bytes checked first.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- lightprobe.rs (VICTORY_LIGHT_PROBE=<csv>): a line a frame of what the
  title's exposure (PS_CalculateExposure) and lux factor
  (ComputeLuxCompressionInfo[Smooth]) programs read and write, and of the
  stand-in for the indirect light (its slow mean; the sampled mean of the
  title's resolve, the estimate and what was written).
- texlate.rs: how long textures take to be shown (slot written to
  uploaded, with or without waiting for memory; upload to the slot showing
  it; first part view to whole level 0; last look that found memory away
  to the upload), a line with the memory lines.
- ambient.rs: VICTORY_AMBIENT_SETTLE=<ms>[,<jump>[,<fresh s>]]: the slow
  mean of the light around (20% of every pixel's estimate) follows by a
  time constant instead of 0.04 a frame (25 frames: 2-4 s at 7-13 fps),
  takes a change by more than <jump> at once, and optionally bounds the
  title's leftover by the estimate for <fresh> s after such a jump.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- texstore.rs: a texture uploaded whole from level 0 is kept (memory, up to
  4 GB, and the folder) under keys of its shape and the digest of its
  smaller levels (>= 32 KiB of them, the start of its memory). A texture
  later first viewed from such a level with those bytes gets a whole host
  copy: the larger levels are copied from the store by its first upload's
  list, and its views show from level 0.
- draw.rs heap_textures: the backoff of looks at slots whose memory is
  away was 'about four seconds' counted in passes (several a frame): up to
  256 frames, 13-18 s; VICTORY_TEXTURE_LOOK_MS=<ms> caps it by frame time.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Brings in what avatarmanz/main added since 0a435665 on top of the
cool_fox base and our own fixes:

- the 33 reviewed pull requests (wave32 translation of LDS-flag regions,
  BVH prefix scans and tiled cascade shadows, sampler heap null sentinel,
  buffer-slot scans, pipeline book retries, guard-page copies, DRED stop
  command, present counting, replay fixture fixes, census, save quota,
  warm worker failures, play.ps1 exit codes and discarded settings, and
  the rest), with their tests
- renderer ports 1 and 2 (VICTORY_PORT_CONSTANTS, VICTORY_PORT_DESCRIPTORS,
  both off), view addresses picked at a computed index, the versioned
  shader store, the translator fixes and their tests
- the frame rate switch (VICTORY_FRAME_INTERVAL_MS, off by default)
- big-cache cores on dual-CCD X3D Ryzens (VICTORY_CACHE_CORES, on)
- the copy-queue uploads, joined barriers, in-place heap sync,
  show-new-later and the other measured submission work, with their
  defaults
- the xtask check that every switch the docs name is read

How the conflicts were settled:

- avatarmanz's own port of cool_fox (the eval/coolfox merge a12870aa and
  0ce46d5a: two-plane compose, TablePlan, fallback heaps, residency
  budgets, per-heap sweep, XMA refill, staging floor, the barrier fix)
  covers the same code this tree already runs. It was left out and the
  cool_fox implementation kept, with its NVIDIA defaults (all of it on).
  Their switch names still work: VICTORY_PLANES=0 turns the composing
  off, VICTORY_RESIDENCY_LIMITED=1 forces the smaller-PC budgets, and
  VICTORY_FALLBACK_HEAPS, VICTORY_RESIDENCY, VICTORY_SWEEP_PER_HEAP and
  VICTORY_XMA_REFILL=1 ask for what is already always on here.
  VICTORY_DSTORAGE_STAGING_MB keeps the cool_fox default of 256.
- Where both sides cleared the same clippy lint, ours stays.
- warm.rs takes their run_batches, which also reports worker startup
  failures.
- lane_uniform takes their rewrite (alike conditions, the wave thread
  id, any LDS read at an alike address) and keeps cool_fox's rule that
  an LDS read counts only where group barriers order both host waves.
- The view-address table is written next to our write_stride; the
  movie-plane step counts as a reader of placed copies; the first-upload
  aliasing barrier goes through the joined-barrier list.
- README.md is ours. play.ps1 is ours, minus the VICTORY_SKIP_PIPELINES
  value that only produced a warning (their PR #78); it gains their exit
  codes and the note on discarded settings.
- docs/this-fork.md no longer names VICTORY_IDLE_LISTS, which no code
  reads (the new xtask check).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	crates/victory-gpu/src/draw.rs
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The title takes its output size from its settings (settings.xml video/resolutionFullscreen,
3840x2160 as a Series X wrote it) and applies it at +0x224352b (+0x22434a0) through the one
screen size setter +0x2478130; the back buffers follow (+0x247ad10). VICTORY_OUTPUT=<w>x<h>
(one of the title's own modes) makes that block write the size into the settings, then take
the title's own path. VICTORY_RENDER_SCALE=<0.5..1.0> replaces the title's own upscaler's 2/3
(+0x28f1e78) and FidelityFX's scale (+0x28ef680, as pull request #53); VICTORY_UPSCALER=<6|7>
is pull request #53's picker patch (+0x7e93f0). Each site's bytes are compared first; another
build is left alone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The title makes its back buffers in a 64 MB pool (Series X) and stops at an int3 unless less
than 2 MB of it is left over; at 1920x1080 49 MB are (run res-1 stopped there 2 s in).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Heaps are made without sharing across adapters, so the resources placed in them
cannot ask for it: the buffers renderer port 1 places in the heap opened from the
title's graphics memory (and every other heap opened from memory) were refused
("parameter incorrect", 1,326 to 3,576 a capture). With `--timing detailed`, a
list that runs no shader but ours (the host's state preludes, copies of what
the CPU sent up, the card copies' passes) has its commands summed under
"... (lists of ours)".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The console takes constant buffers on 16 bytes, D3D12 views on 256, so every
constant buffer a draw's tables name was copied at each submission into upload
memory of ours (~23,000 a frame of the city, ~9 MB, out of the title's graphics
memory that renderer port 1 already has the card read in place), and each root
one not on 256 bytes (64 KiB each).

With the switch, translated shaders read constant buffers as raw bytes
(victory_shader::emit::constants_raw): a table's (or one picked from the heap)
through the raw twin of its slot, a root one as a root SRV. The host makes a
table's constant buffer in title memory in place a raw view of the title's
bytes in that twin (descriptor::host::constant_raw_at): no copy, no step at
submission. Others are copied as before (their twin is a raw view of the copy);
a title slot's constant buffer view gets a raw twin (a raw read through a
constant buffer view has no end on AMD). The shader cache keys on the switch
(only when on: translations cached without it keep their key, so the
translator version stays). VICTORY_PORT_CBV_PLACE=0 copies again while reading
raw; with VICTORY_AB=<s>,VICTORY_PORT_CBV_PLACE both sides in one run.
Per-second line: "renderer port 5 (VICTORY_PORT_CBV=1) per frame: ...".
Test: emit::tests::table_constant_buffers_read_as_raw_bytes_through_their_twins
(WARP: the twin is read, the slot's own view is not).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Series S renders through FidelityFX (+0x28ef680). With its scale at 0.5 (run res-6) FidelityFX's
jitter phase count came back 0 and the title divided by it at +0x28f03e8, 49 s in. The title's
own upscaler (Series X) ran at 1.0 (run res-4). The FidelityFX patch stays, behind its own switch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Brings in the 13 commits on top of 722c0e1c:

- The light stand-in's slow mean settles by the clock instead of per
  frame (VICTORY_AMBIENT_SETTLE; unset means 250,3, 0 restores the old
  per-frame step), plus the light probe (lightprobe.rs).
- A disk store of sharp texture levels keyed by the bytes of the smaller
  ones (VICTORY_TEXTURE_STORE, off), filled on its own thread, with a
  prefill of the larger levels on the first upload.
- Texture-wait probes (texlate.rs, VICTORY_TEXTURE_LOOK_MS, off).
- Output size and render scale switches (VICTORY_OUTPUT,
  VICTORY_RENDER_SCALE, VICTORY_UPSCALER, VICTORY_FFX_SCALE), all off.
- Renderer port 5: constant buffers read in place as raw bytes
  (VICTORY_PORT_CBV=1, off).
- Replay: buffers placed in heaps opened from title memory are made
  again; detailed timing keeps our own lists' commands apart.

Conflicts, settled on our structure:

- descriptor/host.rs: HostHeap::flip keeps the pending-flip list and
  PendingGuard. The new `asked` field of Flip is taken when the flip is
  requested and stored with the pending entry; the test literals set it
  to 0.
- draw.rs: both the bake block (sync.keep/publish) and the new texlate
  notes from texture_slot_since stay, bake first.
- texture.rs: the upload body stays in record_upload, which now takes the
  HostTexture instead of its bare resource. The store prefill and its
  texlate note go there, right after the existing aliasing barrier and
  the COPY_DEST transition (no second barrier). prefill_levels comes in
  unchanged.
- emit/mod.rs: re-exports both SLOT_TABLE_STRIDES and constants_raw.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The sets of guarded blocks are of atomic words and GUARDS is a reader-writer
lock. With the switch a write fault, a refresh guarding its range and a block
made known by its bits take the lock shared and the claims (BUSY bits) of the
blocks they change: faults wait only for whoever changes the same block, not
for one another, and refreshes do not wait for faults. Faults wait for claims
in block order, refreshes only try for theirs (a block they cannot claim stays
written, told so at the next asking), so no two wait for each other. What
changes more than single blocks (mappings, kernel reads, freed memory, holes)
still holds the lock alone, as before. Blocks known as view memory (VIEWS) go
to the guards at once instead of a kernel asking that is refused.
VICTORY_GUARD_HOT=<ms> (off): blocks written again soon after each taking
rest longer. End-of-run line: renderer port 6 per frame.
Tests: three stress tests of the view writes with the switch on (all
threads, half of them, resting and hot blocks).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
upload_from no longer needs its own handle on the host texture now that
record_upload takes the HostTexture. host::indirects carried the same
dead_code allowance both on its mod item and as an inner attribute;
clippy denies the duplicate, so only the inner one stays.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
One submission a frame spent up to 6 ms in that look alone (run guard-3,
the timeline at 100 s: 5.8 ms with nothing else on the lane) while the six
threads beside it waited; with more than 256 refreshes it was already done
beside them, as each one's first step.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Run guard-4's timeline: the submission with most of the frame's steps spent
2.9 ms gathering them and 3.9 ms on the spans, alone. Each list's steps are
now folded per copy beside it (fold_touches: the span of its refreshes
before its first write by shaders, whether it writes it) and the folds
joined in list order (join_keys), which gives what front_spans gives of the
whole submission, span for span and in order: front_tests, 3,000 random
submissions of lists, parts, refreshes and writes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Both sides of the 722c0e1c merge added the same allow, one above the
derive and one below it; clippy denies the duplicate.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
constant_raw_at (renderer port 5, VICTORY_PORT_CBV=1) wrote the slot's constant buffer view and its raw twin but left the slot's word in the stride table, which every other writer of a slot sets. A dynamic slot reused from a structured or typed view kept a nonzero stride, sending heap-indexed constant reads into the buffer-view branch. Found in review of the merge.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Renderer port 6 (VICTORY_PORT_GUARD=1, off by default): the guards' lock shared by faults and refreshes with per-block claims, view memory not asked of the kernel, a submission's refresh planning moved to the threads beside the submitting one (VICTORY_PORT_GUARD_PLAN). Their README update is not taken: this tree keeps its own.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The heaps' records: a round of the heap-sync thread is asked for when the
title submits, and the lane waits for that round, or for one begun after a
wait of its queue went or a step of ours wrote a heap's memory
(port/lane 97033e5a; its plans part is left out, port 6 plans beside the
lane already).

The journal: the pages' notes are in 64 parts, each under a lock of its
own. With the switch an answer is noted holding the journal shared and its
pages' parts for writing (writes, landed_beside, a submission's asking
before its ranges and number are set alone); what has nothing to change
(wrote with no asking standing, ask_once_end, ask_ahead_done) looks shared
first. A fresh number to answer with is taken holding the range's parts,
switch or not, so an A/B run mixes both safely; a page's note only goes up.

End-of-run line each second: renderer port 7 (heaps' waits with and
without the switch, rounds asked at submit; the journal's waits, the
lane's own among them). Tests: parts and ranges, notes out of order, a
fresh number sees every lower note with no deadlock (8 threads), no write
lost with the switch on in all threads and every other one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Run p7-1 (in-run A/B): with part 1 alone the lane still waited 4.1 ms of
5.3 for the heaps' records; 2.4 of 16 preparings a frame found their round
asked earlier. A wait that goes now asks for its round at once (as patch 4's
part 2 did), and one met by the card's own write raises no floor. Counted:
preparings that had to ask at the preparing, and those with no mark.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
open() takes &Guards since renderer port 6 shared the guards' lock
between faults and refreshes; the remap path still passed &mut, which
clippy rejects under -D warnings (unnecessary_mut_passed).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Renderer ports 5 and 6, the output-size and render-scale switches, the
time-settled light stand-in, the texture store and the frame-rate unlock,
all off by default except the light settling.

Conflicts kept both sides: ambient.rs measures the title's leftover light
before the magenta filter drops it; descriptor.rs keeps the ownerless-view
cap and exports VIEW_TAG to the crate as port 5 needs. watch.rs hands
open() the remap guards by shared reference (clippy). Our README and
play.ps1 stay.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The heaps' records asked for at the title's submit and the journal's
notes split in 64 parts with locks of their own (VICTORY_PORT_JOURNAL=1,
off by default). Our README stays.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Both sides kept:
- shader_cache.rs: the version-keyed cache with stale-entry refresh, and
  the translation handed to the caller when the cache write fails
  (`made` now also tells a miss from a hit, replacing `ran`).
- descriptor/host.rs, draw.rs: a slot flip keeps the record key read at
  selection, and the texture-wait notes stay.
- lower.rs: thread tickets and the partial-group mask; LDS regions that
  read and write are taken with the loose-LDS fallback on, else only when
  they just raise flags.
- wave64_tests.rs: both sets of new tests.

TRANSLATOR_VERSION goes to 2: the batch changes translations, and cache
entries made by avatarmanz's own builds under version 1 must not be
served for them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
b68e65e0 sends a structured view whose slot has no raw twin, and that
begins off 16 bytes, to a copy of its own bytes (shadow::exact). An RTX
4090 takes no heap with raw twins, so that applies to every such view:
the title's ring positions sent 265 to 1,968 views a frame there and
made 16 to 313 new copies a frame, each a buffer created while holding
exact's lock. A PIX capture shows the list threads waiting on that lock
about 40% of the time; the frame rate fell from 21 to 6 fps on Series S.
With exact copies off for a check (VICTORY_VIEW_BYTES=0) the same build
ran at 21.1 fps.

The rule stays behind VICTORY_STRUCTURED_RAW=1, off by default, which
is how main behaves today.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 17:14:26 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-26 17:13 UTC · original · edited 2026-11-26 17:20 UTC

Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T17:20:35.542099Z 2b51c6c PR opened
🔒 Security Review ✅ Completed 2026-11-26T17:16:16.535143Z 2b51c6c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-26 17:13 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/37#issuecomment-7198684666) · edited 2026-11-26 17:20 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"2b51c6cfc6cbaf72c66b2e036c47e553ee7c216d","has_any_findings":true,"has_unresolved_findings":true,"status":"completed"},"security_review":{"commit_sha":"2b51c6cfc6cbaf72c66b2e036c47e553ee7c216d","has_any_findings":null,"has_unresolved_findings":null,"status":"completed"}} --> <!-- codex-security-review:v1 {"blockingSeverityThreshold":"P0","headSha":"2b51c6cfc6cbaf72c66b2e036c47e553ee7c216d","mergeGateEnabled":false,"pullRequestNumber":37,"repository":"TaynanGT/Vice-Tay","status":"completed"} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-26T17:20:35.542099Z">2026-11-26T17:20:35.542099Z</relative-time> | `2b51c6c` | PR opened | | 🔒 **Security Review** | ✅ **Completed** <relative-time datetime="2026-11-26T17:16:16.535143Z">2026-11-26T17:16:16.535143Z</relative-time> | `2b51c6c` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
github manually merged commit 879e1734b7 into main 2026-11-26 17:20:16 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-26 17:20 UTC · original · reviewed

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2b51c6cfc6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@⁠codex address that feedback".

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-26 17:20 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/37#pullrequestreview-6078263562) · **reviewed** <!-- codex-review-receipt:v1 --> ### 💡 Codex Review Here are some automated review suggestions for this pull request. **Reviewed commit:** `2b51c6cfc6` <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@⁠codex address that feedback". </details>
@ -1006,0 +1059,4 @@
// SAFETY: an open list; both locations name live resources.
unsafe { list.list.CopyTextureRegion(&to, 0, 0, 0, &from, None) };
}
copy.prefilled.store(levels, Relaxed);
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-26 17:20 UTC · original

P2 Badge Publish prefilled mip levels only when their upload is submitted

With VICTORY_TEXTURE_STORE enabled and a cache hit, recording the first upload immediately sets prefilled, while record_upload permanently consumes copy.prefill. If that command list is reset without being submitted—a case explicitly supported by list::reset—the GPU copies are discarded but neither field is restored. Subsequent uploads therefore never copy the cached larger mip levels, while make_twinned uses prefilled to expose them through show_prefilled, causing shaders to sample uninitialized texture contents. Keep the prefill data retryable until submission and publish the completed-level state through the submission-time work rather than during recording.

Useful? React with 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-26 17:20 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/37#discussion_r4711638191) **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Publish prefilled mip levels only when their upload is submitted** With `VICTORY_TEXTURE_STORE` enabled and a cache hit, recording the first upload immediately sets `prefilled`, while `record_upload` permanently consumes `copy.prefill`. If that command list is reset without being submitted—a case explicitly supported by `list::reset`—the GPU copies are discarded but neither field is restored. Subsequent uploads therefore never copy the cached larger mip levels, while `make_twinned` uses `prefilled` to expose them through `show_prefilled`, causing shaders to sample uninitialized texture contents. Keep the prefill data retryable until submission and publish the completed-level state through the submission-time work rather than during recording. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
@ -351,0 +442,4 @@
crate::port_descriptors::asked(&taken);
}
for page in crate::port_descriptors::to_check(frame) {
parts.push((page.max(start as usize), (page + crate::watch::PAGE).min(end as usize), true));
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-26 17:20 UTC · original

P2 Badge Make marked-slot and fallback-page scan ranges disjoint

With VICTORY_PORT_DESCRIPTORS=1, a marked slot can also lie on a page selected by the fallback in the same round. Both ranges are appended to parts without removing their overlap, then dispatched through land::each_view, which defaults to six threads for record scans. Separate jobs can consequently call Copied::changes_in_place or Copied::changes on the same non-atomic backing bytes, while Copied::seen can read those bytes concurrently. This violates those methods' explicit exclusive-slot safety requirement and can race or tear the descriptor records used to classify changed slots. Split or merge the ranges into disjoint slot ownership before dispatching the jobs.

Useful? React with 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-26 17:20 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/37#discussion_r4711638200) **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Make marked-slot and fallback-page scan ranges disjoint** With `VICTORY_PORT_DESCRIPTORS=1`, a marked slot can also lie on a page selected by the fallback in the same round. Both ranges are appended to `parts` without removing their overlap, then dispatched through `land::each_view`, which defaults to six threads for record scans. Separate jobs can consequently call `Copied::changes_in_place` or `Copied::changes` on the same non-atomic backing bytes, while `Copied::seen` can read those bytes concurrently. This violates those methods' explicit exclusive-slot safety requirement and can race or tear the descriptor records used to classify changed slots. Split or merge the ranges into disjoint slot ownership before dispatching the jobs. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
@ -3123,0 +3576,4 @@
return Ok(None);
}
let c = self.cur;
let slot = self.heap_index(site, 0, false)?;
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-26 17:20 UTC · original

P2 Badge Populate view addresses for snapshotted descriptor tables

When a dynamically indexed buffer descriptor belongs to a table containing a CBV, State::tables snapshots that table into dynamic slots and State::bind substitutes the dynamic table offset in the shader's user data. This lookup therefore indexes VIEW_ADDRESSES using the dynamic slot, but the address table is populated only by HostHeap::note_buffer for title slots; neither make_at nor make_listed, which create the snapshot, writes the corresponding address. The new translation consequently returns a zero pointer instead of the buffer's title address for this supported table configuration. Populate the address metadata when creating or copying dynamic descriptors as well.

Useful? React with 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-26 17:20 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/37#discussion_r4711638215) **<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Populate view addresses for snapshotted descriptor tables** When a dynamically indexed buffer descriptor belongs to a table containing a CBV, `State::tables` snapshots that table into dynamic slots and `State::bind` substitutes the dynamic table offset in the shader's user data. This lookup therefore indexes `VIEW_ADDRESSES` using the dynamic slot, but the address table is populated only by `HostHeap::note_buffer` for title slots; neither `make_at` nor `make_listed`, which create the snapshot, writes the corresponding address. The new translation consequently returns a zero pointer instead of the buffer's title address for this supported table configuration. Populate the address metadata when creating or copying dynamic descriptors as well. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
@ -351,0 +442,4 @@
crate::port_descriptors::asked(&taken);
}
for page in crate::port_descriptors::to_check(frame) {
parts.push((page.max(start as usize), (page + crate::watch::PAGE).min(end as usize), true));
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 01:33 UTC · original

Confirmed on cc9ed86. Marked runs and fallback pages still reach the parallel scanner without a disjoint assignment. I opened #106 with a regression case that checks exclusive slots while preserving fallback coverage.

**@⁠TaynanGT** on GitHub · 2026-11-27 01:33 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/37#discussion_r4714817289) Confirmed on `cc9ed86`. Marked runs and fallback pages still reach the parallel scanner without a disjoint assignment. I opened #106 with a regression case that checks exclusive slots while preserving fallback coverage.
@ -1006,0 +1059,4 @@
// SAFETY: an open list; both locations name live resources.
unsafe { list.list.CopyTextureRegion(&to, 0, 0, 0, &from, None) };
}
copy.prefilled.store(levels, Relaxed);
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 01:33 UTC · original

Confirmed on cc9ed86. The cache hit is consumed and the mip count is published while recording, so a reset can discard only the copies. I opened #105 with a synthetic reset/retry check.

**@⁠TaynanGT** on GitHub · 2026-11-27 01:33 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/37#discussion_r4714817391) Confirmed on `cc9ed86`. The cache hit is consumed and the mip count is published while recording, so a reset can discard only the copies. I opened #105 with a synthetic reset/retry check.
@ -3123,0 +3576,4 @@
return Ok(None);
}
let c = self.cur;
let slot = self.heap_index(site, 0, false)?;
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 01:33 UTC · original

Confirmed on cc9ed86. Shader user data receives the dynamic table offset, but the snapshot paths update only the stride. I opened #107 with a synthetic snapshot and slot-reuse test plan.

**@⁠TaynanGT** on GitHub · 2026-11-27 01:33 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/37#discussion_r4714817580) Confirmed on `cc9ed86`. Shader user data receives the dynamic table offset, but the snapshot paths update only the stride. I opened #107 with a synthetic snapshot and slot-reuse test plan.
@ -351,0 +442,4 @@
crate::port_descriptors::asked(&taken);
}
for page in crate::port_descriptors::to_check(frame) {
parts.push((page.max(start as usize), (page + crate::watch::PAGE).min(end as usize), true));
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 01:39 UTC · original

Draft #112 keeps the marked runs intact and limits each fallback scan to complete unmarked slots. This gives each slot one owner and keeps a marked read independent of a failure elsewhere on its fallback page. Both regression tests passed in the default and diagnostics configurations. Windows CI

**@⁠TaynanGT** on GitHub · 2026-11-27 01:39 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/37#discussion_r4714845857) Draft #112 keeps the marked runs intact and limits each fallback scan to complete unmarked slots. This gives each slot one owner and keeps a marked read independent of a failure elsewhere on its fallback page. Both regression tests passed in the default and diagnostics configurations. [Windows CI](https://github.com/TaynanGT/Vice-Tay/actions/runs/45923385053)
This discussion has been locked. Commenting is limited to contributors.
No description provided.