Repository navigation
GPU tests that cannot run on the adapter say so: SKIPPED lines, a count in scripts/test.ps1, XCL_REQUIRE_GPU (#42) - #51
Merged
Conversation
…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]>
Collaborator
|
Thanks, merged! This is option 3 from #42, as agreed there. Tested with #50 on top of current
|
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements option 3 from #42: GPU tests that cannot run on the adapter still pass, but now say so.
runner::skip_test(reason)writesSKIPPED <test>: <reason>straight to stderr (so it shows without--nocapture); reason isno GPU,no DXC,no wave64orno mesh shaders. Called fromgpu_ready/gpu_ready_wave32/mesh_ready, the wave64-only part ofgpu_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 ingpu_pso_e2eandconsole_shaders.XCL_REQUIRE_GPU=wave64(ormesh, orwave64,mesh) turns a skip that leaves that coverage out into a failure; no GPU / no DXC fail under either.scripts/test.ps1prints 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), noXCL_SAMPLE_*set. The AMD side wasn't run on this machine.Before (main):
After:
41 = the 40
gpu_ready()tests plus the native wave64 run insidegpu_geometry_wave32_prefix_count_over_a_mask(its wave32 part runs). Totals are unchanged (367 passed).With
XCL_REQUIRE_GPU=wave64:XCL_REQUIRE_GPU=meshon the same test: still passes with theSKIPPEDline.🤖 Generated with Claude Code