GPU tests: fall back to 1,000,000 view descriptors in replay_big on capped adapters (#116) #120

Merged
ESAT586 merged 1 commit from upstream-pr/120 into main 2026-11-26 08:17:50 +00:00
ESAT586 commented 2026-11-26 04:42:17 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by ESAT586 on 2026-11-26T04:42:17Z.


Addresses #116 (replay_big heap failure on 1M-capped NVIDIA adapters).

Problem

tests/replay_big.rs hardcoded VIEWS = 1_500_000 when creating its shader-visible CBV_SRV_UAV descriptor heap. On adapters that cap shader-visible view heaps at 1_000_000 (NVIDIA), CreateDescriptorHeap returned E_INVALIDARG, preventing replay_big from running even though the runtime already falls back to PORTABLE_VIEWS (1_000_000).

Change

  • Try CreateDescriptorHeap(VIEWS) (1_500_000) first so uncapped adapters (AMD / WARP) remain unchanged, and fall back to PORTABLE_VIEWS (1_000_000) when rejected.
  • Populate 0..view_count instead of 0..VIEWS.

Verification

  • BIG_TEXTURES=500 BIG_CARD=100 cargo test -p victory-gpu --features diagnostics --locked --test replay_big -- --ignored --nocapture on NVIDIA GeForce RTX 3060 Ti 8 GB: 1 passed, 0 failed (falls back cleanly to 1_000_000 view descriptors and passes full record + replay byte-equality check).
  • cargo clippy -p victory-gpu --all-targets --all-features --locked: 0 warnings in tests/replay_big.rs.
  • cargo xtask policy --staged: asset policy: 1 files ok.
<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:6619661887 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/120). Originally posted by [ESAT586](https://github.com/ESAT586) on 2026-11-26T04:42:17Z. --- Addresses #116 (`replay_big` heap failure on 1M-capped NVIDIA adapters). ### Problem `tests/replay_big.rs` hardcoded `VIEWS = 1_500_000` when creating its shader-visible `CBV_SRV_UAV` descriptor heap. On adapters that cap shader-visible view heaps at `1_000_000` (NVIDIA), `CreateDescriptorHeap` returned `E_INVALIDARG`, preventing `replay_big` from running even though the runtime already falls back to `PORTABLE_VIEWS` (`1_000_000`). ### Change - Try `CreateDescriptorHeap(VIEWS)` (`1_500_000`) first so uncapped adapters (AMD / WARP) remain unchanged, and fall back to `PORTABLE_VIEWS` (`1_000_000`) when rejected. - Populate `0..view_count` instead of `0..VIEWS`. ### Verification - `BIG_TEXTURES=500 BIG_CARD=100 cargo test -p victory-gpu --features diagnostics --locked --test replay_big -- --ignored --nocapture` on **NVIDIA GeForce RTX 3060 Ti 8 GB**: **1 passed, 0 failed** (falls back cleanly to `1_000_000` view descriptors and passes full record + replay byte-equality check). - `cargo clippy -p victory-gpu --all-targets --all-features --locked`: **0 warnings** in `tests/replay_big.rs`. - `cargo xtask policy --staged`: **`asset policy: 1 files ok`**.
juliptree commented 2026-11-26 06:51:07 +00:00 (Migrated from github.com)

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 85d5641 failed creating the 1.5M shader-visible descriptor heap with 0x80070057. PR d0aaed0 hit 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.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7184846063 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/120#issuecomment-7184846063). Originally posted by [juliptree](https://github.com/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 85d5641 failed creating the 1.5M shader-visible descriptor heap with 0x80070057. PR d0aaed0 hit 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.
avatarmanz commented 2026-11-26 07:54:55 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7185974385 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/120#issuecomment-7185974385). Originally posted by [avatarmanz](https://github.com/avatarmanz) on 2026-11-26T07:54:55Z. --- Merged into main in the next push (tests pass); thanks.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
avatarmanz/VIctory-7900XTX!120
No description provided.