Tested merge candidate: open PRs added a batch at a time, each batch built, tested and run on the title (replaces #3327) #3409

Open
github-bot wants to merge 147 commits from github-bot/gh-3409 into main AGit
Owner

@⁠pes7 on GitHub · 2026-11-26 22:51 UTC · original
pes7:merge/tested → main · +8483 −593 · 35 files · 147 commits · open

Correction (hardware): the title runs of this branch's batches ran on the machine's integrated AMD Radeon (RDNA, shared memory), not on its NVIDIA RTX 5070 Ti as the text below said. Windows chose the integrated GPU for the path the test builds ran from, which had no per-app GPU preference. Earlier runs from another path, the ones that bisected #3327, were on the RTX 5070 Ti. So this set is known to hold together on an AMD iGPU. The same checks on the RTX 5070 Ti come next, and this description will say what they show.

Draft, a tested merge candidate. main plus 53 open pull requests, added a few at a time. Each step was checked by building, testing and running the title, so maintainers can see which PRs are known to work together and with the title. It replaces #3327, which is closed (see below for why).

Nothing here closes or replaces any of these pull requests: each stays open and is closed only when it lands in main. If it helps, merging this branch lands them all at once with the checks below already done. Picking single PRs from the list is just as fine.

Why a smaller tested set, not everything that is green

In #3327 I merged every open PR that merged cleanly and had a green check, 375 of them. That set builds and passes cargo test, but it does not run the title. Each problem below was found by bisecting that set or by others' reports:

  • Device removal (0x887A0004) about 70-90 s in, at the first cutscene, on a machine with three adapters. One cause found in the set was #967 (the adapter choice); other combinations still did it after #967 was reverted.
  • Access violations, writes to read-only pages, in a group of xmem / guard PRs. #2848's guard-reopen commit was one of them, confirmed independently in #2848 by @⁠Jackster and since removed from it.
  • A black or washed-out picture with the audio still running.
  • Tests that pass alone but fail in the set: #2012 (the table decoder fails about 320 shader tests together with the rest), #2336, #2731, and #2626 (with a PR of mine that changed the same formats, since closed in favour of #2626).
  • A semantic conflict (#2706 with #1653) and lower.rs growing past the 512 KiB asset policy once enough shader PRs are combined.

So "mergeable and green" alone is not enough: individually fine PRs break the title in combination. This branch therefore grows only by steps that keep the title running.

How each PR got in

PRs taken, most useful first:

  • triage verdict merge-candidate on their current head;
  • the change is in runtime code, not only tests;
  • no negative reports from testers in the discussion;
  • ranked by the number of independent confirmations and by whether the title fixes a crash or wrong behaviour.

They were added in batches (six at first; later rounds larger, halved on failure). Since the device-removal fix, every new state also gets three title runs, with the D3D12 debug layer on. A batch stays only if all of these hold:

  1. cargo check --workspace --all-targets --locked
  2. cargo test --workspace --locked: 0 failures (the one known flaky relaunch_closes_its_duplicated_process_handle is ignored)
  3. The title for 300 s (release + diagnostics, Series X, a scripted Enter / hold schedule through #3392, warm shader cache), judged automatically, with screenshots every 30 s also looked at:
    • no device removed;
    • no unhandled exception or panic;
    • no black picture from 150 s on;
    • the world reached (over 10 000 draws a frame).

A batch that fails is halved until the PR that fails it is out. That PR is listed with the reason.

The base, main + #3392 alone, reaches the prison yard in 300 s with 10 552 draws a frame. #3392 is in the base only because the scripted input needs a held key.

In this branch (53)

Batch 1, title OK (max 10132 draws a frame):

  • #2703 GPU: a root constant's dword 4 is a value, not a view offset (#2699) (@⁠Calvix2k)
  • #2319 GPU: create a texture without a host UAV format without the flag (@⁠Calvix2k)
  • #601 GPU: bound texture upload and capture slices to the allocated buffer (@⁠AwsAli05)
  • #1406 GPU: fix NULL/UNKNOWN SRV/UAVs on promoted-typeless textures and MSAA/array/3D NULL RTV/DSVs (@⁠ESAT586)
  • #1849 GPU: free memory is not the runtime's to watch (fixes a world-load deadlock under Wine) (@⁠crashbashash)
  • #2598 GPU: giving up a texture leaves the dynamic slots of recorded lists alone (@⁠BastienRodz)

Batch 2, title OK (max 11200 draws a frame):

  • #602 GPU: report retained snapshot, texture scratch and upload memory (@⁠lucaseddd)
  • #2088 GPU: reuse loose windows that hold a range (#402), 256 KiB windows opt-in (VICTORY_LOOSE_WINDOW_KIB) (@⁠desplmfao)
  • #1978 GPU: no texture layouts or name copies per draw for unchanged answers (@⁠0xkn0wh3r3)
  • #2579 Core: ignore empty LOCALAPPDATA, XDG_CACHE_HOME, and HOME in default directory resolution (@⁠reeledMarek)
  • #2553 HLE: avoid data race in DirectStorage late page-list polling (@⁠reeledMarek)

Batch 3, title OK (max 10581 draws a frame):

  • #2666 GPU diagnostics: end draw traces at every present (@⁠andrewpozdnakov7-jpg)
  • #2327 GPU: a save that fails gives its changes back for the next one (@⁠denkencar-sketch)
  • #2630 PE: refuse a tls directory that runs outside the image (@⁠imjustprism)
  • #1217 GPU: the copies timing no longer counts the flush before a title copy twice (@⁠neonbyte1)
  • #2704 Round rectangle half-float attributes to even and preserve NaNs (@⁠VlREX)
  • #3005 GPU: make already-used pipeline lookups read-only (@⁠AwsAli05)

Batch 4, title OK (max 11409 draws a frame):

  • #2437 GPU: a marked copy-back advances the snapshot of declared ranges over its page (@⁠BastienRodz)
  • #3064 GPU: round depth-twin UNORM16 copies at the exact midpoint (@⁠andrewpozdnakov7-jpg)
  • #3022 GPU: read D24S8 and D32S8 planes into guest buffers (@⁠andrewpozdnakov7-jpg)
  • #3039 GPU: a lost host list's heaps are not a wanted pair (@⁠kotekompotek)

Batch 5, title OK (max 10827 draws a frame):

  • #2578 Core: ignore empty VICTORY_LOG and RUST_LOG values instead of overriding default log level (@⁠reeledMarek)
  • #2392 HLE: a null or empty subkey opens the emulated OEM key itself (#765) (@⁠KainanP)
  • #2099 GPU: stop the descriptor view table growing without bound (@⁠0xkn0wh3r3)
  • #2962 GPU: sample packed 10-bit frames for black-frame diagnostics (@⁠andrewpozdnakov7-jpg)
  • #2873 GPU: a title buffer view takes a format the host takes, or stays null (@⁠0xkn0wh3r3)
  • #450 GPU: preserve typed null render target slots (@⁠fuzeofficlal)

Batch 6, title OK (max 10317 draws a frame):

  • #2472 GPU: hoist and batch indirect argument clamps into the list prelude (@⁠ESAT586)
  • #3035 GPU: write faults read the bytes they save without the guard lock (@⁠liandraraiane)

Batch 7, title OK (max 10578 draws a frame):

  • #2940 GPU/Bindless: O(1) texture forget reverse index, FxHash maps, and identical-rewrite fast-path (@⁠RVZO6)
  • #3052 GPU: read-mark scans stop at the end of the view slots in use (@⁠0xkn0wh3r3)

Batch 8, title OK (max 10473 draws a frame):

  • #1888 GPU: cache alias-copy footprint plans (@⁠nathanbzrr)
  • #3041 GPU: refresh heap textures with untracked pages (FIND-17) (@⁠leftmove)
  • #2173 GPU: handle typed D16/D32 and multisample depth twins (@⁠fuzeofficlal)
  • #2187 GPU: a readable texture does not share a host texture denied to shaders (@⁠fuzeofficlal)
  • #2199 XMem: preserve overlapping source pages during GPU mapping copies (@⁠Razdva122)
  • #2238 Watch: dropping a tracker keeps a mapping guarded while a tracker holds its alias (@⁠denkencar-sketch)
  • #2240 GPU: title memory copies are brought up to date again after a title write (@⁠denkencar-sketch)
  • #1722 GPU: the host pipeline library works under Wine (null blob for an empty library) (@⁠Impre-visible)
  • #1414 GPU: avoid clobbering HostList prelude allocator when a list executes twice in one submission (@⁠ESAT586)
  • #2250 GPU: pipeline workers take their count from VICTORY_PIPELINE_THREADS (@⁠kotekompotek)
  • #1701 GPU: VICTORY_MODE overrides the reported console display mode (@⁠Calvix2k)

Batch 9, title OK (max 11812 draws a frame):

  • #2634 victory-gpu: say once, not per slot, that the title's heap outgrew the host's (first frame 21 s -> 33 ms) (@⁠pes7)
  • #2696 victory-gpu: VICTORY_SKIP_PIPELINES works in release builds, where the removals are (@⁠pes7)
  • #2014 GPU: a mesh dispatch with an empty dimension runs nothing (@⁠artor410)
  • #2605 GPU: waits on memory that cannot be read are counted apart (#2604) (@⁠BastienRodz)
  • #541 GPU: retain D3D12 object names in private data (@⁠broccolize)
  • #2850 GPU: refresh table CBVs on fresh_tables cache hits (@⁠fuzeofficlal)
  • #1993 GPU: hash DXIL shader slices zero-copy in HostPipeline::new (@⁠nathanbzrr)
  • #3111 Formats/BCPack: restrict BC7 channel rotation to modes 4 and 5 (@⁠RVZO6)
  • #2741 PE: reject null IAT RVAs in non-empty import descriptors (@⁠fuzeofficlal)

Batch 10, title OK (max 11017 draws a frame):

  • #2729 GPU: keep rectangle corners consistent across vertex streams (@⁠andrewpozdnakov7-jpg)
  • #642 GPU: translate enhanced texture barriers in ID3D12GraphicsCommandList7::Barrier (@⁠nathanbzrr)

A fix on top: #3540 (an invalid raw SRV removed the device)

After the batches from #2472 to #1701, the title removed the device in 3 of 4 runs, about 200 s in. #2472 + #3035 had also needed a second run. Each time it was DXGI_ERROR_INVALID_CALL. With VICTORY_D3D12_DEBUG=1 the debug layer named the call: CreateShaderResourceView of a raw view with FirstElement (2). The host wants raw views to start on 16 bytes; the console takes any dword.

This is in main (buffer_srv), not in any of the PRs here. The PRs only change which host copies exist, so the faulting view came up more often. #3540 makes raw views (SRV, UAV and constant buffers) take a copy that starts on 16 bytes. It is merged here as its own commit.

With it, the same set: 3 of 3 title runs with no device removal and no raw-view message from the debug layer; cargo test --workspace 930 passed, 0 failed; clippy -D warnings clean, also with --all-features.

Merges adapted here, not in the PRs

#450 changes Host::rtv to take Option<&ID3D12Resource>. Tests written against main stop compiling next to it: #2962's (1e25b23), and #2729's and #642's (965d938). These commits change only those test calls, &x to Some(&x).

Tried and left out

  • #3061 GPU: a draw's table entries are looked up once: tests: its new shadow test hangs victory-gpu's lib tests (main+3061 1/15 runs, 27586c2+3061 1/3; main 20/20 and main+3061 without that test 20/20 clean)

Conflict with the set so far (need a rebase onto it, not judged)

#2821, #2542, #2727, #3065

Status

  • Next: the rest of the runtime PRs outside victory-shader (about 140), in the same way, as the machine is free for title runs. This branch is pushed only at points where the title run passed. A failing run is repeated before a PR is left out, since a device removal can come and go.
  • Then the 85 shader PRs, in larger groups, because every translator change makes the title translate all shaders again.

Known and open: in about one run in three, the cutscene picture stays black for about 60 s (roughly 120-180 s in) while the subtitles keep going, and then the world appears normally. It happened on an earlier state of this branch too, so it does not come from the latest additions. The cause is not known yet, and I have not compared it with main alone.

Not checked: other GPUs (the batch runs are on one machine's integrated AMD Radeon; NVIDIA reruns pending) and Series S mode. The tests ran on the same machine's GPU.

🤖 Generated with Claude Code

**@⁠pes7** on GitHub · 2026-11-26 22:51 UTC · [original](https://github.com/Marvisak/VIctory/pull/3409) `pes7:merge/tested` → `main` · +8483 −593 · 35 files · 147 commits · open > **Correction (hardware):** the title runs of this branch's batches ran on the machine's **integrated AMD Radeon** (RDNA, shared memory), not on its NVIDIA RTX 5070 Ti as the text below said. Windows chose the integrated GPU for the path the test builds ran from, which had no per-app GPU preference. Earlier runs from another path, the ones that bisected #3327, were on the RTX 5070 Ti. So this set is known to hold together on an AMD iGPU. The same checks on the RTX 5070 Ti come next, and this description will say what they show. **Draft, a tested merge candidate.** `main` plus **53 open pull requests**, added a few at a time. Each step was checked by building, testing and running the title, so maintainers can see which PRs are known to work together and with the title. It replaces #3327, which is closed (see below for why). Nothing here closes or replaces any of these pull requests: each stays open and is closed only when it lands in `main`. If it helps, merging this branch lands them all at once with the checks below already done. Picking single PRs from the list is just as fine. ## Why a smaller tested set, not everything that is green In #3327 I merged every open PR that merged cleanly and had a green `check`, 375 of them. That set builds and passes `cargo test`, but **it does not run the title**. Each problem below was found by bisecting that set or by others' reports: - **Device removal (`0x887A0004`) about 70-90 s in**, at the first cutscene, on a machine with three adapters. One cause found in the set was #967 (the adapter choice); other combinations still did it after #967 was reverted. - **Access violations, writes to read-only pages**, in a group of `xmem` / guard PRs. #2848's guard-reopen commit was one of them, confirmed independently in #2848 by @⁠Jackster and since removed from it. - **A black or washed-out picture with the audio still running.** - **Tests that pass alone but fail in the set:** #2012 (the table decoder fails about 320 shader tests together with the rest), #2336, #2731, and #2626 (with a PR of mine that changed the same formats, since closed in favour of #2626). - **A semantic conflict** (#2706 with #1653) and `lower.rs` growing past the 512 KiB asset policy once enough shader PRs are combined. So "mergeable and green" alone is not enough: individually fine PRs break the title in combination. This branch therefore grows only by steps that keep the title running. ## How each PR got in PRs taken, most useful first: - triage verdict `merge-candidate` on their current head; - the change is in runtime code, not only tests; - no negative reports from testers in the discussion; - ranked by the number of independent confirmations and by whether the title fixes a crash or wrong behaviour. They were added in batches (six at first; later rounds larger, halved on failure). Since the device-removal fix, every new state also gets **three** title runs, with the D3D12 debug layer on. A batch stays only if all of these hold: 1. `cargo check --workspace --all-targets --locked` 2. `cargo test --workspace --locked`: 0 failures (the one known flaky `relaunch_closes_its_duplicated_process_handle` is ignored) 3. **The title for 300 s** (release + `diagnostics`, Series X, a scripted `Enter` / hold schedule through #3392, warm shader cache), judged automatically, with screenshots every 30 s also looked at: - no `device removed`; - no unhandled exception or panic; - no black picture from 150 s on; - the world reached (over 10 000 draws a frame). A batch that fails is halved until the PR that fails it is out. That PR is listed with the reason. The base, `main` + #3392 alone, reaches the prison yard in 300 s with 10 552 draws a frame. #3392 is in the base only because the scripted input needs a held key. ## In this branch (53) Batch 1, title OK (max 10132 draws a frame): - #2703 GPU: a root constant's dword 4 is a value, not a view offset (#2699) (@⁠Calvix2k) - #2319 GPU: create a texture without a host UAV format without the flag (@⁠Calvix2k) - #601 GPU: bound texture upload and capture slices to the allocated buffer (@⁠AwsAli05) - #1406 GPU: fix NULL/UNKNOWN SRV/UAVs on promoted-typeless textures and MSAA/array/3D NULL RTV/DSVs (@⁠ESAT586) - #1849 GPU: free memory is not the runtime's to watch (fixes a world-load deadlock under Wine) (@⁠crashbashash) - #2598 GPU: giving up a texture leaves the dynamic slots of recorded lists alone (@⁠BastienRodz) Batch 2, title OK (max 11200 draws a frame): - #602 GPU: report retained snapshot, texture scratch and upload memory (@⁠lucaseddd) - #2088 GPU: reuse loose windows that hold a range (#402), 256 KiB windows opt-in (VICTORY_LOOSE_WINDOW_KIB) (@⁠desplmfao) - #1978 GPU: no texture layouts or name copies per draw for unchanged answers (@⁠0xkn0wh3r3) - #2579 Core: ignore empty LOCALAPPDATA, XDG_CACHE_HOME, and HOME in default directory resolution (@⁠reeledMarek) - #2553 HLE: avoid data race in DirectStorage late page-list polling (@⁠reeledMarek) Batch 3, title OK (max 10581 draws a frame): - #2666 GPU diagnostics: end draw traces at every present (@⁠andrewpozdnakov7-jpg) - #2327 GPU: a save that fails gives its changes back for the next one (@⁠denkencar-sketch) - #2630 PE: refuse a tls directory that runs outside the image (@⁠imjustprism) - #1217 GPU: the copies timing no longer counts the flush before a title copy twice (@⁠neonbyte1) - #2704 Round rectangle half-float attributes to even and preserve NaNs (@⁠VlREX) - #3005 GPU: make already-used pipeline lookups read-only (@⁠AwsAli05) Batch 4, title OK (max 11409 draws a frame): - #2437 GPU: a marked copy-back advances the snapshot of declared ranges over its page (@⁠BastienRodz) - #3064 GPU: round depth-twin UNORM16 copies at the exact midpoint (@⁠andrewpozdnakov7-jpg) - #3022 GPU: read D24S8 and D32S8 planes into guest buffers (@⁠andrewpozdnakov7-jpg) - #3039 GPU: a lost host list's heaps are not a wanted pair (@⁠kotekompotek) Batch 5, title OK (max 10827 draws a frame): - #2578 Core: ignore empty VICTORY_LOG and RUST_LOG values instead of overriding default log level (@⁠reeledMarek) - #2392 HLE: a null or empty subkey opens the emulated OEM key itself (#765) (@⁠KainanP) - #2099 GPU: stop the descriptor view table growing without bound (@⁠0xkn0wh3r3) - #2962 GPU: sample packed 10-bit frames for black-frame diagnostics (@⁠andrewpozdnakov7-jpg) - #2873 GPU: a title buffer view takes a format the host takes, or stays null (@⁠0xkn0wh3r3) - #450 GPU: preserve typed null render target slots (@⁠fuzeofficlal) Batch 6, title OK (max 10317 draws a frame): - #2472 GPU: hoist and batch indirect argument clamps into the list prelude (@⁠ESAT586) - #3035 GPU: write faults read the bytes they save without the guard lock (@⁠liandraraiane) Batch 7, title OK (max 10578 draws a frame): - #2940 GPU/Bindless: O(1) texture forget reverse index, FxHash maps, and identical-rewrite fast-path (@⁠RVZO6) - #3052 GPU: read-mark scans stop at the end of the view slots in use (@⁠0xkn0wh3r3) Batch 8, title OK (max 10473 draws a frame): - #1888 GPU: cache alias-copy footprint plans (@⁠nathanbzrr) - #3041 GPU: refresh heap textures with untracked pages (FIND-17) (@⁠leftmove) - #2173 GPU: handle typed D16/D32 and multisample depth twins (@⁠fuzeofficlal) - #2187 GPU: a readable texture does not share a host texture denied to shaders (@⁠fuzeofficlal) - #2199 XMem: preserve overlapping source pages during GPU mapping copies (@⁠Razdva122) - #2238 Watch: dropping a tracker keeps a mapping guarded while a tracker holds its alias (@⁠denkencar-sketch) - #2240 GPU: title memory copies are brought up to date again after a title write (@⁠denkencar-sketch) - #1722 GPU: the host pipeline library works under Wine (null blob for an empty library) (@⁠Impre-visible) - #1414 GPU: avoid clobbering HostList prelude allocator when a list executes twice in one submission (@⁠ESAT586) - #2250 GPU: pipeline workers take their count from VICTORY_PIPELINE_THREADS (@⁠kotekompotek) - #1701 GPU: VICTORY_MODE overrides the reported console display mode (@⁠Calvix2k) Batch 9, title OK (max 11812 draws a frame): - #2634 victory-gpu: say once, not per slot, that the title's heap outgrew the host's (first frame 21 s -> 33 ms) (@⁠pes7) - #2696 victory-gpu: VICTORY_SKIP_PIPELINES works in release builds, where the removals are (@⁠pes7) - #2014 GPU: a mesh dispatch with an empty dimension runs nothing (@⁠artor410) - #2605 GPU: waits on memory that cannot be read are counted apart (#2604) (@⁠BastienRodz) - #541 GPU: retain D3D12 object names in private data (@⁠broccolize) - #2850 GPU: refresh table CBVs on fresh_tables cache hits (@⁠fuzeofficlal) - #1993 GPU: hash DXIL shader slices zero-copy in HostPipeline::new (@⁠nathanbzrr) - #3111 Formats/BCPack: restrict BC7 channel rotation to modes 4 and 5 (@⁠RVZO6) - #2741 PE: reject null IAT RVAs in non-empty import descriptors (@⁠fuzeofficlal) Batch 10, title OK (max 11017 draws a frame): - #2729 GPU: keep rectangle corners consistent across vertex streams (@⁠andrewpozdnakov7-jpg) - #642 GPU: translate enhanced texture barriers in ID3D12GraphicsCommandList7::Barrier (@⁠nathanbzrr) ## A fix on top: #3540 (an invalid raw SRV removed the device) After the batches from #2472 to #1701, the title removed the device in 3 of 4 runs, about 200 s in. #2472 + #3035 had also needed a second run. Each time it was `DXGI_ERROR_INVALID_CALL`. With `VICTORY_D3D12_DEBUG=1` the debug layer named the call: `CreateShaderResourceView` of a **raw** view with `FirstElement (2)`. The host wants raw views to start on 16 bytes; the console takes any dword. This is in `main` (`buffer_srv`), not in any of the PRs here. The PRs only change which host copies exist, so the faulting view came up more often. #3540 makes raw views (SRV, UAV and constant buffers) take a copy that starts on 16 bytes. It is merged here as its own commit. With it, the same set: **3 of 3 title runs with no device removal** and no raw-view message from the debug layer; `cargo test --workspace` 930 passed, 0 failed; `clippy -D warnings` clean, also with `--all-features`. ## Merges adapted here, not in the PRs #450 changes `Host::rtv` to take `Option<&ID3D12Resource>`. Tests written against `main` stop compiling next to it: #2962's (`1e25b23`), and #2729's and #642's (`965d938`). These commits change only those test calls, `&x` to `Some(&x)`. ## Tried and left out - #3061 GPU: a draw's table entries are looked up once: tests: its new shadow test hangs victory-gpu's lib tests (main+3061 1/15 runs, 27586c2+3061 1/3; main 20/20 and main+3061 without that test 20/20 clean) ## Conflict with the set so far (need a rebase onto it, not judged) #2821, #2542, #2727, #3065 ## Status - **Next:** the rest of the runtime PRs outside `victory-shader` (about 140), in the same way, as the machine is free for title runs. This branch is pushed only at points where the title run passed. A failing run is repeated before a PR is left out, since a device removal can come and go. - **Then the 85 shader PRs**, in larger groups, because every translator change makes the title translate all shaders again. **Known and open:** in about one run in three, the cutscene picture stays black for about 60 s (roughly 120-180 s in) while the subtitles keep going, and then the world appears normally. It happened on an earlier state of this branch too, so it does not come from the latest additions. The cause is not known yet, and I have not compared it with `main` alone. Not checked: other GPUs (the batch runs are on one machine's integrated AMD Radeon; NVIDIA reruns pending) and Series S mode. The tests ran on the same machine's GPU. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
`shadow::find` looked at only the 64 buffers starting closest below an
address. A big buffer with more than 64 smaller buffers placed in it
before the address was missed, and the range fell through to `loose`,
which made a second 4 MiB host copy of memory the big buffer's copy
already had, not aliased with it. The search now goes back as far as the
longest buffer registered so far (`MAX_SPAN`): one starting further below
cannot hold the range.

`loose` reused a window only for the exact same (start, length), so a
range inside a window made for a range spanning two windows got another
copy. It now reuses any window holding the range. It also gives no copy
for null-page addresses, or for memory that is not committed when a new
window would be made, instead of 4 MiB of zeros.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
`shadow::find` looked at only the 64 buffers starting closest below an
address. A big buffer with more than 64 smaller buffers placed in it
before the address was missed, and the range fell through to `loose`,
which made a second 4 MiB host copy of memory the big buffer's copy
already had, not aliased with it. The search now goes back as far as the
longest buffer registered so far (`MAX_SPAN`): one starting further below
cannot hold the range.

`loose` reused a window only for the exact same (start, length), so a
range inside a window made for a range spanning two windows got another
copy. It now reuses any window holding the range. It also gives no copy
for null-page addresses, or for memory that is not committed when a new
window would be made, instead of 4 MiB of zeros.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Memory outside every buffer object gets host copies of the aligned
windows lookups touch. While Grand Theft Auto VI loads its world, about
700 such 4 MiB windows (3.4 GB of host memory) were live; the lookups
touched about 30% of their bytes (in 64 KiB pieces). With 256 KiB
windows, at the same point of loading: 5,713 windows, 2.2 GB, and the
process 15.4 GB instead of 17.3 to 20.4 GB. No descriptor-slot warnings
for the extra windows' page-table entries.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	crates/victory-gpu/src/capture.rs
#	crates/victory-gpu/src/texture.rs
A range in one window, then a range across its end, which gets a window
of its own over both: the title's writes reach both copies at their
refresh, and a shader's write through the spanning copy goes back to
title memory and into the first copy at its next refresh.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A miss in the buffer lookup scanned every buffer starting within the
longest buffer's length below the address (MAX_SPAN, 174 MB in the
world): about 480 entries per miss on average, at most 2,842, and some
330,000 misses every 5 s, all under BUFFERS' lock (measured in Grand
Theft Auto VI's world, RTX 5080 under Proton).

Buffers of 1 MiB or more are now also kept in a small map of their own.
A lookup scans BUFFERS only within the longest smaller buffer's length
below the address, then the big buffers further below, back to
MAX_SPAN. Only a big buffer can hold the range from further below, so
the result is the same innermost buffer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
RegOpenKeyW and RegOpenKeyExW returned ERROR_FILE_NOT_FOUND for any
path below our stand-in for HKLM\...\CurrentVersion\OEM, including a
null or empty one. The documented behaviour, and the host's: RegOpenKeyW
gives back the key it was passed, RegOpenKeyExW a handle to the same
key. Other paths below it still are not found (it has no subkeys).

Test: both functions with a null and an empty subkey, on our key and on
a host key for comparison.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With a null phkResult and a subkey other than null or empty, open()
returned ERROR_FILE_NOT_FOUND for our OEM key before it looked at the
output pointer. The host checks the pointer first: on Windows 11 its
RegOpenKeyW and RegOpenKeyExW return ERROR_INVALID_PARAMETER for a null
phkResult whether the subkey is missing, empty or null. Microsoft's
pages do not name the error for this case, so the test asks the host
for the same calls on a host key and holds ours to the same answers.

Test: nowhere_to_put_the_key_is_an_invalid_parameter, ours and the
host's, for a missing, an empty and a null subkey.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This reverts commit b73bb8b. With it, Grand Theft Auto VI's world showed
spikes out of the player character's head and triangles stretched across
the scene in two runs; the same build without it is clean. A stale entry
in the map of big buffers (a key registered again shorter) explains the
spikes, but with that fixed the triangles stayed, so the change goes until
it is understood. The lookup cost it targeted is back as before (about 480
entries per miss).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Part of #2307 (the allocation half; #1763 covers the view half).

A texture the title creates with `D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS` in a format the host has no typed UAV for, and that has no typeless family to stand in (`B5G5R5A1_UNORM`, and the console's two-byte formats that pass through as DXGI numbers), removes the device at `GetResourceAllocationInfo` on a strict driver: "a texture that has ALLOW_UNORDERED_ACCESS must be created with a format that ... can be used as unordered access". `host_desc` now drops the flag for exactly those formats with a one-time warning, so the texture is created and the title keeps running; its unordered views are refused later by `fits` (#1763), instead of the device disappearing.

Formats with a family are untouched: the sRGB case keeps its existing mapping, and a format whose type the device stores to keeps the flag.

## Verification

- `cargo test -p victory-gpu --features diagnostics --lib` on Windows 10 19045 / RX 7800 XT: 146 passed, 1 failed — the known placed-view test on a runtime without `ID3D12Device10` (#1999), identical on `main`; clippy `-D warnings` clean.
- `a_format_without_unordered_access_loses_the_flag` checks the new arm and the "keeps the flag" arm. It skips where the device does report a typed UAV for those formats — this AMD driver does (85, 86, 115 all true here), which is why the removal is NVIDIA-only in the reports; the drop needs an NVIDIA/WARP run to be exercised.
Review feedback on #2319: `family(f) == f` is also true for every typeless
format, so the new drop would have taken `ALLOW_UNORDERED_ACCESS` from sRGB
textures the block above just made typeless (29 -> 27, 91 -> 90, 93 -> 92)
and from typeless UAV textures of the title's own (R32_TYPELESS). Their
unordered views would then be refused by `descriptor::host::fits`, a
regression from `main`.

Use the test `fits` uses for "no family at all": `family(f) == f &&
family(f + 1) != f`. The test now also checks that an sRGB UAV texture (29)
keeps the flag and comes out as its typeless family 27; that assertion runs
before the device-dependent early return, so it is checked on AMD too. Move
the test inside `mod tests` (it sat after the module's closing brace).
Since 69d1e8e, giving up a host texture (idle, or past the card's
budget) nulls every heap slot viewing it (HostHeap::evict). Since
ed25c0e it finds them by scanning `kept`, which covers the dynamic slots
too: the descriptor tables lists build for their draws. A recorded list
not yet reset still uses those (the dynamic slots it took are not
released until then), and its table is not made again before it runs,
so its draws read a null 2D view, and the slot no longer held the
texture. resource.rs: "Lists recorded before hold it until they are
reset, so no GPU work reads it freed".

evict now leaves dynamic slots a list still holds (taken in `next`), and
holds `made` and `next` across the scan and the clearing.

Co-Authored-By: Gemini 4 Neon <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Until the slot is next made, not until its list is reset (review by
fyernald).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A loose copy of title memory for a null address covers 0..4 MiB, and
`runtime_pages` takes free memory for the runtime's (its `shortcut:`),
so free parts of the window are tracked and guarded once something is
committed there. On Windows nothing is. Under Wine the process heap is:
its pages became read-only, and a heap write by a thread holding the
guard lock (in `Tracked::take`, `writing` or the fault handler itself)
faulted into the handler, which waited for that lock forever: the title
stopped at the end of loading.

The region check now leaves free memory out, as it leaves out plain
committed memory and images; reserved memory still counts (the
shortcut keeps that part).

Test: a block reserved and released (free memory at a known address)
is not tracked. It fails without the change; it only counts if the
block is still free afterwards, since other tests allocate meanwhile.
In the user-data loop, a dword numbered `ROOT_VIEW_OFFSET` (4) was taken
for a root view's offset without asking whether the parameter was a root
descriptor at all. Root constants with five or more dwords have a real
dword 4; it was looked up as a root view, none was found, and the draw or
dispatch was refused ("a root view's offset: no root view, or outside
title buffers") with no log line. The ray-tracing builder's dispatches
were among the casualties.

Ask `u.root == RootType::Descriptor` too, through a helper beside
`is_root_view`, so a root constant's dword 4 goes to the title's user data
as the value it is.

The test pins the predicate: descriptor dword 4 is an offset, constants
and table dword 4 are not.
AI-authored and verified by Gemini 4 Neon (High Mode) — zero game data used.

Fixes VIC-BT-004 (P0) and VIC-BT-012 (P1) from #1242:
- `crates/victory-gpu/src/descriptor/host.rs`: when a typed console texture was
  promoted to a typeless host copy (`host_texture` for sRGB+UAV or
  shader-readable depth targets), `fits()` previously rejected NULL-desc and
  `DXGI_FORMAT_UNKNOWN` SRV/UAVs, replacing them with null views. Now resolves
  the promoted view format (shader-readable depth plane 0 format for depth SRVs,
  linear twin for sRGB UAVs, title format for sRGB SRVs) and synthesizes a
  dimension-matched default SRV/UAV description when `desc` is `None`.
- `crates/victory-gpu/src/descriptor.rs`: `RtvRecord::desc()` and
  `RtvRecord::depth_desc()` previously hardcoded `TEXTURE_2D` for NULL-desc
  RTV/DSVs on promoted-typeless targets; now inspect the host texture's
  `Dimension`, `DepthOrArraySize`, and `SampleDesc.Count` to emit the exact
  `1D`, `1DArray`, `2D`, `2DArray`, `2DMS`, `2DMSArray`, or `3D` view desc.
- Adds unit tests plus a real D3D12 hardware test verifying NULL/UNKNOWN views
  on promoted sRGB+UAV and 2D-array depth textures on the host GPU.
Every view a title writes is kept in one table, and a descriptor's
record (the tag and two words) names its entry and generation, which
survives titles copying descriptors as bytes. Views of resource objects
are freed with their resource, but views without one (constant buffers,
views of placed memory) have nothing that releases them, so their
entries were kept for the run. Grand Theft Auto VI writes some 14,000
constant buffer views a frame, each at the address its constants have
that frame: on fxceless/victory-fork, 2,450,139 entries after four
minutes of play, about 1 GB with the index, growing by 11,000 a second.

The record's two words now say what they hold in the generation's top
two bits: 0, a table entry as before (generations stay below those
bits); a constant buffer view whole (a 47-bit address and a 15-bit
size: bytes below 16 KiB, else 256-byte units below 4 MiB); or a view of
placed memory whole (a 40-bit title address and the number of its
"shape", the view's description without its address, kept in a table
of their own: as many as the title has kinds of textures and buffers).
Views that do not fit (larger addresses or sizes, shapes past 2^22)
stay table entries. Every reader goes through `view_at`, which decodes
all three; the host heap keys its slots by the same two words, which
stay equal for equal views and differ for different ones.
`VICTORY_VIEW_INLINE=0` keeps every view a table entry.

Ported from fxceless/victory-fork (commit 578d459), the view-table part
only (not that commit's other descriptor changes).

Tests (no GPU needed):
- `constant_views_fit_their_records`: addresses and sizes round-trip,
  and those that do not fit say so.
- `views_at_new_addresses_add_no_entries`: 20,000 constant buffer and
  placed views at new addresses add no entries and one shape.
- `released_entries_keep_their_generations_below_the_kind_bits`: a
  generation bumped past the top wraps to 1, and the released view's
  record goes stale.

Co-authored-by: fxceless <[email protected]>
The VICTORY_VIEW_INLINE switch is gone, and the view table's doc comment
says only what the code does; the measurements stay in the pull request.
`views_current`, which a heap sync uses to look at a page's records under
one lock, compared every record with the table entry it names, so a
record holding a constant buffer view or a view of placed memory whole
was never current and its slot was never made: a title copying such
records as bytes left the copies null. It now decodes records as
`view_at` does: a table entry at its own generation, a constant buffer
view, or a placed view whose shape is numbered.

Tests:
- `views_held_whole_are_current_for_heap_syncs` (no GPU needed):
  `views_current` agrees with `view_at` on constant and placed views held
  whole, live and released table entries, unknown shapes and kinds, and
  records without the tag.
- `heap_syncs_make_the_slots_whose_records_hold_their_views_whole`: a
  heap sync makes slots given byte copies of a constant buffer view's and
  a placed view's records, and leaves a cleared one null.
copy_back_marks runs before the copy-backs of declared ranges. It puts a
marked page's GPU bytes back, and the copy takes the title's others
(`*h = *t`), but the snapshot of a declared range over that page
(Shadow::before) kept the bytes from before the submission. That range's
copy-back then found the title's bytes the copy had taken differing from
the snapshot, took them for the GPU's, and put them back over what the
title had written in between.

copy_back_marked now brings the snapshot over the page to the copy's
bytes (sync_snapshot).

Co-Authored-By: Gemini 4 Neon <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Materialize an explicit null RTV when recording host render-target bindings. Keep the resource-transition list limited to real textures. A synthetic MRT draw verifies that the real target receives SV_Target1 after a typed null in slot 0.
Title buffer views reached CreateShaderResourceView and
CreateUnorderedAccessView with the title's own format. The title's heap
holds views the host refuses: made for its own runtime, or old ones in
slots it does not use. On WARP with the debug layer:

  - a raw view of R32_UINT: "When creating a RAW Shader Resource View,
    the format must be DXGI_FORMAT_R32_TYPELESS", then device removal
    (DXGI_ERROR_INVALID_CALL) for the shader resource view;
  - a structured view with a format: "it must be DXGI_FORMAT_UNKNOWN";
  - a typed view of a typeless format: "cannot be used when creating a
    typed View of a Buffer".

A raw or structured view reads its bytes whatever its format says, so it
is now made in the format the host wants (R32_TYPELESS, UNKNOWN); a raw
view with a structure stride, or a typed view of no format or a typeless
one, has none and stays null, with a warning once. Structure strides are
left as they are (2, 6 and 4096 are taken by the debug layer).

Test: buffer_views_take_a_format_the_host_takes.

From DexNom/VIctory@570a941e9b
(buffer_view_ok in descriptor/host.rs), reworked: views are corrected
where their bytes do not depend on the format instead of refused, and
the stride limits and the raw 16-byte start, which the debug layer does
not ask for or which #123 covers, are left out.

Co-authored-by: DexNom <[email protected]>
Two lookups every draw makes did work whose answer rarely needs it:

- `resource::alias_source` runs for every placed view a draw reads and
  built the placed texture's full console layout (`texture_layout`, a
  mip chain of vectors) under the global `TEXTURES_AT` lock before
  looking at the other textures at its address. Most placed views have
  no texture the GPU writes at that address, so the layout is now built
  only once one is found; the cheap tests (another resource, written by
  the GPU, its own host texture) come first. Same answer in every case.
- `memory::note_use` copied the pipeline's name into a new String on
  every draw that reads title memory, under the process-wide stats lock,
  even when the name was counted already. It now looks the name up first
  and copies it once per frame.
The marks were cleared before the library was serialised and written, so a
failure at shutdown left nothing to save.
Review: a typed title buffer view of a format the device's buffer views
do not take (block-compressed, depth, sRGB...: BC1_UNORM has no
D3D12_FORMAT_SUPPORT1_BUFFER) still reached the device. The typed path
now asks the device, once a format and kind: a shader view needs buffer
and shader-load support, an unordered view buffer and typed
unordered-access support; a view without stays null.

Test: typed_buffer_views_take_only_formats_the_device_buffers_take
(R32_UINT taken, BC1_UNORM and D32_FLOAT refused, shader and unordered
alike; R8G8B8A8_UNORM taken for shader views).
Conflicts in crates/victory-gpu/src/shadow.rs: main's copies now come
back as Arc from Shadow::new and bump GENERATION through changed(); kept
that and added #402's MAX_SPAN search, the loose-window reuse
(LOOSE_SPAN, enclosing_window) and the committed/null-page checks on top.
#402's tests join main's `pub(crate) mod tests`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
update/402-main is #402 with main merged in. Its shadow.rs replaces this
branch's copy of #402's commit (same change on an older main); this
branch's own changes go on top: 256 KiB windows and the
overlapping-windows test. The two-step lookup stays reverted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
r4tedx's in-game A/B of this branch (RTX 5070) measured the 256 KiB
windows at +428 ms median frame time: host copies grew from about 0.55 GB
to about 6 GB per frame in the open world, for about 2.9 GB of host
memory saved. Loose windows are 4 MiB again (main's size) unless
VICTORY_LOOSE_WINDOW_KIB asks for a power of two from 64 to 4096 KiB.
#402's window reuse stays as it is.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
No range: sizes far from the default are the user's own experiment. Only
a value that is not a power of two, or one whose bytes overflow, falls
back to 4 MiB.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
host_state_lost marked host_heaps [usize::MAX; 2], but a list that binds
no heaps and reads title memory wants [MEMORY_HEAP, SAMPLERS_OURS] —
the same pair. After a cut or an external record, bind_heaps found them
equal and bound nothing; the next directly-indexing root signature ran
with no heaps, the device removal #1778 was written to prevent.

None now marks the lost state: it equals no pair wanted can make, so
the next bind_heaps binds again.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
`VICTORY_KEYS=<seconds>:<key>` held each key for 200 ms: enough for a menu
press, not for walking. An entry now takes an optional third field, the hold
in milliseconds:

    VICTORY_KEYS=10:Enter:300,20:Enter:300,200:W:6000

Without it the hold stays 200 ms, so existing schedules behave as before.
Both the keyboard device and the stand-in pad see the keys (`Enter` is the
pad's A, `W` the left stick up), with or without window focus.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
#450 made Host::rtv take Option<&ID3D12Resource>; #2962's diagnostics-only
test still passed &texture, which only the --all-features build compiles.

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

@⁠Jackster on GitHub · 2026-11-26 23:40 UTC · original

Windows 11, 63bcca4 + this PR, the CI job's three commands:

  • cargo clippy --workspace --all-targets --locked -- -D warnings: clean.
  • cargo test --workspace --locked: 908 passed / 0 failed across 30 suites (unpatched 63bcca4 here: 872; victory-gpu alone goes 232 → 261 tests).
  • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: FAILS:
error[E0308]: mismatched types
    --> crates\victory-gpu\src\host.rs:4093:57
4093 |                         .ClearRenderTargetView(host.rtv(&texture, Some(&desc)), &color, None);
     |                                                     --- ^^^^^^^^ expected `Option<&ID3D12Resource>`, found `&_`
note: method defined here
    --> crates\victory-gpu\src\host.rs:1621:19
1621 |     pub(crate) fn rtv(

A test call site still passes &texture where rtv now takes Option<&ID3D12Resource> — one of the batches rolled up here changed that signature without its caller. So the diagnostics build does not compile; the default build and the whole test suite do.

Synthetic only. AI-assisted.

**@⁠Jackster** on GitHub · 2026-11-26 23:40 UTC · [original](https://github.com/Marvisak/VIctory/pull/3409#issuecomment-7205755395) Windows 11, `63bcca4` + this PR, the CI job's three commands: - `cargo clippy --workspace --all-targets --locked -- -D warnings`: clean. - `cargo test --workspace --locked`: **908 passed / 0 failed** across 30 suites (unpatched `63bcca4` here: 872; `victory-gpu` alone goes 232 → 261 tests). - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings`: **FAILS**: ``` error[E0308]: mismatched types --> crates\victory-gpu\src\host.rs:4093:57 4093 | .ClearRenderTargetView(host.rtv(&texture, Some(&desc)), &color, None); | --- ^^^^^^^^ expected `Option<&ID3D12Resource>`, found `&_` note: method defined here --> crates\victory-gpu\src\host.rs:1621:19 1621 | pub(crate) fn rtv( ``` A test call site still passes `&texture` where `rtv` now takes `Option<&ID3D12Resource>` — one of the batches rolled up here changed that signature without its caller. So the diagnostics build does not compile; the default build and the whole test suite do. Synthetic only. AI-assisted.
Author
Owner

@⁠pes7 on GitHub · 2026-11-27 00:52 UTC · original

@⁠Jackster thanks, that's exactly it. #2962's diagnostics-only test still called rtv(&texture, ..) after #450 changed it to take Option<&ID3D12Resource>, and my batch checks did not build --all-features. Fixed in 1e25b23 on top of the set, and CI is green on that head. On it, locally: clippy -D warnings clean both ways, cargo test --workspace 908 / 0, and victory-gpu --all-features 278 / 0. The --all-features check is now part of every batch.

**@⁠pes7** on GitHub · 2026-11-27 00:52 UTC · [original](https://github.com/Marvisak/VIctory/pull/3409#issuecomment-7206824950) @⁠Jackster thanks, that's exactly it. #2962's diagnostics-only test still called `rtv(&texture, ..)` after #450 changed it to take `Option<&ID3D12Resource>`, and my batch checks did not build `--all-features`. Fixed in `1e25b23` on top of the set, and CI is green on that head. On it, locally: clippy `-D warnings` clean both ways, `cargo test --workspace` 908 / 0, and `victory-gpu --all-features` 278 / 0. The `--all-features` check is now part of every batch.
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-27 07:47 UTC · original

NVIDIA full-suite run, to go with the reports above by Jackster, since none of them names a GPU run. Tested exact head 1e25b23 (on its base 63bcca4).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.98.1 MSVC (pinned), dxil.dll from Windows SDK 10.0.26100 (the loader's default), debug.
  • cargo build --workspace --locked, then cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 902 passed, 0 failed, 10 ignored.
  • The new tests ran and passed: default_dir_ignores_empty_user_env_vars, empty_victory_log_falls_back_to_rust_log_and_default, constant_views_fit_their_records, views_at_new_addresses_add_no_entries, released_entries_keep_their_generations_below_the_kind_bits, views_held_whole_are_current_for_heap_syncs, null_rtv_and_dsv_descs_match_resource_dimension_and_msaa, typed_buffer_views_take_only_formats_the_device_buffers_take, buffer_views_take_a_format_the_host_takes, live_dynamic_slots_keep_a_texture_given_up, heap_syncs_make_the_slots_whose_records_hold_their_views_whole, promoted_typeless_textures_accept_null_and_unknown_format_views, a_lost_host_state_matches_no_wanted_heaps, only_a_root_descriptors_dword_four_is_a_view_offset, a_failed_save_leaves_its_changes_to_the_next, first_use_of_a_finished_pipeline_is_recorded_without_queueing, half_midpoints_round_to_the_even_neighbour, half_nan_attributes_remain_nan, a_missing_resource_has_no_default_view_format, depth_and_stencil_planes_reach_the_guest_buffer, a_format_without_unordered_access_loses_the_flag, a_declared_copy_back_after_a_marked_one_keeps_newer_title_writes, a_parent_is_found_past_many_children, registered_buffers_widen_the_search, loose_windows_are_reused_for_ranges_inside_them, overlapping_windows_agree_through_title_memory, window_sizes_are_any_power_of_two, loose_memory_must_be_committed, last_bc4_mip_ends_after_the_active_block, float_depth_rounds_at_each_u16_threshold, free_memory_is_not_tracked, a_null_or_empty_path_opens_the_key_itself, nowhere_to_put_the_key_is_an_invalid_parameter, accepts_tls_directory_ending_at_the_image_end, rejects_tls_directory_running_past_the_image_end, rejects_tls_directory_running_past_the_rva_range.
  • typed_null_rtv_keeps_the_next_color_slot, packed_10_bit_frames_are_sampled_for_black_detection, present_without_a_plane_drains_the_draw_trace only build with the diagnostics feature, so the run above doesn't include them; they pass in cargo test -p victory-core -p victory-gpu -p victory-hle -p victory-loader -p victory-shader -p victory --lib --locked --features victory-core/diagnostics,victory-gpu/diagnostics,victory-hle/diagnostics,victory-loader/diagnostics,victory-shader/diagnostics,victory/diagnostics (same skips).
  • --skip leaves out tests that fail on main 63bcca4 on this card too, not because of this PR: heap_direct_texture_reads_mark_their_heap_index ends the victory-shader test process with 0xc0000005 (#2571), so without the skip the rest of that crate never reports; dynamic_slots_are_held_until_released, lists_share_a_table_and_copies_keep_their_views and the two stride_tests hit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317); gathers_at_a_level_match_the_hardware fails on lane 0 (#1744).

Not tested

  • AMD (the tests take the default adapter), a release build, the title (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-27 07:47 UTC · [original](https://github.com/Marvisak/VIctory/pull/3409#issuecomment-7212813622) NVIDIA full-suite run, to go with the reports above by Jackster, since none of them names a GPU run. Tested exact head `1e25b23` (on its base `63bcca4`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.98.1 MSVC (pinned), `dxil.dll` from Windows SDK 10.0.26100 (the loader's default), debug. - `cargo build --workspace --locked`, then `cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware`: **902 passed, 0 failed, 10 ignored**. - The new tests ran and passed: `default_dir_ignores_empty_user_env_vars`, `empty_victory_log_falls_back_to_rust_log_and_default`, `constant_views_fit_their_records`, `views_at_new_addresses_add_no_entries`, `released_entries_keep_their_generations_below_the_kind_bits`, `views_held_whole_are_current_for_heap_syncs`, `null_rtv_and_dsv_descs_match_resource_dimension_and_msaa`, `typed_buffer_views_take_only_formats_the_device_buffers_take`, `buffer_views_take_a_format_the_host_takes`, `live_dynamic_slots_keep_a_texture_given_up`, `heap_syncs_make_the_slots_whose_records_hold_their_views_whole`, `promoted_typeless_textures_accept_null_and_unknown_format_views`, `a_lost_host_state_matches_no_wanted_heaps`, `only_a_root_descriptors_dword_four_is_a_view_offset`, `a_failed_save_leaves_its_changes_to_the_next`, `first_use_of_a_finished_pipeline_is_recorded_without_queueing`, `half_midpoints_round_to_the_even_neighbour`, `half_nan_attributes_remain_nan`, `a_missing_resource_has_no_default_view_format`, `depth_and_stencil_planes_reach_the_guest_buffer`, `a_format_without_unordered_access_loses_the_flag`, `a_declared_copy_back_after_a_marked_one_keeps_newer_title_writes`, `a_parent_is_found_past_many_children`, `registered_buffers_widen_the_search`, `loose_windows_are_reused_for_ranges_inside_them`, `overlapping_windows_agree_through_title_memory`, `window_sizes_are_any_power_of_two`, `loose_memory_must_be_committed`, `last_bc4_mip_ends_after_the_active_block`, `float_depth_rounds_at_each_u16_threshold`, `free_memory_is_not_tracked`, `a_null_or_empty_path_opens_the_key_itself`, `nowhere_to_put_the_key_is_an_invalid_parameter`, `accepts_tls_directory_ending_at_the_image_end`, `rejects_tls_directory_running_past_the_image_end`, `rejects_tls_directory_running_past_the_rva_range`. - `typed_null_rtv_keeps_the_next_color_slot`, `packed_10_bit_frames_are_sampled_for_black_detection`, `present_without_a_plane_drains_the_draw_trace` only build with the `diagnostics` feature, so the run above doesn't include them; they pass in `cargo test -p victory-core -p victory-gpu -p victory-hle -p victory-loader -p victory-shader -p victory --lib --locked --features victory-core/diagnostics,victory-gpu/diagnostics,victory-hle/diagnostics,victory-loader/diagnostics,victory-shader/diagnostics,victory/diagnostics` (same skips). - `--skip` leaves out tests that fail on main `63bcca4` on this card too, not because of this PR: `heap_direct_texture_reads_mark_their_heap_index` ends the `victory-shader` test process with `0xc0000005` (#2571), so without the skip the rest of that crate never reports; `dynamic_slots_are_held_until_released`, `lists_share_a_table_and_copies_keep_their_views` and the two `stride_tests` hit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317); `gathers_at_a_level_match_the_hardware` fails on lane 0 (#1744). **Not tested** - AMD (the tests take the default adapter), a release build, the title (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Author
Owner

@⁠borosf on GitHub · 2026-11-27 11:48 UTC · original

A data point for a tested set, from the other direction: I stacked all 20 of my open PRs onto main (63bcca43) and onto + #2958, and ran the title. They hold together, and there is exactly one trivial conflict between them.

Build and tests. 16 of the 20 merge cleanly on main. The four that do not are conflicts between my own PRs, and all four are mechanical:

Conflict Files Resolution
#3238 × #3215-era code gpu/src/memory.rs keep USES.fetch_add and the allocation-free get_mut; the diagnostics map update stays behind #[cfg(feature = "diagnostics")]
#3224 × #3247/#3254 gpu/src/copystat.rs both add counters: keep all of them, COUNTERS = 65 (61 + RefreshCalls + Calls/CallUs/CallWaitUs)
#3248 × #3215-era code gpu/src/memory.rs by_bit + untracked both kept
#2344 — order-dependent only; applies once the others are in

On top of that, #2958 conflicts in one line — emit/lower.rs, two module declarations at the same spot (mod stride_record; from #3214-era work and mod marks; from #2958). Keeping both is the whole resolution; nothing about the marks lowering has to change.

Verification of the stack (Intel Arc B580, diag profile, --console series-x, 205 s with the title):

  • cargo test -p victory-gpu --lib: 243 passed, 2 failed, and those same two fail on unmodified main on this host (dynamic_slots_are_held_until_released, lists_share_a_table_and_copies_keep_their_views — both want a heap reaching HEAP_VIEWS, which this card caps).
  • cargo xtask policy: 194 files ok.
  • Title: reached the world (7,577 draws/frame peak), 0 device removals and 0 title crashes in 205 s. That matters on this card because unmodified main removes the device in 1–3 runs of 4 (see #2671), so the set does not make that worse — with only one run each, that is all I would claim from it.
  • No speed claim. World-frame medians were 1,762 ms (stack) against 1,347 ms (baseline), but at 1,726 against 2,370 draws and at different points in the world; the GPU side was flat (981 vs 990 ms), and every per-frame counter moved by a similar factor, which is frame composition rather than eight regressions. Two runs at different world positions cannot settle it, and I would not put a number in a merge decision from them.

If it is useful for the set here, the ordering that needs no hand-resolution is: #3215-era descriptor work → #3238 → #3248 → the rest, then #2958 last. I am not asking for these to be added; this is just what it costs to try.

**@⁠borosf** on GitHub · 2026-11-27 11:48 UTC · [original](https://github.com/Marvisak/VIctory/pull/3409#issuecomment-7217500457) A data point for a tested set, from the other direction: I stacked **all 20 of my open PRs onto `main` (63bcca43)** and onto **+ #2958**, and ran the title. They hold together, and there is exactly one trivial conflict between them. **Build and tests.** 16 of the 20 merge cleanly on `main`. The four that do not are conflicts *between my own PRs*, and all four are mechanical: | Conflict | Files | Resolution | |---|---|---| | #3238 × #3215-era code | `gpu/src/memory.rs` | keep `USES.fetch_add` **and** the allocation-free `get_mut`; the diagnostics map update stays behind `#[cfg(feature = "diagnostics")]` | | #3224 × #3247/#3254 | `gpu/src/copystat.rs` | both add counters: keep all of them, `COUNTERS` = 65 (61 + `RefreshCalls` + `Calls`/`CallUs`/`CallWaitUs`) | | #3248 × #3215-era code | `gpu/src/memory.rs` | `by_bit` + `untracked` both kept | | #2344 | — | order-dependent only; applies once the others are in | On top of that, **#2958 conflicts in one line** — `emit/lower.rs`, two module declarations at the same spot (`mod stride_record;` from #3214-era work and `mod marks;` from #2958). Keeping both is the whole resolution; nothing about the marks lowering has to change. **Verification of the stack** (Intel Arc B580, diag profile, `--console series-x`, 205 s with the title): - `cargo test -p victory-gpu --lib`: **243 passed, 2 failed**, and those same two fail on unmodified `main` on this host (`dynamic_slots_are_held_until_released`, `lists_share_a_table_and_copies_keep_their_views` — both want a heap reaching `HEAP_VIEWS`, which this card caps). - `cargo xtask policy`: 194 files ok. - Title: reached the world (7,577 draws/frame peak), **0 device removals and 0 title crashes in 205 s**. That matters on this card because unmodified `main` removes the device in 1–3 runs of 4 (see #2671), so the set does not make that worse — with only one run each, that is all I would claim from it. - **No speed claim.** World-frame medians were 1,762 ms (stack) against 1,347 ms (baseline), but at 1,726 against 2,370 draws and at different points in the world; the GPU side was flat (981 vs 990 ms), and every per-frame counter moved by a similar factor, which is frame composition rather than eight regressions. Two runs at different world positions cannot settle it, and I would not put a number in a merge decision from them. If it is useful for the set here, the ordering that needs no hand-resolution is: #3215-era descriptor work → #3238 → #3248 → the rest, then #2958 last. I am not asking for these to be added; this is just what it costs to try.
An empty library was asked for with an empty Rust slice, whose pointer is
dangling and non-null. Windows only looks at the length; vkd3d-proton
refuses a non-null blob of length 0 with E_INVALIDARG, so under Wine every
run logged 'no host pipeline library: pipelines are not kept' and the
early-start list was never written. The empty library is now created with
a null blob.

Loading a pipeline held the library's mutex for the whole LoadPipeline
call. Where the host's library keeps no compiled code (vkd3d-proton with
its internal cache on), a load is a whole pipeline creation, so the workers
made 'loaded' pipelines one at a time. The load now runs on a reference of
the library's own, outside the lock (as creation already did).

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TsTmwWj9LVy4o3qDH52Jas
Signed-off-by: Impre-visible <[email protected]>
main now loads from the library outside the lock itself, so that half of
this branch is dropped in favour of main's. What remains is the empty
library created with a null blob.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TsTmwWj9LVy4o3qDH52Jas
Signed-off-by: Impre-visible <[email protected]>
The DXGI output mode list was fixed at the console's 3840x2160, so hosts
smaller than that carried the 4K render targets and their VRAM cost. Read
VICTORY_MODE=<width>x<height> instead (both dimensions 1..=16384); an
unparseable or out-of-range value keeps the 4K default.

From the local patches @pfhandler posted under #1677 while running through
vkd3d-proton on an 8 GB card.

Validation:
- cargo test -p victory-gpu --locked -- --test-threads=1
- cargo clippy -p victory-gpu --all-targets --all-features --locked -- -D warnings
- cargo xtask policy
- rustfmt --edition 2024 --check on the changed file
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TsTmwWj9LVy4o3qDH52Jas
Signed-off-by: Impre-visible <[email protected]>
On some host/driver pairs the driver's compiler is not safe to call
from several threads at once: on AMD RDNA4 the amdxc64 compiler
crashes while pipelines compile in parallel, and one worker avoids it.
The variable sets the worker count (0 makes pipelines on the calling
thread); unset, half the logical processors, 2 to 8, as before.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
The issue's reproducer is offline: `translate --pipelines` crashed in
amdxc64 on RDNA4, and translate sizes its own scoped workers by --jobs,
so the env never reached it. An unset --jobs now falls to the same
VICTORY_PIPELINE_THREADS the pipeline workers read (0 means one worker
there, since translate cannot run without any), covering both paths with
one setting.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
One worker serialises amdxc64 calls but the RDNA4 reporter's run still
died with the same fault — the wording promised more than the knob does.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
A multisample depth texture got a twin created with its sample count
and only ALLOW_UNORDERED_ACCESS, which D3D12 rejects (a multisample
resource needs the render target or depth stencil flag) and the debug
layer reports as an error. Such a texture now gets no twin: make()
logs it once and returns before creating anything.

A 16- or 32-bit depth texture that denies shader reads stays in its
typed format on the host (D16_UNORM, D32_FLOAT), so its copyable
footprint format no longer equalled the twin plane's typeless one
(R16_TYPELESS, R32_TYPELESS) and the twin was refused as needing a
conversion. The bytes are the same, so the footprint now names the
typeless format and the plane is copied straight through. Formats with
stencil keep their per-plane footprints and are unaffected.
Title textures of one memory share a host texture when it has their
uses and a view format of their family. A depth texture made with
D3D12_RESOURCE_FLAG_DENY_SHADER_RESOURCE keeps the flag and its typed
depth format (D32_FLOAT, D16_UNORM) on the host, and the uses checked
leave the flag out: a later texture or placed view of the same memory
that shaders read took that host texture, the host refused its shader
view, and the read saw zeros. Both shared one host texture, so no
alias copy ran either.

A host texture made without shader access (denied, or typed depth)
now only serves descriptions that deny shader access too. A readable
one gets a new host texture, which becomes the memory's; a placed view
reads what the GPU wrote through the old one by the existing alias
copy.

A test clears a D32_FLOAT depth texture that denies shader access and
reads the depth back through a placed view of its memory. The tests
that make alias copies now run one at a time, as one counts them.
main already keeps a dropped page guarded while a tracker holds its alias. When the last tracker on any mapping drops, the other mappings that guard_aliases guarded still stayed read-only in protected until a write faulted. Drop now opens those unwatched aliases too.
A list's Step::Memory (crate::memory::prepare) was queued once, by bind at the list's first title-memory draw, while a buffer range (defer_refresh) or a heap's views (defer_heap) are queued again after a step that writes title memory. A draw after an in-list copy into a title buffer then read the copy's old bytes through the page table. defer_memory now queues once until a title write (like defer_heap), and State::memory_map asks again on its cached path.
Optimize bindless heap tracking in crates/victory-gpu/src/bindless.rs:
- Replace BTreeMap<usize, u32> textures with FxMap<usize, TextureSlots>
  reverse index (inline single slot for the common 1-slot case) so
  bindless::forget() removes only the slots viewing that texture in
  O(slots viewing texture) instead of scanning all ~130,000 slots with
  slots.retain() under viewed.inner.
- Switch Inner::ranges from BTreeMap to FxMap (O(1) vs O(log N) per slot
  rewrite) and use FxMap on slots/textures/hulls/ends.
- Short-circuit Viewed::set when overwriting a slot with the identical Seen
  target (or None -> None) to avoid redundant map and hull mutations.
- Skip the cross-heap dedup HashSet in uploads() when there is only one heap.
- Keep viewed.inner held across made_copy/staging in uploads() to preserve
  liveness against concurrent Resource::drop -> bindless::forget().

Measured (--release bench_bindless_forget_and_set, median of 3 runs, 130,000 slots):
- 500 forget_hit:  263.939 ms -> 0.092 ms (2,869x, -99.97%)
- 100k set:         26.155 ms -> 1.235 ms (21.2x, -95.3%)
- 10k forget_miss: 155.1 us   -> 89.0 us  (1.74x, -42.6%)

Assisted-by: T3 Code (Antigravity, gemini-4-neon)
A benchmark of the guard lock under contention (issue #400 puts about
940 write faults a frame at about 450 us each, mostly waiting for the
lock): writer threads fault on a hot set of guarded pages while a
submission thread arms and takes every tracker in rounds. Prints faults
a second, fault latency (median, 99th percentile) and a take round's
median per writer count.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Twelve writer threads fault on guarded pages while a taker arms, takes
and copies every tracker (and reports pages taken by copy-back): at the
end every page whose copy differs from title memory must still be
changed, and no write may fault past the handler. Against a version
that made pages read-only outside the guard lock with a race between a
stale fault and the take, it failed 2 of 10 release runs (the process
died); main passes 20 of 20.

The contention benchmark gains GUARD_BENCH_SPIN_US, the time each writer
works between writes (closer to a title's fault rate than writing
back to back).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A thread opens 8-page ranges with `writing` every 200 us, as a file read
or DirectStorage does, and the benchmark prints the median and 99th
percentile of each (the opening and the marking after). Issue #400 puts
`writing` first among the guard lock's holders (174 ms a frame).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
After every submission take_reads scanned the texture-view read marks of
every slot a shader can index (HEAP_VIEWS, 2^21: 64 Ki words in each of
two bitmaps, plus the record of slots seen), whatever the title's view
heaps hold; reads_since (eviction stamps) did the same. Both now stop at
the end of the view slots in use (descriptor::view_slots): the most slots
any shader-visible view heap has had, raised to the end of the dynamic
slots a host heap hands out (tables made afresh, whose texture views
shaders read too and the eviction stamps look up). A mark past it names
no slot make_read or the eviction stamps act on, and stays set for a
larger heap to find. A host copy's pairs are buffer views, which take no
read marks.

read_marks_of_both_bitmaps_are_taken marks slots of a heap it makes and a
dynamic slot past them, instead of the last two possible slots, and checks
that a mark past every slot in use is not taken.
A write fault on a page a tracker is armed for saves the page's 64 KiB
before opening it, and did so (an allocation and a kernel copy) while
holding the guard lock that every title thread's write fault, every take
and every kernel write wait for (issue #400: about 450 us a fault, the
lock held about 600 ms a world frame). The fault now reads the bytes with
the lock released and keeps them only if the page stayed guarded
meanwhile: a count per page (folded onto 4,096) is bumped under the lock
whenever a page is opened, the only way a guarded page's bytes can
change, and checked when the lock is taken again. Otherwise the bytes are
read under the lock, as before. The bytes go to the page's own save only,
not to its aliases'.

A new test checks the oracle under contention: whatever a tracker saved
of a page equals the copy taken of it; with the opened-count check
removed it fails 10 of 10 runs. The concurrency tests now stop their
writers when an assertion fails instead of hanging.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SLrhrPRF9pqyeEQtcgYu3x
The host refuses a raw SRV or UAV whose first byte is not 16-byte aligned in
its buffer: the call is invalid and the device is removed. The console takes
a raw view at any dword, and a title run ended so, about 200 s in, with the
debug layer naming it:

    CreateShaderResourceView: When creating a RAW Shader Resource View, the
    offset of the first element from the start of the buffer must be a
    multiple of 16 bytes. Thus, FirstElement (2) must be a multiple of 4

buffer_srv and buffer_uav asked shadow::for_view for a copy the view starts
on an element (4 bytes) of. A raw view (and a constant buffer, made raw) now
asks for 16 bytes instead, so a view 4, 8 or 12 bytes past a boundary gets
its own copy, which starts on 256. view_copy asks the same, so the copy
refreshed and copied back for a view is the one its slot reads.

#3075 does this for raw UAVs; this covers SRVs and constant buffers too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
DispatchMesh checked y * z != 1, which overflows in debug builds, and a
dispatch with y or z = 0 still ran its x groups. mesh_groups runs none
when any dimension is 0, as D3D12 does.

Split from #24.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The title asks for 1 245 184 descriptor slots, more than the 1 000 000 a host
heap holds, and it walks them in increasing order. "Log when the high-water
mark moves" is therefore one line per distinct slot: 199 846 of the first
200 000 lines of a run, ~8 000 a second, on the thread recording the frame.

That was the whole of the first frame's stall:

    before   310 932 lines in the run, first frame 21 433 ms
    after        231 lines in the run, first frame     33 ms

Same build, same warm caches (926 MB pipeline library, 1 347 MB shader cache),
same 150 s window. What the line said - that slots above the host heap's count
are not mirrored - is what the one line now says.

The underlying problem is not this change: 245 184 title slots can never be
mirrored because they exceed the tier-2 heap limit, which needs either several
host heaps with the index arithmetic adjusted or the views above 1 M placed
elsewhere. That is why the first world frames get null views.

cargo test --workspace --locked; both clippy configurations with -D warnings;
cargo xtask policy.
The switch answers one question - "is this shader the one that removes the
device (or paints the wrong picture)?" - and it could only be asked of a
diagnostics build. That is the build in which the removal does not
reproduce on the machines seen so far: a diagnostics build does more work
per submission, so the frame that hangs the GPU in a release build never
gets there (measured here: release removes the device 10 s in, the same
build with `--features diagnostics` and no debug layer runs 180 s and does
not remove it at all).

So `is_skipped`, `skipped_shader` and `parse_skip_hashes` are no longer
behind the feature, and the three call sites keep the skip but gate only
their reporting (`note_drop`, `dropped`, `shaders_of`). A release build
now answers the question testers are actually asking:

    VICTORY_SKIP_PIPELINES=0602c2384acbb3b2  -> dropped 1/frame in the menu

and a skipped pipeline is dropped the way one with no host pipeline is
(the frame's "dropped N without a host pipeline" counter moves).

No behaviour change without the variable: `is_skipped` reads it once, and
an empty list is the `false` it was before.

cargo test --workspace --locked; both clippy configurations with -D
warnings; cargo xtask policy.
Import entries previously checked only that each 8-byte IAT slot ended within SizeOfImage, accepting null (RVA 0), header RVAs (such as 0x40), and gaps between sections, which would cause victory-loader/src/windows.rs to patch the image headers instead of an IAT slot. Check that every 8-byte IAT slot lies within one file-backed section as well as within SizeOfImage, and test null regular/delay IAT RVAs and a non-zero header IAT RVA.
`ValueWait::holds` returns `None` both for a comparison we do not know and
for memory that cannot be read, and `Held::pump` counted every `None` as
an unknown comparison, while the doc comment said unreadable memory was
"taken as not holding" (#2604). Whether titles make waits on memory not
yet readable, and whether it becomes readable later, could not be seen.

The pump now counts them apart (`Pumped::unreadable`, summed in the
frame's `Account` and named in its warning next to `forced`) and still
lets the work run, as `main` does; an `ALWAYS` wait never reads and is
not counted. The doc comment says so. Holding such work back can follow
once runs show the memory becomes readable.

Test: `unreadable_waits_are_counted_apart_and_do_not_hold_work`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
#450 changed Host::rtv to take Option<&ID3D12Resource>; the two tests were
written against main's &ID3D12Resource and stop compiling in the combined
tree. Only the test calls change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3409/head:github-bot/gh-3409'
git switch 'github-bot/gh-3409'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3409'
git switch 'github-bot/gh-3409'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3409'
git switch 'github-bot/gh-3409'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3409'
git switch 'main'
git merge --squash 'github-bot/gh-3409'
git switch 'main'
git merge --ff-only 'github-bot/gh-3409'
git switch 'main'
git merge 'github-bot/gh-3409'
git push origin 'main'
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/Marvisak--VIctory!3409
No description provided.