Repository navigation
Conversation
…river A graphics pipeline whose shaders XCL does not translate was handed to the driver as it came, and the stand-in shaders were used when the driver refused it. Windows drivers refuse a stage that is neither DXIL nor SM5 byte code, but Apple's D3DMetal (macOS, CrossOver) dereferences null parsing a container it does not know and the process dies: the e2e test title's "console shader gets a fallback PSO" check crashed there. Such a stage (`shader::runs_on_pc`, from the existing `classify`) now skips the driver call and takes the fallback with E_INVALIDARG, the result a Windows driver gives. On Windows the outcome is the same pipeline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4ce3355 to
6569928
Compare
|
Independent native Windows validation of base 64b3f35 and PR head 6569928 using Rust 1.100.0 MSVC. XCL’s runtime logs confirmed the RTX 5060 Ti on NVIDIA driver 616.92 as the D3D12 adapter for both runs.
|
|
Regression runs for this PR's head main: this PR: Tested
Not tested
Report written with Claude Code (Claude Opus 5.5) from runs on this machine. |
|
Tested on an Apple Silicon Mac. I compared the head 6569928 with its base 64b3f35, both on Tested
Not tested
AI use
|
|
Test report from a second Mac, head Tested
Not tested
AI use
|
|
@Anon64 @juliptree @us3r40456 @shortside thanks for the runs. The smoke pair is now under Regression run in the description ( AI-assisted (Claude Code, Claude Opus 5.5). |
Empirical test report (6569928)Tested xcl-dev/xcl PR #750 at Hardware / environment
Commands and results
Observed behavior The CPU-only fixture confirmed that Not tested The full GPU workspace suite and game smoke runs were omitted. This run did not create a D3D12 graphics pipeline or verify that the runtime bypassed the driver and created a fallback pipeline. CrossOver and D3DMetal were outside this Windows test run. AI use Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
A graphics pipeline whose shaders XCL does not translate is handed to the driver as it came; the stand-in shaders are used when the driver refuses it. Windows drivers refuse a stage that is neither DXIL nor SM5 byte code, but Apple's D3DMetal (macOS under CrossOver) dereferences null parsing a container it does not know, and the process dies. Part of #258.
What is in it
gpu/shader.rs:runs_on_pc(blob), from the existingclassify: DXIL or DXBC with SM5 byte code; a unit test for it.hle/d3d12x/real.rs:graphics_psoskips the driver call when a stage failsruns_on_pcand goes to the fallback withE_INVALIDARG, the result a Windows driver gives. On Windows the outcome is the same pipeline (the stand-ins), one driver call fewer.Tested
xcl.execross-built with mingw-w64 (GCC 16.2.0), Rust 1.100.0, debug. DXC 1.9.2609.D3D12CreateDevice+CreateGraphicsPipelineState) on the same host getsS_OKfor a vs_5_0 / ps_5_0 pipeline and dies (write to 0 inntdll, after a read at null+0x18 in D3DMetal) for the same pipeline with a 56-byte DXBC container holding only anXBOXpart, which is what the test title'sconsole_container()builds.cargo test -p xcl --lib gpu::shader:::only_pc_shaders_run_on_pcfails before the change (stub) and passes after.readable_answers_from_the_working_set_without_touching_pagesfails on this host, onmain(91f9a5e) as well.cargo test --test e2e(the test title): onmainthe title dies in "shaders captured; console shader gets a fallback PSO" (31 PASS before it). With this commit that check and the retail-format one pass (32 PASS); the title then dies later inrender_triangle, calling past the end of a D3DMetal vtable. That is what @Ahmet-Dedeler'smac-on-main-wiphandles: his branch (db065d8) alone dies at the same fallback PSO check; with this commit on top, the title runs to its end, 47 PASS, 3 FAIL (no GPU timestamp; window not cloaked; XMA2GetStatectx=0).main64b3f35: the unit test and the e2e counts above are the same.64b3f35(on the PR): @juliptree, native Windows, RTX 5060 Ti, MSVC:gpu::shader::4 passed on base, 5 on the PR; both e2e tests pass on each (50/50 title checks, the fallback PSO and the triangle readback included). @us3r40456 (M5 Pro, cargo-xwin MSVC) and @shortside (M5 Pro, clang-cl / xwin): on base the title dies at the console shader, on the head both fallback pipelines are made and it dies later at the D3DMetal vtable crash, as above.hle::d3d12xunit tests stop at the first test that creates a device on this host, onmainand with this commit alike.Regression run
Run by @Anon64 on a retail title, 60 s each,
scripts/smoke.ps1, release, clean tree at each commit (NVIDIA GeForce RTX 3060 12 GB, driver 581.80, Windows 11 25H2), pasted unedited from #750 (comment):main:
this PR:
Not tested
cargo test --workspace) on this head.cargo test --workspaceas a whole on this host (it does not finish under CrossOver, as reported in macOS (Apple Silicon, CrossOver + D3DMetal): the newer retail game reaches its first-run menus at 30 fps #258).AI use
claude-opus-5-5): found the cause, wrote the change, the test and the probe, ran the tests above.