D3D12.X: a console MS in the AS slot is translated as the mesh shader it is #541
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!541
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-541"
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?
@ryosen0 on GitHub · 2026-11-24 01:35 UTC · original
ryosen0:as-slot-ms→main· +316 −18 · 3 files · 7 commits · openA retail title's minimap pipelines carry their console MS container in the AS subobject with no MS subobject.
translated_mesh_streamrefused them before (a black screen every run, which was kept as a workaround), and the stand-in path refused them too, for two separate reasons, both fixed here:fallback_streambuilt a PS-only stand-in. It decided "mesh" by an MS subobject; these streams have none, so the stand-in had a PS but neither a VS nor an MS and the driver refused it (E_INVALIDARG).go_backgroundreturnedNoneand every such pipeline was built in the title's call (NishantParajuli on RTX 5060 Ti, Chrysana on RX 9070 XT: black frames, ~57k pipelines queued; thehollowedone's native fixture: D3D12 message 1022).D16_UNORM_S8_UINT(118); copied as they were, the driver refused the stand-in (E_INVALIDARG, message 685) and those pipelines were also built in the call — the threeno stand-inlines Chrysana saw at 52.56 s were this case (NishantParajuli's follow-up, reproduced natively by thehollowedone onad2118d).That black screen was the translated mesh shaders failing their
ms_6_6output budget — fixed by the DXC vertex-chunk budget in #304. The slot itself was never the problem. With the budget in place the same shaders translate, the driver accepts the pipelines, and the title keeps rendering.Stacked on #304; the branch carries its head merge under the change.
What is in it (
crates/xcl/src/hle/d3d12x/real.rs)mesh_shader_slots(ms_slot, as_slot)— a console MS container alone in the AS slot becomes the MS to translate and is not an AS any more; a real AS (console or PC), an MS already present, or a PC shader in the AS slot are left as they are. The refusal block is removed. Testa_console_ms_in_the_as_slot_is_the_mesh_shadercovers all five cases.dxc::deferunderpso_async::lazy), as a console compute pipeline: the title gets a stand-in at once, the worker / first bind translates. Sparse counter log (first 5 + every 1000th). Testa_moved_ms_defers_in_the_attempt_only.fallback_stream: the stand-in of such a stream retypes the AS subobject to MS with the dummy mesh shader and uses the mesh dummy's PS (console_ms_in_as_slothelper). Testthe_stand_in_of_a_moved_ms_is_a_mesh_pipeline(fails without the change).fallback_stream:RENDER_TARGET_FORMATS/DEPTH_STENCIL_FORMATgo throughdevice_x::pc_target_format, as the real pipeline's do (118 → 45, 115/86 → 28). Testthe_stand_in_of_a_stream_has_the_pcs_target_formats(fails without the change; no DXC or GPU needed).Tested
6bd8f64(rebased ontoa1672ef; same changes as303b346).cargo test --release --workspace --no-fail-fast -- --test-threads=4on6bd8f64: 721 passed, 0 failed, 41 ignored (earlier on303b346, threads=1: 690 passed, 0 failed, 41 ignored) (2 GPU SKIPPED — no wave64 on this adapter). One earlier full run had a single failure inwrites_land_after_the_queue(WARP fence timing); it passed isolated and in the clean full rerun — a flake unrelated to this change.XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=120,XCL_FRAME_DUMP=240, scripted A presses 16–112): clean exit, steady 60 presents / 2 s, no device removal, 0no stand-in pipelinelines. First bright capture frame 980 (= main's 980 in the same schedule; the first-fix-only head had 1100). Frames 1700–2660 (t≈57–89 s) are the black world-load window; the title returns to its artwork screen at frame 2900 — no crash, no watchdog stop within 120 s.a163648: first lit frame 380, steady 600–720 draws); the second fix is verified natively on NVIDIA (thehollowedone, RTX 3080 Ti) and on this machine by stream-level tests; an AMD re-run of303b346is requested in the thread.Regression run
Main
a1672ef(current main at rebase):Head
6bd8f64:Both reach the menus at a steady 60 presents / 2 s; the frame-count difference is within run-to-run variance we see between identical builds.
Not tested
AI use
GPT-6.2 Astra (API model selector) in DSH wrote the changes and the tests, ran the builds, tests and runs above, and drafted this description; the human contributor reviewed the diff and the numbers before posting. The two stand-in fixes follow NishantParajuli's diagnoses and proposed diffs, credited in the commit messages and the thread.
@ghost on GitHub · 2026-11-24 02:06 UTC · original
Wave64 hardware run, since Not tested lists it:
ce41f94merged ontomain9ce2070(clean merge): pass. AMD Radeon RX 9060 XT (RDNA4, native 64-lane waves), driver 32.0.32029.2010; Ryzen 7 5800X3D; Windows 11 Pro 26200; Rust 1.100.0 MSVC; DXC 1.9.2602.17; debug..\scripts\test.ps1: 686 passed, 0 failed, 41 ignored; noSKIPPEDGPU tests, mesh tests included.a_console_ms_in_the_as_slot_is_the_mesh_shaderandmesh_split_accounts_vertex_chunkspass.AI use
@futurepro62 on GitHub · 2026-11-24 02:20 UTC · original
Tested exact head
ce41f94(this PR over #304's8c7413c) on Blackwell.Tested
NVIDIA GeForce RTX 5070 Ti 16 GB (32-lane waves, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug. D3D12 debug layer installed.
.\scripts\test.ps1(--test-threads=4): 682 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware. The new tests passed:hle::d3d12x::real::mesh_slot_tests::a_console_ms_in_the_as_slot_is_the_mesh_shaderand #304'sgpu::recomp::tests::mesh_split_accounts_vertex_chunks.XCL_REQUIRE_GPU=mesh cargo test -p xcl --lib -- --test-threads=4, repeated with a 180 s limit per run, alternating this head andmain508a0c7:main508a0c7Every hang, on both commits, stops at the same four tests ("has been running for over 60 seconds", process idle):
gpu_uma_import_check_at_init,gpu_typed_buffer_loads_and_stores,gpu_valu_16_and_64_bit,gpu_valu_float_and_int. Those are the tests and thereal::init()→sparse::initpath described in #344, so I read it as that deadlock, already onmain, not something this PR adds. I did not take a stack dump to confirm it. 7 and 5 runs are too few to say whether the PR changes how often it happens.I did not see the 8 parallel failures from the description (
gpu_sparse_vram_descriptors_buffers_and_xmem,gpu_wave64_*, poisoned-lock panics): in runs that finished, nothing failed.Not tested
scripts/smoke.ps1(no title on this machine), so nothing about the minimap pipelines themselves.AI use
@ryosen0 on GitHub · 2026-11-24 02:22 UTC · original
On the mesh-output budget: fixed in the new head of #304 (this PR is stacked on it). The emitter now chooses the declaration by the vertex budget alone, independently of the dispatch group count, so a record of 80 vertices / 1 triangle / 22 float4 rows declares the compact
verts[3]and compiles instead ofverts[80](accounted as 96, 33792 B > 32768 B, refused). New testmesh_layout_independent_of_group_countpins exactly that asymmetric case.I'll re-run the retail regression here once #304's new head is in, and report the AS-slot minimap pipelines against the corrected budget — that was the failure mode this PR was refused for, so it deserves a fresh measurement rather than the earlier one.
AI use: GPT-6.2 Astra (API model selector) in DSH; the human contributor reviewed it.
@ryosen0 on GitHub · 2026-11-24 03:07 UTC · original
Reproduced the black frames on NVIDIA with your exact setup — thank you for the frame captures, they caught what the smoke block can't. RTX 3060 Ti 8 GB, Ryzen 7 9800X3D, driver 32.0.16.1742, release,
XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=60 XCL_FRAME_DUMP=120 XCL_PRESS_A_AT=14,17,21, same share-of-bright-pixels measure (R+G+B > 30, every 8th texel):dd2ae9a3d7604bXCL_LAZY_PSO=0So on this card the PR is not black forever — the picture arrives ~5 s later than main's and then renders at the same rate; on your RX 9070 XT it never arrives within 60 s. The eager-build run shows why the window matters: with every AS-slot MS translated synchronously the title's own thread stalls in DXC (15 presents at t=20 s vs 56–60 on the other builds) and the intro never starts in time.
What I think is happening, from the logs:
pso_async's lazy queue — those are stand-ins never bound, normal for this title (main has the same queue for its other pipelines), but the PR adds ~1500 distinct MS containers to it (2930 detection lines in my earlier 120 s run = attempt + build per pipeline).Two things I've done on the branch:
translated as MSlog line moved from the detection (which runs twice per deferred pipeline) to a sparse counter at the build — the 1014/2930-line spam is gone, first 5 + every 1000th.I'd rather not merge this as-is given your captures: the refusal on main is load-bearing for boot time. Next step is to make the AS-slot path cost nothing until first bind, then re-run your 60 s capture protocol on both cards. Will report here.
AI use: GPT-6.2 Astra (API model selector) in DSH ran the captures and wrote this comment; the human contributor reviewed it.
@ryosen0 on GitHub · 2026-11-24 03:33 UTC · original
Fix pushed:
4b1af01— the moved MS is now translated when first bound, not in the creation call.Root cause of the delay your captures caught: the title creates tens of thousands of these pipelines during boot and uses few, and the cached-only attempt translated each one on the title's own thread (translation is the expensive part; the DXIL cache miss was already deferred). On wave64 the split path makes each translation heavier, which is why 60 s was never enough on your card while this RTX 3060 Ti only lost ~5 s.
The attempt now defers a moved MS exactly like a console compute pipeline (
dxc::deferunderpso_async::lazy):go_backgroundhands the title a stand-in immediately and the worker — or the first bind — runs the translation. Thetranslated as MSlog line became a sparse counter at the build (first 5 + every 1000th); the 1014/2930-line spam is gone.On this machine (RTX 3060 Ti,
XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=60 XCL_FRAME_DUMP=120 XCL_PRESS_A_AT=14,17,21): 7 moved-MS translations in 60 s (was ~1500 attempts), first bright frame 1100 in that run — main's was 980, and a second capture run of the pre-fix build also landed at 1100, so that difference is run-to-run variance, not the fix. A 150 s scripted-input run: 4086 frames, steady 60 presents / 2 s, no crash. Full suite on4b1af01: 688 passed, 0 failed, 41 ignored (--test-threads=1).Could you re-run your 60 s capture protocol on
4b1af01? If the frames are still black on the RX 9070 XT I'd want thetranslated as MS (#n)counter and the window title's queued number from that run — with the deferral the queue should look like main's.AI use: GPT-6.2 Astra (API model selector) in DSH wrote the fix and the test, ran the captures and wrote this comment; the human contributor reviewed the diff and the numbers.
@ryosen0 on GitHub · 2026-11-24 03:35 UTC · original
Test report for
4b1af01(this PR over #304'sb884f3c) on NVIDIA, following the deferral fix for the black-frame delay Chrysana measured on RDNA4.Setup: RTX 3060 Ti 8 GB (wave32), Ryzen 7 9800X3D, 32 GB RAM, driver 32.0.16.1742, Windows 11, rustc stable
x86_64-pc-windows-msvc, release builds, retail title 1.0.2.1.Tests:
cargo test --workspace --no-fail-fast -- --test-threads=1at4b1af01: 688 passed, 0 failed, 41 ignored;SKIPPED: the two wave64 GPU tests (no wave64 on this adapter).a_moved_ms_defers_in_the_attempt_only,a_console_ms_in_the_as_slot_is_the_mesh_shader,mesh_layout_independent_of_group_countpass. One earlier full run had a single failure inwrites_land_after_the_queue(WARP fence timing, asserts[7, 9] == [7, 9]— a visibility race in the test itself); it passed 3/3 isolated and in the clean full rerun counted above.Frame captures (
XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=60 XCL_FRAME_DUMP=120 XCL_PRESS_A_AT=14,17,21, share of sampled pixels brighter than R+G+B 30, every 8th texel):dd2ae9a3d7604b(pre-fix)4b1af01The ~5 s first-frame difference vs main is within run-to-run variance on this card (a second pre-fix capture run also landed at 1100); the point of the fix is the calling-thread cost, which is what scales on wave64. A 150 s scripted-input run on
4b1af01(XCL_PRESS_ATA presses through the menus): 4086 frames, steady 60 presents / 2 s to the end, no crash, no device removal.Not tested: wave64 hardware (Chrysana's re-run of the 60 s capture protocol on
4b1af01is the one that matters); the minimap's visual content (unattended runs, no screenshot comparison); runs longer than 150 s.AI use: GPT-6.2 Astra (API model selector) in DSH built the commits, ran the tests and the title runs, measured the frame captures and the logs, and wrote this report; the human contributor reviewed the numbers before posting.
@NishantParajuli on GitHub · 2026-11-24 03:41 UTC · original
Test report for head
4b1af01with frame captures on an RTX 5060 Ti, and the reason the deferral in4b1af01does not take effect yet: the stand-in of these streams is refused by the driver, so every one is still built in the title's call. A small fix for that is below; with it the first screen comes up as onmain.What happens at
4b1af01go_backgroundasksstandin_streamfor a stand-in.fallback_streamdecides "mesh" by the presence of an MS subobject. These streams have none (the MS sits in the AS subobject), so it empties the AS (24 => put(&[])) and keeps the plain dummy PS. The stream then holds a PS and neither an MS nor a VS.D3D12.X: no stand-in pipeline (0x80070057) – building this one in the call(first at 6.69 s; the line is capped at 3).go_backgroundreturnsNoneanddev_create_pipeline_statecallstranslated_mesh_streamagain outside the attempt, on the title's thread.Fix (on top of
4b1af01): in the stand-in of such a stream the AS subobject becomes an MS with the dummy mesh shader, and the PS is the mesh dummy's. A real AS beside an MS is emptied as before. The test fails without the change (left: [(24, 0, 0), (2, …)]).diff (crates/xcl/src/hle/d3d12x/real.rs, +53 / -1 with the test)
Tested
XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=90 XCL_FRAME_DUMP=60, no input, the same saved state, an empty DXIL cache for each run (XCL_DXIL_CACHEto a new folder), one run each. "Bright": mean of R, G, B over every 20th texel of the capture above 30.background_pipelines(built, failed, pending)main91f9a5e91f9a5e+ this PR4b1af01main's and it then draws atmain's rate; the 2 930 more pending entries are the stand-ins of AS-slot pipelines the title made and did not bind.cargo test --workspace --no-fail-fast -- --test-threads=4on91f9a5e+4b1af01+ the fix: 697 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.mesh_slot_tests: 3 passed (yours two andthe_stand_in_of_a_console_ms_in_the_as_slot_is_a_mesh_pipeline).ce41f94+ the same fix (main9ce2070): empty cache, first screen at about 20 s (16 s on thatmain).ce41f94alone showed nothing in an 80 s run with an empty cache nor in the 200 s run after it, and its first screen at 80 s in a third run, with the cache those had filled.Not tested
ce41f94+ the fix, before the new #304 head), the first of them were built on first bind (3pipeline from the console MS in two passeslines) and 1 was refused:the driver rejected the mesh pipeline from the console MS (0x80070057). The run then ended at the stop of #505 (no present for 28 s, then the write at+0x23cf683), so nothing was seen on screen. Not repeated at4b1af01.4b1af01, the debug layer.AI use
Claude Code (Claude Fable 5.2) found the cause, wrote the change and its test, ran the builds, the tests and the runs above and wrote this comment from the logs; the human contributor reviewed it before posting.
@thehollowedone on GitHub · 2026-11-24 03:44 UTC · original · edited 2026-11-24 03:50 UTC
Native stand-in check on the rebased head
On
24635db, I reproduced the earlier stand-in rejection with a synthetic stream on the RTX 3080 Ti. The fixture called XCL’s stockstandin_streamand the native D3D12 driver. With the console MS container in the AS slot and no MS subobject, the call returnedE_INVALIDARG. D3D12 message 1022 reported that the submitted stream specified no VS, CS, or MS. Moving the same synthetic container to the MS slot let the stock stand-in path create the pipeline successfully. The device remained healthy.The scratch test passed 1/1 with both outcomes asserted. Windows 11 build 26300, RTX 3080 Ti / 621.35, Rust 1.99.1 MSVC, debug with Graphics Tools enabled.
cargo test --offline --locked -p xcl --lib scratch_native_moved_mesh_stand_in -- --nocapture --test-threads=1. This checks stand-in creation only. First-bind output, retail captures, and native wave64 remain untested.Codex with GPT-6.2 Sol wrote the scratch fixture, ran the test, and drafted this update.
Earlier integrated workspace result
Tested
I ran the same serial workspace check on
mainatf4ce27cand that revision with4b1af01integrated cleanly. This baseline includes the recent texture-read, sparse-memory, and write-watch merges.Both totals include two tests that returned early for lack of native wave64:
gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware.cargo build --offline --locked --workspace, thencargo test --offline --locked --workspace --no-fail-fast -- --test-threads=1. RTX 3080 Ti / 621.35, Ryzen 7 9800X3D, Windows 11 build 26300, Rust 1.99.1 MSVC, debug.Not tested
Retail frame captures, game-specific moved mesh pipelines, or native wave64.
AI use
Codex with GPT-6.2 Sol ran the tests and drafted this report.
@Chrysana on GitHub · 2026-11-24 02:47 UTC · original · edited 2026-11-24 03:59 UTC
Update for
24635db(RX 9070 XT), with @NishantParajuli's stand-in fix tried on AMD: still black at24635dbon this card; with the fix from their comment applied, the title draws again on RDNA4.Both runs:
24635db(already onmain9ce2070), release, 90 s,XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_FRAME_DUMP=120 XCL_PRESS_A_AT=14,17,21, an empty DXIL cache each (XCL_DXIL_CACHEto a new folder), same saved state.background_pipelines24635db24635db+ the fix (applied cleanly, +53 / −1)main)24635dbalone logsno stand-in pipeline (0x80070057) – building this one in the callat 8.77 s, for the AS-slot MSd7c434f73b4b811c(as in NishantParajuli's report).no stand-in pipelinelines remain at 52.56 s (the line is capped at 3), right beforetranslated as MSfor4b799df70d125a0a,2e9f2ec40925c4eeandaf32492a62fcd9cb. This run pressed A and reached the intro video, which NishantParajuli's no-input runs may not have. Those pipelines were built in the call, but the picture didn't suffer: 60 presents per 2 s around them, and the capture at 55.2 s is lit.mainhas nono stand-inline in any of my runs.in two passesline with the fix (the menus and the video don't bind one).Not tested: why those three streams still get no stand-in; the fix's own test on this machine (I ran the title only); a warm-cache run with the fix.
Test report for
3d7604b(this PR over #304'sb884f3c, already onmain9ce2070) on AMD RDNA4, with frame captures: on this card the title's frames stay black for the whole run, and the window title showed 57163 pipelines queued. #304 alone does not do this. This matches what imnicho reported on an RTX 5080 force41f94, but on AMD and at the new head.Setup: AMD Radeon RX 9070 XT 16 GB (RDNA4, 64-lane waves), driver 32.0.32015.2008, Ryzen 7 9800X3D, 31 GB RAM, Windows 11 25H2 build 26200.9974, rustc 1.100.0
x86_64-pc-windows-msvc, DXC 1.9.2602.17. Retail title 1.0.2.1,XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=60 XCL_PRESS_A_AT=14,17,21, release builds, the same saved state for every run.Tests:
cargo test --workspace --no-fail-fast -- --test-threads=4at3d7604b: 687 passed, 0 failed, 41 ignored.a_console_ms_in_the_as_slot_is_the_mesh_shader,mesh_layout_independent_of_group_countandmesh_split_accounts_vertex_chunkspass.SKIPPED: the two debug-layer tests (the D3D12 debug layer isn't installed here).Frames (
XCL_FRAME_DUMP=120, share of sampled pixels brighter than R+G+B 30):main9ce2070b884f3c(on9ce2070)3d7604b3d7604brun:compiling shaders: 4 running, 52 done, 57163 pipelines queued. On the other builds it reads 0 running.in the AS slot – refusedline (40 onmain). 264 different MS were translated, with 1014translated as MSlines in 60 s, and twopipeline from the console MS in two passeslines.main(no BCPack reads at ~28 s), and peak commit is 12.5–13.2 GB against ~16 GB.ce41f94merged onto9ce2070gave the same: black in every capture, 0 refusals, peak commit 10.6–12.5 GB, 1620–1645 frames.The smoke check doesn't catch this: the run below shows 60 presents per 2 s, no crash and no device removal while every frame is black.
main9ce2070:PR:
Not tested: why the queue grows (whether the same pipelines are queued again and again); the minimap itself (the run never shows a picture); NVIDIA at
3d7604b; runs longer than 60 s.AI use: Claude Code with Claude Opus 5.5 built the commits, ran the tests and the title runs, measured the frame captures and the logs, and wrote this report. I read the window title off the screen.
@imnicho on GitHub · 2026-11-24 02:22 UTC · original · edited 2026-11-24 04:07 UTC
Test report with frame captures, since Not tested lists the visual side:
ce41f94merged ontomain9ce2070(clean merge), release. On this card the title's frames are black with this PR, from its first screen on;main9ce2070alone draws them.Machine: Intel Core i7-7700K (4 cores / 8 threads), 16 GB RAM, NVIDIA GeForce RTX 5080 16 GB (driver 610.47, 32-lane waves), Windows 10 22H2 (19045), DXC 1.9.2602, rustc 1.100.0. The newer retail title of the README,
XCL_NETWORK=0,XCL_FRAME_DUMP=100, one pad press (XCL_PRESS_AT=45:A), one run each.main9ce2070, 75 sreport.json: translated / failed pipelinesmainshows before its first screen (same hash). The first thingmaindraws here is a prompt at ~30 s; with the PR that screen never appears in a capture. The title presents 30 frames a second in both.mainfirst shows something.CopyFromSubresourcefix as well): all 85 captures black in 380 s (to frame 8420). That stack without this PR, onmain508a0c7, drew its frames in every run.Not tested: the PR without #304 under it; which of the translated pipelines blackens the frame; a debug-layer run; AMD; the test suite on this head.
AI use: Claude Code with Claude Fable 5.2 ran the builds and runs and wrote this report; every number is from a run on the machine named. No game files or captures are attached.
Update for
24635db(merged ontomainf4ce27c, clean merge; same machine and switches, 90 s): still black – all 15 captures (frames 20 – 1420) are the same black frame. 1 499 presents,report.json614 translated / 8 failed pipelines, and only 5 "translated as MS" lines now (2 shaders, against 1 060 lines atce41f94), so the deferral is at work but the first screen does not come up within 90 s here. A shader pre-compile was running on the same CPU during this run, so its timing is not comparable with the table above (wheremainshows its first screen by frame 420); the frames themselves are. I have not tried the stand-in fix proposed above.@mastrr9 on GitHub · 2026-11-24 04:10 UTC · original
Code audit + NVIDIA RTX 5080 test run on
24635db4d250ea30631d892c0a94ba35edd9bb65:Review
Looks clean:
mesh_passthrough_forfromsplit == 1tomv <= cap(emit.rs:4673) fixes the DXC output-budget refusal for low-triangle records whose vertex count exceedscap.mesh_shader_slotscleanly promotes a lone console MS in the AS slot while leaving real AS / paired MS+AS / PC shaders untouched, and deferring moved MS builds viapso_async::lazy() && dxc::defer()avoids stalling boot on tens of thousands of unused pipelines.Tested
rustc 1.100.0(MSVC), debug build.cargo build --workspace && cargo test --workspace -- --test-threads=4: 688 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: all passed.SKIPPEDGPU/D3D12 tests:gpu_geometry_wave32_prefix_count_over_a_mask/gpu_wave32_program_in_wave64_hardware(no wave64), plus 2 D3D12 debug-layer tests (no d3d12SDKLayers.dll).Not tested
scripts/smoke.ps1run (test suite only).AI use: code review and test run orchestrated with Antigravity (Gemini 4 Neon) on the hardware listed above.
@NishantParajuli on GitHub · 2026-11-24 04:28 UTC · original
Follow-up to my report above, for @Chrysana's open point ("why those three streams still get no stand-in"): their stand-in keeps a console-only depth format. A second small fix is below; with both, the stand-in refusals of a run into world loading go from over 500 to 4.
What those streams are
I logged the subobjects of every stand-in stream the driver refused (a local diagnostic, not in the diff). With the first fix applied, all of them looked like this:
15(RENDER_TARGET_FORMATS): no render target.16(DEPTH_STENCIL_FORMAT):0x76= 118, the console'sD16_UNORM_S8_UINT. They are the title's depth-only mesh pipelines.translated_mesh_streamgives the real pipeline the PC's formats (pc_target_format: 118 →D24_UNORM_S8_UINT).fallback_streamcopied the title's as they were, so the driver refused the stand-in,go_backgroundreturnedNoneand the pipeline was built in the title's call – the lines you saw at 52.56 s. In an earlier run of mine the same three MS (4b799df70d125a0a,2e9f2ec40925c4ee,af32492a62fcd9cb) stood next to them.no stand-in pipelineline is capped at 3.Fix (on top of the first one): the stand-in's
RENDER_TARGET_FORMATSandDEPTH_STENCIL_FORMATgo throughpc_target_format, as the real pipeline's do. The test needs no DXC or GPU.diff (crates/xcl/src/hle/d3d12x/real.rs, +33 with the test)
Tested
mainf4ce27c+ this PR24635db+ both fixes. Retail title 1.0.2.1,XCL_NETWORK=0 XCL_ACTIVITY=1, 110 s, scripted A presses into world loading, the same saved state (first-run setup done). One run each; another process was using the CPU during both, so I give counts only, no timings.background_pipelines(built, failed, pending)translated_pipelinescargo test --workspace --no-fail-fast -- --test-threads=4: 707 passed, 0 failed, 41 ignored; SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.mesh_slot_tests: 4 passed, with the newthe_stand_in_of_a_stream_has_the_pcs_target_formats. (The tree also carried two local-only helpers of mine that are not part of either diff: a scripted stick and an optional limit on a draw's wait.)The 4 that remain are not a stand-in problem
One render target of format
0x43= 67,R9G9B9E5_SHAREDEXP, which the PC cannot render to. The real pipeline is refused too, right after, once per run here:the driver rejected the mesh pipeline from the console MS (0x80070057). That needs a PC format for the target itself (resource, views and pipeline), so it is a separate change; I have not looked for other pipelines with that format.Not tested
AI use
Claude Code (Claude Fable 5.2) found the cause, wrote the change and its test, ran the builds, the tests and the runs and wrote this comment from the logs; the human contributor reviewed it before posting.
@ryosen0 on GitHub · 2026-11-24 04:32 UTC · original
@NishantParajuli @Chrysana — the stand-in fix is in as
ad2118d, and your diagnosis was exactly right.fallback_streamdecided "mesh" by an MS subobject; these streams have none, so the stand-in was a PS with neither a VS nor an MS and the driver refused it (E_INVALIDARG),go_backgroundfell through and every pipeline was built in the call. The stand-in now retypes the AS subobject to MS with the dummy mesh shader and uses the mesh dummy's PS, as @NishantParajuli's diff proposed — kept minimal infallback_stream(+17 lines with the helper), with the testthe_stand_in_of_a_moved_ms_is_a_mesh_pipeline(fails without the change: the output stream still holds(24, empty AS), (2, plain PS)).Measured on the RTX 3060 Ti (wave32), release
ad2118d:XCL_FRAME_DUMP=120, A presses 14/17/21: 0no stand-in pipelinelines (the refusals that made24635dbbuild everything in the call), steady 60 presents / 2 s, no device removal. First bright capture frame 980 — main's number in the same schedule, where24635dbhad 1100.cargo test --workspace --no-fail-fast -- --test-threads=1: 689 passed, 0 failed, 41 ignored (2 SKIPPED, no wave64 here).9ce2070+ headad2118d) are in the description.@thehollowedone your native fixture result (message 1022, no VS/CS/MS) matches what the new test asserts on the stream level; the driver-level outcome on your RTX 3080 Ti would be a good cross-check.
@Chrysana could you re-run the RX 9070 XT captures on
ad2118d(same empty-cache 90 s setup as your last report)? That is the wave64/split path where24635dbstayed black — the stand-in should now be accepted there too. The threeno stand-inlines you saw at 52.56 s were this same refusal (the log caps at 3), so I expect them gone.AI use: GPT-6.2 Astra (API model selector) in DSH wrote the change and its test, ran the suite and the runs above, and drafted this comment; the human contributor reviewed the diff and the numbers before posting.
@thehollowedone on GitHub · 2026-11-24 04:36 UTC · original
Native RTX 3080 Ti cross-check for the requested retest. I ran the same synthetic stream through XCL’s
standin_streamand the D3D12 driver on24635dbandad2118d.A console mesh shader in the AS slot returned
E_INVALIDARGwith message 1022 on the parent and created a pipeline with zero D3D12 errors on the new head. An explicit MS-slot control passed on both.On the new head, the synthetic depth-only stream also passed with
D24_UNORM_S8_UINT. Changing only its format to console value 118 still returnedE_INVALIDARGwith message 685. This independently reproduces the depth-format follow-up at stand-in creation. The device remained healthy in all cases.Windows 11 build 26300, RTX 3080 Ti / 621.35, Rust 1.99.1 MSVC, DXC 1.8.2502.11, debug with Graphics Tools enabled.
cargo test --offline --locked -p xcl --lib scratch_native_moved_mesh_stand_in -- --nocapture --test-threads=1passed 1/1 on each revision, zero skips. First-bind rendering and retail use were outside this test. AI-assisted. Codex (GPT-6, exact variant unavailable) wrote and ran the fixture and drafted this reply.@NishantParajuli on GitHub · 2026-11-24 04:37 UTC · original
Thanks for folding the first fix into
ad2118d. One thing is still open on that head: the stand-in keeps the console depth format 118, so the title's depth-only mesh pipelines are still built in the call. The diff for it is in my follow-up, and thehollowedone reproduced it onad2118djust above (E_INVALIDARG, message 685). The three lines at 52.56 s were that case, not the first one.@thehollowedone on GitHub · 2026-11-24 04:50 UTC · original
Confirmed the target-format follow-up on
303b346. The same depth-only stream with console format 118 that failed onad2118dnow creates a native D3D12 pipeline on the RTX 3080 Ti. A separate stream with color format 115 also succeeds. All five cases, including the PC-format and explicit-MS controls, returnedS_OKwith zero D3D12 errors. The device stayed healthy.Windows 11 build 26300, RTX 3080 Ti / 621.35, Rust 1.99.1 MSVC, DXC 1.8.2502.11, debug with Graphics Tools.
cargo test --offline --locked -p xcl --lib <filter> -- --nocapture --test-threads=1passed 1/1 each forscratch_native_moved_mesh_stand_inandthe_stand_in_of_a_stream_has_the_pcs_target_formats, zero skips. Synthetic pipeline creation only. AI-assisted. Codex (GPT-6, exact variant unavailable) extended and ran the fixture and drafted this reply.@ryosen0 on GitHub · 2026-11-24 04:50 UTC · original
@NishantParajuli the second fix is in as
303b346— the stand-in'sRENDER_TARGET_FORMATS/DEPTH_STENCIL_FORMATnow go throughpc_target_format, exactly as your follow-up proposed, with the stream-level testthe_stand_in_of_a_stream_has_the_pcs_target_formats(verified it fails without the change: 118 stays 118, 115 stays 115; no DXC/GPU needed).Measured on the RTX 3060 Ti (wave32), release
303b346:cargo test --workspace --no-fail-fast -- --test-threads=1: 690 passed, 0 failed, 41 ignored (2 SKIPPED, no wave64).XCL_FRAME_DUMP=240): 0no stand-in pipelinelines, steady 60 presents / 2 s, no device removal. The world-load window (t≈57–89 s) is still black in the captures, then the title returns to its artwork screen — no crash within 120 s. First bright frame 980, main's number.9ce2070+ head303b346) refreshed in the description; both steady 60/2 s.@thehollowedone your native pair (message 685 before /
S_OKwith the mapping) matches the stream-level assertions — if you have a moment, the same fixture on303b346end-to-end would close the loop on the driver side.@Chrysana
303b346now has both stand-in fixes — an RX 9070 XT re-run of your empty-cache 90 s setup should show the three 52.56 s refusals gone as well; your earliera163648captures already confirmed the first fix on the split path.AI use: GPT-6.2 Astra (API model selector) in DSH wrote the change and its test, ran the suite and the runs above, and drafted this comment; the human contributor reviewed the diff and the numbers before posting.
@thehollowedone on GitHub · 2026-11-24 05:32 UTC · original
One more synthetic driver case for
303b346. I passed the same moved-MS stream through XCL’sstandin_streamtwice with anR8G8B8A8_UINTrender target. WithBlendEnableset, native D3D12 returnedE_INVALIDARGand message 676 (OM_RENDER_TARGET_DOES_NOT_SUPPORT_BLENDING). Changing onlyBlendEnableto false returnedS_OKwith zero validation errors. The device stayed healthy.RTX 3080 Ti / 621.35, Windows 11 build 26300, Rust 1.99.1 MSVC, DXC 1.8.2502.11, release with Graphics Tools.
cargo test --release --offline --locked -p xcl --lib scratch_integer_mesh_standin_blend -- --nocapture --test-threads=1passed 1/1, zero skips. Local build usede50836bwith #541 and #724 applied. The fixture exercises stand-in creation. AI-assisted. Codex (GPT-6, exact variant unavailable) wrote and ran the fixture and drafted this report.@mikebuckets171 on GitHub · 2026-11-24 05:44 UTC · original
Mac cross-check of this PR (M5 Pro, CrossOver 26 / D3DMetal 3.0): the refusals do go away, and the cost is on a cold shader cache.
Follows my mesh result above (#258, 05:13): this host really has D3D12 mesh shaders, so it can test what this PR changes in a running title. Plain
maindoes not run this title under Wine at all — it stops ~1.8 s after opening the package's containers with 0 presents, no PSO work (there is no Mac host path onmain), so amain-based pair here would be 0 frames against 0 frames. The pair below is therefore made on @Ahmet-Dedeler's Mac port (db065d8) with this PR's commits cherry-picked onto it — they applied cleanly, no conflicts. Same CrossOver bottle, same DXC 1.9.2609, same sandbox, 90 s each, exit 0x0. The package stays on a private drive, so the run's title is not named here.Warm cache (each tree's second run on its own data root, 90 s):
db065d8a4d6709So on this host the change does what its title says: the 40
mesh pipeline with its MS … in the AS slot – refusedbecome translations, and the frame count is unchanged within noise (−1.2 %) with a slightly better fps. (The two local cherry-picks have different hashes —656333ffor the cold pair,a4d6709for the warm pair; both are this PR's seven commits on top ofdb065d8.)First run on a fresh data root (cold DXC cache, 90 s) — said here so the cold numbers are not read as a regression:
The head spends that run compiling what the baseline refused, so it presents less in its first 90 s; warm, it is level. The longer run is the fair comparison: the head at 300 s gave 7312 frames, exit 0x0, 0 refusals, 0 watchdog firings, 0 device removals, 0 crashes, steady 60 presents per 2 s, and its presents restarted normally on the same data root.
What this bench cannot tell you: anything about Windows, NVIDIA or AMD (no Windows machine here), and the mesh translations are judged from what XCL logs and from the presented frame counts, not from an image check. If it is useful I can re-run against this PR's head after each push, in this shape.
@ryosen0 on GitHub · 2026-11-24 05:46 UTC · original
@mikebuckets171 Thanks — that's the third platform for this change (Windows/NVIDIA here, @Chrysana's earlier runs, now D3DMetal), and the cold/warm split matches what we saw on Windows: our own pre/post pair had the first bright frame at the same index within run-to-run noise once the cache was warm, while the cold run pays for the translations the baseline refused.
One note for readers of the cold table: the watchdog firing in the cold 90 s leg is the cost of compiling ~40 mesh shaders inside the run window on that host, not a stall in the steady state — your warm pair and the 300 s run (0 watchdog, steady 60 presents / 2 s) are the fair comparison, as you say.
On the Windows side the current head
303b346additionally fixes the stream stand-in's target formats. A re-run against it in the same shape after each push would be genuinely useful — the refusal count going 40 → 0 on a third graphics stack is exactly the kind of cross-check this PR needs.AI use: GPT-6.2 Astra (API model selector) in DSH drafted this reply from the measured runs in this thread; the human contributor reviewed it before posting.
@spiedz on GitHub · 2026-11-24 05:46 UTC · original
NVIDIA RTX 3070 Ti: with this PR the retail title's world load ends in a GPU page fault in a mesh shader (read of GPU VA 0); without it, no fault. Two runs each (runs 19 and 20 differ only by this PR; run 16 is an earlier tree, see below).
Setup: RTX 3070 Ti 8 GB, driver 621.24; Ryzen 7 5800X; 32 GB RAM; Windows 11 26200; release. Build: local merge, not pushed:
mainf4ce27c+ #708 + #242 + #501 + #551 + this PR at303b346, plus local changes that are not in any PR yet. The title runs in Series S mode (device_type = "lockhart"), which needs three of those local changes to get into the world: the second PresentX plane shown,XMemMapPhysicalPagesScatterwith a null page array treated as unmap, and console descriptor handles translated inClearUnorderedAccessViewUint/Floaton regular lists.XCL_NETWORK=0,XCL_PSO_WAIT_MS=50, scripted A presses at 25/35/45/55 s, 300 s runs.mesh pipeline … refused0x887a0006at 167 s0x887a0006at 160 s+0x23cf683(heartbeat) at 170 s, no device removal+0x23cf683(heartbeat) at 189 s, no device removalThe runs without the PR end at the heartbeat after compute-pipeline builds on title threads (run 16: 6 waits, 34.4 s; run 20: 4 waits, 26.6 s), so they don't show the world working either; they only show that the device removal comes with the PR.
Nsight Aftermath GPU crash dump of run 19 (Nsight Graphics 2026.4 monitor, global mode, resource tracking on, shader debug info off):
Error_DMA_PageFault, engine reset0x0000000000000000, engine Graphics, client Graphics Processing Cluster, access Read, "Failed to translate the virtual address"0x59fb81fcf0e9f094, 8.25 KiB of microcode), PC0x4e0, MMU faultThere is no source mapping (no shader debug info for the translated DXIL). With shader debug info enabled in Aftermath, the NVIDIA driver recompiled everything (59 driver builds ≥ 1 s, 527 s in total) and the title hit its heartbeat before the fault, so I couldn't get a mapped dump.
A read of VA 0 from a mesh shader looks like a raw GPU address (root descriptor or memory-window address) that is still 0 when a moved AS-slot MS runs, not an unbound descriptor, which would read zeros. I haven't found which one.
Not tested: Series X mode with this PR, AMD, a run with only
main+ this PR.AI use: Claude Code (Claude Opus 5.5) merged the PRs locally, ran and analysed the runs and the dump, and drafted this. The runs were on my machine.
@ryosen0 on GitHub · 2026-11-24 06:00 UTC · original
@spiedz Important addition: the device removal reproduces on this machine too, intermittently, in Series X mode with none of your local stack — plain
303b346on main-line code, RTX 3060 Ti 8 GB, driver 32.0.16.1742, Windows 11, release.Four 150 s runs, identical scripted presses (25/35/45/55/65/80/95/110/125/140 s),
XCL_NETWORK=0 XCL_ACTIVITY=1:0x887a0006at t≈116.9 sAll four: 128 BCPack refusals (BC1 8 / BC5 100 / BC7 20), 0
AS slot … refused. One caveat stated plainly:XCL_PSO_WAIT_MSdoes not exist in this tree (it's your local knob), so runs 1 and 4 had it set inertly — the removal is not attributable to it; run 1 vs runs 2–4 differ only by chance.So: 1 removal in 4 runs, same HRESULT as yours, same phase (the load after the artwork slides), without Series S mode, #708/#242/#501/#551, or any local changes. That strengthens your reading that the fault comes with this PR's translated mesh path rather than with your local stack — and it's intermittent, which fits a race (a root descriptor / memory-window address still 0 when the moved MS runs) better than a deterministic bad bind.
I don't have Nsight Aftermath installed here, so no GPU dump from this side yet; your VA-0 mesh-warp dump remains the best evidence. Happy to run more repetitions or a targeted press schedule to raise the hit rate for anyone digging into the two-pass record path.
AI use: GPT-6.2 Astra (API model selector) in DSH ran the four runs, extracted the counters, and drafted this comment; the human contributor reviewed the numbers before posting.
@mikebuckets171 on GitHub · 2026-11-24 06:41 UTC · original
A follow-up on the counts I posted here, with a stronger form of the same check: the two runs side by side with their presented pictures measured, which is the part a Windows machine cannot produce for a Mac host. Same bottle, same sandbox, same DXC, 120 s each, each warm on its own data root,
XCL_FRAME_DUMPsaving every 30th presented frame; I compared consecutive dumps (~1 s apart) for how much the picture changed. Only statistics leave this machine — no images, no package name.db065d8ee3c780… in the AS slot – refused)What this says about the PR, and what it does not:
XCL_REMOTE_INPUTcarries buttons only, so movement and camera remain unverified.If it is useful: a held-button run (DOWN/RIGHT/A logged, no picture change) and a longer run with more dumps are both cheap here, and I can run your head against your base this way for any revision you push.
@MrEjecutor on GitHub · 2026-11-24 06:53 UTC · original
Paired A/B on a 16 GB NVIDIA card (RTX 5060 Ti, driver 621.24), Series X profile: no device removal in 3 runs with this PR, 3 without; both cross 8 GB of local video memory at 120–146 s
Following @spiedz's and @ryosen0's removals on 8 GB cards: the same phase on a card with twice the memory, with and without this PR, runs alternated (A1 B1 A2 B2 A3 B3) so time and caches favour neither.
Tested
stable-x86_64-pc-windows-msvc; DXC 1.8.2505.32 (SDK 10.0.28000); releasemaine50836b. B:maine50836b+ this PR (303b346), local merge without conflicts (c8919b5).cargo test --workspace --release --no-fail-fast -- --test-threads=4on B: 710 passed, 0 failed, 41 ignored;SKIPPED(no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardwaredevice_type = "anaconda",XCL_NETWORK=0,XCL_ACTIVITY=1,XCL_PRESS_A_AT=25,35,45,55,65,80,95,110,125,140(ryosen0's schedule), 150 s, same saved state. Every run reached world streaming (first BCPack refusal at 35–51 s).AS slot … refusedno stand-in pipelinelines per run (as @Chrysana saw), none without it.Regression run (A3 and B3; the other four blocks are the same shape, kept locally)
Not tested
AI use
@shortside on GitHub · 2026-11-24 06:55 UTC · original
Ran this on a second Mac: MacBook Pro M5 Pro, macOS 27.2.1, CrossOver 26.3 (Wine 11.0), D3DMetal, DXC 1.9.2609. Cross-built for
x86_64-pc-windows-msvcwith clang-cl / lld-link and an xwin SDK, Rust 1.100.0, debug. Head303b346against its base onmain9ce2070, the same way on both: every lib test whose name matchesmesh|stand_in|fallback|as_slot|pso|nggrun alone in its own process (60 s cap), plustests/gpu_pso_e2e.rs. No game files.9ce2070303b346gpu_pso_e2ea_console_ms_in_the_as_slot_is_the_mesh_shader,a_moved_ms_defers_in_the_attempt_only,the_stand_in_of_a_moved_ms_is_a_mesh_pipeline,the_stand_in_of_a_stream_has_the_pcs_target_formats,mesh_split_accounts_vertex_chunks,mesh_layout_independent_of_group_count.gpu::recomp::tests::gpu_mesh_mode_reads_memory_windows:OpenExistingHeapFromAddress: Not implemented. (0x80004001)(D3DMetal, the gap the Mac port works around).hle::d3d12x::bind::tests::create_list_reset_and_clear_state_track_initial_pso_on_d3d12: crashes into winedbg on both.Not tested: no title run (plain
mainshows no frames on this host; mikebuckets171's in-title numbers for the Mac port + this PR are on #258), no release build, no Windows.@ryosen0 on GitHub · 2026-11-24 06:56 UTC · original
Two additions to the 8 GB picture, from the same 3060 Ti that had the 1-in-4 removal above:
Fault tally now 1/6 — two more 150 s runs of plain
303b346tonight, same press schedule, both clean (4151 and 4140 frames, 60 presents / 2 s to the end). So the removal stays intermittent on 8 GB here, not a guaranteed phase failure.A memory-pressure observation that lines up with @MrEjecutor's 16 GB numbers. In the failing run the last activity samples before the removal showed local video memory climbing 6.4 → 7.3 GB in the final ~6 s (t≈111–117 s), with the draw rate spiking 540 → 700 / 2 s — the same loading phase where their 16 GB card crosses 8 GB at 120–146 s. On an 8 GB card that phase is pressing against the adapter's whole budget, and a paged-out or not-yet-committed sparse tile read by a translated mesh shader would present exactly as @spiedz's Aftermath
Error_DMA_PageFaultat a low address. That is a hypothesis, not a finding — but it suggests the cheapest next experiment on an 8 GB card: cap the title's non-local budget or run the same window withXCL_UMA_MBlowered, and see whether the removal moves or disappears. I can try that on this machine if useful.Also noting for completeness: the clean runs reach the same phase with the same 128 BCPack refusals (BC1 8 / BC5 100 / BC7 20) and the same sparse-pool growth (≈1.75 GB uploaded, 16,222 tiles mapped by t≈148 s), so the removal is not tied to how far the load got.
AI use: GPT-6.2 Astra (API model selector) in DSH ran the two runs, read the logs, and drafted this comment; the human contributor reviewed the numbers before posting.
@ryosen0 on GitHub · 2026-11-24 07:18 UTC · original
Rebased onto current main (
a1672ef, which now includes #866's late-release change) — head is now6bd8f64, same seven commits, no conflicts. Description's Regression run blocks replaced with the fresh pair (main 2411 frames / head 2325, both steady 60 presents / 2 s, 0 removals), and the suite line updated:cargo test --release --workspace --no-fail-fast -- --test-threads=4on6bd8f64→ 721 passed, 0 failed, 41 ignored (2 wave64 SKIPPED as before).For the intermittent-removal thread above: the rebase picks up #866 (resource last-Release now waits for in-flight queue work). That is a plausible interaction with the load-phase fault @spiedz and I saw — a resource freed while XCL's own upload/mapping work still referenced it would look exactly like an intermittent page fault under memory churn. Not claiming it fixes it: the fault was 1-in-6 here, so several clean runs prove little. I'll keep running the 150 s press-walk on this head and report the tally as it grows.
AI use: GPT-6.2 Astra (API model selector) in DSH did the rebase, build, suite and smoke pair, and drafted this comment; the human contributor reviewed before posting.
@ryosen0 on GitHub · 2026-11-24 07:46 UTC · original
Tally update on the intermittent removal: since the rebase onto current main (
a1672ef, which includes #866's late-release hold), 8 consecutive 150 s press-walks of6bd8f64on this 8 GB card, 0 removals (4152/4134/4178/4189/4221/4170/4176/4183 frames — all steady 60 presents / 2 s, all reaching the same load phase with the same 128 BCPack refusals and sparse-pool growth as before).Before the rebase the same schedule on
303b346went 1 removal in 6 runs (the t≈117 s0x887a0006). 8 clean runs vs a 1-in-6 base rate is p≈0.26 by the binomial — suggestive, not conclusive — so I am not claiming a fix. But the hypothesis is now specific: #866 holds a resource's lastReleaseuntil XCL's own queues pass the work in flight, and the fault signature (page fault in a translated mesh shader during upload/mapping churn, low address, intermittent) matches a resource freed while XCL's upload or tile-mapping work still referenced it. If others with 8 GB cards that saw this removal re-run their repro on current main + this PR, the tally would settle it quickly.@spiedz — if you retest your local stack, worth pulling #866 in before concluding anything about this PR: your Series-S local changes touch
ClearUnorderedAccessViewUint/Floatand unmap paths that interact with exactly this.AI use: GPT-6.2 Astra (API model selector) in DSH ran the eight walks and drafted this comment; the human contributor reviewed the numbers before posting.
@badoomtch on GitHub · 2026-11-24 08:03 UTC · original
On an RTX 5080 (Windows, driver 610.88) I still see three stand-in failures with the slot-24 change from
6bd8f64integrated on1ec4c98. At 44.493–44.495 s three different workers each loggedno stand-in pipeline (0x80070057), then logged a mesh shader translated from the AS slot on that same worker. The three shader hashes weree0e8f9e1912dfb24,c76ad7b78c576175andbdc062626d48267d. The warning stops after three occurrences, so three is a lower bound. The logs do not identify which descriptor the driver rejected.The artwork faded (last art capture 1,678; black at 1,682), the report recorded 1,684 presents, and the title hit its watchdog at 120.249 s. This was an integration build with local streaming changes and menu/capture instrumentation. The D3D12 debug interface was unavailable on this machine, so I have no validation message tying those warnings to the later exit.
AI use: OpenAI Codex ran the test, checked the logs and wrote this comment.
@mikebuckets171 on GitHub · 2026-11-24 08:04 UTC · original
Mac bench, on the rebase: the change set is byte-for-byte the one I already ran here.
git patch-id --stablepairs the seven commits of the old head with the seven of6bd8f64identically:4bdc65e5…d3bd51d301adae17781219…b884f3cd42b82024ff96a5…2a2cc6d2915f22252acd11…5dc4e2770f918579f977a4…24635db48c1517cade4ece…ad2118d7654a2ac45b0572…303b3466bd8f64So my two Mac runs posted here (the
xcl-smokepair and the 120 s content pair with the frame statistics)describe the same diff reviewers are now looking at, and did not need re-running for the rebase itself.
How to read those Mac blocks, so nobody mistakes them for a Windows pair: on this host a plain
mainbuilddoes not run this title under Wine at all (0 presents, 0 draws, ~2 s in — #258), so the comparison that means
something here is the Mac port against the same port with these seven commits on top. That is what those
numbers are.
I am re-running that Mac pair today against the rebased head (the port at
db065d8plus301adae…6bd8f64, 120 s each side, fresh data roots,XCL_FRAME_DUMPevery 30th frame), which also testswhether the seven commits still transplant cleanly now that
mainhas #866 and #636 in it. The result goesin a follow-up comment here.
@mikebuckets171 on GitHub · 2026-11-24 08:09 UTC · original
Follow-up: the Mac pair against the rebased head, so the numbers here describe
6bd8f64and not the old head.The seven commits transplant onto the Mac port cleanly (the port at
db065d8plus301adae d42b820 2915f22 70f9185 48c1517 7654a2a 6bd8f64, no conflicts) even thoughmainhas since taken #866 and #636. 120 s eachside, fresh data root per side (cold, not the warm root my earlier pair used), same bottle, DXC and title:
How to read the frame number: on cold roots the delta here is +1.2 %, where my earlier warm-root pair showed
+14 %. The stable signal across both measurements on this host is the refusals — 40 without these commits, 0
with them — and the run staying clean; the frame count moves with how warm the data root is.
@badoomtch (08:03): that message does not appear on this host at all. Both sides of the pair above contain
0 lines matching
no stand-in pipelinein 120 s, while the port without this PR logs 40 lines of theAS-slot refusal this PR removes and the port with it logs 0. So on CrossOver/D3DMetal the stand-in path this
PR reworks never reaches the state your three workers reached at t≈44.5 s on the RTX 5080. That is not evidence
your card is fine — but it does separate the two things: the AS-slot refusal (#541's target, gone here) and
no stand-in pipeline(still reachable on NVIDIA after #541). Worth a line in the PR description saying whichstand-in failure each of the commits is claimed to close, because right now the same word covers both and a
reader on a third card cannot tell whether a remaining failure is in scope.
Host: macOS 27.2 (Apple silicon, M5 Pro), CrossOver 26, D3DMetal, DXC from the upstream runtime, cross
target
x86_64-pc-windows-gnullvm. AI use: GPT-6 Luna, for the runs and this comment; the numbers comefrom those runs.
@ryosen0 on GitHub · 2026-11-24 08:11 UTC · original
@badoomtch Data point that should take the sting out of those three warnings: the identical three, with the same shader hashes, appear in every one of our clean runs on this 8 GB card — including 8 consecutive 150 s runs of
6bd8f64that ended normally at the run cap with 0 removals and steady 60 presents / 2 s throughout. From tonight's logs (XCL_NETWORK=0 XCL_ACTIVITY=1, scripted presses):Same three hashes you list (
e0e8f9e1912dfb24,c76ad7b78c576175,bdc062626d48267d), 3 occurrences in each of 8 logs, and the run continues for another 27 s and exits cleanly every time. The warning counter caps at 3, so "three" is the cap, not a lower bound on trouble.The code path explains it:
fallback_streaminhle/d3d12x/real.rsalready documents that a console-only target format (the title's depth-only mesh pipelines useD16_UNORM_S8_UINT) makes the driver refuse the stand-in withE_INVALIDARG, and the intended fallback is exactly what the log says — the real pipeline is built synchronously in the title's call. The subsequent "translated as MS" lines show that build succeeding. So the three warnings are the documented slow path for those three pipelines, not a failed translation; @Chrysana and @MrEjecutor saw the same 3 per run.That doesn't diagnose your watchdog exit at 120 s — with local streaming changes in the build I'd look there first, since the same three warnings coexist with clean runs here. If it would help, I can run your exact integration recipe minus the local changes to separate the two.
AI use: GPT-6.2 Astra (API model selector) in DSH grepped tonight's run logs, read the fallback path, and drafted this comment; the human contributor reviewed before posting.
@mikebuckets171 on GitHub · 2026-11-24 09:26 UTC · original
What the stand-in streams actually contain, on a host whose driver accepts them. Bench-only probe on
fallback_stream(portdb065d8+ the seven commits of this PR,6bd8f64): it logs the title's own render-target / depth-stencil format words and shader subobjects before the stand-in rewrite, plus a running distribution. One 300 s run, fresh data root, nothing scripted, M5 Pro / CrossOver / D3DMetal: 0no stand-in pipeline, 0 AS-slot refusals, 6translated_pipelines, 60,747 pipelines queued in the background, exit 0x0. The first 2,000 stand-in streams give 8 distinct (RT formats, DS format) signatures:rt[], a depth format only): 201 with console depth word20, 739 with55. So the class @NishantParajuli found — depth-only pipelines with a console-only depth format — is here at ~10 % of the stand-in streams, with the console word20rather than118.20 → 40is the only format word across these 2,000 streams thatpc_target_formatrewrites, and it rewrites it in 245 of them: the15 | 16arm offallback_streamis doing real work on this host's set as well, even though nothing here is refused.118(hisD16_UNORM_S8_UINT) and67(theR9G9B9E5_SHAREDEXPleftover) appear in no stream this host reaches, in any of its runs. Those belong to later content: the runs that pass ~19,000 unique shader containers on this machine end at the title's own watchdog write before world loading (#258). So a Macxcl-smokepair can show these commits break nothing here; it cannot show the refused-stand-in case is gone. D3DMetal accepted all 2,000 stand-ins this run built, so this host also cannot tell you whether a given stand-in shape is valid — only whether XCL's own path changed.[SHADER] as <h16>line printsfnv64of the container bytes (gpu/shader.rs::capture), ande0e8f9e1912dfb24(8428 B),c76ad7b78c576175(7764 B) andbdc062626d48267d(8944 B) each show up as an AS-slot submission within ~10 ms of one another on three different worker threads, at t≈123 s and again at t≈171–174 s — in the bench's longer runs only, and in none of its 120 s runs. A 60–90 s capture protocol never submits these three pipelines at all, which is worth knowing before anyone tries to reproduce or rule them out.The probe is bench-only instrumentation, not offered as a patch; the numbers are from that run and from the bench's earlier runs on the same host. Host: macOS 27.2 (Apple silicon, M5 Pro), CrossOver 26, D3DMetal, DXC 1.9.2609, cross target
x86_64-pc-windows-gnullvm. AI use: GPT-6 Luna, for the probe, the runs, the log statistics and this comment; the counts come from those runs.@raylitebull on GitHub · 2026-11-24 10:39 UTC · original
Code/CI review only (not independently runtime-tested by me): clean merge with both checks green (
Build and test+PR description). Translates console MS in the AS slot as a mesh shader and adds the #304 vertex chunk budget, directly unblocking refused minimap/world mesh pipelines. Recommend merging, @ivall.@jmal423 on GitHub · 2026-11-24 11:15 UTC · original
Depth-only stand-in, synthetic D3D12 creation check on head
6bd8f64plus a scratch test. Native Windows 11; this machine reports one display adapter (RX 9070 XT, driver 32.0.32029.2010). Default D3D12 hardware device, DXC/DXIL 1.8.2502.11.I used the existing synthetic console MS in the AS slot, a PS slot, an empty native root signature, zero color targets, and DSV format 118. After
fallback_stream, the real device accepted the stream viaID3D12Device2::CreatePipelineState. Changing only the output DSV word from 45 back to 118 made the same call returnE_INVALIDARG (0x80070057).This isolates one cause of PSO creation failure in a minimal stream and confirms acceptance with the conversion on this setup. It does not identify the cause of the three RTX 5080 worker failures. No draw, retail stream, or title run. OpenAI Codex wrote and ran the local probe.
Reproduce on another D3D12 device (scratch test for
6bd8f64)Save the diff as probe.patch, run git apply probe.patch, then run cargo test --locked -p xcl --lib depth_only_standin_device_probe -- --nocapture. Uses the default hardware adapter. Applying this patch to the original file and rerunning gave 1 pass on the AMD machine.
@tibzejoker on GitHub · 2026-11-24 12:03 UTC · original
Tested on an RTX 4090 with the same retail title (release build, 180 s runs, warm DXIL cache on both).
Result: the 40
mesh pipeline with its MS … in the AS slot – refusederrors are gone.translation_errorsdrops from 40 to 0, with 228 translated pipelines, 0 failed and 0 fallback. Frame rate, stability and memory are unchanged.main (
47efa2e):this PR (
6bd8f64):Not covered: no input was given, so both runs sat on the profile-selection prompt. On both, about 60k pipelines stay queued with 0 compiling.
The full suite on this GPU, run on
main: 741 passed, 0 failed, 41 ignored, 2 GPU tests skipped (no wave64).AI-assisted (Claude Code) run and write-up. No game data attached.
@thehollowedone on GitHub · 2026-11-24 12:12 UTC · original · edited 2026-11-24 12:20 UTC
Follow-up on 6bd8f64, Windows 11, RTX 3080 Ti (621.35), DXC 1.8.2502.11, Graphics Tools enabled. Offline workspace build and all four stock mesh-slot tests passed.
I dispatched the stand-in from a synthetic stream with a console MS in the AS slot and target format 115, using the resulting RGBA8 pipeline. GPU readback matched the clear in all 64 pixels. A native mesh shader with a full-screen triangle, substituted into the same stream as a control, changed all 64 pixels to the expected color. Both submissions completed with zero D3D12 messages in the measured interval and no device removal.
Translated pipeline follow-up. On the same revision and adapter, the production translation path accepted a synthetic console MS in the AS slot and registered real compute and mesh pipelines. It used one mesh group per record with no TEXCOORD inputs and seven with 21 TEXCOORD inputs. Both creations left the D3D12 info queue empty. This follow-up checks pipeline creation with a zero-output shader.
Translated draw. I also ran the production translator’s DXIL through XCL’s GPU test runner with a synthetic two-triangle shader. One and seven mesh groups per record produced identical geometry records and all 1,024 pixels matched. Both draws left the D3D12 info queue empty. This uses the test runner’s draw path, separate from the title-command integration tracked in #724.
AI-assisted. Codex (GPT-6) added and ran the scratch fixture.
@HQasper on GitHub · 2026-11-24 14:09 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.
@Royalflamejlh on GitHub · 2026-11-24 14:54 UTC · original
Linux (Wine + vkd3d-proton) + NVIDIA test of
6bd8f64merged ontomain1ec4c98(no conflicts), 2 runs of 75 s each way:mainrefused 40 mesh pipelines in both runs, the merge refused none and the driver took every stand-in. None of the moved pipelines was bound in 75 s, so their translation did not run here.Setup: Fedora 44 (kernel 7.2.9), Wine 11.21 Staging (Wayland driver), vkd3d-proton v3.1-90-g30b0eb9b with the relaxed-vtable patch from #175 and a local dxil-spirv patch,
VKD3D_CONFIG=ignore_shared_fence. RTX 4070 12 GB (driver 615.71.09, 32-lane waves), Ryzen 9 9950X3D, 64 GB RAM. Release, cross-compiled tox86_64-pc-windows-gnu(rustc 1.98.0), DXC 1.9.2609.5,XCL_NETWORK=0, warm DXIL cache. Retail title 1.0.2.1, the first-run screens completed once and no story progress, one A press at 44.8 s throughXCL_PRESS_AT. The runs alternatedmain, merge,main, merge.Tested
cargo test --release -p xcl --libformesh_slot_tests,mesh_layoutandmesh_splitunder Wine, on the merge: 7 passed, 0 failed.main1ec4c98, run 1 / 21ec4c98+6bd8f64, run 1 / 2mesh pipeline with its MS … in the AS slot – refusedno stand-in pipelinelines… in the AS slot – translated as MSlinesreport.json)Read
real.rs:4451: in the cached-only attempt a moved MS returns before anything is translated, and thetranslated as MSline atreal.rs:4457is only reached on the worker or the first bind. That matches the runs: 0 such lines, and the same number of translated pipelines asmain. So a run that stays on the title's first screens shows the stand-in path of this change and not its translated mesh shaders.real.rs:4621: the stand-in's target formats now go throughpc_target_formatfor every stream that gets a stand-in, not only for a moved MS. In these runs no stand-in was refused on either tree, so they show no difference from it.emit.rs:4847andemit.rs:4897are #304's commits (301adae,d42b820,2915f22), which this branch carries; #304 is still open. I tested the two together.Not tested: the title's world, where these pipelines are bound and where the device removals on 8 GB cards were reported; the rest of the test suite; a cold DXIL cache; AMD and Intel. A backup was reading and writing the same disk during all four runs, so the frame counts are not a clean timing.
AI use: Claude Code (Claude Fable 5.2) read the diff, built both trees, ran the title four times with
XCL_PRESS_AT, compared the logs and wrote this report.@crosettiremi on GitHub · 2026-11-24 17:11 UTC · original
RX 7900 XT, Windows, Series X saved profile. I repeated the AS-slot comparison on a newer downstream stack that includes direct texture uploads, #1453 and #1464. One run per build, same starting application caches, two DXC workers, 1 ms pipeline wait, 28 GiB whole-job limit, and Player1 selection at 33 s.
The mesh build logged five distinct console MS hashes entering the AS-slot translation path. Its final report included a mesh pipeline creation error returning DXGI_ERROR_DEVICE_REMOVED, as well as compute and root-signature errors. DRED reported the fault at 191.1 s with no named allocation; the list records printed in this run did not identify a partially completed dispatch. Peak sampled process commit was 27,475 MB. The final captured frame remained dark. This confirms the earlier refusal is removed on this stack. It does not establish which pipeline faulted or demonstrate visible terrain.
@ThiagoAlexsander on GitHub · 2026-11-24 18:35 UTC · original
Windows + NVIDIA datapoint: most AS-slot refusals go away, and the driver rejects one of the new mesh pipelines.
Setup: Windows 11 Pro 26300, RTX 5080 16 GB (driver 32.0.16.1088, 32-lane waves), Ryzen 7 9800X3D, 62 GB. Rust 1.100.0, release, DXC 1.8.2502 from the SDK. Retail title 1.0.2.1. The build was a local tree of
mainb7aa9f3with this PR (6bd8f64), #1273 and #681 merged, plus an unpublished stall-dump switch of mine. It is not this PR alone.Result: one run of about 60 s, from the first-run screens into loading. The log had:
console shaders in the PSO without a translation: mesh pipeline with its MS … in the AS slot – refused: 5 times.console shaders in the PSO without a translation: the driver rejected the mesh pipeline from the console MS (0x80070057): once, at 27.2 s.Earlier runs on
main930e8b4without this PR, reaching about the same point, logged the AS-slot refusal about 40 times per run. The bases differ, so treat the drop as indicative rather than a clean A/B.The
E_INVALIDARGis the part that may be NVIDIA-specific. I don't have the debug layer installed here (no Graphics Tools), so I can't name the field the runtime refused. I can rerun withXCL_D3D12_DEBUG=1if someone wants that output.Not tested: this PR on its own, AMD, the regression-run pair, and whether the five remaining refusals are a different case.
AI use: Claude Code (Claude Opus 5.5) built and ran this and wrote the report. Posted with my approval.
@ivall on GitHub · 2026-11-24 21:06 UTC · original
Test and review of
6bd8f64, merged onmaine9e94ce: the suite passes, but this should not go in before an execution path for two-pass pipelines (#724). Without one, I think the moved pipelines explain the device removals reported here.Tested: AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug. Clean merge.
cargo test --workspace --no-fail-fast -- --test-threads=4: 898 passed, 0 failed, 42 ignored. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).XCL_DIRECT_DXIL=all cargo test -p xcl --lib gpu:: -- --test-threads=4: 377 passed, 0 failed, 19 ignored, none SKIPPED.The problem, from reading the code at that merge. A pipeline made here is a compute pass that writes records into
u1, and a mesh pass that reads them. Nothing onmainruns the pair:two_pass_ofhas no caller outside tests, except one diagnostic log line inbind::graphics_bound.DispatchMeshis not hooked on the list.finish_two_passnotes the pipeline's root signature (note_pso_rs), but does not add the pipeline toTRANSLATED_GRAPHICS. So once such a pipeline is built,bind::execute_indirectsees neither a translated graphics nor a translated compute pipeline. It takes the "PC pipeline" branch, sets the title's graphics root signature and calls the PCExecuteIndirect. The mesh pass was built with XCL's signature, sou1and the memory windows are not bound.While the pipeline is still being built the call is skipped, so it depends on when the build finishes. That fits what is reported here:
translated as MSlines in @Royalflamejlh's runs, 0two passeslines in @HQasper's).I have not reproduced a removal myself, so the link to those reports is an inference. The missing execution path is not.
What I suggest: #724 first, with its open review points fixed, then this on top. If you want to keep this one independent, one way is to skip
ExecuteIndirectand mesh dispatches whiletwo_pass_of(pso)is set, with a log line, as for a pipeline without a translation. The refusals would be gone and nothing unbound would reach the GPU; the geometry still would not be drawn until #724.The #304 part does not depend on any of this.
Not tested: a title run, NVIDIA, the debug layer on a bound two-pass pipeline (message 953 would confirm the mismatch).
AI use: Claude Code (Claude Opus 5.5) merged, ran the tests, read the code and wrote this, on the maintainer's behalf.
@brandostrong on GitHub · 2026-11-25 00:32 UTC · original
Test report —
6bd8f64(head)RTX 4090 (wave32 host), i9-13900K, 32 GB RAM, Windows 11 26200, cargo 1.100.0, debug.
cargo build --workspace+cargo test --workspace -- --test-threads=4: 723 passed, 0 failed, 41 ignored; 2 SKIPPED (adapter limits). The branch base is older than today'smain, so the counts are below a current-main run (986 tests) — worth a rebase before merge.XCL_SAMPLE_RPF), mesh typed as AS (24), no MS subobject, driven throughCreatePipelineStateon the hooked device: 3/3 accepted (the refusal is gone; the test is not in the tree, offered to fold in).Decode facts (all 40 refused containers,
xcl disasm, findings on #1269): every one is a single-stage NGG (API MS) mesh program — 128 threads, ones_sendmsg(GS_ALLOC_REQ), no AS program, no container with two hardware stages — and no "unknown subobject type 23" ever appears in the runtime log. That matches #630's reading (console numbering,MS_VS_*_Wrapped) and says the guard comment's "minimap" label was wrong.An alternative host shape, measured: routing the same stream shape into the existing two-pass record path (compute pass + synthetic mesh pass + the title's PS) also builds 3/3 through the hook and passes the full suite (987 passed, 0 failed, 45 ignored). If the stand-in path still shows trouble on a title run, that is a second shape with evidence behind it.
Not tested: a title run (no smoke blocks from me), AMD.
AI use: Claude Code, Claude Opus 5.5 — ran the tests and wrote this report; the user reviewed the results.
@IAmTheSween on GitHub · 2026-11-25 03:38 UTC · original
Test report on a desktop RTX 5070 (Blackwell), head
6bd8f641040071b8a388c0ec3053c2b1483ddcdf.Setup
CONFLICTINGwithmain, so not rebased.cargo build --release -p xcl.e95020b2…). Scripted route, identical in both 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 a run.Result: the refusals are gone, and it costs ~70 % of the frame rate on this card
maincbc296ab656bd8f64console shaders in the PSO without a translationno stand-infailuresSo on this title the PR does what it says — the 40 mesh pipelines that
mainrefuses are translated and drawn, the run stays alive, and the end frame is the same picture asmain's (same dominant texels, same 99.9 % non-dark count). Two things to note for the smoke rule:main's, under the 80 % floor. Draws per frame barely move, so this is per-frame cost, not fewer draws being issued.no stand-in (0x80070057)lines on RTX 5080 did not reproduce here: zerostand-infailures in 300 s.Tested
cargo test --workspace -- --test-threads=4: 721 passed, 0 failed, 41 ignored (680 of them in the lib). A first run had 3 failures —title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels(assertioncubemap extra_pages must be reused at same va,title_textures.rs:1902), andtitle_textures::tests::transitions_apply_when_their_list_is_submittedandvram::tests::d32s8_targets_take_their_own_size_of_video_memory(PoisonError). All three pass alone with--test-threads=1and the full suite passed on a rerun, so they look like a 4-thread ordering flake rather than this change.no wave64(Blackwell is wave32-only),const_mask, wave64, and onecannot disable the driver cache(no Developer Mode).Not tested
AI use
deepseek-v4-pro-uncensored); ran the builds, the suite and the two runs, wrote the tables from the logs, wrote this comment.@DavidM1911 on GitHub · 2026-11-25 13:43 UTC · original
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main(gpu/recomp/emit.rs,hle/d3d12x/real.rs) — needs a rebase before it can be tested.@jennydeth on GitHub · 2026-11-25 15:28 UTC · original · edited 2026-11-25 17:17 UTC
RTX 3060 12 GB (wave32), retail title 1.0.2.1 – head
6bd8f64against its basea1672ef, tested as the branch is (it conflicts with currentmain, so not rebased)Result (see update 2 at the end for the world load): the 40 refusals are gone and nothing regressed in the menus. Into the story load the moved MS pipelines are translated, with no frame-rate loss on this card, but 3
no stand-inlines and 1 driver rejection appear at the same moment, and both arms then end in the known+0x23cf683crash (#846 / #675 / #534).a1672ef6bd8f64console shaders in the PSO without a translationno stand-inlinestranslated as MS (#n)linesRegression run (
scripts/smoke.ps1 -Seconds 60taken from currentmain, becausea1672ef's copy has no-OutDir; the same script for both arms, no input,XCL_NETWORK=0)Base
a1672ef:Head
6bd8f64:Head 104 % of base frames, 100.6 % of its peak commit: inside the smoke limits.
Update: 300 s with scripted input (same commits and script,
-Seconds 300,XCL_PRESS_A_AT=20,24,…,128– A every 4 s from 20 s to 128 s, the route used in the comment above)a1672ef6bd8f64console shaders in the PSO without a translationno stand-in/translated as MS (#n)linesBoth arms follow the same path: the presses register from 20 s, draws climb to 1170 per second by ~60 s and then stay flat at exactly that rate to the end, with no DirectStorage traffic after the start. So on this card the A-only route stops on one menu screen and never loads the world, and none of the 40 moved MS pipelines is bound in either arm. On this route I do not see the frame-rate drop reported above (8 771 → 2 650): the head keeps 101 % of base frames. That does not rule the drop out once those pipelines are drawn; the route that reached them there would be needed to check.
Update 2: 600 s into the story load (same commits and script,
-Seconds 600,XCL_NETWORK=0). The A-only route above was stuck on Legal Notices: A keeps reopening "Copyright", and "Next" only enables after the photosensitivity page's countdown. A route that gets through on a fresh profile isXCL_PRESS_AT=20:A,24:A,…,56:A,60:DOWN,70:DOWN,72:A,80:A,83:DOWN,85:A,88:DOWN,90:Athen A every 5 s. For these two runs the profile already had the first-run flow done (from an earlier run with that route), so both arms went straight from the title screens into the story load, on the same timeline (loading artwork from ~66–70 s).a1672ef6bd8f64AS slot – refusedtranslated as MS (#n)lines (sparse log: first 5, then every 1000th)2bdc6171bf337731no stand-in pipeline (0x80070057) – building this one in the callthe driver rejected the mesh pipeline from the console MS (0x80070057)request failed0xc0000005write at 0x0,game_scarlett_master.exe+0x23cf683, 121.0 sno stand-inlines reported above on an RTX 5080 do reproduce here: three at 58.29 s, followed by one driver rejection of a mesh pipeline built from a console MS, in the middle of a burst of[SHADER] as …containers being created (the AS-slot MS case). I have not matched the hashes of those four pipelines to the moved MS, so I can't say for certain they are this PR's path, only that they appear on the head and not on the base, at the same moment.rcx=0x70024c348, matching #846 / #675 / #534. By the smoke rule the head's block shows a crash; the base's shows the same one.Tested
XCL_DXC_DIR)cargo test --workspace --release --no-fail-fast -- --test-threads=4on6bd8f64: 718 passed, 3 failed, 41 ignored. The three aretitle_textures::tests::placed_title_textures_share_vram_and_preserve_pixels(title_textures.rs:1902),title_textures::tests::transitions_apply_when_their_list_is_submitted(:1464) andvram::tests::d32s8_targets_take_their_own_size_of_video_memory(vram.rs:860), the same three reported above. Each passes alone with--test-threads=1; they fail again in a second-p xcl --lib --test-threads=4run on the head (677 passed, 3 failed), and fail the same way on the basea1672ef(671 passed, 3 failed). So they come with the branch's old base, not with this PR; currentmain(06c9f55) passes them on this machine.gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware)Not tested
+0x23cf683crash, so whether the translated MS pipelines draw correctly (no screenshot comparison of the minimap); the branch rebased onto currentmain; AMD / wave64; a cold first-run profile with the new route on both arms.AI use
@pickles976 on GitHub · 2026-11-25 17:44 UTC · original
RTX 4060 Laptop / Wine follow-up on the current PR logic (not a clean PR-head run): I ported
6bd8f64together with #724 onto a local integration tree that already carries the Wine and memory PRs needed for this title. The fourreal::mesh_slot_testspassed under Wine (4 passed, 0 failed), and the release build completed.A guarded retail-title run reached 120.6 s before my 7.5 GiB VRAM safety limit stopped it (
7,614 MiBreported by NVIDIA,2,797 MiBsystem RAM available). It presented frame 2420; the frame was still loading artwork, not the world. The last 300-frame interval was 25.9 fps. There were no crashes, device removals,E_OUTOFMEMORY, orno stand-in pipelinemessages. The 40 oldmesh pipeline with its MS ... in the AS slot – refusedmessages seen on the same integration tree before this port became zero. BecauseXCL_PSO_PRELOAD=1uses deferred translation and this run did not bind one of the moved pipelines before the guard, I also saw zerotranslated as MSmessages; this run therefore verifies removal of the refusal and stand-in unit behavior, not in-title rendering by a moved MS.Hardware/runtime: NVIDIA GeForce RTX 4060 Laptop GPU 8 GiB, driver 590.48.1, Linux 6.17, Wine 11, vkd3d-proton 2576c0b4, DXC 1.9.2609.5, Rust 1.98.1 MSVC cross-build. I used OpenAI Codex (GPT-5.6 Sol) to port the conflicting PR, run the tests/title, and inspect the logs and captured frame; I reviewed this report before posting.
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.