Repository navigation
Conversation
shdann
left a comment
There was a problem hiding this comment.
This stack still has the mesh-output failure from #304. At emit.rs:4734, an 80-vertex, one-triangle record with 22 float4 output rows computes one group in compact mode. At line 4670, the emitter uses that count to choose the original layout and declares 80 vertices. DXC charges for 96 vertices and rejects the shader because the output exceeds 32,768 bytes. I previously verified this with SDK 10.0.26100 DXC. Please carry the layout choice separately from the dispatch group count before enabling these pipelines. See #304 (review) . Reviewed ce41f94 with OpenAI Codex (GPT-6.2 Sol).
|
Wave64 hardware run, since Not tested lists it:
AI use
|
|
Tested exact head Tested
Not tested
AI use
|
|
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 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. |
|
Test report with frame captures, since Not tested lists the visual side: 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,
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 |
|
Update for Both runs:
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 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 Tests: 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.
PR: Not tested: why the queue grows (whether the same pipelines are queued again and again); the minimap itself (the run never shows a picture); NVIDIA at 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. |
|
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,
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:
Two things I've done on the branch:
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. |
|
Fix pushed: 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 ( On this machine (RTX 3060 Ti, Could you re-run your 60 s capture protocol on 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. |
|
Test report for Setup: RTX 3060 Ti 8 GB (wave32), Ryzen 7 9800X3D, 32 GB RAM, driver 32.0.16.1742, Windows 11, rustc stable Tests: Frame captures (
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 Not tested: wave64 hardware (Chrysana's re-run of the 60 s capture protocol on 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. |
|
Test report for head What happens at
Fix (on top of 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 PSOTested
Not tested
AI use |
|
Native stand-in check on the rebased head On 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. Codex with GPT-6.2 Sol wrote the scratch fixture, ran the test, and drafted this update. Earlier integrated workspace resultTested I ran the same serial workspace check on
Both totals include two tests that returned early for lack of native wave64:
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. |
|
Code audit + NVIDIA RTX 5080 test run on ReviewLooks clean:
Tested
Not tested
AI use: code review and test run orchestrated with Antigravity (Gemini 4 Neon) on the hardware listed above. |
…d in the call With ivall#541, a stream with a console MS in the AS slot and no MS subobject is translated as a mesh pipeline. Its stand-in (fallback_stream) still decided "mesh" from an MS subobject only, so it nulled the AS and kept a plain PS: no VS and no MS, which the driver refuses (E_INVALIDARG). go_background then fell back to building each of those pipelines in the title's call. Measured on a retail title (RTX 5060 Ti, cold DXIL cache, 240 s, same input): five title threads sat in dev_create_pipeline_state -> translated_mesh_stream -> dxc::compile at every thread dump, and 2947 programs were compiled. With the stand-in turned into an MS subobject with the stand-in MS, no title thread is in DXC at any dump, 804 programs are compiled (the rest wait for their first bind, as other pipelines do) and translation errors stay at 0. Assisted-by: Claude Code (Claude Opus 5.5)
|
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
Fix (on top of the first one): the stand-in's 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 4 that remain are not a stand-in problem One render target of format Not tested
AI use |
|
@NishantParajuli @Chrysana — the stand-in fix is in as
Measured on the RTX 3060 Ti (wave32), release
@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 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. |
|
Native RTX 3080 Ti cross-check for the requested retest. I ran the same synthetic stream through XCL’s
Windows 11 build 26300, RTX 3080 Ti / 621.35, Rust 1.99.1 MSVC, DXC 1.8.2502.11, debug with Graphics Tools enabled. |
|
Thanks for folding the first fix into |
|
Confirmed the target-format follow-up on Windows 11 build 26300, RTX 3080 Ti / 621.35, Rust 1.99.1 MSVC, DXC 1.8.2502.11, debug with Graphics Tools. |
|
@NishantParajuli the second fix is in as Measured on the RTX 3060 Ti (wave32), release
@thehollowedone your native pair (message 685 before / @Chrysana 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. |
|
RX 7900 XT, Windows, Series X saved profile. I repeated the AS-slot comparison on a newer downstream stack that includes direct texture uploads, #1453 and #1464. One run per build, same starting application caches, two DXC workers, 1 ms pipeline wait, 28 GiB whole-job limit, and Player1 selection at 33 s.
The mesh build logged five distinct console MS hashes entering the AS-slot translation path. Its final report included a mesh pipeline creation error returning DXGI_ERROR_DEVICE_REMOVED, as well as compute and root-signature errors. DRED reported the fault at 191.1 s with no named allocation; the list records printed in this run did not identify a partially completed dispatch. Peak sampled process commit was 27,475 MB. The final captured frame remained dark. This confirms the earlier refusal is removed on this stack. It does not establish which pipeline faulted or demonstrate visible terrain. |
DRED's breadcrumbs give the operations a list got through but not which pipeline was bound, so a page fault in a translated shader (the mesh shader faults reported on xcl-dev#541) names no console shader. With XCL_DRED=1, each SetPipelineState XCL records for the title (and ClearState, a list's initial pipeline, a mid-list split's next segment) is followed by a SetMarker, and the pipeline's label (the fnv64 hashes of its console shaders, as in the translation log) is kept per list in order. On an RTX 5070 (driver 621.40, Windows 26300) DRED kept no marker text (breadcrumb contexts empty) and gave the list's debug name but a null pointer, so the markers are counted in the list's operation history and each marked list is named "xcl list 0x...". The title's own markers are counted without a label. DRED's count lagged the GPU there (a fault in the second dispatch left the first one not done), so the labels bound after that operation are logged too. A list may be Reset while an earlier submission of it still runs, so the last 4 recordings of a list are kept and a DRED node is matched to the newest one with as many markers as its history. Labels and marks go with the released pipeline or list.
|
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 Result: one run of about 60 s, from the first-run screens into loading. The log had:
Earlier runs on The 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. |
|
Test and review of Tested: AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug. Clean merge.
The problem, from reading the code at that merge. A pipeline made here is a compute pass that writes records into
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:
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 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. |
DRED's breadcrumbs give the operations a list got through but not which pipeline was bound, so a page fault in a translated shader (the mesh shader faults reported on xcl-dev#541) names no console shader. With XCL_DRED=1, each SetPipelineState XCL records for the title (and ClearState, a list's initial pipeline, a mid-list split's next segment) is followed by a SetMarker, and the pipeline's label (the fnv64 hashes of its console shaders, as in the translation log) is kept per list in order. On an RTX 5070 (driver 621.40, Windows 26300) DRED kept no marker text (breadcrumb contexts empty) and gave the list's debug name but a null pointer, so the markers are counted in the list's operation history and each marked list is named "xcl list 0x...". The title's own markers are counted without a label. DRED's count lagged the GPU there (a fault in the second dispatch left the first one not done), so the labels bound after that operation are logged too. A list may be Reset while an earlier submission of it still runs, so the last 4 recordings of a list are kept and a DRED node is matched to the newest one with as many markers as its history. Labels and marks go with the released pipeline or list.
|
Test report — RTX 4090 (wave32 host), i9-13900K, 32 GB RAM, Windows 11 26200, cargo 1.100.0, debug.
Decode facts (all 40 refused containers, 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. |
|
Test report on a desktop RTX 5070 (Blackwell), head Setup
Result: the refusals are gone, and it costs ~70 % of the frame rate on this card
So on this title the PR does what it says — the 40 mesh pipelines that
Tested
Not tested
AI use
|
# Conflicts: # crates/xcl/src/gpu/recomp/emit.rs # crates/xcl/src/hle/d3d12x/real.rs
…cl-dev#630's slot handling Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…stream PR xcl-dev#541) Cherry-picked from xcl-dev/xcl PR xcl-dev#541 (commits 70f9185, 48c1517, 7654a2a, 6bd8f64). The recompiler half (xcl-dev#304) is already in upstream main and was skipped. Minimap/world mesh pipelines carry their MS container in the AS subobject; translate it as MS, defer moved MS to first bind, build the stand-in as a mesh pipeline with PC target formats. A straight revert/re-apply cycle showed the pre-present watchdog also hits without this change (poisoned-prefix effect, see LOCAL-AGENTS.md), so it stays in.
A retail title's minimap pipelines carry their console MS container in the AS subobject with no MS subobject.
translated_mesh_streamrefused them before (a black screen every run, which was kept as a workaround), and the stand-in path refused them too, for two separate reasons, both fixed here:fallback_streambuilt a PS-only stand-in. It decided "mesh" by an MS subobject; these streams have none, so the stand-in had a PS but neither a VS nor an MS and the driver refused it (E_INVALIDARG).go_backgroundreturnedNoneand every such pipeline was built in the title's call (NishantParajuli on RTX 5060 Ti, Chrysana on RX 9070 XT: black frames, ~57k pipelines queued; thehollowedone's native fixture: D3D12 message 1022).D16_UNORM_S8_UINT(118); copied as they were, the driver refused the stand-in (E_INVALIDARG, message 685) and those pipelines were also built in the call — the threeno stand-inlines Chrysana saw at 52.56 s were this case (NishantParajuli's follow-up, reproduced natively by thehollowedone onad2118d).That black screen was the translated mesh shaders failing their
ms_6_6output budget — fixed by the DXC vertex-chunk budget in #304. The slot itself was never the problem. With the budget in place the same shaders translate, the driver accepts the pipelines, and the title keeps rendering.Stacked on #304; the branch carries its head merge under the change.
What is in it (
crates/xcl/src/hle/d3d12x/real.rs)mesh_shader_slots(ms_slot, as_slot)— a console MS container alone in the AS slot becomes the MS to translate and is not an AS any more; a real AS (console or PC), an MS already present, or a PC shader in the AS slot are left as they are. The refusal block is removed. Testa_console_ms_in_the_as_slot_is_the_mesh_shadercovers all five cases.dxc::deferunderpso_async::lazy), as a console compute pipeline: the title gets a stand-in at once, the worker / first bind translates. Sparse counter log (first 5 + every 1000th). Testa_moved_ms_defers_in_the_attempt_only.fallback_stream: the stand-in of such a stream retypes the AS subobject to MS with the dummy mesh shader and uses the mesh dummy's PS (console_ms_in_as_slothelper). Testthe_stand_in_of_a_moved_ms_is_a_mesh_pipeline(fails without the change).fallback_stream:RENDER_TARGET_FORMATS/DEPTH_STENCIL_FORMATgo throughdevice_x::pc_target_format, as the real pipeline's do (118 → 45, 115/86 → 28). Testthe_stand_in_of_a_stream_has_the_pcs_target_formats(fails without the change; no DXC or GPU needed).Tested
6bd8f64(rebased ontoa1672ef; same changes as303b346).cargo test --release --workspace --no-fail-fast -- --test-threads=4on6bd8f64: 721 passed, 0 failed, 41 ignored (earlier on303b346, threads=1: 690 passed, 0 failed, 41 ignored) (2 GPU SKIPPED — no wave64 on this adapter). One earlier full run had a single failure inwrites_land_after_the_queue(WARP fence timing); it passed isolated and in the clean full rerun — a flake unrelated to this change.XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=120,XCL_FRAME_DUMP=240, scripted A presses 16–112): clean exit, steady 60 presents / 2 s, no device removal, 0no stand-in pipelinelines. First bright capture frame 980 (= main's 980 in the same schedule; the first-fix-only head had 1100). Frames 1700–2660 (t≈57–89 s) are the black world-load window; the title returns to its artwork screen at frame 2900 — no crash, no watchdog stop within 120 s.a163648: first lit frame 380, steady 600–720 draws); the second fix is verified natively on NVIDIA (thehollowedone, RTX 3080 Ti) and on this machine by stream-level tests; an AMD re-run of303b346is requested in the thread.Regression run
Main
a1672ef(current main at rebase):Head
6bd8f64:Both reach the menus at a steady 60 presents / 2 s; the frame-count difference is within run-to-run variance we see between identical builds.
Not tested
AI use
GPT-6.2 Astra (API model selector) in DSH wrote the changes and the tests, ran the builds, tests and runs above, and drafted this description; the human contributor reviewed the diff and the numbers before posting. The two stand-in fixes follow NishantParajuli's diagnoses and proposed diffs, credited in the commit messages and the thread.