Repository navigation
Conversation
|
Honest skips in the right place — both tests' premises only hold where the host actually builds a |
|
Independent RTX 5090 (1M view-heap cap) + WARP verification at head
|
Dukestar69
left a comment
There was a problem hiding this comment.
Tested merged onto origin/main (63bcca4) on Windows 11 x64 (NVIDIA GeForce RTX 5090 + WARP):
cargo test -p victory-gpu --lib descriptor::host::tests::dynamic_slots_are_held_until_released: 1 passed (printshost view heap capped at 65540 descriptors (HEAP_VIEWS is 2097152); skippedon RTX 5090 instead of failing with#1744).cargo test -p victory-gpu --lib memory::tests::lists_share_a_table_and_copies_keep_their_views: 1 passed (printshost view heap capped at 65536 descriptors (HEAP_VIEWS is 2097152); skippedon RTX 5090).cargo clippy -p victory-gpu --all-targets -- -D warnings: clean.cargo xtask policy: 191 files ok.
Cleanly turns the two known NVIDIA 1M view-heap cap false failures into explicit, informative skips.
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
fyernald
left a comment
There was a problem hiding this comment.
One interaction to know about: #2461 (triaged as a merge candidate) fixes the cause of these two failures. With it, a capped host gets a view heap at its cap, and shaders clamp to that cap. Both tests then run and pass on a capped card.
Checked on an RTX 3080 (617.42, 1,000,000-view cap), Windows 10, main 63bcca4:
- #2461 alone:
dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_viewsand #2461'scapped_view_heap_preserves_title_slots_and_reserves_nullsall pass. The heap is 1,000,000 views. - #2461 + this PR: they conflict in
descriptor/host.rs, because #2461 turns that assertion into>= view_heap_limit(). Thememory.rschange merges cleanly, and then skips a test that passes:host view heap capped at 1000000 descriptors (HEAP_VIEWS is 2097152); skipped
So if #2461 lands, this should be dropped, or compare against view_heap_limit() rather than HEAP_VIEWS. Otherwise, on NVIDIA it turns two now-passing tests into skips. If #2461 doesn't land, the skip is an honest stopgap.
|
Automated triage for the maintainers. Merge candidate. Thanks, CI: not run on this head. Generated by Claude Code |
Marvisak#2937's review: the early return skipped the sampler-heap assertion and the retired-slot release checks too, none of which need a full heap. Now the test reads the heap it got, says so when it is capped, and skips only the assertion that every shader index exists; everything after it runs on either host.
3446deb to
95aeee6
Compare
|
Fixed in
Everything after that block runs on either host: the sampler-heap assertion, The comment now also names #2461, so a reader knows the cap is meant to go rather than being a fixture of the design. |
fuzeofficlal
left a comment
There was a problem hiding this comment.
Reviewed and verified at head 95aeee69 against origin/main (63bcca43) on Windows 11 across both an NVIDIA RTX 5090 (1,000,000 shader-visible view-heap cap) and WARP (uncapped 2,097,152 view heap) with VICTORY_D3D12_DEBUG=1:
- Design & correctness:
crates/victory-gpu/src/descriptor/host.rs:2231-2242(dynamic_slots_are_held_until_released) now skips only theviews >= HEAP_VIEWSassertion on capped hosts while still executing the sampler-heap assertion,make_null/release_retiredCOM refcount checks, and non-wrappingheap.dynamicchecks (so regressions inHostHeap::newsizing belowMIN_DYNAMICor slot lifetime remain caught on NVIDIA).crates/victory-gpu/src/memory.rs:975-982(lists_share_a_table_and_copies_keep_their_views) skips cleanly with the actual descriptor count whenslots < HEAP_VIEWS, whereHostHeap::new(false, 0)falls back to 65,536 slots and copy views cannot sit past1 << 18.- Non-blocking notes: the
else { assert!(views >= victory_shader::emit::HEAP_VIEWS); }branch (descriptor/host.rs:2238-2240) is trivially true and can be omitted; also note for maintainers that if#2461lands (sizing capped hosts toview_heap_limit()= 1,000,000 so both tests pass),memory.rs:976would need to compare againstview_heap_limit()rather thanHEAP_VIEWS(or this stopgap can be dropped in favor of#2461).
- Verification:
- Clean
git merge-treeagainstorigin/main(63bcca43);cargo xtask policy(191 files ok);cargo clippy -p victory-gpu --all-targets -- -D warningsclean with default features and--all-features. - RTX 5090 (default &
--features diagnostics+VICTORY_D3D12_DEBUG=1):descriptor::host::tests15/15 passed (dynamic_slots_are_held_until_releasedprintshost view heap capped at 65540 descriptors (HEAP_VIEWS is 2097152): the assertion that every shader index exists is skippedand runs all remaining assertions) andmemory::tests8/8 passed (lists_share_a_table_and_copies_keep_their_viewsprintshost view heap capped at 65536 descriptors (HEAP_VIEWS is 2097152); skipped). - WARP (
VICTORY_D3D12_WARP=1,--features diagnostics+VICTORY_D3D12_DEBUG=1): both tests pass in full with zero skip output;descriptor::host::tests15/15 andmemory::tests8/8 passed.
- Clean
LGTM.
Marvisak#2937's review: the early return skipped the sampler-heap assertion and the retired-slot release checks too, none of which need a full heap. The test now reads the heap it got, says so when it is capped, and skips only the assertion that every shader index exists; everything after it runs on either host. Amended: the �ssert! in the else branch was always true and is gone.
95aeee6 to
935836f
Compare
|
Nit taken (935836f): the �ssert! in the else branch was always true - �iews < HEAP_VIEWS is the whole condition - so it is gone, and the capped case is a plain if that prints the numbers. Nothing else changed:
|
What this fixes
Two tests fail on every NVIDIA host on every run of
main, and have since70564ae:dynamic_slots_are_held_until_releasedopens with the premise "every index a translated shader can reach exists (clamped belowHEAP_VIEWS)" and assertsheap.NumDescriptors >= HEAP_VIEWS.lists_share_a_table_and_copies_keep_their_viewsasserts the copies' view pairs sit "past the dynamic slots" (>= 1 << 18).Both premises only hold on a host that takes a heap of
HEAP_VIEWS(2,097,152). A host that caps shader-visible view heaps below it keeps the capped heap -HostHeap::newsays so in its own comment, and D3D12 says so at creation. On the machine this was measured on (RTX 4080 SUPER, driver 616.87), with the debug layer on:and the heap the host ends up with is 65,540 descriptors. That is FIND-9 in the coordination thread, and it is why an NVIDIA runner shows two failures in a pull request that has nothing to do with them.
What changed
Both tests now read the heap they actually got and skip with one line naming the numbers:
That is the pattern the other host-capability tests here already use (
no host mesh shader support; skipped,no host depth bounds support; skipped). On a host that takes the full heap both assertions run exactly as before, and the sampler heap's own assertion still runs everywhere (its cap is under every host's limit).Measured
cargo test -p victory-gpu --lib --profile diag --features diagnostics(RTX 4080 SUPER)cargo clippy -p victory-gpu --all-features -- -D warningsTwo files, +28/-3:
descriptor/host.rs(the check and the skip),memory.rs(the same, before the test's first use of the premise).What this does not do
The limitation itself is untouched: on such a host, a shader's index past the capped heap is the documented shortcut in
HostHeap::new("a host that caps its heaps belowHEAP_VIEWS(NVIDIA) faults on an index past them, as before the clamp"), not a clamp. Making that correct is a different piece of work from these two tests being red - and this PR deliberately does not hide a failure, it states a host capability the tests need and says so out loud, the way the mesh-shader and depth-bounds tests do.Filed against FIND-9 in #1633 (
claiming: FIND-9), where the same machine's numbers are recorded.