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

Manually merged
github merged 1 commit from github-bot/gh-120 into main 2026-11-26 08:21:47 +00:00 AGit
Owner

@⁠ESAT586 on GitHub · 2026-11-26 04:42 UTC · original
ESAT586:avatarmanz/replay-big-portable-views → main · +10 −5 · 1 files · 1 commits · merged 2026-11-26 08:17 UTC

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.
**@⁠ESAT586** on GitHub · 2026-11-26 04:42 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/120) `ESAT586:avatarmanz/replay-big-portable-views` → `main` · +10 −5 · 1 files · 1 commits · merged 2026-11-26 08:17 UTC 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`**.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:24:52 +00:00
Author
Owner

@⁠juliptree on GitHub · 2026-11-26 06:51 UTC · original

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.

**@⁠juliptree** on GitHub · 2026-11-26 06:51 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/120#issuecomment-7184846063) 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.
Author
Owner

@⁠avatarmanz on GitHub · 2026-11-26 07:54 UTC · original

Merged into main in the next push (tests pass); thanks.

**@⁠avatarmanz** on GitHub · 2026-11-26 07:54 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/120#issuecomment-7185974385) Merged into main in the next push (tests pass); thanks.
github manually merged commit d38720a23b into main 2026-11-26 08:21:47 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.