D3D12.X: a console MS at subobject 24 is the stream's MS #630
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!630
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-630"
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?
@Ryongen on GitHub · 2026-11-24 02:41 UTC · original
Ryongen:d3d12x/console-ms-subobject-24→main· +109 −13 · 1 files · 1 commits · openA retail title puts the MS container of its mesh pipelines in subobject 24 and never uses 25. The PC has no type 23, so the console's numbering is one lower (VIEW_INSTANCING 22, MS 24); on the PC 24 is the AS. These are not minimap pipelines: they are the title's vertex shaders built as mesh shaders (
MS_VS_*_Wrapped), about 2,750 of them made while it loads.Today they are refused, and the title stops after 40 of them. Accepting them as an MS alone still gave a black screen:
fallback_streamonly knew 25 as an MS, so the stand-in had no shader stage, the driver refused it, and every pipeline was translated and built inside the create call (0.3–0.5 s each). Loading never finished, and no DirectStorage request came in.Related to #541, which moves the shader for the same pipelines but does not change the stand-in or when they are built.
What is in it
crates/xcl/src/hle/d3d12x/real.rs:console_numbered_ms: a console MS container at 24, in a stream with no 25, is the stream's MS, andtranslated_mesh_streamuses it (the refusal is gone).fallback_streammoves that subobject to 25 with the stand-in MS. Console mesh pipelines are built at their first bind (pso_async::lazy), like graphics pipelines.console_ms_stream_tests: which streams count (24 with no 25 does; 24 with 25, a console PS or a PC blob does not), and the stand-in has its MS at 25 (fails without the change:[0,24,…]).Tested
cargo test --workspace -- --test-threads=4onfdadadd: 686 passed, 0 failed, 41 ignored.gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.Regression run
Not tested
XCL_SAMPLE_RPFe2e tests (not set here), gameplay past the menus.AI use
@MesshM on GitHub · 2026-11-24 03:24 UTC · original
Test run of
fdadaddb9a5a193a292ff113a029472a3485fa0aon AMD RDNA4. I merged it onto currentmain91f9a5elocally (clean merge) and tested that tree.Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 694 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 654 passed, 0 failed, 21 ignoredSKIPPED;a_console_ms_at_24_without_a_pc_ms_is_the_streams_msandthe_stand_in_of_a_console_numbered_stream_has_a_pc_mspass, as doesretail_mesh_pipelines_through_the_hook.Review: Subobject 24 is taken as the MS only when there is no PC MS subobject and its payload is a console MS container, so a real PC AS is unaffected. Overlap with #541 (open, "a console MS in the AS slot is translated as the mesh shader"): both replace the same "MS container in the AS slot → refused" block in the stream path, with different readings (this PR: the console's subobject numbering is one lower; #541: an MS in the AS slot). They will conflict, and the maintainer will want one reading.
Not tested: no retail title or regression run (I have no unpacked game), no
XCL_SAMPLE_*tests, release build; the PR's head on its old base was not run, only its merge ontomain.Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
@HQasper on GitHub · 2026-11-24 14:10 UTC · original
Test report (retail title, 120 s smoke run)
scripts/smoke.ps1 -Game <game folder> -Seconds 120withXCL_FRAME_DUMP=240, one run per build, no input.930e8b4, #630fdadadd, #5416bd8f64, each built as it stands (not rebased).930e8b4fdadadd6bd8f64Both PRs remove the refusal without the black screen: every frame from 260 on shows the same account-picker menu as main.
Also checked on main
47efa2ewith a local patch that only moved the slot-24 MS into the MS slot. All frames were black. The stand-in was refused (no stand-in pipeline (0x80070057) – building this one in the call), and the first of those in-call builds took ~60 s (pipeline from the console MS in two passesat 67 s). The streams were RS, MS at 24, PS, null DS / HS / GS, blend, sample mask, rasterizer, DEPTH_STENCIL1, sample desc, empty input layout, topology, RT formats, DS format. 200 of 200 logged streams had this layout, with no subobject 25.Not tested
two passeslines in either PR run), so nothing past the first menu was reached (no input sent).no stand-inline on any of these runs, so the menus don't reach it.AI use: Claude Code with Claude Opus 5.5 ran the builds and runs and wrote this report.
@srcamarda on GitHub · 2026-11-24 14:43 UTC · original
#630 and #541 side by side on AMD RDNA3 (RX 7800 XT, native wave64): with #541 the title loads its world as on
main; with #630 it stays black after the intro and never starts the world load (3 of 3 runs)Neither PR had a run on RDNA3 yet. Their bases are older than
main(9ce2070/a1672ef), so each was merged ontomain47efa2elocally (clean merges, not pushed): #630 atfdadadd, #541 at6bd8f64.Setup
XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=150 XCL_FRAME_DUMP=60, Enter (= A) at 25 / 35 / 45 s. The runs were interleaved main → #630 → #541, twice; round 1 had cold translation caches for the new pipelines.Tests
cargo test --workspace --no-fail-fast -- --test-threads=4: main + #630: 743 passed, 0 failed, 41 ignored; main + #541: 747 passed, 0 failed, 41 ignored. NoSKIPPEDlines. Each PR's new tests pass.Title runs (150 s each)
no stand-in pipeline (0x80070057)Captured frames, one character per capture (every 60th presented frame;
#lit,.black, measured as the share of samples with R+G+B > 30):On
mainand with #541 the black stretch is the title's own: the world load starts in it, and its art comes back on screen. With #630 the title keeps presenting (~38 presents and ~114 draws per 2 s, as in that stretch onmain), but no DirectStorage request comes after it. A 300 s run of #630 (main +fdadadd) shows the same: streaming until 66 s, then black with 0 requests for the remaining 234 s, no crash, 5487 frames.The 3 stand-in refusals with #630 match what #541 fixed in
303b346(the stand-in keeps the console's depth format 118); I did not check that they are the cause of the stall.Not tested
main47efa2e.+0x23cf683(#534) comes after these 150 s on this machine.Claude Code (Claude Opus 5.5), from runs on the hardware above.
@relativespace2K on GitHub · 2026-11-24 04:04 UTC · original · edited 2026-11-25 04:10 UTC
Tested -
fdadaddonmain3da2abb, retail GTA6 1.0.2.1Tool: OpenCode with DeepSeek V4.1 Flash 1017
main: 40),peak 32,006 MB commit / 15,566 MB local VRAM. 12 DXIL compilations failed with
E_OUTOFMEMORY (0x8007000E)on 1.3-2.6 MB HLSL shaders.(
dxil_fail 0, 161 misses compiled), but the D3D12 device was removed at 225.8 s(
0x887a0006). Local VRAM reached 16,900 MB on a 16,338 MiB card; commit peaked at 40.5 GB.headroom/cap (or a larger card) to run past ~225 s.
Tested - native Windows, AMD RDNA2
fdadaddb9a5a193a292ff113a029472a3485fa0a(based on9ce2070), applied as acherry-pick without committing onto current
mainf4ce27c(clean).Windows 11 IoT Enterprise LTSC 26100; Rust 1.100.0 MSVC; DXC 1.9.2602.17; debug;
no
XCL_SAMPLE_*.cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4:mainf4ce27cmain+ this PRplaced_title_textures_share_vram_and_preserve_pixelsplus the two
PoisonErrorfollow-ons. In the parallel run the first reported its otherknown
cubemap extra_pagesassertion; isolated, base and PR both fail at3D 64x64x64 4 mips: subresource 2 mismatch. Neither is touched by this PR.cargo test -p xcl --lib console_ms_stream_tests: 2 passed, 0 faileda_console_ms_at_24_without_a_pc_ms_is_the_streams_msandthe_stand_in_of_a_console_numbered_stream_has_a_pc_ms.SKIPPEDGPU tests on this adapter.Not tested: the retail title's ~2,750 mesh pipelines (no title here), release build,
NVIDIA / Intel.
AI use: OpenCode with DeepSeek V4.1 Flash 1017 ran the tests and drafted this report.
@IAmTheSween on GitHub · 2026-11-25 04:41 UTC · original
Test report on a desktop RTX 5070 (Blackwell), head
fdadaddb9a5a193a292ff113a029472a3485fa0a, built as it stands (CONFLICTINGwithmain, not rebased).Setup
e95020b2…). Scripted route, identical in all three arms: Enter (= pad A) every 4 s from 20 s to 130 s,XCL_NETWORK=0,XCL_ACTIVITY=1,XCL_FRAME_DUMP=2, 300 s per run. Release build.Result: unlike #541, this keeps the frame rate — but the three stand-in failures are here too
maincbc296ab656bd8f64fdadaddconsole shaders in the PSO without a translationno stand-in pipeline (0x80070057)The three stand-in warnings are one burst at 60.323–60.324 s, on three different worker threads, each followed by in-call translation. That is the same count and shape @badoomtch reported for #541 on an RTX 5080 at 44.49 s, and the same count @srcamarda reported for #630 on RDNA3 at 75 s — so it is not specific to #541's reading or to AMD. It is also directly contrary to the PR description's claim that lazy building fixes the in-call builds: 2 of these pipelines go through
pso_async::lazy, and 3 still fall back to building in the create call. There were 0two passesand 0pipeline from the console MSlines, so this run does not exercise the two-pass path @ivall flags in #541 either.Frame-rate-wise this is fine (96 % of
main's frames, steady 60 presents/2 s), unlike #541's 30 %. The trade here is peak commit at +17 % overmain. The last captured frame is lit and has a different dominant-texel mix thanmain/#541 (0xff2c202069 292 px plus several skin-tone-like colours rather than 516 897 px of one background), so it is not a black-screen run on this card.Tested
cargo build --release -p xcl: clean.cargo test --workspace -- --test-threads=4: 686 passed, 0 failed, 41 ignored (16 binaries). SKIPPED (5 lines):gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware(no wave64), plus the three D3D12.X runtime-skipped cases. No flakes on this branch. The count is below a current-mainrun because the branch base is older.Not tested
DirectStorage 0 requestsin all 300 s of all three arms here (XCL_NETWORK=0), so this route never reaches the post-intro world load that @srcamarda used to distinguish #630 from #541. My end-frame observation is about the screen this route reaches, not about gameplay.two passeslines were seen.AI use
deepseek-v4-pro-uncensored); ran the builds, suite and the runs, wrote the table from the logs and wrote this comment.@IAmTheSween on GitHub · 2026-11-25 04:53 UTC · original
Correction to one line in my report above: I wrote
DirectStorage 0 requestsfor all three arms. That was a bad PowerShell extraction on my side — I was reading the wrong regex group.With a correct extraction over the 149 activity samples in each 300 s log:
maincbc296ab6bd8f64fdadaddSo there is some title streaming in all three runs, contrary to what I said. It still does not look like a completed world load: the last frames in
mainand #541 are the same static screen (517 959/518 400 non-dark, identical dominant texels), and #630's end frame is a different lit screen (518 065/518 400). My "not tested" point should therefore read: this route does not reach a confirmed gameplay state — I cannot tell from these logs whether the world finished loading. The frame/present/refusal/stand-in/removal counts in the table are unaffected.AI use: OpenCode with DeepSeek V4.1 Flash Abliterated (
deepseek-v4-pro-uncensored); re-extracted the numbers from the preserved logs and wrote this correction.@JJAutoCompare on GitHub · 2026-11-25 06:36 UTC · original
Empirical test report (
fdadaddb)Hardware / environment
fdadaddb9a5a193a292ff113a029472a3485fa0a, verified after detached checkout.10.0.26200.0, AMD Ryzen 7 3800X 8-Core Processor.1.100.0 (0ef1bc386 2026-11-09),x86_64-pc-windows-msvc. Unoptimized test profile with debug info and incremental compilation disabled.1.9.2609.5(DXC01b62ad4in the test log). Both focused tests ran outside the Arc harness withXCL_ADAPTER=NONE_CPU_ONLYandRUST_TEST_NOCAPTURE=1.Commands and results
cargo test --workspace --no-runexited 0 and built 15 test executables. This step only compiled the tests.xcl-00e28da3621caf64.exe. Both exited 0 and each logged 1 passed / 0 failed / 0 ignored.^SKIPPEDlines.Observed behavior
Not tested
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr630-focused.log and published.
@DavidM1911 on GitHub · 2026-11-25 12:43 UTC · original
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.