Tests: honor XCL_ADAPTER in the texture upload state test #532
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/537"
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 a-lebailly on 2026-11-24T01:32:40Z.
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
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T01:50:42Z.
Tested exact head
68460c2on a machine with two hardware adapters, with the D3D12 debug layer installed (Graphics Tools), so the test gets past its debug-layer skip and reaches the new LUID check.Tested
NVIDIA GeForce RTX 5070 Ti 16 GB (driver 616.64) + AMD Radeon(TM) Graphics iGPU (driver 32.0.21036.18), Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug.
cargo test -p xcl --test texture_states -- --test-threads=1 --nocapture: 2 passed, 0 failed withXCL_ADAPTERunset,nvidia,radeonandwarp. Each run printedper-subresource states: 0 debug-layer errorsandone state for all: 1 debug-layer errors.Which adapter the device was on, from a temporary local
eprintln!of the selected adapter's description and LUID next to the newassert_eq!(not part of the PR, reverted after):XCL_ADAPTERmain508a0c7(device LUID)0:fdb2)nvidia0:fdb2(RTX 5070 Ti)0:fdb2)radeon0:fdb2(RTX 5070 Ti, selector ignored)0:11276)warp0:11243)So on
mainthe test ignoresXCL_ADAPTER=radeonand runs on the default adapter; with the PR it runs on the selected one..\scripts\test.ps1(noXCL_ADAPTER): 681 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.Not tested
XCL_ADAPTER=radeon(onlytexture_stateswas run on the iGPU).XCL_SAMPLE_*unset).AI use
Imported from ivall/xcl. Originally posted by MonkeyPython on 2026-11-24T02:11:01Z.
NVIDIA data point (the "AMD, retail titles, and game-data tests" gap — this host covers the retail-title and
XCL_SAMPLE_*halves on NVIDIA):XCL_ADAPTERselection works as intended on an RTX 3080 Ti.Setup: Windows 11 Pro 26300, Ryzen 7 7800X3D, 32 GB, RTX 3080 Ti 12 GB (driver 621.01) + AMD Raphael iGPU, PR head
68460c2, release build.Runs (
cargo test -p xcl --release --test texture_states -- --test-threads=4):XCL_SAMPLE_RPF/DLLS/TTPFset (retail GTA VI 1.0.2.1 package), default adapter: 2 passed / 0 failed / 0 ignored, no internal skips.XCL_ADAPTER='3080 Ti': 2 passed / 0 failed / 0 ignored, no internal skips.XCL_ADAPTER='No Such GPU': the upload test skips with the intended message —SKIPPED uploads_start_from_each_subresources_state: XCL_ADAPTER / d3d12_adapter "no such gpu" matches no hardware adapter (have: 0 = NVIDIA GeForce RTX 3080 Ti, 1 = AMD Radeon(TM) Graphics, 2 = NVIDIA GeForce RTX 3080 Ti)— andtexture_upload_test_reports_an_unmatched_adapterpasses.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.
Imported from ivall/xcl. Originally posted by caua-an on 2026-11-24T02:27:09Z.
Tested: Clean PR head
68460c242fa7653f3c23a1f17b28389cd39193b4, debug build, Windows 11 Home build 26200, Core Ultra 9 185H, Rust 1.100.0 MSVC x64, and Graphics Tools installed.cargo test --offline --locked -p xcl --test texture_states -- --test-threads=1 --nocapturepassed with bothXCL_ADAPTER=nvidia(RTX 4070 Laptop, driver 616.92) andXCL_ADAPTER=intel(Intel Arc integrated graphics, driver 32.0.101.8860): 2 passed, 0 failed, 0 ignored on each adapter. The upload test reached and passed the adapter LUID assertion on both. Each run reported zero debug-layer errors with per-subresource states and one expected error when using one state for all subresources. The unmatched-adapter regression also passed.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.
Imported from ivall/xcl. Originally posted by MesshM on 2026-11-24T03:04:11Z.
Test run of
68460c242fa7653f3c23a1f17b28389cd39193b4on AMD RDNA4. I merged it onto currentmaindd2ae9alocally (clean merge) and tested that tree.Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 691 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 650 passed, 0 failed, 21 ignoredSKIPPED;texture_upload_test_reports_an_unmatched_adapteranduploads_start_from_each_subresources_statepass with the default selector (one hardware adapter here).Review: The test now builds its device on the adapter
XCL_ADAPTERselects and checks the device's LUID; the child-process test sets the selector only for the child, so the parent's environment is untouched. I found nothing to change.Not tested: no retail title or regression run (I have no unpacked game), no
XCL_SAMPLE_*tests, release build; the PR's head on its old base was not run, only its merge ontomain.Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T13:43:19Z.
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!
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:43:37Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:40:19Z.
Triage (#1607) – head
68460c2No open or merged PR makes the same change; #3016 does the same for the list_x fixtures in another file. Main's texture_states.rs still creates its device with
create_device(None, ...), so this is not superseded, but main has since changed the same test (stderr skips throughskip_test, title_textures uploads), which is why it conflicts. The child-process test checks the message fromadapter::no_match, which matches what main prints for an unmatched name. No problems found in the diff.Recommendation: keep open (needs a rebase).
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.