Tests: select configured adapter in VRAM fixtures #2337
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!2337
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@luckyteagirl on GitHub · 2026-11-25 15:24 UTC · original
luckyteagirl:codex/vram-test-adapter→main· +43 −18 · 2 files · 2 commits · openSelect 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.@SlopTart on GitHub · 2026-11-25 15:50 UTC · original · edited 2026-11-25 15:51 UTC
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.
@DavidM1911 on GitHub · 2026-11-25 18:10 UTC · original
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!
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.