NVIDIA D3D12 (70564ae): stride_tests & synthetic_tests fail due to HEAP_VIEWS (2M > 1M NVIDIA limit) and Stride::Structured with rawBufferLoad #1835
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#1835
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?
@towiice on GitHub · 2026-11-24 23:10 UTC · original
Running the new
victory-shaderGPU test suites atmain(70564ae) on NVIDIA GeForce GTX 1650 SUPER (Turing TU116, 4 GB VRAM, wave32, driver610.88, Windows 11 26300) passesbvh_tests(14/14),flow_tests(1/1), andmemory_tests(2/2), and surfaces three NVIDIA hardware failures instride_testsandsynthetic_tests:1.
emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros—HEAP_VIEWS = 1 << 21exceeds NVIDIA's 1,000,000 descriptor heap limitcrates/victory-shader/src/emit/shader.rs:25definesHEAP_VIEWS = 1 << 21(2,097,152) andNULL_BUFFER_VIEW = HEAP_VIEWS - 2(2,097,150). Inemit/host.rs:1356,Some(View::NullBuffers)requests a shader-visibleCBV_SRV_UAVdescriptor heap ofHEAP_VIEWS(2,097,152) descriptors.D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_1 = 1,000,000),CreateDescriptorHeapwithNumDescriptors > 1,000,000returnsE_INVALIDARG("The parameter is incorrect.").victory-gpu/src/descriptor/host.rs:145,206, when an NVIDIA host caps the heap atPORTABLE_VIEWS(1,000,000),null < totalis false (2,097,150 >= 1,000,000), so the null buffer views are never written and any shader redirecting a non-buffer slot (stride == 0) toNULL_BUFFER_VIEW(2,097,150) indexes past the end of the 1M NVIDIA heap.2.
emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride—Stride::Structured(12)multiplies byte offset by 12 a second time on NVIDIAvindex(lane) byVIEW_STRIDES[1](12) and addsvoffset(4) to produce a byte offset12 * lane + 4(4, 16, 28, 40, ...), then issues a rawByteAddressBufferrawBufferLoad(h, byte_offset, undef).victory-gpu/src/descriptor/host.rs:418,535), bindless heap buffer SRVs are created withFormat = DXGI_FORMAT_R32_TYPELESS, StructureByteStride = 0, Flags = D3D12_BUFFER_SRV_FLAG_RAW.stride_tests.rs:245->emit/host.rs:1595) creates the SRV withStride::Structured(12)(Format = DXGI_FORMAT_UNKNOWN, StructureByteStride = 12). On NVIDIA hardware, executingrawBufferLoad(h, index, undef)against a descriptor whose hardware stride is12treatsindex(4, 16, 28, ...) as an element index and multiplies by12again (reading bytes48, 192, 336, ...= dwords12, 48, 84, ...=[101, 104, 107, ...]until out-of-bounds0).3.
emit::synthetic_tests::gathers_at_a_level_match_the_hardware— lane 0 (u = NaN)synthetic_tests.rs:208also bindsinputwithStride::Structured(16)while the shader (programline 42:buffer_load_dwordx4 v[12:15], v16, s[20:23], 0 offenwithidxen = 0, offen = 1) lowers via theindex = NonerawByteAddressBufferpath (lower.rs:8704,(11 | u, 0)), so on NVIDIAv16 = lane * 16is multiplied byStructureByteStride = 16(lane * 256bytes).github-bot referenced this issue2026-11-26 05:10:48 +00:00
@DesertGamer on GitHub · 2026-11-24 23:10 UTC · original
Hi everyone!
I want to help get community contributions into the project faster, so I've started VIctory V2, an integration fork of this repository:
https://github.com/DesertGamer/VIctory-V2
What it does
build.rs, git hooks, scripts, new dependencies)Please note
main.If your PR has been sitting unreviewed, feel free to point me to it. Feedback and bug reports are welcome in the V2 repo.
If this post doesn't belong in this section, let me know and I'll remove it.
@towiice on GitHub · 2026-11-24 23:21 UTC · original
Prepared and verified a minimal 4-line fix on NVIDIA GeForce GTX 1650 SUPER + WARP:
fix/nvidia-heap-views-and-raw-buffer-srv)Fix Summary
crates/victory-shader/src/emit/shader.rs: placeNULL_BUFFER_VIEWat1_000_000 - 2(999_998, top ofPORTABLE_VIEWS = 1_000_000) instead ofHEAP_VIEWS - 2(2_097_150), and sizeView::NullBuffersinemit/host.rsto(super::NULL_BUFFER_VIEW + 2) as usize(1_000_000). This ensures the null raw SRV/UAV descriptors fit inside NVIDIA's1,000,000shader-visibleCBV_SRV_UAVheap cap both invictory-gpu'sHostHeap::new(null < total) and invictory-shader's test harness.crates/victory-shader/src/emit/stride_tests.rs&synthetic_tests.rs: useStride::Rawfor the test views read throughraw_view(ByteAddressBufferrawBufferLoadwith byte offsets), matching howvictory-gpu/src/descriptor/host.rs:418,535creates bindless heap buffer SRVs (Format = DXGI_FORMAT_R32_TYPELESS, StructureByteStride = 0, Flags = D3D12_BUFFER_SRV_FLAG_RAW).Verification (NVIDIA GeForce GTX 1650 SUPER + WARP)
cargo +stable-x86_64-pc-windows-gnullvm test -p victory-shader --lib stride_tests -- --test-threads=1: 6 passed, 0 failed (3.15 s)cargo +stable-x86_64-pc-windows-gnullvm test -p victory-shader --lib synthetic_tests -- --test-threads=1: 4 passed, 0 failed (1.07 s)@wildheathen on GitHub · 2026-11-24 23:22 UTC · original
Confirming #2 and #3 on an RTX 5080 (Blackwell, driver 32.0.16.2124, Windows 11), at
70564ae. I reached the same cause independently before seeing this issue.Stride::Structured(_)inemit/host.rscreating a raw view (R32_TYPELESS,NumElementsin dwords,D3D12_BUFFER_SRV_FLAG_RAW, stride 0), the fullcargo test -p victory-shadergoes from 207 passed / 4 failed to 209 / 2.a_heap_buffer_read_by_element_takes_the_views_strideandgathers_at_a_level_match_the_hardwarenow pass on the 5080, as on WARP.image_load_mip, so with no sampler involved, showed it plainly: before the change every per-lane coordinate read from the structured input came out wrong on the 5080 (lanes 0–7 read 0, the rest read texel (0,0)), while WARP read them all correctly.a_heap_buffer_read_where_no_buffer_view_is_reads_zeros).AI-assisted (Claude Code).
@fiestorra on GitHub · 2026-11-24 23:25 UTC · original
Independently hit the same
HEAP_VIEWSwall, and there is a second half to it that the 4-line fix leaves outI reached cause #1 from the other end — a reproducing run rather than the test suites — and opened #1848 before seeing this issue. Same diagnosis as yours:
HEAP_VIEWS = 1 << 21atemit/shader.rs:25is larger than the 1,000,000 descriptors a shader-visible heap may have on NVIDIA, andemit/host.rsasks forHEAP_VIEWSslots when it wants the null buffers' views.Measured on this machine (integrated
AMD Radeon(TM) Graphics, driver32.0.21045.29003, session 1, real window, empty cache,mainat70564ae) — the title's own 1,245,184-slot heap gets capped to 1,000,000, and then:The second half, which I think the 4-line fix does not cover: lowering
HEAP_VIEWSto 1,000,000 makes the clamp and the null indices small enough, but the capped heap is created with its dynamic slots filling it to the last descriptor — title slots934,464plus65,536dynamic = exactly1,000,000— soNULL_BUFFER_VIEW = 999,998is still not past the used slots and the same warning stays. I measured that too:no room for the null buffer viewsmainHEAP_VIEWS = 1_000_000alone>=instead of>so the null views only exist if the capped creation leaves room for them. That is the part of #1848 that is not in the minimal fix, and it is what makes the shader's fallback read have somewhere to land.
Your causes #2 and #3 (
Stride::Structuredwith a raw buffer SRV) are not touched by my change at all, and they are the ones I have not looked at.What I would rather not do is leave two conflicting pull requests open for the same constant. Options, your call as the one with the failing hardware:
70564ae,MERGEABLE, with the measurements above), and add #2/#3 separately;I am not precious about which; what I did not want was for the constant to be changed twice in two branches.
No game data is involved: counts, constants and warnings only.
Written with an AI assistant.
@towiice on GitHub · 2026-11-24 23:44 UTC · original
Thanks @wildheathen and @fiestorra!
@fiestorra: Since non-collaborators cannot open PRs directly on \Marvisak/VIctory\ right now, please keep #1848 open for cause #1! Note one small detail we noticed while checking the capped heap indices:
ull - 1\ (\999_997, the null UAV written by \h.raw_view_at(null - 1, ...)) would still overlap the last dynamic slot (\999_997) unless \NULL_BUFFER_VIEW\ sits at \HEAP_VIEWS - 1\ or 3 slots are reserved (or
ull > count + extra, i.e.
ull - 1 >= count + extra).
I folded both fixes (the 1M \HEAP_VIEWS\ + capped-heap null-slot reservation and creating \uffer_srv\ / \Stride::Structured\ host descriptors as raw \R32_TYPELESS\ SRVs for
awBufferLoad, leaving \iew_stride\ in \VIEW_STRIDES\ intact) into branch https://github.com/towiice/VIctory/tree/fix/nvidia-heap-views-and-raw-buffer-srv (\3142eb2) and verified on NVIDIA GeForce GTX 1650 SUPER + WARP:
@carlos-seiffert on GitHub · 2026-11-25 00:04 UTC · original
Measured on an RTX 2060 6 GB (Turing), driver 621.40, Windows 11, all on
70564ae,cargo test -p victory-shader -- --test-threads=1(hardware and WARP) andcargo test -p victory-gpu:mainCauses 2 and 3 are in the test host only: its
Stride::Structuredmade a structured SRV, while the GPU host makes raw views; NVIDIA applies the stride a second time on the raw load. #1887 makes the test host's view raw, as @wildheathen found above.🤖 Generated with Claude Code
@MoonYueya on GitHub · 2026-11-25 01:18 UTC · original
Same three failures on current
main(42363ab), and they also fail on WARP with identical output, so they are not NVIDIA-specific.cargo test -p victory-shader --lib -- --test-threads=1)VICTORY_D3D12_WARP=1), same machineThe failing tests and their output are the same on both adapters, and match the report above:
emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride:left: [101, 104, 107, …, 131, 0, …],right: [200, 201, …, 231](stride_tests.rs:293)emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros:dispatch failed: The parameter is incorrect.(stride_tests.rs:343)emit::synthetic_tests::gathers_at_a_level_match_the_hardware: lane 0,left: [0.0, 1.0, 0.0, 0.0],right: [0.0, 0.0, 0.0, 0.0](synthetic_tests.rs:261)This fits the analysis above: a 2^21-view heap is over the 1,000,000 shader-visible limit on WARP as well, and a raw load through a view created with
Stride::Structuredis indexed by the view's stride on any D3D12 device. So the fix in the previous comment is needed on every adapter, not only on NVIDIA; the "NVIDIA" in the title may be worth dropping.Not tested: the fix branch itself on this machine.
AI-assisted write-up, checked against the test logs.
@Felix2180 on GitHub · 2026-11-25 01:58 UTC · original
RTX 5070 (Blackwell, desktop, driver 32.0.16.1088), i7-14700KF, Windows 11 Pro 26200,
mainat940d32f.cargo test --workspace --lockedonmain: the same 3victory-shaderfailures as reported here, plus the 2victory-gpuones from the capped view heap (dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_views).Since CI has no GPU, here are the open heap-cap PRs checked on this NVIDIA host, each merged alone onto
main:victory-gpu(2 failing)victory-shader(3 failing)..._no_buffer_view_is_reads_zerospasses, 2 failing#1751 + #1943 together: the whole workspace passes except
a_heap_buffer_read_by_element_takes_the_views_strideandgathers_at_a_level_match_the_hardware.These two are not just fixture bugs, as far as I can tell. Both bind a structured SRV (
Stride::Structured(12)/(16)) and read it through a heap handle declared raw (rawBufferLoadat byte address element ×VIEW_STRIDES[i]+ offset). On NVIDIA the descriptor'sStructureByteStrideis applied again, which gives the observed[101, 104, 107, ...](byte offset × 12). In the game path,descriptor/host.rs::buffer_srv/buffer_uavkeep the title's view description, so a title structured view read "by element" from the heap would hit the same mismatch on NVIDIA. The obvious fix (making those slots raw) conflicts with shaders that read the same slot structured through a used-resource entry (emit/mod.rs, "Buffer views in the heap"). So this looks like a design decision, for example a raw twin of each structured buffer view that the by-element path indexes.Happy to rerun candidate fixes on this card.
@Dathinel on GitHub · 2026-11-25 05:44 UTC · original
Checked #2121 (
4426324) together with #1887 (62bd980) on Windows D3D12, RTX 3050 Laptop, driver 32.0.16.1062. On #2121 alone, the missing-view zero-read test passed. The by-element stride test still returned[101, 104, 107, ...]instead of[200, 201, 202, ...], and gather still disagreed at lane 0.After merging #1887 into that same checkout (tree
06756d0e), all three tests passed. Repro:cargo test --frozen -p victory-shader --lib -- --nocapture --test-threads=1. Harness total: 248 passed, 0 failed, 3 ignored. Some other tests counted as passed explicitly skipped compiler-dependent checks, includingtranslated_compute_matches_pc.This covers the three synthetic shader cases in this issue on this setup. The production descriptor path and game runtime were outside the run. AI-assisted; verified against local logs.
@sinan-cmyk on GitHub · 2026-11-25 08:05 UTC · original
Status on NVIDIA Ada at
main940d32fcargo test --locked -p victory-shader --libon an RTX 4070 SUPER (Ada, 32-lane waves, driver 32.0.16.1088), the default adapter,VICTORY_WARPunset: 244 passed, 3 failed. The three are the ones this issue tracks:stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride,stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zerosandsynthetic_tests::gathers_at_a_level_match_the_hardware.Each open PR, merged alone onto
940d32f:stride_tests::a_heap_buffer_read_by_element_takes_the_views_stridestride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros,synthetic_tests::gathers_at_a_level_match_the_hardwarestride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zerosstride_tests::a_heap_buffer_read_by_element_takes_the_views_stride,synthetic_tests::gathers_at_a_level_match_the_hardware#2177 and #2178 conflict with each other (
shader_cache.rsandemit/mod.rs), so I could not test them together. None of the three PRs fixessynthetic_tests::gathers_at_a_level_match_the_hardware. Comments on #1887 report that the gather test passes with it on an RTX 4070 and an RTX 5080. I did not run #1887 again.AI-assisted (Claude Code).
@latentdev on GitHub · 2026-11-25 10:03 UTC · original
A test of the runtime's structured views, and which PRs fix them
RTX 4090 (Ada), driver 621.24, Windows 11,
mainat940d32f. Each build is its own worktree and target directory.The triage on #1887 points out that
buffer_srvkeeps a title's structured descriptor. #1887's newa_heap_buffer_read_by_element_through_the_runtimes_structured_view(5f3cb18) covers that from the shader side: the test host makes a structured view, as the runtime does today. It never runs the runtime's code, though, so it can't show when the runtime is fixed. With #2178 merged it still fails here ([101, 104, 107, …]), as it would on any NVIDIA card. Sincevictory-shadercannot reachvictory-gpu(the dependency runs the other way), a check of the runtime's views has to live invictory-gpu; the shader-side test could become a doc note pointing there rather than a test that stays red on NVIDIA.This test goes through the runtime itself:
bindless::tests::a_structured_heap_view_reads_by_element_through_its_host_slot(victory-gpu, test only). It makes a structured SRV (32 × 12 bytes) withcreate_srvinto a title heap, somake→buffer_srvbuilds the host slot andHostHeapfills the view-stride table. Then it reads each element raw at that stride, as translated shaders do.victory-gpuvictory-shadermain[200 … 210, 0, 0, …]62bd980)62bd980)62bd980)5f3cb18)…through_the_runtimes_structured_viewcargo test --workspaceon the62bd980combination: 706 passed, 0 failed. Clippy with-D warningsis clean.--features diagnostics,VICTORY_D3D12_WARP=1): WARP reads this raw load through a structured view correctly. It catches the bug on NVIDIA, not in CI.shader_cache.rs, because both change the cache key. Keeping both resolves it:host_build(build, views, blocks)with #2178's 4-argumentkey, and both sets of key assertions. With5f3cb18, #1887 also conflicts with #2178 instride_tests.rs(Stride::Rawagainst the newstrideparameter). #1887'sstridekeeps both.victory-gpu:VICTORY_D3D12_WARP=1only applies with--features diagnostics(host.rs:184). Without the feature, those tests run on the default adapter.Happy to rerun candidates on this card.
@steven-seagull27 on GitHub · 2026-11-25 10:55 UTC · original
I ran the three original tests in this issue together on an RTX 5080 (621.40) and built-in WARP (10.0.26100.10068), Windows 11 build 26300.10075. The tests cover the missing heap slot, reading a structured view by element, and the level-zero gather. Each passing test completed a device readback in the isolated adapter run.
mainat940d32fOn pristine main the RTX missing-slot case stopped before readback. The other two returned data and failed their value assertions. On the combined build all three completed their assertions on both devices. The #2323 change is one test-host input-view change. On the RTX it restored all 32 input records and all 64 gather comparisons while the generated gather shader stayed byte-identical. Gather input/output comparison · Heap allocation A/B
There is a separate subview case worth keeping for release testing alongside the original three. Following the runtime coverage discussed above, I tested 32-record views starting at bytes 12, 24 and 36 through
victory-gpu. The RTX reported 10 records and read incorrect data through those views. The SRV correction restored all 32 records and preserved writes through overlapping views. The four opt-in runtime tests checked 3,424 values per adapter. Runtime results and reproducerFor the middle row I used the exact #2177/#2178 integration plus #2323 at 9c6e094. The last row adds the SRV read fix. These runs used synthetic inputs.
@Marvisak on GitHub · 2026-11-25 12:48 UTC · original · edited 2026-11-26 03:45 UTC
Automated triage for the maintainers.
Confirmed on main (
63bcca4). Comments show it fails on WARP and other NVIDIA cards too:HEAP_VIEWSis1 << 21incrates/victory-shader/src/emit/shader.rs, andNULL_BUFFER_VIEWisHEAP_VIEWS - 2. Both are above the 1,000,000 shader-visible heap limit. The runtime side (no room for the null buffer views on a capped heap,HostHeap::newincrates/victory-gpu/src/descriptor/host.rs) is the capped-heap problem tracked in #747 and #1760.Stride::Structured(12)/(16)views, and the test host incrates/victory-shader/src/emit/host.rsstill creates them as structured SRVs while the shader reads them raw. The runtime'sbuffer_srvcan keep a title's structured view the same way, so the by-element read may also be wrong in the runtime on NVIDIA, not only in the test.Open pull requests:
main.Measurements so far:
f3578e3: #2357 together with #1943 or #2177 clears all five NVIDIA failures (with the #2571 crash test skipped). Since #2357 is closed, the open equivalent for the stride part is #2178 or #2885. #1887, #2461, #1779 and #1777 conflict with current main, and #2121 no longer builds there.draw::tests::a_texture_written_in_one_format_reads_in_another_through_a_placed_viewfails there because there is noID3D12Device10. #1765 or #2251 fixes it, as in #1999.victory-shadertest target now aborts atheap_direct_texture_reads_mark_their_heap_indexon NVIDIA before it reaches these tests. That crash is #2571, so lower failure counts on13f91caand later are tests that never ran, not fixes.The latest comment (zero lighting on an RTX 4090 because compute
bad01f53f53248e5needs 64-lane waves) is a separate problem from these tests. On main a console wave64 compute program is emitted withWaveSize(64)(crates/victory-shader/src/emit/mod.rs), which NVIDIA's 32-lane hosts refuse. That is the wave64 work tracked with #264 and the open PRs #233, #2633 and #2176.Generated by Claude Code
@fyernald on GitHub · 2026-11-25 15:57 UTC · original
Windows 10: the open fixes on an RTX 3080
RTX 3080 10 GB, driver 617.42, Windows 10 Pro 22H2 (19045), Rust 1.98.1 MSVC,
mainat940d32f. I haven't seen a Windows 10 run in this thread yet, so here's that picture. Command:cargo test -p <crate> --lib --locked -- --test-threads=1. Each PR is merged alone onto the base unless the table says otherwise.On Windows 10 these tests need #486 first. The in-box D3D12 runtime has no SM 6.6, so on plain
main,victory-shadergives 172 passed, 75 failed. The hardware tests panic with "neither hardware nor WARP SM 6.6 device available" / "no SM 6.6 device" instead of skipping. With #486 and the Agility SDK 1.620 runtime intarget/debug/D3D12/, it's 244 / 3, the three tracked here. Every row below ismain+ #486.main+ #486)victory-shaderpassed / failedvictory-gpupassed / faileddd25e37no_buffer_viewleft)6847047no_buffer_viewleft)0172e6bno_buffer_view, plus its new..._through_the_runtimes_structured_view)9c6e094by_elementandno_buffer_viewleft)9921b93no_buffer_viewfixed)d15c68bno_buffer_viewfixed)318b877no_buffer_viewfixed)43aa1b2no_buffer_viewfixed)519a820d02e007The
victory-gpubase failures aredescriptor::host::tests::dynamic_slots_are_held_until_releasedandmemory::tests::lists_share_a_table_and_copies_keep_their_views(the heap cap,FIND-9), plusdraw::tests::a_texture_written_in_one_format_reads_in_another_through_a_placed_view.That last one is specific to Windows 10. It is still there after every heap-cap PR:
round 0: one host texture(left: false,right: true,draw.rs:2185). The in-box Windows 10 runtime has noID3D12Device10, somake_texture(resource.rs:1194) skips the castable-format creation, and the R32_UINT / R9G9B9E5 pair gets two host textures. This matches #1999 (Windows 10, RX 7800 XT). #1765 and #2251 each fix it. #486 doesn't, because it only opts in thevictory-shadertest binaries.#2251 conflicts with #2461, so I couldn't test that pair together.
The numbers come from local test logs, which I can share.
@MoonYueya on GitHub · 2026-11-25 22:19 UTC · original
Follow-up on
13f91cae: a unit test now crashes the wholevictory-shadertest targetSummary
On
mainat13f91caee25f2fdf2c062be5f7a27f058e51cbca,cargo test --workspaceno longer finishes. Thevictory-shaderlibrary test binary dies with an access violation partway through, so every test after that point never runs.It reproduces when that one test is run alone:
So it is not an ordering or
--test-threadsproblem.Where it comes from
crates/victory-shader/src/emit/memory_tests.rs:635) was added by2d6c0dfc("Shader: read marks only for texture views taken from the heap itself").67e8ae14("Shader tests: the compute harness zeroes its UAVs") touched the same file just before this run (+145/−6).The body builds a resource-heap-rooted compute program, lowers it, then runs it for real through
Host::new(warp)→compute_pipeline→dispatchfor both the hardware and the WARP device, and asserts on the read-mark bits.Why it matters beyond the crash
The aggregate count moves in a way that looks like an improvement but is not:
940d32f6)13f91caeThe drop is entirely the aborted target: about 120 assertions never execute. The three failures that disappeared (
emit::stride_tests::*,emit::synthetic_tests::gathers_at_a_level_match_the_hardware) are not fixed, they are simply unreached. Anyone reading only the totals would draw the wrong conclusion.The two failures still reached are
descriptor::host::tests::dynamic_slots_are_held_until_releasedandmemory::tests::lists_share_a_table_and_copies_keep_their_views.Reproduction
The machine has a D3D12 device at feature level 12.2 with SM 6.6, so the hardware branch is taken; the WARP branch is also present in the loop.
Machine: NVIDIA RTX 3080 10 GB, driver 32.0.16.1742; AMD Ryzen 7 7700; 31.1 GB RAM; Windows 11 build 26300; Rust 1.98.1.
Written with AI assistance: the builds, runs and log analysis were carried out by an AI agent on the author's machine.
@potatoe0100 on GitHub · 2026-11-25 23:17 UTC · original
RTX 4060 (8 GB): the open fixes on main
f3578e3RTX 4060 (Ada, 8 GB), driver 621.14, Windows 11 Pro 26300, Rust 1.98.1, VS 2022 Build Tools,
VICTORY_DXILnot set. No game files. Each PR head was merged ontomainf3578e3and tested withcargo test -p victory-gpu -p victory-shader --lib --no-fail-fast -- --test-threads=1 --skip heap_direct_texture_reads_mark_their_heap_index. That test is skipped because it kills the process here too (#2571).Short names: dyn =
dynamic_slots_are_held_until_released, lists =lists_share_a_table_and_copies_keep_their_views, stride =a_heap_buffer_read_by_element_takes_the_views_stride, null =a_heap_buffer_read_where_no_buffer_view_is_reads_zeros, gather =gathers_at_a_level_match_the_hardware.#2357 with either #1943 or #2177 clears all five on this card. Adding #2178 or #2323 on top of #2357 + #1943 keeps it at zero failures. #1887, #2461, #1779 and #1777 conflict with current main, so they weren't tested. #2121 doesn't build on current main (
missing field view_pagesindraw.rs).Unit tests only. Nothing here measures the title.
AI-assisted (Claude).
@latentdev on GitHub · 2026-11-26 03:35 UTC · original
RTX 4090: the lighting is zero because NVIDIA can't run the tile classifier as wave64
RTX 4090, driver 621.24, Windows 11, title 1.0.2.1, diag build, opening cutscene. Tree:
main63bcca4+ #1630 + #1832 + #2332 + #2178 + #2121.With the fixes in this thread, this card draws and textures the G-buffer, but the lighting outputs stay at zero and the frame blows out. One refused program causes it:
2dc364df5d3278b8,63381c3250b287faanddce085c07b9414b6. With them traced (VICTORY_TRACE_SHADERS), the indirect readback logs each one as0 of 1 records with work ... first [[0, 1, 1]], so none of them runs a single group. That holds in every frame I logged, on940d32f,67e8ae1and63bcca4.3e7c51f5a390d0f0(1x1x1) resets their records to[0, 1, 1]each frame (two 32-byte records at0xd9358ffc0). The program that raises the counts is computebad01f53f53248e5. It's dispatched 160x90 (one group per 16x16 tile of the 2560x1440 render) with 8x8 threads, so one console wave64 per group. Its table holds the argument block. Lane 0 adds the tile's count withbuffer_atomic_addafter a whole-wave sum, then appends the tile.main, it's emitted withWaveSize(64)and the driver refuses the pipeline (E_INVALIDARG).console wave64 lanes on a host without 64-lane waves). It shares LDS within the wave without barriers and has whole-wave sections (DPP,v_permlanex16,v_readlane32).bad01f53f53248e5(VICTORY_SKIP_PIPELINES) turns the shot flat and washed out, as onmainhere.#439 (on #320 and #233) does the same and translates
bad01f53f53248e5here too (validator and pipeline OK on the 4090). neonbyte1 reported the same pattern with #439 under Linux (#439 comment): the material-tile classifiers run and the tiled lighting gets work. AMD runs wave64 natively, which would explain why the README's RX 6700 XT run is lit.Still wrong on this card with the change:
2dc364df5d3278b8asks for more than 65,535 groups in x in most frames, and the clamp cuts the rest (#2256).@brkunld on GitHub · 2026-11-26 13:52 UTC · original
RTX 3080 Laptop (Ampere): #2596 + #2885 + #1777 on
main63bcca4clear all five, nothing skippedRTX 3080 Laptop GPU (Ampere, 8 GB), driver 32.0.16.2101, Windows 11 Home 26200, Rust 1.98.1 as pinned. No game files. Command:
cargo test -p victory-gpu -p victory-shader --lib --no-fail-fast, with no--skip.main63bcca4577839a767f228cbb9d78(Short names as in the RTX 4060 table above.) Each PR clears its own part: #2596 the #2571 abort, #2885 stride and gather, #1777 dyn, lists and null. #2178 alone cleared stride but not gather here.
On merging: #1777 and #2885 each merge cleanly onto
63bcca4(git merge-tree). They only conflict with each other, in one hunk: thepub use shader::{…}list incrates/victory-shader/src/emit/mod.rs. Keeping both sides' names (#1777'sHEAP_VIEWS_MAX,HEAP_VIEWS_PORTABLE,heap_views,null_buffer_view,set_heap_views, and #2885'sVIEW_RAW_OFFSET_BITS,VIEW_RAW_OFFSET_SHIFT) builds and gives the results above.No display driver reset was logged during any of these runs. Unit tests only; nothing here measures the title.
AI-assisted (Claude Code); the numbers are from runs on my machine.