Skip d32s8_targets_take_their_own_size_of_video_memory on adapters with under 8 GB of dedicated video memory. Fixes #42. #1089
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!1089
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1089/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 11:27 UTC · original
WASDeKeys:main→main· +5 −1 · 1 files · 5 commits · closed without mergingWhat is in it
crates/xcl/src/hle/d3d12x/vram.rs: checkDedicatedVideoMemoryand callskip_test("< 8 GB VRAM")if under 8 GiB.Tested
cargo test --workspace -- --test-threads=4: 697 passed, 0 failed, 33 ignored.d32s8_targets_take_their_own_size_of_video_memory: < 8 GB VRAM.@ivall Could you please add the 'test-only' label to waive the 'smoke.ps1' check for this unit test fix? thanks
Regression run
Test-only diff (touches only
#[cfg(test)] mod testsincrates/xcl/src/hle/d3d12x/vram.rs). Requesting thetest-onlylabel per CONTRIBUTING.md.Not tested
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)@AlexandreSchuelter on GitHub · 2026-11-24 11:41 UTC · original
A data point and a question: on a 16 GB card this test also fails in full runs, but not for lack of VRAM.
On an RX 6900 XT (16 GB, RDNA2),
main47efa2e,cargo test -p xcl --lib -- --test-threads=4, debug:d32s8_targets_take_their_own_size_of_video_memoryfails withPoisonErroratvram.rs:935:49, theVRAM_TEST_LOCK.lock().unwrap(), after the RDNA2 packed-mip panic inplaced_title_textures_share_vram_and_preserve_pixelspoisons that lock (the cascade #673 is about).main.3925533) the same full run gives the same 3 failures, which is expected here since the card has more than 8 GB.The new check runs after
VRAM_TEST_LOCK.lock().unwrap(), so on a card where the failure is this cascade, the skip is never reached. Could you post the panic message from the RTX 3050 6 GB run onmain, and whether the test also fails there when run alone? If it is a real out-of-memory failure, the skip makes sense; if it is thePoisonError, #673 is the fix.Not tested: a card under 8 GB (the skip path itself).
AI use: Claude Code (Claude Opus 5.5) ran the tests, read the diff and wrote this comment; I checked the points above against the code and the run output.
@WASDeKeys on GitHub · 2026-11-24 12:08 UTC · original · edited 2026-11-24 12:14 UTC
Thanks @towiice for confirming on the 4 GB GTX 1650 SUPER
@AlexandreSchuelter to answer your questions for the RTX 3050 6 GB Laptop GPU:
title_texturesand 9/9 invram).--test-threads=4, the failure on this 6 GB card was a flood of0x8007000E(E_OUTOFMEMORY) errors whend32s8_targets_take_their_own_size_of_video_memoryallocated 14 4K depth-stencil targets (~935 MB) concurrently with the rest of the suite. That OOM panic heldVRAM_TEST_LOCK, which then caused the subsequent tests to fail on mutex poison.< 8 GB VRAMskip guard active, the entire workspace test suite under--test-threads=4passes completely clean: 685 passed, 0 failed, 21 ignored (no crashes, no lock poisoning).your point about checking before
VRAM_TEST_LOCKis spot on. I'll push an update moving the DXGI adapter VRAM query before acquiringVRAM_TEST_LOCK, so low-VRAM GPUs skip cleanly without touching the mutex.@AlexandreSchuelter on GitHub · 2026-11-24 12:57 UTC · original
Thanks,
1bfd1f7addresses it: the VRAM query now runs beforeVRAM_TEST_LOCKis taken, so a small card skips without touching the lock. On the RX 6900 XT (16 GB) the test still runs and passes at1bfd1f7(cargo test -p xcl --lib -- d32s8_targets_take_their_own_size_of_video_memory: 1 passed, not SKIPPED).AI use: Claude Code (Claude Opus 5.5) read the diff, ran the test and wrote this comment.
@WASDeKeys on GitHub · 2026-11-24 13:26 UTC · original · edited 2026-11-24 13:48 UTC
So
1bfd1f7is a valid commit? if yes, could you let me know how i can get my pull request approved? i cannot figure out the smoke.ps1 thing since i dont have an authorised Xbox GDK title build? any help maintainers? @ivall@AlexandreSchuelter
Pull request closed