Tests: select configured adapter in VRAM fixtures #2327
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2337"
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 luckyteagirl on 2026-11-25T15:24:50Z.
Select the hardware adapter requested by
XCL_ADAPTERin the two shared-video-memory GPU fixtures and print the selected adapter. Both fixtures previously used DXGI adapter 0, so on a hybrid machine they could pass on the integrated GPU when a discrete GPU was requested. The shared-page test also now reports capability and device-creation skips through the counted test helper. Part of #2306; related to #2270.What is in it
crates/xcl/src/hle/d3d12x/vram.rs: use the shared adapter selector in the D32S8 VRAM fixture and report adapter/device/tier skips.crates/xcl/src/hle/d3d12x/title_textures.rs: use the shared adapter selector in the placed-texture fixture and count factory, tier, reserved-cube, UMA, and allocation skips. Pixel and page assertions are unchanged.Tested
30.0.13002.13003), Rust 1.99.0 MSVC, DXC/DXIL 1.9.2609.5; debug builds and selected GPU tests.XCL_ADAPTER=6800M cargo test --locked -p xcl --lib d32s8_targets_take_their_own_size_of_video_memory -- --test-threads=1 --show-output: 1 passed, 0 failed, 0 ignored, 0 skipped. PrintedD32S8 VRAM test adapter: AMD Radeon RX 6800Mand exercised the 14-target depth/stencil readback.XCL_ADAPTER=6800M cargo test --locked -p xcl --lib placed_title_textures_share_vram_and_preserve_pixels -- --test-threads=1 --show-output: 1 harness pass, 0 failed, 0 ignored, 1 explicitSKIPPEDbecause this adapter cannot create a reserved cube with mips. PrintedShared-page texture test adapter: AMD Radeon RX 6800M; the fixture's cube capability gate prevented its later checks.cargo build --locked --workspace -j 1: passed (3 existing warnings: 2 deprecated atomicfetch_updatecalls and 1 dead-code field).XCL_ADAPTER=nomatch cargo test --locked --workspace --no-fail-fast -j 1 -- --test-threads=1 --show-outputbefore building the workspace exited 101: 1434 passed, 1 failed, 47 ignored; the only failure wase2e::test_title_runs_and_game_folder_is_untouched, which requires the workspace-builtxcl_testtitle.exeandtestgame_mw.dll. After the workspace build, the same command passed: 37 target summaries, 1435 passed, 0 failed, 47 ignored. It emitted 137 standaloneSKIPPEDnotices (120no GPU, 15no GPU with 32-lane waves, 1no wave32 GPU, 1no wave64); the two changed fixtures also reported inlineno selected hardware adapterskips undernomatch. These no-GPU skips do not cover the GPU fixture behavior.Regression run
b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7):436e946c306c0f7c70172ba9910908a2f1d2472e, clean):Not tested
AI use
main, ran the checks above, and prepared this description. I reviewed the code and evidence before updating the PR. The two fixtures originated in the earlier AI-assisted branch; the refresh did not change their intended scope.Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T15:50:18Z.
Tested: current PR head merged onto current
origin/main(clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo targetx86_64-pc-windows-gnurun under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29).gpu_suite (--release --locked,--test-threads=2): 144 passed / 3 failed / 1 ignored, same three baseline failures as plainorigin/mainon this rig (rig's known baseline: fuzz seed 1003 of #2115,gpu_nonfused_mad_and_mac_prevent_fma_contraction,gpu_depth_buffer_created_for_unordered_access_is_placed).placed_title_textures_share_vram_and_preserve_pixelsand sibling) now run throughadapter::Selectorunder Wine/DXGI: pass withXCL_ADAPTERunset (auto) and withXCL_ADAPTER="AMD Radeon RX 7900 XT". The adapter-name print reports the real card on this lane.Complements the
XCL_ADAPTERfallback/skip matrix posted on #2324 earlier today: match path, auto path, and no-match skip all behave on the Wine lane.Not tested: retail titles (no title data on this lane, counts only).
AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T18:10:23Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T08:09:46Z.
Independent desktop NVIDIA verification of PR #2337 at head
436e946c306c0f7c70172ba9910908a2f1d2472e(2commits:65569edb88089bbf2aad59e5ba1bc87856ebacb4->436e946c306c0f7c70172ba9910908a2f1d2472e; exact parent & merge-base:b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, pre-#2555ancestor ofmain).Environment
7956 MiBreported by D3D12), driver32.0.16.2114(NVIDIA621.14, WDDM 3.2)31.9 GiBusable), Windows 11 Home26200(Developer Mode off)rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC, DXC1.9.2609.5,--releaseTargeted adapter-selection tests & build (
436e946c)cargo test --release -p xcl --lib hle::d3d12x::vram:: -- --test-threads=1 --nocapture(default env, 3 runs)19 passed; 0 failed; 1 ignored; 1316 filtered out× 3 (2.46s× 3,0skipped; live log:D32S8 VRAM test adapter: NVIDIA GeForce RTX 4060)cargo test --release -p xcl --lib hle::d3d12x::title_textures:: -- --test-threads=1 --nocapture(default env, 3 runs)19 passed; 0 failed; 0 ignored; 1317 filtered out× 3 (0.99s,1.07s,0.97s,0skipped; live log:Shared-page texture test adapter: NVIDIA GeForce RTX 4060)XCL_ADAPTER=warp cargo test --release -p xcl --lib hle::d3d12x::vram:: -- --test-threads=1 --nocapture(3 runs)19 passed; 0 failed; 1 ignored; 1316 filtered out× 3 (0.46s,0.44s,0.44s;1counted skip as expected:SKIPPED hle::d3d12x::vram::tests::d32s8_targets_take_their_own_size_of_video_memory: no selected hardware adapter)XCL_ADAPTER=warp cargo test --release -p xcl --lib hle::d3d12x::title_textures:: -- --test-threads=1 --nocapture(3 runs)19 passed; 0 failed; 0 ignored; 1317 filtered out× 3 (0.72s,0.72s,0.74s;1counted skip as expected:SKIPPED hle::d3d12x::title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels: no selected hardware adapter)cargo build --release -p xcl1m 44s, exit0,0new warnings)Paired quiet 60 s retail smoke (
title: 29640639)Exact parent & merge-base (
b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, cached baseline on the same machine):PR #2337 (
436e946c306c0f7c70172ba9910908a2f1d2472e):Runtime log observations (
xcl.log)9219log lines,0[ERROR]/ device-removal / panic lines (dxil_cache:460hits,0misses,0compilation failures;228background pipelines,0failures).19474 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample14010 MB committed by the process; video memory 6115 MB local, 4683 MB non-local.Limits of coverage
crates/xcl/src/hle/d3d12x/vram.rsandtitle_textures.rs,0production-code changes); both hardware VRAM fixtures executed onNVIDIA GeForce RTX 4060by default (3/3,0skipped) and cleanly honoredXCL_ADAPTER=warpwith countedno selected hardware adapterskips (3/3).XCL_ADAPTER) was not tested on this single-dGPU (i5-11400F+ RTX 4060) host; the 60 s retail smoke confirms non-regression of the unchanged runtime binary.AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-27T12:17:35Z.
Tested
Clean
436e946c306c0f7c70172ba9910908a2f1d2472eon Windows 11 build 26200.9974, Ryzen 7 3800X, Rust 1.100.0 MSVC, Intel Arc A770 driver 32.0.101.9175. Built withcargo test --offline --locked -j 2 -p xcl --lib --no-run --message-format=json-render-diagnostics. Ran the libtest executable with--nocapture --test-threads=1, usinggpu::adapter::tests::for the selector group and--exactfor the two fixture filters:hle::d3d12x::vram::tests::d32s8_targets_take_their_own_size_of_video_memoryhle::d3d12x::title_textures::tests::placed_title_textures_share_vram_and_preserve_pixelsBoth selected the A770 with
XCL_ADAPTER=A770and skipped before their GPU assertions. The locked, pinnedcapability.exeprobe identified PCI 8086:56a0 and reportedResourceHeapTier=1andTiledResourcesTier=4. The skips came from the heap-tier gate. Both messages refer to tiled resources. An unmatched adapter selector caused both fixtures to skip before device creation.Three completed CPU tests, four runtime skips (two capability, two unmatched adapter), zero completed GPU fixture bodies, and zero failures or ignores. All Arc processes used separate shared lock acquisitions.
Not tested
Selection between multiple physical adapters, the GPU assertion bodies, full suite and retail smoke.
AI use
T3 Code / Codex (
gpt-6.2-sol) ran the original verification, independently reproduced the cases reported here, and wrote this report.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:51:32Z.
Triage (#1607) – head
436e946No open or merged PR makes the same change (#1859 touches the D32S8 test but only to skip on small-VRAM adapters). Both fixtures still use
EnumAdapters1(0)on main, andSelector::from_env_or("auto")withadapter::candidatesskips software adapters as the old check did. Since then main has added a third fixture with the same adapter-0 pattern,title_textures::tests::a_placed_texture_gets_the_pages_of_a_level_with_its_texels(from #2306); this PR does not cover it. No problems found in the diff.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by grathepic on 2026-12-02T22:45:36Z.
merge-check
base:
078358a058head:
436e946c30merge: clean (
git diff --check origin/main..HEADclean)build:
cargo +1.98.1-x86_64-pc-windows-msvc build --offline --locked --workspace-> oktests:
cargo +1.98.1-x86_64-pc-windows-msvc test --offline --locked --workspace --no-fail-fast -- --test-threads=4(withXCL_DXC_DIR=C:\VulkanSDK\1.4.363.0\Bin,XCL_SAMPLE_*unset) -> 3006 passed, 0 failed, 52 ignored across 44 harnesses; SKIPPED: 27 notices (22no wave64, 2no heap windows, 1no GPU_UPLOAD heaps, 1no dxil.dll, 1cannot disable the driver cache (Windows Developer Mode required)); failing: none. Both modified fixtures (d32s8_targets_take_their_own_size_of_video_memoryandplaced_title_textures_share_vram_and_preserve_pixels) passed. Targeted--exact --nocapture --test-threads=1matrix:XCL_ADAPTERunset (auto) andXCL_ADAPTER=3080both selectedNVIDIA GeForce RTX 3080and passed with 0 skips;XCL_ADAPTER=warpandXCL_ADAPTER=nomatchboth emitted countedSKIPPED ...: no selected hardware adapternotices and passed.title run: none (Tier 0 test-only diff; no production code outside
#[cfg(test)]changed)review: Full two-commit diff read (
+43/-18,crates/xcl/src/hle/d3d12x/vram.rsandtitle_textures.rs, strictly#[cfg(test)]). Both fixtures now useIDXGIFactory6+adapter::Selector::from_env_or("auto")+adapter::candidates(which skips software adapters and enumerates hardware adapters in high-performance order), log the selected adapter name, and route skip conditions throughrunner::skip_testwhile leaving all VRAM/pixel assertions unchanged. Non-blocking notes: (1) uses.into_iter().next()so on a multi-adapter host where the first matching adapter failsD3D12CreateDevice, it skips rather than trying later candidates; (2) a newer fixture onmain(title_textures::tests::a_placed_texture_gets_the_pages_of_a_level_with_its_texels) still usesEnumAdapters1(0)and can be updated in a follow-up. Untested: multi-GPU switching (single-dGPU host) and AMD/wave64 hardware.performance: none (test-only fixture selection; no runtime frame-time or memory path changed)
verdict: safe to merge (clean merge, full workspace suite passes with 0 failures on NVIDIA RTX 3080, targeted
auto/3080/warp/nomatchadapter matrix behaves as intended, and diff is small and strictly test-only)hardware / tool and model: NVIDIA GeForce RTX 3080 (driver 32.0.16.2140), AMD Ryzen 7 5800X3D, Windows 11 (10.0.26300.0), Rust 1.98.1-x86_64-pc-windows-msvc, DXC 1.9.0.5512 (VulkanSDK, no dxil.dll) / Antigravity, 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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.