Tests: honor the selected adapter for texture uploads #2879
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2879"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-26T20:51:07Z.
Three texture-upload tests on current main opened the system-default D3D12 adapter even when
XCL_ADAPTERrequested another device. They now honor the selector and use the standard GPU skip policy when the requested device is unavailable.What is in it
crates/xcl/src/gpu/texture.rs: select and name the requested adapter in the shared test fixture. Keep the system default forautoand the existing D3D feature level for uploads. The diff is entirely inside#[cfg(test)].81bfbf0d. Main removed an older upload-buffer fixture, so the updated diff covers the three remaining callers.Tested
81531120, ran the three affected tests serially in fresh harness processes withXCL_ADAPTER=5070,warp, andauto: 3 passed and 0 skipped in each. The output identified the RTX 5070 or WARP.autoselected the RTX 5070.XCL_REQUIRE_GPU=meshthe same three tests failed as intended instead of selecting the default GPU.81531120,cargo build --workspace --locked --offlinepassed. The successful rerun ofcargo test --workspace --locked --offline --no-fail-fast -- --test-threads=4reported 2,736 passes, 0 failures, 49 ignored, and 28 explicit GPU skips (22 wave64, three per-lane forms, two heap-window probes, and one driver-cache option). An initial run lacked the synthetic-title build outputs. The first run with those outputs built hit one library-harness access violation, which did not recur on the same head.26) but the shared device had reached28. Seven follow-on failures were poisoned-lock errors. The fix for that assertion is now on main and in this PR's base. Previous CI run · Merged #3278 · Current CI runRegression run
test-onlylabel requires maintainer review. No retail smoke was run on this revision.Not tested
AI use
Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-26T21:40:54Z.
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) plussparse::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.
Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-29T16:05:37Z.
The adapter fix is rebased to
81531120with the same test diff. All three affected tests passed with zero skips on RTX 5070 and WARP on this head. The nonexistent-adapter controls verified explicit skips and strict-mode failures. The previous Windows job hit the title-queue mapping assertion fixed by #3278, which is in the new base. Current Windows CIThe entire diff is in
texture.rs's#[cfg(test)]module. Could a maintainer review the diff and applytest-onlyfor this revision?Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:07:01Z.
Triage (#1607) – head
8153112No open or merged PR changes the device() helper of the gpu/texture.rs tests. #537 (tests/texture_states.rs), #2337 and #3016 apply the same XCL_ADAPTER selection to other test files.
No problems found in the diff. With no device, the two tests that call device() only for their optional GPU part now print a SKIPPED line, which is correct.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.