GPU: a root constant's dword 4 is a value, not a view offset (#2699) #2703

Open
github-bot wants to merge 1 commit from github-bot/gh-2703 into main AGit
Owner

@⁠Calvix2k on GitHub · 2026-11-25 18:28 UTC · original
Calvix2k:codex/gpu-root-view-offset → main · +23 −1 · 1 files · 1 commits · open

Fixes #2699.

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: a descriptor's dword 4 is an offset; constants' and tables' dword 4 are not.

Tests: cargo test -p victory-gpu --lib --locked only_a_root_descriptors_dword_four (pass), cargo clippy -p victory-gpu --all-targets clean.

**@⁠Calvix2k** on GitHub · 2026-11-25 18:28 UTC · [original](https://github.com/Marvisak/VIctory/pull/2703) `Calvix2k:codex/gpu-root-view-offset` → `main` · +23 −1 · 1 files · 1 commits · open Fixes #2699. 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: a descriptor's dword 4 is an offset; constants' and tables' dword 4 are not. Tests: `cargo test -p victory-gpu --lib --locked only_a_root_descriptors_dword_four` (pass), `cargo clippy -p victory-gpu --all-targets` clean.
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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:12:23 +00:00
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-25 18:48 UTC · original

The same WARP shader goes through VIctory's dispatch and reads a user-data word into a buffer. A root constant at dword 4 leaves the output at 0 on main 13f91caee2 and writes 1.25 on 7bb3ebaf46. The control puts a real root view 16 bytes into its buffer and reads the offset 16 on both revisions. Six paired runs across both debug settings reproduced this.

The serial GPU suite had 200 passes and one ignored in each setting. Strict GPU Clippy in both configurations and asset policy passed.

Test-only commit c4e53db is directly on your current head and checks the dispatch and readback in addition to the predicate. Please keep the Git author if you cherry-pick it, or add this trailer if folding it into another commit:

Co-authored-by: andrewpozdnakov7-jpg [email protected]

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-25 18:48 UTC · [original](https://github.com/Marvisak/VIctory/pull/2703#issuecomment-7171435334) The same WARP shader goes through VIctory's dispatch and reads a user-data word into a buffer. A root constant at dword 4 leaves the output at 0 on main 13f91caee25f2fdf2c062be5f7a27f058e51cbca and writes 1.25 on 7bb3ebaf46081958a6546cd74bd8290cd3a3b715. The control puts a real root view 16 bytes into its buffer and reads the offset 16 on both revisions. Six paired runs across both debug settings reproduced this. The serial GPU suite had 200 passes and one ignored in each setting. Strict GPU Clippy in both configurations and asset policy passed. [Test-only commit c4e53db](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/c4e53db58857e548a6409a53be55028c252eeddc) is directly on your current head and checks the dispatch and readback in addition to the predicate. Please keep the Git author if you cherry-pick it, or add this trailer if folding it into another commit: Co-authored-by: andrewpozdnakov7-jpg <[email protected]>
Author
Owner

@⁠kotekompotek on GitHub · 2026-11-25 18:50 UTC · original

Real bug, minimal fix - dword 4 is ROOT_VIEW_OFFSET only in the root-descriptor encoding; a constants param has a genuine value there. Gating on root == Descriptor matches how is_root_view already treats the namespace. The predicate test pins all three root types.

**@⁠kotekompotek** on GitHub · 2026-11-25 18:50 UTC · [original](https://github.com/Marvisak/VIctory/pull/2703#issuecomment-7171464662) Real bug, minimal fix - dword 4 is ROOT_VIEW_OFFSET only in the root-descriptor encoding; a constants param has a genuine value there. Gating on root == Descriptor matches how is_root_view already treats the namespace. The predicate test pins all three root types.
Author
Owner

@⁠fuzeofficlal on GitHub · 2026-11-25 18:51 UTC · original

Independent Windows 11 + NVIDIA GeForce RTX 5090 + WARP verification and full-repo audit of 7bb3ebaf (on 13f91ca):

Verification (rustc 1.98.1 MSVC)

  • cargo clippy --locked -p victory-gpu --all-targets -- -D warnings and --features diagnostics: 0 warnings.
  • RTX 5090: cargo test --locked -p victory-gpu --features diagnostics --lib draw: 14 passed, 0 failed (including only_a_root_descriptors_dword_four_is_a_view_offset).
  • WARP (VICTORY_D3D12_WARP=1): cargo test --locked -p victory-gpu --features diagnostics --lib -- --test-threads=1: 199 passed, 0 failed, 1 ignored.

Code Review & Repo Audit

  • Audited all remaining references to ROOT_VIEW_OFFSET, ROOT_SRV_VIEW, ROOT_UAV_VIEW, RootType, and user_data across victory-gpu and victory-shader: no other call site conflates RootType::Constants / RootType::Table dword 4 with a root view offset (user_value, is_root_view, and lower.rs all gate on RootType::Descriptor).
  • Looks clean and ready to merge (cherry-picking @⁠andrewpozdnakov7-jpg's c4e53db end-to-end dispatch test would be a nice bonus, though not blocking; also supersedes older #2295 on current main).
**@⁠fuzeofficlal** on GitHub · 2026-11-25 18:51 UTC · [original](https://github.com/Marvisak/VIctory/pull/2703#issuecomment-7171498482) Independent Windows 11 + NVIDIA GeForce RTX 5090 + WARP verification and full-repo audit of `7bb3ebaf` (on `13f91ca`): ### Verification (`rustc 1.98.1` MSVC) - `cargo clippy --locked -p victory-gpu --all-targets -- -D warnings` and `--features diagnostics`: **0 warnings**. - **RTX 5090:** `cargo test --locked -p victory-gpu --features diagnostics --lib draw`: **14 passed, 0 failed** (including `only_a_root_descriptors_dword_four_is_a_view_offset`). - **WARP (`VICTORY_D3D12_WARP=1`):** `cargo test --locked -p victory-gpu --features diagnostics --lib -- --test-threads=1`: **199 passed, 0 failed, 1 ignored**. ### Code Review & Repo Audit - Audited all remaining references to `ROOT_VIEW_OFFSET`, `ROOT_SRV_VIEW`, `ROOT_UAV_VIEW`, `RootType`, and `user_data` across `victory-gpu` and `victory-shader`: no other call site conflates `RootType::Constants` / `RootType::Table` dword 4 with a root view offset (`user_value`, `is_root_view`, and `lower.rs` all gate on `RootType::Descriptor`). - Looks clean and ready to merge (cherry-picking @⁠andrewpozdnakov7-jpg's `c4e53db` end-to-end dispatch test would be a nice bonus, though not blocking; also supersedes older #2295 on current `main`).
Author
Owner

@⁠oni-swr on GitHub · 2026-11-25 18:56 UTC · original

Independent WARP/CPU verification (claim: Marvisak/VIctory#1633)

  • PR head: 7bb3ebaf46081958a6546cd74bd8290cd3a3b715 / origin/main: 13f91caee25f2fdf2c062be5f7a27f058e51cbca
  • State: OPEN, non-draft; git merge-tree --write-tree origin/main <head> merges cleanly; no prior oni-swr comment on this head.
  • Environment: Windows 11 Pro 10.0.26200, VICTORY_WARP=1 + VICTORY_D3D12_WARP=1 (WARP only, no physical GPU, no game files/dumps/retail hashes), dxil.dll 1.8.2502.11 (Windows SDK 10.0.26100.0, via VICTORY_DXIL), rustc 1.98.1 (48a229cea 2026-09-01), debug profile, --locked.

Commands / results (baseline = origin/main, same environment)

cargo test -p victory-shader --locked
cargo test -p victory-gpu --locked
cargo clippy -p victory-gpu --locked --all-targets
  • victory-gpu: 196 passed / 0 failed / 1 ignored (+1 vs baseline 195). New draw::tests::only_a_root_descriptors_dword_four_is_a_view_offset ok.
  • victory-shader: 267 / 3 / 3, identical to baseline (the same 3 pre-existing WARP failures; unaffected by this PR).
  • clippy -p victory-gpu: 0 warnings, 0 errors (baseline 0).

Negative control: with the predicate loosened back to the old condition (u.dword == ROOT_VIEW_OFFSET, root type ignored), the new test FAILS; reverted afterwards.

Code review: No bugs found. Minimal fix: the offset substitution now requires RootType::Descriptor, so a root constant's dword 4 stays a value. The test is a unit test of the predicate (Descriptor/Constants/Table); it does not exercise the surrounding fill loop end to end.

Not tested: physical GPU hardware (RX 7800 XT or any), retail game run, release build, other crates.

AI use: Claude Code (Claude Sonnet 5.5) ran the commands and reviewed the diff; the results above are from the actual runs.

**@⁠oni-swr** on GitHub · 2026-11-25 18:56 UTC · [original](https://github.com/Marvisak/VIctory/pull/2703#issuecomment-7171619262) **Independent WARP/CPU verification** (claim: Marvisak/VIctory#1633) - PR head: `7bb3ebaf46081958a6546cd74bd8290cd3a3b715` / `origin/main`: `13f91caee25f2fdf2c062be5f7a27f058e51cbca` - State: OPEN, non-draft; `git merge-tree --write-tree origin/main <head>` merges cleanly; no prior `oni-swr` comment on this head. - Environment: Windows 11 Pro 10.0.26200, `VICTORY_WARP=1` + `VICTORY_D3D12_WARP=1` (WARP only, no physical GPU, no game files/dumps/retail hashes), `dxil.dll` 1.8.2502.11 (Windows SDK 10.0.26100.0, via `VICTORY_DXIL`), rustc 1.98.1 (48a229cea 2026-09-01), debug profile, `--locked`. **Commands / results** (baseline = `origin/main`, same environment) ``` cargo test -p victory-shader --locked cargo test -p victory-gpu --locked cargo clippy -p victory-gpu --locked --all-targets ``` - victory-gpu: 196 passed / 0 failed / 1 ignored (+1 vs baseline 195). New `draw::tests::only_a_root_descriptors_dword_four_is_a_view_offset` ok. - victory-shader: 267 / 3 / 3, identical to baseline (the same 3 pre-existing WARP failures; unaffected by this PR). - clippy -p victory-gpu: 0 warnings, 0 errors (baseline 0). **Negative control:** with the predicate loosened back to the old condition (`u.dword == ROOT_VIEW_OFFSET`, root type ignored), the new test FAILS; reverted afterwards. **Code review:** No bugs found. Minimal fix: the offset substitution now requires `RootType::Descriptor`, so a root constant's dword 4 stays a value. The test is a unit test of the predicate (Descriptor/Constants/Table); it does not exercise the surrounding fill loop end to end. **Not tested:** physical GPU hardware (RX 7800 XT or any), retail game run, release build, other crates. **AI use:** Claude Code (Claude Sonnet 5.5) ran the commands and reviewed the diff; the results above are from the actual runs.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 22:21 UTC · original

Automated triage for the maintainers.

Merge candidate (recommend a look). This is a real bug fix. In the user-data loop of State (crates/victory-gpu/src/draw.rs), any UserData with dword == ROOT_VIEW_OFFSET (4) was treated as a root view's offset. The translator (Lower::user_dword in emit/lower.rs) also emits dword: 4 for the fifth dword of a root constants parameter, so such draws and dispatches were refused. The new is_root_view_offset also requires RootType::Descriptor, the only root type for which Lower::root_view_offset emits that dword. The test pins the predicate. A contributor's comment adds an end-to-end WARP readback (main 0, this branch 1.25). It fixes the same thing as the older #2295 (needs work) and merges cleanly, so this is the one to take.

CI: check passing on this head.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 22:21 UTC · [original](https://github.com/Marvisak/VIctory/pull/2703#issuecomment-7176257384) <!-- victory-triage v1 head=7bb3ebaf46081958a6546cd74bd8290cd3a3b715 verdict=merge-candidate at=2026-11-25T22:23:30Z --> Automated triage for the maintainers. **Merge candidate (recommend a look).** This is a real bug fix. In the user-data loop of `State` (`crates/victory-gpu/src/draw.rs`), any `UserData` with `dword == ROOT_VIEW_OFFSET` (4) was treated as a root view's offset. The translator (`Lower::user_dword` in `emit/lower.rs`) also emits `dword: 4` for the fifth dword of a root *constants* parameter, so such draws and dispatches were refused. The new `is_root_view_offset` also requires `RootType::Descriptor`, the only root type for which `Lower::root_view_offset` emits that dword. The test pins the predicate. A contributor's comment adds an end-to-end WARP readback (main 0, this branch 1.25). It fixes the same thing as the older #2295 (needs work) and merges cleanly, so this is the one to take. CI: `check` passing on this head. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠Anzymanz on GitHub · 2026-11-25 23:10 UTC · original

From a tester working with Claude (AI-assisted, Claude Code): a second machine where this is the biggest drop class in the world.

Setup: RX 9070 XT, RADV (Mesa 26.3.1) through vkd3d-proton (GE-Proton 11-14), CachyOS; diagnostics build of main 13f91ca + #1997 + #454, Series X, 1.0.2.1; Microsoft's d3dcompiler_47 in the prefix so the indirect clamp builds.

Drops (a root view's offset: no root view, or outside title buffers, highest per-frame rate of each program over one world run): 3b90165a77d95cdf 1,014, f6e47efa50226beb 768, 6f6a359d1166bb27 314, 5e68767498c57eb6 298, and ffd93c8a029ff016, c42a31951201f9a0, 5062bc7a48e842f8, 190fbf0ebe040169, c85822de2e41cfaa 10-58 each. That is more than the being made drops (839) in the same run.

Why, checked offline: all of these are compute programs from XboxBvhBuilder.dll, and translating them (emit::translate_with) gives each a user-data entry with root: Constants, dword: 4 (3b90165a77d95cdf slot 2, f6e47efa50226beb slot 8, 6f6a359d1166bb27 and 5e68767498c57eb6 slot 0), which the ROOT_VIEW_OFFSET arm takes for a root view. So the RDNA4/Linux drops are this bug too. I haven't run the title with this PR yet; I'll post the A/B when I have it.

No game data here: hashes and counts only.

**@⁠Anzymanz** on GitHub · 2026-11-25 23:10 UTC · [original](https://github.com/Marvisak/VIctory/pull/2703#issuecomment-7177224259) From a tester working with Claude (AI-assisted, Claude Code): a second machine where this is the biggest drop class in the world. **Setup:** RX 9070 XT, RADV (Mesa 26.3.1) through vkd3d-proton (GE-Proton 11-14), CachyOS; diagnostics build of `main` `13f91ca` + #1997 + #454, Series X, 1.0.2.1; Microsoft's `d3dcompiler_47` in the prefix so the indirect clamp builds. **Drops** (`a root view's offset: no root view, or outside title buffers`, highest per-frame rate of each program over one world run): `3b90165a77d95cdf` 1,014, `f6e47efa50226beb` 768, `6f6a359d1166bb27` 314, `5e68767498c57eb6` 298, and `ffd93c8a029ff016`, `c42a31951201f9a0`, `5062bc7a48e842f8`, `190fbf0ebe040169`, `c85822de2e41cfaa` 10-58 each. That is more than the `being made` drops (839) in the same run. **Why, checked offline:** all of these are compute programs from `XboxBvhBuilder.dll`, and translating them (`emit::translate_with`) gives each a user-data entry with `root: Constants, dword: 4` (`3b90165a77d95cdf` slot 2, `f6e47efa50226beb` slot 8, `6f6a359d1166bb27` and `5e68767498c57eb6` slot 0), which the `ROOT_VIEW_OFFSET` arm takes for a root view. So the RDNA4/Linux drops are this bug too. I haven't run the title with this PR yet; I'll post the A/B when I have it. No game data here: hashes and counts only.
Author
Owner

@⁠Anzymanz on GitHub · 2026-11-25 23:35 UTC · original

The A/B I promised above, same machine (RX 9070 XT, RADV/Mesa 26.3.1 via vkd3d-proton, GE-Proton 11-14), same base (13f91ca + #1997 + #454 + #2644), diagnostics builds, warm shader cache, one run per arm, 30 s in the world each (the opening cutscene), VICTORY_GPU_TIMING=1:

base base + this PR
a root view's offset summary lines 56 0
draws and dispatches dropped per frame, world intervals 192 / 619 / 346 / 473 54 / 808 / 16 / 4 / 4
per-dispatch GPU time of the two costliest builder kernels (caa78b8ca62bc3d6, 28918b7150a7aad5) 0.37 / 0.77 ms 0.35 / 0.81 ms

So on RDNA4 under Linux this PR removes that drop class completely, and the ray-tracing builder's other programs now run; no new fault in the 30 s. Frame times aren't comparable between the two runs (different cutscene moments, and the timing mode serialises lists), so I'm not quoting them. The one 808 interval is right after the world loaded (pipelines still being made).

AI-assisted (Claude Code, Claude Opus 5.5); no game data, hashes and counts only.

**@⁠Anzymanz** on GitHub · 2026-11-25 23:35 UTC · [original](https://github.com/Marvisak/VIctory/pull/2703#issuecomment-7177774596) The A/B I promised above, same machine (RX 9070 XT, RADV/Mesa 26.3.1 via vkd3d-proton, GE-Proton 11-14), same base (`13f91ca` + #1997 + #454 + #2644), diagnostics builds, warm shader cache, one run per arm, 30 s in the world each (the opening cutscene), `VICTORY_GPU_TIMING=1`: | | base | base + this PR | |---|---|---| | `a root view's offset` summary lines | 56 | **0** | | draws and dispatches dropped per frame, world intervals | 192 / 619 / 346 / 473 | 54 / 808 / 16 / 4 / 4 | | per-dispatch GPU time of the two costliest builder kernels (`caa78b8ca62bc3d6`, `28918b7150a7aad5`) | 0.37 / 0.77 ms | 0.35 / 0.81 ms | So on RDNA4 under Linux this PR removes that drop class completely, and the ray-tracing builder's other programs now run; no new fault in the 30 s. Frame times aren't comparable between the two runs (different cutscene moments, and the timing mode serialises lists), so I'm not quoting them. The one 808 interval is right after the world loaded (pipelines still being made). AI-assisted (Claude Code, Claude Opus 5.5); no game data, hashes and counts only.
Author
Owner

@⁠davesousa on GitHub · 2026-11-26 00:59 UTC · original

NVIDIA in-game A/B: RTX 3070 Ti 8 GB (Ampere), driver 621.40, Windows 11 26200, TDR delay 8 s. diag build, warm caches. Base: main 63bcca4 + #2319 + #2178 + #2634 (what this card needs to reach the world). Then the same with this PR (7bb3eba, merges cleanly; only_a_root_descriptors_dword_four_is_a_view_offset passes here). Scripted input walks in the prologue from 150 s.

base base + this PR
runs 1 2
end stopped by me at 6 min, no removal 0x887A0006 at 133 s and at 81 s
a root view's offset drops per frame 259 0
world frame, median (frames with no pipelines being made) 815 ms (GPU 421 ms) 2.5-4 s (GPU 2.0-3.1 s), 2 samples before the removal
longest host submission 6 slow ones, all short 14.9 s and 15.5 s, each 2 lists

So the fix does what it says on NVIDIA too: the drop class is gone, and the builder programs the thread names (3b90165a77d95cdf, f6e47efa50226beb, 6f6a359d1166bb27, 5e68767498c57eb6 and the rest) run. But on this card what they then submit does not fit the timeout. In the second run, with VICTORY_D3D12_DRED=1, the removal follows a 2-list submission of 17,406 commands (the first list alone 11,969). DRED's stop is at an ordinary texture upload in that first list, so I read it as where the GPU was at 8 s, not as the cause. Three nvlddmkm resets at the moment of removal; no event 13.

That matches the 5080/Linux report in #1968's thread of the builder list running past the timeout until #2167. So on NVIDIA this PR seems to need the builder's work cut into smaller submissions (or made cheaper) to land without turning a running world into a hang. I haven't tried #2167 or #2214 with it yet.

AI-assisted (Claude Code); the runs are on my machine.

**@⁠davesousa** on GitHub · 2026-11-26 00:59 UTC · [original](https://github.com/Marvisak/VIctory/pull/2703#issuecomment-7179317530) NVIDIA in-game A/B: RTX 3070 Ti 8 GB (Ampere), driver 621.40, Windows 11 26200, TDR delay 8 s. `diag` build, warm caches. Base: `main` `63bcca4` + #2319 + #2178 + #2634 (what this card needs to reach the world). Then the same with this PR (`7bb3eba`, merges cleanly; `only_a_root_descriptors_dword_four_is_a_view_offset` passes here). Scripted input walks in the prologue from 150 s. | | base | base + this PR | |---|---|---| | runs | 1 | 2 | | end | stopped by me at 6 min, no removal | `0x887A0006` at 133 s and at 81 s | | `a root view's offset` drops per frame | 259 | 0 | | world frame, median (frames with no pipelines being made) | 815 ms (GPU 421 ms) | 2.5-4 s (GPU 2.0-3.1 s), 2 samples before the removal | | longest host submission | 6 slow ones, all short | 14.9 s and 15.5 s, each 2 lists | So the fix does what it says on NVIDIA too: the drop class is gone, and the builder programs the thread names (`3b90165a77d95cdf`, `f6e47efa50226beb`, `6f6a359d1166bb27`, `5e68767498c57eb6` and the rest) run. But on this card what they then submit does not fit the timeout. In the second run, with `VICTORY_D3D12_DRED=1`, the removal follows a 2-list submission of 17,406 commands (the first list alone 11,969). DRED's stop is at an ordinary texture upload in that first list, so I read it as where the GPU was at 8 s, not as the cause. Three `nvlddmkm` resets at the moment of removal; no event 13. That matches the 5080/Linux report in #1968's thread of the builder list running past the timeout until #2167. So on NVIDIA this PR seems to need the builder's work cut into smaller submissions (or made cheaper) to land without turning a running world into a hang. I haven't tried #2167 or #2214 with it yet. AI-assisted (Claude Code); the runs are on my machine.
Author
Owner

@⁠crashbashash on GitHub · 2026-11-26 01:13 UTC · original

AMD data point for comparison with the RTX 3070 Ti above: RX 6800 XT (RDNA2), Linux, Mesa RADV 26.2.6,
vkd3d-proton 71cae091b (GE-Proton11-14 with a newer vkd3d-proton), diag build of main 219878a plus our Linux
commits, the same prison scene from a save, 120 s in the world, idle machine.

without this PR with it
runs 2 2
draws and dispatches dropped per frame (median) 254, 355 2, 4
world frame, median 700, 779 ms 794, 746 ms
GPU time per frame, median 205, 214 ms 221, 210 ms
device removals or hangs none none

So on RDNA2 the builder's work lands at most at a small GPU cost (a few ms a frame, within run-to-run noise here),
unlike on Ampere. In the same runs nothing in the picture changed that I could attribute to it.

AI-assisted (Claude Code). No game data attached.

**@⁠crashbashash** on GitHub · 2026-11-26 01:13 UTC · [original](https://github.com/Marvisak/VIctory/pull/2703#issuecomment-7179565016) AMD data point for comparison with the RTX 3070 Ti above: RX 6800 XT (RDNA2), Linux, Mesa RADV 26.2.6, vkd3d-proton `71cae091b` (GE-Proton11-14 with a newer vkd3d-proton), `diag` build of `main` `219878a` plus our Linux commits, the same prison scene from a save, 120 s in the world, idle machine. | | without this PR | with it | |---|---|---| | runs | 2 | 2 | | draws and dispatches dropped per frame (median) | 254, 355 | 2, 4 | | world frame, median | 700, 779 ms | 794, 746 ms | | GPU time per frame, median | 205, 214 ms | 221, 210 ms | | device removals or hangs | none | none | So on RDNA2 the builder's work lands at most at a small GPU cost (a few ms a frame, within run-to-run noise here), unlike on Ampere. In the same runs nothing in the picture changed that I could attribute to it. AI-assisted (Claude Code). No game data attached.
Author
Owner

@⁠davesousa on GitHub · 2026-11-26 01:21 UTC · original

Follow-up: the same card and base, with this PR and #2167 (3cb308d, rebased on 63bcca4, merges cleanly; its mark and memory tests pass here), shader cache and pipelines rebuilt.

this PR this PR + #2167
end 0x887A0006 at 133 s and 81 s 0x887A0006 at 101 s (1 run)
the long 2-list submission 14.9 s, 15.5 s 11.1 s
commands in it 17,406 19,268

So #2167 takes about a quarter off, but not enough for an 8 s TDR here.

With VICTORY_GPU_TIMING=1 (each list run on its own; its times are inflated, FIND-29), a single list of 10,730 commands is what removes the device: slow host list ms=21168. DRED's stop is inside a barrier-free run of about 400 commands (1,267..1,668) that starts at dispatch 4x1x1 [compute f6e47efa50226beb], one of the builder programs this PR lets through. The per-command times in that list came back 0 because the device was gone, so I can't single out one dispatch. On this card the builder's work needs to reach the GPU in more than one submission (or with barriers that let the timeout breathe) before this PR can land without a hang on NVIDIA.

AI-assisted (Claude Code); the runs are on my machine.

**@⁠davesousa** on GitHub · 2026-11-26 01:21 UTC · [original](https://github.com/Marvisak/VIctory/pull/2703#issuecomment-7179690286) Follow-up: the same card and base, with this PR and #2167 (`3cb308d`, rebased on `63bcca4`, merges cleanly; its mark and memory tests pass here), shader cache and pipelines rebuilt. | | this PR | this PR + #2167 | |---|---|---| | end | `0x887A0006` at 133 s and 81 s | `0x887A0006` at 101 s (1 run) | | the long 2-list submission | 14.9 s, 15.5 s | 11.1 s | | commands in it | 17,406 | 19,268 | So #2167 takes about a quarter off, but not enough for an 8 s TDR here. With `VICTORY_GPU_TIMING=1` (each list run on its own; its times are inflated, FIND-29), a single list of 10,730 commands is what removes the device: `slow host list ms=21168`. DRED's stop is inside a barrier-free run of about 400 commands (1,267..1,668) that starts at `dispatch 4x1x1 [compute f6e47efa50226beb]`, one of the builder programs this PR lets through. The per-command times in that list came back 0 because the device was gone, so I can't single out one dispatch. On this card the builder's work needs to reach the GPU in more than one submission (or with barriers that let the timeout breathe) before this PR can land without a hang on NVIDIA. AI-assisted (Claude Code); the runs are on my machine.
Author
Owner

@⁠davesousa on GitHub · 2026-11-26 02:34 UTC · original

Follow-up 2: the same card and base (63bcca4 + #2319 + #2178 + #2634), this PR with #2118 and, separately, with #2841. Scripted walking from 150 s, 10-minute runs, warm caches (the #2841 build got its own shader cache and pipelines first). Both merge cleanly on this stack; #2118's three tests pass here.

this PR + #2118 (af8b9ad) + #2841 (274cdad)
runs 2 2 (one with DRED) 2 (one with DRED and VICTORY_GPU_TIMING=1)
end 0x887A0006 at 133 s and 81 s no removal, both stopped by me at 10 min GPU lost at 97 s (0x887A0006) and at about 90 s
longest host submission 14.9 s, 15.5 s 1.3 s, 0.64 s 13.1 s; in the timing run one list of 10,747 commands, 14.0 s
a root view's offset drops 0 0 0
world frame, median (2 samples, 2.5-4 s) 809 ms (GPU 430), 702 ms (GPU 352) (did not get that far)

For comparison, the base without this PR, summarised the same way: 835 ms median (GPU 431), longest submission 0.78 s. My first comment's 815 ms picked its frames slightly differently.

With #2118 the builder never starts on this card: BVH builder held back: not all its pipelines are made pipelines=53 made=44 refused=9 at the first world frame, and it stays held back for the whole run. The 9 are programs this card cannot make (its wave64 ones; the driver returns 0x80070057). So the resets need the builder dispatches this PR lets through, and on a 32-lane NVIDIA card those run without the 9, which is the case #2118 is for. With #2118, this PR lands here without a reset and keeps its drop count at 0.

#2841 on its own does not change that. Its thread-count path does run here (4ddd6f9702fab2a7 and 5062bc7a48e842f8 get their cut-short pipelines), but the long submission and the reset stay. The timing run has no DRED stop: VIctory crashed while writing its device-removed report.

Not tested here: the builder running whole on NVIDIA, which needs the wave64 work in #439/#2214. So whether its whole work fits the timeout on this card is still open.

AI-assisted (Claude Code); the runs are on my machine.

**@⁠davesousa** on GitHub · 2026-11-26 02:34 UTC · [original](https://github.com/Marvisak/VIctory/pull/2703#issuecomment-7180933443) Follow-up 2: the same card and base (`63bcca4` + #2319 + #2178 + #2634), this PR with #2118 and, separately, with #2841. Scripted walking from 150 s, 10-minute runs, warm caches (the #2841 build got its own shader cache and pipelines first). Both merge cleanly on this stack; #2118's three tests pass here. | | this PR | + #2118 (`af8b9ad`) | + #2841 (`274cdad`) | |---|---|---|---| | runs | 2 | 2 (one with DRED) | 2 (one with DRED and `VICTORY_GPU_TIMING=1`) | | end | `0x887A0006` at 133 s and 81 s | **no removal**, both stopped by me at 10 min | GPU lost at 97 s (`0x887A0006`) and at about 90 s | | longest host submission | 14.9 s, 15.5 s | 1.3 s, 0.64 s | 13.1 s; in the timing run one list of 10,747 commands, 14.0 s | | `a root view's offset` drops | 0 | 0 | 0 | | world frame, median | (2 samples, 2.5-4 s) | 809 ms (GPU 430), 702 ms (GPU 352) | (did not get that far) | For comparison, the base without this PR, summarised the same way: 835 ms median (GPU 431), longest submission 0.78 s. My first comment's 815 ms picked its frames slightly differently. With #2118 the builder never starts on this card: `BVH builder held back: not all its pipelines are made pipelines=53 made=44 refused=9` at the first world frame, and it stays held back for the whole run. The 9 are programs this card cannot make (its wave64 ones; the driver returns 0x80070057). So the resets need the builder dispatches this PR lets through, and on a 32-lane NVIDIA card those run without the 9, which is the case #2118 is for. With #2118, this PR lands here without a reset and keeps its drop count at 0. #2841 on its own does not change that. Its thread-count path does run here (`4ddd6f9702fab2a7` and `5062bc7a48e842f8` get their cut-short pipelines), but the long submission and the reset stay. The timing run has no DRED stop: VIctory crashed while writing its device-removed report. Not tested here: the builder running whole on NVIDIA, which needs the wave64 work in #439/#2214. So whether its whole work fits the timeout on this card is still open. AI-assisted (Claude Code); the runs are on my machine.
Author
Owner

@⁠Dukestar69 on GitHub · 2026-11-26 04:23 UTC · original · approved these changes

Tested merged onto origin/main (63bcca4) on Windows 11 x64:

  • cargo test -p victory-gpu --lib draw::tests::only_a_root_descriptors_dword_four_is_a_view_offset: 1 passed, 0 failed.
  • cargo clippy -p victory-gpu --all-targets -- -D warnings: clean.
  • cargo xtask policy: 191 files ok.

Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).

**@⁠Dukestar69** on GitHub · 2026-11-26 04:23 UTC · [original](https://github.com/Marvisak/VIctory/pull/2703#pullrequestreview-6068526454) · **approved these changes** Tested merged onto `origin/main` (`63bcca4`) on Windows 11 x64: - `cargo test -p victory-gpu --lib draw::tests::only_a_root_descriptors_dword_four_is_a_view_offset`: **1 passed, 0 failed**. - `cargo clippy -p victory-gpu --all-targets -- -D warnings`: clean. - `cargo xtask policy`: 191 files ok. Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
Author
Owner

@⁠lhnizdo on GitHub · 2026-11-26 08:04 UTC · original

A data point from a 32-lane NVIDIA card, in case it helps: with this change, the first frames in the world became heavy enough here to trip Windows' 2-second GPU timeout.

  • Setup: RTX 2080 (driver 32.0.16.1742), Windows 10 19045, TdrDelay at its default (2 s), a story save that loads straight into the world.
  • Stack: main 63bcca4 plus #2460, #2461, #2464 and some local work that isn't upstream: #1960 and an experimental console mode for wave64 programs on 32-lane hosts. So this isn't plain main. The only difference between the two sets of runs is #2703.
  • Without #2703: two 10-minute runs reached the world with no device removal. The slowest single submission was 1.1 s.
  • With #2703: six runs on the same stack all lost the device (DXGI_ERROR_DEVICE_HUNG) as the world appeared. Right before it, a single submission took 2.9–3.5 s, once 12 s. DRED's in-flight command moved from run to run (e30970f1727063fd, 3b90165a77d95cdf, cb9647e77864cb3a): the GPU was simply past the timeout, not stuck on one command.

My reading is that the change makes programs that read a root constant's dword 4 get their real value and do their real work, which is presumably correct (@⁠Anzymanz saw fewer dropped draws with it). On a slower card the first world frames then cross 2 s, so raising TdrDelay (as victory_gpu::tdr's warning suggests) would be needed. I haven't measured it with a raised TdrDelay yet.

AI-assisted (Claude Code); the runs were on my machine. No game data.

**@⁠lhnizdo** on GitHub · 2026-11-26 08:04 UTC · [original](https://github.com/Marvisak/VIctory/pull/2703#issuecomment-7186146968) A data point from a 32-lane NVIDIA card, in case it helps: with this change, the first frames in the world became heavy enough here to trip Windows' 2-second GPU timeout. - **Setup:** RTX 2080 (driver 32.0.16.1742), Windows 10 19045, `TdrDelay` at its default (2 s), a story save that loads straight into the world. - **Stack:** `main` `63bcca4` plus #2460, #2461, #2464 and some local work that isn't upstream: #1960 and an experimental console mode for wave64 programs on 32-lane hosts. So this isn't plain `main`. The only difference between the two sets of runs is #2703. - **Without #2703:** two 10-minute runs reached the world with no device removal. The slowest single submission was 1.1 s. - **With #2703:** six runs on the same stack all lost the device (`DXGI_ERROR_DEVICE_HUNG`) as the world appeared. Right before it, a single submission took 2.9–3.5 s, once 12 s. DRED's in-flight command moved from run to run (`e30970f1727063fd`, `3b90165a77d95cdf`, `cb9647e77864cb3a`): the GPU was simply past the timeout, not stuck on one command. My reading is that the change makes programs that read a root constant's dword 4 get their real value and do their real work, which is presumably correct (@⁠Anzymanz saw fewer dropped draws with it). On a slower card the first world frames then cross 2 s, so raising `TdrDelay` (as `victory_gpu::tdr`'s warning suggests) would be needed. I haven't measured it with a raised `TdrDelay` yet. AI-assisted (Claude Code); the runs were on my machine. No game data.
Author
Owner

@⁠arogan178 on GitHub · 2026-11-26 10:39 UTC · original · edited 2026-11-26 10:41 UTC

Confirmed in game: this removes almost all dropped draws and dispatches on AMD under Proton, with no new translation failures.

Setup: GTA VI 1.0.2.1, RX 9070 XT, Linux/Proton (vkd3d-proton). Diag builds of main 63bcca4 with and without this PR. #1722 was applied locally in both runs for the pipeline library.

Heavy scenes (>3000 draws/frame), ~20 five-second reports per run:

main main + #2703
dropped draws + dispatches/frame 288 5
fps 1.50 1.53
GPU ms/frame 155 164
  • On main, nearly all of the heavy-scene drops (~285/frame) were a root view's offset: no root view, or outside title buffers, across 11 compute shaders. With this PR that reason never appears.
  • Both runs log the same 7 shader does not translate hashes. None are new.
  • GPU time rises ~6% because that work now runs. fps is unchanged; the GPU is not the limit in this setup.
**@⁠arogan178** on GitHub · 2026-11-26 10:39 UTC · [original](https://github.com/Marvisak/VIctory/pull/2703#issuecomment-7189655192) · edited 2026-11-26 10:41 UTC Confirmed in game: this removes almost all dropped draws and dispatches on AMD under Proton, with no new translation failures. Setup: GTA VI 1.0.2.1, RX 9070 XT, Linux/Proton (vkd3d-proton). Diag builds of `main` 63bcca4 with and without this PR. #1722 was applied locally in both runs for the pipeline library. Heavy scenes (>3000 draws/frame), ~20 five-second reports per run: | | main | main + #2703 | |---|---|---| | dropped draws + dispatches/frame | 288 | 5 | | fps | 1.50 | 1.53 | | GPU ms/frame | 155 | 164 | - On `main`, nearly all of the heavy-scene drops (~285/frame) were `a root view's offset: no root view, or outside title buffers`, across 11 compute shaders. With this PR that reason never appears. - Both runs log the same 7 `shader does not translate` hashes. None are new. - GPU time rises ~6% because that work now runs. fps is unchanged; the GPU is not the limit in this setup.
Author
Owner

@⁠fuzeofficlal on GitHub · 2026-11-26 11:04 UTC · original · approved these changes

Verified 7bb3ebaf locally on Windows 11 (RTX 5090 and WARP, with VICTORY_D3D12_DEBUG=1):

  • cargo xtask policy and cargo clippy -p victory-gpu --tests -- -D warnings (default and --all-features): clean.
  • draw::tests (12/12, including only_a_root_descriptors_dword_four_is_a_view_offset): passed on RTX 5090, RTX 5090 + VICTORY_D3D12_DEBUG=1, and WARP + VICTORY_D3D12_DEBUG=1.

Checked every other ROOT_VIEW_OFFSET / ROOT_SRV_VIEW / ROOT_UAV_VIEW / is_root_view site across the workspace; this branch in State::bind was the only place missing the RootType::Descriptor guard (matching is_root_view). Clean, minimal fix — ready to merge.

**@⁠fuzeofficlal** on GitHub · 2026-11-26 11:04 UTC · [original](https://github.com/Marvisak/VIctory/pull/2703#pullrequestreview-6073016298) · **approved these changes** Verified `7bb3ebaf` locally on Windows 11 (RTX 5090 and WARP, with `VICTORY_D3D12_DEBUG=1`): - `cargo xtask policy` and `cargo clippy -p victory-gpu --tests -- -D warnings` (default and `--all-features`): clean. - `draw::tests` (12/12, including `only_a_root_descriptors_dword_four_is_a_view_offset`): passed on RTX 5090, RTX 5090 + `VICTORY_D3D12_DEBUG=1`, and WARP + `VICTORY_D3D12_DEBUG=1`. Checked every other `ROOT_VIEW_OFFSET` / `ROOT_SRV_VIEW` / `ROOT_UAV_VIEW` / `is_root_view` site across the workspace; this branch in `State::bind` was the only place missing the `RootType::Descriptor` guard (matching `is_root_view`). Clean, minimal fix — ready to merge.
Author
Owner

@⁠lhnizdo on GitHub · 2026-11-26 11:09 UTC · original

Follow-up to my comment above, now measured with a raised TdrDelay: on this 32-lane card the change needs #2118 alongside it, and with both there is no reset.

  • Setup: RTX 2080 (driver 32.0.16.1742), Windows 10 19045, TdrDelay 10 s and TdrDdiDelay 20 s. Same stack as before (main 63bcca4 plus #2460, #2461, #2464 and the local wave64 work), same story save that loads straight into the world. 12-minute runs.
without this PR this PR + #2118 (af8b9ad)
device removal none none
longest host submission 2.4 s 2.5 s
dropped a root view's offset: no root view, or outside title buffers ~248 a frame (7 compute programs) 0
all dropped draws and dispatches ~526 a frame ~285 a frame
BVH builder — held back the whole run: pipelines=53 made=45 refused=8

So @⁠davesousa's reading holds here too. My earlier resets with this PR (submissions of 2.9–12 s) look like the builder running without the 8 wave64 programs this card refuses. With #2118 holding the builder back, the submissions stay where they were without this PR. The rest of the drops in the right column are local diagnostics skipping programs on purpose, plus ~20 a frame for programs that don't translate here. None of it comes from this PR.

One unrelated note in case it saves someone time: with TdrDelay at 10 s, the programs I had blamed for hangs earlier ran fine. They had just been over 2 s. Raising it is worth doing before reading a device removal on a slower card as a stuck program.

AI-assisted (Claude Code); the runs were on my machine. No game data.

**@⁠lhnizdo** on GitHub · 2026-11-26 11:09 UTC · [original](https://github.com/Marvisak/VIctory/pull/2703#issuecomment-7190349186) Follow-up to my comment above, now measured with a raised `TdrDelay`: on this 32-lane card the change needs #2118 alongside it, and with both there is no reset. - **Setup:** RTX 2080 (driver 32.0.16.1742), Windows 10 19045, `TdrDelay` 10 s and `TdrDdiDelay` 20 s. Same stack as before (`main` `63bcca4` plus #2460, #2461, #2464 and the local wave64 work), same story save that loads straight into the world. 12-minute runs. | | without this PR | this PR + #2118 (`af8b9ad`) | |---|---:|---:| | device removal | none | **none** | | longest host submission | 2.4 s | 2.5 s | | dropped `a root view's offset: no root view, or outside title buffers` | ~248 a frame (7 compute programs) | **0** | | all dropped draws and dispatches | ~526 a frame | ~285 a frame | | BVH builder | — | held back the whole run: `pipelines=53 made=45 refused=8` | So @⁠davesousa's reading holds here too. My earlier resets with this PR (submissions of 2.9–12 s) look like the builder running without the 8 wave64 programs this card refuses. With #2118 holding the builder back, the submissions stay where they were without this PR. The rest of the drops in the right column are local diagnostics skipping programs on purpose, plus ~20 a frame for programs that don't translate here. None of it comes from this PR. One unrelated note in case it saves someone time: with `TdrDelay` at 10 s, the programs I had blamed for hangs earlier ran fine. They had just been over 2 s. Raising it is worth doing before reading a device removal on a slower card as a stuck program. AI-assisted (Claude Code); the runs were on my machine. No game data.
Author
Owner

@⁠JurajSimicevic on GitHub · 2026-11-26 13:15 UTC · original

Blackwell data point: this PR with #2118, on top of #2461

Setup:

  • RTX 5080 (32-lane waves), driver 617.42, Windows 11 26200.
  • Diag build of main 63bcca4 + #2178 + #2461 (6544a52), with and without this PR (7bb3eba) and #2118 (af8b9ad). All of them merge cleanly.
  • #1968's program A skipped, VICTORY_D3D12_DRED=1, warm caches.
  • One run per build, about 6 minutes in the world, camera turning.
without this PR + #2118
a root view's offset: no root view, or outside title buffers report lines in the world 509 0
a dispatch of the BVH builder held back — logged at the world's first frames
longest slow host submission 4.8 s 4.6 s
most draws in a frame 10,190 11,690
device removed no no

This matches lhnizdo's RTX 2080 and davesousa's RTX 3070 Ti results above. The root-view drops are gone, and with the builder held back, no submission gets longer than before. I didn't run this PR without #2118 on this card.

Local diagnostics only. No game data: log counts only.

AI-assisted.

**@⁠JurajSimicevic** on GitHub · 2026-11-26 13:15 UTC · [original](https://github.com/Marvisak/VIctory/pull/2703#issuecomment-7193086066) **Blackwell data point: this PR with #2118, on top of #2461** Setup: - RTX 5080 (32-lane waves), driver 617.42, Windows 11 26200. - Diag build of `main` `63bcca4` + #2178 + #2461 (`6544a52`), with and without this PR (`7bb3eba`) and #2118 (`af8b9ad`). All of them merge cleanly. - #1968's program A skipped, `VICTORY_D3D12_DRED=1`, warm caches. - One run per build, about 6 minutes in the world, camera turning. | | without | this PR + #2118 | |---|---:|---:| | `a root view's offset: no root view, or outside title buffers` report lines in the world | 509 | **0** | | `a dispatch of the BVH builder held back` | — | logged at the world's first frames | | longest slow host submission | 4.8 s | 4.6 s | | most draws in a frame | 10,190 | 11,690 | | device removed | no | no | This matches lhnizdo's RTX 2080 and davesousa's RTX 3070 Ti results above. The root-view drops are gone, and with the builder held back, no submission gets longer than before. I didn't run this PR without #2118 on this card. Local diagnostics only. No game data: log counts only. AI-assisted.
Author
Owner

@⁠Jackster on GitHub · 2026-11-26 14:30 UTC · original

A named program this restores, and the scale of the effect on the title

On the retail build (RX 7900 XTX, driver 32.0.32029.2010, Windows 10 26300.10075, 300 s world runs, diagnostics build at 63bcca4 plus a stack of open PRs), the difference this makes on one program and on the frame:

  • On unpatched main, compute c85822de2e41cfaa translates and makes its pipeline, then is dropped at dispatch with: a root view's offset: no root view, or outside title buffers [compute c85822de2e41cfaa], about 5 draws/frame. With this PR in the tree the same program binds and the drop disappears.
  • Across the frame, the "a root view's offset" refusals went from 336 logged lines over 11 programs (up to 402 draws dropped in a frame) to 0, and dropped/frame from 431 (1,216 still being made) to 64 and then 0 as the queue drained. Shaders translated in the run rose from 500 to 1,711 because those programs now reach the device.

Those numbers are from a 300 s A/B on the same save with this PR as the only difference in the second step; the per-program line above is from a VICTORY_LOG=victory=info run and is reproducible by grepping for the hash.

The per-program name is the part this PR's description does not have, and it is the same class as #3094's report — a root constant's dword 4 read as a view offset.

Written with an AI assistant.

**@⁠Jackster** on GitHub · 2026-11-26 14:30 UTC · [original](https://github.com/Marvisak/VIctory/pull/2703#issuecomment-7194920613) **A named program this restores, and the scale of the effect on the title** On the retail build (RX 7900 XTX, driver 32.0.32029.2010, Windows 10 26300.10075, 300 s world runs, diagnostics build at `63bcca4` plus a stack of open PRs), the difference this makes on one program and on the frame: - On unpatched `main`, compute `c85822de2e41cfaa` translates and makes its pipeline, then is dropped at dispatch with: `a root view's offset: no root view, or outside title buffers [compute c85822de2e41cfaa]`, about 5 draws/frame. With this PR in the tree the same program binds and the drop disappears. - Across the frame, the "a root view's offset" refusals went from 336 logged lines over 11 programs (up to 402 draws dropped in a frame) to 0, and `dropped/frame` from 431 (1,216 still being made) to 64 and then 0 as the queue drained. Shaders translated in the run rose from 500 to 1,711 because those programs now reach the device. Those numbers are from a 300 s A/B on the same save with this PR as the only difference in the second step; the per-program line above is from a `VICTORY_LOG=victory=info` run and is reproducible by grepping for the hash. The per-program name is the part this PR's description does not have, and it is the same class as #3094's report — a root constant's dword 4 read as a view offset. Written with an AI assistant.
Author
Owner

@⁠zed6000 on GitHub · 2026-11-26 16:45 UTC · original

Tried in the game: this removes every a root view's offset drop in the intro, on AMD.

Setup: RX 7900 XTX (RDNA3), driver 32.0.32029.2010, Windows 11 26200, Ryzen 9 7900X3D; diag builds (--profile diag --features diagnostics), Series X profile, played by hand from boot into the intro cutscene. Warm caches (the counts below exclude the AMD driver's first-run compile).

build report windows dispatch: a root view's offset: no root view, or outside title buffers other drops, once warm fps, warm
main 63bcca4 21 in 9 windows: 60 to 1,060 dispatches/frame (median about 560), 11 compute pipelines indirect "no host pipeline", 8 shaders that do not translate 1–2
the #1247 shader stack + this PR (7bb3ebaf cherry-picked cleanly) 104 none 0 dropped draws/frame and 0 dropped indirect in every warm window 1.4–2.4

The release build of the stack without this PR still dropped 200–370 draws/frame in the same scene (posted on #400), and its shaders all translate, so this reason accounted for most of what remained there. No new warnings and no hang. The intro draws far more of the scene; some surfaces (skin) still look too dark, which this PR would not be expected to change.

#2295 makes the same change, so it should behave the same; I only ran this one.

**@⁠zed6000** on GitHub · 2026-11-26 16:45 UTC · [original](https://github.com/Marvisak/VIctory/pull/2703#issuecomment-7198060620) **Tried in the game: this removes every `a root view's offset` drop in the intro, on AMD.** **Setup:** RX 7900 XTX (RDNA3), driver 32.0.32029.2010, Windows 11 26200, Ryzen 9 7900X3D; diag builds (`--profile diag --features diagnostics`), Series X profile, played by hand from boot into the intro cutscene. Warm caches (the counts below exclude the AMD driver's first-run compile). | build | report windows | `dispatch: a root view's offset: no root view, or outside title buffers` | other drops, once warm | fps, warm | |---|---:|---|---|---:| | `main` `63bcca4` | 21 | in 9 windows: 60 to 1,060 dispatches/frame (median about 560), 11 compute pipelines | indirect "no host pipeline", 8 shaders that do not translate | 1–2 | | the #1247 shader stack + this PR (`7bb3ebaf` cherry-picked cleanly) | 104 | **none** | **0 dropped draws/frame** and 0 dropped indirect in every warm window | 1.4–2.4 | The release build of the stack *without* this PR still dropped 200–370 draws/frame in the same scene (posted on #400), and its shaders all translate, so this reason accounted for most of what remained there. No new warnings and no hang. The intro draws far more of the scene; some surfaces (skin) still look too dark, which this PR would not be expected to change. #2295 makes the same change, so it should behave the same; I only ran this one.
Author
Owner

@⁠lhnizdo on GitHub · 2026-11-26 16:51 UTC · original

@⁠zed6000, thanks, that matches what I saw on NVIDIA. On an RTX 2080 in the world, root-view drops went from about 248 dispatches a frame to 0.

One note for anyone trying this on a 32-lane NVIDIA card: there it needs #2118 alongside. Without it, the BVH builder's dispatches run while the card refuses some of its wave64 programs. On the RTX 2080 that gave single submissions of 12–15 s and a device reset in the world, and @⁠davesousa saw the same on an RTX 3070 Ti. With #2118 holding the builder back, the longest submission stayed at about 2.5 s, the same as without this PR. JurajSimicevic's RTX 5080 run with both agrees. On your RX 7900 XTX the builder's programs all run, so the PR stands on its own there.

AI-assisted (Claude Code). No game data.

**@⁠lhnizdo** on GitHub · 2026-11-26 16:51 UTC · [original](https://github.com/Marvisak/VIctory/pull/2703#issuecomment-7198180658) @⁠zed6000, thanks, that matches what I saw on NVIDIA. On an RTX 2080 in the world, root-view drops went from about 248 dispatches a frame to 0. One note for anyone trying this on a **32-lane NVIDIA card**: there it needs #2118 alongside. Without it, the BVH builder's dispatches run while the card refuses some of its wave64 programs. On the RTX 2080 that gave single submissions of 12–15 s and a device reset in the world, and @⁠davesousa saw the same on an RTX 3070 Ti. With #2118 holding the builder back, the longest submission stayed at about 2.5 s, the same as without this PR. JurajSimicevic's RTX 5080 run with both agrees. On your RX 7900 XTX the builder's programs all run, so the PR stands on its own there. AI-assisted (Claude Code). No game data.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
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/2703/head:github-bot/gh-2703'
git switch 'github-bot/gh-2703'

Merge

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