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
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#116
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 invictory-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_stepstests 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-fastgives 972 passed, 0 failed, 46 ignored. That includestests/replay.rson 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.
descriptors_written_under_readers02f36e4)loads_far_outside_viewsef556e4)0x80000000lands on byte 0textures_read_in_another_dimension02f36e4)new_blocks_under_readers3b73cb0)fresh-made,fresh-waited,fresh-enqueued×15 andmade,waited,enqueued×3. Only thenevercontrol is lost (0x887A0006).fresh-madetakes 14-60 ms a block, the longest 282 ms (18 GB of blocks on a 12 GB card)So on this card,
VICTORY_VIEW_COPYandVICTORY_RIPE_BLOCKSare 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_viewsThe full table is long, so here are the rows that differ from "the view's bytes, zeros past it":
rawandtyped u32: exact bounds, zeros from 4096.typed u16(R16_UINT, 2048 elements = 4 KiB): a rawLoadgives the real bytes at 4096 and 4104 and zeros at 8192. The bound behaves like NumElements × 4, twice the view.structured 16(256 × 16) andtyped 4 x u32(256 elements): a rawLoadat 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 24also gives 0 at 4092.the raw view was moved: false: NVIDIA's buffer descriptor is not the layoutdescriptor::host::move_rawknows. 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_bigneeds a heap NVIDIA refusesa_frame_of_a_titles_sizefails attests/replay_big.rs:193withE_INVALIDARG. It asks for a shader-visible view heap ofVIEWS = 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. WithVIEWS = 1_000_000changed locally it passes:0471c2e7)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.torn,place,refresh_tests,shadow::merge_tests,object,draw::heap_range_tests).Commands:
I have the full logs if any of them would help.
@avatarmanz on GitHub · 2026-11-26 08:19 UTC · original
Fixed by #120, now in main (
0ce46d5a).