Skip to content

GPU tests that cannot run on the adapter say so: SKIPPED lines, a count in scripts/test.ps1, XCL_REQUIRE_GPU (#42) - #51

Merged
ivall merged 1 commit into
xcl-dev:mainfrom
Foniass:t3/make-gpu-test-skips-visible
Nov 22, 2026
Merged

ivall merged 1 commit into
xcl-dev:mainfrom
Foniass:t3/make-gpu-test-skips-visible

Conversation

@Foniass

@Foniass Foniass commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Implements option 3 from #42: GPU tests that cannot run on the adapter still pass, but now say so.

  • runner::skip_test(reason) writes SKIPPED <test>: <reason> straight to stderr (so it shows without --nocapture); reason is no GPU, no DXC, no wave64 or no mesh shaders. Called from gpu_ready / gpu_ready_wave32 / mesh_ready, the wave64-only part of gpu_geometry_wave32_prefix_count_over_a_mask, the DXC gates of two more tests, the device gate of the texture test, and the GPU gates in gpu_pso_e2e and console_shaders.
  • XCL_REQUIRE_GPU=wave64 (or mesh, or wave64,mesh) turns a skip that leaves that coverage out into a failure; no GPU / no DXC fail under either.
  • scripts/test.ps1 prints the test output as before and a count at the end. README's Tests section mentions both.

Run on an RTX 5070 Ti (XCL_ADAPTER=nvidia, wave32), no XCL_SAMPLE_* set. The AMD side wasn't run on this machine.

Before (main):

test result: ok. 338 passed; 0 failed; 14 ignored; 0 measured; 0 filtered out; finished in 10.30s
...
(no other output: 367 passed in total, nothing says 40 GPU tests did not run)

After:

SKIPPED gpu::recomp::tests::gpu_atomic_fcmpswap_x2: no wave64
SKIPPED gpu::recomp::tests::far_jumps_are_direct_branches: no wave64
... (41 lines)
test result: ok. 338 passed; 0 failed; 14 ignored; 0 measured; 0 filtered out; finished in 8.02s
...
GPU tests skipped on this adapter: 41 (no wave64)

41 = the 40 gpu_ready() tests plus the native wave64 run inside gpu_geometry_wave32_prefix_count_over_a_mask (its wave32 part runs). Totals are unchanged (367 passed).

With XCL_REQUIRE_GPU=wave64:

thread 'gpu::recomp::tests::gpu_scalar_relative_moves' panicked at crates\xcl\src\gpu\recomp\runner.rs:377:9:
gpu::recomp::tests::gpu_scalar_relative_moves: no wave64, but XCL_REQUIRE_GPU=wave64
test result: FAILED. 0 passed; 1 failed; ...

XCL_REQUIRE_GPU=mesh on the same test: still passes with the SKIPPED line.

🤖 Generated with Claude Code

…son> on stderr, the count at the end of scripts/test.ps1, XCL_REQUIRE_GPU=wave64|mesh to fail instead (#42)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ivall
ivall merged commit 79769cb into xcl-dev:main Nov 22, 2026
@ivall

ivall commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

Thanks, merged! This is option 3 from #42, as agreed there. Tested with #50 on top of current main, with the MSVC toolchain on Windows and an RX 9070 (wave 32–64, mesh shaders):

  • All tests pass: 342 lib tests and the e2e test title, with no SKIPPED line.
  • XCL_REQUIRE_GPU=wave64,mesh passes too, gpu_pso_e2e included with a retail shaders.rpf (6 / 6), so on this adapter the whole GPU coverage really runs.
  • I checked scripts/test.ps1's loop under Windows PowerShell 5.1, where 2>&1 turns native stderr lines into error records: the SKIPPED lines are counted and the exit code still comes through $LASTEXITCODE.

oni-swr added a commit to oni-swr/xcl that referenced this pull request Nov 26, 2026
A shared stand-in (`standin::shell`) is a Rust object, not a D3D12Core
pipeline. Device xcl-dev#34 MakeResident and xcl-dev#35 Evict keep the PC layout for
console code and had no override, so a stand-in pipeline in the title's
object array reached the driver as `*mut Shell`.

Both are overridden now. Microsoft's MakeResident / Evict support
residency changes on descriptor heaps, heaps, committed resources and
query heaps only; a pipeline state is ID3D12Pageable but not among them,
so the pipeline behind a stand-in is no valid entry either. Each shell
is left out of the array: the driver gets the other objects in order, in
a copy (the title's array is left as it is), and its HRESULT is returned
as it is. A call with stand-ins only returns S_OK without a driver call.
Arrays without a stand-in (empty, null, supported objects) go as they are.
Nothing builds or waits for a lazy pipeline.

The other entry points named in xcl-dev#2455 are not reachable by title code on
main: device xcl-dev#46 SetResidencyPriority and xcl-dev#51 EnqueueMakeResident are
console extensions there (a logged S_OK stub), xcl-dev#44 is the console's
CreatePlacedResourceX (no native pipeline library for StorePipeline),
and xcl-dev#12 CreateCommandList goes to `create_command_list_pc`, which
resolves the initial pipeline.

Fixes xcl-dev#2455

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants