GPU tests: fall back to 1,000,000 view descriptors in replay_big on capped adapters (#116) #120
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/120"
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?
Imported from avatarmanz/VIctory-7900XTX. Originally posted by ESAT586 on 2026-11-26T04:42:17Z.
Addresses #116 (
replay_bigheap failure on 1M-capped NVIDIA adapters).Problem
tests/replay_big.rshardcodedVIEWS = 1_500_000when creating its shader-visibleCBV_SRV_UAVdescriptor heap. On adapters that cap shader-visible view heaps at1_000_000(NVIDIA),CreateDescriptorHeapreturnedE_INVALIDARG, preventingreplay_bigfrom running even though the runtime already falls back toPORTABLE_VIEWS(1_000_000).Change
CreateDescriptorHeap(VIEWS)(1_500_000) first so uncapped adapters (AMD / WARP) remain unchanged, and fall back toPORTABLE_VIEWS(1_000_000) when rejected.0..view_countinstead of0..VIEWS.Verification
BIG_TEXTURES=500 BIG_CARD=100 cargo test -p victory-gpu --features diagnostics --locked --test replay_big -- --ignored --nocaptureon NVIDIA GeForce RTX 3060 Ti 8 GB: 1 passed, 0 failed (falls back cleanly to1_000_000view descriptors and passes full record + replay byte-equality check).cargo clippy -p victory-gpu --all-targets --all-features --locked: 0 warnings intests/replay_big.rs.cargo xtask policy --staged:asset policy: 1 files ok.Imported from avatarmanz/VIctory-7900XTX. Originally posted by juliptree on 2026-11-26T06:51:07Z.
Independently validated on an RTX 5060 Ti 16 GB with BIG_TEXTURES=500 and BIG_CARD=100. Base
85d5641failed creating the 1.5M shader-visible descriptor heap with 0x80070057. PRd0aaed0hit the same rejection, fell back to 1M descriptors, and passed a_frame_of_a_titles_size with matching recorded and replayed image hashes. Temporary instrumentation logged the selected adapter and heap sizes. No game files were used.Imported from avatarmanz/VIctory-7900XTX. Originally posted by avatarmanz on 2026-11-26T07:54:55Z.
Merged into main in the next push (tests pass); thanks.