GPU: view addresses for tables made afresh (dynamic slots) #1906

Manually merged
github merged 2 commits from gh-pr/1906/head into gh-pr/1906/base 2026-11-26 04:48:15 +00:00
Owner

@⁠Slay326 on GitHub · 2026-11-25 00:32 UTC · original
Slay326:fix/view-addresses-dynamic-slots → main · +140 −7 · 2 files · 2 commits · merged 2026-11-25 21:52 UTC

Problem

On an RTX 3070 the host view heap is capped at 1,000,000 descriptors (host view heap capped at 1000000 ... count=1245184), smaller than the title's. A table that reaches past the host heap is made afresh in the dynamic slots, and the shader gets that table's offset.

A shader that reads a view's address as data (HostHeap::view_addresses, e.g. the BVH builder's base) then indexes the view addresses at the fresh table's slots. That buffer had one entry per title slot only and is bound as a root view, which has no bounds. So the read went past the end of the buffer, and no address was ever entered for a dynamic slot.

A per-command fence diagnostic (local, not part of this PR) names the command that never finishes. It is the same indirect compute dispatch, with the same argument address, in two runs (one on main + #1763, one on main with a local format workaround instead of #1763):

fence-each: device removed, list stopped at command 18: indirect kind 2 max 1 at 0xd9358fe80 [compute f607780aa8e502d0] | f607780aa8e502d0: VIEWADDR entries=Some(934464) ... FRESH(root param, first heap index) [(1, 935376)]

The view-address buffer has 934,464 entries (1,000,000 minus 65,536 dynamic slots); the fresh table starts at slot 935,376.

Change

  • HostHeap::view_addresses has one entry per title slot and per dynamic slot (address_slots()); the dynamic ones start empty.
  • Every path that makes a dynamic slot writes its entry: make_at the view's address, make_null zero, and raw_view_at / raw_pair_at (our root views and view pairs) zero, so no entry of an earlier table stays. A slot given back keeps its entry until it is made again; every fresh table makes all of its slots. note_address ignores an index past the buffer.
  • State::bind creates the view addresses before the stage's tables are made, so a table made afresh in the same bind enters its addresses.
  • Test (second commit, synthetic only): descriptor::host::tests::view_addresses_cover_tables_made_afresh. It covers a dynamic slot's entry before and after make_at, its neighbour, the last dynamic slot, a slot given back, make_null, raw_view_at, raw_pair_at, and a write past the end. With the test and its helper address_at applied to main, it fails (not made yet: left None, right Some(0)); it passes with the change. It covers HostHeap only, not the State::bind part.

The buffer grows once by the dynamic slots (on this card from 934,464 to 1,000,000 entries, about 0.5 MB more).

Tested

Windows 11 (10.0.26200), RTX 3070 8 GB, driver 32.0.16.1088, Ryzen 7 7700, 32 GB. Title v1.0.2.1. VICTORY_KEYS sends Enter every 5 s from 15 s to 100 s, then every 10 s to 170 s; the world starts about 90 s in.

On this card main alone removes the device 12-14 s after start (B4G4R4A4 render targets and B5G5R5A1 typed UAVs, see #1753). All runs below therefore include #1763.

Before (main 70564ae + #1763):

Run Build and switches Result
1 diag, VICTORY_D3D12_DEBUG=1, VICTORY_D3D12_DRED=1 DXGI_ERROR_DEVICE_HUNG after 161 s
2 as 1, plus VICTORY_SHADER_LOOP_LIMIT=4096 DXGI_ERROR_DEVICE_HUNG after 118 s
3 diag with local diagnostics, VICTORY_DIAG_FENCE_EACH=1 DXGI_ERROR_DEVICE_HUNG after 123 s (the log line above)

After (main 70564ae + #1763 + this change):

Run Build and switches Result
4 diag, capture switches only no device removal; stopped by its 420 s time limit
5 release with diagnostics, earlier revision of this change (without the raw_view_at/raw_pair_at entries) no device removal; stopped at 420 s
6 release with diagnostics, this PR's head no device removal; stopped at 420 s

Before this change, removals on this card came 118-386 s in across several local bases, so 420 s runs are not a large margin; they are what I have.

  • cargo test -p victory-gpu: 77 passed, 2 failed, 1 ignored; with --features diagnostics 80 passed, 2 failed, 1 ignored. The two failures (descriptor::host::tests::dynamic_slots_are_held_until_released, memory::tests::lists_share_a_table_and_copies_keep_their_views) fail the same way on main on this card (NumDescriptors >= HEAP_VIEWS, past the dynamic slots).
  • cargo clippy --workspace --all-targets -- -D warnings: clean. cargo xtask policy: 174 files ok.

Not addressed

  • With this change alone the world on this card stays at about 0.07 fps: one compute dispatch per frame takes about 12 s, completes and does not remove the device. That is a separate problem (raw buffer loads through structured views read the wrong bytes on NVIDIA) and not part of this PR.
  • Only tested on one NVIDIA card. Hosts whose view heap holds the title's whole heap may never make these tables in the dynamic slots.

No game data is in this PR.

AI-assisted.

**@⁠Slay326** on GitHub · 2026-11-25 00:32 UTC · [original](https://github.com/Marvisak/VIctory/pull/1906) `Slay326:fix/view-addresses-dynamic-slots` → `main` · +140 −7 · 2 files · 2 commits · merged 2026-11-25 21:52 UTC ## Problem On an RTX 3070 the host view heap is capped at 1,000,000 descriptors (`host view heap capped at 1000000 ... count=1245184`), smaller than the title's. A table that reaches past the host heap is made afresh in the dynamic slots, and the shader gets that table's offset. A shader that reads a view's address as data (`HostHeap::view_addresses`, e.g. the BVH builder's base) then indexes the view addresses at the fresh table's slots. That buffer had one entry per title slot only and is bound as a root view, which has no bounds. So the read went past the end of the buffer, and no address was ever entered for a dynamic slot. A per-command fence diagnostic (local, not part of this PR) names the command that never finishes. It is the same indirect compute dispatch, with the same argument address, in two runs (one on `main` + #1763, one on `main` with a local format workaround instead of #1763): ``` fence-each: device removed, list stopped at command 18: indirect kind 2 max 1 at 0xd9358fe80 [compute f607780aa8e502d0] | f607780aa8e502d0: VIEWADDR entries=Some(934464) ... FRESH(root param, first heap index) [(1, 935376)] ``` The view-address buffer has 934,464 entries (1,000,000 minus 65,536 dynamic slots); the fresh table starts at slot 935,376. ## Change - `HostHeap::view_addresses` has one entry per title slot and per dynamic slot (`address_slots()`); the dynamic ones start empty. - Every path that makes a dynamic slot writes its entry: `make_at` the view's address, `make_null` zero, and `raw_view_at` / `raw_pair_at` (our root views and view pairs) zero, so no entry of an earlier table stays. A slot given back keeps its entry until it is made again; every fresh table makes all of its slots. `note_address` ignores an index past the buffer. - `State::bind` creates the view addresses before the stage's tables are made, so a table made afresh in the same bind enters its addresses. - Test (second commit, synthetic only): `descriptor::host::tests::view_addresses_cover_tables_made_afresh`. It covers a dynamic slot's entry before and after `make_at`, its neighbour, the last dynamic slot, a slot given back, `make_null`, `raw_view_at`, `raw_pair_at`, and a write past the end. With the test and its helper `address_at` applied to `main`, it fails (`not made yet: left None, right Some(0)`); it passes with the change. It covers `HostHeap` only, not the `State::bind` part. The buffer grows once by the dynamic slots (on this card from 934,464 to 1,000,000 entries, about 0.5 MB more). ## Tested Windows 11 (10.0.26200), RTX 3070 8 GB, driver 32.0.16.1088, Ryzen 7 7700, 32 GB. Title v1.0.2.1. `VICTORY_KEYS` sends Enter every 5 s from 15 s to 100 s, then every 10 s to 170 s; the world starts about 90 s in. On this card `main` alone removes the device 12-14 s after start (B4G4R4A4 render targets and B5G5R5A1 typed UAVs, see #1753). All runs below therefore include #1763. Before (`main` 70564ae + #1763): | Run | Build and switches | Result | |---|---|---| | 1 | diag, `VICTORY_D3D12_DEBUG=1`, `VICTORY_D3D12_DRED=1` | `DXGI_ERROR_DEVICE_HUNG` after 161 s | | 2 | as 1, plus `VICTORY_SHADER_LOOP_LIMIT=4096` | `DXGI_ERROR_DEVICE_HUNG` after 118 s | | 3 | diag with local diagnostics, `VICTORY_DIAG_FENCE_EACH=1` | `DXGI_ERROR_DEVICE_HUNG` after 123 s (the log line above) | After (`main` 70564ae + #1763 + this change): | Run | Build and switches | Result | |---|---|---| | 4 | diag, capture switches only | no device removal; stopped by its 420 s time limit | | 5 | release with `diagnostics`, earlier revision of this change (without the `raw_view_at`/`raw_pair_at` entries) | no device removal; stopped at 420 s | | 6 | release with `diagnostics`, this PR's head | no device removal; stopped at 420 s | Before this change, removals on this card came 118-386 s in across several local bases, so 420 s runs are not a large margin; they are what I have. - `cargo test -p victory-gpu`: 77 passed, 2 failed, 1 ignored; with `--features diagnostics` 80 passed, 2 failed, 1 ignored. The two failures (`descriptor::host::tests::dynamic_slots_are_held_until_released`, `memory::tests::lists_share_a_table_and_copies_keep_their_views`) fail the same way on `main` on this card (`NumDescriptors >= HEAP_VIEWS`, `past the dynamic slots`). - `cargo clippy --workspace --all-targets -- -D warnings`: clean. `cargo xtask policy`: 174 files ok. ## Not addressed - With this change alone the world on this card stays at about 0.07 fps: one compute dispatch per frame takes about 12 s, completes and does not remove the device. That is a separate problem (raw buffer loads through structured views read the wrong bytes on NVIDIA) and not part of this PR. - Only tested on one NVIDIA card. Hosts whose view heap holds the title's whole heap may never make these tables in the dynamic slots. No game data is in this PR. AI-assisted.
A table reaching past a host view heap smaller than the title's (NVIDIA: 1,000,000 slots) is made afresh in dynamic slots, and the shader gets that table's offset. A shader reading a view's address as data (e.g. the BVH builder's base) indexes the view addresses at the table's slots: past the buffer, which had an entry per title slot only, through a root view without bounds, and with no address entered there. The view addresses now have an entry per title and dynamic slot, entered whenever a dynamic slot is made: a view's address, zeros for a null view and for the raw views of ours that root views and host copies' view pairs put in dynamic slots, so no entry of an earlier table stays.
The test reads an entry only inside the view addresses' buffer (none past it, where the buffer had an entry per title slot only), checks the slot's entry before it is made, after, once it is given back (it stays until the slot is made again: every table made afresh makes all its slots) and once it is made null, checks that a root view and a host copy's view pair made in dynamic slots clear the entries an earlier table left there, and puts a mark past the last entry that a view address noted for a slot past the dynamic ones leaves as it is. It takes any heap size the host gives: a title heap of 4 slots has dynamic slots past it either way.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:48:13 +00:00
github manually merged commit a554b1575e into gh-pr/1906/base 2026-11-26 04:48:15 +00:00
Author
Owner

@⁠xstraok on GitHub · 2026-11-25 02:04 UTC · original

Test report: RDNA4 on Linux (RADV/Proton). This fixes the world device loss I was hitting there too.

Tested

  • Hardware: RX 9060 XT (RDNA4), Ryzen 5 7600, Linux 7.2.15, Mesa RADV 26.2.6, Proton Experimental (vkd3d-proton 3.1.0, 4522cc1a). Prefix has Microsoft's d3dcompiler_47.
  • Build: diag profile, --features diagnostics, x86_64-pc-windows-gnu, Rust 1.92 stable. One local change: __cpuid wrapped in unsafe for 1.92.
  • Without this PR, on main 42363ab + #454 + #1849: the device is lost in the opening cutscene, 0–60 s after the first world frame, in every run (about 20 runs on several stacks).
    • The fault is SQC (data), ReadInvalid. The log has host view heap capped at 1000000 ... count=1245184.
    • A umr wave dump from a run with RADV_DEBUG=syncshaders shows the faulting compute waves at s_load_b32 s39, s[8:9], s39 offset:0x4. The fault address is the root view in s[8:9] + 0x79c004.
    • That is past the end of the view addresses: count * 8 = 934,460 × 8 = 0x721de0.
  • With this PR, on main 940d32f + #1906 (c84cbaa) + #454 + #1849:
    • 3 min 14 s in the world (first world frame to the window being closed by hand), with no page fault and no device loss.
    • The cutscene renders: character, sky, trees, car, credits.

Merging

  • #1906 conflicts with current main in crates/victory-gpu/src/descriptor/host.rs, against the view-mark table (marks, set_mark).
  • Keeping both sides works: every set_mark(...) stays, followed by this PR's note_address(...), and the field docs keep marks plus this PR's addresses text.

Not tested

  • Windows, NVIDIA.
  • Longer than about 3 min in the world.
  • The full test suite.

AI use

  • Claude Code (Claude Opus 5.5) ran the tests, found the fault with umr, and wrote this report.
**@⁠xstraok** on GitHub · 2026-11-25 02:04 UTC · [original](https://github.com/Marvisak/VIctory/pull/1906#issuecomment-7150277067) Test report: RDNA4 on Linux (RADV/Proton). This fixes the world device loss I was hitting there too. **Tested** - Hardware: RX 9060 XT (RDNA4), Ryzen 5 7600, Linux 7.2.15, Mesa RADV 26.2.6, Proton Experimental (vkd3d-proton 3.1.0, `4522cc1a`). Prefix has Microsoft's `d3dcompiler_47`. - Build: `diag` profile, `--features diagnostics`, `x86_64-pc-windows-gnu`, Rust 1.92 stable. One local change: `__cpuid` wrapped in `unsafe` for 1.92. - Without this PR, on `main` `42363ab` + #454 + #1849: the device is lost in the opening cutscene, 0–60 s after the first world frame, in every run (about 20 runs on several stacks). - The fault is `SQC (data)`, `ReadInvalid`. The log has `host view heap capped at 1000000 ... count=1245184`. - A umr wave dump from a run with `RADV_DEBUG=syncshaders` shows the faulting compute waves at `s_load_b32 s39, s[8:9], s39 offset:0x4`. The fault address is the root view in `s[8:9]` + `0x79c004`. - That is past the end of the view addresses: `count * 8` = 934,460 × 8 = `0x721de0`. - With this PR, on `main` `940d32f` + #1906 (`c84cbaa`) + #454 + #1849: - 3 min 14 s in the world (first world frame to the window being closed by hand), with no page fault and no device loss. - The cutscene renders: character, sky, trees, car, credits. **Merging** - #1906 conflicts with current `main` in `crates/victory-gpu/src/descriptor/host.rs`, against the view-mark table (`marks`, `set_mark`). - Keeping both sides works: every `set_mark(...)` stays, followed by this PR's `note_address(...)`, and the field docs keep `marks` plus this PR's `addresses` text. **Not tested** - Windows, NVIDIA. - Longer than about 3 min in the world. - The full test suite. **AI use** - Claude Code (Claude Opus 5.5) ran the tests, found the fault with umr, and wrote this report.
Author
Owner

@⁠mikoreal on GitHub · 2026-11-25 02:16 UTC · original

In-game on an RTX 5070 (Blackwell, 32-lane waves, view heap capped at 1,000,000): the removal this PR names is gone

NVIDIA GeForce RTX 5070, driver 32.0.16.1714, Windows 11 26200, Ryzen 5 7600X. diag build, VICTORY_D3D12_DRED=1. Tested c84cbaa merged onto VIctory-V2 main 15c28f6: upstream 70564ae plus the community PRs V2 carries. The merge had one conflict, a test added next to view_addresses_cover_tables_made_afresh; I kept both tests.

Before (V2 main, without this PR). The device was removed during the first cutscene after entering the world. DRED names the same command, shader and argument address as the description:

host view heap capped at 1000000 count=1245184
host GPU device removed after a submission of 7 lists; breadcrumbs ... "63/79 Some(6)"
a list stopped at command 63 of 79 (op 5), commands 62..64 between its barriers:
command 63 (op 5): indirect kind 2 max 1 at 0xd9358fe80 [compute f607780aa8e502d0] | f607780aa8e502d0: ... u5=0x1dda5e0 [rebuilt view table base 978223]

The table was rebuilt at slot 978,223, past the 934,464 title slots, in the dynamic slots the view addresses had no entry for.

After (with this PR). Same scene, same build flags. There was no device removal in 8½ minutes; the cutscene plays on past the point where it used to stop. The run ended in an out-of-commit abort, memory allocation of 570425344 bytes failed (#471), which is unrelated to this PR.

What still keeps that scene from looking right, for whoever picks it up next. None of it is in this PR's scope:

  • 164 compute pipelines are refused (E_INVALIDARG): WaveSize(64) on a 32-lane host (#189);
  • 24 shaders don't translate (GFX10 code);
  • 15 batches are dropped for lack of dynamic slots (count=1245184 is past PORTABLE_VIEWS, so the capped heap falls back to MIN_DYNAMIC);
  • no room for the null buffer views is still logged (#1777 / #1779).

Tests on the merged branch, cargo test -p victory-gpu --lib --locked: 145 passed, 0 failed, 4 ignored. That includes view_addresses_cover_tables_made_afresh.

**@⁠mikoreal** on GitHub · 2026-11-25 02:16 UTC · [original](https://github.com/Marvisak/VIctory/pull/1906#issuecomment-7150512102) **In-game on an RTX 5070 (Blackwell, 32-lane waves, view heap capped at 1,000,000): the removal this PR names is gone** NVIDIA GeForce RTX 5070, driver 32.0.16.1714, Windows 11 26200, Ryzen 5 7600X. `diag` build, `VICTORY_D3D12_DRED=1`. Tested `c84cbaa` merged onto VIctory-V2 `main` `15c28f6`: upstream `70564ae` plus the community PRs V2 carries. The merge had one conflict, a test added next to `view_addresses_cover_tables_made_afresh`; I kept both tests. **Before (V2 `main`, without this PR).** The device was removed during the first cutscene after entering the world. DRED names the same command, shader and argument address as the description: ``` host view heap capped at 1000000 count=1245184 host GPU device removed after a submission of 7 lists; breadcrumbs ... "63/79 Some(6)" a list stopped at command 63 of 79 (op 5), commands 62..64 between its barriers: command 63 (op 5): indirect kind 2 max 1 at 0xd9358fe80 [compute f607780aa8e502d0] | f607780aa8e502d0: ... u5=0x1dda5e0 [rebuilt view table base 978223] ``` The table was rebuilt at slot 978,223, past the 934,464 title slots, in the dynamic slots the view addresses had no entry for. **After (with this PR).** Same scene, same build flags. There was no device removal in 8½ minutes; the cutscene plays on past the point where it used to stop. The run ended in an out-of-commit abort, `memory allocation of 570425344 bytes failed` (#471), which is unrelated to this PR. What still keeps that scene from looking right, for whoever picks it up next. None of it is in this PR's scope: - 164 compute pipelines are refused (`E_INVALIDARG`): `WaveSize(64)` on a 32-lane host (#189); - 24 shaders don't translate (GFX10 code); - 15 batches are dropped for lack of dynamic slots (`count=1245184` is past `PORTABLE_VIEWS`, so the capped heap falls back to `MIN_DYNAMIC`); - `no room for the null buffer views` is still logged (#1777 / #1779). **Tests on the merged branch**, `cargo test -p victory-gpu --lib --locked`: 145 passed, 0 failed, 4 ignored. That includes `view_addresses_cover_tables_made_afresh`.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 03:15 UTC · original · edited 2026-11-25 16:47 UTC

Automated triage for the maintainers.

Merge candidate. HostHeap::view_addresses in crates/victory-gpu/src/descriptor/host.rs is bound as a root view, which has no bounds. Its buffer had entries for title slots only, while tables made afresh live in the dynamic slots after them. So on a host whose heap is smaller than the title's (the NVIDIA 1,000,000-slot cap), a shader reading a view's address there read past the buffer.

The buffer is now sized by address_slots() (count + dynamic), and the dynamic entries start at zero. make_at, make_null, raw_view_at and raw_pair_at write the slot's entry next to main's set_mark calls, and note_address ignores indices past the end. State::bind in draw.rs creates the buffer before the stage's tables.

New since the last review: the branch is rebased onto current main. view_addresses_cover_tables_made_afresh now also checks the last dynamic slot, that entries stay after a release and clear on make_null, raw views and pairs, and that a note past the end leaves memory alone. I found nothing wrong with it. The RX 9060 XT, RTX 5070 and RTX 3070 in-game reports back up the fix.

CI: passing.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 03:15 UTC · [original](https://github.com/Marvisak/VIctory/pull/1906#issuecomment-7151735316) · edited 2026-11-25 16:47 UTC <!-- victory-triage v1 head=a554b1575ea328d69706555481146857905b367e verdict=merge-candidate at=2026-11-25T16:45:09Z --> Automated triage for the maintainers. **Merge candidate.** `HostHeap::view_addresses` in `crates/victory-gpu/src/descriptor/host.rs` is bound as a root view, which has no bounds. Its buffer had entries for title slots only, while tables made afresh live in the dynamic slots after them. So on a host whose heap is smaller than the title's (the NVIDIA 1,000,000-slot cap), a shader reading a view's address there read past the buffer. The buffer is now sized by `address_slots()` (`count + dynamic`), and the dynamic entries start at zero. `make_at`, `make_null`, `raw_view_at` and `raw_pair_at` write the slot's entry next to `main`'s `set_mark` calls, and `note_address` ignores indices past the end. `State::bind` in `draw.rs` creates the buffer before the stage's tables. New since the last review: the branch is rebased onto current `main`. `view_addresses_cover_tables_made_afresh` now also checks the last dynamic slot, that entries stay after a release and clear on `make_null`, raw views and pairs, and that a note past the end leaves memory alone. I found nothing wrong with it. The RX 9060 XT, RTX 5070 and RTX 3070 in-game reports back up the fix. CI: passing. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠walterwallaceson on GitHub · 2026-11-25 03:53 UTC · original

In-game on an RTX 3070 (Ampere) on Windows 10, merged onto current main: the indirect dispatch this PR names no longer hangs, and the world runs 15 minutes without a removal.

Setup: RTX 3070 8 GB (32-lane waves, view heap capped at 1,000,000), driver 621.14, Windows 10 22H2 (19045). main 940d32f + #463 (Agility SDK runtime, needed on Windows 10) + #1775 + #1751. Diag build, VICTORY_SHADER_LOOP_LIMIT=4096. #1968's programs W and C skipped in both runs, since this PR is about A. 15-minute runs.

without this PR, A skipped with c84cbaa, A runs
end 15 min, no removal 15 min, no removal, no errors
A skipped first bound at frame 1502, runs to the end
slow submissions 18, slowest 844 ms 4, slowest 369 ms
world speed, end of run 0.7 fps 0.8 fps (up to 1.1)

Without this PR and with nothing skipped, the same stack hung within about 3 minutes, and DRED stopped at the same indirect kind 2 max 1 command and argument address as in your diagnostic (#1968).

The conflict with main is only in descriptor/host.rs. main added write marks in the same places this PR adds view-address entries, so each of the five hunks keeps both:

  • the struct gets main's marks field, then this PR's comment on addresses;
  • make_at calls self.set_mark(index, mark) and then self.note_address(index, Some(view));
  • raw_view_at, make_null and raw_pair_at call set_mark(…, None) and then note_address(…, None).

With that, cargo test --workspace gives the same results as without this PR (the failures are the known "no SM 6.6 device" skips, #362, and one texture test that also fails on main), and view_addresses_cover_tables_made_afresh passes.

I'm testing with Claude's help, and Claude drafted this comment.

**@⁠walterwallaceson** on GitHub · 2026-11-25 03:53 UTC · [original](https://github.com/Marvisak/VIctory/pull/1906#issuecomment-7152331704) In-game on an **RTX 3070 (Ampere) on Windows 10**, merged onto current `main`: the indirect dispatch this PR names no longer hangs, and the world runs 15 minutes without a removal. **Setup:** RTX 3070 8 GB (32-lane waves, view heap capped at 1,000,000), driver 621.14, Windows 10 22H2 (19045). `main` `940d32f` + #463 (Agility SDK runtime, needed on Windows 10) + #1775 + #1751. Diag build, `VICTORY_SHADER_LOOP_LIMIT=4096`. #1968's programs W and C skipped in both runs, since this PR is about A. 15-minute runs. | | without this PR, A skipped | with `c84cbaa`, A runs | |---|---|---| | end | 15 min, no removal | **15 min, no removal, no errors** | | A | skipped | first bound at frame 1502, runs to the end | | slow submissions | 18, slowest 844 ms | 4, slowest 369 ms | | world speed, end of run | 0.7 fps | 0.8 fps (up to 1.1) | Without this PR and with nothing skipped, the same stack hung within about 3 minutes, and DRED stopped at the same `indirect kind 2 max 1` command and argument address as in your diagnostic (#1968). **The conflict with `main`** is only in `descriptor/host.rs`. `main` added write marks in the same places this PR adds view-address entries, so each of the five hunks keeps both: - the struct gets `main`'s `marks` field, then this PR's comment on `addresses`; - `make_at` calls `self.set_mark(index, mark)` and then `self.note_address(index, Some(view))`; - `raw_view_at`, `make_null` and `raw_pair_at` call `set_mark(…, None)` and then `note_address(…, None)`. With that, `cargo test --workspace` gives the same results as without this PR (the failures are the known "no SM 6.6 device" skips, #362, and one texture test that also fails on `main`), and `view_addresses_cover_tables_made_afresh` passes. I'm testing with Claude's help, and Claude drafted this comment.
Author
Owner

@⁠astrosteveo on GitHub · 2026-11-25 03:57 UTC · original

In case it saves you the rebase triage asked for: both commits on 940d32f, your authorship kept, https://github.com/astrosteveo/VIctory/tree/rebase/1906 (01ba70d). Each of the five hunks keeps both sides, as described above.

RTX 5080, driver 620.73.04, Wine 11.22: view_addresses_cover_tables_made_afresh passes, and fails if I size the table by count again. victory-gpu 139 passed, 5 failed (the 5 also fail on main here). MSVC-target clippy clean.

It also merges cleanly with #1779's rebase, with a capped-heap test of both: https://github.com/astrosteveo/VIctory/tree/test/1779-1906. Not tested: Windows, the title. AI-assisted (Claude).

**@⁠astrosteveo** on GitHub · 2026-11-25 03:57 UTC · [original](https://github.com/Marvisak/VIctory/pull/1906#issuecomment-7152394982) In case it saves you the rebase triage asked for: both commits on `940d32f`, your authorship kept, https://github.com/astrosteveo/VIctory/tree/rebase/1906 (`01ba70d`). Each of the five hunks keeps both sides, as described above. RTX 5080, driver 620.73.04, Wine 11.22: `view_addresses_cover_tables_made_afresh` passes, and fails if I size the table by `count` again. `victory-gpu` 139 passed, 5 failed (the 5 also fail on `main` here). MSVC-target clippy clean. It also merges cleanly with #1779's rebase, with a capped-heap test of both: https://github.com/astrosteveo/VIctory/tree/test/1779-1906. Not tested: Windows, the title. AI-assisted (Claude).
Author
Owner

@⁠Slay326 on GitHub · 2026-11-25 07:19 UTC · original

Rebased onto current main (940d32f); the head is now bcd0d3d. The fix itself is unchanged.

The only conflict was in descriptor/host.rs: main added write marks in the same places this PR adds view-address entries, so each of the five hunks keeps both sides:

  • the struct keeps main's marks field, followed by this PR's comment on addresses;
  • make_at calls self.set_mark(index, mark) and then self.note_address(index, Some(view));
  • raw_view_at, make_null and raw_pair_at call set_mark(…, None) and then note_address(…, None).

This is the same resolution as in the rebase offered above (01ba70d); the trees are identical.

On the rebased head (RTX 3070): cargo test -p victory-gpu gives 142 passed, 2 failed, the same two failures as on main on this card (dynamic_slots_are_held_until_released, lists_share_a_table_and_copies_keep_their_views, both from the 1,000,000 view-heap cap), and view_addresses_cover_tables_made_afresh passes. cargo clippy --workspace --all-targets -- -D warnings is clean. The in-game runs in the description were on the earlier base; I have not repeated them on the rebased head.

Thanks to everyone who tested this: RX 9060 XT (Linux), RTX 5070 and RTX 3070.

**@⁠Slay326** on GitHub · 2026-11-25 07:19 UTC · [original](https://github.com/Marvisak/VIctory/pull/1906#issuecomment-7155733678) Rebased onto current `main` (`940d32f`); the head is now `bcd0d3d`. The fix itself is unchanged. The only conflict was in `descriptor/host.rs`: `main` added write marks in the same places this PR adds view-address entries, so each of the five hunks keeps both sides: - the struct keeps `main`'s `marks` field, followed by this PR's comment on `addresses`; - `make_at` calls `self.set_mark(index, mark)` and then `self.note_address(index, Some(view))`; - `raw_view_at`, `make_null` and `raw_pair_at` call `set_mark(…, None)` and then `note_address(…, None)`. This is the same resolution as in the rebase offered above (`01ba70d`); the trees are identical. On the rebased head (RTX 3070): `cargo test -p victory-gpu` gives 142 passed, 2 failed, the same two failures as on `main` on this card (`dynamic_slots_are_held_until_released`, `lists_share_a_table_and_copies_keep_their_views`, both from the 1,000,000 view-heap cap), and `view_addresses_cover_tables_made_afresh` passes. `cargo clippy --workspace --all-targets -- -D warnings` is clean. The in-game runs in the description were on the earlier base; I have not repeated them on the rebased head. Thanks to everyone who tested this: RX 9060 XT (Linux), RTX 5070 and RTX 3070.
Author
Owner

@⁠davesousa on GitHub · 2026-11-25 20:07 UTC · original

In-game on current main, NVIDIA Ampere: 13f91ca + #2319 + this PR (a554b15, merges cleanly), RTX 3070 Ti 8 GB, driver 621.40, Windows 11 26200, VICTORY_D3D12_DRED=1.

Build World runs Device removal DRED stop
13f91ca + #2319 (one of the two runs also with #2167) 2 both, within about a minute in the world (0x887A0006) both: command 91 of 129/130, indirect kind 2 max 1 at 0xd9358fe80 [compute f607780aa8e502d0], program A from #1968, same address as the other cards
+ this PR (one of the three runs also with #2167) 3 the one long run, after about 5.7 min in the world (up to 5,349 draws/frame); the two other runs were stopped by me at 2 min, in the world, with no removal not A: dispatch 16x16x16 [compute 00167d58cc5a78d7] (program W, command 8 of 11)

So on 13f91ca this PR still removes the A stop on Ampere. The next stop on this card is W. W takes 10.1-11.6 s per submission (21 submissions, average 11.3 s), and one eventually goes past the timeout. The nvlddmkm System log shows only event 153 (no event 13).

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

**@⁠davesousa** on GitHub · 2026-11-25 20:07 UTC · [original](https://github.com/Marvisak/VIctory/pull/1906#issuecomment-7173233895) In-game on current `main`, NVIDIA Ampere: `13f91ca` + #2319 + this PR (`a554b15`, merges cleanly), RTX 3070 Ti 8 GB, driver 621.40, Windows 11 26200, `VICTORY_D3D12_DRED=1`. | Build | World runs | Device removal | DRED stop | |---|---|---|---| | `13f91ca` + #2319 (one of the two runs also with #2167) | 2 | both, within about a minute in the world (`0x887A0006`) | both: command 91 of 129/130, `indirect kind 2 max 1 at 0xd9358fe80 [compute f607780aa8e502d0]`, program A from #1968, same address as the other cards | | + this PR (one of the three runs also with #2167) | 3 | the one long run, after about 5.7 min in the world (up to 5,349 draws/frame); the two other runs were stopped by me at 2 min, in the world, with no removal | **not A**: `dispatch 16x16x16 [compute 00167d58cc5a78d7]` (program W, command 8 of 11) | So on 13f91ca this PR still removes the A stop on Ampere. The next stop on this card is W. W takes 10.1-11.6 s per submission (21 submissions, average 11.3 s), and one eventually goes past the timeout. The `nvlddmkm` System log shows only event 153 (no event 13). AI-assisted (Claude Code); the runs are on my machine.
Author
Owner

@⁠Slay326 on GitHub · 2026-11-25 20:40 UTC · original

Thanks, davesousa: that matches what I see on an RTX 3070, and the W stop has a likely fix that is not on main yet.

W (00167d58cc5a78d7) reads its buffers raw through what the host makes as structured views. On NVIDIA those raw loads read the wrong bytes, and the program's loop runs to its own cap: one dispatch of 10-12 s. #1762 (closed without a merge this morning, head 19c8013) made such views raw views of the same bytes; nothing equivalent is on 13f91ca (no raw_window, only raw_view_at).

On my RTX 3070 (local test branch on 67e8ae1 with this PR and #1890, #1883, #2167, #158 and others):

  • without #1762: six submissions of 10.0-12.6 s, all with W, and a device removal at world entry (0x887A0006) in two runs;
  • with only the host part of #1762 (the views, no translator change): no submission over 0.85 s in 480 s, no removal;
  • an earlier tree with all of #1762 on 940d32f ran 480 s in the world, longest submission 545 ms.

If you can, try this PR plus #1762 on your 3070 Ti; I would expect the W stop to go away as well.

AI-assisted.

**@⁠Slay326** on GitHub · 2026-11-25 20:40 UTC · [original](https://github.com/Marvisak/VIctory/pull/1906#issuecomment-7174019526) Thanks, davesousa: that matches what I see on an RTX 3070, and the W stop has a likely fix that is not on `main` yet. W (`00167d58cc5a78d7`) reads its buffers raw through what the host makes as structured views. On NVIDIA those raw loads read the wrong bytes, and the program's loop runs to its own cap: one dispatch of 10-12 s. #1762 (closed without a merge this morning, head `19c8013`) made such views raw views of the same bytes; nothing equivalent is on `13f91ca` (no `raw_window`, only `raw_view_at`). On my RTX 3070 (local test branch on `67e8ae1` with this PR and #1890, #1883, #2167, #158 and others): - without #1762: six submissions of 10.0-12.6 s, all with W, and a device removal at world entry (`0x887A0006`) in two runs; - with only the host part of #1762 (the views, no translator change): no submission over 0.85 s in 480 s, no removal; - an earlier tree with all of #1762 on `940d32f` ran 480 s in the world, longest submission 545 ms. If you can, try this PR plus #1762 on your 3070 Ti; I would expect the W stop to go away as well. AI-assisted.
Author
Owner

@⁠Slay326 on GitHub · 2026-11-25 21:46 UTC · original

Short status for whoever reviews this: the head a554b15 still merges cleanly into current main (61bfc77), CI passes, and the change is two files (descriptor/host.rs, draw.rs, +140/−7) with the synthetic test view_addresses_cover_tables_made_afresh.

In-game confirmations of the fixed stop (the indirect dispatch that read the view-address buffer past its end): RX 9060 XT on Linux (xstraok), RTX 5070 (mikoreal), RTX 3070 (walterwallaceson and mine) and RTX 3070 Ti (davesousa). The next stops reported after it (program W, and a 50-series barrier issue in #2024) are separate.

Happy to rebase again if main moves into the same lines.

AI-assisted.

**@⁠Slay326** on GitHub · 2026-11-25 21:46 UTC · [original](https://github.com/Marvisak/VIctory/pull/1906#issuecomment-7175515164) Short status for whoever reviews this: the head `a554b15` still merges cleanly into current `main` (`61bfc77`), CI passes, and the change is two files (`descriptor/host.rs`, `draw.rs`, +140/−7) with the synthetic test `view_addresses_cover_tables_made_afresh`. In-game confirmations of the fixed stop (the indirect dispatch that read the view-address buffer past its end): RX 9060 XT on Linux (xstraok), RTX 5070 (mikoreal), RTX 3070 (walterwallaceson and mine) and RTX 3070 Ti (davesousa). The next stops reported after it (program W, and a 50-series barrier issue in #2024) are separate. Happy to rebase again if `main` moves into the same lines. AI-assisted.
Author
Owner

@⁠regiumlepidi on GitHub · 2026-11-25 21:49 UTC · original

Tested on an RTX 5070 Ti (Blackwell, driver 617.42, view heap capped at 1,000,000), retail 1.0.2.1, diag build with DRED, on 13f91ca + #2626 + #1763 + this PR + #2098.

  • Without this PR, the run is removed at about 60 s with 0x887A0006, stopped at indirect kind 2 max 1 [compute f607780aa8e502d0].
  • With this PR, that program runs and there is no removal over a 3.5 min run into the intro cutscene.

Details and the frame timings are in #1968.

AI use: Claude Code (Claude Opus 5.5).

**@⁠regiumlepidi** on GitHub · 2026-11-25 21:49 UTC · [original](https://github.com/Marvisak/VIctory/pull/1906#issuecomment-7175593624) Tested on an RTX 5070 Ti (Blackwell, driver 617.42, view heap capped at 1,000,000), retail 1.0.2.1, diag build with DRED, on `13f91ca` + #2626 + #1763 + this PR + #2098. - Without this PR, the run is removed at about 60 s with `0x887A0006`, stopped at `indirect kind 2 max 1 [compute f607780aa8e502d0]`. - With this PR, that program runs and there is no removal over a 3.5 min run into the intro cutscene. Details and the frame timings are in [#1968](https://git.gtahub.st/github/Marvisak--VIctory/issues/1968). _AI use: Claude Code (Claude Opus 5.5)._
Author
Owner

@⁠ChenmouXu on GitHub · 2026-11-26 04:47 UTC · original

问题

在 RTX 3070 上,主机视图堆的上限为 1,000,000 个描述符(),比标题中的描述符还小。超出主机堆的表会在动态槽中重新创建,着色器获得该表的偏移量。host view heap capped at 1000000 ... count=1245184

一个将视图地址作为数据读取的着色器(例如 BVH 构建器的基址),然后在新表的插槽上索引视图地址。那个缓冲区每个标题槽只有一个条目,并且绑定为根视图,没有边界。因此读取超过了缓冲区的末端,动态插槽从未被输入任何地址。HostHeap::view_addresses

一个按命令进行的围栏诊断(本地诊断,不属于此 PR 的一部分)会命名那个永远不会完成的命令。这是同一个间接计算派遣,参数地址相同,分两次运行(一次在 + #1763,一次在 上,使用本地格式的变通方法代替 #1763):main``main

fence-each: device removed, list stopped at command 18: indirect kind 2 max 1 at 0xd9358fe80 [compute f607780aa8e502d0] | f607780aa8e502d0: VIEWADDR entries=Some(934464) ... FRESH(root param, first heap index) [(1, 935376)]

视图地址缓冲区有 934,464 条条目(1,000,000 减去 65,536 个动态槽);新鲜餐桌从935,376号档位开始。

变化

  • HostHeap::view_addresses每个标题栏位和每个动态栏位各有一条参赛作品();动态的那些一开始是空的。address_slots()
  • 每一条生成动态槽位的路径都会写入其条目:视图的地址为零,以及 /(我们的根视图和视图对)为零,因此之前表的记录不会被保留。归还的槽位会保留其条目,直到再次开设;每张新桌子都能把所有槽位都填满。 忽略缓冲区之外的索引。make_at``make_null``raw_view_at``raw_pair_at``note_address
  • State::bind在创建阶段表之前创建视图地址,因此在同一绑定中重新创建的表会录入其地址。
  • 测试(第二次提交,仅综合提交):。它覆盖动态槽的条目在其邻位之前和之后、最后一个动态槽位、一个被回还的槽位、 、 、 以及在结束后写入的条目。当该测试及其辅助应用于 时,它失败();随着变化而消失。它只涵盖部分,不包括部分。descriptor::host::tests::view_addresses_cover_tables_made_afresh``make_at``make_null``raw_view_at``raw_pair_at``address_at``main``not made yet: left None, right Some(0)``HostHeap``State::bind

缓冲区会按动态插槽增加一次(该卡的条目从 934,464 增加到 1,000,000 个,大约多出 0.5 MB)。

经过测试

Windows 11(10.0.26200),RTX 3070 8 GB,驱动 32.0.16.1088,Ryzen 7 7700,32 GB。标题 v1.0.2.1。 每5秒发送一次回车,时间从15秒到100秒,然后每10秒回一次至170秒;世界大约从90秒后开始。VICTORY_KEYS

仅在这张卡上,启动后12-14秒就能移除该设备(B4G4R4A4渲染目标和B5G5R5A1型无人机,参见#1753)。因此,以下所有跑道均包含#1763。main

之前(70564ae + #1763):main

快跑 构建与交换机 结果
1 diag, ,VICTORY_D3D12_DEBUG=1``VICTORY_D3D12_DRED=1 DXGI_ERROR_DEVICE_HUNG161 S 之后
2 作为1,加VICTORY_SHADER_LOOP_LIMIT=4096 DXGI_ERROR_DEVICE_HUNG118秒之后
3 通过本地诊断进行诊断,VICTORY_DIAG_FENCE_EACH=1 DXGI_ERROR_DEVICE_HUNG123秒以后(如上文的日志)
之后(70564ae + #1763 + 此变更):main

快跑 构建与交换机 结果
4 诊断,仅捕获交换机 无需移除设备;被其420秒的时间限制拦截
5 发布时,此更改的早期版本(不含 / 条目)diagnostics``raw_view_at``raw_pair_at 无需移除设备;停在420秒
6 释放时,此PR的标题diagnostics 无需移除设备;停在420秒
在这一变化之前,这张卡的移除次数分别在多个地方基地中分别发生在118至386秒之间,所以420秒的差距并不大;它们就是我拥有的一切。

  • cargo test -p victory-gpu:77 通过,2 未通过,1 被忽略;80个通过,2个未通过,1个被忽视。这张卡上的两次故障(, )以相同方式失败。--features diagnostics``descriptor::host::tests::dynamic_slots_are_held_until_released``memory::tests::lists_share_a_table_and_copies_keep_their_views``main``NumDescriptors >= HEAP_VIEWS``past the dynamic slots
  • cargo clippy --workspace --all-targets -- -D warnings:干净。:174个文件,没问题。cargo xtask policy

未被提及

  • 仅凭这一改动,这张卡上的世界帧帧数保持在大约 0.07 fps:每帧进行一次计算派遣约需 12 秒,完成且不会移除设备。这是另一个问题(通过结构化视图加载原始缓冲区时,NVIDIA读取的字节错误),不属于这个PR的一部分。
  • 只在一块 NVIDIA 显卡上测试过。那些拥有头衔全部堆的主线人,可能永远无法进入动态槽位的这些表。

No game data is in this PR.

AI-assisted.

Could the combination tested on the 5070 Ti be published as one stacked branch?

regiumlepidi's report above (13f91ca + #2626 + #1763 + #1906 + #2098, 3.5 min into the intro cutscene, no removal) is the first 50-series result I have seen that gets past the load, and it is the same GPU family as this machine (RTX 5070 Ti Laptop, Blackwell, driver 32.0.16.1074).

The problem is assembling it. moe-miau/VIctory main already carries #2626 (target_format, 8 sites) and #2098 (AS view address) and something of #1763 (typed_uav), but not this PR: no address_slots / note_address anywhere in it. And its descriptor/host.rs is 37.8 KB against the 135 KB file this diff is written for, so pr1906.diff will not apply by hand in any reasonable time. Going the other way -- upstream main (now with #1906) plus #2626's nine files -- is a multi-hour merge I would rather not do blind.

So: would someone with both trees in front of them push a single branch with all four? Either moe-miau rebasing their two branches onto current main, or this PR rebased onto their port/fmt. A branch name in this thread is enough -- no code discussion needed from me.

I will run it here as soon as it exists: diag build, VICTORY_D3D12_DRED=1, full debug-layer log, and I will report the frame times and any removal, or confirm it holds.

For completeness, the remaining failure on plain main + #1630 + #1832 + #1780 + #1906 here is the barrier mismatch in #2024 (id=527, title buffer 0x36860000+0xae00000 declared as a vertex/constant buffer while the preceding barrier or initial state says unordered access), so a stacked branch may still need that separately -- but it is worth knowing whether the four-way combination alone gets further than what I have.

**@⁠ChenmouXu** on GitHub · 2026-11-26 04:47 UTC · [original](https://github.com/Marvisak/VIctory/pull/1906#issuecomment-7182902871) > ## 问题 > 在 RTX 3070 上,主机视图堆的上限为 1,000,000 个描述符(),比标题中的描述符还小。超出主机堆的表会在动态槽中重新创建,着色器获得该表的偏移量。`host view heap capped at 1000000 ... count=1245184` > > 一个将视图地址作为数据读取的着色器(例如 BVH 构建器的基址),然后在新表的插槽上索引视图地址。那个缓冲区每个标题槽只有一个条目,并且绑定为根视图,没有边界。因此读取超过了缓冲区的末端,动态插槽从未被输入任何地址。`HostHeap::view_addresses` > > 一个按命令进行的围栏诊断(本地诊断,不属于此 PR 的一部分)会命名那个永远不会完成的命令。这是同一个间接计算派遣,参数地址相同,分两次运行(一次在 + #1763,一次在 上,使用本地格式的变通方法代替 #1763):`main``main` > > ``` > fence-each: device removed, list stopped at command 18: indirect kind 2 max 1 at 0xd9358fe80 [compute f607780aa8e502d0] | f607780aa8e502d0: VIEWADDR entries=Some(934464) ... FRESH(root param, first heap index) [(1, 935376)] > ``` > > 视图地址缓冲区有 934,464 条条目(1,000,000 减去 65,536 个动态槽);新鲜餐桌从935,376号档位开始。 > > ## 变化 > * `HostHeap::view_addresses`每个标题栏位和每个动态栏位各有一条参赛作品();动态的那些一开始是空的。`address_slots()` > * 每一条生成动态槽位的路径都会写入其条目:视图的地址为零,以及 /(我们的根视图和视图对)为零,因此之前表的记录不会被保留。归还的槽位会保留其条目,直到再次开设;每张新桌子都能把所有槽位都填满。 忽略缓冲区之外的索引。`make_at``make_null``raw_view_at``raw_pair_at``note_address` > * `State::bind`在创建阶段表之前创建视图地址,因此在同一绑定中重新创建的表会录入其地址。 > * 测试(第二次提交,仅综合提交):。它覆盖动态槽的条目在其邻位之前和之后、最后一个动态槽位、一个被回还的槽位、 、 、 以及在结束后写入的条目。当该测试及其辅助应用于 时,它失败();随着变化而消失。它只涵盖部分,不包括部分。`descriptor::host::tests::view_addresses_cover_tables_made_afresh``make_at``make_null``raw_view_at``raw_pair_at``address_at``main``not made yet: left None, right Some(0)``HostHeap``State::bind` > > 缓冲区会按动态插槽增加一次(该卡的条目从 934,464 增加到 1,000,000 个,大约多出 0.5 MB)。 > > ## 经过测试 > Windows 11(10.0.26200),RTX 3070 8 GB,驱动 32.0.16.1088,Ryzen 7 7700,32 GB。标题 v1.0.2.1。 每5秒发送一次回车,时间从15秒到100秒,然后每10秒回一次至170秒;世界大约从90秒后开始。`VICTORY_KEYS` > > 仅在这张卡上,启动后12-14秒就能移除该设备(B4G4R4A4渲染目标和B5G5R5A1型无人机,参见#1753)。因此,以下所有跑道均包含#1763。`main` > > 之前([70564ae](https://github.com/Marvisak/VIctory/commit/70564ae08c82d43df5fad97b08d34628b07b1d9d) + #1763):`main` > > 快跑 构建与交换机 结果 > 1 diag, ,`VICTORY_D3D12_DEBUG=1``VICTORY_D3D12_DRED=1` `DXGI_ERROR_DEVICE_HUNG`161 S 之后 > 2 作为1,加`VICTORY_SHADER_LOOP_LIMIT=4096` `DXGI_ERROR_DEVICE_HUNG`118秒之后 > 3 通过本地诊断进行诊断,`VICTORY_DIAG_FENCE_EACH=1` `DXGI_ERROR_DEVICE_HUNG`123秒以后(如上文的日志) > 之后([70564ae](https://github.com/Marvisak/VIctory/commit/70564ae08c82d43df5fad97b08d34628b07b1d9d) + #1763 + 此变更):`main` > > 快跑 构建与交换机 结果 > 4 诊断,仅捕获交换机 无需移除设备;被其420秒的时间限制拦截 > 5 发布时,此更改的早期版本(不含 / 条目)`diagnostics``raw_view_at``raw_pair_at` 无需移除设备;停在420秒 > 6 释放时,此PR的标题`diagnostics` 无需移除设备;停在420秒 > 在这一变化之前,这张卡的移除次数分别在多个地方基地中分别发生在118至386秒之间,所以420秒的差距并不大;它们就是我拥有的一切。 > > * `cargo test -p victory-gpu`:77 通过,2 未通过,1 被忽略;80个通过,2个未通过,1个被忽视。这张卡上的两次故障(, )以相同方式失败。`--features diagnostics``descriptor::host::tests::dynamic_slots_are_held_until_released``memory::tests::lists_share_a_table_and_copies_keep_their_views``main``NumDescriptors >= HEAP_VIEWS``past the dynamic slots` > * `cargo clippy --workspace --all-targets -- -D warnings`:干净。:174个文件,没问题。`cargo xtask policy` > > ## 未被提及 > * 仅凭这一改动,这张卡上的世界帧帧数保持在大约 0.07 fps:每帧进行一次计算派遣约需 12 秒,完成且不会移除设备。这是另一个问题(通过结构化视图加载原始缓冲区时,NVIDIA读取的字节错误),不属于这个PR的一部分。 > * 只在一块 NVIDIA 显卡上测试过。那些拥有头衔全部堆的主线人,可能永远无法进入动态槽位的这些表。 > > No game data is in this PR. > > AI-assisted. Could the combination tested on the 5070 Ti be published as one stacked branch? regiumlepidi's report above (`13f91ca + #2626 + #1763 + #1906 + #2098`, 3.5 min into the intro cutscene, no removal) is the first 50-series result I have seen that gets past the load, and it is the same GPU family as this machine (RTX 5070 Ti Laptop, Blackwell, driver 32.0.16.1074). The problem is assembling it. `moe-miau/VIctory` main already carries #2626 (target_format, 8 sites) and #2098 (AS view address) and something of #1763 (typed_uav), but **not this PR**: no `address_slots` / `note_address` anywhere in it. And its `descriptor/host.rs` is 37.8 KB against the 135 KB file this diff is written for, so `pr1906.diff` will not apply by hand in any reasonable time. Going the other way -- upstream main (now with #1906) plus #2626's nine files -- is a multi-hour merge I would rather not do blind. So: would someone with both trees in front of them push a single branch with all four? Either `moe-miau` rebasing their two branches onto current main, or this PR rebased onto their `port/fmt`. A branch name in this thread is enough -- no code discussion needed from me. I will run it here as soon as it exists: diag build, `VICTORY_D3D12_DRED=1`, full debug-layer log, and I will report the frame times and any removal, or confirm it holds. For completeness, the remaining failure on plain main + #1630 + #1832 + #1780 + #1906 here is the barrier mismatch in #2024 (`id=527`, `title buffer 0x36860000+0xae00000` declared as a vertex/constant buffer while the preceding barrier or initial state says unordered access), so a stacked branch may still need that separately -- but it is worth knowing whether the four-way combination alone gets further than what I have.
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!1906
No description provided.