Test report: RTX 5070 (Blackwell), Windows 11, 70564ae: 471 passed, 5 failed, 7 ignored (4 from the 1,000,000 view heap cap) #1744
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#1744
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?
@kappalegoat on GitHub · 2026-11-24 21:49 UTC · original
Environment: Windows 11 Pro 26200, NVIDIA GeForce RTX 5070 (driver 621.24, single adapter), Intel Core Ultra 7 265KF, 32 GB, Rust 1.98.1 MSVC.
mainat70564ae. No game files; the title was not run.cargo test --workspace --locked --no-fail-fast→ 471 passed, 5 failed, 7 ignored.4 failures: the test hosts ask NVIDIA for more views than it allows
HEAP_VIEWSis1 << 21(2,097,152). NVIDIA refuses shader-visible CBV/SRV/UAV heaps over 1,000,000 descriptors, as the in-title reports in #1627 and #1620 show. The unit tests hit the same limit:victory-gpudescriptor::host::tests::dynamic_slots_are_held_until_releasedassertion failed: heap.heap.GetDesc().NumDescriptors >= victory_shader::emit::HEAP_VIEWS(host.rs:1418)victory-gpumemory::tests::lists_share_a_table_and_copies_keep_their_viewspast the dynamic slots(memory.rs:673)victory-shaderemit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zerosdispatch failed: The parameter is incorrect(the test host makes aHEAP_VIEWSheap forView::NullBuffers, emit/host.rs:1356)victory-shaderemit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride[101, 104, 107, …, 131, 0, 0, …], want[200, 201, …, 231]The last one I only attribute to the cap by elimination; I did not confirm it.
So on any NVIDIA machine these tests fail on
main, whatever the shader work: either the tests should size their heap from what the device accepts, or they should be marked as needing a device that takesHEAP_VIEWSviews.1 failure that looks like a real hardware difference
victory-shaderemit::synthetic_tests::gathers_at_a_level_match_the_hardware, lane 0: got[0.0, 1.0, 0.0, 0.0], want[0.0, 0.0, 0.0, 0.0](synthetic_tests.rs:261). The expectation picks the gather footprint withfirst(u, w); on this GPU one texel of the 2x2 footprint differs at lane 0. I did not look further into which coordinate rounds differently.Passing, for the record (relevant to FIND-5 in #1633)
All of
emit::valu_testspass on this card (in the 206 that passed ofvictory-shader), includingv_med3_f32_matches_rdna2_with_nan: the VALU expectations agree with Blackwell hardware here.AI-assisted (Claude Code).
github-bot referenced this issue2026-11-26 04:49:33 +00:00
github-bot referenced this issue2026-11-26 05:06:57 +00:00
github-bot referenced this issue2026-11-26 05:06:59 +00:00
@alexdeliu on GitHub · 2026-11-24 21:54 UTC · original
AMD counterpart, same commit. AMD RX 9070 (RDNA4, driver 32.0.32029.2010), Windows 11,
mainat70564ae, Windows SDK 10.0.26100dxil.dll(1.7.2308). No game files.cargo test --workspace --locked --no-fail-fast: 474 passed, 2 failed, 7 ignored.descriptor::host::tests::dynamic_slots_are_held_until_releasedmemory::tests::lists_share_a_table_and_copies_keep_their_viewsstride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zerosstride_tests::a_heap_buffer_read_by_element_takes_the_views_stridesynthetic_tests::gathers_at_a_level_match_the_hardwaresynthetic_tests::permutes_read_the_lane_named_and_zero_from_lanes_left_outemit::rect::tests::rectangles_get_their_fourth_corneremit::tests::elements_sharing_a_row_keep_their_orderHEAP_VIEWS(2²¹) heap and NVIDIA refuses more than 1,000,000.lane 4 against its gather, got[66, 67, 35, 34], want[65, 66, 34, 33], andno device ran the permute. Those two are whymain's CI is red. Both pass here on the RX 9070, and on the WARP of this Windows 11 build. So they look like device-dependent footprints and wave-op support rather than translation bugs. Gating them to hardware that matches, asvalu_testsdoes with known hosts, would turn CI green.Container part 'Pipeline State Validation' does not match), which only validators older than 1.8 catch, and the Windows SDK still ships 1.7. #306 (e3067ae) writes one PSV0 string per element and fixes them. RTX hosts with a 1.8+dxil.dlldon't see them.@Capi360 on GitHub · 2026-11-24 22:00 UTC · original
I reproduced this on Windows 11 Pro build 26200, Ryzen 7 5700X3D, 32 GiB RAM, RTX 3060 Ti 8 GiB (NVIDIA 616.56), starting from
70564ae.I tested a diagnostic build compiled for 1,000,000 view slots. It reserves the fallback descriptors inside the capped heap and skips out-of-range slots during background mirroring. The heap allocator regression, shared-table test, and missing-buffer-view zero-read test pass on this build. The element-stride test still fails on hardware with the same 101, 104, 107 sequence followed by zeros. This isolates that failure from the oversized test heap.
I also ran the title locally. The diagnostic build reached more startup frames and reduced the startup log from about 86 MB to 71 KB. The GPU still reset before world entry. Windows had ample commit headroom, so this run did not hit the memory cutoff. Exact experimental revision. AI-assisted.
@kappalegoat on GitHub · 2026-11-24 22:20 UTC · original
Correction and root cause for
a_heap_buffer_read_by_element_takes_the_views_stride. @Capi360 is right: it is not the heap cap. It is a view-type mismatch that NVIDIA does not tolerate.What the test does. The buffer at heap index 1 is a structured SRV (
Stride::Structured(12)). The program reads it withbuffer_load_dword … idxen offset:4through a heap-indexed descriptor, solower.rstakes the "heap-indexed buffer read by element" path: it reads the stride from the view-stride table and emitsrawBufferLoadon a raw (ByteAddressBuffer, kind 11) handle at byteindex * stride + offset(view_stride, and the block after it inbuffer()). A raw handle on a structured descriptor is undefined in D3D12; AMD and WARP read the bytes anyway, NVIDIA does not.The numbers fit exactly. Lane
lasks for byte12l + 4(want200 + l). The RTX 5070 returns101 + 3l, which is the first dword of structured element(12l + 4) / 4 = 3l + 1: NVIDIA takes the raw byte offset in dwords as the element number and multiplies by the descriptor's own stride. Lanes 0-10 land on elements 1..31; lane 11 on would be element 34 and up, past the 32 elements, so 0. That is the[101, 104, …, 131, 0, …]in the report.Experiment. Same test, only the heap view changed to
Stride::Raw(the stride table still says 12): passes on the RTX 5070 and on WARP. Restored afterwards; no change proposed to the test.Why it matters for the title. The runtime mirrors the title's buffer SRVs into the host heap with their own description (
descriptor/host.rs,buffer_srv), so a titleStructuredBufferstays structured there, and every translated heap-indexed read of it by element is this raw-on-structured access. On NVIDIA those reads return wrong data or zeros. #984 fixes the same mismatch for table-bound structured buffers (known stride); the heap-indexed path from #155's stride table is not covered by it.Not a one-line fix, as far as I can see: the same host slot is also read through tables as structured, so the slot cannot simply become raw. Two directions: the stride table also says whether a slot is structured, and the shader reads structured slots through a structured handle (
index,offset) instead of a byte address; or the runtime keeps a raw twin of each structured heap view for heap-indexed reads. That is a maintainer's call, so I am reporting it as a finding rather than writing either.No game files used. AI-assisted (Claude Code).
@tumbubu on GitHub · 2026-11-24 22:30 UTC · original
RDNA3 counterpart on the same commit: 476 passed, 0 failed, 7 ignored. Both PSV0 tests pass here too, with a newer
dxil.dll.mainat70564aecargo test --workspace --locked -- --test-threads=1bin\10.0.26100.0\x64\dxil.dll(anddxc.exe) report 1.9.2602.17, not 1.7.2308.descriptor::host::tests::dynamic_slots_are_held_until_releasedmemory::tests::lists_share_a_table_and_copies_keep_their_viewsstride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zerosstride_tests::a_heap_buffer_read_by_element_takes_the_views_stridesynthetic_tests::gathers_at_a_level_match_the_hardwareemit::rect::tests::rectangles_get_their_fourth_corneremit::tests::elements_sharing_a_row_keep_their_orderThis fits @alexdeliu's reading of the two PSV0 failures: only validators older than 1.8 catch them, and they are not AMD-specific. One correction to "the Windows SDK still ships 1.7": a current install of SDK 10.0.26100 ships 1.9.2602.17, so the result depends on when the SDK was installed. The heap-cap four and the gather test pass on a second AMD generation.
AI-assisted (Claude Code); synthetic tests only, no game files.
@kappalegoat on GitHub · 2026-11-24 22:32 UTC · original
What NVIDIA does with the stride, measured: a structured read is right only when the handle's annotated stride equals the view's. This decides how the heap-indexed path can be fixed, so here are the numbers before anyone writes code (I claimed the fix in #1633).
Same test (
a_heap_buffer_read_by_element_takes_the_views_stride, a structured SRV of stride 12 at heap index 1), RTX 5070, driver 621.24, with an experimental lowering that reads the slot through a structured handle (annotateHandlekind 12) at (index,offset) instead of a raw handle at a byte address. Only the annotated stride changes between runs; the view'sStructureByteStrideis 12 throughout:main)With 16, lane
lreads the dword at byte16l + 4of the buffer: the address follows the annotated stride, not the view's 12. (With 4 the pattern is different again, elementl + 1at offset 0; I have not worked out why, but it is wrong either way.)So a structured handle is only correct when the stride is known when the shader is compiled. That holds on the table path (
UsedResource.stride, which is what #984 relies on), but not on the heap-indexed path, where the stride is only in the runtime's view-stride table. Reading the table's value at run time cannot feedannotateHandle, whose properties are constants.What would work, as far as I can tell:
R32_TYPELESS+RAW), the heap path is correct as it is, and the table path reads them raw too, atindex * stride + offsetwith its known stride. One typing everywhere. The costs: raw views need a 16-byte aligned start (D3D12_RAW_UAV_SRV_BYTE_ALIGNMENT), and a structured view starting at an arbitrary element is not (#986 is about the same alignment), and it runs the opposite way to #984.Before writing one of them: @Marvisak, which direction would you take? I would go for 1 unless the alignment of title views makes it impractical, in which case 2.
Test files were restored afterwards; nothing in a branch yet. No game files used. AI-assisted (Claude Code).
@Vedoxdev123 on GitHub · 2026-11-24 22:38 UTC · original
Tested on Windows with AMD Ryzen 5 5600X + NVIDIA GeForce RTX 4060 (Ada Lovelace) on latest
main:cargo test -p victory-shader-> 206 passed; 3 failed; 2 ignoredReproduced the exact same 3
victory-shaderfailures reported on RTX 3070 and RTX 5070:emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride(left: [101, 104, 107, ...],right: [200, 201, 202, ...])emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros(hardware: dispatch failed: The parameter is incorrect.)emit::synthetic_tests::gathers_at_a_level_match_the_hardware(left: [0.0, 1.0, 0.0, 0.0],right: [0.0, 0.0, 0.0, 0.0])@JurajSimicevic on GitHub · 2026-11-24 22:46 UTC · original
@kappalegoat, a second symptom of the structured-view read you claimed, in case your fix only covers the heap-indexed path:
synthetic_tests::gathers_at_a_level_match_the_hardwarefails on NVIDIA for the same reason, not for anything in the gather lowering.mainat70564ae. Printing every lane instead of stopping at the first: all 32 lanes on hardware get footprints at (0, 0) of level 0 ([0, 1, 0, 0], a few[0, 3001, 0, 0]), whatever coordinates they were given; WARP gets all 32 right. So the program reads its input records as zeros.Stride::Structured(16)) bound through a table and read withbuffer_load_dwordx4 … offen(a byte offset), not heap-indexed by element as in the stride test.Stride::Raw, both gather tests pass on the RTX 5080, withgather_firstand the rest of the lowering untouched.So a fix that reads structured slots through a structured handle (or binds them raw) on the table path too would make this test pass on NVIDIA as well. I've released my claim on it in #1633.
AI-assisted.
@marquezinii on GitHub · 2026-11-24 22:53 UTC · original
RTX 5070 (driver 621.40),
70564ae: same element-stride failure. With structured views made raw both in the runtime and invictory-shader's test host, it passes, and the table-structured tests still pass through raw views. Details and a patch that covers views not on 16 bytes are in #1762 (comment there). On this drivergathers_at_a_level_match_the_hardwarepassed in every run here, while 621.24 failed it above.@welisonzika14-jpg on GitHub · 2026-11-24 23:30 UTC · original
RTX 5070 (driver 621.24, Windows 11, Rust 1.98.1 MSVC), all on top of
70564ae, one PR at a time. Five open PRs try to fix the 1,000,000 view heap cap, so here is how each does on this card (cargo test -p victory-gpu -p victory-shader --lib, no game files):victory-gpuvictory-shadermainWhat I see:
victory-gputests.a_heap_buffer_read_where_no_buffer_view_is_reads_zeros, because they change the heap size on the shader side too. #1751 and #1770 only touchvictory-gpu, so that test still fails with them.a_heap_buffer_read_by_element_takes_the_views_strideandgathers_at_a_level_match_the_hardware. They are the structured/raw view problem, not the heap cap (see #1762).Limits: I only ran the unit tests. I did not read the code of each PR for quality, and I did not run the title. The PRs were at these heads: #1751
4521591, #17701beaca6, #1848a3caa6b, #17773635e70, #1779a63eb93. I tested them separately, not in pairs.Written with AI help (Claude/Kiro). The numbers are from runs on my machine.
@LocranKing on GitHub · 2026-11-25 07:30 UTC · original
Reproduced the exact same 5 failures on
main(940d32f) on an NVIDIA GeForce RTX 3060 Ti 8 GB (Ampere, driver32.0.16.1088, Windows 1110.0.26300, Rust1.98.1):638 passed, 5 failed, 10 ignored.One root-cause note on the 5th failure (
emit::synthetic_tests::gathers_at_a_level_match_the_hardware, lane 0: got[0.0, 1.0, 0.0, 0.0], want[0.0, 0.0, 0.0, 0.0]): it is not a gather rounding difference on NVIDIA — it is the sameStride::Structured+rawBufferLoadbug (FIND-11) asstride_tests.In
crates/victory-shader/src/emit/synthetic_tests.rs:210-213, the input buffer is bound asStride::Structured(16). When lane 0 reads its record's four dwords at byte offsets0, 4, 8, 12viarawBufferLoadon a 16-byte structured SRV, NVIDIA divides the byte offset by 4 and indexes structured elements0, 1, 2, 3at dword 0 instead:records[1][0] == 0→u = 0.0(first(0.0, 24) = -1)records[2][0] == 0→v = 0.0(first(0.0, 16) = -1)records[3][0] == 0→level = 0At
(x = -1, y = -1, level = 0), component 1 ((x + 1, y + 1) = (0, 0)) readstexel(0, 0, 0) = 1.0, producing[0.0, 1.0, 0.0, 0.0]. So onceStride::Structuredviews in the test host (emit/host.rs) are created as raw views alongside#1779, all 5 NVIDIA test failures are accounted for without any gather lowering discrepancy.AI use: Antigravity (Gemini 4 Carbon) ran the tests on my machine, traced the coordinates, and drafted this note; checked before posting.
@romeawayfromhome-rgb on GitHub · 2026-11-25 10:51 UTC · original
Additional RTX 2080 evidence for this heap-view failure:
940d32fcargo test -p victory-shader --lib --locked -- --test-threads=1v_med3_f32_matches_rdna2_with_nanpasses.a_heap_buffer_read_where_no_buffer_view_is_reads_zerosfails deterministically at dispatch with “The parameter is incorrect” before reaching the zero assertion. Individual rerun also failed.This run does not establish whether the shader returns zero for the no-buffer-view read, because dispatch fails first. It is consistent with the HEAP_VIEWS/NullBuffers heap-cap diagnosis here, but does not independently prove the root cause.
@Marvisak on GitHub · 2026-11-25 12:50 UTC · original · edited 2026-11-25 21:47 UTC
Automated triage for the maintainers. Still confirmed on current
main(61bfc77). The thread narrows the five NVIDIA failures down to two causes:HEAP_VIEWSis1 << 21(crates/victory-shader/src/emit/shader.rs). The runtime already falls back toPORTABLE_VIEWS(1,000,000) when the heap is refused (crates/victory-gpu/src/descriptor/host.rs, "host view heap capped at"), butdynamic_slots_are_held_until_releasedasserts at leastHEAP_VIEWSdescriptors, and the shader test host (emit/host.rs) builds aHEAP_VIEWSheap forView::NullBuffers. AMD (RX 9070, RX 7900 XT) passes all three. New: a probe on an RTX 5070 (621.24) finds the shader-visible view heap limit is exactly 1,000,000, although the card reports binding tier 3. A side-by-side run on an RTX 5080 under Wine (posted in #747) finds #2683, #2682, #2650 and #2461 each fix all three tests with no new failures, and #2628 fixes two of them. Other open PRs for this: #1751, #1770, #1777, #1779, #1943, #2185.buffer_srvindescriptor/host.rskeeps the title's structured description, while heap-indexed and offset reads are lowered to a raw buffer load. NVIDIA indexes those by the view's stride, so the reads land on the wrong data, which matches the101, 104, 107…pattern exactly. This matters for the title, not only the tests. New: on13f91cawith open PRs #2357 (raw views in the shader test host) and #2596 (the #2571 test crash) applied, only the heap-cap test is left failing invictory-shader. #2357 fixes the tests only; #2464 (structured buffer views made raw on NVIDIA) is the runtime side.The two PSV0 failures on the RX 9070 come from an older
dxil.dll(1.7) and are addressed by #306. None of the merges since the last triage (#1273, #573, #244, #139, #114) touches these causes.Generated by Claude Code
@welisonzika14-jpg on GitHub · 2026-11-25 18:52 UTC · original
Where the 5 NVIDIA test failures stand on current
main13f91ca, RTX 5070 (driver 621.24), Windows 11, unit tests only:victory-gpuvictory-shadermain13f91ca(skipping the #2571 test)main+ #2596 + #2357 (nothing skipped)With #2596 (the #2571 crash) and #2357 (raw views in the test fixtures) merged together, the only
victory-shaderfailure left isa_heap_buffer_read_where_no_buffer_view_is_reads_zeros, the view heap cap, andvictory-gpustill has the 2 heap cap tests. So the heap cap PRs (#1779, #1777, #1943 and others) are the last piece for a green run on NVIDIA. The two PRs merge cleanly together.Written with AI help (Claude/Kiro); the numbers are from runs on my machine.
@welisonzika14-jpg on GitHub · 2026-11-25 19:08 UTC · original
Measured the shader-visible descriptor heap limits on an RTX 5070 (desktop, driver 32.0.16.2124 / 621.24, Windows) with a small standalone probe (windows crate 0.62.2,
D3D12CreateDeviceat feature level 12_0). Each size is aCreateDescriptorHeapcall; binary search between 1 and 2^24, heap released after each try.So on this card the cap is exactly 1,000,000, and 1,000,001 is already refused. The card reports Tier 3, where the D3D12 spec allows more than 1,000,000 but leaves the exact number to the driver; this driver stops at 1,000,000. The PRs that fix the value at 1,000,000 (#1777, #1779, #2185, #1751) match this measurement. They test whether 2^21 works and fall back to 1,000,000; none asks the device for its real maximum. I only measured one NVIDIA card and WARP, so I can't say what other drivers do.
Probe (
main.rs, trimmed):Written with AI help (Claude/Kiro); the numbers are from runs on my machine.
github-bot referenced this issue2026-11-26 14:27:12 +00:00