Repository navigation
Conversation
…stand-in A title that calls the PC ID3D12Device::CreateCommandList with a stand-in pipeline (standin::Shell) as pInitialState had that pointer forwarded to D3D12Core.dll unchanged: the shell is no driver object. The override now passes pInitialState through pso_async::resolve, as Reset and KickoffX do (the built pipeline, else the driver pipeline the stand-in shares; no wait for a build still running). create_raw_pc_command_list does the same on its direct driver path. Part of xcl-dev#2455. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
rootw0rm
pushed a commit
to rootw0rm/xcl
that referenced
this pull request
Nov 26, 2026
…triaged SKIP, probe past xcl-dev#2864)
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.
Part of #2455 (the PC
CreateCommandListitem; MakeResident/Evict are #2523, StorePipeline is #2853).A title that calls the PC
ID3D12Device::CreateCommandListwith a stand-in pipeline (standin::Shell) aspInitialStatehad that pointer forwarded toD3D12Core.dllunchanged, but the shell is not a driver object. The override now passespInitialStatethroughpso_async::resolve: the built pipeline if there is one, else the driver pipeline the stand-in shares, else the pointer as it is (null, ordinary pipelines).create_raw_pc_command_listdoes the same on its direct-to-driver path.Judgement call:
resolve, notresolve_for_bind. It never waits for a build still running (the caller is the title's thread), the same choice #2548 makes for Reset/KickoffX/the console-device CreateCommandList indevice_x.rs. The list's first bind of the stand-in goes throughbindas before, so lazy / async compile behaviour is unchanged. #2548 does not touchreal.rs, so there is no overlap.What is in it
crates/xcl/src/hle/d3d12x/real.rs:dev_create_command_listbecomes a wrapper that resolvesa4before thecreator!forwarder;create_raw_pc_command_listresolvesinit_psoreal.rscreate_command_list_standin_tests: 4 CPU tests with a fake driver table (pending stand-in gives the shared driver pipeline without waiting; built stand-in gives the built pipeline; null / driver pipeline unchanged; raw path)Tested
XCL_ADAPTER=NONE_CPU_ONLY), no GPU test run. Windows 11, stable MSVC, debug.cargo test -p xcl --lib -j 4 create_command_list_standin: 4 passed, 0 failed, 0 ignoredresolvecalls removed: 1 passed, 3 failed (the driver got the stand-in's address)cargo check --workspace --tests -j 4: finished, no errorsRegression run
scripts/smoke.ps1onmainand on this head needs the RX 7800 XT, which is in use by another job. Draft until bothxcl-smokeblocks are pasted here.Not tested
cargo test --workspaceand any GPU test (SKIPPED / GPU counts unknown)scripts/smoke.ps1or any retail title; AMD and NVIDIAAI use
🤖 Generated with Claude Code