Tests: exercise split wave64 in per-instruction GPU helpers #546
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!546
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-546"
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?
@WebIdentity1 on GitHub · 2026-11-24 01:36 UTC · original
WebIdentity1:codex/nvidia-wave64-test-coverage→main· +37 −10 · 1 files · 1 commits · draftThe shared per-instruction GPU helpers skipped console wave64 on NVIDIA. Run both console wave sizes through adapter-aware HLSL options, checking all lanes and a lane-63 scalar read. Keep the existing direct DXIL route from main. This remains draft because the workspace suite has an existing integer CLAMP failure.
What is in it
crates/xcl/src/gpu/recomp/tests.rsonly: run both wave sizes throughgpu_waves, select split wave64 in the HLSL helper, add an all-lane/last-lane GPU regression, preserve the swizzle fixture's native and forced-split cases, and route the outer-loop fixture throughon_gpu. No runtime change. Related #445 / #202 implementations are not included.Tested
720143505d92c4c7b156da63f0372e339e653e01on current main1d027e5c76c9a86a7ee2ca1cc677edf0be95d331. Tested Rust tree wasc4d37bec1bb4286eb373aea963404a23f13401faplus this exact test-file patch; the subsequent main commit only added.github/workflows/stale.yml. The test file SHA-256 isa27cd78a260c746545870ce6d0b850fb2e9325a5805bc923a5428ffc74a197eflocally and in the Windows candidate.cargo build --locked --workspace: exit 0 for each tree.cargo test --locked -p xcl --lib <filter> -- --test-threads=1 --show-output: 11 passed, 0 failed, 0 ignored, 0 explicit skips. On the 3090, the new per-lane test, swizzle test, and outer-loop test passed withXCL_DIRECT_DXIL=0and1; the outer-loop fixture itself uses HLSL. On AMD, those three passed in HLSL mode and the new per-lane and swizzle tests passed in direct mode.XCL_ADAPTERselected the named adapter; AMD additionally usedXCL_REQUIRE_GPU=wave64.cargo test --locked --workspace --no-fail-fast -- --test-threads=4 --show-outputon the 3090, after refreshing each archive's source timestamps so Cargo recompiled the correct test binary: main 957 passed, 2 failed, 43 ignored, candidate 959 passed, 1 failed, 43 ignored, across 20 targets; 25 explicitSKIPPEDnotices each. The candidate adds exactly one test.gpu_clamp_and_omod_per_instructionfailed in both.d32s8_targets_take_their_own_size_of_video_memoryfailed only on main in this pair; no candidate-only failure. Test command exited 101 on both. Baseline log lacks the new test and candidate log contains it. The initial full-suite attempt reused the candidate test binary for main and was discarded; its logs are retained as invalid.Not tested
Retail/gameplay or smoke, release build, full AMD workspace suite, D3D12 debug-layer fixtures (SDK layer unavailable). Sample-gated early returns are not gameplay coverage. One full pair does not establish reliability of the baseline-only VRAM failure.
AI use
Codex (GPT-6): integrated the test-only patch with current main, checked source and test logs, ran the Windows GPU validation, and updated this description. The owner is the sole Git author and committer.
@CryingLaughing on GitHub · 2026-11-24 01:55 UTC · original
The exact parent and PR head both completed clean four-thread workspace runs on an RTX 4080. The new focused fixture passed with native wave32 and split console wave64, including the lane-63 read. The CLAMP/OMOD and CPU-write tests mentioned in the PR passed in both workspace runs on this setup.
Tested
XCL_ADAPTER=4080,XCL_REQUIRE_GPU=1, synthetic fixtures, allXCL_SAMPLE_*variables unset. Separate Cargo target directories.cargo test -p xcl --lib --locked -j 4 gpu_per_lane_helpers_cover_wave64_and_wave32 -- --show-outputpassed 1/1 on PR head526f93cb1f1b6f5fb798514b246b76d5c686a05d, with no focused skip.cargo build --workspace --locked -j 4passed on both revisions.cargo test --workspace --locked -j 4 -- --test-threads=4 --show-outputreported 680 passed, 0 failed, 41 ignored on parent508a0c74d7c0625d6d2de8d24494e69dc2e1926fand 681 passed, 0 failed, 41 ignored on the exact head.gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware(native wave64), plustest_title_draws_with_a_root_signature_under_the_debug_layeranduploads_start_from_each_subresources_state(D3D12 debug layer).Not tested
AI use
@LANgmas on GitHub · 2026-11-24 10:40 UTC · original
Independent validation — NVIDIA RTX 3050 Laptop (wave32-only)
Tested PR head:
526f93cb1f1b6f5fb798514b246b76d5c686a05dTested PR base:
508a0c74d7c0625d6d2de8d24494e69dc2e1926fThe PR was tested at its exact head in an isolated detached worktree.
Hardware / environment
d3d12SDKLayers.dllunavailableXCL_SAMPLE_*andXCL_REQUIRE_GPUvariables unsetFocused regression test — PASS
Command:
cargo test --locked -p xcl --lib gpu::recomp::tests::gpu_per_lane_helpers_cover_wave64_and_wave32 -- --exact --nocaptureResult: 1 passed, 0 failed, exit code 0 (1.95s).
The test ran on the real RTX 3050 adapter. It did not skip or return early because of missing GPU/DXC support.
The test verified both console wave32 and console wave64 cases. The console wave64 case used the split-wave64 path on this wave32-only adapter.
The lane-63 cross-split read was also verified:
sgpr[2] == 0x1001 + 63*17The assertion passed.
Full workspace validation — PASS
Build:
cargo build --workspace --locked -j 4Result: exit code 0. One existing upstream
fetch_updatedeprecation warning.Tests:
cargo test --locked --workspace -j 4 -- --test-threads=4 --show-outputResult: 681 passed, 0 failed, 41 ignored, across 16 test binaries. Exit code 0.
Observed skips and limitations
Five
SKIPPEDcases were visible with--show-output:gpu_wave32_program_in_wave64_hardware— native wave64 unavailable; full early skip.gpu_geometry_wave32_prefix_count_over_a_mask— wave32 assertions executed; native-wave64 reference portion skipped.placed_title_textures_share_vram_and_preserve_pixels— adapter could not create the required reserved cube with mips.test_title_draws_with_a_root_signature_under_the_debug_layer—d3d12SDKLayers.dllunavailable.uploads_start_from_each_subresources_state— D3D12 debug layer unavailable (0x887A002D).All
XCL_SAMPLE_*variables were unset. Approximately 28 sample-gated tests returned early rather than exercising their full game-data paths:console_dlls_e2e: 13gpu_pso_e2e: 6xg_oracle: 6console_shaders: 3This approximate count is derived from source gates and observed runtimes, not a per-test exhaustive audit. The 41 ignored tests are separate.
Not tested
The PR base was 82 commits behind current main at validation time. This report therefore describes the exact PR head/base tested, not a merge-time validation against current main.
Scope of this evidence
This is an independent GPU correctness and regression-test result for the per-instruction helpers and split-wave64 lane handling. It is not evidence that Xbox retail games are playable or perform well on the RTX 3050 Laptop.
AI use
Devin (SWE-2 Max) assisted with test execution and result reconciliation. The contributor reviewed the results and authorized this report.
@WebIdentity1 on GitHub · 2026-11-24 16:30 UTC · original
Updated to
f46390e3485e09531b72a4e922f8a115d1aaf77don mainb7aa9f3. The earlier tested head526f93cand its local branch are preserved.The shared-helper change now includes one integration adjustment: the new outer-loop fixture uses
on_gpuwhen translating, becausegpu_wavesnow includes split wave64 on NVIDIA. Without that adjustment it requests a native64 PSO and fails on the3090.Matched native full suites: base769/1/41, refreshed head770/1/41, same known CLAMP failure and four explicit skips. Four focused AMD checks also pass without skips; the120-program loop comparison runs on both adapters. Both builds pass; all226 tracked source hashes match the tested Windows tree. Exact commands and limitations are in the updated description. Remains draft.
AI use: Codex (GPT-6) implemented the test-only refresh, ran validation and prepared this update.
@DavidM1911 on GitHub · 2026-11-25 13:30 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
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.