Repository navigation
Tests: select configured adapter in VRAM fixtures - #2337
Open
luckyteagirl wants to merge 2 commits into
Open
luckyteagirl wants to merge 2 commits into
luckyteagirl wants to merge 2 commits into
Conversation
|
Tested: current PR head merged onto current
Complements the 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. |
Contributor
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
Select the same high-performance hardware adapter as the GPU test runner. Report selection and device setup failures as skips instead of silently returning, so a GPU report identifies the device it actually exercised. Assisted-by: OpenAI Codex (GPT-6; exact variant unavailable)
Use the selected hardware adapter in the existing texture fixture and count unavailable-capability skips. Request IDXGIFactory6 through CreateDXGIFactory2 in both VRAM GPU fixtures.
luckyteagirl
force-pushed
the
codex/vram-test-adapter
branch
from
November 26, 2026 04:02
6cb23b9 to
436e946
Compare
luckyteagirl
marked this pull request as ready for review
November 26, 2026 04:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.