Tests: honor XCL_ADAPTER in the texture upload state test #537
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!537
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@a-lebailly on GitHub · 2026-11-24 01:32 UTC · original
a-lebailly:codex/texture-test-adapter→main· +47 −1 · 1 files · 1 commits · openThe 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
@futurepro62 on GitHub · 2026-11-24 01:50 UTC · original
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
@MonkeyPython on GitHub · 2026-11-24 02:11 UTC · original
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.
@caua-an on GitHub · 2026-11-24 02:27 UTC · original
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.
@MesshM on GitHub · 2026-11-24 03:04 UTC · original
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.
@DavidM1911 on GitHub · 2026-11-25 13:43 UTC · original
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!
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.