Skip to content

Tests: exercise split wave64 in per-instruction GPU helpers - #546

Draft
WebIdentity1 wants to merge 1 commit into
xcl-dev:mainfrom
WebIdentity1:codex/nvidia-wave64-test-coverage
Draft

WebIdentity1 wants to merge 1 commit into
xcl-dev:mainfrom
WebIdentity1:codex/nvidia-wave64-test-coverage

Conversation

@WebIdentity1

@WebIdentity1 WebIdentity1 commented Nov 24, 2026 •

Copy link
Copy Markdown

The 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

Tested

  • Head 720143505d92c4c7b156da63f0372e339e653e01 on current main 1d027e5c76c9a86a7ee2ca1cc677edf0be95d331. Tested Rust tree was c4d37bec1bb4286eb373aea963404a23f13401fa plus this exact test-file patch; the subsequent main commit only added .github/workflows/stale.yml. The test file SHA-256 is a27cd78a260c746545870ce6d0b850fb2e9325a5805bc923a5428ffc74a197ef locally and in the Windows candidate.
  • Windows 10 19045, Ryzen 7 7800X3D, NVIDIA RTX 3090 driver 591.74, AMD Radeon Graphics driver 32.0.21030.2001, Rust 1.98.1 MSVC debug, desktop session 1. Both source trees had 303/303 tracked-file SHA-256 matches before and after the run. cargo build --locked --workspace: exit 0 for each tree.
  • Focused 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 with XCL_DIRECT_DXIL=0 and 1; 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_ADAPTER selected the named adapter; AMD additionally used XCL_REQUIRE_GPU=wave64.
  • Matched cargo test --locked --workspace --no-fail-fast -- --test-threads=4 --show-output on 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 explicit SKIPPED notices each. The candidate adds exactly one test. gpu_clamp_and_omod_per_instruction failed in both. d32s8_targets_take_their_own_size_of_video_memory failed 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

Copy link
Copy Markdown

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

  • RTX 4080, NVIDIA driver 621.01, Core i5-13600K, Windows 11 25H2 build 26200.9974, Rust 1.100.0 MSVC x64, DXC 1.8.2502.11, debug. XCL_ADAPTER=4080, XCL_REQUIRE_GPU=1, synthetic fixtures, all XCL_SAMPLE_* variables unset. Separate Cargo target directories.
  • cargo test -p xcl --lib --locked -j 4 gpu_per_lane_helpers_cover_wave64_and_wave32 -- --show-output passed 1/1 on PR head 526f93cb1f1b6f5fb798514b246b76d5c686a05d, with no focused skip.
  • cargo build --workspace --locked -j 4 passed on both revisions. cargo test --workspace --locked -j 4 -- --test-threads=4 --show-output reported 680 passed, 0 failed, 41 ignored on parent 508a0c74d7c0625d6d2de8d24494e69dc2e1926f and 681 passed, 0 failed, 41 ignored on the exact head.
  • Both workspace pass counts include opt-in game-data tests that returned early and four explicit skips: gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware (native wave64), plus test_title_draws_with_a_root_signature_under_the_debug_layer and uploads_start_from_each_subresources_state (D3D12 debug layer).

Not tested

  • Native wave64, other adapters on this machine, release builds, or retail titles. One workspace run per revision.

AI use

  • OpenAI Codex (GPT-6 family, exact variant unavailable) ran the commands and drafted this report.

@LANgmas

LANgmas commented Nov 24, 2026

Copy link
Copy Markdown

Independent validation — NVIDIA RTX 3050 Laptop (wave32-only)

Tested PR head: 526f93cb1f1b6f5fb798514b246b76d5c686a05d
Tested PR base: 508a0c74d7c0625d6d2de8d24494e69dc2e1926f
The PR was tested at its exact head in an isolated detached worktree.

Hardware / environment

  • NVIDIA RTX 3050 Laptop GPU, 3962 MiB VRAM
  • NVIDIA driver 617.14
  • D3D12 Feature Level 12_2
  • WaveLaneCountMin / WaveLaneCountMax: 32 / 32 (wave32-only)
  • DXC 1.9.2602.17
  • Windows SDK 10.0.26100.0
  • d3d12SDKLayers.dll unavailable
  • All XCL_SAMPLE_* and XCL_REQUIRE_GPU variables unset

Focused regression test — PASS
Command:
cargo test --locked -p xcl --lib gpu::recomp::tests::gpu_per_lane_helpers_cover_wave64_and_wave32 -- --exact --nocapture
Result: 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*17
The assertion passed.

Full workspace validation — PASS
Build:
cargo build --workspace --locked -j 4
Result: exit code 0. One existing upstream fetch_update deprecation warning.
Tests:
cargo test --locked --workspace -j 4 -- --test-threads=4 --show-output
Result: 681 passed, 0 failed, 41 ignored, across 16 test binaries. Exit code 0.

Observed skips and limitations
Five SKIPPED cases 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.dll unavailable.
  • 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: 13
  • gpu_pso_e2e: 6
  • xg_oracle: 6
  • console_shaders: 3
    This approximate count is derived from source gates and observed runtimes, not a per-test exhaustive audit. The 41 ignored tests are separate.

Not tested

  • Native wave64 hardware.
  • Game/sample-data workloads or retail game execution.
  • Gameplay performance or playability on this RTX 3050.
  • Release configuration.
  • The behavior of this PR after rebasing or merging onto the current upstream main.
    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

Copy link
Copy Markdown
Author

Updated to f46390e3485e09531b72a4e922f8a115d1aaf77d on main b7aa9f3. The earlier tested head 526f93c and its local branch are preserved.

The shared-helper change now includes one integration adjustment: the new outer-loop fixture uses on_gpu when translating, because gpu_waves now 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.

Run both console wave sizes through adapter-aware HLSL options while preserving the direct DXIL path added on main. Check every lane and a lane-63 scalar read; retain native and forced-split swizzle cases.

On Windows 10, the RTX 3090 and AMD adapter passed 11 focused HLSL/direct DXIL GPU runs without skips. The matched 20-target workspace pair on c4d37be had 957 passed/2 failed/43 ignored on main and 959 passed/1 failed/43 ignored with this test, with 25 explicit skips on each. The integer CLAMP failure appears on both; a VRAM fixture failed only on main. The source file is unchanged by the subsequent 1d027e5 CI-only fast-forward.
@WebIdentity1
WebIdentity1 force-pushed the codex/nvidia-wave64-test-coverage branch from f46390e to 7201435 Compare November 24, 2026 21:41
wondercrash added a commit to wondercrash/xcl that referenced this pull request Nov 24, 2026
A list's marks went to the event of its first submission. A recording that
ran again then had none: run 13's GPU stood 30 s in "a list without marks",
which was such a list. And a list closed when it was made kept that Close
among the marks of its first real recording, never passed, so the report
put the GPU before it (run 9 and 12: "at xcl-dev#546 Close (not reached)" on
lists whose later marks had passed).

- A list keeps its marks until it is reset (reset_x, a new or released
  list; a recording started after KickoffX or on a spare segment starts
  them anew). An event names the lists that ran before, and each such
  submission is logged with the recording's first ops.
- Before a recording runs again its marks are cleared, where its run
  before has finished, so they show this run.
- CopyMemoryToMemoryX, the fills and CopyBufferRegion add their size to
  the mark of their call.

After a list's Close mark XCL records one thing: the barrier that takes a
predication buffer back to COMMON.

Test: hle::d3d12x::breadcrumbs::tests::breadcrumbs_mark_ops_and_the_queue_events_after_them (GPU), each_list_of_an_event_is_named_with_the_marks_it_passed
Assisted-by: omp (anthropic/claude-mythos-5-2)
@throny throny added off-goal Does not bear on the current goal (world loading); waits until it is reached and removed off-goal Does not bear on the current goal (world loading); waits until it is reached labels Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

off-goal Does not bear on the current goal (world loading); waits until it is reached

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants