d3d12: name the pipeline state stream refusals (RT-PSO-STREAM-REFUSAL-REASON) #2918

Closed
github-bot wants to merge 3 commits from github-bot/gh-2918 into main AGit
Owner

@⁠imShangLi on GitHub · 2026-12-01 18:18 UTC · original
imShangLi:feat/pso-stream-refusal-reason-v2 → main · +74 −22 · 3 files · 3 commits · closed without merging

Claimed in the coordination issue as: RT-PSO-STREAM-REFUSAL-REASON
(#2570)

Depends on: none

Continues #1740, which was closed on 28 November only to rotate this account's single open pull request slot
(#2618 has since merged). Its head branch has since been rebased, so this is the same change on the current
main; the review of the first version is in #1740's comments.

What and why

ID3D12Device2::CreatePipelineState refuses a pipeline state stream with E_INVALIDARG without saying why, so a pipeline that is skipped cannot be seen in the log.

Two places make the refusal silent, both on main:

  • runtime/shims/d3d12_vulkan_device.cpp: the finish lambda of the PC CreatePipelineState records a PipelineStream::Refused trace for E_NOTIMPL only, and every E_INVALIDARG from parse_pipeline_stream returns a bare HRESULT, so d3d12_trace::stream_refusal stays null;
  • runtime/shims/d3d12_xs_device.cpp: the console proxy's LEONIDA_PSO_STREAM_AUDIT gate fires for E_NOTIMPL and E_FAIL only, and audit_pso_stream is called from that console proxy path only, so the PC path prints no audit line either.

Each refusal now names its case and is logged once, next to stream_unsupported: the stream has no subobjects, ends inside a subobject type or payload, an unknown subobject type, two subobjects of one family, too many render targets, a compute stage with graphics stages, no shader stage, a mesh pipeline with a vertex, tessellation or geometry stage, a graphics pipeline with no vertex stage, and no description. The PC path records the E_INVALIDARG refusals in the trace, LEONIDA_PSO_STREAM_AUDIT=1 prints them, and the remaining graphics-state refusals keep one generic reason. docs/d3d12_vulkan.md follows.

No HRESULT changes.

What is new since the first review

  • the reason the log, the trace and the console audit read is now the same one: the generic reason is left in d3d12_trace::stream_refusal for the audit to print (it used to print -), the console re-read of a stream keeps its own reason out of the log (that reading may be discarded, and a stream that was built must not show a refusal), and the classic CreateGraphicsPipelineState / CreateComputePipelineState paths clear the field so that no reason of one call is left behind for another;
  • docs/d3d12_vulkan.md names the cases the stream's own refusals give, and says that the refusals of the graphics state itself keep one generic reason (there are more than a dozen of those, and they are not named here).

The classic path now logs the reason of a refusal it used to pass over in silence (a graphics pipeline with no vertex stage). That is deliberate: the refusal is the caller's mistake and it is worth seeing. It does not change any HRESULT.

Tested

  • MoonEyes built and ran the first version of this change with MSVC 19.44 on an RTX 4060 (Windows 11, NVIDIA 610.88, RelWithDebInfo): ten test targets, ctest green, and the reasons printed once each.
  • python3 -I -m unittest discover -s tests -p "test_docs_*.py" → 57 tests, OK.
  • python3 -I scripts/check_no_game_data.py runtime/shims/d3d12_vulkan_device.cpp runtime/shims/d3d12_xs_device.cpp docs/d3d12_vulkan.md → exit 0.
  • An independent read-only reviewer agent read the whole diff; its findings are the consistency fixes above.

What was not tested here

  • runtime/ is Windows-only and runtime.yml no longer runs on push or on a pull request (the legacy C++ runtime is deprecated in favour of the Rust runtimes), so no CI job compiles this diff. The Windows build and the ctest run above are the evidence.
  • No Vulkan device and no mesh shader here: the d3d12_mesh_test cases (the E_INVALIDARG set this change touches) were not run.

No game files: a stream is read from the caller's own description.

AI-assisted.

**@⁠imShangLi** on GitHub · 2026-12-01 18:18 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2918) `imShangLi:feat/pso-stream-refusal-reason-v2` → `main` · +74 −22 · 3 files · 3 commits · closed without merging Claimed in the coordination issue as: RT-PSO-STREAM-REFUSAL-REASON (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/2570) Depends on: none Continues #1740, which was closed on 28 November only to rotate this account's single open pull request slot (#2618 has since merged). Its head branch has since been rebased, so this is the same change on the current `main`; the review of the first version is in #1740's comments. ### What and why `ID3D12Device2::CreatePipelineState` refuses a pipeline state stream with `E_INVALIDARG` without saying why, so a pipeline that is skipped cannot be seen in the log. Two places make the refusal silent, both on `main`: - `runtime/shims/d3d12_vulkan_device.cpp`: the `finish` lambda of the PC `CreatePipelineState` records a `PipelineStream::Refused` trace for `E_NOTIMPL` only, and every `E_INVALIDARG` from `parse_pipeline_stream` returns a bare HRESULT, so `d3d12_trace::stream_refusal` stays null; - `runtime/shims/d3d12_xs_device.cpp`: the console proxy's `LEONIDA_PSO_STREAM_AUDIT` gate fires for `E_NOTIMPL` and `E_FAIL` only, and `audit_pso_stream` is called from that console proxy path only, so the PC path prints no audit line either. Each refusal now names its case and is logged once, next to `stream_unsupported`: the stream has no subobjects, ends inside a subobject type or payload, an unknown subobject type, two subobjects of one family, too many render targets, a compute stage with graphics stages, no shader stage, a mesh pipeline with a vertex, tessellation or geometry stage, a graphics pipeline with no vertex stage, and no description. The PC path records the `E_INVALIDARG` refusals in the trace, `LEONIDA_PSO_STREAM_AUDIT=1` prints them, and the remaining graphics-state refusals keep one generic reason. `docs/d3d12_vulkan.md` follows. No HRESULT changes. ### What is new since the first review - the reason the log, the trace and the console audit read is now the same one: the generic reason is left in `d3d12_trace::stream_refusal` for the audit to print (it used to print `-`), the console re-read of a stream keeps its own reason out of the log (that reading may be discarded, and a stream that was built must not show a refusal), and the classic `CreateGraphicsPipelineState` / `CreateComputePipelineState` paths clear the field so that no reason of one call is left behind for another; - `docs/d3d12_vulkan.md` names the cases the stream's own refusals give, and says that the refusals of the graphics state itself keep one generic reason (there are more than a dozen of those, and they are not named here). The classic path now logs the reason of a refusal it used to pass over in silence (a graphics pipeline with no vertex stage). That is deliberate: the refusal is the caller's mistake and it is worth seeing. It does not change any HRESULT. ### Tested - MoonEyes built and ran the first version of this change with MSVC 19.44 on an RTX 4060 (Windows 11, NVIDIA 610.88, RelWithDebInfo): ten test targets, `ctest` green, and the reasons printed once each. - `python3 -I -m unittest discover -s tests -p "test_docs_*.py"` → 57 tests, OK. - `python3 -I scripts/check_no_game_data.py runtime/shims/d3d12_vulkan_device.cpp runtime/shims/d3d12_xs_device.cpp docs/d3d12_vulkan.md` → exit 0. - An independent read-only reviewer agent read the whole diff; its findings are the consistency fixes above. ### What was not tested here - `runtime/` is Windows-only and `runtime.yml` no longer runs on push or on a pull request (the legacy C++ runtime is deprecated in favour of the Rust runtimes), so no CI job compiles this diff. The Windows build and the `ctest` run above are the evidence. - No Vulkan device and no mesh shader here: the `d3d12_mesh_test` cases (the `E_INVALIDARG` set this change touches) were not run. No game files: a stream is read from the caller's own description. AI-assisted.
The PC CreatePipelineState refuses a pipeline state stream with E_INVALIDARG
without saying why: the finish lambda records a PipelineStream::Refused trace for
E_NOTIMPL only, and every E_INVALIDARG from parse_pipeline_stream returns a bare
HRESULT, so d3d12_trace::stream_refusal stays null. The console audit gate fires
for E_NOTIMPL and E_FAIL only, and audit_pso_stream is called from that console
proxy path only, so the PC path prints no audit line either.

Each refusal now names its case and is logged once, next to stream_unsupported:
the stream has no subobjects, ends inside a subobject type or payload, an unknown
subobject type, two subobjects of one family, a compute stage with graphics stages,
no shader stage, a mesh pipeline with a vertex, tessellation or geometry stage, a
graphics pipeline with no vertex stage. The PC path records the E_INVALIDARG
refusals in the trace, LEONIDA_PSO_STREAM_AUDIT=1 prints them, and the remaining
graphics-state refusals keep one generic reason. docs/d3d12_vulkan.md follows.

No game files: a stream is read from the caller's own description.
The reasons the pipeline state stream refusals carry are now the ones the log,
the trace and the console audit all read:

- the generic reason (a refusal of the graphics state itself) is left in
  d3d12_trace::stream_refusal, so the console audit prints it instead of "-";
- the console re-read of a stream keeps its reason out of the log: that reading
  may be discarded, and a stream that was built must not show a refusal;
- the classic CreateGraphicsPipelineState and CreateComputePipelineState paths
  clear the field, so no reason of one call is left behind for another;
- docs/d3d12_vulkan.md names the cases the stream's own refusals give and says
  that the graphics state's refusals keep one generic reason.

No HRESULT changes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 18:18:52 +00:00
Author
Owner

@⁠merzleckeier on GitHub · 2026-12-01 18:27 UTC · original

PSO diagnostic comparison on an RTX 4070 SUPER at 78518489 on main 7fbdf851 (Win64, Wine 11.22, host driver 620.73.04).

  • pso_stream_test passed on both builds. d3d12_mesh_test passed on both builds with and without --pc-stream-only. Each mesh run had nine E_INVALIDARG and two E_NOTIMPL refusal cases, and all 4,096 expected output pixels matched. Both console-numbered streams still created with fallback enabled and were refused in PC-only mode.
  • With LEONIDA_PSO_STREAM_AUDIT=1, the new reasons identified duplicate subobject families, truncated payload and missing shader stage in the stock negative cases. The formerly unlogged PC-only truncated case emitted hr=80070057 types=unwalked reason=the pipeline state stream ends inside a subobject payload.
  • In a small instrumented run, an actual amplification-shader refusal populated the thread-local reason. Null-description calls to the underlying device’s classic compute and graphics methods both still returned E_INVALIDARG. The prior reason remained on main and cleared for both methods on the PR. Both successful console fallback streams left an empty reason on both builds.

MEASURED with the repository’s synthetic fixtures. AI-assisted (Codex).

**@⁠merzleckeier** on GitHub · 2026-12-01 18:27 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2918#issuecomment-7320978999) PSO diagnostic comparison on an RTX 4070 SUPER at `78518489` on `main` `7fbdf851` (Win64, Wine 11.22, host driver 620.73.04). - `pso_stream_test` passed on both builds. `d3d12_mesh_test` passed on both builds with and without `--pc-stream-only`. Each mesh run had nine `E_INVALIDARG` and two `E_NOTIMPL` refusal cases, and all 4,096 expected output pixels matched. Both console-numbered streams still created with fallback enabled and were refused in PC-only mode. - With `LEONIDA_PSO_STREAM_AUDIT=1`, the new reasons identified duplicate subobject families, truncated payload and missing shader stage in the stock negative cases. The formerly unlogged PC-only truncated case emitted `hr=80070057 types=unwalked reason=the pipeline state stream ends inside a subobject payload`. - In a small instrumented run, an actual amplification-shader refusal populated the thread-local reason. Null-description calls to the underlying device’s classic compute and graphics methods both still returned `E_INVALIDARG`. The prior reason remained on `main` and cleared for both methods on the PR. Both successful console fallback streams left an empty reason on both builds. MEASURED with the repository’s synthetic fixtures. AI-assisted (Codex).
Author
Owner

@⁠Kal0s-design on GitHub · 2026-12-01 18:37 UTC · original

Built and run on Windows 11 with a Vulkan device that has mesh shaders. The description says no CI job compiles this diff any more and that d3d12_mesh_test was not run here, so this covers both.

Setup: MSVC 19.50 (VS 18), Ninja, RelWithDebInfo, LEONIDA_REQUIRE_VULKAN=ON, Vulkan SDK 1.4.363, NVIDIA desktop card (subgroups 32..32, mesh tier 1). Head 78518489c, which already contains main d2a564b66.

Build: clean, all 1210 steps. No new warning on the changed lines. The warnings in d3d12_vulkan_device.cpp near the change, such as C4189 dev unused in create_graphics, are on lines the PR does not touch.

d3d12_mesh_test: passes (exit 0). Summary line: mesh and VS PSOs from pipeline state streams (9 refused as invalid, 2 as not implemented). Each refusal now shows once in the log with its case:

[rt] d3d12: a compute stage with graphics stages 0
[rt] d3d12: a mesh pipeline with a vertex, tessellation or geometry stage 0
[rt] d3d12: a pipeline state stream this layer refuses 0
[rt] d3d12: no shader stage in the pipeline state stream 0
[rt] d3d12: the pipeline state stream ends inside a subobject payload 0
[rt] d3d12: two subobjects of one family in the pipeline state stream 2
[rt] d3d12: two subobjects of one family in the pipeline state stream 11
[rt] d3d12: two subobjects of one family in the pipeline state stream 21
[rt] d3d12: two subobjects of one family in the pipeline state stream 28
[rt] d3d12: unknown pipeline state stream subobject type 23

The two E_NOTIMPL ones keep their own lines: amplification shaders, type 24, and the depth-bounds test, type 21. One small nit: reasons with no subobject type print a trailing 0 (... graphics stages 0), since stream_invalid passes type = 0 to log_once. Harmless, but it reads like a count.

Full ctest -j 6: 542 of 550 pass, 8 fail. The same 8 fail on main d2a564b66: I built those three targets from main and ran the same tests. They are not this change:

  • d3d12_existing_heap
  • d3d12_existing_heap_write_watch
  • xbox_present
  • d3d12_title_va
  • d3d12_title_va_shadow
  • d3d12_geometry_views
  • d3d12_title_va_game_device
  • d3d12_geometry_views_game_device

For example, d3d12_title_va_test stops at line 1205: aliases.resolve(gpu_va + seam - 0x100, 0x200, root) == 0 on both trees.

Not checked: the console proxy path with LEONIDA_PSO_STREAM_AUDIT=1 (d3d12_mesh_test goes through the PC device here, so it printed no audit lines), and the game.

GPUs tested: one NVIDIA desktop card, Vulkan with VK_EXT_mesh_shader.

AI-assisted: yes (Claude Code).

**@⁠Kal0s-design** on GitHub · 2026-12-01 18:37 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2918#issuecomment-7321235595) Built and run on Windows 11 with a Vulkan device that has mesh shaders. The description says no CI job compiles this diff any more and that `d3d12_mesh_test` was not run here, so this covers both. Setup: MSVC 19.50 (VS 18), Ninja, RelWithDebInfo, `LEONIDA_REQUIRE_VULKAN=ON`, Vulkan SDK 1.4.363, NVIDIA desktop card (subgroups 32..32, mesh tier 1). Head `78518489c`, which already contains `main` `d2a564b66`. **Build:** clean, all 1210 steps. No new warning on the changed lines. The warnings in `d3d12_vulkan_device.cpp` near the change, such as C4189 `dev` unused in `create_graphics`, are on lines the PR does not touch. **`d3d12_mesh_test`:** passes (exit 0). Summary line: `mesh and VS PSOs from pipeline state streams (9 refused as invalid, 2 as not implemented)`. Each refusal now shows once in the log with its case: ``` [rt] d3d12: a compute stage with graphics stages 0 [rt] d3d12: a mesh pipeline with a vertex, tessellation or geometry stage 0 [rt] d3d12: a pipeline state stream this layer refuses 0 [rt] d3d12: no shader stage in the pipeline state stream 0 [rt] d3d12: the pipeline state stream ends inside a subobject payload 0 [rt] d3d12: two subobjects of one family in the pipeline state stream 2 [rt] d3d12: two subobjects of one family in the pipeline state stream 11 [rt] d3d12: two subobjects of one family in the pipeline state stream 21 [rt] d3d12: two subobjects of one family in the pipeline state stream 28 [rt] d3d12: unknown pipeline state stream subobject type 23 ``` The two `E_NOTIMPL` ones keep their own lines: amplification shaders, type 24, and the depth-bounds test, type 21. One small nit: reasons with no subobject type print a trailing ` 0` (`... graphics stages 0`), since `stream_invalid` passes `type = 0` to `log_once`. Harmless, but it reads like a count. **Full `ctest -j 6`:** 542 of 550 pass, 8 fail. The same 8 fail on `main` `d2a564b66`: I built those three targets from `main` and ran the same tests. They are not this change: - `d3d12_existing_heap` - `d3d12_existing_heap_write_watch` - `xbox_present` - `d3d12_title_va` - `d3d12_title_va_shadow` - `d3d12_geometry_views` - `d3d12_title_va_game_device` - `d3d12_geometry_views_game_device` For example, `d3d12_title_va_test` stops at `line 1205: aliases.resolve(gpu_va + seam - 0x100, 0x200, root) == 0` on both trees. Not checked: the console proxy path with `LEONIDA_PSO_STREAM_AUDIT=1` (`d3d12_mesh_test` goes through the PC device here, so it printed no audit lines), and the game. GPUs tested: one NVIDIA desktop card, Vulkan with VK_EXT_mesh_shader. AI-assisted: yes (Claude Code).
Author
Owner

@⁠KelboLive on GitHub · 2026-12-01 18:46 UTC · original · reviewed

The parser side is sound: all nine parse_pipeline_stream E_INVALIDARG returns and the mesh/no-VS checks now set stream_refusal, the returned HRESULTs are unchanged, and the classic paths clear the stale reason. pipeline:: is 38/0, the docs tests are 57/0, and merge-tree against current main is clean.

Two consistency gaps remain:

  1. finish only supplies the generic reason for E_INVALIDARG. Bare E_NOTIMPL returns in the same call graph (d3d12_vulkan_device.cpp:19110, :19148, :19277, :19956) leave stream_refusal == nullptr, so the trace records other backend state and the audit prints reason=- — while docs/d3d12_vulkan.md:3361 says both E_NOTIMPL and E_INVALIDARG refusals carry a reason. Either name those four, or narrow the doc.
  2. The mesh message omits stream output: :18985 says "vertex, tessellation or geometry stage", but the check at :18983 also rejects StreamOutput.NumEntries.

And the one that matters for keeping this fixed: no test asserts any reason string. Swapping the unknown-type and duplicate-family reasons at :18113/:18115 survives both the cargo suite and the docs suite, and the existing C++ PSO tests only compare HRESULTs. One assertion (the mesh test is the natural place) would pin the new behaviour.

Minor, not blocking: quiet_refusal only suppresses stream_invalid, so stream_unsupported (:18231) and other log_once diagnostics still print during a discarded console re-read, and E_FAIL from stub_or (:19080, :19918) produces no PipelineStream::Refused record. The 41 bare return E_INVALIDARG sites in the creation range collapse to the documented generic reason on the stream path, which the docs acknowledge at :3380 — fine as long as that stays true.

The watch::port7_tests failure I saw once in a full parallel run passes alone and on a rerun — the known flake, not this PR (no Rust files touched).

**@⁠KelboLive** on GitHub · 2026-12-01 18:46 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2918#pullrequestreview-6137761410) · **reviewed** The parser side is sound: all nine `parse_pipeline_stream` `E_INVALIDARG` returns and the mesh/no-VS checks now set `stream_refusal`, the returned HRESULTs are unchanged, and the classic paths clear the stale reason. `pipeline::` is 38/0, the docs tests are 57/0, and `merge-tree` against current main is clean. Two consistency gaps remain: 1. **`finish` only supplies the generic reason for `E_INVALIDARG`.** Bare `E_NOTIMPL` returns in the same call graph (`d3d12_vulkan_device.cpp:19110`, `:19148`, `:19277`, `:19956`) leave `stream_refusal == nullptr`, so the trace records `other backend state` and the audit prints `reason=-` — while `docs/d3d12_vulkan.md:3361` says both `E_NOTIMPL` and `E_INVALIDARG` refusals carry a reason. Either name those four, or narrow the doc. 2. **The mesh message omits stream output**: `:18985` says "vertex, tessellation or geometry stage", but the check at `:18983` also rejects `StreamOutput.NumEntries`. And the one that matters for keeping this fixed: **no test asserts any reason string.** Swapping the unknown-type and duplicate-family reasons at `:18113`/`:18115` survives both the cargo suite and the docs suite, and the existing C++ PSO tests only compare HRESULTs. One assertion (the mesh test is the natural place) would pin the new behaviour. Minor, not blocking: `quiet_refusal` only suppresses `stream_invalid`, so `stream_unsupported` (`:18231`) and other `log_once` diagnostics still print during a discarded console re-read, and `E_FAIL` from `stub_or` (`:19080`, `:19918`) produces no `PipelineStream::Refused` record. The 41 bare `return E_INVALIDARG` sites in the creation range collapse to the documented generic reason on the stream path, which the docs acknowledge at `:3380` — fine as long as that stays true. The `watch::port7_tests` failure I saw once in a full parallel run passes alone and on a rerun — the known flake, not this PR (no Rust files touched).
github-bot closed this pull request 2026-12-02 00:46:33 +00:00
Author
Owner

@⁠aslan2142 on GitHub · 2026-12-02 00:44 UTC · original

Thank you for the careful work and verification on pipeline state stream refusal diagnostics. The legacy C++/Vulkan runtime/ directory is now frozen and deprecated as active development focuses on the d3d12/ and clean-room Rust vulkan/ tracks, so we are closing open legacy runtime/ PRs. If a corresponding diagnostic improvement is useful on the active tracks, a fresh PR targeting d3d12/ or vulkan/ would be very welcome.

**@⁠aslan2142** on GitHub · 2026-12-02 00:44 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2918#issuecomment-7330908908) Thank you for the careful work and verification on pipeline state stream refusal diagnostics. The legacy C++/Vulkan runtime/ directory is now frozen and deprecated as active development focuses on the d3d12/ and clean-room Rust vulkan/ tracks, so we are closing open legacy runtime/ PRs. If a corresponding diagnostic improvement is useful on the active tracks, a fresh PR targeting d3d12/ or vulkan/ would be very welcome.
Author
Owner

@⁠imShangLi on GitHub · 2026-12-02 00:49 UTC · original

Closed as the legacy runtime/ is frozen — understood, and thank you for the review.

For the invitation ("a corresponding diagnostic improvement … on the active tracks"): I looked, and the Rust track already has what this pull request added to the C++ one. Every refusal there carries its reason:

// crates/leonida-gpu/src/pipeline/host.rs
tracing::warn!(error = %e, ?shaders, "host root signature refused");        // :829
tracing::warn!(error = %e, ?shaders, ?names, "host pipeline refused");      // :863
tracing::warn!(error = %e, ?shaders, "host mesh pipeline refused");         // :921

and the translator's own error is the one the legacy layer had to dig for — ShaderError::Unsupported { offset, what } and ShaderError::Isa { offset, reason } (crates/leonida-shader/src/lib.rs:32-41) — so the reason and the offset where it happened are already there, and the pipeline path logs them.

So I did not port it; there was nothing to port. If a gap in that area is known, tell me which and I will take it.

Two things from the verification that may be useful to the project:

  • A "silent refusal" in the Rust track, if there is one, would look like this: a Result that becomes None or an Err whose message never reaches a tracing line. I did not find one in the pipeline path.
  • The fuzzers I wrote (no game files needed): tools/fuzz_translator.py and tools/fuzz_operands.py for tools/rdna2spirv.py, and a temporary harness over leonida_shader::Container::parse / DxilProgram::parse / leonida_pe::ImageInfo::parse. Results: 79,332 operand-value mutations of the Python translator, 200,000 random containers for the DXBC/DXIL parsers and 300,000 for the PE parser — no unexpected crash in any of them (the only exceptions were the Python translator's malformed-listing cases, which need a malformed input the console's own disassembly never is, and the compute fixtures' missing .fssm header, which is the harness's business). I can put the harnesses in the repository as tests if that is wanted.

AI-assisted.

**@⁠imShangLi** on GitHub · 2026-12-02 00:49 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2918#issuecomment-7331001831) Closed as the legacy `runtime/` is frozen — understood, and thank you for the review. For the invitation ("a corresponding diagnostic improvement … on the active tracks"): I looked, and the Rust track already has what this pull request added to the C++ one. Every refusal there carries its reason: ```rust // crates/leonida-gpu/src/pipeline/host.rs tracing::warn!(error = %e, ?shaders, "host root signature refused"); // :829 tracing::warn!(error = %e, ?shaders, ?names, "host pipeline refused"); // :863 tracing::warn!(error = %e, ?shaders, "host mesh pipeline refused"); // :921 ``` and the translator's own error is the one the legacy layer had to dig for — `ShaderError::Unsupported { offset, what }` and `ShaderError::Isa { offset, reason }` (`crates/leonida-shader/src/lib.rs:32-41`) — so the reason and the offset where it happened are already there, and the pipeline path logs them. So I did not port it; there was nothing to port. If a gap in that area is known, tell me which and I will take it. Two things from the verification that may be useful to the project: - **A "silent refusal" in the Rust track, if there is one, would look like this:** a `Result` that becomes `None` or an `Err` whose message never reaches a `tracing` line. I did not find one in the pipeline path. - **The fuzzers I wrote** (no game files needed): `tools/fuzz_translator.py` and `tools/fuzz_operands.py` for `tools/rdna2spirv.py`, and a temporary harness over `leonida_shader::Container::parse` / `DxilProgram::parse` / `leonida_pe::ImageInfo::parse`. Results: 79,332 operand-value mutations of the Python translator, 200,000 random containers for the DXBC/DXIL parsers and 300,000 for the PE parser — **no unexpected crash in any of them** (the only exceptions were the Python translator's malformed-listing cases, which need a malformed input the console's own disassembly never is, and the compute fixtures' missing `.fssm` header, which is the harness's business). I can put the harnesses in the repository as tests if that is wanted. AI-assisted.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/ubiquitarianism--leonida!2918
No description provided.