Skip d32s8_targets_take_their_own_size_of_video_memory on adapters with under 8 GB of dedicated video memory. Fixes #42. #1080
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1089"
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 ivall/xcl. Originally posted by WASDeKeys on 2026-11-24T11:27:40Z.
What 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
Imported from ivall/xcl. Originally posted by towiice on 2026-11-24T11:43:38Z.
Review: COMMENTED
Tested:
stable-x86_64-pc-windows-gnullvm(llvm-mingw 23.1.6).cargo test -p xcl --lib d32s8_targets_take_their_own_size_of_video_memory -- --nocaptureCleanly detects dedicated video memory under 8 GiB on 4 GB GPUs and routes the skip through
runner::skip_test("< 8 GB VRAM"), preventing VRAM exhaustion during concurrent test execution.Imported from ivall/xcl. Originally posted by AlexandreSchuelter on 2026-11-24T11:41:13Z.
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.
Imported from ivall/xcl. Originally posted by WASDeKeys on 2026-11-24T12:08:42Z.
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.Imported from ivall/xcl. Originally posted by AlexandreSchuelter on 2026-11-24T12:57:36Z.
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.
Imported from ivall/xcl. Originally posted by WASDeKeys on 2026-11-24T13:26:50Z.
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
upstream-sync referenced this pull request2026-11-25 04:08:41 +00:00
Pull request closed