D3D12.X: a console MS in the AS slot is translated as the mesh shader it is #541

Open
github-bot wants to merge 7 commits from github-bot/gh-541 into main AGit
Owner

@⁠ryosen0 on GitHub · 2026-11-24 01:35 UTC · original
ryosen0:as-slot-ms → main · +316 −18 · 3 files · 7 commits · open

A retail title's minimap pipelines carry their console MS container in the AS subobject with no MS subobject. translated_mesh_stream refused 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:

  1. fallback_stream built 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_background returned None and 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).
  2. The stand-in kept the console's target formats. The title's depth-only mesh pipelines use 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 three no stand-in lines Chrysana saw at 52.56 s were this case (NishantParajuli's follow-up, reproduced natively by thehollowedone on ad2118d).

That black screen was the translated mesh shaders failing their ms_6_6 output 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. Test a_console_ms_in_the_as_slot_is_the_mesh_shader covers all five cases.
  • The attempt defers a moved MS (dxc::defer under pso_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). Test a_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_slot helper). Test the_stand_in_of_a_moved_ms_is_a_mesh_pipeline (fails without the change).
  • fallback_stream: RENDER_TARGET_FORMATS / DEPTH_STENCIL_FORMAT go through device_x::pc_target_format, as the real pipeline's do (118 → 45, 115/86 → 28). Test the_stand_in_of_a_stream_has_the_pcs_target_formats (fails without the change; no DXC or GPU needed).

Tested

  • RTX 3060 Ti 8 GB (wave32), Ryzen 7 9800X3D, driver 32.0.16.1742, Windows 11, release build of 6bd8f64 (rebased onto a1672ef; same changes as 303b346).
  • cargo test --release --workspace --no-fail-fast -- --test-threads=4 on 6bd8f64: 721 passed, 0 failed, 41 ignored (earlier on 303b346, threads=1: 690 passed, 0 failed, 41 ignored) (2 GPU SKIPPED — no wave64 on this adapter). One earlier full run had a single failure in writes_land_after_the_queue (WARP fence timing); it passed isolated and in the clean full rerun — a flake unrelated to this change.
  • 120 s retail run with both fixes (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, 0 no stand-in pipeline lines. 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.
  • AMD (wave64/split path): Chrysana verified the first fix on RX 9070 XT (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 of 303b346 is requested in the thread.

Regression run
Main a1672ef (current main at rebase):

xcl-smoke v1
commit: a1672ef21c396d8edc9c4b0e3747f671bd40f528
gpu: NVIDIA GeForce RTX 3060 Ti
title: ScarlettGame
seconds: 90
exit: 0x0
frames shown: 2411 (PresentX 2411)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14489 MB

Head 6bd8f64:

xcl-smoke v1
commit: 6bd8f641040071b8a388c0ec3053c2b1483ddcdf
gpu: NVIDIA GeForce RTX 3060 Ti
title: ScarlettGame
seconds: 90
exit: 0x0
frames shown: 2325 (PresentX 2325)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14720 MB

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

  • No visual assessment of the minimap itself (unattended run; no screenshot comparison).
  • Console hardware / native wave64. A run past 300 s into the #505/#581 world-load stop with these fixes.

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.

**@⁠ryosen0** on GitHub · 2026-11-24 01:35 UTC · [original](https://github.com/xcl-dev/xcl/pull/541) `ryosen0:as-slot-ms` → `main` · +316 −18 · 3 files · 7 commits · open A retail title's minimap pipelines carry their console MS container in the **AS subobject with no MS subobject**. `translated_mesh_stream` refused 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: 1. **`fallback_stream` built 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_background` returned `None` and 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). 2. **The stand-in kept the console's target formats.** The title's depth-only mesh pipelines use `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 three `no stand-in` lines Chrysana saw at 52.56 s were this case (NishantParajuli's follow-up, reproduced natively by thehollowedone on `ad2118d`). That black screen was the translated mesh shaders failing their `ms_6_6` output 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. Test `a_console_ms_in_the_as_slot_is_the_mesh_shader` covers all five cases. - The attempt defers a moved MS (`dxc::defer` under `pso_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). Test `a_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_slot` helper). Test `the_stand_in_of_a_moved_ms_is_a_mesh_pipeline` (fails without the change). - `fallback_stream`: `RENDER_TARGET_FORMATS` / `DEPTH_STENCIL_FORMAT` go through `device_x::pc_target_format`, as the real pipeline's do (118 → 45, 115/86 → 28). Test `the_stand_in_of_a_stream_has_the_pcs_target_formats` (fails without the change; no DXC or GPU needed). **Tested** - RTX 3060 Ti 8 GB (wave32), Ryzen 7 9800X3D, driver 32.0.16.1742, Windows 11, release build of `6bd8f64` (rebased onto `a1672ef`; same changes as `303b346`). - `cargo test --release --workspace --no-fail-fast -- --test-threads=4` on `6bd8f64`: **721 passed, 0 failed, 41 ignored** (earlier on `303b346`, threads=1: 690 passed, 0 failed, 41 ignored) (2 GPU SKIPPED — no wave64 on this adapter). One earlier full run had a single failure in `writes_land_after_the_queue` (WARP fence timing); it passed isolated and in the clean full rerun — a flake unrelated to this change. - 120 s retail run with both fixes (`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, **0 `no stand-in pipeline` lines**. 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. - AMD (wave64/split path): Chrysana verified the first fix on RX 9070 XT (`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 of `303b346` is requested in the thread. **Regression run** Main `a1672ef` (current main at rebase): ``` xcl-smoke v1 commit: a1672ef21c396d8edc9c4b0e3747f671bd40f528 gpu: NVIDIA GeForce RTX 3060 Ti title: ScarlettGame seconds: 90 exit: 0x0 frames shown: 2411 (PresentX 2411) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14489 MB ``` Head `6bd8f64`: ``` xcl-smoke v1 commit: 6bd8f641040071b8a388c0ec3053c2b1483ddcdf gpu: NVIDIA GeForce RTX 3060 Ti title: ScarlettGame seconds: 90 exit: 0x0 frames shown: 2325 (PresentX 2325) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14720 MB ``` 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** - No visual assessment of the minimap itself (unattended run; no screenshot comparison). - Console hardware / native wave64. A run past 300 s into the #505/#581 world-load stop with these fixes. **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.
A retail title's NGG transform programs (128 vertices / 128 primitives,
21 params + SV_ClipDistance0 = 352 B per vertex) all failed ms_6_6 with
"vertex plus primitive output size is greater than 32768": the split
budget divided 32768 by the stride, but DXC accounts whole chunks of 32
vertices even when fewer are declared - verts[78] at 352 B is accounted
as 96 (33792 B) and refused. Measured with dxc 1.8.2502 on this machine:
every boundary from 9 to 26 float4 rows agrees with the chunk model.

passthrough_split now floors the vertex budget to a multiple of 32
(capped at 256); the wide records go out in 7 groups of 19 triangles
instead of 5 groups of 26 that DXC refuses. Test: the wide record splits
and compiles, a 96-vertex group at 320 B compiles, a narrow record stays
whole; fails without the change (5 != 7).

Assisted-by: DSH (GPT-6.2 Astra)
The emitter picked the whole-record layout from passthrough_split == 1, but
that count is the dispatch's: a record of 80 vertices with 22 float4 rows
does not fit the mesh output budget as a whole (DXC accounts 96 vertices,
33792 B > 32768) while its single triangle's compact copies fit one group,
so the count is 1 and verts[80] was declared and refused. The declaration
now follows the vertex budget independently of the group count; the compact
form covers every record over the budget, including the one-group ones.

mesh_layout_independent_of_group_count covers the asymmetric limits (80
vertices, 1 triangle, 22 rows): compact declaration, count 1, DXC accepts.
Found in review by shdann (PR #304).

Assisted-by: DSH (GPT-6.2 Astra)
Review nits (Parakeet-Wheat): mesh_layout_independent_of_group_count ended with a block that rebuilt the same MsInterface and asserted verts[3] again; it now compiles the whole-record declaration (verts[80], accounted as 96: 33792 B) and asserts DXC refuses it. passthrough_split's doc claimed a comparison of the two forms it does not make; the doc now states what it does. Tests only plus a doc line; no behaviour change.

Assisted-by: DSH (GPT-6.2 Astra)
A retail title's minimap pipelines carry their console MS container in the AS
subobject with no MS subobject. They were refused: translated, the title had
rendered nothing from then on. That black screen was the translated mesh
shaders failing their ms_6_6 output budget, fixed by the DXC vertex-chunk
budget (#304); the slot itself was never the problem. With the budget in
place the same shaders translate and the title keeps rendering.

mesh_shader_slots moves the container to the MS slot (and it is not an AS any
more); a real AS, an MS already present, or a PC shader are left as they are.
Unit test covers all five cases.

Assisted-by: DSH (GPT-6.2 Astra)
The title creates tens of thousands of console-MS-in-AS-slot pipelines during boot and uses few. Translating each in the cached-only attempt ran on the title's thread: on RTX 3060 Ti the intro's first bright frame came ~5 s later than main (frame 1100 vs 980 at XCL_FRAME_DUMP=120), and on RX 9070 XT (wave64, the split path) Chrysana's 60 s captures stayed black throughout with 57163 pipelines queued. The attempt now defers a moved MS like a console compute pipeline (dxc::defer under pso_async::lazy): go_background hands the title a stand-in and the worker or the first bind translates. The detection log moved to a sparse counter at the build (first 5 + every 1000th); it used to fire twice per deferred pipeline (2930 lines in 120 s).

Assisted-by: DSH (GPT-6.2 Astra)
fallback_stream decided 'mesh' by an MS subobject; the retail title's moved-MS streams have none (the console MS sits in the AS subobject), so the stand-in emptied the AS and kept a plain PS: a stream with neither a VS, CS nor MS, which the driver refuses (E_INVALIDARG). go_background then returned None and dev_create_pipeline_state built every such pipeline in the title's call, so the deferral never took effect (NishantParajuli on RTX 5060 Ti, Chrysana on RX 9070 XT: black frames, ~57k pipelines queued; thehollowedone's native fixture: D3D12 message 1022, no VS/CS/MS). 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, as translated_mesh_stream reads the title's stream; a real AS is emptied as before. Test the_stand_in_of_a_moved_ms_is_a_mesh_pipeline fails without the change.

Assisted-by: DSH (GPT-6.2 Astra)
The retail title's depth-only mesh pipelines use console-only formats (D16_UNORM_S8_UINT). allback_stream copied the title's formats as they were, so the driver refused the stand-in (E_INVALIDARG). go_background then returned None and dev_create_pipeline_state built every such pipeline in the title's call, so the deferral never took effect (NishantParajuli's follow-up, reproduced natively by thehollowedone). The stand-in's RENDER_TARGET_FORMATS and DEPTH_STENCIL_FORMAT now go through device_x::pc_target_format, as the real pipeline's do. Test 	he_stand_in_of_a_stream_has_the_pcs_target_formats fails without the change.

Assisted-by: DSH (GPT-6.2 Astra)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:25:08 +00:00
Author
Owner

@⁠ghost on GitHub · 2026-11-24 02:06 UTC · original

Wave64 hardware run, since Not tested lists it: ce41f94 merged onto main 9ce2070 (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; no SKIPPED GPU tests, mesh tests included.
  • a_console_ms_in_the_as_slot_is_the_mesh_shader and mesh_split_accounts_vertex_chunks pass.

AI use

  • Claude Code (Claude Opus 5.5) ran the commands and wrote this report from the logs; I checked it before posting.
**@⁠ghost** on GitHub · 2026-11-24 02:06 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7119762457) Wave64 hardware run, since **Not tested** lists it: `ce41f94` merged onto `main` `9ce2070` (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; no `SKIPPED` GPU tests, mesh tests included. - `a_console_ms_in_the_as_slot_is_the_mesh_shader` and `mesh_split_accounts_vertex_chunks` pass. **AI use** - Claude Code (Claude Opus 5.5) ran the commands and wrote this report from the logs; I checked it before posting.
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 02:20 UTC · original

Tested exact head ce41f94 (this PR over #304's 8c7413c) 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_shader and #304's gpu::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 and main 508a0c7:

    passed (642 / 640 tests, 0 failed) hung
    this PR 3 of 7 4 of 7
    main 508a0c7 4 of 5 1 of 5

    Every 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 the real::init() → sparse::init path described in #344, so I read it as that deadlock, already on main, 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

  • A retail title or scripts/smoke.ps1 (no title on this machine), so nothing about the minimap pipelines themselves.
  • The change without #304 under it, wave64 hardware, AMD.

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and the repeated runs and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 02:20 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7120045226) Tested exact head `ce41f94` (this PR over #304's `8c7413c`) 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_shader` and #304's `gpu::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 and `main` `508a0c7`: | | passed (642 / 640 tests, 0 failed) | hung | |---|---|---| | this PR | 3 of 7 | 4 of 7 | | `main` 508a0c7 | 4 of 5 | 1 of 5 | Every 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 the `real::init()` → `sparse::init` path described in #344, so I read it as that deadlock, already on `main`, 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** - A retail title or `scripts/smoke.ps1` (no title on this machine), so nothing about the minimap pipelines themselves. - The change without #304 under it, wave64 hardware, AMD. **AI use** - Claude Code (Claude Opus 5.5) ran the tests and the repeated runs and wrote this report. I checked it before posting.
Author
Owner

@⁠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 of verts[80] (accounted as 96, 33792 B > 32768 B, refused). New test mesh_layout_independent_of_group_count pins 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 02:22 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7120067992) 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 of `verts[80]` (accounted as 96, 33792 B > 32768 B, refused). New test `mesh_layout_independent_of_group_count` pins 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.
Author
Owner

@⁠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):

build black frames first bright frame draws per 2 s at the end
main dd2ae9a frames 20–860 (0 %) frame 980 (~39 s), 99.8 % 780
this PR 3d7604b frames 20–980 (0 %) frame 1100 (~44 s), 99.8 % 780
this PR, XCL_LAZY_PSO=0 all 10 captures (0 %) none within 60 s 189–207

So 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:

  • The title creates tens of thousands of these pipelines during boot; on main each is refused in microseconds, with the PR each goes through translation (cached-only attempt + worker build). The 57163 "pipelines queued" is 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).
  • The intro/menu transition is delayed by that work, and the delay scales with how long translation takes on the machine. On AMD wave64 the MS programs take the split path (more work per shader), which would explain 60 s never being enough there.

Two things I've done on the branch:

  1. The translated as MS log 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.
  2. Measuring whether the translation can be skipped for pipelines the title never binds (the lazy queue already defers the build; the cached-only attempt still translates on the calling thread — that's the part that stalls the title).

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:07 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7120788436) 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): | build | black frames | first bright frame | draws per 2 s at the end | |---|---|---|---| | main `dd2ae9a` | frames 20–860 (0 %) | **frame 980 (~39 s), 99.8 %** | 780 | | this PR `3d7604b` | frames 20–980 (0 %) | **frame 1100 (~44 s), 99.8 %** | 780 | | this PR, `XCL_LAZY_PSO=0` | all 10 captures (0 %) | none within 60 s | 189–207 | So 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: - The title creates tens of thousands of these pipelines during boot; on main each is refused in microseconds, with the PR each goes through translation (cached-only attempt + worker build). The 57163 "pipelines queued" is `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). - The intro/menu transition is delayed by that work, and the delay scales with how long translation takes on the machine. On AMD wave64 the MS programs take the split path (more work per shader), which would explain 60 s never being enough there. Two things I've done on the branch: 1. The `translated as MS` log 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. 2. Measuring whether the translation can be skipped for pipelines the title never binds (the lazy queue already defers the build; the cached-only *attempt* still translates on the calling thread — that's the part that stalls the title). 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.
Author
Owner

@⁠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::defer under pso_async::lazy): go_background hands the title a stand-in immediately and the worker — or the first bind — runs the translation. The translated as MS log 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 on 4b1af01: 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 the translated 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:33 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7121209272) 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::defer` under `pso_async::lazy`): `go_background` hands the title a stand-in immediately and the worker — or the first bind — runs the translation. The `translated as MS` log 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 on `4b1af01`: 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 the `translated 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.
Author
Owner

@⁠ryosen0 on GitHub · 2026-11-24 03:35 UTC · original

Test report for 4b1af01 (this PR over #304's b884f3c) 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=1 at 4b1af01: 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_count pass. One earlier full run had a single failure in writes_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):

build first bright frame moved-MS translations in 60 s
main dd2ae9a 980 (99.8 %) 0 (refused)
3d7604b (pre-fix) 1100 ~1500 attempts (2930 log lines / 120 s)
4b1af01 1100 7

The ~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_AT A 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 4b1af01 is 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.

**@⁠ryosen0** on GitHub · 2026-11-24 03:35 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7121233708) Test report for `4b1af01` (this PR over #304's `b884f3c`) 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=1` at `4b1af01`: **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_count` pass. One earlier full run had a single failure in `writes_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): | build | first bright frame | moved-MS translations in 60 s | |---|---|---| | main `dd2ae9a` | 980 (99.8 %) | 0 (refused) | | `3d7604b` (pre-fix) | 1100 | ~1500 attempts (2930 log lines / 120 s) | | `4b1af01` | 1100 | **7** | The ~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_AT` A 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 `4b1af01` is 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.
Author
Owner

@⁠NishantParajuli on GitHub · 2026-11-24 03:41 UTC · original

Test report for head 4b1af01 with frame captures on an RTX 5060 Ti, and the reason the deferral in 4b1af01 does 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 on main.

What happens at 4b1af01

  • The attempt defers a moved MS and go_background asks standin_stream for a stand-in. fallback_stream decides "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.
  • The driver refuses it: 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_background returns None and dev_create_pipeline_state calls translated_mesh_stream again 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)
diff --git a/crates/xcl/src/hle/d3d12x/real.rs b/crates/xcl/src/hle/d3d12x/real.rs
index cfc5d4d..369f3c3 100644
--- a/crates/xcl/src/hle/d3d12x/real.rs
+++ b/crates/xcl/src/hle/d3d12x/real.rs
@@ -4244,6 +4244,42 @@ mod mesh_slot_tests {
         assert!(missed, "the attempt is missed: the caller takes the background path");
         assert!(!crate::gpu::recomp::dxc::defer(), "outside: the build translates");
     }
+
+    /// The stand-in of such a stream is a mesh pipeline: the AS subobject becomes an MS with the
+    /// dummy mesh shader and the PS is the mesh dummy's. (As an AS without a shader the stream
+    /// had a PS alone, which the driver refuses.) A real AS beside an MS stays an AS, emptied.
+    #[test]
+    fn the_stand_in_of_a_console_ms_in_the_as_slot_is_a_mesh_pipeline() {
+        use super::{dummy_mesh, fallback_stream, stream_subobjects};
+        if crate::gpu::recomp::dxc::location().is_err() {
+            crate::gpu::recomp::runner::skip_test("no DXC");
+            return;
+        }
+        let ms = sample(13, &[fssm(&CODE, &[(8, 13)])]);
+        let as_ = sample(14, &[fssm(&CODE, &[(8, 14)])]);
+        let ps = [1u8; 32];
+        let stream = |subs: &[(u32, &[u8])]| -> Vec<u8> {
+            let mut v = Vec::new();
+            for (ty, b) in subs {
+                v.extend_from_slice(&ty.to_le_bytes());
+                v.extend_from_slice(&[0; 4]);
+                v.extend_from_slice(&(b.as_ptr() as u64).to_le_bytes());
+                v.extend_from_slice(&(b.len() as u64).to_le_bytes());
+            }
+            v
+        };
+        // (type, shader pointer, length) of each subobject of the stand-in's stream
+        let stand_in = |s: &[u8]| -> Vec<(u32, usize, usize)> {
+            let desc: [usize; 2] = [s.len(), s.as_ptr() as usize];
+            let (out, _) = unsafe { fallback_stream(desc.as_ptr() as *const u8) }.expect("a stand-in stream");
+            let word = |p: &[u8], k: usize| u64::from_le_bytes(p[8 * k..8 * k + 8].try_into().unwrap()) as usize;
+            stream_subobjects(&out).unwrap().iter().map(|(ty, p)| (*ty, word(p, 0), word(p, 1))).collect()
+        };
+        let (dms, dps) = dummy_mesh().expect("DXC compiles the stand-in mesh shaders");
+        let (dms, dps) = ((dms.as_ptr() as usize, dms.len()), (dps.as_ptr() as usize, dps.len()));
+        assert_eq!(stand_in(&stream(&[(24, &ms), (2, &ps)])), vec![(25, dms.0, dms.1), (2, dps.0, dps.1)]);
+        assert_eq!(stand_in(&stream(&[(24, &as_), (25, &ms), (2, &ps)])), vec![(24, 0, 0), (25, dms.0, dms.1), (2, dps.0, dps.1)]);
+    }
 }
 
 /// CreatePipelineState with a console MS: Some(hr) when it was a console mesh pipeline
@@ -4403,6 +4439,13 @@ unsafe fn translated_gs_pso(this: *mut c_void, d: &D3D12_GRAPHICS_PIPELINE_STATE
     finish_two_pass(this, &out, tp, rs, "GS", riid, ppv)
 }
 
+/// A console MS container in the stream's AS subobject and no MS subobject (`mesh_shader_slots`).
+unsafe fn console_ms_in_as_slot(subs: &[(u32, &[u8])]) -> bool {
+    let shader = |ty: i32| subs.iter().find(|s| s.0 == ty as u32).and_then(|s| payload_shader(s.1));
+    shader(D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MS.0).is_none()
+        && shader(D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_AS.0).is_some_and(|a| crate::gpu::recomp::pso::is_console(a) && crate::gpu::xbox::parse(a).is_some_and(|sh| sh.stage == "MS"))
+}
+
 /// Rewrite a pipeline state stream with stand-in shaders. None if not possible.
 unsafe fn fallback_stream(desc: *const u8) -> Option<(Vec<u8>, [usize; 2])> {
     let size = *(desc as *const usize);
@@ -4412,7 +4455,12 @@ unsafe fn fallback_stream(desc: *const u8) -> Option<(Vec<u8>, [usize; 2])> {
     }
     let mut buf = std::slice::from_raw_parts(base as *const u8, size).to_vec();
     let d = dummy();
-    let mesh = stream_subobjects(&buf).is_some_and(|subs| subs.iter().any(|s| s.0 == D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MS.0 as u32));
+    // A console MS alone in the AS slot is the stream's mesh shader (`mesh_shader_slots`), so its
+    // stand-in is a mesh pipeline too, with the dummy MS in that subobject as an MS. Left an AS
+    // without a shader, the stream had a PS and neither an MS nor a VS: the driver refused it
+    // (E_INVALIDARG) and every such pipeline was built in the title's call.
+    let ms_in_as = stream_subobjects(&buf).is_some_and(|subs| console_ms_in_as_slot(&subs));
+    let mesh = ms_in_as || stream_subobjects(&buf).is_some_and(|subs| subs.iter().any(|s| s.0 == D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MS.0 as u32));
     let dm = if mesh { Some(dummy_mesh()?) } else { None };
     let mut off = 0usize;
     while off + 8 <= size {
@@ -4431,6 +4479,10 @@ unsafe fn fallback_stream(desc: *const u8) -> Option<(Vec<u8>, [usize; 2])> {
             1 => put(&mut buf, &d.vs),
             2 => put(&mut buf, dm.map_or(&d.ps[..], |m| &m.1[..])),
             6 => put(&mut buf, &d.cs),
+            24 if ms_in_as => {
+                buf[off..off + 4].copy_from_slice(&(D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MS.0 as u32).to_le_bytes());
+                put(&mut buf, &dm?.0)
+            }
             3 | 4 | 5 | 24 => put(&mut buf, &[]),
             25 => put(&mut buf, &dm?.0),
             12 | 19 => buf[at..at + 16].fill(0), // input layout, cached PSO

Tested

  • NVIDIA GeForce RTX 5060 Ti 16 GB (driver 32.0.16.2114, 32-lane waves), Ryzen 7 7700, 31 GB RAM, Windows 11 Pro 26300, rustc 1.100.0 MSVC, DXC 1.8.2502.11 (SDK 10.0.26100), release.
  • Retail title 1.0.2.1, 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_CACHE to a new folder), one run each. "Bright": mean of R, G, B over every 20th texel of the capture above 30.
build captures first bright capture draws per 2 s at the end background_pipelines (built, failed, pending) "no stand-in" lines
main 91f9a5e 42 frame 140 (10.7 s) 780 6, 0, 57 817 0
91f9a5e + this PR 4b1af01 43 none in 90 s (frames 20 – 2540 all black) 180 4, 0, 57 161 (658 translated in the call) 3 (capped)
the same + the fix 42 frame 200 (12.7 s) 780 6, 0, 60 747 0
  • So with the fix the title's first screen is one capture (2 s) later than main's and it then draws at main'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=4 on 91f9a5e + 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 and the_stand_in_of_a_console_ms_in_the_as_slot_is_a_mesh_pipeline).
  • Earlier, on ce41f94 + the same fix (main 9ce2070): empty cache, first screen at about 20 s (16 s on that main). ce41f94 alone 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

  • Whether the translated pipelines draw correctly once bound. The menus never bind one (0 "in two passes" lines up to the legal screens). Walking on into world loading with scripted input (on ce41f94 + the fix, before the new #304 head), the first of them were built on first bind (3 pipeline from the console MS in two passes lines) 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 at 4b1af01.
  • AMD, wave64, a warm cache at 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.

**@⁠NishantParajuli** on GitHub · 2026-11-24 03:41 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7121336513) Test report for head `4b1af01` with frame captures on an **RTX 5060 Ti**, and the reason the deferral in `4b1af01` does 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 on `main`. **What happens at `4b1af01`** - The attempt defers a moved MS and `go_background` asks `standin_stream` for a stand-in. `fallback_stream` decides "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. - The driver refuses it: `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_background` returns `None` and `dev_create_pipeline_state` calls `translated_mesh_stream` again 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, …)]`). <details><summary>diff (crates/xcl/src/hle/d3d12x/real.rs, +53 / -1 with the test)</summary> ```diff diff --git a/crates/xcl/src/hle/d3d12x/real.rs b/crates/xcl/src/hle/d3d12x/real.rs index cfc5d4d..369f3c3 100644 --- a/crates/xcl/src/hle/d3d12x/real.rs +++ b/crates/xcl/src/hle/d3d12x/real.rs @@ -4244,6 +4244,42 @@ mod mesh_slot_tests { assert!(missed, "the attempt is missed: the caller takes the background path"); assert!(!crate::gpu::recomp::dxc::defer(), "outside: the build translates"); } + + /// The stand-in of such a stream is a mesh pipeline: the AS subobject becomes an MS with the + /// dummy mesh shader and the PS is the mesh dummy's. (As an AS without a shader the stream + /// had a PS alone, which the driver refuses.) A real AS beside an MS stays an AS, emptied. + #[test] + fn the_stand_in_of_a_console_ms_in_the_as_slot_is_a_mesh_pipeline() { + use super::{dummy_mesh, fallback_stream, stream_subobjects}; + if crate::gpu::recomp::dxc::location().is_err() { + crate::gpu::recomp::runner::skip_test("no DXC"); + return; + } + let ms = sample(13, &[fssm(&CODE, &[(8, 13)])]); + let as_ = sample(14, &[fssm(&CODE, &[(8, 14)])]); + let ps = [1u8; 32]; + let stream = |subs: &[(u32, &[u8])]| -> Vec<u8> { + let mut v = Vec::new(); + for (ty, b) in subs { + v.extend_from_slice(&ty.to_le_bytes()); + v.extend_from_slice(&[0; 4]); + v.extend_from_slice(&(b.as_ptr() as u64).to_le_bytes()); + v.extend_from_slice(&(b.len() as u64).to_le_bytes()); + } + v + }; + // (type, shader pointer, length) of each subobject of the stand-in's stream + let stand_in = |s: &[u8]| -> Vec<(u32, usize, usize)> { + let desc: [usize; 2] = [s.len(), s.as_ptr() as usize]; + let (out, _) = unsafe { fallback_stream(desc.as_ptr() as *const u8) }.expect("a stand-in stream"); + let word = |p: &[u8], k: usize| u64::from_le_bytes(p[8 * k..8 * k + 8].try_into().unwrap()) as usize; + stream_subobjects(&out).unwrap().iter().map(|(ty, p)| (*ty, word(p, 0), word(p, 1))).collect() + }; + let (dms, dps) = dummy_mesh().expect("DXC compiles the stand-in mesh shaders"); + let (dms, dps) = ((dms.as_ptr() as usize, dms.len()), (dps.as_ptr() as usize, dps.len())); + assert_eq!(stand_in(&stream(&[(24, &ms), (2, &ps)])), vec![(25, dms.0, dms.1), (2, dps.0, dps.1)]); + assert_eq!(stand_in(&stream(&[(24, &as_), (25, &ms), (2, &ps)])), vec![(24, 0, 0), (25, dms.0, dms.1), (2, dps.0, dps.1)]); + } } /// CreatePipelineState with a console MS: Some(hr) when it was a console mesh pipeline @@ -4403,6 +4439,13 @@ unsafe fn translated_gs_pso(this: *mut c_void, d: &D3D12_GRAPHICS_PIPELINE_STATE finish_two_pass(this, &out, tp, rs, "GS", riid, ppv) } +/// A console MS container in the stream's AS subobject and no MS subobject (`mesh_shader_slots`). +unsafe fn console_ms_in_as_slot(subs: &[(u32, &[u8])]) -> bool { + let shader = |ty: i32| subs.iter().find(|s| s.0 == ty as u32).and_then(|s| payload_shader(s.1)); + shader(D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MS.0).is_none() + && shader(D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_AS.0).is_some_and(|a| crate::gpu::recomp::pso::is_console(a) && crate::gpu::xbox::parse(a).is_some_and(|sh| sh.stage == "MS")) +} + /// Rewrite a pipeline state stream with stand-in shaders. None if not possible. unsafe fn fallback_stream(desc: *const u8) -> Option<(Vec<u8>, [usize; 2])> { let size = *(desc as *const usize); @@ -4412,7 +4455,12 @@ unsafe fn fallback_stream(desc: *const u8) -> Option<(Vec<u8>, [usize; 2])> { } let mut buf = std::slice::from_raw_parts(base as *const u8, size).to_vec(); let d = dummy(); - let mesh = stream_subobjects(&buf).is_some_and(|subs| subs.iter().any(|s| s.0 == D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MS.0 as u32)); + // A console MS alone in the AS slot is the stream's mesh shader (`mesh_shader_slots`), so its + // stand-in is a mesh pipeline too, with the dummy MS in that subobject as an MS. Left an AS + // without a shader, the stream had a PS and neither an MS nor a VS: the driver refused it + // (E_INVALIDARG) and every such pipeline was built in the title's call. + let ms_in_as = stream_subobjects(&buf).is_some_and(|subs| console_ms_in_as_slot(&subs)); + let mesh = ms_in_as || stream_subobjects(&buf).is_some_and(|subs| subs.iter().any(|s| s.0 == D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MS.0 as u32)); let dm = if mesh { Some(dummy_mesh()?) } else { None }; let mut off = 0usize; while off + 8 <= size { @@ -4431,6 +4479,10 @@ unsafe fn fallback_stream(desc: *const u8) -> Option<(Vec<u8>, [usize; 2])> { 1 => put(&mut buf, &d.vs), 2 => put(&mut buf, dm.map_or(&d.ps[..], |m| &m.1[..])), 6 => put(&mut buf, &d.cs), + 24 if ms_in_as => { + buf[off..off + 4].copy_from_slice(&(D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MS.0 as u32).to_le_bytes()); + put(&mut buf, &dm?.0) + } 3 | 4 | 5 | 24 => put(&mut buf, &[]), 25 => put(&mut buf, &dm?.0), 12 | 19 => buf[at..at + 16].fill(0), // input layout, cached PSO ``` </details> **Tested** - NVIDIA GeForce RTX 5060 Ti 16 GB (driver 32.0.16.2114, 32-lane waves), Ryzen 7 7700, 31 GB RAM, Windows 11 Pro 26300, rustc 1.100.0 MSVC, DXC 1.8.2502.11 (SDK 10.0.26100), release. - Retail title 1.0.2.1, `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_CACHE` to a new folder), one run each. "Bright": mean of R, G, B over every 20th texel of the capture above 30. | build | captures | first bright capture | draws per 2 s at the end | `background_pipelines` (built, failed, pending) | "no stand-in" lines | |---|---|---|---|---|---| | `main` `91f9a5e` | 42 | frame 140 (10.7 s) | 780 | 6, 0, 57 817 | 0 | | `91f9a5e` + this PR `4b1af01` | 43 | **none in 90 s** (frames 20 – 2540 all black) | 180 | 4, 0, 57 161 (658 translated in the call) | 3 (capped) | | the same + the fix | 42 | frame 200 (12.7 s) | 780 | 6, 0, 60 747 | 0 | - So with the fix the title's first screen is one capture (2 s) later than `main`'s and it then draws at `main`'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=4` on `91f9a5e` + `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 and `the_stand_in_of_a_console_ms_in_the_as_slot_is_a_mesh_pipeline`). - Earlier, on `ce41f94` + the same fix (`main` `9ce2070`): empty cache, first screen at about 20 s (16 s on that `main`). `ce41f94` alone 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** - Whether the translated pipelines draw correctly once bound. The menus never bind one (0 "in two passes" lines up to the legal screens). Walking on into world loading with scripted input (on `ce41f94` + the fix, before the new #304 head), the first of them were built on first bind (3 `pipeline from the console MS in two passes` lines) 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 at `4b1af01`. - AMD, wave64, a warm cache at `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.
Author
Owner

@⁠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 stock standin_stream and the native D3D12 driver. With the console MS container in the AS slot and no MS subobject, the call returned E_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 main at f4ce27c and that revision with 4b1af01 integrated cleanly. This baseline includes the recent texture-read, sparse-memory, and write-watch merges.

  • Main: 701 passed, 0 failed, 41 ignored.
  • Integrated tree: 705 passed, 0 failed, 41 ignored. The moved-MS slot and deferral tests passed. The existing synthetic two-pass mesh GPU test passed on both trees.

Both totals include two tests that returned early for lack of native wave64: gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware.

cargo build --offline --locked --workspace, then cargo 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.

**@⁠thehollowedone** on GitHub · 2026-11-24 03:44 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7121380665) · edited 2026-11-24 03:50 UTC **Native stand-in check on the rebased head** On [`24635db`](https://github.com/ivall/xcl/commit/24635db4d250ea30631d892c0a94ba35edd9bb65), I reproduced the [earlier stand-in rejection](https://github.com/ivall/xcl/pull/541#issuecomment-7121336513) with a synthetic stream on the RTX 3080 Ti. The fixture called XCL’s stock `standin_stream` and the native D3D12 driver. With the console MS container in the AS slot and no MS subobject, the call returned `E_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. <details> <summary>Earlier integrated workspace result</summary> **Tested** I ran the same serial workspace check on [`main` at `f4ce27c`](https://github.com/ivall/xcl/commit/f4ce27ceb6d1b0576d0c659b713b674778bf1968) and that revision with [`4b1af01`](https://github.com/ivall/xcl/commit/4b1af01ec86d81b3714df495292f4881f648b3f2) integrated cleanly. This baseline includes the recent texture-read, sparse-memory, and write-watch merges. - Main: 701 passed, 0 failed, 41 ignored. - Integrated tree: 705 passed, 0 failed, 41 ignored. The moved-MS slot and deferral tests passed. The existing synthetic two-pass mesh GPU test passed on both trees. Both totals include two tests that returned early for lack of native wave64: `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware`. `cargo build --offline --locked --workspace`, then `cargo 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. </details>
Author
Owner

@⁠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 at 24635db on this card; with the fix from their comment applied, the title draws again on RDNA4.

Both runs: 24635db (already on main 9ce2070), 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_CACHE to a new folder), same saved state.

build captures lit (R+G+B > 30) first lit capture draws per 2 s at the end background_pipelines
24635db 0 of 21 none in 90 s 180 4, 0, 56889
24635db + the fix (applied cleanly, +53 / −1) 17 of 20, 100 % each (the 3 before 16 s are dark, as on main) frame 380 (21.9 s), then every capture 600–720 13, 0, 61227
  • 24635db alone logs no stand-in pipeline (0x80070057) – building this one in the call at 8.77 s, for the AS-slot MS d7c434f73b4b811c (as in NishantParajuli's report).
  • With the fix, those at 8.7 s are gone, but three no stand-in pipeline lines remain at 52.56 s (the line is capped at 3), right before translated as MS for 4b799df70d125a0a, 2e9f2ec40925c4ee and af32492a62fcd9cb. 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. main has no no stand-in line in any of my runs.
  • No crash or device removal; no in two passes line 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's b884f3c, already on main 9ce2070) 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 for ce41f94, 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=4 at 3d7604b: 687 passed, 0 failed, 41 ignored. a_console_ms_in_the_as_slot_is_the_mesh_shader, mesh_layout_independent_of_group_count and mesh_split_accounts_vertex_chunks pass. 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):

build 4–15 s 19–60 s draws per 2 s at the end
main 9ce2070 0 % 100 % from 21 s 1307–1326
#304 b884f3c (on 9ce2070) 0 % 100 % from ~23 s 1242–1261
this PR 3d7604b 0 % 0 % (all 14 captures) 180
  • The window title during the 3d7604b run: compiling shaders: 4 running, 52 done, 57163 pipelines queued. On the other builds it reads 0 running.
  • No in the AS slot – refused line (40 on main). 264 different MS were translated, with 1014 translated as MS lines in 60 s, and two pipeline from the console MS in two passes lines.
  • The title doesn't reach the video's texture reads it reaches on main (no BCPack reads at ~28 s), and peak commit is 12.5–13.2 GB against ~16 GB.
  • ce41f94 merged onto 9ce2070 gave 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.

main 9ce2070:

xcl-smoke v1
commit: 9ce2070eccf436d7bd38601c90407da447df34f3
gpu: AMD Radeon RX 9070 XT
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1536 (PresentX 1536)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16054 MB

PR:

xcl-smoke v1
commit: 3d7604bb167c9c85c0849782eb6917f57b76b6ec
gpu: AMD Radeon RX 9070 XT
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1595 (PresentX 1596)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 12552 MB

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.

**@⁠Chrysana** on GitHub · 2026-11-24 02:47 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7120485760) · edited 2026-11-24 03:59 UTC **Update for `24635db` (RX 9070 XT), with @⁠NishantParajuli's stand-in fix tried on AMD:** still black at `24635db` on this card; **with the fix from their comment applied, the title draws again on RDNA4.** Both runs: `24635db` (already on `main` `9ce2070`), 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_CACHE` to a new folder), same saved state. | build | captures lit (R+G+B > 30) | first lit capture | draws per 2 s at the end | `background_pipelines` | |---|---|---|---|---| | `24635db` | 0 of 21 | none in 90 s | 180 | 4, 0, 56889 | | `24635db` + the fix (applied cleanly, +53 / −1) | 17 of 20, 100 % each (the 3 before 16 s are dark, as on `main`) | frame 380 (21.9 s), then every capture | 600–720 | 13, 0, 61227 | - `24635db` alone logs `no stand-in pipeline (0x80070057) – building this one in the call` at 8.77 s, for the AS-slot MS `d7c434f73b4b811c` (as in NishantParajuli's report). - With the fix, those at 8.7 s are gone, but **three `no stand-in pipeline` lines remain at 52.56 s** (the line is capped at 3), right before `translated as MS` for `4b799df70d125a0a`, `2e9f2ec40925c4ee` and `af32492a62fcd9cb`. 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. `main` has no `no stand-in` line in any of my runs. - No crash or device removal; no `in two passes` line 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's `b884f3c`, already on `main` `9ce2070`) 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 for `ce41f94`, 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=4` at `3d7604b`: 687 passed, 0 failed, 41 ignored. `a_console_ms_in_the_as_slot_is_the_mesh_shader`, `mesh_layout_independent_of_group_count` and `mesh_split_accounts_vertex_chunks` pass. `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): | build | 4–15 s | 19–60 s | draws per 2 s at the end | |---|---|---|---| | `main` `9ce2070` | 0 % | **100 %** from 21 s | 1307–1326 | | #304 `b884f3c` (on `9ce2070`) | 0 % | **100 %** from ~23 s | 1242–1261 | | this PR `3d7604b` | 0 % | **0 %** (all 14 captures) | **180** | - The window title during the `3d7604b` run: `compiling shaders: 4 running, 52 done, 57163 pipelines queued`. On the other builds it reads 0 running. - No `in the AS slot – refused` line (40 on `main`). 264 different MS were translated, with 1014 `translated as MS` lines in 60 s, and two `pipeline from the console MS in two passes` lines. - The title doesn't reach the video's texture reads it reaches on `main` (no BCPack reads at ~28 s), and peak commit is 12.5–13.2 GB against ~16 GB. - `ce41f94` merged onto `9ce2070` gave 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. `main` `9ce2070`: ``` xcl-smoke v1 commit: 9ce2070eccf436d7bd38601c90407da447df34f3 gpu: AMD Radeon RX 9070 XT title: retail-title seconds: 60 exit: 0x0 frames shown: 1536 (PresentX 1536) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16054 MB ``` PR: ``` xcl-smoke v1 commit: 3d7604bb167c9c85c0849782eb6917f57b76b6ec gpu: AMD Radeon RX 9070 XT title: retail-title seconds: 60 exit: 0x0 frames shown: 1595 (PresentX 1596) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 12552 MB ``` **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.
Author
Owner

@⁠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: ce41f94 merged onto main 9ce2070 (clean merge), release. On this card the title's frames are black with this PR, from its first screen on; main 9ce2070 alone 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.

main 9ce2070, 75 s with this PR, 60 s
frame captures that are not entirely black 11 of 15: every one from frame 420 (~30 s) on 0 of 14 (frames 20 – 1320)
presents in the first 60 s (the log's 2 s activity lines) 1 139 1 402
report.json: translated / failed pipelines 12 / 8 1 012 / 8
"MS … in the AS slot" log lines 39 refused (39 shaders) 1 060 translated as MS (431 shaders)
  • The captures of the run with the PR are identical to each other and to the black frames main shows before its first screen (same hash). The first thing main draws 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.
  • The "translated as MS" lines start at 16.3 s, before the frame at which main first shows something.
  • A second, longer run with this PR in a larger local stack (#266, #435, #490, #267 and the CopyFromSubresource fix as well): all 85 captures black in 380 s (to frame 8420). That stack without this PR, on main 508a0c7, 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 onto main f4ce27c, 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.json 614 translated / 8 failed pipelines, and only 5 "translated as MS" lines now (2 shaders, against 1 060 lines at ce41f94), 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 (where main shows its first screen by frame 420); the frames themselves are. I have not tried the stand-in fix proposed above.

**@⁠imnicho** on GitHub · 2026-11-24 02:22 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7120073130) · edited 2026-11-24 04:07 UTC Test report with frame captures, since **Not tested** lists the visual side: `ce41f94` merged onto `main` `9ce2070` (clean merge), release. **On this card the title's frames are black with this PR, from its first screen on; `main` `9ce2070` alone 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. | | `main` `9ce2070`, 75 s | with this PR, 60 s | |---|---|---| | frame captures that are not entirely black | 11 of 15: every one from frame 420 (~30 s) on | 0 of 14 (frames 20 – 1320) | | presents in the first 60 s (the log's 2 s activity lines) | 1 139 | 1 402 | | `report.json`: translated / failed pipelines | 12 / 8 | 1 012 / 8 | | "MS … in the AS slot" log lines | 39 refused (39 shaders) | 1 060 translated as MS (431 shaders) | - The captures of the run with the PR are identical to each other and to the black frames `main` shows before its first screen (same hash). The first thing `main` draws 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. - The "translated as MS" lines start at 16.3 s, before the frame at which `main` first shows something. - A second, longer run with this PR in a larger local stack (#266, #435, #490, #267 and the `CopyFromSubresource` fix as well): all 85 captures black in 380 s (to frame 8420). That stack without this PR, on `main` `508a0c7`, 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 onto `main` `f4ce27c`, 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.json` 614 translated / 8 failed pipelines, and only 5 "translated as MS" lines now (2 shaders, against 1 060 lines at `ce41f94`), 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 (where `main` shows its first screen by frame 420); the frames themselves are. I have not tried the stand-in fix proposed above.
Author
Owner

@⁠mastrr9 on GitHub · 2026-11-24 04:10 UTC · original

Code audit + NVIDIA RTX 5080 test run on 24635db4d250ea30631d892c0a94ba35edd9bb65:

Review

Looks clean:

  • Switching mesh_passthrough_for from split == 1 to mv <= cap (emit.rs:4673) fixes the DXC output-budget refusal for low-triangle records whose vertex count exceeds cap.
  • mesh_shader_slots cleanly promotes a lone console MS in the AS slot while leaving real AS / paired MS+AS / PC shaders untouched, and deferring moved MS builds via pso_async::lazy() && dxc::defer() avoids stalling boot on tens of thousands of unused pipelines.

Tested

  • Hardware / OS / toolchain: NVIDIA GeForce RTX 5080 (driver 617.42), AMD Ryzen 7 9800X3D, Windows 11 25H2 (build 26200.9711), rustc 1.100.0 (MSVC), debug build.
  • cargo build --workspace && cargo test --workspace -- --test-threads=4: 688 passed, 0 failed, 41 ignored.
  • New tests 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.
  • SKIPPED GPU/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

  • Retail title / scripts/smoke.ps1 run (test suite only).
  • AMD / Intel GPUs.

AI use: code review and test run orchestrated with Antigravity (Gemini 4 Neon) on the hardware listed above.

**@⁠mastrr9** on GitHub · 2026-11-24 04:10 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7121777821) Code audit + NVIDIA RTX 5080 test run on `24635db4d250ea30631d892c0a94ba35edd9bb65`: ### Review Looks clean: - Switching `mesh_passthrough_for` from `split == 1` to `mv <= cap` (`emit.rs:4673`) fixes the DXC output-budget refusal for low-triangle records whose vertex count exceeds `cap`. - `mesh_shader_slots` cleanly promotes a lone console MS in the AS slot while leaving real AS / paired MS+AS / PC shaders untouched, and deferring moved MS builds via `pso_async::lazy() && dxc::defer()` avoids stalling boot on tens of thousands of unused pipelines. ### Tested - Hardware / OS / toolchain: NVIDIA GeForce RTX 5080 (driver 617.42), AMD Ryzen 7 9800X3D, Windows 11 25H2 (build 26200.9711), `rustc 1.100.0` (MSVC), debug build. - `cargo build --workspace && cargo test --workspace -- --test-threads=4`: **688 passed, 0 failed, 41 ignored**. - New tests `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**. - `SKIPPED` GPU/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 - Retail title / `scripts/smoke.ps1` run (test suite only). - AMD / Intel GPUs. *AI use: code review and test run orchestrated with Antigravity (Gemini 4 Neon) on the hardware listed above.*
Author
Owner

@⁠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:

stand-in stream refused (0x80070057): 0 25 2 3 4 5 8 9 10 21 17 12 14  15[0 0 0 0 0 0 0 0 | 0]  16[76]
  • 15 (RENDER_TARGET_FORMATS): no render target. 16 (DEPTH_STENCIL_FORMAT): 0x76 = 118, the console's D16_UNORM_S8_UINT. They are the title's depth-only mesh pipelines.
  • translated_mesh_stream gives the real pipeline the PC's formats (pc_target_format: 118 → D24_UNORM_S8_UINT). fallback_stream copied the title's as they were, so the driver refused the stand-in, go_background returned None and 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.
  • The title makes hundreds of these as its world loads, not three: the no stand-in pipeline line is capped at 3.

Fix (on top of the first one): the stand-in's RENDER_TARGET_FORMATS and DEPTH_STENCIL_FORMAT go through pc_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)
diff --git a/crates/xcl/src/hle/d3d12x/real.rs b/crates/xcl/src/hle/d3d12x/real.rs
index 189863d..ed2ef8b 100644
--- a/crates/xcl/src/hle/d3d12x/real.rs
+++ b/crates/xcl/src/hle/d3d12x/real.rs
@@ -4313,6 +4313,29 @@ mod mesh_slot_tests {
         assert_eq!(stand_in(&stream(&[(24, &ms), (2, &ps)])), vec![(25, dms.0, dms.1), (2, dps.0, dps.1)]);
         assert_eq!(stand_in(&stream(&[(24, &as_), (25, &ms), (2, &ps)])), vec![(24, 0, 0), (25, dms.0, dms.1), (2, dps.0, dps.1)]);
     }
+
+    /// The stand-in's target formats are the PC's, as the real pipeline's: the console's
+    /// D16_UNORM_S8_UINT (118) is D24_UNORM_S8_UINT (45) and a B4G4R4A4 target (115) is
+    /// R8G8B8A8 (28). With the console's the driver refuses the stand-in.
+    #[test]
+    fn the_stand_in_of_a_stream_has_the_pcs_target_formats() {
+        use super::{fallback_stream, stream_subobjects};
+        let mut s = Vec::new();
+        // RENDER_TARGET_FORMATS: 8 formats and their number
+        s.extend_from_slice(&15u32.to_le_bytes());
+        for f in [115u32, 28, 0, 0, 0, 0, 0, 0, 2] {
+            s.extend_from_slice(&f.to_le_bytes());
+        }
+        // DEPTH_STENCIL_FORMAT
+        s.extend_from_slice(&16u32.to_le_bytes());
+        s.extend_from_slice(&118u32.to_le_bytes());
+        let desc: [usize; 2] = [s.len(), s.as_ptr() as usize];
+        let (out, _) = unsafe { fallback_stream(desc.as_ptr() as *const u8) }.expect("a stand-in stream");
+        let subs = stream_subobjects(&out).unwrap();
+        let word = |p: &[u8], k: usize| u32::from_le_bytes(p[4 * k..4 * k + 4].try_into().unwrap());
+        assert_eq!((subs[0].0, word(subs[0].1, 0), word(subs[0].1, 1), word(subs[0].1, 8)), (15, 28, 28, 2));
+        assert_eq!((subs[1].0, word(subs[1].1, 0)), (16, 45));
+    }
 }
 
 /// CreatePipelineState with a console MS: Some(hr) when it was a console mesh pipeline
@@ -4518,6 +4541,16 @@ unsafe fn fallback_stream(desc: *const u8) -> Option<(Vec<u8>, [usize; 2])> {
             }
             3 | 4 | 5 | 24 => put(&mut buf, &[]),
             25 => put(&mut buf, &dm?.0),
+            // RENDER_TARGET_FORMATS, DEPTH_STENCIL_FORMAT: the console's formats as the PC's, as
+            // the real pipeline gets them (`translated_mesh_stream`) – with a console-only one
+            // (a retail game's depth-only mesh pipelines: D16_UNORM_S8_UINT) the driver refuses
+            // the stand-in (E_INVALIDARG) and the pipeline is built in the title's call
+            15 | 16 => {
+                for k in 0..if ty == 15 { 8 } else { 1 } {
+                    let f = super::device_x::pc_target_format(u32::from_le_bytes(buf[at + 4 * k..at + 4 * k + 4].try_into().ok()?));
+                    buf[at + 4 * k..at + 4 * k + 4].copy_from_slice(&f.to_le_bytes());
+                }
+            }
             12 | 19 => buf[at..at + 16].fill(0), // input layout, cached PSO
             7 => buf[at..at + 32].fill(0),        // stream output
             _ => {}

Tested

  • The same machine as above (RTX 5060 Ti 16 GB, driver 32.0.16.2114, Ryzen 7 7700, Windows 11 Pro 26300, DXC 1.8.2502.11), release, main f4ce27c + this PR 24635db + 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.
refused stand-in streams background_pipelines (built, failed, pending) translated_pipelines
first fix only over 500 (first at 44 s, #500 at 66 s) 14, 0, 83 480 754 (so about 740 made in the title's call)
both fixes 4 (all at 49 s) 846, 0, 83 392 846 (all in the background)
  • cargo 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 new the_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

stand-in stream refused (0x80070057): … 15[43 0 0 0 0 0 0 0 | 1]  16[0]

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

  • AMD, wave64, the debug layer with the second fix. Chrysana, if you rerun your 90 s protocol with both diffs, the three lines at 52.56 s should be gone.
  • Whether the pipelines draw correctly once bound: the run ends at the stop of #505 before anything of the world is on screen, as before.

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.

**@⁠NishantParajuli** on GitHub · 2026-11-24 04:28 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7122058140) Follow-up to [my report above](https://github.com/ivall/xcl/pull/541#issuecomment-7121336513), 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: ``` stand-in stream refused (0x80070057): 0 25 2 3 4 5 8 9 10 21 17 12 14 15[0 0 0 0 0 0 0 0 | 0] 16[76] ``` - `15` (RENDER_TARGET_FORMATS): no render target. `16` (DEPTH_STENCIL_FORMAT): `0x76` = 118, the console's `D16_UNORM_S8_UINT`. They are the title's depth-only mesh pipelines. - `translated_mesh_stream` gives the real pipeline the PC's formats (`pc_target_format`: 118 → `D24_UNORM_S8_UINT`). `fallback_stream` copied the title's as they were, so the driver refused the stand-in, `go_background` returned `None` and 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. - The title makes hundreds of these as its world loads, not three: the `no stand-in pipeline` line is capped at 3. **Fix** (on top of the first one): the stand-in's `RENDER_TARGET_FORMATS` and `DEPTH_STENCIL_FORMAT` go through `pc_target_format`, as the real pipeline's do. The test needs no DXC or GPU. <details><summary>diff (crates/xcl/src/hle/d3d12x/real.rs, +33 with the test)</summary> ```diff diff --git a/crates/xcl/src/hle/d3d12x/real.rs b/crates/xcl/src/hle/d3d12x/real.rs index 189863d..ed2ef8b 100644 --- a/crates/xcl/src/hle/d3d12x/real.rs +++ b/crates/xcl/src/hle/d3d12x/real.rs @@ -4313,6 +4313,29 @@ mod mesh_slot_tests { assert_eq!(stand_in(&stream(&[(24, &ms), (2, &ps)])), vec![(25, dms.0, dms.1), (2, dps.0, dps.1)]); assert_eq!(stand_in(&stream(&[(24, &as_), (25, &ms), (2, &ps)])), vec![(24, 0, 0), (25, dms.0, dms.1), (2, dps.0, dps.1)]); } + + /// The stand-in's target formats are the PC's, as the real pipeline's: the console's + /// D16_UNORM_S8_UINT (118) is D24_UNORM_S8_UINT (45) and a B4G4R4A4 target (115) is + /// R8G8B8A8 (28). With the console's the driver refuses the stand-in. + #[test] + fn the_stand_in_of_a_stream_has_the_pcs_target_formats() { + use super::{fallback_stream, stream_subobjects}; + let mut s = Vec::new(); + // RENDER_TARGET_FORMATS: 8 formats and their number + s.extend_from_slice(&15u32.to_le_bytes()); + for f in [115u32, 28, 0, 0, 0, 0, 0, 0, 2] { + s.extend_from_slice(&f.to_le_bytes()); + } + // DEPTH_STENCIL_FORMAT + s.extend_from_slice(&16u32.to_le_bytes()); + s.extend_from_slice(&118u32.to_le_bytes()); + let desc: [usize; 2] = [s.len(), s.as_ptr() as usize]; + let (out, _) = unsafe { fallback_stream(desc.as_ptr() as *const u8) }.expect("a stand-in stream"); + let subs = stream_subobjects(&out).unwrap(); + let word = |p: &[u8], k: usize| u32::from_le_bytes(p[4 * k..4 * k + 4].try_into().unwrap()); + assert_eq!((subs[0].0, word(subs[0].1, 0), word(subs[0].1, 1), word(subs[0].1, 8)), (15, 28, 28, 2)); + assert_eq!((subs[1].0, word(subs[1].1, 0)), (16, 45)); + } } /// CreatePipelineState with a console MS: Some(hr) when it was a console mesh pipeline @@ -4518,6 +4541,16 @@ unsafe fn fallback_stream(desc: *const u8) -> Option<(Vec<u8>, [usize; 2])> { } 3 | 4 | 5 | 24 => put(&mut buf, &[]), 25 => put(&mut buf, &dm?.0), + // RENDER_TARGET_FORMATS, DEPTH_STENCIL_FORMAT: the console's formats as the PC's, as + // the real pipeline gets them (`translated_mesh_stream`) – with a console-only one + // (a retail game's depth-only mesh pipelines: D16_UNORM_S8_UINT) the driver refuses + // the stand-in (E_INVALIDARG) and the pipeline is built in the title's call + 15 | 16 => { + for k in 0..if ty == 15 { 8 } else { 1 } { + let f = super::device_x::pc_target_format(u32::from_le_bytes(buf[at + 4 * k..at + 4 * k + 4].try_into().ok()?)); + buf[at + 4 * k..at + 4 * k + 4].copy_from_slice(&f.to_le_bytes()); + } + } 12 | 19 => buf[at..at + 16].fill(0), // input layout, cached PSO 7 => buf[at..at + 32].fill(0), // stream output _ => {} ``` </details> **Tested** - The same machine as above (RTX 5060 Ti 16 GB, driver 32.0.16.2114, Ryzen 7 7700, Windows 11 Pro 26300, DXC 1.8.2502.11), release, `main` `f4ce27c` + this PR `24635db` + 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. | | refused stand-in streams | `background_pipelines` (built, failed, pending) | `translated_pipelines` | |---|---|---|---| | first fix only | **over 500** (first at 44 s, #500 at 66 s) | 14, 0, 83 480 | 754 (so about 740 made in the title's call) | | both fixes | **4** (all at 49 s) | 846, 0, 83 392 | 846 (all in the background) | - `cargo 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 new `the_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** ``` stand-in stream refused (0x80070057): … 15[43 0 0 0 0 0 0 0 | 1] 16[0] ``` 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** - AMD, wave64, the debug layer with the second fix. Chrysana, if you rerun your 90 s protocol with both diffs, the three lines at 52.56 s should be gone. - Whether the pipelines draw correctly once bound: the run ends at the stop of #505 before anything of the world is on screen, as before. **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.
Author
Owner

@⁠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_stream decided "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_background fell 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 in fallback_stream (+17 lines with the helper), with the test the_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:

  • 60 s run, XCL_FRAME_DUMP=120, A presses 14/17/21: 0 no stand-in pipeline lines (the refusals that made 24635db build everything in the call), steady 60 presents / 2 s, no device removal. First bright capture frame 980 — main's number in the same schedule, where 24635db had 1100.
  • Full suite cargo test --workspace --no-fail-fast -- --test-threads=1: 689 passed, 0 failed, 41 ignored (2 SKIPPED, no wave64 here).
  • Smoke blocks (main 9ce2070 + head ad2118d) 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 where 24635db stayed black — the stand-in should now be accepted there too. The three no stand-in lines 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.

**@⁠ryosen0** on GitHub · 2026-11-24 04:32 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7122118091) @⁠NishantParajuli @⁠Chrysana — the stand-in fix is in as **`ad2118d`**, and your diagnosis was exactly right. `fallback_stream` decided "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_background` fell 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 in `fallback_stream` (+17 lines with the helper), with the test `the_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`:** - 60 s run, `XCL_FRAME_DUMP=120`, A presses 14/17/21: **0 `no stand-in pipeline` lines** (the refusals that made `24635db` build everything in the call), steady 60 presents / 2 s, no device removal. First bright capture **frame 980** — main's number in the same schedule, where `24635db` had 1100. - Full suite `cargo test --workspace --no-fail-fast -- --test-threads=1`: **689 passed, 0 failed, 41 ignored** (2 SKIPPED, no wave64 here). - Smoke blocks (main `9ce2070` + head `ad2118d`) 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 where `24635db` stayed black — the stand-in should now be accepted there too. The three `no stand-in` lines 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.
Author
Owner

@⁠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_stream and the D3D12 driver on 24635db and ad2118d.

  • A console mesh shader in the AS slot returned E_INVALIDARG with 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 returned E_INVALIDARG with 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=1 passed 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.

**@⁠thehollowedone** on GitHub · 2026-11-24 04:36 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7122169279) Native RTX 3080 Ti cross-check for the [requested retest](https://github.com/ivall/xcl/pull/541#issuecomment-7122118091). I ran the same synthetic stream through XCL’s `standin_stream` and the D3D12 driver on [`24635db`](https://github.com/ivall/xcl/commit/24635db4d250ea30631d892c0a94ba35edd9bb65) and [`ad2118d`](https://github.com/ivall/xcl/commit/ad2118d5fcdbae41b522757dd327b72a2761677c). - A console mesh shader in the AS slot returned `E_INVALIDARG` with 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 returned `E_INVALIDARG` with message 685. This independently reproduces the [depth-format follow-up](https://github.com/ivall/xcl/pull/541#issuecomment-7122058140) 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=1` passed 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.
Author
Owner

@⁠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 on ad2118d just above (E_INVALIDARG, message 685). The three lines at 52.56 s were that case, not the first one.

**@⁠NishantParajuli** on GitHub · 2026-11-24 04:37 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7122195743) 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](https://github.com/ivall/xcl/pull/541#issuecomment-7122058140), and thehollowedone reproduced it on `ad2118d` just above (`E_INVALIDARG`, message 685). The three lines at 52.56 s were that case, not the first one.
Author
Owner

@⁠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 on ad2118d now 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, returned S_OK with 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=1 passed 1/1 each for scratch_native_moved_mesh_stand_in and the_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.

**@⁠thehollowedone** on GitHub · 2026-11-24 04:50 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7122389972) Confirmed the target-format follow-up on [`303b346`](https://github.com/ivall/xcl/commit/303b34608e23264fbda310d7cd6c40ab2f0eb037). The same depth-only stream with console format 118 that [failed on `ad2118d`](https://github.com/ivall/xcl/pull/541#issuecomment-7122169279) now 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, returned `S_OK` with 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=1` passed 1/1 each for `scratch_native_moved_mesh_stand_in` and `the_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.
Author
Owner

@⁠ryosen0 on GitHub · 2026-11-24 04:50 UTC · original

@⁠NishantParajuli the second fix is in as 303b346 — the stand-in's RENDER_TARGET_FORMATS / DEPTH_STENCIL_FORMAT now go through pc_target_format, exactly as your follow-up proposed, with the stream-level test the_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:

  • Full suite cargo test --workspace --no-fail-fast -- --test-threads=1: 690 passed, 0 failed, 41 ignored (2 SKIPPED, no wave64).
  • 120 s run with scripted presses into the load window (XCL_FRAME_DUMP=240): 0 no stand-in pipeline lines, 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.
  • Smoke blocks (main 9ce2070 + head 303b346) refreshed in the description; both steady 60/2 s.

@⁠thehollowedone your native pair (message 685 before / S_OK with the mapping) matches the stream-level assertions — if you have a moment, the same fixture on 303b346 end-to-end would close the loop on the driver side.

@⁠Chrysana 303b346 now 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 earlier a163648 captures 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.

**@⁠ryosen0** on GitHub · 2026-11-24 04:50 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7122390354) @⁠NishantParajuli the second fix is in as **`303b346`** — the stand-in's `RENDER_TARGET_FORMATS` / `DEPTH_STENCIL_FORMAT` now go through `pc_target_format`, exactly as your follow-up proposed, with the stream-level test `the_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`:** - Full suite `cargo test --workspace --no-fail-fast -- --test-threads=1`: **690 passed, 0 failed, 41 ignored** (2 SKIPPED, no wave64). - 120 s run with scripted presses into the load window (`XCL_FRAME_DUMP=240`): **0 `no stand-in pipeline` lines**, 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. - Smoke blocks (main `9ce2070` + head `303b346`) refreshed in the description; both steady 60/2 s. @⁠thehollowedone your native pair (message 685 before / `S_OK` with the mapping) matches the stream-level assertions — if you have a moment, the same fixture on `303b346` end-to-end would close the loop on the driver side. @⁠Chrysana `303b346` now 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 earlier `a163648` captures 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.
Author
Owner

@⁠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’s standin_stream twice with an R8G8B8A8_UINT render target. With BlendEnable set, native D3D12 returned E_INVALIDARG and message 676 (OM_RENDER_TARGET_DOES_NOT_SUPPORT_BLENDING). Changing only BlendEnable to false returned S_OK with 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=1 passed 1/1, zero skips. Local build used e50836b with #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.

**@⁠thehollowedone** on GitHub · 2026-11-24 05:32 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7123046188) One more synthetic driver case for [`303b346`](https://github.com/ivall/xcl/commit/303b34608e23264fbda310d7cd6c40ab2f0eb037). I passed the same moved-MS stream through XCL’s `standin_stream` twice with an `R8G8B8A8_UINT` render target. With `BlendEnable` set, native D3D12 returned `E_INVALIDARG` and message **676** (`OM_RENDER_TARGET_DOES_NOT_SUPPORT_BLENDING`). Changing only `BlendEnable` to false returned `S_OK` with 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=1` passed 1/1, zero skips. Local build used [`e50836b`](https://github.com/ivall/xcl/commit/e50836bdf6f5c026f281d545ed86fb2f07ba6e6a) with #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.
Author
Owner

@⁠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 main does 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 on main), so a main-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):

baseline db065d8 this PR on the port a4d6709
frames shown 1487 1469
console MS in the AS slot refused 40 0
last fps line 1200 frames, 28.2 fps / 300 1200 frames, 29.6 fps / 300
draws through translated pipelines 19 732 19 993
dispatches / skipped 1024 / 0 1024 / 0
stall watchdog, device removals, crashes 0 / 0 / 0 0 / 0 / 0

So on this host the change does what its title says: the 40 mesh pipeline with its MS … in the AS slot – refused become translations, and the frame count is unchanged within noise (−1.2 %) with a slightly better fps. (The two local cherry-picks have different hashes — 656333f for the cold pair, a4d6709 for the warm pair; both are this PR's seven commits on top of db065d8.)

First run on a fresh data root (cold DXC cache, 90 s) — said here so the cold numbers are not read as a regression:

baseline this PR on the port
frames shown 1392 393
refused 40 0
stall watchdog 0 1 (the deliberate crash was skipped, the title went on)

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.

**@⁠mikebuckets171** on GitHub · 2026-11-24 05:44 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7123229888) **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 `main` does 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 on `main`), so a `main`-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): | | baseline `db065d8` | this PR on the port `a4d6709` | |---|---|---| | frames shown | 1487 | 1469 | | console MS in the AS slot refused | **40** | **0** | | last fps line | 1200 frames, 28.2 fps / 300 | 1200 frames, 29.6 fps / 300 | | draws through translated pipelines | 19 732 | 19 993 | | dispatches / skipped | 1024 / 0 | 1024 / 0 | | stall watchdog, device removals, crashes | 0 / 0 / 0 | 0 / 0 / 0 | So on this host the change does what its title says: the 40 `mesh pipeline with its MS … in the AS slot – refused` become translations, and the frame count is unchanged within noise (−1.2 %) with a slightly better fps. (The two local cherry-picks have different hashes — `656333f` for the cold pair, `a4d6709` for the warm pair; both are this PR's seven commits on top of `db065d8`.) **First run on a fresh data root** (cold DXC cache, 90 s) — said here so the cold numbers are not read as a regression: | | baseline | this PR on the port | |---|---|---| | frames shown | 1392 | 393 | | refused | 40 | 0 | | stall watchdog | 0 | **1** (the deliberate crash was skipped, the title went on) | 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.
Author
Owner

@⁠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 303b346 additionally 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.

**@⁠ryosen0** on GitHub · 2026-11-24 05:46 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7123256086) @⁠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 `303b346` additionally 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.
Author
Owner

@⁠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: main f4ce27c + #708 + #242 + #501 + #551 + this PR at 303b346, 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, XMemMapPhysicalPagesScatter with a null page array treated as unmap, and console descriptor handles translated in ClearUnorderedAccessViewUint/Float on regular lists. XCL_NETWORK=0, XCL_PSO_WAIT_MS=50, scripted A presses at 25/35/45/55 s, 300 s runs.

build run end mesh pipeline … refused
with this PR 17 device removed 0x887a0006 at 167 s 0
with this PR 19 device removed 0x887a0006 at 160 s 0
this PR's merge reverted 20 +0x23cf683 (heartbeat) at 170 s, no device removal 40
before merging this PR, #242, #501, #551 (a local equivalent of #242) 16 +0x23cf683 (heartbeat) at 189 s, no device removal 40

The 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):

  • Device state Error_DMA_PageFault, engine reset
  • Page fault: GPU VA 0x0000000000000000, engine Graphics, client Graphics Processing Cluster, access Read, "Failed to translate the virtual address"
  • Faulted warp: shader type Mesh (Aftermath shader hash 0x59fb81fcf0e9f094, 8.25 KiB of microcode), PC 0x4e0, MMU fault

There 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.

**@⁠spiedz** on GitHub · 2026-11-24 05:46 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7123261103) **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: `main` `f4ce27c` + #708 + #242 + #501 + #551 + this PR at `303b346`, 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, `XMemMapPhysicalPagesScatter` with a null page array treated as unmap, and console descriptor handles translated in `ClearUnorderedAccessViewUint/Float` on regular lists. `XCL_NETWORK=0`, `XCL_PSO_WAIT_MS=50`, scripted A presses at 25/35/45/55 s, 300 s runs. | build | run | end | `mesh pipeline … refused` | |---|---|---|---| | with this PR | 17 | device removed `0x887a0006` at 167 s | 0 | | with this PR | 19 | device removed `0x887a0006` at 160 s | 0 | | this PR's merge reverted | 20 | `+0x23cf683` (heartbeat) at 170 s, no device removal | 40 | | before merging this PR, #242, #501, #551 (a local equivalent of #242) | 16 | `+0x23cf683` (heartbeat) at 189 s, no device removal | 40 | The 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): - Device state `Error_DMA_PageFault`, engine reset - Page fault: GPU VA `0x0000000000000000`, engine Graphics, client Graphics Processing Cluster, access Read, "Failed to translate the virtual address" - Faulted warp: shader type **Mesh** (Aftermath shader hash `0x59fb81fcf0e9f094`, 8.25 KiB of microcode), PC `0x4e0`, MMU fault There 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.
Author
Owner

@⁠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 303b346 on 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:

run end notes
1 device removed 0x887a0006 at t≈116.9 s draw rate climbing 540→700 / 2 s, local VRAM 6.4→7.3 GB in the last 6 s; first error surfaced in a title-texture upload copy
2 clean exit 150 s 60 presents / 2 s to the end
3 clean exit 150 s 60 presents / 2 s to the end
4 clean exit 150 s 60 presents / 2 s to the end

All four: 128 BCPack refusals (BC1 8 / BC5 100 / BC7 20), 0 AS slot … refused. One caveat stated plainly: XCL_PSO_WAIT_MS does 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.

**@⁠ryosen0** on GitHub · 2026-11-24 06:00 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7123477193) @⁠spiedz Important addition: **the device removal reproduces on this machine too, intermittently, in Series X mode with none of your local stack** — plain `303b346` on 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`: | run | end | notes | |---|---|---| | 1 | **device removed `0x887a0006` at t≈116.9 s** | draw rate climbing 540→700 / 2 s, local VRAM 6.4→7.3 GB in the last 6 s; first error surfaced in a title-texture upload copy | | 2 | clean exit 150 s | 60 presents / 2 s to the end | | 3 | clean exit 150 s | 60 presents / 2 s to the end | | 4 | clean exit 150 s | 60 presents / 2 s to the end | All four: 128 BCPack refusals (BC1 8 / BC5 100 / BC7 20), 0 `AS slot … refused`. One caveat stated plainly: `XCL_PSO_WAIT_MS` does 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.
Author
Owner

@⁠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_DUMP saving 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.

120 s, warm root port db065d8 port + this PR ee3c780
frames presented 2255 2576
console MS refusals (… in the AS slot – refused) 40 0
translated draws / dispatches reached 32,768 / 1,621 41,914 / 2,048
2 s windows with 0 presents 18 of 59 13 of 59
dump pairs compared 64 75
pairs where the picture changed >1 % 1 1
distinct pictures seen black, then mean luminance 41.9 / 17 brightness bands the same two
watchdog / crash / device removal 0 / 0 / 0 0 / 0 / 0

What this says about the PR, and what it does not:

  • What changes: the refusals go to zero, presents rise 2255 → 2576 (+14 % on the same warm root), the translated-draw count rises 32,768 → 41,914, and there are fewer stalls with no presents (18/59 → 13/59). The pipeline work the refusals were skipping is being done.
  • What does not change: the presented picture. Both runs reach the same image (identical mean luminance and brightness-band count) and then re-present it unchanged — 63 of 64 dump pairs on the baseline, 74 of 75 with the PR. So no visible-regression risk from this head on this host, and equally: this host cannot yet show the fix drawing the mesh content it now accepts.
  • A correction of my own framing: because a title here re-presents a still picture for a long stretch, my earlier frame counts (including the 300 s / 7312-frame run) are liveness evidence — present loop alive, exits clean, relaunch on the same data root fine — not evidence of animated gameplay. A 180 s run of this head did show a content-changing stretch (frames ~2720–3050, 46–100 % of sampled pixels per second, settling on a different picture), so the title does move on, but I have not established what makes it move, and XCL_REMOTE_INPUT carries 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.

**@⁠mikebuckets171** on GitHub · 2026-11-24 06:41 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7124194977) 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_DUMP` saving 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. | 120 s, warm root | port `db065d8` | port + this PR `ee3c780` | |---|---|---| | frames presented | 2255 | **2576** | | console MS refusals (`… in the AS slot – refused`) | 40 | **0** | | translated draws / dispatches reached | 32,768 / 1,621 | **41,914 / 2,048** | | 2 s windows with 0 presents | 18 of 59 | **13 of 59** | | dump pairs compared | 64 | 75 | | pairs where the picture changed >1 % | 1 | 1 | | distinct pictures seen | black, then mean luminance 41.9 / 17 brightness bands | **the same two** | | watchdog / crash / device removal | 0 / 0 / 0 | 0 / 0 / 0 | What this says about the PR, and what it does not: - **What changes:** the refusals go to zero, presents rise 2255 → 2576 (+14 % on the same warm root), the translated-draw count rises 32,768 → 41,914, and there are fewer stalls with no presents (18/59 → 13/59). The pipeline work the refusals were skipping is being done. - **What does not change:** the presented picture. Both runs reach the same image (identical mean luminance and brightness-band count) and then re-present it unchanged — 63 of 64 dump pairs on the baseline, 74 of 75 with the PR. So no visible-regression risk from this head on this host, and equally: this host cannot yet show the fix *drawing* the mesh content it now accepts. - A correction of my own framing: because a title here re-presents a still picture for a long stretch, my earlier frame counts (including the 300 s / 7312-frame run) are **liveness** evidence — present loop alive, exits clean, relaunch on the same data root fine — not evidence of animated gameplay. A 180 s run of this head did show a content-changing stretch (frames ~2720–3050, 46–100 % of sampled pixels per second, settling on a different picture), so the title does move on, but I have not established what makes it move, and `XCL_REMOTE_INPUT` carries 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.
Author
Owner

@⁠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

  • RTX 5060 Ti 16 GB (wave32), driver 621.24; Intel Core Ultra 5 225F; 32 GB; Windows 11 Pro 26200; Rust 1.100.0 stable-x86_64-pc-windows-msvc; DXC 1.8.2505.32 (SDK 10.0.28000); release
  • A: main e50836b. B: main e50836b + this PR (303b346), local merge without conflicts (c8919b5).
  • cargo test --workspace --release --no-fail-fast -- --test-threads=4 on B: 710 passed, 0 failed, 41 ignored; SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware
  • Retail title 1.0.2.1, device_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).
run frames device removed crash AS slot … refused translated as MS local video memory: peak / first ≥ 8 GB
A1 1047 – – 40 0 8040 MB / 146 s
B1 1105 – – 0 4 12960 MB / 130 s
A2 966 – – 40 0 12755 MB / 126 s
B2 831 – – 0 5 12850 MB / 120 s
A3 922 – – 40 0 12906 MB / 124 s
B3 877 – – 0 5 12783 MB / 120 s
  • With this PR, 3 no stand-in pipeline lines per run (as @⁠Chrysana saw), none without it.
  • An observation, not a cause: on this card local video memory passes 8 GB at 120–146 s with or without this PR (a little earlier with it), which is the window of the removals on the 8 GB cards above (116 s, 160 s, 167 s). @⁠spiedz's fault is a page fault in a mesh shader, so this does not explain it; it only says that the same phase needs more than 8 GB here.

Regression run (A3 and B3; the other four blocks are the same shape, kept locally)

xcl-smoke v1
commit: e50836bdf6f5c026f281d545ed86fb2f07ba6e6a
gpu: NVIDIA GeForce RTX 5060 Ti
title: GTAVI
seconds: 150
exit: 0x0
frames shown: 922 (PresentX 922)
presents per 2 s (last 3): 5 6 7
device removals: 0
crashes: 0
peak commit: 25821 MB
xcl-smoke v1
commit: c8919b55e21cd37020a20ae5ce662715b369af29
gpu: NVIDIA GeForce RTX 5060 Ti
title: GTAVI
seconds: 150
exit: 0x0
frames shown: 877 (PresentX 878)
presents per 2 s (last 3): 7 7 7
device removals: 0
crashes: 0
peak commit: 26570 MB

Not tested

  • 8 GB cards (no removal to reproduce here); the Series S profile with this PR; more than three runs per side, so a removal rarer than 1 in 3 would not show; AMD GPUs and CPUs.

AI use

  • Claude Code (Claude Opus 5.5) ran the builds, tests and runs and wrote this report; checked by mrejecutor.
**@⁠MrEjecutor** on GitHub · 2026-11-24 06:53 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7124390766) **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** - RTX 5060 Ti 16 GB (wave32), driver 621.24; Intel Core Ultra 5 225F; 32 GB; Windows 11 Pro 26200; Rust 1.100.0 `stable-x86_64-pc-windows-msvc`; DXC 1.8.2505.32 (SDK 10.0.28000); release - A: `main` `e50836b`. B: `main` `e50836b` + this PR (`303b346`), local merge without conflicts (`c8919b5`). - `cargo test --workspace --release --no-fail-fast -- --test-threads=4` on B: 710 passed, 0 failed, 41 ignored; `SKIPPED` (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` - Retail title 1.0.2.1, `device_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). | run | frames | device removed | crash | `AS slot … refused` | translated as MS | local video memory: peak / first ≥ 8 GB | |---|---|---|---|---|---|---| | A1 | 1047 | – | – | 40 | 0 | 8040 MB / 146 s | | B1 | 1105 | – | – | 0 | 4 | 12960 MB / 130 s | | A2 | 966 | – | – | 40 | 0 | 12755 MB / 126 s | | B2 | 831 | – | – | 0 | 5 | 12850 MB / 120 s | | A3 | 922 | – | – | 40 | 0 | 12906 MB / 124 s | | B3 | 877 | – | – | 0 | 5 | 12783 MB / 120 s | - With this PR, 3 `no stand-in pipeline` lines per run (as @⁠Chrysana saw), none without it. - An observation, not a cause: on this card local video memory passes 8 GB at 120–146 s with or without this PR (a little earlier with it), which is the window of the removals on the 8 GB cards above (116 s, 160 s, 167 s). @⁠spiedz's fault is a page fault in a mesh shader, so this does not explain it; it only says that the same phase needs more than 8 GB here. **Regression run** (A3 and B3; the other four blocks are the same shape, kept locally) ``` xcl-smoke v1 commit: e50836bdf6f5c026f281d545ed86fb2f07ba6e6a gpu: NVIDIA GeForce RTX 5060 Ti title: GTAVI seconds: 150 exit: 0x0 frames shown: 922 (PresentX 922) presents per 2 s (last 3): 5 6 7 device removals: 0 crashes: 0 peak commit: 25821 MB ``` ``` xcl-smoke v1 commit: c8919b55e21cd37020a20ae5ce662715b369af29 gpu: NVIDIA GeForce RTX 5060 Ti title: GTAVI seconds: 150 exit: 0x0 frames shown: 877 (PresentX 878) presents per 2 s (last 3): 7 7 7 device removals: 0 crashes: 0 peak commit: 26570 MB ``` **Not tested** - 8 GB cards (no removal to reproduce here); the Series S profile with this PR; more than three runs per side, so a removal rarer than 1 in 3 would not show; AMD GPUs and CPUs. **AI use** - Claude Code (Claude Opus 5.5) ran the builds, tests and runs and wrote this report; checked by mrejecutor.
Author
Owner

@⁠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-msvc with clang-cl / lld-link and an xwin SDK, Rust 1.100.0, debug. Head 303b346 against its base on main 9ce2070, the same way on both: every lib test whose name matches mesh|stand_in|fallback|as_slot|pso|ngg run alone in its own process (60 s cap), plus tests/gpu_pso_e2e.rs. No game files.

base 9ce2070 head 303b346
selected lib tests 43 passed, 2 failed, 1 ignored 49 passed, 2 failed, 1 ignored
gpu_pso_e2e 7 / 7 7 / 7
  • The 6 tests this PR adds all pass on D3DMetal: a_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.
  • No test changed outcome between base and head. The 2 failures are the same on both:
    • 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 main shows no frames on this host; mikebuckets171's in-title numbers for the Mac port + this PR are on #258), no release build, no Windows.

**@⁠shortside** on GitHub · 2026-11-24 06:55 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7124423011) 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-msvc` with clang-cl / lld-link and an xwin SDK, Rust 1.100.0, debug. Head `303b346` against its base on `main` `9ce2070`, the same way on both: every lib test whose name matches `mesh|stand_in|fallback|as_slot|pso|ngg` run alone in its own process (60 s cap), plus `tests/gpu_pso_e2e.rs`. No game files. | | base `9ce2070` | head `303b346` | |---|---|---| | selected lib tests | 43 passed, 2 failed, 1 ignored | 49 passed, 2 failed, 1 ignored | | `gpu_pso_e2e` | 7 / 7 | 7 / 7 | - The 6 tests this PR adds all pass on D3DMetal: `a_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`. - No test changed outcome between base and head. The 2 failures are the same on both: - `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 `main` shows no frames on this host; mikebuckets171's in-title numbers for the Mac port + this PR are on #258), no release build, no Windows.
Author
Owner

@⁠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:

  1. Fault tally now 1/6 — two more 150 s runs of plain 303b346 tonight, 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.

  2. 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_PageFault at 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 with XCL_UMA_MB lowered, 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 06:56 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7124454674) Two additions to the 8 GB picture, from the same 3060 Ti that had the 1-in-4 removal above: 1. **Fault tally now 1/6** — two more 150 s runs of plain `303b346` tonight, 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. 2. **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_PageFault` at 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 with `XCL_UMA_MB` lowered, 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.
Author
Owner

@⁠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 now 6bd8f64, 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=4 on 6bd8f64 → 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:18 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7124850091) Rebased onto current main (`a1672ef`, which now includes #866's late-release change) — head is now `6bd8f64`, 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=4` on `6bd8f64` → **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.
Author
Owner

@⁠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 of 6bd8f64 on 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 303b346 went 1 removal in 6 runs (the t≈117 s 0x887a0006). 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 last Release until 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/Float and 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.

**@⁠ryosen0** on GitHub · 2026-11-24 07:46 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7125354789) 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 of `6bd8f64` on 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 `303b346` went 1 removal in 6 runs (the t≈117 s `0x887a0006`). 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 last `Release` until 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/Float` and 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.
Author
Owner

@⁠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 6bd8f64 integrated on 1ec4c98. At 44.493–44.495 s three different workers each logged no stand-in pipeline (0x80070057), then logged a mesh shader translated from the AS slot on that same worker. The three shader hashes were e0e8f9e1912dfb24, c76ad7b78c576175 and bdc062626d48267d. 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.

**@⁠badoomtch** on GitHub · 2026-11-24 08:03 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7125666285) On an RTX 5080 (Windows, driver 610.88) I still see three stand-in failures with the slot-24 change from `6bd8f64` integrated on `1ec4c98`. At 44.493–44.495 s three different workers each logged `no stand-in pipeline (0x80070057)`, then logged a mesh shader translated from the AS slot on that same worker. The three shader hashes were `e0e8f9e1912dfb24`, `c76ad7b78c576175` and `bdc062626d48267d`. 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.
Author
Owner

@⁠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 --stable pairs the seven commits of the old head with the seven of 6bd8f64 identically:

patch-id old head new head
4bdc65e5… d3bd51d 301adae
17781219… b884f3c d42b820
24ff96a5… 2a2cc6d 2915f22
252acd11… 5dc4e27 70f9185
79f977a4… 24635db 48c1517
cade4ece… ad2118d 7654a2a
c45b0572… 303b346 6bd8f64

So my two Mac runs posted here (the xcl-smoke pair 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 main build
does 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 db065d8 plus
301adae…6bd8f64, 120 s each side, fresh data roots, XCL_FRAME_DUMP every 30th frame), which also tests
whether the seven commits still transplant cleanly now that main has #866 and #636 in it. The result goes
in a follow-up comment here.

**@⁠mikebuckets171** on GitHub · 2026-11-24 08:04 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7125687334) Mac bench, on the rebase: the change set is byte-for-byte the one I already ran here. `git patch-id --stable` pairs the seven commits of the old head with the seven of `6bd8f64` identically: | patch-id | old head | new head | |---|---|---| | `4bdc65e5…` | `d3bd51d` | `301adae` | | `17781219…` | `b884f3c` | `d42b820` | | `24ff96a5…` | `2a2cc6d` | `2915f22` | | `252acd11…` | `5dc4e27` | `70f9185` | | `79f977a4…` | `24635db` | `48c1517` | | `cade4ece…` | `ad2118d` | `7654a2a` | | `c45b0572…` | `303b346` | `6bd8f64` | So my two Mac runs posted here (the `xcl-smoke` pair 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 `main` build does 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 `db065d8` plus `301adae…6bd8f64`, 120 s each side, fresh data roots, `XCL_FRAME_DUMP` every 30th frame), which also tests whether the seven commits still transplant cleanly now that `main` has #866 and #636 in it. The result goes in a follow-up comment here.
Author
Owner

@⁠mikebuckets171 on GitHub · 2026-11-24 08:09 UTC · original

Follow-up: the Mac pair against the rebased head, so the numbers here describe 6bd8f64 and not the old head.

The seven commits transplant onto the Mac port cleanly (the port at db065d8 plus 301adae d42b820 2915f22 70f9185 48c1517 7654a2a 6bd8f64, no conflicts) even though main has since taken #866 and #636. 120 s each
side, fresh data root per side (cold, not the warm root my earlier pair used), same bottle, DXC and title:

port alone port + #541 (rebased)
exit 0x0 0x0
frames shown 2218 2245
console-MS refusals in the AS slot 40 0
translated draws reached 32,768 32,768
dispatches reached 1,626 1,622
2 s windows with 0 presents 17/59 18/60
watchdogs / crashes / device removals 0 / 0 / 0 0 / 0 / 0
dump pairs whose picture changed (>1 % of pixels) 1 of 63 (frame 470) 1 of 64 (frame 470)
distinct pictures in the run black, then mean luminance 41.9 / 17 brightness bands the same two

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 pipeline in 120 s, while the port without this PR logs 40 lines of the
AS-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 which
stand-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 come
from those runs.

**@⁠mikebuckets171** on GitHub · 2026-11-24 08:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7125792227) Follow-up: the Mac pair against the **rebased** head, so the numbers here describe `6bd8f64` and not the old head. The seven commits transplant onto the Mac port cleanly (the port at `db065d8` plus `301adae d42b820 2915f22 70f9185 48c1517 7654a2a 6bd8f64`, no conflicts) even though `main` has since taken #866 and #636. 120 s each side, **fresh data root per side** (cold, not the warm root my earlier pair used), same bottle, DXC and title: | | port alone | port + #541 (rebased) | |---|---|---| | exit | 0x0 | 0x0 | | frames shown | 2218 | 2245 | | console-MS refusals in the AS slot | **40** | **0** | | translated draws reached | 32,768 | 32,768 | | dispatches reached | 1,626 | 1,622 | | 2 s windows with 0 presents | 17/59 | 18/60 | | watchdogs / crashes / device removals | 0 / 0 / 0 | 0 / 0 / 0 | | dump pairs whose picture changed (>1 % of pixels) | 1 of 63 (frame 470) | 1 of 64 (frame 470) | | distinct pictures in the run | black, then mean luminance 41.9 / 17 brightness bands | the same two | 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 pipeline` in 120 s, while the port without this PR logs 40 lines of the AS-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 which stand-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 come from those runs.
Author
Owner

@⁠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 6bd8f64 that 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):

[122.929][61536][WARN ] D3D12.X: no stand-in pipeline (0x80070057) – building this one in the call
[122.929][14076][WARN ] D3D12.X: no stand-in pipeline (0x80070057) – building this one in the call
[122.929][61536][INFO ] D3D12.X: mesh pipeline with its MS e0e8f9e1912dfb24 in the AS slot – translated as MS (#1)
[122.930][14076][INFO ] D3D12.X: mesh pipeline with its MS bdc062626d48267d in the AS slot – translated as MS (#2)
[122.930][25516][WARN ] D3D12.X: no stand-in pipeline (0x80070057) – building this one in the call
[122.930][25516][INFO ] D3D12.X: mesh pipeline with its MS c76ad7b78c576175 in the AS slot – translated as MS (#3)

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_stream in hle/d3d12x/real.rs already documents that a console-only target format (the title's depth-only mesh pipelines use D16_UNORM_S8_UINT) makes the driver refuse the stand-in with E_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.

**@⁠ryosen0** on GitHub · 2026-11-24 08:11 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7125838745) @⁠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 `6bd8f64` that 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): ``` [122.929][61536][WARN ] D3D12.X: no stand-in pipeline (0x80070057) – building this one in the call [122.929][14076][WARN ] D3D12.X: no stand-in pipeline (0x80070057) – building this one in the call [122.929][61536][INFO ] D3D12.X: mesh pipeline with its MS e0e8f9e1912dfb24 in the AS slot – translated as MS (#1) [122.930][14076][INFO ] D3D12.X: mesh pipeline with its MS bdc062626d48267d in the AS slot – translated as MS (#2) [122.930][25516][WARN ] D3D12.X: no stand-in pipeline (0x80070057) – building this one in the call [122.930][25516][INFO ] D3D12.X: mesh pipeline with its MS c76ad7b78c576175 in the AS slot – translated as MS (#3) ``` 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_stream` in `hle/d3d12x/real.rs` already documents that a console-only target format (the title's depth-only mesh pipelines use `D16_UNORM_S8_UINT`) makes the driver refuse the stand-in with `E_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.
Author
Owner

@⁠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 (port db065d8 + 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: 0 no stand-in pipeline, 0 AS-slot refusals, 6 translated_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[0 0 0 0 0 0 0 1] ds0    x83     rt[0 0 0 0 0 0 0 1] ds20  x26    rt[0 0 0 0 0 0 0 1] ds55  x433
rt[10 0 0 0 0 0 0 2] ds40  x117    rt[28 28 28 28 0 0 0 5] ds0 x383  rt[87 0 0 0 0 0 0 2] ds20 x18
rt[] ds20 x201                    rt[] ds55 x739
  • Every signature carries its console shaders in the AS and PS subobjects, with no VS / CS / MS among the subobjects the stream parse recognises. That is the input to the failure @⁠NishantParajuli described at 03:41: empty the AS and put nothing in its place, and the stream the driver sees has a PS and nothing that decides the pipeline type (@⁠thehollowedone's message 1022 at 03:44). The AS → MS arm is what makes these streams well-formed, and on this host it is the only thing standing between them and that shape.
  • 940 of the 2,000 carry no render-target formats at all (rt[], a depth format only): 201 with console depth word 20, 739 with 55. 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 word 20 rather than 118. 20 → 40 is the only format word across these 2,000 streams that pc_target_format rewrites, and it rewrites it in 245 of them: the 15 | 16 arm of fallback_stream is doing real work on this host's set as well, even though nothing here is refused.
  • 118 (his D16_UNORM_S8_UINT) and 67 (the R9G9B9E5_SHAREDEXP leftover) 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 Mac xcl-smoke pair 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.
  • @⁠badoomtch's three containers are byte-identical to ones this bench logged: the [SHADER] as <h16> line prints fnv64 of the container bytes (gpu/shader.rs::capture), and e0e8f9e1912dfb24 (8428 B), c76ad7b78c576175 (7764 B) and bdc062626d48267d (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.

**@⁠mikebuckets171** on GitHub · 2026-11-24 09:26 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7127416717) **What the stand-in streams actually contain, on a host whose driver accepts them.** Bench-only probe on `fallback_stream` (port `db065d8` + 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: 0 `no stand-in pipeline`, 0 AS-slot refusals, 6 `translated_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[0 0 0 0 0 0 0 1] ds0 x83 rt[0 0 0 0 0 0 0 1] ds20 x26 rt[0 0 0 0 0 0 0 1] ds55 x433 rt[10 0 0 0 0 0 0 2] ds40 x117 rt[28 28 28 28 0 0 0 5] ds0 x383 rt[87 0 0 0 0 0 0 2] ds20 x18 rt[] ds20 x201 rt[] ds55 x739 ``` - **Every signature carries its console shaders in the AS and PS subobjects, with no VS / CS / MS among the subobjects the stream parse recognises.** That is the input to the failure @⁠NishantParajuli described at 03:41: empty the AS and put nothing in its place, and the stream the driver sees has a PS and nothing that decides the pipeline type (@⁠thehollowedone's message 1022 at 03:44). The AS → MS arm is what makes these streams well-formed, and on this host it is the only thing standing between them and that shape. - **940 of the 2,000 carry no render-target formats at all** (`rt[]`, a depth format only): 201 with console depth word `20`, 739 with `55`. 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 word `20` rather than `118`. `20 → 40` is the *only* format word across these 2,000 streams that `pc_target_format` rewrites, and it rewrites it in 245 of them: the `15 | 16` arm of `fallback_stream` is doing real work on this host's set as well, even though nothing here is refused. - **`118` (his `D16_UNORM_S8_UINT`) and `67` (the `R9G9B9E5_SHAREDEXP` leftover) 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 Mac `xcl-smoke` pair 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. - @⁠badoomtch's three containers are byte-identical to ones this bench logged: the `[SHADER] as <h16>` line prints `fnv64` of the container bytes (`gpu/shader.rs::capture`), and `e0e8f9e1912dfb24` (8428 B), `c76ad7b78c576175` (7764 B) and `bdc062626d48267d` (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.
Author
Owner

@⁠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.

**@⁠raylitebull** on GitHub · 2026-11-24 10:39 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7129074099) 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.
Author
Owner

@⁠jmal423 on GitHub · 2026-11-24 11:15 UTC · original

Depth-only stand-in, synthetic D3D12 creation check on head 6bd8f64 plus 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 via ID3D12Device2::CreatePipelineState. Changing only the output DSV word from 45 back to 118 made the same call return E_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.

--- a/crates/xcl/src/hle/d3d12x/real.rs
+++ b/crates/xcl/src/hle/d3d12x/real.rs
@@ -4355,6 +4355,35 @@
     /// R8G8B8A8 (28). With the console's the driver refuses the stand-in (the title's depth-only
     /// mesh pipelines; NishantParajuli's follow-up, reproduced natively by thehollowedone).
     #[test]
+    fn depth_only_standin_device_probe() {
+        use super::*;
+        unsafe {
+            let mut dev: Option<ID3D12Device> = None;
+            D3D12CreateDevice(None, D3D_FEATURE_LEVEL_12_0, &mut dev).unwrap();
+            let dev: ID3D12Device2 = dev.unwrap().cast().unwrap();
+            let mut blob = None;
+            D3D12SerializeRootSignature(&D3D12_ROOT_SIGNATURE_DESC::default(), D3D_ROOT_SIGNATURE_VERSION_1, &mut blob, None).unwrap();
+            let blob = blob.unwrap();
+            let rs: ID3D12RootSignature = dev.CreateRootSignature(0, std::slice::from_raw_parts(blob.GetBufferPointer() as *const u8, blob.GetBufferSize())).unwrap();
+            let ms = sample(13, &[fssm(&CODE, &[(8, 13)])]);
+            let mut stream = sub(0, &(rs.as_raw() as usize).to_le_bytes());
+            stream.extend(sub(24, &self::bytecode(&ms)));
+            stream.extend(sub(2, &self::bytecode(b"DXBC-test")));
+            stream.extend(sub(15, &[0;36]));
+            stream.extend(sub(16, &118u32.to_le_bytes()));
+            let desc = [stream.len(), stream.as_ptr() as usize];
+            let (mut out, _) = fallback_stream(desc.as_ptr().cast()).unwrap();
+            let pass = |out: &mut [u8]| dev.CreatePipelineState::<ID3D12PipelineState>(&D3D12_PIPELINE_STATE_STREAM_DESC { SizeInBytes:out.len(), pPipelineStateSubobjectStream:out.as_mut_ptr().cast() });
+            pass(&mut out).expect("mapped depth format");
+            let depth_offset = out.len() - 4;
+            assert_eq!(&out[depth_offset..], &45u32.to_le_bytes());
+            out[depth_offset..].copy_from_slice(&118u32.to_le_bytes());
+            let err=pass(&mut out).expect_err("console-only format should fail");
+            eprintln!("mapped=accepted; console format HRESULT={:?}; device LUID={:?}",err.code(),dev.GetAdapterLuid());
+        }
+    }
+
+    #[test]
     fn the_stand_in_of_a_stream_has_the_pcs_target_formats() {
         let mut s = sub(15, &{
             let mut p = Vec::new();

**@⁠jmal423** on GitHub · 2026-11-24 11:15 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7129853404) Depth-only stand-in, synthetic D3D12 creation check on head `6bd8f64` plus 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 via `ID3D12Device2::CreatePipelineState`. Changing only the output DSV word from 45 back to 118 made the same call return `E_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. <details><summary>Reproduce on another D3D12 device (scratch test for 6bd8f64)</summary> 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. ```diff --- a/crates/xcl/src/hle/d3d12x/real.rs +++ b/crates/xcl/src/hle/d3d12x/real.rs @@ -4355,6 +4355,35 @@ /// R8G8B8A8 (28). With the console's the driver refuses the stand-in (the title's depth-only /// mesh pipelines; NishantParajuli's follow-up, reproduced natively by thehollowedone). #[test] + fn depth_only_standin_device_probe() { + use super::*; + unsafe { + let mut dev: Option<ID3D12Device> = None; + D3D12CreateDevice(None, D3D_FEATURE_LEVEL_12_0, &mut dev).unwrap(); + let dev: ID3D12Device2 = dev.unwrap().cast().unwrap(); + let mut blob = None; + D3D12SerializeRootSignature(&D3D12_ROOT_SIGNATURE_DESC::default(), D3D_ROOT_SIGNATURE_VERSION_1, &mut blob, None).unwrap(); + let blob = blob.unwrap(); + let rs: ID3D12RootSignature = dev.CreateRootSignature(0, std::slice::from_raw_parts(blob.GetBufferPointer() as *const u8, blob.GetBufferSize())).unwrap(); + let ms = sample(13, &[fssm(&CODE, &[(8, 13)])]); + let mut stream = sub(0, &(rs.as_raw() as usize).to_le_bytes()); + stream.extend(sub(24, &self::bytecode(&ms))); + stream.extend(sub(2, &self::bytecode(b"DXBC-test"))); + stream.extend(sub(15, &[0;36])); + stream.extend(sub(16, &118u32.to_le_bytes())); + let desc = [stream.len(), stream.as_ptr() as usize]; + let (mut out, _) = fallback_stream(desc.as_ptr().cast()).unwrap(); + let pass = |out: &mut [u8]| dev.CreatePipelineState::<ID3D12PipelineState>(&D3D12_PIPELINE_STATE_STREAM_DESC { SizeInBytes:out.len(), pPipelineStateSubobjectStream:out.as_mut_ptr().cast() }); + pass(&mut out).expect("mapped depth format"); + let depth_offset = out.len() - 4; + assert_eq!(&out[depth_offset..], &45u32.to_le_bytes()); + out[depth_offset..].copy_from_slice(&118u32.to_le_bytes()); + let err=pass(&mut out).expect_err("console-only format should fail"); + eprintln!("mapped=accepted; console format HRESULT={:?}; device LUID={:?}",err.code(),dev.GetAdapterLuid()); + } + } + + #[test] fn the_stand_in_of_a_stream_has_the_pcs_target_formats() { let mut s = sub(15, &{ let mut p = Vec::new(); ``` </details>
Author
Owner

@⁠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 – refused errors are gone. translation_errors drops from 40 to 0, with 228 translated pipelines, 0 failed and 0 fallback. Frame rate, stability and memory are unchanged.

main (47efa2e):

xcl-smoke v1
commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3
gpu: NVIDIA GeForce RTX 4090
seconds: 180
exit: 0x0
frames shown: 5222 (PresentX 5222)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14808 MB

this PR (6bd8f64):

xcl-smoke v1
commit: 6bd8f641040071b8a388c0ec3053c2b1483ddcdf
gpu: NVIDIA GeForce RTX 4090
seconds: 180
exit: 0x0
frames shown: 5228 (PresentX 5228)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14926 MB

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.

**@⁠tibzejoker** on GitHub · 2026-11-24 12:03 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7130912234) 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 – refused` errors are gone. `translation_errors` drops from 40 to 0, with 228 translated pipelines, 0 failed and 0 fallback. Frame rate, stability and memory are unchanged. main (`47efa2e`): ``` xcl-smoke v1 commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3 gpu: NVIDIA GeForce RTX 4090 seconds: 180 exit: 0x0 frames shown: 5222 (PresentX 5222) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14808 MB ``` this PR (`6bd8f64`): ``` xcl-smoke v1 commit: 6bd8f641040071b8a388c0ec3053c2b1483ddcdf gpu: NVIDIA GeForce RTX 4090 seconds: 180 exit: 0x0 frames shown: 5228 (PresentX 5228) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14926 MB ``` 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.
Author
Owner

@⁠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.

**@⁠thehollowedone** on GitHub · 2026-11-24 12:12 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7131124862) · edited 2026-11-24 12:20 UTC Follow-up on [6bd8f64](https://github.com/ivall/xcl/commit/6bd8f641040071b8a388c0ec3053c2b1483ddcdf), 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](https://github.com/ivall/xcl/pull/724). AI-assisted. Codex (GPT-6) added and ran the scratch fixture.
Author
Owner

@⁠HQasper on GitHub · 2026-11-24 14:09 UTC · original

Test report (retail title, 120 s smoke run)

  • Hardware: NVIDIA GeForce RTX 5090 (wave32 only), driver 32.0.16.2124, AMD Ryzen 9 9950X3D, Windows 11 build 26300, rustc 1.100.0, release build.
  • Command: scripts/smoke.ps1 -Game <game folder> -Seconds 120 with XCL_FRAME_DUMP=240, one run per build, no input.
  • Commits: main 930e8b4, #630 fdadadd, #541 6bd8f64, each built as it stands (not rebased).
main 930e8b4 #630 fdadadd #541 6bd8f64
frames shown 3135 3376 3469
presents per 2 s (last 3) 60 60 60 60 60 60 60 60 60
device removals / crashes 0 / 0 0 / 0 0 / 0
peak commit 14552 MB 14809 MB 14608 MB
"in the AS slot – refused" lines 40 (log cap) 0 0
"no stand-in pipeline" lines 0 0 0
frame dumps (every 240th) menu from frame 260 on menu from frame 260 on menu from frame 260 on

Both 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 47efa2e with 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 passes at 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

  • Drawing with these pipelines: the title never binds them in the menus (0 two passes lines in either PR run), so nothing past the first menu was reached (no input sent).
  • The D16S8 stand-in case that only #541 fixes: no no stand-in line on any of these runs, so the menus don't reach it.
  • AMD / wave64 hardware, and the test suite on the PR heads.

AI use: Claude Code with Claude Opus 5.5 ran the builds and runs and wrote this report.

**@⁠HQasper** on GitHub · 2026-11-24 14:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7133934801) **Test report (retail title, 120 s smoke run)** - Hardware: NVIDIA GeForce RTX 5090 (wave32 only), driver 32.0.16.2124, AMD Ryzen 9 9950X3D, Windows 11 build 26300, rustc 1.100.0, release build. - Command: `scripts/smoke.ps1 -Game <game folder> -Seconds 120` with `XCL_FRAME_DUMP=240`, one run per build, no input. - Commits: main `930e8b4`, #630 `fdadadd`, #541 `6bd8f64`, each built as it stands (not rebased). | | main 930e8b4 | #630 fdadadd | #541 6bd8f64 | |---|---|---|---| | frames shown | 3135 | 3376 | 3469 | | presents per 2 s (last 3) | 60 60 60 | 60 60 60 | 60 60 60 | | device removals / crashes | 0 / 0 | 0 / 0 | 0 / 0 | | peak commit | 14552 MB | 14809 MB | 14608 MB | | "in the AS slot – refused" lines | 40 (log cap) | 0 | 0 | | "no stand-in pipeline" lines | 0 | 0 | 0 | | frame dumps (every 240th) | menu from frame 260 on | menu from frame 260 on | menu from frame 260 on | Both 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 `47efa2e` with 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 passes` at 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** - Drawing with these pipelines: the title never binds them in the menus (0 `two passes` lines in either PR run), so nothing past the first menu was reached (no input sent). - The D16S8 stand-in case that only #541 fixes: no `no stand-in` line on any of these runs, so the menus don't reach it. - AMD / wave64 hardware, and the test suite on the PR heads. **AI use:** Claude Code with Claude Opus 5.5 ran the builds and runs and wrote this report.
Author
Owner

@⁠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 onto main 47efa2e locally (clean merges, not pushed): #630 at fdadadd, #541 at 6bd8f64.

Setup

  • AMD Radeon RX 7800 XT 16 GB, driver 32.0.32029.2010; Ryzen 5 5600G, 32 GB; Windows 11 Pro 26300; rustc 1.100.0; DXC 1.8.2502.11. Release for the title, debug for the tests.
  • Retail title 1.0.2.1, Series X profile, saved profile (first-run setup done). 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. No SKIPPED lines. Each PR's new tests pass.

Title runs (150 s each)

main r1 · r2 + #630 r1 · r2 + #541 r1 · r2
frames shown 1846 · 1994 2592 · 2778 1929 · 2239
"in the AS slot – refused" 40 · 40 0 · 0 0 · 0
no stand-in pipeline (0x80070057) 0 · 0 3 · 3 (at 75 s) 0 · 0
world load (DirectStorage streaming after the intro) yes · yes (112–128 s) no · no yes · yes (128 s)
last captures loading art black loading art
peak local video memory 15.1 · 21.8 GB 8.8 · 8.8 GB 15.1 · 14.3 GB
device removals / crashes 0 / 0 0 / 0 0 / 0

Captured frames, one character per capture (every 60th presented frame; # lit, . black, measured as the share of samples with R+G+B > 30):

main-r1   ....###########################
pr630-r1  ....##########.............................
pr541-r1  ....###########..............###
main-r2   ....##########................###
pr630-r2  .........###########..........................
pr541-r2  .......########...................###

On main and 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 on main), 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

  • Either PR on its own base, as it stands: both were merged onto main 47efa2e.
  • The world itself: the title's crash at +0x23cf683 (#534) comes after these 150 s on this machine.
  • More than three runs of #630, or a run with an empty driver cache.

Claude Code (Claude Opus 5.5), from runs on the hardware above.

**@⁠srcamarda** on GitHub · 2026-11-24 14:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7134841075) **#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 onto `main` `47efa2e` locally (clean merges, not pushed): #630 at `fdadadd`, #541 at `6bd8f64`. **Setup** - AMD Radeon RX 7800 XT 16 GB, driver 32.0.32029.2010; Ryzen 5 5600G, 32 GB; Windows 11 Pro 26300; rustc 1.100.0; DXC 1.8.2502.11. Release for the title, debug for the tests. - Retail title 1.0.2.1, Series X profile, saved profile (first-run setup done). `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. No `SKIPPED` lines. Each PR's new tests pass. **Title runs** (150 s each) | | main r1 · r2 | + #630 r1 · r2 | + #541 r1 · r2 | |---|---|---|---| | frames shown | 1846 · 1994 | 2592 · 2778 | 1929 · 2239 | | "in the AS slot – refused" | 40 · 40 | 0 · 0 | 0 · 0 | | `no stand-in pipeline (0x80070057)` | 0 · 0 | 3 · 3 (at 75 s) | 0 · 0 | | world load (DirectStorage streaming after the intro) | yes · yes (112–128 s) | **no · no** | yes · yes (128 s) | | last captures | loading art | **black** | loading art | | peak local video memory | 15.1 · 21.8 GB | 8.8 · 8.8 GB | 15.1 · 14.3 GB | | device removals / crashes | 0 / 0 | 0 / 0 | 0 / 0 | Captured frames, one character per capture (every 60th presented frame; `#` lit, `.` black, measured as the share of samples with R+G+B > 30): ``` main-r1 ....########################### pr630-r1 ....##########............................. pr541-r1 ....###########..............### main-r2 ....##########................### pr630-r2 .........###########.......................... pr541-r2 .......########...................### ``` On `main` and 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 on `main`), 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** - Either PR on its own base, as it stands: both were merged onto `main` `47efa2e`. - The world itself: the title's crash at `+0x23cf683` (#534) comes after these 150 s on this machine. - More than three runs of #630, or a run with an empty driver cache. _Claude Code (Claude Opus 5.5), from runs on the hardware above._
Author
Owner

@⁠Royalflamejlh on GitHub · 2026-11-24 14:54 UTC · original

Linux (Wine + vkd3d-proton) + NVIDIA test of 6bd8f64 merged onto main 1ec4c98 (no conflicts), 2 runs of 75 s each way: main refused 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 to x86_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 through XCL_PRESS_AT. The runs alternated main, merge, main, merge.

Tested

  • cargo test --release -p xcl --lib for mesh_slot_tests, mesh_layout and mesh_split under Wine, on the merge: 7 passed, 0 failed.
main 1ec4c98, run 1 / 2 1ec4c98 + 6bd8f64, run 1 / 2
mesh pipeline with its MS … in the AS slot – refused 40 / 40 (16.9 s to 18.0 s) 0 / 0
no stand-in pipeline lines 0 / 0 0 / 0
… in the AS slot – translated as MS lines – 0 / 0
translated pipelines (report.json) 1466 / 1469 1466 / 1471
first frame dump that is not black (one dump per 30 frames) 200 / 200 230 / 200
frames presented in 75 s 1640 / 1666 1739 / 1673
faults, device removals 0 / 0 0 / 0

Read

  • real.rs:4451: in the cached-only attempt a moved MS returns before anything is translated, and the translated as MS line at real.rs:4457 is only reached on the worker or the first bind. That matches the runs: 0 such lines, and the same number of translated pipelines as main. 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 through pc_target_format for 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:4847 and emit.rs:4897 are #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.

**@⁠Royalflamejlh** on GitHub · 2026-11-24 14:54 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7135131489) Linux (Wine + vkd3d-proton) + NVIDIA test of `6bd8f64` merged onto `main` `1ec4c98` (no conflicts), 2 runs of 75 s each way: `main` refused 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 to `x86_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 through `XCL_PRESS_AT`. The runs alternated `main`, merge, `main`, merge. **Tested** - `cargo test --release -p xcl --lib` for `mesh_slot_tests`, `mesh_layout` and `mesh_split` under Wine, on the merge: 7 passed, 0 failed. | | `main` `1ec4c98`, run 1 / 2 | `1ec4c98` + `6bd8f64`, run 1 / 2 | |---|---|---| | `mesh pipeline with its MS … in the AS slot – refused` | 40 / 40 (16.9 s to 18.0 s) | 0 / 0 | | `no stand-in pipeline` lines | 0 / 0 | 0 / 0 | | `… in the AS slot – translated as MS` lines | – | 0 / 0 | | translated pipelines (`report.json`) | 1466 / 1469 | 1466 / 1471 | | first frame dump that is not black (one dump per 30 frames) | 200 / 200 | 230 / 200 | | frames presented in 75 s | 1640 / 1666 | 1739 / 1673 | | faults, device removals | 0 / 0 | 0 / 0 | **Read** - `real.rs:4451`: in the cached-only attempt a moved MS returns before anything is translated, and the `translated as MS` line at `real.rs:4457` is only reached on the worker or the first bind. That matches the runs: 0 such lines, and the same number of translated pipelines as `main`. 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 through `pc_target_format` for 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:4847` and `emit.rs:4897` are #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.
Author
Owner

@⁠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.

Control #541 + #743 + PC render-target/depth format adaptation
Reported AS-slot refusals 40 0
Presents in final report 1,939 2,048
Last two-second sample with a present 194.1 s 186.1 s
DRED GPU fault VA 0x1ae27d000 0x6000

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.

**@⁠crosettiremi** on GitHub · 2026-11-24 17:11 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7138819611) 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. | | Control | #541 + #743 + PC render-target/depth format adaptation | |---|---:|---:| | Reported AS-slot refusals | 40 | 0 | | Presents in final report | 1,939 | 2,048 | | Last two-second sample with a present | 194.1 s | 186.1 s | | DRED GPU fault VA | 0x1ae27d000 | 0x6000 | 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.
Author
Owner

@⁠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 main b7aa9f3 with 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 main 930e8b4 without 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_INVALIDARG is 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 with XCL_D3D12_DEBUG=1 if 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.

**@⁠ThiagoAlexsander** on GitHub · 2026-11-24 18:35 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7140870543) **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 `main` `b7aa9f3` with 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 `main` `930e8b4` without 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_INVALIDARG` is 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 with `XCL_D3D12_DEBUG=1` if 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.
Author
Owner

@⁠ivall on GitHub · 2026-11-24 21:06 UTC · original

Test and review of 6bd8f64, merged on main e9e94ce: 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 on main runs the pair:

  • two_pass_of has no caller outside tests, except one diagnostic log line in bind::graphics_bound.
  • DispatchMesh is not hooked on the list.
  • finish_two_pass notes the pipeline's root signature (note_pso_rs), but does not add the pipeline to TRANSLATED_GRAPHICS. So once such a pipeline is built, bind::execute_indirect sees 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 PC ExecuteIndirect. The mesh pass was built with XCL's signature, so u1 and 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:

  • @⁠spiedz's dump: a mesh shader reading GPU VA 0, 2 of 2 runs;
  • @⁠ryosen0's removals on 8 GB, 1 of 6 and then 0 of 8;
  • 60–180 s runs that stay in the menus are clean, because nothing binds these pipelines there (0 translated as MS lines in @⁠Royalflamejlh's runs, 0 two passes lines 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 ExecuteIndirect and mesh dispatches while two_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.

**@⁠ivall** on GitHub · 2026-11-24 21:06 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7144485824) **Test and review of `6bd8f64`, merged on `main` `e9e94ce`: 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 on `main` runs the pair: - `two_pass_of` has no caller outside tests, except one diagnostic log line in `bind::graphics_bound`. - `DispatchMesh` is not hooked on the list. - `finish_two_pass` notes the pipeline's root signature (`note_pso_rs`), but does not add the pipeline to `TRANSLATED_GRAPHICS`. So once such a pipeline is built, `bind::execute_indirect` sees 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 PC `ExecuteIndirect`. The mesh pass was built with XCL's signature, so `u1` and 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: - @⁠spiedz's dump: a mesh shader reading GPU VA 0, 2 of 2 runs; - @⁠ryosen0's removals on 8 GB, 1 of 6 and then 0 of 8; - 60–180 s runs that stay in the menus are clean, because nothing binds these pipelines there (0 `translated as MS` lines in @⁠Royalflamejlh's runs, 0 `two passes` lines 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 `ExecuteIndirect` and mesh dispatches while `two_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.
Author
Owner

@⁠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's main, so the counts are below a current-main run (986 tests) — worth a rebase before merge.
  • I added a stream-level test for the shape this PR fixes — real console containers from a shader pack (XCL_SAMPLE_RPF), mesh typed as AS (24), no MS subobject, driven through CreatePipelineState on 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, one s_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.

**@⁠brandostrong** on GitHub · 2026-11-25 00:32 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7148615627) **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's `main`, so the counts are below a current-main run (986 tests) — worth a rebase before merge. - I added a stream-level test for the shape this PR fixes — real console containers from a shader pack (`XCL_SAMPLE_RPF`), mesh typed as AS (24), no MS subobject, driven through `CreatePipelineState` on 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, one `s_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.*
Author
Owner

@⁠IAmTheSween on GitHub · 2026-11-25 03:38 UTC · original

Test report on a desktop RTX 5070 (Blackwell), head 6bd8f641040071b8a388c0ec3053c2b1483ddcdf.

Setup

  • GPU: NVIDIA GeForce RTX 5070 (11 943 MiB), driver 32.0.16.2114
  • CPU / RAM: AMD Ryzen 5 5600X (6C/12T), 31.9 GB
  • OS: Windows 11 26H2, build 26300.9974
  • rustc 1.100.0 x86_64-pc-windows-msvc, DXC 1.8.2502.11 (SDK 10.0.26100.0)
  • Built from the PR head as it is — it is CONFLICTING with main, so not rebased. cargo build --release -p xcl.
  • Retail 1.0.2.1, unmodified (exe SHA-256 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

main cbc296ab65 this PR 6bd8f64
console shaders in the PSO without a translation 40 (capped there) 0
no stand-in failures 0 0
frames / 300 s 8 771 2 650 (30 % of main)
presents per 2 s, steady 60 10–14
draws per frame ~13 (780 draws / 60 presents) ~12 (174 draws / 14 presents)
device removals / crashes 0 / 0 0 / 0
peak process commit 15 083 MB 15 598 MB (+3.4 %)
last sampled frame, non-dark samples 517 959 / 518 400 517 959 / 518 400

So on this title the PR does what it says — the 40 mesh pipelines that main refuses are translated and drawn, the run stays alive, and the end frame is the same picture as main's (same dominant texels, same 99.9 % non-dark count). Two things to note for the smoke rule:

  • Frames are 30 % of main's, under the 80 % floor. Draws per frame barely move, so this is per-frame cost, not fewer draws being issued.
  • @⁠badoomtch's three no stand-in (0x80070057) lines on RTX 5080 did not reproduce here: zero stand-in failures 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 (assertion cubemap extra_pages must be reused at same va, title_textures.rs:1902), and title_textures::tests::transitions_apply_when_their_list_is_submitted and vram::tests::d32s8_targets_take_their_own_size_of_video_memory (PoisonError). All three pass alone with --test-threads=1 and the full suite passed on a rerun, so they look like a 4-thread ordering flake rather than this change.
  • SKIPPED on this adapter: 24 no wave64 (Blackwell is wave32-only), const_mask, wave64, and one cannot disable the driver cache (no Developer Mode).

Not tested

  • AMD / RDNA (no RDNA GPU in this machine), wave64, other titles, and laptop parts.
  • Where the frame-rate loss comes from — whether the translated MS cost, the stand-in path, or the lazy build at first bind. Not separated here.

AI use

  • OpenCode with DeepSeek V4.1 Flash Abliterated (deepseek-v4-pro-uncensored); ran the builds, the suite and the two runs, wrote the tables from the logs, wrote this comment.
**@⁠IAmTheSween** on GitHub · 2026-11-25 03:38 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7152102676) Test report on a desktop **RTX 5070** (Blackwell), head `6bd8f641040071b8a388c0ec3053c2b1483ddcdf`. **Setup** - GPU: NVIDIA GeForce RTX 5070 (11 943 MiB), driver 32.0.16.2114 - CPU / RAM: AMD Ryzen 5 5600X (6C/12T), 31.9 GB - OS: Windows 11 26H2, build 26300.9974 - rustc 1.100.0 x86_64-pc-windows-msvc, DXC 1.8.2502.11 (SDK 10.0.26100.0) - Built from the PR head as it is — it is `CONFLICTING` with `main`, so not rebased. `cargo build --release -p xcl`. - Retail 1.0.2.1, unmodified (exe SHA-256 `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** | | `main` `cbc296ab65` | this PR `6bd8f64` | |---|---|---| | `console shaders in the PSO without a translation` | **40** (capped there) | **0** | | `no stand-in` failures | 0 | 0 | | frames / 300 s | **8 771** | **2 650** (30 % of main) | | presents per 2 s, steady | 60 | 10–14 | | draws per frame | ~13 (780 draws / 60 presents) | ~12 (174 draws / 14 presents) | | device removals / crashes | 0 / 0 | 0 / 0 | | peak process commit | 15 083 MB | 15 598 MB (+3.4 %) | | last sampled frame, non-dark samples | 517 959 / 518 400 | 517 959 / 518 400 | So on this title the PR does what it says — the 40 mesh pipelines that `main` refuses are translated and drawn, the run stays alive, and the end frame is the same picture as `main`'s (same dominant texels, same 99.9 % non-dark count). Two things to note for the smoke rule: - **Frames are 30 % of `main`'s**, under the 80 % floor. Draws per frame barely move, so this is per-frame cost, not fewer draws being issued. - @⁠badoomtch's three `no stand-in (0x80070057)` lines on RTX 5080 did not reproduce here: zero `stand-in` failures 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` (assertion `cubemap extra_pages must be reused at same va`, `title_textures.rs:1902`), and `title_textures::tests::transitions_apply_when_their_list_is_submitted` and `vram::tests::d32s8_targets_take_their_own_size_of_video_memory` (`PoisonError`). All three pass alone with `--test-threads=1` and the full suite passed on a rerun, so they look like a 4-thread ordering flake rather than this change. - SKIPPED on this adapter: 24 `no wave64` (Blackwell is wave32-only), `const_mask, wave64`, and one `cannot disable the driver cache` (no Developer Mode). **Not tested** - AMD / RDNA (no RDNA GPU in this machine), wave64, other titles, and laptop parts. - Where the frame-rate loss comes from — whether the translated MS cost, the stand-in path, or the lazy build at first bind. Not separated here. **AI use** - OpenCode with DeepSeek V4.1 Flash Abliterated (`deepseek-v4-pro-uncensored`); ran the builds, the suite and the two runs, wrote the tables from the logs, wrote this comment.
Author
Owner

@⁠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.

**@⁠DavidM1911** on GitHub · 2026-11-25 13:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7164195249) 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.
Author
Owner

@⁠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 6bd8f64 against its base a1672ef, tested as the branch is (it conflicts with current main, 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-in lines and 1 driver rejection appear at the same moment, and both arms then end in the known +0x23cf683 crash (#846 / #675 / #534).

base a1672ef head 6bd8f64
console shaders in the PSO without a translation 40 0
no stand-in lines 0 0
translated as MS (#n) lines – 0 (deferred to first bind, which did not happen in the menus)
frames / 60 s 1537 1561
presents per 2 s, steady 60 60
draws per 2 s at the end 1260 1260
warnings / errors 73 / 0 33 / 0
device removals / crashes 0 / 0 0 / 0
peak commit 14750 MB 14835 MB (+0.6 %)

Regression run (scripts/smoke.ps1 -Seconds 60 taken from current main, because a1672ef's copy has no -OutDir; the same script for both arms, no input, XCL_NETWORK=0)

Base a1672ef:

xcl-smoke v1
commit: a1672ef21c396d8edc9c4b0e3747f671bd40f528
gpu: NVIDIA GeForce RTX 3060
title: 4a4b54dc
seconds: 60
exit: 0x0
frames shown: 1537 (PresentX 1537)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14750 MB

Head 6bd8f64:

xcl-smoke v1
commit: 6bd8f641040071b8a388c0ec3053c2b1483ddcdf
gpu: NVIDIA GeForce RTX 3060
title: 4a4b54dc
seconds: 60
exit: 0x0
frames shown: 1561 (PresentX 1561)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14835 MB

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)

base a1672ef head 6bd8f64
frames / 300 s 8667 8747 (101 %)
console shaders in the PSO without a translation 40 0
no stand-in / translated as MS (#n) lines 0 / – 0 / 0
warnings / errors 81 / 0 41 / 0
device removals / crashes 0 / 0 0 / 0
peak commit 15270 MB 15252 MB
xcl-smoke v1
commit: a1672ef21c396d8edc9c4b0e3747f671bd40f528
gpu: NVIDIA GeForce RTX 3060
title: 4a4b54dc
seconds: 300
exit: 0x0
frames shown: 8667 (PresentX 8667)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15270 MB
xcl-smoke v1
commit: 6bd8f641040071b8a388c0ec3053c2b1483ddcdf
gpu: NVIDIA GeForce RTX 3060
title: 4a4b54dc
seconds: 300
exit: 0x0
frames shown: 8747 (PresentX 8747)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15252 MB

Both 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 is XCL_PRESS_AT=20:A,24:A,…,56:A,60:DOWN,70:DOWN,72:A,80:A,83:DOWN,85:A,88:DOWN,90:A then 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).

base a1672ef head 6bd8f64
presents before the end 1919 1974 (103 %)
last present-bearing 2 s window 92 s 94 s
AS slot – refused 40 0
translated as MS (#n) lines (sparse log: first 5, then every 1000th) – 5, at 31.8 s, all MS 2bdc6171bf337731
no stand-in pipeline (0x80070057) – building this one in the call 0 3, at 58.29 s
the driver rejected the mesh pipeline from the console MS (0x80070057) 0 1, at 58.31 s
DirectStorage request failed 16 16
end 0xc0000005 write at 0x0, game_scarlett_master.exe+0x23cf683, 121.0 s the same, 124.0 s
peak commit 29355 MB 30350 MB (103 %)
device removals 0 0
xcl-smoke v1
commit: a1672ef21c396d8edc9c4b0e3747f671bd40f528
gpu: NVIDIA GeForce RTX 3060
title: 4a4b54dc
seconds: 600
exit: 0xc0000005
frames shown: none logged (the run did not reach its end)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 2
peak commit: 29355 MB
xcl-smoke v1
commit: 6bd8f641040071b8a388c0ec3053c2b1483ddcdf
gpu: NVIDIA GeForce RTX 3060
title: 4a4b54dc
seconds: 600
exit: 0xc0000005
frames shown: none logged (the run did not reach its end)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 2
peak commit: 30350 MB
  • No frame-rate loss here with the moved MS pipelines actually translated: the head presents 103 % of the base's frames up to the same stop. The 8 771 → 2 650 drop above does not reproduce on this card.
  • The no stand-in lines 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.
  • The crash is not this PR's: the base ends the same way at the same address with the same 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

  • NVIDIA GeForce RTX 3060 12 GB, driver 32.0.16.2101 (32-lane waves only); AMD Ryzen 5 5600X; 32 GB RAM
  • Windows 11 Pro 10.0.26300.9974; Rust 1.100.0 (stable-x86_64-pc-windows-msvc); release builds; DXC 1.9.2609.5 (XCL_DXC_DIR)
  • cargo test --workspace --release --no-fail-fast -- --test-threads=4 on 6bd8f64: 718 passed, 3 failed, 41 ignored. The three are title_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) and vram::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=4 run on the head (677 passed, 3 failed), and fail the same way on the base a1672ef (671 passed, 3 failed). So they come with the branch's old base, not with this PR; current main (06c9f55) passes them on this machine.
  • SKIPPED on this adapter: 2 × no wave64 (gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware)

Not tested

  • Gameplay past the +0x23cf683 crash, so whether the translated MS pipelines draw correctly (no screenshot comparison of the minimap); the branch rebased onto current main; AMD / wave64; a cold first-run profile with the new route on both arms.

AI use

  • Claude Code (Claude Opus 5.5) built both commits, ran the tests and the smoke runs on my machine, read the logs and wrote this comment.
**@⁠jennydeth** on GitHub · 2026-11-25 15:28 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7166895813) · edited 2026-11-25 17:17 UTC **RTX 3060 12 GB (wave32), retail title 1.0.2.1** – head `6bd8f64` against its base `a1672ef`, tested as the branch is (it conflicts with current `main`, 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-in` lines and 1 driver rejection appear at the same moment, and both arms then end in the known `+0x23cf683` crash (#846 / #675 / #534).** | | base `a1672ef` | head `6bd8f64` | |---|---|---| | `console shaders in the PSO without a translation` | 40 | **0** | | `no stand-in` lines | 0 | 0 | | `translated as MS (#n)` lines | – | 0 (deferred to first bind, which did not happen in the menus) | | frames / 60 s | 1537 | 1561 | | presents per 2 s, steady | 60 | 60 | | draws per 2 s at the end | 1260 | 1260 | | warnings / errors | 73 / 0 | 33 / 0 | | device removals / crashes | 0 / 0 | 0 / 0 | | peak commit | 14750 MB | 14835 MB (+0.6 %) | **Regression run** (`scripts/smoke.ps1 -Seconds 60` taken from current `main`, because `a1672ef`'s copy has no `-OutDir`; the same script for both arms, no input, `XCL_NETWORK=0`) Base `a1672ef`: ``` xcl-smoke v1 commit: a1672ef21c396d8edc9c4b0e3747f671bd40f528 gpu: NVIDIA GeForce RTX 3060 title: 4a4b54dc seconds: 60 exit: 0x0 frames shown: 1537 (PresentX 1537) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14750 MB ``` Head `6bd8f64`: ``` xcl-smoke v1 commit: 6bd8f641040071b8a388c0ec3053c2b1483ddcdf gpu: NVIDIA GeForce RTX 3060 title: 4a4b54dc seconds: 60 exit: 0x0 frames shown: 1561 (PresentX 1561) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14835 MB ``` 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) | | base `a1672ef` | head `6bd8f64` | |---|---|---| | frames / 300 s | 8667 | 8747 (101 %) | | `console shaders in the PSO without a translation` | 40 | 0 | | `no stand-in` / `translated as MS (#n)` lines | 0 / – | 0 / 0 | | warnings / errors | 81 / 0 | 41 / 0 | | device removals / crashes | 0 / 0 | 0 / 0 | | peak commit | 15270 MB | 15252 MB | ``` xcl-smoke v1 commit: a1672ef21c396d8edc9c4b0e3747f671bd40f528 gpu: NVIDIA GeForce RTX 3060 title: 4a4b54dc seconds: 300 exit: 0x0 frames shown: 8667 (PresentX 8667) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15270 MB ``` ``` xcl-smoke v1 commit: 6bd8f641040071b8a388c0ec3053c2b1483ddcdf gpu: NVIDIA GeForce RTX 3060 title: 4a4b54dc seconds: 300 exit: 0x0 frames shown: 8747 (PresentX 8747) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15252 MB ``` Both 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 is `XCL_PRESS_AT=20:A,24:A,…,56:A,60:DOWN,70:DOWN,72:A,80:A,83:DOWN,85:A,88:DOWN,90:A` then 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). | | base `a1672ef` | head `6bd8f64` | |---|---|---| | presents before the end | 1919 | 1974 (103 %) | | last present-bearing 2 s window | 92 s | 94 s | | `AS slot – refused` | 40 | 0 | | `translated as MS (#n)` lines (sparse log: first 5, then every 1000th) | – | 5, at 31.8 s, all MS `2bdc6171bf337731` | | `no stand-in pipeline (0x80070057) – building this one in the call` | 0 | **3**, at 58.29 s | | `the driver rejected the mesh pipeline from the console MS (0x80070057)` | 0 | **1**, at 58.31 s | | DirectStorage `request failed` | 16 | 16 | | end | `0xc0000005` write at 0x0, `game_scarlett_master.exe+0x23cf683`, 121.0 s | the same, 124.0 s | | peak commit | 29355 MB | 30350 MB (103 %) | | device removals | 0 | 0 | ``` xcl-smoke v1 commit: a1672ef21c396d8edc9c4b0e3747f671bd40f528 gpu: NVIDIA GeForce RTX 3060 title: 4a4b54dc seconds: 600 exit: 0xc0000005 frames shown: none logged (the run did not reach its end) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 2 peak commit: 29355 MB ``` ``` xcl-smoke v1 commit: 6bd8f641040071b8a388c0ec3053c2b1483ddcdf gpu: NVIDIA GeForce RTX 3060 title: 4a4b54dc seconds: 600 exit: 0xc0000005 frames shown: none logged (the run did not reach its end) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 2 peak commit: 30350 MB ``` - **No frame-rate loss here** with the moved MS pipelines actually translated: the head presents 103 % of the base's frames up to the same stop. The 8 771 → 2 650 drop above does not reproduce on this card. - **The `no stand-in` lines 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. - **The crash is not this PR's**: the base ends the same way at the same address with the same `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** - NVIDIA GeForce RTX 3060 12 GB, driver 32.0.16.2101 (32-lane waves only); AMD Ryzen 5 5600X; 32 GB RAM - Windows 11 Pro 10.0.26300.9974; Rust 1.100.0 (stable-x86_64-pc-windows-msvc); release builds; DXC 1.9.2609.5 (`XCL_DXC_DIR`) - `cargo test --workspace --release --no-fail-fast -- --test-threads=4` on `6bd8f64`: 718 passed, 3 failed, 41 ignored. The three are `title_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`) and `vram::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=4` run on the head (677 passed, 3 failed), **and fail the same way on the base `a1672ef`** (671 passed, 3 failed). So they come with the branch's old base, not with this PR; current `main` (`06c9f55`) passes them on this machine. - SKIPPED on this adapter: 2 × no wave64 (`gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`) **Not tested** - Gameplay past the `+0x23cf683` crash, so whether the translated MS pipelines draw correctly (no screenshot comparison of the minimap); the branch rebased onto current `main`; AMD / wave64; a cold first-run profile with the new route on both arms. **AI use** - Claude Code (Claude Opus 5.5) built both commits, ran the tests and the smoke runs on my machine, read the logs and wrote this comment.
Author
Owner

@⁠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 6bd8f64 together with #724 onto a local integration tree that already carries the Wine and memory PRs needed for this title. The four real::mesh_slot_tests passed 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 MiB reported by NVIDIA, 2,797 MiB system 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, or no stand-in pipeline messages. The 40 old mesh pipeline with its MS ... in the AS slot – refused messages seen on the same integration tree before this port became zero. Because XCL_PSO_PRELOAD=1 uses deferred translation and this run did not bind one of the moved pipelines before the guard, I also saw zero translated as MS messages; 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.

**@⁠pickles976** on GitHub · 2026-11-25 17:44 UTC · [original](https://github.com/xcl-dev/xcl/pull/541#issuecomment-7169929092) RTX 4060 Laptop / Wine follow-up on the current PR logic (not a clean PR-head run): I ported `6bd8f64` together with #724 onto a local integration tree that already carries the Wine and memory PRs needed for this title. The four `real::mesh_slot_tests` passed 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 MiB` reported by NVIDIA, `2,797 MiB` system 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`, or `no stand-in pipeline` messages. The 40 old `mesh pipeline with its MS ... in the AS slot – refused` messages seen on the same integration tree before this port became zero. Because `XCL_PSO_PRELOAD=1` uses deferred translation and this run did not bind one of the moved pipelines before the guard, I also saw zero `translated as MS` messages; 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.
This pull request has changes conflicting with the target branch.
  • crates/xcl/src/gpu/recomp/emit.rs
  • crates/xcl/src/gpu/recomp/tests.rs
  • crates/xcl/src/hle/d3d12x/real.rs
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.
git fetch -u origin '+refs/pull/541/head:github-bot/gh-541'
git switch 'github-bot/gh-541'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-541'
git switch 'github-bot/gh-541'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-541'
git switch 'github-bot/gh-541'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-541'
git switch 'main'
git merge --squash 'github-bot/gh-541'
git switch 'main'
git merge --ff-only 'github-bot/gh-541'
git switch 'main'
git merge 'github-bot/gh-541'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.