Tests: select configured adapter in VRAM fixtures #2327

Open
luckyteagirl wants to merge 2 commits from upstream-pr/2337 into main
luckyteagirl commented 2026-11-25 15:24:50 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-25T15:24:50Z.


Select the hardware adapter requested by XCL_ADAPTER in 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

  • Windows 11 Home build 26200, Ryzen 9 5980HX, AMD Radeon RX 6800M (driver 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. Printed D32S8 VRAM test adapter: AMD Radeon RX 6800M and 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 explicit SKIPPED because this adapter cannot create a reserved cube with mips. Printed Shared-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 atomic fetch_update calls and 1 dead-code field).
  • Initial XCL_ADAPTER=nomatch cargo test --locked --workspace --no-fail-fast -j 1 -- --test-threads=1 --show-output before building the workspace exited 101: 1434 passed, 1 failed, 47 ignored; the only failure was e2e::test_title_runs_and_game_folder_is_untouched, which requires the workspace-built xcl_testtitle.exe and testgame_mw.dll. After the workspace build, the same command passed: 37 target summaries, 1435 passed, 0 failed, 47 ignored. It emitted 137 standalone SKIPPED notices (120 no GPU, 15 no GPU with 32-lane waves, 1 no wave32 GPU, 1 no wave64); the two changed fixtures also reported inline no selected hardware adapter skips under nomatch. These no-GPU skips do not cover the GPU fixture behavior.

Regression run

  • Main (b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7):
    xcl-smoke v1
    commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
    gpu: AMD Radeon RX 6800M
    title: 2ef5fd64
    seconds: 30
    exit: 0x0
    frames shown: 385 (PresentX 385)
    presents per 2 s (last 3): 51 53 51
    device removals: 0
    crashes: 0
    peak commit: 8284 MB
    
  • This PR (436e946c306c0f7c70172ba9910908a2f1d2472e, clean):
    xcl-smoke v1
    commit: 436e946c306c0f7c70172ba9910908a2f1d2472e
    gpu: AMD Radeon RX 6800M
    title: 2ef5fd64
    seconds: 30
    exit: 0x0
    frames shown: 425 (PresentX 425)
    presents per 2 s (last 3): 60 49 52
    device removals: 0
    crashes: 0
    peak commit: 8297 MB
    

Not tested

  • Shared-page cubemap behavior on this RX 6800M driver, other adapters, and a full GPU workspace suite. The current-head smoke checks ordinary title behavior; it does not exercise these isolated GPU fixtures.

AI use

  • OpenAI Codex (GPT-6; exact serving variant unavailable), with a Luna subagent, refreshed the existing test-only commits onto current 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.
<!-- greyfinch-sync:ivall/xcl:issue:5494231468 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2337). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-25T15:24:50Z. --- Select the hardware adapter requested by `XCL_ADAPTER` in 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** - Windows 11 Home build 26200, Ryzen 9 5980HX, AMD Radeon RX 6800M (driver `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. Printed `D32S8 VRAM test adapter: AMD Radeon RX 6800M` and 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 explicit `SKIPPED` because this adapter cannot create a reserved cube with mips. Printed `Shared-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 atomic `fetch_update` calls and 1 dead-code field). - Initial `XCL_ADAPTER=nomatch cargo test --locked --workspace --no-fail-fast -j 1 -- --test-threads=1 --show-output` before building the workspace exited 101: 1434 passed, 1 failed, 47 ignored; the only failure was `e2e::test_title_runs_and_game_folder_is_untouched`, which requires the workspace-built `xcl_testtitle.exe` and `testgame_mw.dll`. After the workspace build, the same command passed: 37 target summaries, 1435 passed, 0 failed, 47 ignored. It emitted 137 standalone `SKIPPED` notices (120 `no GPU`, 15 `no GPU with 32-lane waves`, 1 `no wave32 GPU`, 1 `no wave64`); the two changed fixtures also reported inline `no selected hardware adapter` skips under `nomatch`. These no-GPU skips do not cover the GPU fixture behavior. **Regression run** - Main (`b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`): ``` xcl-smoke v1 commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7 gpu: AMD Radeon RX 6800M title: 2ef5fd64 seconds: 30 exit: 0x0 frames shown: 385 (PresentX 385) presents per 2 s (last 3): 51 53 51 device removals: 0 crashes: 0 peak commit: 8284 MB ``` - This PR (`436e946c306c0f7c70172ba9910908a2f1d2472e`, clean): ``` xcl-smoke v1 commit: 436e946c306c0f7c70172ba9910908a2f1d2472e gpu: AMD Radeon RX 6800M title: 2ef5fd64 seconds: 30 exit: 0x0 frames shown: 425 (PresentX 425) presents per 2 s (last 3): 60 49 52 device removals: 0 crashes: 0 peak commit: 8297 MB ``` **Not tested** - Shared-page cubemap behavior on this RX 6800M driver, other adapters, and a full GPU workspace suite. The current-head smoke checks ordinary title behavior; it does not exercise these isolated GPU fixtures. **AI use** - OpenAI Codex (GPT-6; exact serving variant unavailable), with a Luna subagent, refreshed the existing test-only commits onto current `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 commented 2026-11-25 16:12:19 +00:00 (Migrated from github.com)

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 target x86_64-pc-windows-gnu run 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 plain origin/main on 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).
  • The reworked SVAM fixtures (placed_title_textures_share_vram_and_preserve_pixels and sibling) now run through adapter::Selector under Wine/DXGI: pass with XCL_ADAPTER unset (auto) and with XCL_ADAPTER="AMD Radeon RX 7900 XT". The adapter-name print reports the real card on this lane.

Complements the XCL_ADAPTER fallback/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.

<!-- greyfinch-sync:ivall/xcl:comment:7167357057 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2337#issuecomment-7167357057). Originally posted by [SlopTart](https://github.com/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 target `x86_64-pc-windows-gnu` run 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 plain `origin/main` on 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`). - The reworked SVAM fixtures (`placed_title_textures_share_vram_and_preserve_pixels` and sibling) now run through `adapter::Selector` under Wine/DXGI: pass with `XCL_ADAPTER` unset (auto) and with `XCL_ADAPTER="AMD Radeon RX 7900 XT"`. The adapter-name print reports the real card on this lane. Complements the `XCL_ADAPTER` fallback/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 commented 2026-11-25 19:08:57 +00:00 (Migrated from github.com)

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!

<!-- greyfinch-sync:ivall/xcl:comment:7170540278 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2337#issuecomment-7170540278). Originally posted by [DavidM1911](https://github.com/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!
Decodere commented 2026-11-27 08:09:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T08:09:46Z.


Independent desktop NVIDIA verification of PR #2337 at head 436e946c306c0f7c70172ba9910908a2f1d2472e (2 commits: 65569edb88089bbf2aad59e5ba1bc87856ebacb4 -> 436e946c306c0f7c70172ba9910908a2f1d2472e; exact parent & merge-base: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, pre-#2555 ancestor of main).

Environment

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6C / 12T), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200 (Developer Mode off)
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC, DXC 1.9.2609.5, --release

Targeted adapter-selection tests & build (436e946c)

Command Result
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, 0 skipped; 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, 0 skipped; 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; 1 counted 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; 1 counted 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 xcl Clean build (1m 44s, exit 0, 0 new warnings)

Paired quiet 60 s retail smoke (title: 29640639)

Exact parent & merge-base (b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, cached baseline on the same machine):

xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1518 (PresentX 1518)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14018 MB

PR #2337 (436e946c306c0f7c70172ba9910908a2f1d2472e):

xcl-smoke v1
commit: 436e946c306c0f7c70172ba9910908a2f1d2472e
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1563 (PresentX 1564)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14010 MB

Runtime log observations (xcl.log)

  • 9219 log lines, 0 [ERROR] / device-removal / panic lines (dxil_cache: 460 hits, 0 misses, 0 compilation failures; 228 background pipelines, 0 failures).
  • Final draw/memory telemetry in log: 19474 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample 14010 MB committed by the process; video memory 6115 MB local, 4683 MB non-local.

Limits of coverage

  • This PR updates test fixtures only (crates/xcl/src/hle/d3d12x/vram.rs and title_textures.rs, 0 production-code changes); both hardware VRAM fixtures executed on NVIDIA GeForce RTX 4060 by default (3/3, 0 skipped) and cleanly honored XCL_ADAPTER=warp with counted no selected hardware adapter skips (3/3).
  • Multi-GPU hardware selection (e.g., iGPU + dGPU switching via 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).

<!-- greyfinch-sync:ivall/xcl:comment:7213218990 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2337#issuecomment-7213218990). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T08:09:46Z. --- Independent desktop NVIDIA verification of **PR #2337** at head `436e946c306c0f7c70172ba9910908a2f1d2472e` (`2` commits: `65569edb88089bbf2aad59e5ba1bc87856ebacb4` -> `436e946c306c0f7c70172ba9910908a2f1d2472e`; exact parent & merge-base: `b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`, pre-`#2555` ancestor of `main`). ### Environment - **GPU:** NVIDIA GeForce RTX 4060 (8 GB / `7956 MiB` reported by D3D12), driver `32.0.16.2114` (NVIDIA `621.14`, WDDM 3.2) - **CPU / RAM / OS:** Intel Core i5-11400F (6C / 12T), 32 GB RAM (`31.9 GiB` usable), Windows 11 Home `26200` (Developer Mode off) - **Toolchain:** `rustc 1.100.0 (0ef1bc386 2026-11-09)` MSVC, DXC `1.9.2609.5`, `--release` ### Targeted adapter-selection tests & build (`436e946c`) | Command | Result | | --- | --- | | `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, `0` skipped; 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`, `0` skipped; 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`; `1` counted 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`; `1` counted 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 xcl` | Clean build (`1m 44s`, exit `0`, `0` new warnings) | ### Paired quiet 60 s retail smoke (`title: 29640639`) Exact parent & merge-base (`b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`, cached baseline on the same machine): ``` xcl-smoke v1 commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1518 (PresentX 1518) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14018 MB ``` PR #2337 (`436e946c306c0f7c70172ba9910908a2f1d2472e`): ``` xcl-smoke v1 commit: 436e946c306c0f7c70172ba9910908a2f1d2472e gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1563 (PresentX 1564) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14010 MB ``` ### Runtime log observations (`xcl.log`) - `9219` log lines, `0` `[ERROR]` / device-removal / panic lines (`dxil_cache`: `460` hits, `0` misses, `0` compilation failures; `228` background pipelines, `0` failures). - Final draw/memory telemetry in log: `19474 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped)`; last memory sample `14010 MB committed by the process; video memory 6115 MB local, 4683 MB non-local`. ### Limits of coverage - This PR updates test fixtures only (`crates/xcl/src/hle/d3d12x/vram.rs` and `title_textures.rs`, `0` production-code changes); both hardware VRAM fixtures executed on `NVIDIA GeForce RTX 4060` by default (`3/3`, `0` skipped) and cleanly honored `XCL_ADAPTER=warp` with counted `no selected hardware adapter` skips (`3/3`). - Multi-GPU hardware selection (e.g., iGPU + dGPU switching via `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).*
JJAutoCompare commented 2026-11-27 12:17:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-27T12:17:35Z.


Tested

Clean 436e946c306c0f7c70172ba9910908a2f1d2472e on Windows 11 build 26200.9974, Ryzen 7 3800X, Rust 1.100.0 MSVC, Intel Arc A770 driver 32.0.101.9175. Built with cargo test --offline --locked -j 2 -p xcl --lib --no-run --message-format=json-render-diagnostics. Ran the libtest executable with --nocapture --test-threads=1, using gpu::adapter::tests:: for the selector group and --exact for the two fixture filters:

  • hle::d3d12x::vram::tests::d32s8_targets_take_their_own_size_of_video_memory
  • hle::d3d12x::title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels

Both selected the A770 with XCL_ADAPTER=A770 and skipped before their GPU assertions. The locked, pinned capability.exe probe identified PCI 8086:56a0 and reported ResourceHeapTier=1 and TiledResourcesTier=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.

<!-- greyfinch-sync:ivall/xcl:comment:7218068675 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2337#issuecomment-7218068675). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-27T12:17:35Z. --- **Tested** Clean `436e946c306c0f7c70172ba9910908a2f1d2472e` on Windows 11 build 26200.9974, Ryzen 7 3800X, Rust 1.100.0 MSVC, Intel Arc A770 driver 32.0.101.9175. Built with `cargo test --offline --locked -j 2 -p xcl --lib --no-run --message-format=json-render-diagnostics`. Ran the libtest executable with `--nocapture --test-threads=1`, using `gpu::adapter::tests::` for the selector group and `--exact` for the two fixture filters: - `hle::d3d12x::vram::tests::d32s8_targets_take_their_own_size_of_video_memory` - `hle::d3d12x::title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels` Both selected the A770 with `XCL_ADAPTER=A770` and skipped before their GPU assertions. The locked, pinned `capability.exe` probe identified PCI 8086:56a0 and reported `ResourceHeapTier=1` and `TiledResourcesTier=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.
Foniass commented 2026-12-01 07:51:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:51:32Z.


Triage (#1607) – head 436e946

No 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, and Selector::from_env_or("auto") with adapter::candidates skips 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.

<!-- greyfinch-sync:ivall/xcl:comment:7304570520 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2337#issuecomment-7304570520). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:51:32Z. --- **Triage (#1607)** – head 436e946 No 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, and `Selector::from_env_or("auto")` with `adapter::candidates` skips 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.
grathepic commented 2026-12-02 22:45:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by grathepic on 2026-12-02T22:45:36Z.


merge-check
base: 078358a058
head: 436e946c30
merge: clean (git diff --check origin/main..HEAD clean)
build: cargo +1.98.1-x86_64-pc-windows-msvc build --offline --locked --workspace -> ok
tests: cargo +1.98.1-x86_64-pc-windows-msvc test --offline --locked --workspace --no-fail-fast -- --test-threads=4 (with XCL_DXC_DIR=C:\VulkanSDK\1.4.363.0\Bin, XCL_SAMPLE_* unset) -> 3006 passed, 0 failed, 52 ignored across 44 harnesses; SKIPPED: 27 notices (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps, 1 no dxil.dll, 1 cannot disable the driver cache (Windows Developer Mode required)); failing: none. Both modified fixtures (d32s8_targets_take_their_own_size_of_video_memory and placed_title_textures_share_vram_and_preserve_pixels) passed. Targeted --exact --nocapture --test-threads=1 matrix: XCL_ADAPTER unset (auto) and XCL_ADAPTER=3080 both selected NVIDIA GeForce RTX 3080 and passed with 0 skips; XCL_ADAPTER=warp and XCL_ADAPTER=nomatch both emitted counted SKIPPED ...: no selected hardware adapter notices 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.rs and title_textures.rs, strictly #[cfg(test)]). Both fixtures now use IDXGIFactory6 + 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 through runner::skip_test while 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 fails D3D12CreateDevice, it skips rather than trying later candidates; (2) a newer fixture on main (title_textures::tests::a_placed_texture_gets_the_pages_of_a_level_with_its_texels) still uses EnumAdapters1(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/nomatch adapter 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

<!-- greyfinch-sync:ivall/xcl:comment:7361123071 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2337#issuecomment-7361123071). Originally posted by [grathepic](https://github.com/grathepic) on 2026-12-02T22:45:36Z. --- merge-check base: 078358a058f7ba5d16690dba8dc4e55d2c88ae0a head: 436e946c306c0f7c70172ba9910908a2f1d2472e merge: clean (`git diff --check origin/main..HEAD` clean) build: `cargo +1.98.1-x86_64-pc-windows-msvc build --offline --locked --workspace` -> ok tests: `cargo +1.98.1-x86_64-pc-windows-msvc test --offline --locked --workspace --no-fail-fast -- --test-threads=4` (with `XCL_DXC_DIR=C:\VulkanSDK\1.4.363.0\Bin`, `XCL_SAMPLE_*` unset) -> 3006 passed, 0 failed, 52 ignored across 44 harnesses; SKIPPED: 27 notices (22 `no wave64`, 2 `no heap windows`, 1 `no GPU_UPLOAD heaps`, 1 `no dxil.dll`, 1 `cannot disable the driver cache (Windows Developer Mode required)`); failing: none. Both modified fixtures (`d32s8_targets_take_their_own_size_of_video_memory` and `placed_title_textures_share_vram_and_preserve_pixels`) passed. Targeted `--exact --nocapture --test-threads=1` matrix: `XCL_ADAPTER` unset (`auto`) and `XCL_ADAPTER=3080` both selected `NVIDIA GeForce RTX 3080` and passed with 0 skips; `XCL_ADAPTER=warp` and `XCL_ADAPTER=nomatch` both emitted counted `SKIPPED ...: no selected hardware adapter` notices 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.rs` and `title_textures.rs`, strictly `#[cfg(test)]`). Both fixtures now use `IDXGIFactory6` + `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 through `runner::skip_test` while 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 fails `D3D12CreateDevice`, it skips rather than trying later candidates; (2) a newer fixture on `main` (`title_textures::tests::a_placed_texture_gets_the_pages_of_a_level_with_its_texels`) still uses `EnumAdapters1(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`/`nomatch` adapter 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
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2337:upstream-pr/2337'
git switch 'upstream-pr/2337'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/2337'
git switch 'upstream-pr/2337'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2337'
git switch 'upstream-pr/2337'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2337'
git switch 'main'
git merge --squash 'upstream-pr/2337'
git switch 'main'
git merge --ff-only 'upstream-pr/2337'
git switch 'main'
git merge 'upstream-pr/2337'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2327
No description provided.