D3D12.X: a console MS in the AS slot gets a mesh stand-in #743
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!743
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/743/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@abilliontokens on GitHub · 2026-11-24 04:24 UTC · original
abilliontokens:stream-standin-ms-in-as→main· +257 −18 · 3 files · 6 commits · closed without mergingStacked on #541 (head
24635db); only the top commit (8273a36) belongs here.With #541, a pipeline stream with a console MS in the AS slot and no MS subobject is translated as a mesh pipeline. Its stand-in did not follow:
fallback_streamstill decided "mesh" from an MS subobject only. So it nulled the AS and kept a plain PS, a stream with no VS and no MS that the driver refuses withE_INVALIDARG(no stand-in pipeline (0x80070057), logged only 3 times).go_backgroundthen fell back to building each of those pipelines in the title's call. That serialised the title's pipeline-creating threads on DXC.What is in it
crates/xcl/src/hle/d3d12x/real.rs:console_msholds the checkmesh_shader_slotsalready made.fallback_streamuses it: a console MS alone in the AS slot becomes an MS subobject with the stand-in MS (and the stand-in mesh PS).the_stand_in_of_a_console_ms_in_the_as_slot_has_a_mesh_shader. It fails without the change (left: [(24, 0), (2, …)]: a null AS and the plain PS) and passes with it.Tested
cargo test --workspace -- --test-threads=4on8273a36: 689 passed, 0 failed, 41 ignored. SKIPPED:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64).XCL_NETWORK=0, the same scripted input (XCL_PRESS_AT),XCL_THREAD_DUMP_AT=20,40,70,110,160:ce41f94a68ad44, same diff asfcfe511before the rebase)dxc::compile(dev_create_pipeline_state→translated_mesh_stream) at the 5 dumpstranslation_errors/failed_pipelinesRegression run
Main
f4ce27c:This PR
8273a36:Not tested
0x80070057); the cause is not known yet, and this PR does not cover them.24635db(a moved MS deferred to the background path) in a run that reaches world loading: only the 90 s regression run was made on this head; the thread-dump table is from3d7604b.mainthese pipelines are refused before a stand-in is made, so the path is not reached.AI use
Claude Code (Claude Opus 5.5) traced the stall from thread dumps, wrote the change and the test, ran the tests and runs above on my machine, and drafted this description.
@crosettiremi on GitHub · 2026-11-24 04:40 UTC · original
Radeon RX 7900 XT / Windows 11 build 26100 / SDK DXC 1.9.2602.17. I tested #541 + #743 (
8273a36) with the stand-in target/depth format fix from the #541 discussion, in a local Series S integration build. Same saved profile, A at 37 s and independent copies of the same starting application caches in both runs.Both runs showed the account picker and loading artwork. Both eventually crashed during world loading at different title instructions. These totals cover different run lengths. This confirms the reported AS-slot refusal disappeared on this adapter. Playable world rendering remains unverified, and this comparison includes the linked depth-format change.
The integration workspace reported 737 passed, 0 failed, 41 ignored. Both the shader slot and PC target-format regressions passed. One counted pass skipped at runtime because xgameruntime.dll was unavailable for the debug-layer draw test.
Codex (GPT-6) ran the tests and drafted this report.
@JoaoPauluu on GitHub · 2026-11-24 04:41 UTC · original
Test report: #743 under Wine (Linux, NVIDIA): GTA VI's refused mesh pipelines are gone on vkd3d-proton
Mesh shaders under Wine go DXC → DXIL → vkd3d-proton's dxil-spirv →
VK_EXT_mesh_shaderon NVIDIA's Vulkan driver. On this PR's head (which includes #541), GTA VI's 40 refused mesh pipelines are no longer refused, nothing fails to build, and the title runs a little faster than onmain.Setup
experimental-11.0-20261112(wine-11.0), vkd3d-proton v3.1 (4522cc1a) + the patch from #257, DXVK from Proton, DXC 1.9.2609,DXVK_CONFIG="dxgi.hideNvidiaGpu = False"x86_64-pc-windows-gnu(mingw-w64-gcc 16.2.0); debug for the tests, release for the runs8273a36(with #541 under it) andmain64b3f35Unit tests (lib test binary under Wine, filter
mesh_slot_tests): 3 passed, 0 failed, in 2 of 2 runs, includingthe_stand_in_of_a_console_ms_in_the_as_slot_has_a_mesh_shader. A first run withoutXCL_DXC_DIRset printedSKIPPED … no DXC; that was my setup, not the test.GTA VI 1.0.2.1 (my own dump; 60 s runs with
scripts/linux/smoke.shfrom #257,XCL_NETWORK=0, alternating base / PR / PR / base, warm DXIL and vkd3d-proton caches from earlier runs)… mesh pipeline with its MS … in the AS slot – refused64b3f358273a36no stand-in pipeline (…)orstand-in mesh shaders: …, so here the stand-ins were built (or weren't needed with warm caches; the log doesn't say which).mainruns logthe pipelines of N shader sets an earlier run used are built ahead of their first useandN pipelines built ahead of their first use, and the PR runs don't. So the two builds may not have started with the same prebuilt pipelines. The PR still shows more frames.(The first pair.
peak commit: 0 MBis XCL reading 0 MB committed under Wine, see #257.)Not tested
AI use: Claude Code (Claude Opus 5.5) built both commits, ran everything above on the machine above and wrote this report. The blocks, counts and log lines are pasted from those runs. The account owner asked for test reports to be posted while they were away and has not reviewed this one.
@mastrr9 on GitHub · 2026-11-24 04:45 UTC · original
Code audit + NVIDIA RTX 5080 test run on
8273a369f37739512d4ee4e05d63325a83590ade:Review
Looks clean — rewriting subobject tag
24(AS) in-place to25(MS) with the dummy mesh shader bytecode whenms_in_asis true cleanly resolves the stand-inE_INVALIDARGrefusal on console MS-in-AS-slot pipelines.Tested
rustc 1.100.0(MSVC), debug build.cargo build --workspace && cargo test --workspace -- --test-threads=4: 689 passed, 0 failed, 41 ignored.mesh_split_accounts_vertex_chunks,mesh_layout_independent_of_group_count,a_console_ms_in_the_as_slot_is_the_mesh_shader,a_moved_ms_defers_in_the_attempt_only,the_stand_in_of_a_console_ms_in_the_as_slot_has_a_mesh_shader: all 5 passed.SKIPPEDGPU tests (2, wave32-only adapter):gpu_geometry_wave32_prefix_count_over_a_mask: no wave64,gpu_wave32_program_in_wave64_hardware: no wave64.Not tested
scripts/smoke.ps1run (test suite only); AMD / Intel GPUs.AI use: code review and test run orchestrated with Antigravity (Gemini 4 Neon) on the hardware listed above.
Pull request closed