Repository navigation
Tests: honor XCL_ADAPTER in the texture upload state test - #537
a-lebailly wants to merge 1 commit into
Conversation
The texture upload state test created a device on the Windows default adapter even when XCL_ADAPTER selected another device. Use XCL's adapter selection and verify the device's adapter LUID. Run the upload test with an unmatched selector in a subprocess and require a visible skip. The regression fails with the original upload path and passes with the selector wired in. Assisted-by: Codex (GPT-6, exact variant unavailable)
|
Tested exact head Tested
Not tested
AI use
|
|
NVIDIA data point (the "AMD, retail titles, and game-data tests" gap — this host covers the retail-title and Setup: Windows 11 Pro 26300, Ryzen 7 7800X3D, 32 GB, RTX 3080 Ti 12 GB (driver 621.01) + AMD Raphael iGPU, PR head Runs (
Minor observation, not a defect claim: the adapter list in the skip message enumerates the 3080 Ti twice (entries 0 and 2) on this host. Not tested: AMD discrete GPUs, other retail titles. AI use: Gentle Shell (Pi coding agent), model qwen4-max: ran the tests and wrote this report from the logs; a human reviews it before posting. No code changes. |
|
Tested: Clean PR head
Not tested: Full workspace suite, release build, retail titles, or game-data samples. AI use: OpenCode with GPT-6.2 Sol ran the tests and drafted this report. No code changes. |
|
Test run of Tested
Review: The test now builds its device on the adapter Not tested: no retail title or regression run (I have no unpacked game), no Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
The texture upload state test used the default D3D12 adapter even when
XCL_ADAPTERselected another device. The test now uses XCL's adapter selector and verifies the device's adapter LUID. Related to #42.What is in it
crates/xcl/tests/texture_states.rs: pass the selected adapter to D3D12 and test the skip message for an unmatched selector.Tested
.\scripts\test.ps1withXCL_ADAPTER=4060 Tion68460c2: 681 passed, 0 failed, 41 ignored. Two reportedSKIPPEDfor no wave64:gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware.cargo test --offline --locked -p xcl --test texture_states -- --show-output: 2 passed, 0 failed, 0 ignored. The regression failed with the original upload path as expected.Not tested
XCL_SAMPLE_*unset). The diff is limited to an integration test.AI use