From b41bdb56e2a379620bbe75294a357e09e4091a70 Mon Sep 17 00:00:00 2001 From: WASDeKeys Date: Tue, 24 Nov 2026 16:01:09 +0530 Subject: [PATCH] Tests: skip d32s8 memory test on GPUs with under 8 GB VRAM (#42) 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) --- crates/xcl/src/hle/d3d12x/vram.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/xcl/src/hle/d3d12x/vram.rs b/crates/xcl/src/hle/d3d12x/vram.rs index 8b806d5f8..35bf2a854 100644 --- a/crates/xcl/src/hle/d3d12x/vram.rs +++ b/crates/xcl/src/hle/d3d12x/vram.rs @@ -870,6 +870,10 @@ mod tests { } let mut dev: Option = None; let _ = D3D12CreateDevice(&adapter, D3D_FEATURE_LEVEL_11_0, &mut dev); + if adapter.GetDesc1().is_ok_and(|d| d.DedicatedVideoMemory < 8usize << 30) { + crate::gpu::recomp::runner::skip_test("< 8 GB VRAM"); + return; + } let Some(dev) = dev.filter(|d| tier2(d)) else { return }; super::super::real::adopt(dev.as_raw(), super::super::real::Kind::Device); let memory: IDXGIAdapter3 = adapter.cast().unwrap();