Skip to content

Tests: honor the selected adapter for texture uploads - #2879

Draft
andrewDoing wants to merge 1 commit into
xcl-dev:mainfrom
andrewDoing:tests/texture-upload-selected-adapter
Draft

andrewDoing wants to merge 1 commit into
xcl-dev:mainfrom
andrewDoing:tests/texture-upload-selected-adapter

Conversation

@andrewDoing

Copy link
Copy Markdown

Four texture-upload unit tests ignored XCL_ADAPTER, so a run that requested a nonexistent adapter could pass against the default GPU even with strict GPU coverage required. Reuse the existing texture-upload adapter selector and report unavailable adapters through the standard skip mechanism.

What is in it

  • crates/xcl/src/gpu/texture.rs: use the existing selector for four unit-test fixtures and retain CPU-only checks when GPU work is skipped. The diff changes the #[cfg(test)] module only.

Tested

  • NVIDIA RTX 5070, driver 616.92; Ryzen 7 5700X3D; Windows build 26300.10075; Rust 1.100.0 MSVC, debug; SDK DXC/DXIL 1.8.2502.11.
  • The four affected tests passed on the explicitly selected RTX 5070 and separately on WARP; each run identified its adapter.
  • With a nonexistent adapter, the four tests reported four GPU skips in permissive mode and four expected failures with XCL_REQUIRE_GPU=mesh. Before the change the strict control passed on the default GPU.
  • cargo test --workspace --no-fail-fast -- --test-threads=4, writable workspace DXIL cache: 1,441 passed, 5 failed, 47 ignored. A fresh clean-main run at 8b957bec had the same totals. Four failures were RTX 50 DXIL fuzz seeds (DXIL GPU fuzz tests reproducibly fail with E_OUTOFMEMORY on RTX 5060 #1905); the other was the synthetic-title DRED test. Both logged 26 skip events: 21 no wave64, three unsupported per-lane forms, one unavailable driver-cache option, one unavailable heap-windows feature.

Regression run

  • Not run: only unit-test code changes, but the file also contains runtime code. A maintainer can review the diff and apply test-only if appropriate.

Not tested

  • Retail titles, other GPU vendors, a full suite with the separately proposed fixes for the known failures, or performance.

AI use

  • OpenAI Codex with GPT-6.2 Astra identified the adapter mismatch, wrote and tested the change; a second GPT-6.2 Astra agent reviewed it. Codex coordinated and prepared the PR.

@SlopTart

Copy link
Copy Markdown

Linux (Wine) dual-lane run at head 63197e31 - safe, no red-set movement on either lane.

Rig (Ryzen 9 9900X / RX 7900 XT / wine-11.0 Proton): 605/3 = baseline two (gpu_promoted_uav_clear_values, xma2_source_voice) plus sparse::a_tile_decommitted_and_committed_again_keeps_its_video_memory, which we tracked earlier today as a load flake (green 3/3 in solo at two heads; two appearances under suite load across today's five runs).

Boxb (i5-10600K / GTX 1070 550.163.01 / wine-10.0 + vkd3d-proton, xvfb): 605/3, exactly today's baseline three. One note: the old boxb texture-upload red from our #2771 row (gpu_parts_of_a_texture_go_up_and_the_rest_stays) no longer appears at current main at all - it looks already fixed upstream - so this PR's texture-upload adapter change neither fixes nor breaks anything in our lane; our NVIDIA reds are unaffected.

Suite: cargo test --release --locked -p xcl --lib --target x86_64-pc-windows-gnu -- --test-threads=2 --skip gpu::.

AI use: Hermes agent (local Qwen-class) ran the tests and drafted this; I checked it before posting.

rootw0rm pushed a commit to rootw0rm/xcl that referenced this pull request Nov 26, 2026
Rogeriomatador added a commit to Rogeriomatador/NexusVI that referenced this pull request Nov 27, 2026
Import public XCL PR xcl-dev#2879, by @andrewDoing.
Source: xcl-dev#2879
Original head: 63197e3
GPL-2.0-only; original attribution retained. Imported for authorized synthetic test validation; not yet independently tested.

Assisted-by: ChatGPT (GPT-6.2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants