Tests: honor the selected adapter in the indirect argument test #2318
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!2318
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2318/head"
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?
@jeroenhaentjens on GitHub · 2026-11-25 14:02 UTC · original
jeroenhaentjens:tests/indirect-gpu-validation→main· +29 −6 · 1 files · 1 commits · merged 2026-11-25 19:23 UTCThe ExecuteIndirect regression from #1791 used
D3D12CreateDevice(None), ignoringXCL_ADAPTERand Agility before compiling acs_6_6shader. On this hybrid laptop, the isolated test onmain06c9f55failed pipeline creation with0x80070057even withXCL_ADAPTER=nvidia. With this change it selects the Quadro RTX 3000 and passes all 40 existing cases.What is in it
bind.rs, existing#[cfg(test)]test only: use the adapter selector and Agility device creation, check DXC/SM 6.6 availability, emit explicit skip reasons, and log the selected adapter. Shader, barriers, expected counts and assertions stay unchanged.test-onlylabel is needed because the test lives in a runtime file. The separate helper proposed in #1428 is not required by this change.Tested
XCL_SAMPLE_*,XCL_DIRECT_DXIL,XCL_HEAP_WINDOWSunset.cargo build --workspace --locked: passed.XCL_ADAPTER=nvidia,cargo test --workspace --locked --no-fail-fast -- --test-threads=4: 1265 passed, 0 failed, 46 ignored, exit 0. 28 explicit SKIPPED records: 21 no native wave64, 3 unsupported f16 forms, 2 missing debug layer, 1 unavailable cache control, 1 disabled heap-window path. Skip records are separate from harness totals.06c9f550 passed, 1 failed at pipeline creation; patched NVIDIA 1 passed, 0 failed, all 40 cases executed. WithXCL_ADAPTER=intel: 1 reported pass, 1 explicit skip (no SM 6.6). With a nonexistent adapter name: 1 reported pass, 1 explicit skip (no match), without silently using another GPU.8898cd3.Not tested
AI use
@jeroenhaentjens on GitHub · 2026-11-25 14:04 UTC · original
The failing PR description job reports only the two missing retail smoke blocks. It classifies
bind.rsas runtime code by its path.For head
8898cd360ce80f90c983c5922d3c170db816905d, the 29 additions / 6 deletions are entirely inside the existing#[cfg(test)]test. Could a maintainer inspect this revision and apply the documentedtest-onlylabel, and separately approve the fork CI run? The local description checker passes with--test-only; the GPU workspace run completed with 1265 passed, 0 failed, 46 ignored and 28 explicit skip records, detailed above.AI use: Codex checked the failure log and wrote this status request; the exact model identifier is unavailable.
@DarkPanda69 on GitHub · 2026-11-25 14:07 UTC · original
AMD run (listed as untested) on a desktop with two GPUs from different vendors, which shows the selection itself: with this PR the test follows
XCL_ADAPTERto either card, and it passes on both.Head
8898cd3applied onmain06c9f55, debug, Windows 11 Pro 26200.cargo test -p xcl --lib -- execute_indirect_reads_the_arguments_written_before_it --test-threads=1 --nocapture:XCL_ADAPTER=radeonXCL_ADAPTER=3060ExecuteIndirect adapter: AMD Radeon RX 9070 XT, okExecuteIndirect adapter: NVIDIA GeForce RTX 3060, okmainXCL_ADAPTERsays)So on this machine
mainpasses too (no Agility/hybrid-laptop failure like on your Quadro), but only this PR makes the AMD run actually happen on the AMD card. Drivers: RX 9070 XT 32.0.32029.2010 (RDNA4, native wave64), RTX 3060 32.0.16.1088; DXC 1.9.2602.17.Not tested: WARP, a missing-DXC host, a hybrid laptop.
AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
@nnonno91 on GitHub · 2026-11-25 14:19 UTC · original
Independent WARP and Radeon check on clean
8898cd360ce80f90c983c5922d3c170db816905d.Tested
cargo test --locked -p xcl --lib hle::d3d12x::bind::tests::execute_indirect_reads_the_arguments_written_before_it -- --exact --nocapture --test-threads=1withXCL_ADAPTER=warpandXCL_ADAPTER=AMD Radeonin separate processes. Each gave 1 passed, 0 failed, 0 ignored and no skips. The test printedWARP (software renderer)andAMD Radeon(TM) Graphicsrespectively. All 40 cases completed on each.Not tested
Missing DXC, the parent, a retail title and the full workspace suite.
AI use
OpenAI Codex (GPT-6.2 Sol) ran the checks and wrote this report.
@luckyteagirl on GitHub · 2026-11-25 14:31 UTC · original
Independent hybrid-laptop RDNA2 check of exact PR head
8898cd360ce80f90c983c5922d3c170db816905d.Environment: Windows 11 build 26200; Ryzen 9 5980HX; discrete AMD Radeon RX 6800M driver
30.0.13002.13003alongside integrated Radeon graphics; Rust 1.99.0 MSVC; DXC/DXIL 1.9.2609.5.XCL_ADAPTER=6800M,XCL_REQUIRE_GPU=wave64,XCL_DIRECT_DXIL=1; isolated debug Cargo target.hle::d3d12x::bind::tests::execute_indirect_reads_the_arguments_written_before_itpassed 1 passed, 0 failed, 0 ignored with no skip. The test loggedExecuteIndirect adapter: AMD Radeon RX 6800M, confirming that this hybrid machine selected its discrete GPU. The fixture's 40 existing indirect-argument cases completed.Limits: Focused test only. I did not run the full workspace suite, retail-title smoke, or an exact parent comparison on this head. This verifies adapter selection and the fixture on this RDNA2 laptop; it does not establish runtime synchronization or performance.
AI use: OpenAI Codex (GPT-6; exact variant unavailable in this session) ran the native Windows test, checked the log and clean exact head, and drafted this report. No game data was used.
@Lum7nt on GitHub · 2026-11-25 14:47 UTC · original
Tested on \
8898cd360c\ (\8898cd3, clean PR head):ustc 1.100.0\ (\x86_64-pc-windows-msvc), DXC \1.8.2502.11\ (Windows SDK \10.0.26100.0), debug profile.
@DavidM1911 on GitHub · 2026-11-25 17:52 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!
@ivall on GitHub · 2026-11-25 19:23 UTC · original
Merging: the test follows
XCL_ADAPTERand skips with a reason instead of failing on the wrong adapter.Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug,
main2898511with 27 test PRs merged locally, this one included: the whole suite 3 times, 1419 passed, 2 failed, 46 ignored each time (fuzz_validate_and_gpu_1and_3, which fail the same way onmain);hle::d3d12xon 16 threads 5 times, no failure.AI use: Claude Code (Claude Opus 5.5) reviewed and tested this and wrote the comment on the maintainer's behalf.