Shader tests: a host that caps view heaps below HEAP_VIEWS skips the null-view leg #2354
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2356"
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 Marvisak/VIctory. Originally posted by borosf on 2026-11-25T11:35:08Z.
Summary
cargo test -p victory-shader --libruns245 passed, 2 failed — the first discrete Intel Arc datapoint for this suite.
The other is new:
stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zerospanicked withhardware: dispatch failed: The parameter is incorrect, because the test's view heap isHEAP_VIEWS(2^21) slots while D3D12 guarantees onlyD3D12_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).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 setidentical to pristine
main940d32f; no new warnings.cargo run -p xtask --locked -- policy: 182 files ok. No game data involved.Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-25T11:41:40Z.
Review: COMMENTED
Tested against
origin/main(940d32f) on Windows 11 + NVIDIA GeForce RTX 5090:cargo test -p victory-shader): Specifying.CreateDescriptorHeap::<ID3D12DescriptorHeap>(&D3D12_DESCRIPTOR_HEAP_DESC { ... })will resolve the type inference error.AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T11:56:16Z.
Review: APPROVED
Tested locally: merged into main
940d32f69b,cargo test -p victory-shader --lockedon macOS arm64 — 144 passed, 0 failed, 2 ignored (Windows-gated hardware execution tests not run here). Approving — test-only: host capping view heaps below HEAP_VIEWS handled in tests.Imported from Marvisak/VIctory. Originally posted by DrDarkDK on 2026-11-25T11:42:27Z.
I compared
7f3efbdwith #1943 (7f67667applied cleanly to940d32f) on native Windows with an RTX 4070 Ti (621.01) and WARP.On
940d32f,a_heap_buffer_read_where_no_buffer_view_is_reads_zerosfails during hardware dispatch withE_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.
Imported from Marvisak/VIctory. Originally posted by borosf on 2026-11-25T11:46:08Z.
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:
cargo test -p victory-shader --lib --test-threads=1= 245 passed, 2 failed; this test withhardware: dispatch failed: The parameter is incorrect. The card caps shader-visibleview 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.
940d32f(plainE_INVALIDARG),so the skip is worth having on desktop NVIDIA too.
E0283in this PR's first commit (the untypedCreateDescriptorHeapprobe — theharness is
#[cfg(windows)], so it only surfaces on a Windows compile) is fixed on7f3efbdand moot after consolidation; #1943's turbofish form is typed already.No changes requested here — closing as a duplicate of #1943.
Pull request closed