Shader tests: a host that caps view heaps below HEAP_VIEWS skips the null-view leg #2356
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2356
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2356/head"
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?
@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 mergingSummary
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.@DrDarkDK on GitHub · 2026-11-25 11:42 UTC · original
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.
@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:
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