GPU tests: assert the heaps and slots a host can make #3244
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!3244
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3244"
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?
@HailLucifer666 on GitHub · 2026-11-26 14:23 UTC · original
HailLucifer666:fix/descriptor-test-assertions→main· +37 −3 · 2 files · 2 commits · openFixes #3178.
Both tests assert a descriptor-heap layout no D3D12 device can provide, so they fail on every machine with a GPU and pass on CI only because
HostHeap::newreturnsNonewithout a device.Reproduced on
63bcca43with a D3D12 adapter — both fail at the assertions named in the issue.dynamic_slots_are_held_until_released: the heap cannot holdHEAP_VIEWS = 1 << 21against the 1,000,000 shader-visible cap. The test now asserts the design instead:counttitle slots plus the dynamic range the host took (>= MIN_DYNAMIC), and that the view-stride and view-mark tables havemax(count, HEAP_VIEWS)entries each, by reading the mapped buffers' widths.lists_share_a_table_and_copies_keep_their_views: measured here, the host-copy pairs are(2, 4)— inside the dynamic range — because the heap is exactlycount + MIN_DYNAMICand the reserved pair range past it does not fit. The test now asserts one distinct pair per copy and that both are inside the heap, which is what it needs; the slot's range is the host's choice, and asserting>= 1 << 18encoded a layout a capped heap does not have.Test-only. No behaviour changes.
Verification on this machine (Windows 11, D3D12 adapter, Rust 1.98.1):
dynamic_slots_are_held_until_releasedFAILED atNumDescriptors >= HEAP_VIEWS;lists_share_a_table_and_copies_keep_their_viewsFAILED at>= 1 << 18.cargo clippy -p victory-gpu --all-targets --locked -- -D warningsclean.AI-assisted; every run above was executed on this machine.
@Dukestar69 on GitHub · 2026-11-26 14:30 UTC · original · approved these changes
Reviewed the diff and verified locally on Windows 11 x64 (RTX 5090 + WARP):
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.