Tests: skip low-VRAM test before taking VRAM_TEST_LOCK (#42) #1251
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1251
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1251/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?
@WASDeKeys on GitHub · 2026-11-24 13:44 UTC · original
WASDeKeys:main→main· +5 −1 · 1 files · 12 commits · closed without mergingSkips
d32s8_targets_take_their_own_size_of_video_memoryon adapters with under 8 GB of dedicated video memory before acquiringVRAM_TEST_LOCK. Prevents VRAM exhaustion (0x8007000E/E_OUTOFMEMORY) during concurrent test runs on <= 6 GB cards, which previously panicked while holding the mutex and poisoned subsequent VRAM tests. Fixes #42.What is in it
crates/xcl/src/hle/d3d12x/vram.rs: query DXGIDedicatedVideoMemoryand callrunner::skip_test("< 8 GB VRAM")before acquiringVRAM_TEST_LOCKwhen under 8 GB.Tested
32.0.15.9597), AMD Ryzen 5 7235HS, Microsoft Windows NT 10.0.26200.0,rustc 1.100.0 (0ef1bc386 2026-11-09), debug (cargo test) and release (cargo build --release -p xcl).cargo test -p xcl --lib d32s8_targets_take_their_own_size_of_video_memory -- --nocapture: 1 passed, 0 failed, 0 ignored (863 filtered out); cleanly skips withSKIPPED hle::d3d12x::vram::tests::d32s8_targets_take_their_own_size_of_video_memory: < 8 GB VRAMin 0.02 s.cargo test --workspace -- --test-threads=4: 751 passed, 0 failed, 41 ignored;SKIPPEDGPU tests: 2no wave64(gpu::recomp::tests), 1< 8 GB VRAM(hle::d3d12x::vram::tests::d32s8_targets_take_their_own_size_of_video_memory).fetch_updatedeprecation warnings inreal.rsandxgameruntime/mod.rs).Regression run
Not tested
XCL_SAMPLE_*retail test inputs.AI use
Under `--test-threads=4`, the full test suite exhausted VRAM (0x8007000E) on a 6 GB GPU when `d32s8_targets_take_their_own_size_of_video_memory` placed 14 4K D32S8 targets (~935 MB) concurrently with other GPU tests. The mutex poison from that failure then cascaded into title_textures tests. All tests pass at `--test-threads=1` and `--test-threads=2`. Check the adapter's dedicated video memory and call `skip_test("< 8 GB VRAM")` when under 8 GiB so the suite completes cleanly on 6 GB and smaller adapters. Fixes #42 Assisted by : Antigravity IDE (Claude Sonnet 4.6)@DavidM1911 on GitHub · 2026-11-24 14:02 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:Thanks!
@WASDeKeys on GitHub · 2026-11-24 17:52 UTC · original
please merge this? @ivall
@DavidM1911 on GitHub · 2026-11-26 04:32 UTC · original
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current
mainon the new head — needs another rebase before it can be tested.Pull request closed