Shader tests: a host that caps view heaps below HEAP_VIEWS skips the null-view leg #2356

Closed
github-bot wants to merge 2 commits from gh-pr/2356/head into gh-pr/2356/base
Owner

@⁠borosf on GitHub · 2026-11-25 11:35 UTC · original
borosf:vibe/null-view-heap-skip-only-842ca5 → main · +31 −0 · 2 files · 2 commits · closed without merging

Summary

  • Measured on an Intel Arc B580 (Xe2, SM 6.7): cargo test -p victory-shader --lib runs
    245 passed, 2 failed — the first discrete Intel Arc datapoint for this suite.
  • One failure is the known #1782 / NEW-32 dot4 class, not touched by this change.
    The other is new:
    stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros panicked with
    hardware: dispatch failed: The parameter is incorrect, because the test's view heap is
    HEAP_VIEWS (2^21) slots while D3D12 guarantees only
    D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_2 (2^20) shader-visible ones.
    The driver that enforces the cap (this Arc B580) refuses the heap; WARP and the
    AMD/NVIDIA hosts so far mask it. #1829 saw the same limit ("limit for shader visible
    view heaps is 1000000") on Intel UHD, so the cap is the Intel-family norm, and the
    runtime already falls back (descriptor/host.rs, PORTABLE_VIEWS = the same 1,000,000).
  • Fix: Host::takes_null_view_heap() probes for the heap the null-buffer-view slot needs,
    and the test skips only that leg on hosts that cap below HEAP_VIEWS (the harness's own
    "no SM 6.6 device; skipped" pattern); WARP still runs and keeps CI coverage.

claiming: test-harness half of the capped-view-heap hosts, adjacent to FIND-9 / NEW-27
(the victory-gpu half, also confirmed on this card: both its tests fail the same way).
Commenting from this account is blocked by the integration's permissions, so the claim
rides this pull request.

Verification

  • cargo test -p victory-shader --lib: 145 passed, 0 failed in the preparing sandbox
    (no device; both legs skip), and on the reporting Intel Arc B580 the suite goes
    245 → 246 passing, the covered leg printing
    no HEAP_VIEWS view heap on hardware; skipped.
  • cargo clippy -p victory-shader --all-targets --locked -- -D warnings: error set
    identical to pristine main 940d32f; no new warnings.
  • cargo run -p xtask --locked -- policy: 182 files ok. No game data involved.
**@⁠borosf** on GitHub · 2026-11-25 11:35 UTC · [original](https://github.com/Marvisak/VIctory/pull/2356) `borosf:vibe/null-view-heap-skip-only-842ca5` → `main` · +31 −0 · 2 files · 2 commits · closed without merging ## Summary - Measured on an Intel Arc B580 (Xe2, SM 6.7): `cargo test -p victory-shader --lib` runs **245 passed, 2 failed** — the first discrete Intel Arc datapoint for this suite. - One failure is the known #1782 / NEW-32 dot4 class, not touched by this change. The other is new: `stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros` panicked with `hardware: dispatch failed: The parameter is incorrect`, because the test's view heap is `HEAP_VIEWS` (2^21) slots while D3D12 guarantees only `D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_2` (2^20) shader-visible ones. The driver that enforces the cap (this Arc B580) refuses the heap; WARP and the AMD/NVIDIA hosts so far mask it. #1829 saw the same limit ("limit for shader visible view heaps is 1000000") on Intel UHD, so the cap is the Intel-family norm, and the runtime already falls back (`descriptor/host.rs`, `PORTABLE_VIEWS` = the same 1,000,000). - Fix: `Host::takes_null_view_heap()` probes for the heap the null-buffer-view slot needs, and the test skips only that leg on hosts that cap below `HEAP_VIEWS` (the harness's own "no SM 6.6 device; skipped" pattern); WARP still runs and keeps CI coverage. claiming: test-harness half of the capped-view-heap hosts, adjacent to FIND-9 / NEW-27 (the victory-gpu half, also confirmed on this card: both its tests fail the same way). Commenting from this account is blocked by the integration's permissions, so the claim rides this pull request. ## Verification - `cargo test -p victory-shader --lib`: 145 passed, 0 failed in the preparing sandbox (no device; both legs skip), and on the reporting Intel Arc B580 the suite goes 245 → 246 passing, the covered leg printing `no HEAP_VIEWS view heap on hardware; skipped`. - `cargo clippy -p victory-shader --all-targets --locked -- -D warnings`: error set identical to pristine `main` 940d32f; no new warnings. - `cargo run -p xtask --locked -- policy`: 182 files ok. No game data involved.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:03:16 +00:00
github-bot closed this pull request 2026-11-26 05:03:16 +00:00
Author
Owner

@⁠DrDarkDK on GitHub · 2026-11-25 11:42 UTC · original

I compared 7f3efbd with #1943 (7f67667 applied cleanly to 940d32f) on native Windows with an RTX 4070 Ti (621.01) and WARP.

On 940d32f, a_heap_buffer_read_where_no_buffer_view_is_reads_zeros fails during hardware dispatch with E_INVALIDARG. With either PR, the RTX leg is skipped because it rejects the requested heap size, and the WARP readback passes.

Since #1943 already has the same capability check and is marked as a merge candidate, could we carry the Arc B580 result over there and consolidate the two PRs?

AI-assisted with Codex.

**@⁠DrDarkDK** on GitHub · 2026-11-25 11:42 UTC · [original](https://github.com/Marvisak/VIctory/pull/2356#issuecomment-7161394104) I compared `7f3efbd` with #1943 (`7f67667` applied cleanly to `940d32f`) on native Windows with an RTX 4070 Ti (621.01) and WARP. On `940d32f`, `a_heap_buffer_read_where_no_buffer_view_is_reads_zeros` fails during hardware dispatch with `E_INVALIDARG`. With either PR, the RTX leg is skipped because it rejects the requested heap size, and the WARP readback passes. Since #1943 already has the same capability check and is marked as a merge candidate, could we carry the Arc B580 result over there and consolidate the two PRs? *AI-assisted with Codex.*
Author
Owner

@⁠borosf on GitHub · 2026-11-25 11:46 UTC · original

Withdrawing this in favour of #1943 — opened earlier, same two files and the same capability
probe, already a merge candidate with green CI, and its skip covers every adapter rather
than the hardware leg only.

The datapoints gathered here carry over:

  • Intel Arc B580 (Xe2, SM 6.7, discrete): cargo test -p victory-shader --lib --test-threads=1 = 245 passed, 2 failed; this test with
    hardware: dispatch failed: The parameter is incorrect. The card caps shader-visible
    view heaps at 1,000,000 — the same limit as Intel UHD Xe-LP in #1829 — so the cap is the
    Intel-family norm, not a laptop-driver quirk.
  • The same failure reproduces on RTX 4070 Ti hardware on 940d32f (plain E_INVALIDARG),
    so the skip is worth having on desktop NVIDIA too.
  • The E0283 in this PR's first commit (the untyped CreateDescriptorHeap probe — the
    harness is #[cfg(windows)], so it only surfaces on a Windows compile) is fixed on
    7f3efbd and moot after consolidation; #1943's turbofish form is typed already.

No changes requested here — closing as a duplicate of #1943.

**@⁠borosf** on GitHub · 2026-11-25 11:46 UTC · [original](https://github.com/Marvisak/VIctory/pull/2356#issuecomment-7161474335) Withdrawing this in favour of #1943 — opened earlier, same two files and the same capability probe, already a merge candidate with green CI, and its skip covers every adapter rather than the hardware leg only. The datapoints gathered here carry over: - **Intel Arc B580** (Xe2, SM 6.7, discrete): `cargo test -p victory-shader --lib --test-threads=1` = 245 passed, 2 failed; this test with `hardware: dispatch failed: The parameter is incorrect`. The card caps shader-visible view heaps at 1,000,000 — the same limit as Intel UHD Xe-LP in #1829 — so the cap is the Intel-family norm, not a laptop-driver quirk. - The same failure reproduces on **RTX 4070 Ti** hardware on `940d32f` (plain `E_INVALIDARG`), so the skip is worth having on desktop NVIDIA too. - The `E0283` in this PR's first commit (the untyped `CreateDescriptorHeap` probe — the harness is `#[cfg(windows)]`, so it only surfaces on a Windows compile) is fixed on 7f3efbd and moot after consolidation; #1943's turbofish form is typed already. No changes requested here — closing as a duplicate of #1943.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!2356
No description provided.