Repository navigation
Tests: select configured adapter in VRAM fixtures - #2337
Draft
luckyteagirl wants to merge 2 commits into
Draft
luckyteagirl wants to merge 2 commits into
luckyteagirl wants to merge 2 commits into
Conversation
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.
|
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. |
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.
Make the two existing shared-video-memory GPU fixtures select the hardware requested by
XCL_ADAPTERand report which adapter ran. Both previously used DXGI adapter 0, so a hybrid machine could report a pass on its integrated GPU while a discrete-GPU run was requested. This matters for the RDNA2 result on #2306 and the D32S8 check discussed on #2270. The diff is entirely inside existing#[cfg(test)]code.What is in it
crates/xcl/src/hle/d3d12x/vram.rs: select a hardware adapter viagpu::adapter, print its name, and count unavailable-device/tier skips in the D32S8 VRAM fixture. RequestIDXGIFactory6throughCreateDXGIFactory2and skip cleanly if factory creation fails.crates/xcl/src/hle/d3d12x/title_textures.rs: do the same forplaced_title_textures_share_vram_and_preserve_pixels. Its existing cubemap/UMA capability exits now use countedskip_testreasons. Pixel, page-count, and alias assertions are unchanged.Tested
30.0.13002.13003) plus integrated Radeon; Rust 1.99.0 MSVC; DXC/DXIL 1.9.2609.5. Debug tests and release build.cargo build --locked --workspace -j 2andcargo build --locked --workspace --release -j 2: passed.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 checked 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 explicit SKIPPED; printedShared-page texture test adapter: AMD Radeon RX 6800M, thenthis adapter makes no reserved cube with mips. The checked-in test's early cubemap gate prevents its 2D assertions on this driver. A separate local test-only control with the gate removed and the cubemap case omitted passed the parent runtime's 2D shared-page checks, including a 1024×1024 RGBA8 11-mip shape; that overlay is not part of this branch.XCL_ADAPTER=NoSuchAdapterName,XCL_REQUIRE_GPU=wave64) for the shared-page test: 0 passed, 1 expected failure withno selected hardware adapter, but XCL_REQUIRE_GPU=wave64. The D32S8 invalid-selector control passed silently on unchanged main and failed as expected on this branch in an earlier run.cargo test --locked --workspace --no-fail-fast -j 2 -- --test-threads=4 --show-output: 1,089 passed, 176 failed, 46 ignored across 23 targets, exit 101, with 10 explicit SKIPPED records. This old RX 6800M driver entered a suspect device state during broad GPU tests; both selected-adapter fixtures then reportedcannot create D3D12 deviceas counted skips. The previous branch revision had the same 1,089/176/46/10 totals. Standalone runs above completed before the broad suite.Regression run
test-onlylabel is needed to waive the PR check's current-head smoke requirement. A 12-second owned-title pair on main06c9f55and the prior branch commit774da77ended without crashes or device removal; the added commit changes only test code. I do not claim that pair as a current-head smoke run. A guarded attempt on this exact head6cb23b9stopped after 7.5 seconds when available system commit fell to 948 MB, beforexcl-smokeproduced a result. No game data was uploaded.Not tested
AI use