RTX 5070 12 GB on b0cfe2b, no game: suites pass, the card measurements (0 torn views, new blocks never fault), and replay_big asks for a heap NVIDIA refuses #116

Closed
opened 2026-11-26 05:24:48 +00:00 by github-bot · 1 comment
Owner

@⁠marquezinii on GitHub · 2026-11-26 04:21 UTC · original

RTX 5070 12 GB (Blackwell), driver 621.40 (32.0.16.2140), Ryzen 5 5600X, 32 GB, Windows 11 build 26300, Rust 1.98.1, on b0cfe2b. No game files. Everything here is from the tests and the ignored measurements in victory-gpu. I ran them so you can see how the decisions measured on the 7900 XTX hold up on an NVIDIA card.

The opt-in host::upcheck / card_steps tests are already covered by #115 (RTX 5060). I get the same result on this card: all 11 pass with the switches listed there. So they're left out below.

Suites

cargo test --workspace --locked --all-features --no-fail-fast gives 972 passed, 0 failed, 46 ignored. That includes tests/replay.rs on the card.

Card measurements (release, each run alone with --ignored --exact)

Where a commit says what the 7900 XTX gave, I put it next to the RTX 5070 result.

measurement 7900 XTX (commit) RTX 5070
descriptors_written_under_readers made in place: 4 % of reads torn (35 of 822 M), copied: none; 149 vs 51 ns a write (02f36e4) 0 torn in all three ways, about 138 M reads each. Made in place: 21.3 M writes in 5 s (~235 ns). Copied from a CPU heap: 27.1 M (~185 ns). One 32-byte store: 19.8 M (~250 ns)
loads_far_outside_views all 198 ways end inside their views (ef556e4) all 198, no device loss. Every non-zero result is an address that wraps around 32 bits back into the view, e.g. the constant buffer at uint4 index 0x80000000 lands on byte 0
textures_read_in_another_dimension zeros or its own texels (02f36e4) the same: zeros, or its own texels (array sampled at any slice, 2D at a level it lacks at 0). Never another texture's memory
new_blocks_under_readers (runs n08/n11 were lost to it in game, 3b73cb0) the device lives in all 54 runs: fresh-made, fresh-waited, fresh-enqueued ×15 and made, waited, enqueued ×3. Only the never control is lost (0x887A0006). fresh-made takes 14-60 ms a block, the longest 282 ms (18 GB of blocks on a 12 GB card)

So on this card, VICTORY_VIEW_COPY and VICTORY_RIPE_BLOCKS are not needed for correctness in these measurements. The view copy is still a bit faster here, about 1.3x against the 3x on the XTX.

raw_loads_past_views

The full table is long, so here are the rows that differ from "the view's bytes, zeros past it":

  • raw and typed u32: exact bounds, zeros from 4096.
  • typed u16 (R16_UINT, 2048 elements = 4 KiB): a raw Load gives the real bytes at 4096 and 4104 and zeros at 8192. The bound behaves like NumElements × 4, twice the view.
  • structured 16 (256 × 16) and typed 4 x u32 (256 elements): a raw Load at 4092 gives 0, inside the view. NVIDIA takes the byte address as index × stride, so the last dwords of such a view read as out of range. structured 24 at 24 also gives 0 at 4092.
  • The CBV in an SRV slot gives the bytes up to at least 8192 and 0 at 65536.
  • the raw view was moved: false: NVIDIA's buffer descriptor is not the layout descriptor::host::move_raw knows. So on NVIDIA every raw twin that begins between two multiples of 16 becomes a null view (TWINS[2]), and reads zeros.

A caveat on the "constant buffer load" rows: with this test's shader (FXC cs_5_1, c[which].d[first / 16][(first / 4) & 3]), NVIDIA gives 0 for every component other than .x. I widened the offsets locally: 4064 and 4080 read right, while 4076, 4084, 4088 and 4092 give 0, and a raw load of the same CBV gives all of them. So those rows only tell about component 0 here. I haven't checked whether the translated DXIL ever indexes a constant buffer component that way.

Costs on this card

There are no XTX figures in the repository for these, so here are the plain numbers:

  • bench_indirect_draw_barriers (3200 one-record draws): one at a time 14.53 ms (4.54 µs a draw). Windows of 32: main's 33.76 ms against this tree's 0.67 ms (-98 %). Card variants: 11.01 / 0.56 ms.
  • batch_costs (2355 indirect dispatches): each clamped alone 6.83 ms. A batch every 48: 0.55 ms. Every 5: 3.08 ms. Every 1: 10.92 ms.
  • card_compare_costs: 80 rounds × 5 passes of 64 pieces 0.91 ms (1710 GB/s); of 500 pieces 20.90 ms (584 GB/s).
  • bare_command_cost (µs a draw): pipeline change 0.27, barrier pair 0.74, a compute pass of ours 0.53, the same between two waits 2.05, 100 lists one by one 0.19.
  • texture_checks_per_submission: 839.7 → 67.2 ms (12.5x).
  • what_landing_costs: 15.3-24.6 ms a frame to land, the best 15.3 with 5 threads beside.
  • allocation_costs: committed texture 128 µs each (4 threads); staging committed and mapped 378-557 µs; placed in 64 MB heaps 4-9 µs.

replay_big needs a heap NVIDIA refuses

a_frame_of_a_titles_size fails at tests/replay_big.rs:193 with E_INVALIDARG. It asks for a shader-visible view heap of VIEWS = 1_500_000, and NVIDIA caps shader-visible heaps at 1,000,000. The runtime already falls back to that (PORTABLE_VIEWS); the test does not. With VIEWS = 1_000_000 changed locally it passes:

  • frames without the recorder 13.5-14.1 ms, with it 17.4-19.9 ms, the captured frame 3.6 s
  • loaded and replayed 11.7 s; unchanged: 3.27 ms on the card (median of 3)
  • picture: the same bytes as presented (blake3 0471c2e7)
  • 9353 MB of the card used of a 10369 MB budget

Taking the count from what the device accepts (or capping at 1,000,000) would let the test run on NVIDIA.

Not run

  • tiles::tests::levels_on_demand_on_the_card: it wants the D3D12 debug layer, and the "Graphics Tools" feature is not installed here, so it skips.
  • The CPU-only benchmarks (torn, place, refresh_tests, shadow::merge_tests, object, draw::heap_range_tests).

Commands:

cargo test --workspace --locked --all-features --no-fail-fast
cargo test -p victory-gpu --release --all-features --locked --lib -- --ignored --nocapture --exact --test-threads=1 <test>
cargo test -p victory-gpu --release --all-features --locked --test replay_big -- --ignored --nocapture

I have the full logs if any of them would help.

**@⁠marquezinii** on GitHub · 2026-11-26 04:21 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/116) RTX 5070 12 GB (Blackwell), driver 621.40 (32.0.16.2140), Ryzen 5 5600X, 32 GB, Windows 11 build 26300, Rust 1.98.1, on `b0cfe2b`. No game files. Everything here is from the tests and the ignored measurements in `victory-gpu`. I ran them so you can see how the decisions measured on the 7900 XTX hold up on an NVIDIA card. The opt-in `host::upcheck` / `card_steps` tests are already covered by #115 (RTX 5060). I get the same result on this card: all 11 pass with the switches listed there. So they're left out below. ## Suites `cargo test --workspace --locked --all-features --no-fail-fast` gives 972 passed, 0 failed, 46 ignored. That includes `tests/replay.rs` on the card. ## Card measurements (release, each run alone with `--ignored --exact`) Where a commit says what the 7900 XTX gave, I put it next to the RTX 5070 result. | measurement | 7900 XTX (commit) | RTX 5070 | |---|---|---| | `descriptors_written_under_readers` | made in place: 4 % of reads torn (35 of 822 M), copied: none; 149 vs 51 ns a write (02f36e4) | **0 torn** in all three ways, about 138 M reads each. Made in place: 21.3 M writes in 5 s (~235 ns). Copied from a CPU heap: 27.1 M (~185 ns). One 32-byte store: 19.8 M (~250 ns) | | `loads_far_outside_views` | all 198 ways end inside their views (ef556e4) | all 198, no device loss. Every non-zero result is an address that wraps around 32 bits back into the view, e.g. the constant buffer at uint4 index `0x80000000` lands on byte 0 | | `textures_read_in_another_dimension` | zeros or its own texels (02f36e4) | the same: zeros, or its own texels (array sampled at any slice, 2D at a level it lacks at 0). Never another texture's memory | | `new_blocks_under_readers` | (runs n08/n11 were lost to it in game, 3b73cb0) | **the device lives in all 54 runs**: `fresh-made`, `fresh-waited`, `fresh-enqueued` ×15 and `made`, `waited`, `enqueued` ×3. Only the `never` control is lost (`0x887A0006`). `fresh-made` takes 14-60 ms a block, the longest 282 ms (18 GB of blocks on a 12 GB card) | So on this card, `VICTORY_VIEW_COPY` and `VICTORY_RIPE_BLOCKS` are not needed for correctness in these measurements. The view copy is still a bit faster here, about 1.3x against the 3x on the XTX. ### `raw_loads_past_views` The full table is long, so here are the rows that differ from "the view's bytes, zeros past it": - `raw` and `typed u32`: exact bounds, zeros from 4096. - `typed u16` (R16_UINT, 2048 elements = 4 KiB): a raw `Load` gives the real bytes at 4096 and 4104 and zeros at 8192. The bound behaves like NumElements × 4, twice the view. - `structured 16` (256 × 16) and `typed 4 x u32` (256 elements): a raw `Load` at 4092 gives **0**, inside the view. NVIDIA takes the byte address as index × stride, so the last dwords of such a view read as out of range. `structured 24 at 24` also gives 0 at 4092. - The CBV in an SRV slot gives the bytes up to at least 8192 and 0 at 65536. - `the raw view was moved: false`: NVIDIA's buffer descriptor is not the layout `descriptor::host::move_raw` knows. So on NVIDIA every raw twin that begins between two multiples of 16 becomes a null view (`TWINS[2]`), and reads zeros. A caveat on the "constant buffer load" rows: with this test's shader (FXC `cs_5_1`, `c[which].d[first / 16][(first / 4) & 3]`), NVIDIA gives 0 for every component other than `.x`. I widened the offsets locally: 4064 and 4080 read right, while 4076, 4084, 4088 and 4092 give 0, and a raw load of the same CBV gives all of them. So those rows only tell about component 0 here. I haven't checked whether the translated DXIL ever indexes a constant buffer component that way. ## Costs on this card There are no XTX figures in the repository for these, so here are the plain numbers: - `bench_indirect_draw_barriers` (3200 one-record draws): one at a time 14.53 ms (4.54 µs a draw). Windows of 32: main's 33.76 ms against this tree's 0.67 ms (-98 %). Card variants: 11.01 / 0.56 ms. - `batch_costs` (2355 indirect dispatches): each clamped alone 6.83 ms. A batch every 48: 0.55 ms. Every 5: 3.08 ms. Every 1: 10.92 ms. - `card_compare_costs`: 80 rounds × 5 passes of 64 pieces 0.91 ms (1710 GB/s); of 500 pieces 20.90 ms (584 GB/s). - `bare_command_cost` (µs a draw): pipeline change 0.27, barrier pair 0.74, a compute pass of ours 0.53, the same between two waits 2.05, 100 lists one by one 0.19. - `texture_checks_per_submission`: 839.7 → 67.2 ms (12.5x). - `what_landing_costs`: 15.3-24.6 ms a frame to land, the best 15.3 with 5 threads beside. - `allocation_costs`: committed texture 128 µs each (4 threads); staging committed and mapped 378-557 µs; placed in 64 MB heaps 4-9 µs. ## `replay_big` needs a heap NVIDIA refuses `a_frame_of_a_titles_size` fails at `tests/replay_big.rs:193` with `E_INVALIDARG`. It asks for a shader-visible view heap of `VIEWS = 1_500_000`, and NVIDIA caps shader-visible heaps at 1,000,000. The runtime already falls back to that (`PORTABLE_VIEWS`); the test does not. With `VIEWS = 1_000_000` changed locally it passes: - frames without the recorder 13.5-14.1 ms, with it 17.4-19.9 ms, the captured frame 3.6 s - loaded and replayed 11.7 s; unchanged: 3.27 ms on the card (median of 3) - picture: the same bytes as presented (blake3 `0471c2e7`) - 9353 MB of the card used of a 10369 MB budget Taking the count from what the device accepts (or capping at 1,000,000) would let the test run on NVIDIA. ## Not run - `tiles::tests::levels_on_demand_on_the_card`: it wants the D3D12 debug layer, and the "Graphics Tools" feature is not installed here, so it skips. - The CPU-only benchmarks (`torn`, `place`, `refresh_tests`, `shadow::merge_tests`, `object`, `draw::heap_range_tests`). Commands: ``` cargo test --workspace --locked --all-features --no-fail-fast cargo test -p victory-gpu --release --all-features --locked --lib -- --ignored --nocapture --exact --test-threads=1 <test> cargo test -p victory-gpu --release --all-features --locked --test replay_big -- --ignored --nocapture ``` I have the full logs if any of them would help.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:24:48 +00:00
github-bot 2026-11-26 08:24:50 +00:00
Author
Owner

@⁠avatarmanz on GitHub · 2026-11-26 08:19 UTC · original

Fixed by #120, now in main (0ce46d5a).

**@⁠avatarmanz** on GitHub · 2026-11-26 08:19 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/116#issuecomment-7186455438) Fixed by #120, now in main (0ce46d5a).
This discussion has been locked. Commenting is limited to contributors.
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/avatarmanz--VIctory-7900XTX#116
No description provided.