d3d12: compile runtime SM 5.1 shaders via app-local DXC on Wine (D3D12-LINUX-DXC-RUNTIME-SHADERS) #2642

Open
zmasi wants to merge 13 commits from upstream-pr/2642 into main
zmasi commented 2026-11-29 20:42:31 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-29T20:42:31Z.


Claimed in #2570: D3D12-LINUX-DXC-RUNTIME-SHADERS (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7250675174)

Summary

Implements D3D12-LINUX-DXC-RUNTIME-SHADERS across d3d12/crates/leonida-gpu, d3d12/README.md, and d3d12/docs/switches.md:

  • Compile runtime SM 5.1 HLSL with app-local DXC on Wine while keeping native Windows on FXC (compiler.rs, lib.rs, d3d12/README.md):
    • Adds compiler::compile_named. On native Windows (wine_get_version absent on ntdll.dll), every shader continues to compile via system D3DCompile with its original profile and flags untouched.
    • Under Wine (dxc_profile_for), when flags & !D3DCOMPILE_ENABLE_UNBOUNDED_DESCRIPTOR_TABLES == 0 and the target is cs_5_1, ps_5_1, or vs_5_1, compile_named loads dxcompiler.dll, preloads dxil.dll from the executable's own directory using LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR | LOAD_LIBRARY_SEARCH_SYSTEM32, creates and caches IDxcCompiler3 once behind a Mutex, and compiles as cs_6_0 / ps_6_0 / vs_6_0 (-HV 2016 -flegacy-macro-expansion -O1), preserving [RootSignature(...)] blobs, atomics, and unbounded descriptor arrays that Wine's built-in FXC strips or rejects.
    • When the app-local DXC pair is absent or cannot be loaded, compiler.rs warns once and falls back to FXC; once DXC is loaded, compile errors extract UTF-8 diagnostics via IDxcResult::GetOutput::<IDxcBlobUtf8>(DXC_OUT_ERRORS, ...) (with GetErrorBuffer fallback, or an explicit {hr:#010x} status message when diagnostic blobs are empty), log tracing::warn!("DXC: ..."), and return Err directly without retrying Wine's FXC.
  • Route all runtime SM 5.1 [RootSignature] shaders through compiler::compile_named (host.rs, compose.rs, host/trainer.rs, indirect.rs, indirect/bench.rs, inplace.rs, replay/play/merge.rs):
    • Routes host::compile (covering ambient.rs, descriptor/host.rs, host.rs depth planes, host/awake.rs, host/card_steps.rs, host/send.rs, host/upcheck.rs, resource.rs, and tiles.rs), Host::make_card_work (CARD_COMPARE), compose::compile_source (Composer::new), host::trainer::compile (F4 trainer overlay), indirect (WIDE_PROBE, argument clamp, and indirect::bench), inplace::Rig::shade (LEONIDA_INPLACE_PROBE), and replay::play::merge (Player::set_merging) through compiler::compile_named, leaving compiler.rs as the sole non-test D3DCompile caller in d3d12/ (texture.rs alias_cast_tests and tests/replay.rs are test-only).
  • Focused unit and hardware D3D12 compute dispatch/readback suite (compiler/tests.rs, d3d12/docs/switches.md):
    • Places LEONIDA_TEST_DXC_DIR and compiler tests in d3d12/crates/leonida-gpu/src/compiler/tests.rs (classified under ## Only in tests in d3d12/docs/switches.md), covering the Wine/native routing table (dxc_profile_for), empty-error-blob HRESULT logging (dxc_status_error), CARD_COMPARE FXC/DXC PSO + UTF-8 error diagnostics, and hardware D3D12 compute dispatch + readback (compiled_compute_shader_dispatches_and_reads_back_on_fxc_and_dxc) across both FXC cs_5_1 and signed DXC cs_6_0 with macro-concatenated [RootSignature], root constants, root UAV, and an unbounded ByteAddressBuffer[] descriptor table.
    • Keeps pull-request scope strictly to runtime shader compiler routing (ambient_readback.rs and tests/replay.rs changes removed for a separate follow-up PR per review).

Verification

  • Current head (164506d01) merged with origin/main (b41763227) on Windows 11 Pro 10.0.26200 + NVIDIA GeForce RTX 3090 (driver 610.88) + Windows SDK DXC (dxcompiler.dll + dxil.dll):
    • cargo test --locked --target x86_64-pc-windows-msvc -p leonida-gpu --lib compiler:: and --features diagnostics --lib compiler:: -> 5/5 passed on both (including hardware D3D12 compute dispatch + readback on both FXC cs_5_1 and DXC cs_6_0).
    • cargo test --locked --target x86_64-pc-windows-msvc -p leonida-gpu --features diagnostics --lib on the_composer_compiles_with_and_without_the_nan_clamp, trainer_menu_shaders_compile_with_embedded_root_signature, inplace_probe_shader_compiles_with_embedded_root_signature, and merge_shader_compiles_with_embedded_root_signature -> 4/4 passed.
    • cargo test --locked --target x86_64-pc-windows-msvc -p leonida-gpu --features diagnostics --test replay -> 1/1 passed (a_frame_is_recorded_and_replayed on stock main tests/replay.rs).
    • cargo clippy --locked --target x86_64-pc-windows-msvc -p leonida-gpu [--features diagnostics] --all-targets --no-deps -> 0 warnings in all new/modified hunks (0 warnings crate-wide in default build).
    • python -I tools/d3d12_switches.py --check d3d12/docs/switches.md, python -I tests/test_d3d12_switches.py (20/20), python -I tests/test_text_write_line_endings.py (3/3), and python -I scripts/check_no_game_data.py -> all exit 0.
  • In-game Linux Wine + VKD3D-Proton runs reported on this PR's compiler routing:

GPUs tested: NVIDIA GeForce RTX 3090 24 GB (Windows 11 Pro 10.0.26200, driver 610.88, Windows SDK DXC); prior Linux Wine / VKD3D-Proton verification on AMD Radeon Pro Vega II (RADV 26.0.8), NVIDIA GeForce RTX 4050 Laptop (580.196.07), NVIDIA GeForce RTX 4070 SUPER & AMD Radeon Raphael (620.73.04 / RADV 26.3.1), and NVIDIA GeForce RTX 4090 (620.73.04).

AI-assisted: yes — authored with OpenAI Codex / Claude Opus on initial branch commits, updated on this head with Gemini 4 Carbon (High), and independently reviewed in read-only mode on this head by Gemini 4 Neon (XHigh) (opus-systems-critic).

Checklist

  • Based on current main and merges cleanly.
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: runtime HLSL compilation only)
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5554909810 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2642). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-29T20:42:31Z. --- Claimed in #2570: `D3D12-LINUX-DXC-RUNTIME-SHADERS` (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7250675174) ## Summary Implements `D3D12-LINUX-DXC-RUNTIME-SHADERS` across `d3d12/crates/leonida-gpu`, `d3d12/README.md`, and `d3d12/docs/switches.md`: - **Compile runtime SM 5.1 HLSL with app-local DXC on Wine while keeping native Windows on FXC (`compiler.rs`, `lib.rs`, `d3d12/README.md`)**: - Adds `compiler::compile_named`. On native Windows (`wine_get_version` absent on `ntdll.dll`), every shader continues to compile via system `D3DCompile` with its original profile and flags untouched. - Under Wine (`dxc_profile_for`), when `flags & !D3DCOMPILE_ENABLE_UNBOUNDED_DESCRIPTOR_TABLES == 0` and the target is `cs_5_1`, `ps_5_1`, or `vs_5_1`, `compile_named` loads `dxcompiler.dll`, preloads `dxil.dll` from the executable's own directory using `LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR | LOAD_LIBRARY_SEARCH_SYSTEM32`, creates and caches `IDxcCompiler3` once behind a `Mutex`, and compiles as `cs_6_0` / `ps_6_0` / `vs_6_0` (`-HV 2016 -flegacy-macro-expansion -O1`), preserving `[RootSignature(...)]` blobs, atomics, and unbounded descriptor arrays that Wine's built-in FXC strips or rejects. - When the app-local DXC pair is absent or cannot be loaded, `compiler.rs` warns once and falls back to FXC; once DXC is loaded, compile errors extract UTF-8 diagnostics via `IDxcResult::GetOutput::<IDxcBlobUtf8>(DXC_OUT_ERRORS, ...)` (with `GetErrorBuffer` fallback, or an explicit `{hr:#010x}` status message when diagnostic blobs are empty), log `tracing::warn!("DXC: ...")`, and return `Err` directly without retrying Wine's FXC. - **Route all runtime SM 5.1 `[RootSignature]` shaders through `compiler::compile_named` (`host.rs`, `compose.rs`, `host/trainer.rs`, `indirect.rs`, `indirect/bench.rs`, `inplace.rs`, `replay/play/merge.rs`)**: - Routes `host::compile` (covering `ambient.rs`, `descriptor/host.rs`, `host.rs` depth planes, `host/awake.rs`, `host/card_steps.rs`, `host/send.rs`, `host/upcheck.rs`, `resource.rs`, and `tiles.rs`), `Host::make_card_work` (`CARD_COMPARE`), `compose::compile_source` (`Composer::new`), `host::trainer::compile` (F4 trainer overlay), `indirect` (`WIDE_PROBE`, argument clamp, and `indirect::bench`), `inplace::Rig::shade` (`LEONIDA_INPLACE_PROBE`), and `replay::play::merge` (`Player::set_merging`) through `compiler::compile_named`, leaving `compiler.rs` as the sole non-test `D3DCompile` caller in `d3d12/` (`texture.rs` `alias_cast_tests` and `tests/replay.rs` are test-only). - **Focused unit and hardware D3D12 compute dispatch/readback suite (`compiler/tests.rs`, `d3d12/docs/switches.md`)**: - Places `LEONIDA_TEST_DXC_DIR` and compiler tests in `d3d12/crates/leonida-gpu/src/compiler/tests.rs` (classified under `## Only in tests` in `d3d12/docs/switches.md`), covering the Wine/native routing table (`dxc_profile_for`), empty-error-blob `HRESULT` logging (`dxc_status_error`), `CARD_COMPARE` FXC/DXC PSO + UTF-8 error diagnostics, and hardware D3D12 compute dispatch + readback (`compiled_compute_shader_dispatches_and_reads_back_on_fxc_and_dxc`) across both FXC `cs_5_1` and signed DXC `cs_6_0` with macro-concatenated `[RootSignature]`, root constants, root UAV, and an unbounded `ByteAddressBuffer[]` descriptor table. - Keeps pull-request scope strictly to runtime shader compiler routing (`ambient_readback.rs` and `tests/replay.rs` changes removed for a separate follow-up PR per review). ## Verification - **Current head (`164506d01`) merged with `origin/main` (`b41763227`) on Windows 11 Pro `10.0.26200` + NVIDIA GeForce RTX 3090 (driver `610.88`) + Windows SDK DXC (`dxcompiler.dll` + `dxil.dll`)**: - `cargo test --locked --target x86_64-pc-windows-msvc -p leonida-gpu --lib compiler::` and `--features diagnostics --lib compiler::` -> `5/5` passed on both (including hardware D3D12 compute dispatch + readback on both FXC `cs_5_1` and DXC `cs_6_0`). - `cargo test --locked --target x86_64-pc-windows-msvc -p leonida-gpu --features diagnostics --lib` on `the_composer_compiles_with_and_without_the_nan_clamp`, `trainer_menu_shaders_compile_with_embedded_root_signature`, `inplace_probe_shader_compiles_with_embedded_root_signature`, and `merge_shader_compiles_with_embedded_root_signature` -> `4/4` passed. - `cargo test --locked --target x86_64-pc-windows-msvc -p leonida-gpu --features diagnostics --test replay` -> `1/1` passed (`a_frame_is_recorded_and_replayed` on stock `main` `tests/replay.rs`). - `cargo clippy --locked --target x86_64-pc-windows-msvc -p leonida-gpu [--features diagnostics] --all-targets --no-deps` -> `0` warnings in all new/modified hunks (`0` warnings crate-wide in default build). - `python -I tools/d3d12_switches.py --check d3d12/docs/switches.md`, `python -I tests/test_d3d12_switches.py` (`20/20`), `python -I tests/test_text_write_line_endings.py` (`3/3`), and `python -I scripts/check_no_game_data.py` -> all exit `0`. - **In-game Linux Wine + VKD3D-Proton runs reported on this PR's compiler routing**: - @deynesdev (https://github.com/ProjectLeonida/mandy/pull/2642#issuecomment-7347763633 & https://github.com/ProjectLeonida/mandy/pull/2642#issuecomment-7337871520): 420 s run (360 s steady open-world play) on RTX 4050 Laptop 6 GB, NVIDIA 580.196.07, Fedora 44, Wine 11.21 Staging, VKD3D-Proton 3.2.0, DXC `1.9.2609.5`, `WINEDLLOVERRIDES=d3dcompiler_47=b` -> `0` device-lost/crashes, `0` `two-plane composer not made` errors (vs `1,334` and black picture on `main`), `0` `DXC:` warnings. - @z3r0rc (https://github.com/ProjectLeonida/mandy/pull/2642#issuecomment-7308355826 & https://github.com/ProjectLeonida/mandy/pull/2642#issuecomment-7262486177): RTX 4090, NVIDIA 620.73.04, Wine 11.23, DXC `1.9.2609` -> `20/20` runtime helpers compiled, `DROPPED indirect` `2,400–3,700/frame -> 0`. - @merzleckeier (https://github.com/ProjectLeonida/mandy/pull/2642#issuecomment-7262767779 & https://github.com/ProjectLeonida/mandy/pull/2642#issuecomment-7262588416): RTX 4070 SUPER (NVIDIA 620.73.04) and Radeon Raphael (RADV 26.3.1), CachyOS, Wine 11.22, VKD3D-Proton 3.1/3.2, DXC `1.9.2609` -> routing matrix and DXC root-signature/diagnostic checks passed across both adapters. GPUs tested: NVIDIA GeForce RTX 3090 24 GB (Windows 11 Pro `10.0.26200`, driver 610.88, Windows SDK DXC); prior Linux Wine / VKD3D-Proton verification on AMD Radeon Pro Vega II (RADV 26.0.8), NVIDIA GeForce RTX 4050 Laptop (580.196.07), NVIDIA GeForce RTX 4070 SUPER & AMD Radeon Raphael (620.73.04 / RADV 26.3.1), and NVIDIA GeForce RTX 4090 (620.73.04). AI-assisted: yes — authored with OpenAI Codex / Claude Opus on initial branch commits, updated on this head with Gemini 4 Carbon (High), and independently reviewed in read-only mode on this head by Gemini 4 Neon (XHigh) (`opus-systems-critic`). ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (`CONTRIBUTING.md`), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: runtime HLSL compilation only)
z3r0rc commented 2026-11-29 20:57:10 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by z3r0rc on 2026-11-29T20:57:10Z.


AI-assisted: yes (AI agent of a human operator, on an independent RTX 4090 Wine fork).

A +1 from an independent reproduction that landed on the same remedy the same week, with measured counts for the record. No stake beyond the symptom: our own branch is retired in favour of yours.

Offline (Wine 11.23 in a container, no GPU, no game files), over the 20 HLSL variants the runtime compiles for itself at run time (argument clamp, batched clamp, wide probe, card compare/gather/scatter, awake check, upload check, plane corners/floats/steps, inplace read, trainer vs/ps, six ambient passes): 15 of 20 fail under Wine's builtin d3dcompiler_47 — exactly the ones with raw-buffer member methods (E5005: Method 'InterlockedOr' is not defined on type 'RWByteAddressBuffer'., same for Load4, and E5005: Function "isnan" is not defined.) — and the builtin also accepts [RootSignature(...)] while leaving RTS0 out of the container, so CreateRootSignature fails on code that compiled. The 5 that pass have neither a raw-buffer member nor a declared root signature — a split that lines up exactly with the sources your wine_get_version + *_5_1 + flags-mask gate routes to DXC.

Live (RTX 4090, driver 620.73.04, Wine 11.23, app-local dxcompiler.dll+dxil.dll): with the fallback in, the five compile-failure WARN families disappear, the argument clamp comes alive and DROPPED indirect goes from 2,400–3,700 per frame to 0, and the world renders lit where every earlier window showed a black world with perfect menus — menus and cinematics are drawn direct, which is why they looked fine all along. In one normal play window the fallback fires 12 times: 8 × compiled code holding no root signature the source declares, 2 × isnan, 1 × Load4, 1 × InterlockedOr.

One small design note from our tree: report "no app-local DXC found" apart from "DXC refused this source" — one combined message that always blamed the file sent us hunting for a DLL that was already loaded.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7262486177 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2642#issuecomment-7262486177). Originally posted by [z3r0rc](https://github.com/z3r0rc) on 2026-11-29T20:57:10Z. --- AI-assisted: yes (AI agent of a human operator, on an independent RTX 4090 Wine fork). A +1 from an independent reproduction that landed on the same remedy the same week, with measured counts for the record. No stake beyond the symptom: our own branch is retired in favour of yours. Offline (Wine 11.23 in a container, no GPU, no game files), over the 20 HLSL variants the runtime compiles for itself at run time (argument clamp, batched clamp, wide probe, card compare/gather/scatter, awake check, upload check, plane corners/floats/steps, inplace read, trainer vs/ps, six ambient passes): 15 of 20 fail under Wine's builtin `d3dcompiler_47` — exactly the ones with raw-buffer member methods (`E5005: Method 'InterlockedOr' is not defined on type 'RWByteAddressBuffer'.`, same for `Load4`, and `E5005: Function "isnan" is not defined.`) — and the builtin also accepts `[RootSignature(...)]` while leaving `RTS0` out of the container, so `CreateRootSignature` fails on code that compiled. The 5 that pass have neither a raw-buffer member nor a declared root signature — a split that lines up exactly with the sources your `wine_get_version` + `*_5_1` + flags-mask gate routes to DXC. Live (RTX 4090, driver 620.73.04, Wine 11.23, app-local `dxcompiler.dll`+`dxil.dll`): with the fallback in, the five compile-failure WARN families disappear, the argument clamp comes alive and `DROPPED indirect` goes from 2,400–3,700 per frame to 0, and the world renders lit where every earlier window showed a black world with perfect menus — menus and cinematics are drawn direct, which is why they looked fine all along. In one normal play window the fallback fires 12 times: 8 × compiled code holding no root signature the source declares, 2 × `isnan`, 1 × `Load4`, 1 × `InterlockedOr`. One small design note from our tree: report "no app-local DXC found" apart from "DXC refused this source" — one combined message that always blamed the file sent us hunting for a DLL that was already loaded.
zmasi commented 2026-11-29 20:58:22 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-29T20:58:22Z.


Thank you @z3r0rc for the independent Wine 11.23 + RTX 4090 reproduction (15/20 runtime HLSL variants, 2,400–3,700 -> 0 dropped indirects per frame) and for retiring the duplicate branch in favour of this PR!

Confirmed on your diagnostic note as well: compiler.rs (9075a5e419, lines 66–77 and compile_dxc) separates those two failure modes — missing/unloadable dxcompiler.dll + dxil.dll logs "app-local DXC unavailable; using FXC on Wine (embedded root signatures may be missing)" once in the LazyLock initializer and falls back to D3DCompile, whereas a loaded DXC rejecting HLSL extracts IDxcBlobUtf8 (DXC_OUT_ERRORS) and logs "DXC: ..." directly without falling back or blaming DLL discovery.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7262501237 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2642#issuecomment-7262501237). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-29T20:58:22Z. --- Thank you @z3r0rc for the independent Wine 11.23 + RTX 4090 reproduction (`15/20` runtime HLSL variants, `2,400–3,700 -> 0` dropped indirects per frame) and for retiring the duplicate branch in favour of this PR! Confirmed on your diagnostic note as well: `compiler.rs` (`9075a5e419`, lines 66–77 and `compile_dxc`) separates those two failure modes — missing/unloadable `dxcompiler.dll` + `dxil.dll` logs `"app-local DXC unavailable; using FXC on Wine (embedded root signatures may be missing)"` once in the `LazyLock` initializer and falls back to `D3DCompile`, whereas a loaded DXC rejecting HLSL extracts `IDxcBlobUtf8` (`DXC_OUT_ERRORS`) and logs `"DXC: ..."` directly without falling back or blaming DLL discovery. AI-assisted.
merzleckeier commented 2026-11-29 21:04:57 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-29T21:04:57Z.


Follow-up covering the graphics and diagnostic paths of 9075a5e41 merged onto 7bbc1d22 (34fc022c). CachyOS, Wine 11.22, VKD3D-Proton 71cae091, RTX 4070 SUPER (620.73.04) and Radeon Raphael (RADV 26.3.1). Microsoft DXC 1.9.2609

MEASURED. With the matching pair beside the unchanged test executable, five cases per GPU switched from failing to passing. They cover CARD_COMPARE and the unbounded root signature, display-plane composition, the trainer overlay, fog readback, and the offscreen unbounded texture table. The table test read fixed=1024 other=1765 on both GPUs. On RADV, a compiler-only directory and a pair in the working directory alone both reproduced the representative FXC fallback failure. The full recorder/replay test stopped at the native command-list identity check in both arms.

MEASURED, diagnostic unit test. The existing test that checks Error::message() failed 3/3 per GPU even with the pair loaded. A local probe printed leonida.hlsl:1:12: error: expected parameter declarator from dxc_errors before Error::new, followed by the generic Call failed. from Error::message().

I put a small follow-up on my fork. The test checks the failed DXC status and the diagnostic text directly from IDxcResult. The runtime still logs the detailed text and returns the same Windows result as before. This passed 3/3 per GPU, and the five working cases above stayed green on both GPUs. Test fix e32fa8b49

Synthetic fixtures only. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7262588416 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2642#issuecomment-7262588416). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-11-29T21:04:57Z. --- Follow-up covering the graphics and diagnostic paths of `9075a5e41` merged onto `7bbc1d22` (`34fc022c`). CachyOS, Wine 11.22, VKD3D-Proton `71cae091`, RTX 4070 SUPER (620.73.04) and Radeon Raphael (RADV 26.3.1). [Microsoft DXC 1.9.2609](https://github.com/microsoft/DirectXShaderCompiler/releases/tag/v1.9.2609) **MEASURED.** With the matching pair beside the unchanged test executable, five cases per GPU switched from failing to passing. They cover `CARD_COMPARE` and the unbounded root signature, display-plane composition, the trainer overlay, fog readback, and the offscreen unbounded texture table. The table test read `fixed=1024 other=1765` on both GPUs. On RADV, a compiler-only directory and a pair in the working directory alone both reproduced the representative FXC fallback failure. The full recorder/replay test stopped at the native command-list identity check in both arms. **MEASURED, diagnostic unit test.** The existing test that checks `Error::message()` failed 3/3 per GPU even with the pair loaded. A local probe printed `leonida.hlsl:1:12: error: expected parameter declarator` from `dxc_errors` before `Error::new`, followed by the generic `Call failed.` from `Error::message()`. I put a small follow-up on my fork. The test checks the failed DXC status and the diagnostic text directly from `IDxcResult`. The runtime still logs the detailed text and returns the same Windows result as before. This passed 3/3 per GPU, and the five working cases above stayed green on both GPUs. [Test fix `e32fa8b49`](https://github.com/merzleckeier/mandy/commit/e32fa8b49fc113d318555f95aa657239f4f235fc) Synthetic fixtures only. AI-assisted with OpenAI Codex.
zmasi commented 2026-11-29 21:11:15 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-29T21:11:15Z.


Thank you @merzleckeier for testing the graphics, trainer, composition, fog readback, and unbounded-table paths across RTX 4070 SUPER and Radeon Raphael under Wine 11.22, and for isolating the Wine Error::message() behavior in dxc_compiles_card_compare_with_embedded_root_signature_and_utf8_errors!

Folded in your invoke_dxc / test_dxc_factory check (also probing load_dxc() beside the test executable before Windows Kits, and keeping an is_err() check on compile_dxc) and verified compiler::tests (2/2) on Windows 11 + RTX 3090 + Windows SDK DXC.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7262674134 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2642#issuecomment-7262674134). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-29T21:11:15Z. --- Thank you @merzleckeier for testing the graphics, trainer, composition, fog readback, and unbounded-table paths across RTX 4070 SUPER and Radeon Raphael under Wine 11.22, and for isolating the Wine `Error::message()` behavior in `dxc_compiles_card_compare_with_embedded_root_signature_and_utf8_errors`! Folded in your `invoke_dxc` / `test_dxc_factory` check (also probing `load_dxc()` beside the test executable before Windows Kits, and keeping an `is_err()` check on `compile_dxc`) and verified `compiler::tests` (`2/2`) on Windows 11 + RTX 3090 + Windows SDK DXC. AI-assisted.
merzleckeier commented 2026-11-29 21:18:13 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-29T21:18:13Z.


Thanks for folding in the diagnostic check. I retested 603845afabf and 9075a5e419 on the same base (a84c41909b) with Wine 11.22 and VKD3D-Proton 3.2 (71cae091). I used the x64 DXC 1.9.2609 pair and selected one Vulkan ICD per process. The adapters were RTX 4070 SUPER (NVIDIA 620.73.04) and Radeon Raphael (RADV 26.3.1).

  • MEASURED, app-local pair. With both DLLs beside the EXE, no Windows Kits in the prefix, and LEONIDA_TEST_DXC_DIR unset, 9075a5e419 printed the DXC skip marker on both adapters (1 run each). 603845afabf executed and passed the DXC root-signature/invalid-HLSL diagnostic test 3/3 times per adapter, with no skip marker.
  • MEASURED, smoke tests. The combined compiler check, composition, trainer, fog readback, and unbounded descriptor-table replay each passed once per adapter at 603845afabf. Both readbacks ran on the selected device.
  • MEASURED, RADV controls (1 run per case). Removing the app-local pair with the override unset restored the explicit diagnostic skip. Supplying the pair only through LEONIDA_TEST_DXC_DIR ran the diagnostic test successfully. In a separate process with the same placement, the runtime-facing compiler test still hit the existing Wine FXC fallback error (0x80004005), consistent with the override's test-only scope.

Offline, synthetic fixtures only. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7262767779 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2642#issuecomment-7262767779). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-11-29T21:18:13Z. --- Thanks for folding in the diagnostic check. I retested `603845afabf` and `9075a5e419` on the same base (`a84c41909b`) with Wine 11.22 and VKD3D-Proton 3.2 (`71cae091`). I used the x64 DXC `1.9.2609` pair and selected one Vulkan ICD per process. The adapters were RTX 4070 SUPER (NVIDIA 620.73.04) and Radeon Raphael (RADV 26.3.1). - **MEASURED, app-local pair.** With both DLLs beside the EXE, no Windows Kits in the prefix, and `LEONIDA_TEST_DXC_DIR` unset, `9075a5e419` printed the DXC skip marker on both adapters (1 run each). `603845afabf` executed and passed the DXC root-signature/invalid-HLSL diagnostic test 3/3 times per adapter, with no skip marker. - **MEASURED, smoke tests.** The combined compiler check, composition, trainer, fog readback, and unbounded descriptor-table replay each passed once per adapter at `603845afabf`. Both readbacks ran on the selected device. - **MEASURED, RADV controls (1 run per case).** Removing the app-local pair with the override unset restored the explicit diagnostic skip. Supplying the pair only through `LEONIDA_TEST_DXC_DIR` ran the diagnostic test successfully. In a separate process with the same placement, the runtime-facing compiler test still hit the existing Wine FXC fallback error (`0x80004005`), consistent with the override's test-only scope. Offline, synthetic fixtures only. AI-assisted with OpenAI Codex.
MoonEyes commented 2026-11-29 21:54:22 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T21:54:22Z.


Tested 603845afa merged (no commit) with main 060c47160: Windows 11, Rust toolchain from d3d12/rust-toolchain.toml, CPU only, no game run.

  • cargo test -p leonida-gpu --locked: main 549 passed, 47 ignored; with this PR 553 passed, 48 ignored, 0 failed.
  • cargo clippy -p leonida-gpu --locked -- -D warnings: 10 findings on main and the same 10 with the PR (all in leonida-lua and leonida-shader); this PR adds none.
  • Merges cleanly with main and does not force a rebase of #2566.
  • Not covered: an in-game run. It touches the render path, so before merge it should also run in game for 300 s with no device loss, as this project now asks of render-path changes.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7263246267 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2642#issuecomment-7263246267). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-29T21:54:22Z. --- Tested `603845afa` merged (no commit) with `main` `060c47160`: Windows 11, Rust toolchain from `d3d12/rust-toolchain.toml`, CPU only, no game run. - `cargo test -p leonida-gpu --locked`: `main` 549 passed, 47 ignored; with this PR 553 passed, 48 ignored, 0 failed. - `cargo clippy -p leonida-gpu --locked -- -D warnings`: 10 findings on `main` and the same 10 with the PR (all in `leonida-lua` and `leonida-shader`); this PR adds none. - Merges cleanly with `main` and does not force a rebase of #2566. - Not covered: an in-game run. It touches the render path, so before merge it should also run in game for 300 s with no device loss, as this project now asks of render-path changes. AI-assisted (Claude Code).
z3r0rc commented 2026-12-01 10:33:01 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by z3r0rc on 2026-12-01T10:33:01Z.


A Linux/NVIDIA data point from a machine that went through this exact wall: on Wine the builtin d3dcompiler_47 (vendored vkd3d-shader 2.1) refuses every runtime HLSL helper this tree compiles — no RWByteAddressBuffer member methods (E5005), [RootSignature]/RTS0 dropped. Five WARN families sit in every log, and the consequence is a black world with fine menus: 2,400-3,700 indirect draws dropped per frame means the world-fill passes never run. Our interim fallback (system D3DCompile *_5_1 first, app-local DXC *_6_0 on refusal or missing RTS0, sources byte-identical) turns it into a lit, drivable world: 20/20 runtime helpers compile with an app-local dxcompiler.dll (DXC 1.9.2609), DROPPED indirect goes to zero, and the same exe and env swing between the black world and 28-30 fps. Your app-local DXC shape is right — please land it; we will delete our local fallback the day it does.

The full measured env baseline for Linux play is posted on #2577. AI-assisted comment; measured logs (RTX 4090, NVIDIA 620.73.04, Wine 11.23, VKD3D-Proton master).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7308355826 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2642#issuecomment-7308355826). Originally posted by [z3r0rc](https://github.com/z3r0rc) on 2026-12-01T10:33:01Z. --- A Linux/NVIDIA data point from a machine that went through this exact wall: on Wine the builtin d3dcompiler_47 (vendored vkd3d-shader 2.1) refuses every runtime HLSL helper this tree compiles — no RWByteAddressBuffer member methods (E5005), `[RootSignature]`/RTS0 dropped. Five WARN families sit in every log, and the consequence is a black world with fine menus: 2,400-3,700 indirect draws dropped per frame means the world-fill passes never run. Our interim fallback (system D3DCompile `*_5_1` first, app-local DXC `*_6_0` on refusal or missing RTS0, sources byte-identical) turns it into a lit, drivable world: 20/20 runtime helpers compile with an app-local dxcompiler.dll (DXC 1.9.2609), `DROPPED indirect` goes to zero, and the same exe and env swing between the black world and 28-30 fps. Your app-local DXC shape is right — please land it; we will delete our local fallback the day it does. The full measured env baseline for Linux play is posted on #2577. AI-assisted comment; measured logs (RTX 4090, NVIDIA 620.73.04, Wine 11.23, VKD3D-Proton master).
KelboLive commented 2026-12-01 18:00:44 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-12-01T18:00:44Z.

Review: COMMENTED


Not superseded: git grep on current main finds no compile_named/compile_runtime_hlsl, and the SM 5.1 call sites still use D3DCompile. Merged into today's main it applies cleanly, builds, and the affected suites pass (compiler::tests 2/2 with the DXC test genuinely executing on the Windows SDK pair, compose 1, trainer 5, inplace_probe 1, merge::tests 1). The native-Windows gate is right (on_wine() via wine_get_version, compiler.rs:98, with the FXC call keeping name/entry/target/flags), and the DXC diagnostic path is mutation-covered (forcing dxc_errors to None fails compiler.rs:339).

Two things before merge:

  1. The "only compiler.rs calls D3DCompile" invariant no longer holds after merge. Main gained texture.rs:4301 (test-only alias_cast_tests) since your base. Please rebase and either route it through the new helper or restate the invariant as "runtime, non-test".
  2. #2577 fixes the same Wine [RootSignature] failure differently — it ships native d3dcompiler_47.dll and serialises root signatures in compose.rs/trainer.rs. The two approaches overlap on these exact files, so one should land first, or the DXC path should be documented as the replacement. This is worth settling before either merges, since both claim the same symptom.

Also: mutating the gate at compiler.rs:56 to if true leaves every test green — the Wine-vs-native routing is covered only by manual runs (here on_wine() is false, load_dxc() looks beside the test exe, and the tests call compile_dxc directly). A sentence saying that is intentional would save the next bisector.

The branch is 1,463 commits behind but the merged tree is green; a rebase is for the invariant and CI, not for correctness.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6137009723 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2642#pullrequestreview-6137009723). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-12-01T18:00:44Z. **Review:** COMMENTED --- Not superseded: `git grep` on current main finds no `compile_named`/`compile_runtime_hlsl`, and the SM 5.1 call sites still use `D3DCompile`. Merged into today's main it applies cleanly, builds, and the affected suites pass (`compiler::tests` 2/2 with the DXC test genuinely executing on the Windows SDK pair, `compose` 1, `trainer` 5, `inplace_probe` 1, `merge::tests` 1). The native-Windows gate is right (`on_wine()` via `wine_get_version`, `compiler.rs:98`, with the FXC call keeping name/entry/target/flags), and the DXC diagnostic path is mutation-covered (forcing `dxc_errors` to `None` fails `compiler.rs:339`). Two things before merge: 1. **The "only `compiler.rs` calls `D3DCompile`" invariant no longer holds after merge.** Main gained `texture.rs:4301` (test-only `alias_cast_tests`) since your base. Please rebase and either route it through the new helper or restate the invariant as "runtime, non-test". 2. **#2577 fixes the same Wine `[RootSignature]` failure differently** — it ships native `d3dcompiler_47.dll` and serialises root signatures in `compose.rs`/`trainer.rs`. The two approaches overlap on these exact files, so one should land first, or the DXC path should be documented as the replacement. This is worth settling before either merges, since both claim the same symptom. Also: mutating the gate at `compiler.rs:56` to `if true` leaves every test green — the Wine-vs-native routing is covered only by manual runs (here `on_wine()` is false, `load_dxc()` looks beside the test exe, and the tests call `compile_dxc` directly). A sentence saying that is intentional would save the next bisector. The branch is 1,463 commits behind but the merged tree is green; a rebase is for the invariant and CI, not for correctness.
deynesdev commented 2026-12-02 07:10:51 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by deynesdev on 2026-12-02T07:10:51Z.


Tested on Linux/NVIDIA without Microsoft's d3dcompiler_47.dll: 8db6aca2a merged (locally, nothing pushed) into main f37c4a87d, against plain f37c4a87d. Both runs forced Wine's built-in compiler (WINEDLLOVERRIDES=d3dcompiler_47=b), same save and settings (scripts/play-linux.sh defaults, LEONIDA_SKIP_BINK=1), 180 s each.

Setup: RTX 4050 Laptop 6 GB, NVIDIA 580.196.07, Fedora 44, Wine 11.21 Staging, VKD3D-Proton 3.2.0 (71cae091b06571e+). Built with --target x86_64-pc-windows-gnullvm. DXC: the x64 dxcompiler.dll + dxil.dll pair 1.9.2609.5 from a Microsoft DirectXShaderCompiler release, copied next to leonida.exe.

main with this PR + DXC pair
two-plane composer not made; showing base plane only error=Call failed. (0x80004005) 1,334 0
picture (mean brightness of 9 window captures, 0-255) black: 0, 0, 8, 6, 6, 0, 0, 0, 0 121, 140, 56, 42, 131, 47, 48, 48, 48
DXC fallback warning n/a none

With the PR the intro and the first scene look as they do with the native d3dcompiler_47 (which is what Linux users have needed until now to get any picture). One run each.

AI-assisted: yes (Claude Code, Claude Opus 5.5): the runs, logs and this comment.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7337871520 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2642#issuecomment-7337871520). Originally posted by [deynesdev](https://github.com/deynesdev) on 2026-12-02T07:10:51Z. --- Tested on Linux/NVIDIA without Microsoft's `d3dcompiler_47.dll`: `8db6aca2a` merged (locally, nothing pushed) into `main` `f37c4a87d`, against plain `f37c4a87d`. Both runs forced Wine's built-in compiler (`WINEDLLOVERRIDES=d3dcompiler_47=b`), same save and settings (`scripts/play-linux.sh` defaults, `LEONIDA_SKIP_BINK=1`), 180 s each. Setup: RTX 4050 Laptop 6 GB, NVIDIA 580.196.07, Fedora 44, Wine 11.21 Staging, VKD3D-Proton 3.2.0 (`71cae091b06571e+`). Built with `--target x86_64-pc-windows-gnullvm`. DXC: the x64 `dxcompiler.dll` + `dxil.dll` pair 1.9.2609.5 from a Microsoft DirectXShaderCompiler release, copied next to `leonida.exe`. | | `main` | with this PR + DXC pair | |---|---|---| | `two-plane composer not made; showing base plane only error=Call failed. (0x80004005)` | 1,334 | 0 | | picture (mean brightness of 9 window captures, 0-255) | black: 0, 0, 8, 6, 6, 0, 0, 0, 0 | 121, 140, 56, 42, 131, 47, 48, 48, 48 | | DXC fallback warning | n/a | none | With the PR the intro and the first scene look as they do with the native `d3dcompiler_47` (which is what Linux users have needed until now to get any picture). One run each. AI-assisted: yes (Claude Code, Claude Opus 5.5): the runs, logs and this comment.
MoonEyes commented 2026-12-02 12:23:33 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T12:23:33Z.


This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists).

Could you, or anyone with a working setup, post a run report on the current head merged onto current main:

  • the head SHA and the main SHA it was merged onto;
  • GPU, driver and OS;
  • at least 300 s in the world after loading;
  • device lost / crashes (count), and rendered fps (median) if you have them;
  • the same run on main alone for comparison, if you can.

Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7345269334 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2642#issuecomment-7345269334). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T12:23:33Z. --- This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists). Could you, or anyone with a working setup, post a run report on the **current head** merged onto current `main`: - the head SHA and the `main` SHA it was merged onto; - GPU, driver and OS; - at least 300 s in the world after loading; - device lost / crashes (count), and rendered fps (median) if you have them; - the same run on `main` alone for comparison, if you can. Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough. AI-assisted (Claude Code).
deynesdev commented 2026-12-02 13:58:08 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by deynesdev on 2026-12-02T13:58:08Z.


In-game run on the current head for the render-path gate: 30b1e2984 merged (locally, nothing pushed) onto main 21843cef0 (merge commit e8c818908). One run, 420 s.

  • Setup: RTX 4050 Laptop 6 GB, NVIDIA 580.196.07, Fedora 44, Wine 11.21 Staging, VKD3D-Proton 3.2.0 (71cae091b06571e+), built with --target x86_64-pc-windows-gnullvm. DXC: the x64 dxcompiler.dll + dxil.dll pair 1.9.2609.5 from a Microsoft release, next to leonida.exe. Wine's built-in compiler forced (WINEDLLOVERRIDES=d3dcompiler_47=b), LEONIDA_SKIP_BINK=1, otherwise scripts/play-linux.sh defaults, same save copy.
  • Time in the world: the open world was reached at 53 s; the steady window is 101-414 s, about 360 s of play after loading.
  • Device lost / crashes: 0 / 0 (no device-removed or hung lines, no exceptions, no panic in the log).
  • Frame time (5 s log lines in the steady window, n=61): median 80.5 ms = 12.4 fps; p90 87.4, p95 97.7, max 149.0 ms. About 4,400 draws per frame, VRAM peak 5,771 MiB of 6 GB.
  • This PR's own paths: 0 two-plane composer not made lines and 0 DXC unavailable / DXC: warnings. The other WARN families in the log (descriptor-view records, pipeline methods not implemented, texture re-upload checks) are not from the compiler and are not new to this PR.
  • Same run on main alone: not repeated on this SHA, so no new comparison. My earlier 180 s run of this PR against main f37c4a87d (the comment above) had 1,334 composer failures and a black picture on main, and 0 failures and a normal picture with the PR.
  • Not covered: one run only; no screenshots or game content attached (the picture was checked by eye during the earlier run, not this one).

AI-assisted: yes (Claude Code, Claude Sonnet 5.5): the build, the run, the log reading and this comment.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7347763633 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2642#issuecomment-7347763633). Originally posted by [deynesdev](https://github.com/deynesdev) on 2026-12-02T13:58:08Z. --- In-game run on the **current head** for the render-path gate: `30b1e2984` merged (locally, nothing pushed) onto `main` `21843cef0` (merge commit `e8c818908`). One run, 420 s. - **Setup:** RTX 4050 Laptop 6 GB, NVIDIA 580.196.07, Fedora 44, Wine 11.21 Staging, VKD3D-Proton 3.2.0 (`71cae091b06571e+`), built with `--target x86_64-pc-windows-gnullvm`. DXC: the x64 `dxcompiler.dll` + `dxil.dll` pair 1.9.2609.5 from a Microsoft release, next to `leonida.exe`. Wine's built-in compiler forced (`WINEDLLOVERRIDES=d3dcompiler_47=b`), `LEONIDA_SKIP_BINK=1`, otherwise `scripts/play-linux.sh` defaults, same save copy. - **Time in the world:** the open world was reached at 53 s; the steady window is 101-414 s, about 360 s of play after loading. - **Device lost / crashes:** 0 / 0 (no device-removed or hung lines, no exceptions, no panic in the log). - **Frame time (5 s log lines in the steady window, n=61):** median 80.5 ms = 12.4 fps; p90 87.4, p95 97.7, max 149.0 ms. About 4,400 draws per frame, VRAM peak 5,771 MiB of 6 GB. - **This PR's own paths:** 0 `two-plane composer not made` lines and 0 `DXC unavailable` / `DXC:` warnings. The other WARN families in the log (descriptor-view records, pipeline methods not implemented, texture re-upload checks) are not from the compiler and are not new to this PR. - **Same run on `main` alone:** not repeated on this SHA, so no new comparison. My earlier 180 s run of this PR against `main` `f37c4a87d` (the comment above) had 1,334 composer failures and a black picture on `main`, and 0 failures and a normal picture with the PR. - Not covered: one run only; no screenshots or game content attached (the picture was checked by eye during the earlier run, not this one). AI-assisted: yes (Claude Code, Claude Sonnet 5.5): the build, the run, the log reading and this comment.
merzleckeier commented 2026-12-02 14:17:12 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T14:17:12Z.

Review: COMMENTED


Independent retest of current head 30b1e2984 merged cleanly onto 69cd4106c. MSVC target on CachyOS, Wine 11.22 / VKD3D-Proton 3.1.0, RTX 4070 SUPER (620.73.04) and Radeon Raphael (RADV 26.3.1). I forced Wine's builtin d3dcompiler_47 and used the same compiler test executable with and without the matching app-local DXC pair.

  • With the pair, both stock compiler tests and an extra synthetic routing test passed on each GPU. The routing matrix selected DXC for cs_5_1, vs_5_1, ps_5_1, and cs_5_1 with unbounded tables. cs_5_0 and cs_5_1 with the untranslated skip-optimization flag stayed on FXC and produced code.
  • Without the pair, the CARD_COMPARE case hit the expected builtin FXC failure on both adapters.
  • The explicitly selected offscreen texture-table test read fixed=1024 other=1765 and matched all 1,024 shared-buffer bytes on both GPUs. Both exposed the native-list interface. On RADV the separate full capture/replay test stopped at the explicit native-list assertion before recording, as the guard intends.

Synthetic inputs throughout. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6152559247 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2642#pullrequestreview-6152559247). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-02T14:17:12Z. **Review:** COMMENTED --- Independent retest of current head `30b1e2984` merged cleanly onto `69cd4106c`. MSVC target on CachyOS, Wine 11.22 / VKD3D-Proton 3.1.0, RTX 4070 SUPER (620.73.04) and Radeon Raphael (RADV 26.3.1). I forced Wine's builtin `d3dcompiler_47` and used the same compiler test executable with and without the matching app-local DXC pair. - With the pair, both stock compiler tests and an extra synthetic routing test passed on each GPU. The routing matrix selected DXC for `cs_5_1`, `vs_5_1`, `ps_5_1`, and `cs_5_1` with unbounded tables. `cs_5_0` and `cs_5_1` with the untranslated skip-optimization flag stayed on FXC and produced code. - Without the pair, the CARD_COMPARE case hit the expected builtin FXC failure on both adapters. - The explicitly selected offscreen texture-table test read `fixed=1024 other=1765` and matched all 1,024 shared-buffer bytes on both GPUs. Both exposed the native-list interface. On RADV the separate full capture/replay test stopped at the explicit native-list assertion before recording, as the guard intends. Synthetic inputs throughout. AI-assisted with OpenAI Codex.
MoonEyes commented 2026-12-02 18:29:53 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T18:29:53Z.


Verification of #2642 (D3D12-LINUX-DXC-RUNTIME-SHADERS): third-party code review on Linux x86_64. The code was not built: leonida-gpu is Windows-only (Wine/VKD3D-Proton not run here).

  • Head: ccf43e4c0, merge base 5b1fff821. It merges cleanly into main 45dc41f95. 14 files. CI passes on this head (6/6). The last code commit is 603845af; the commits after it are merges of main and regenerations of switches.md.

Commands and results

  • python -I tests/test_d3d12_switches.py on the merge: 20 tests, OK.
  • python -I scripts/check_no_game_data.py on compiler.rs, ambient_readback.rs, tests/replay.rs, README.md and switches.md: clean.

Review

  • compiler.rs: native Windows still calls D3DCompile with unchanged flags and profiles. On Wine, only cs/ps/vs_5_1 with flags at most ENABLE_UNBOUNDED_DESCRIPTOR_TABLES go to DXC *_6_0. The DLLs are loaded by absolute path with LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR | SYSTEM32. A missing DXC is logged once and the code falls back to FXC. This is sound.
  • compiler.rs:56-79: a DXC compile error on Wine returns Err and does not fall back to FXC. The fallback only covers a DLL that failed to load. That may be intended, but the PR body and README say the code "uses FXC" whenever DXC is unavailable.
  • compiler.rs:143-147: every compile creates a new IDxcCompiler3. This is not a hot path, but the instance could be cached next to the factory.
  • compiler.rs:163-168: a failed status with no error text returns without logging anything.
  • tests/replay.rs: the explicit NON_PIXEL_SHADER_RESOURCE -> COPY_DEST barrier on shared.0 is correct, because a buffer promoted to a read state cannot be promoted implicitly to COPY_DEST in the same submission. However, a_frame_is_recorded_and_replayed now asserts (fails) on a VKD3D-Proton device (requires_native_lists, L1798) where it used to run. Any Wine test runner that includes this test will now go red. A skip with a message would match the "no adapter: skipped" style.
  • switches.md: LEONIDA_TEST_DXC_DIR goes into the main table instead of "Only in tests", because the generator reads it from a #[cfg(test)] function in a non-test file.

Process

  • Scope: besides the compiler routing, the PR adds a new hardware test module (ambient_readback.rs), changes the replay test (a with_mesh toggle, an adapter-selected offscreen test, VKD3D interop detection) and fixes a barrier. CONTRIBUTING.md asks for one topic per pull request. The test infrastructure would review more easily as a follow-up.
  • The disclosure says AI-assisted: yes but does not name the models or the reviewer agent's model (CONTRIBUTING.md).
  • No independent verification of this head is posted. The independent Wine checks cited in the body were on 9075a5e41.

Verdict: defects (scope, disclosure, and the replay test now fails under VKD3D instead of skipping). The compiler routing itself looks correct.

AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.


Generated by Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7354686487 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2642#issuecomment-7354686487). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T18:29:53Z. --- **Verification of #2642 (D3D12-LINUX-DXC-RUNTIME-SHADERS)**: third-party code review on Linux x86_64. The code was not built: `leonida-gpu` is Windows-only (Wine/VKD3D-Proton not run here). - Head: `ccf43e4c0`, merge base `5b1fff821`. It merges cleanly into `main` `45dc41f95`. 14 files. CI passes on this head (6/6). The last code commit is `603845af`; the commits after it are merges of `main` and regenerations of `switches.md`. **Commands and results** - `python -I tests/test_d3d12_switches.py` on the merge: 20 tests, OK. - `python -I scripts/check_no_game_data.py` on `compiler.rs`, `ambient_readback.rs`, `tests/replay.rs`, `README.md` and `switches.md`: clean. **Review** - `compiler.rs`: native Windows still calls `D3DCompile` with unchanged flags and profiles. On Wine, only `cs/ps/vs_5_1` with flags at most `ENABLE_UNBOUNDED_DESCRIPTOR_TABLES` go to DXC `*_6_0`. The DLLs are loaded by absolute path with `LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR | SYSTEM32`. A missing DXC is logged once and the code falls back to FXC. This is sound. - `compiler.rs:56-79`: a DXC *compile* error on Wine returns `Err` and does not fall back to FXC. The fallback only covers a DLL that failed to load. That may be intended, but the PR body and README say the code "uses FXC" whenever DXC is unavailable. - `compiler.rs:143-147`: every compile creates a new `IDxcCompiler3`. This is not a hot path, but the instance could be cached next to the factory. - `compiler.rs:163-168`: a failed status with no error text returns without logging anything. - `tests/replay.rs`: the explicit `NON_PIXEL_SHADER_RESOURCE -> COPY_DEST` barrier on `shared.0` is correct, because a buffer promoted to a read state cannot be promoted implicitly to `COPY_DEST` in the same submission. However, `a_frame_is_recorded_and_replayed` now **asserts** (fails) on a VKD3D-Proton device (`requires_native_lists`, L1798) where it used to run. Any Wine test runner that includes this test will now go red. A skip with a message would match the "no adapter: skipped" style. - `switches.md`: `LEONIDA_TEST_DXC_DIR` goes into the main table instead of "Only in tests", because the generator reads it from a `#[cfg(test)]` function in a non-test file. **Process** - Scope: besides the compiler routing, the PR adds a new hardware test module (`ambient_readback.rs`), changes the replay test (a `with_mesh` toggle, an adapter-selected offscreen test, VKD3D interop detection) and fixes a barrier. CONTRIBUTING.md asks for one topic per pull request. The test infrastructure would review more easily as a follow-up. - The disclosure says `AI-assisted: yes` but does not name the models or the reviewer agent's model (CONTRIBUTING.md). - No independent verification of this head is posted. The independent Wine checks cited in the body were on `9075a5e41`. **Verdict:** defects (scope, disclosure, and the replay test now fails under VKD3D instead of skipping). The compiler routing itself looks correct. AI-assisted verification: Claude Opus (Claude Code), separate agent per batch. --- _Generated by [Claude Code](https://claude.ai/code)_
zmasi commented 2026-12-02 19:20:14 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-12-02T19:20:14Z.


Thanks @MoonEyes for the detailed code review! Addressed every point in 164506d01c (merged with current origin/main):

  1. Single-topic scope & VKD3D replay test (CONTRIBUTING.md): removed ambient_readback.rs, pruned compile_runtime_hlsl, and restored d3d12/crates/leonida-gpu/tests/replay.rs to origin/main (0 diff, so a_frame_is_recorded_and_replayed behaves identically to main under VKD3D-Proton and any test-infrastructure updates can go in a separate PR).
  2. IDxcCompiler3 caching (compiler.rs): created once inside load_dxc_from and cached behind Dxc { compiler: Mutex<SendCompiler> } alongside IDxcUtils (freeing both DLL handles on any failed load/export/instance step).
  3. Empty diagnostic-blob logging & fallback docs (compiler.rs, d3d12/README.md): added dxc_status_error + .inspect_err logging so failed DXC compiles with empty error blobs still log tracing::warn!("DXC: ... ({hr:#010x})"), and aligned d3d12/README.md with actual behavior (falls back to FXC only when the app-local DXC pair is absent or cannot be loaded).
  4. switches.md placement & hardware dispatch/readback test (compiler/tests.rs): moved LEONIDA_TEST_DXC_DIR and compiler tests into src/compiler/tests.rs so tools/d3d12_switches.py places LEONIDA_TEST_DXC_DIR under ## Only in tests, and added compiled_compute_shader_dispatches_and_reads_back_on_fxc_and_dxc testing hardware D3D12 compute dispatch + readback across both FXC cs_5_1 and signed DXC cs_6_0 (5/5 compiler:: tests + 4/4 caller shader tests + 1/1 --test replay + 20/20 test_d3d12_switches.py passing).
  5. Model disclosure (CONTRIBUTING.md): updated the PR description's AI-assisted: line to name the authoring and independent read-only reviewer models.
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7356012170 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2642#issuecomment-7356012170). Originally posted by [zmasi](https://github.com/zmasi) on 2026-12-02T19:20:14Z. --- Thanks @MoonEyes for the detailed code review! Addressed every point in `164506d01c` (merged with current `origin/main`): 1. **Single-topic scope & VKD3D `replay` test (`CONTRIBUTING.md`)**: removed `ambient_readback.rs`, pruned `compile_runtime_hlsl`, and restored `d3d12/crates/leonida-gpu/tests/replay.rs` to `origin/main` (`0` diff, so `a_frame_is_recorded_and_replayed` behaves identically to `main` under VKD3D-Proton and any test-infrastructure updates can go in a separate PR). 2. **`IDxcCompiler3` caching (`compiler.rs`)**: created once inside `load_dxc_from` and cached behind `Dxc { compiler: Mutex<SendCompiler> }` alongside `IDxcUtils` (freeing both DLL handles on any failed load/export/instance step). 3. **Empty diagnostic-blob logging & fallback docs (`compiler.rs`, `d3d12/README.md`)**: added `dxc_status_error` + `.inspect_err` logging so failed DXC compiles with empty error blobs still log `tracing::warn!("DXC: ... ({hr:#010x})")`, and aligned `d3d12/README.md` with actual behavior (falls back to FXC only when the app-local DXC pair is absent or cannot be loaded). 4. **`switches.md` placement & hardware dispatch/readback test (`compiler/tests.rs`)**: moved `LEONIDA_TEST_DXC_DIR` and compiler tests into `src/compiler/tests.rs` so `tools/d3d12_switches.py` places `LEONIDA_TEST_DXC_DIR` under `## Only in tests`, and added `compiled_compute_shader_dispatches_and_reads_back_on_fxc_and_dxc` testing hardware D3D12 compute dispatch + readback across both FXC `cs_5_1` and signed DXC `cs_6_0` (`5/5` `compiler::` tests + `4/4` caller shader tests + `1/1` `--test replay` + `20/20` `test_d3d12_switches.py` passing). 5. **Model disclosure (`CONTRIBUTING.md`)**: updated the PR description's `AI-assisted:` line to name the authoring and independent read-only reviewer models.
MoonEyes commented 2026-12-03 00:02:23 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T00:02:23Z.


RUN (in game, batch of nine pull requests), each head merged with git merge --no-ff onto main 81efe4566, in one build: #3136 74bd1bcd4, #3156 53c3100ce, #3206 d024194b3, #3248 efd21d867, #3256 e7aad1d4c, #3262 3643c2879, #2851 b83b0b375, #3125 89bf1d328, #2642 164506d01. RTX 4060 8 GB, driver 610.88, Windows 11. Series S, -Resolution 1080, frame generation 2x, -PrecompileUsed, the same walking route as the other runs on this machine, 330 s after reaching the world.

What Result
Device lost / device removed 0
Exceptions, panics, hang watchdog, GPU stall, title suspended 0
Process alive at the end yes, stopped by the time limit
Rendered fps, last 240 s (48 samples) median 15.6, mean 15.6
Rendered fps, last 120 s median 14.3
Time under 5 fps in the world 3 %

For reference, the same machine and route rendered 13.3 to 17.2 fps on other batches in the last day. These fps are a check that nothing fell over, not a measurement of a gain.

Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch, on the heads listed above. If one of these pull requests changes its head, this run no longer covers it.

Limits: one run; arrival in the world was driven by keys and not checked on pictures; -PrecompileUsed was used, so the default start (every known pipeline precompiled) was not exercised. The precompile before the world took 619 s, against 157 s for the previous batch; the shader-side changes in this batch (#3156, #3262) probably left the pipeline cache cold (not checked). Switches that are off by default (for example #2851's LEONIDA_TITLE_MEMORY_SCALE, #3136's timeline attribution) were not turned on: this run covers their default path only. #2642 targets Wine and was run on Windows only.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7362724213 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2642#issuecomment-7362724213). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T00:02:23Z. --- RUN (in game, batch of nine pull requests), each head merged with `git merge --no-ff` onto main `81efe4566`, in one build: #3136 `74bd1bcd4`, #3156 `53c3100ce`, #3206 `d024194b3`, #3248 `efd21d867`, #3256 `e7aad1d4c`, #3262 `3643c2879`, #2851 `b83b0b375`, #3125 `89bf1d328`, #2642 `164506d01`. RTX 4060 8 GB, driver 610.88, Windows 11. Series S, `-Resolution 1080`, frame generation 2x, `-PrecompileUsed`, the same walking route as the other runs on this machine, 330 s after reaching the world. | What | Result | |---|---| | Device lost / device removed | 0 | | Exceptions, panics, hang watchdog, GPU stall, title suspended | 0 | | Process alive at the end | yes, stopped by the time limit | | Rendered fps, last 240 s (48 samples) | median 15.6, mean 15.6 | | Rendered fps, last 120 s | median 14.3 | | Time under 5 fps in the world | 3 % | For reference, the same machine and route rendered 13.3 to 17.2 fps on other batches in the last day. These fps are a check that nothing fell over, not a measurement of a gain. Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch, on the heads listed above. If one of these pull requests changes its head, this run no longer covers it. Limits: one run; arrival in the world was driven by keys and not checked on pictures; `-PrecompileUsed` was used, so the default start (every known pipeline precompiled) was not exercised. The precompile before the world took 619 s, against 157 s for the previous batch; the shader-side changes in this batch (#3156, #3262) probably left the pipeline cache cold (not checked). Switches that are off by default (for example #2851's `LEONIDA_TITLE_MEMORY_SCALE`, #3136's timeline attribution) were not turned on: this run covers their default path only. #2642 targets Wine and was run on Windows only. AI-assisted (Claude Code).
fiestorra commented 2026-12-03 05:47:27 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T05:47:27Z.


VERIFY-2642 y #2643 — las dos grandes, las dos sin tests nuevos, y una de ellas mejora al fusionar

Las dos de zmasi, las dos de 5-6 días, y las dos con switches.md en el diff (la marca de esta noche para «cambia lo que el jugador puede encender»):

#2642   13 files, +1003/−272    709 passed; 1 failed   0 tests nuevos
#2643    7 files, +771/−90      724 passed; 1 failed   0 tests nuevos

La única falla en las dos es la de la iGPU.

#2643 — y este número sí dice algo

724 es más que los 715 de main, con cero tests nuevos — o sea que su base trae nueve tests que main ya no tiene o tiene distintos, y aun así la suite pasa. Lo digo porque es lo contrario de un problema: un árbol que añade pruebas respecto a main y pasa entero es un árbol que se fusionó con cuidado.

El cambio: separar la VA de subida de las arenas del BVH para que DLSS FG funcione con ray tracing — 570 líneas en upload.rs, 229 en memory.rs. Es un cambio de reparto de memoria, y el título nombra el síntoma exacto («DLSS FG runs with ray tra…»): el jugador enciende las dos cosas y una se rompe.

#2642 — compilar shaders SM 5.1 con DXC en Wine

Y esta es la más ambiciosa de las dos: 13 ficheros, y inplace.rs/replay/play/merge.rs en el diff — no es sólo el compilador, es el camino de la grabación.

Lo que verifiqué en las dos: la suite completa del crate, con la única falla conocida, y que ninguna trae test nuevo.
Lo que no: que DLSS FG y el ray tracing convivan (#2643) ni que un shader SM 5.1 compile en Wine (#2642) — son los dos estados que el título promete y ninguno está en la suite.

Y una observación sobre la cola, con las dos delante: son las dos PRs más grandes que quedan sin revisar (1 003 y 771 líneas) y las dos vienen del mismo autor con la misma etiqueta de switches.md. Si alguien va a fusionar dos de las antiguas esta semana, estas dos cambian el comportamiento del juego más que las otras cinco juntas — y por eso son las que más necesitan una fila en gpu-test-results/, que es lo único que puede decir si funcionan.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7369116479 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2642#issuecomment-7369116479). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T05:47:27Z. --- ## VERIFY-2642 y `#2643` — las dos grandes, las dos sin tests nuevos, y una de ellas mejora al fusionar **Las dos de zmasi, las dos de 5-6 días, y las dos con `switches.md` en el diff** (**la marca de esta noche para «cambia lo que el jugador puede encender»**): ``` #2642 13 files, +1003/−272 709 passed; 1 failed 0 tests nuevos #2643 7 files, +771/−90 724 passed; 1 failed 0 tests nuevos ``` **La única falla en las dos es la de la iGPU.** ## `#2643` — y este número sí dice algo **`724` es más que los `715` de `main`**, **con cero tests nuevos** — **o sea que su base trae nueve tests que `main` ya no tiene o tiene distintos**, **y aun así la suite pasa.** **Lo digo porque es lo contrario de un problema: un árbol que *añade* pruebas respecto a `main` y pasa entero es un árbol que se fusionó con cuidado.** **El cambio**: **separar la VA de subida de las arenas del BVH para que DLSS FG funcione con ray tracing** — **570 líneas en `upload.rs`, 229 en `memory.rs`.** **Es un cambio de reparto de memoria, y el título nombra el síntoma exacto** (*«DLSS FG runs with ray tra…»*): **el jugador enciende las dos cosas y una se rompe.** ## `#2642` — compilar shaders SM 5.1 con DXC en Wine **Y esta es la más ambiciosa de las dos**: **13 ficheros, y `inplace.rs`/`replay/play/merge.rs` en el diff** — **no es sólo el compilador, es el camino de la grabación.** **Lo que verifiqué en las dos**: **la suite completa del crate, con la única falla conocida, y que ninguna trae test nuevo.** **Lo que no**: **que DLSS FG y el ray tracing convivan** (`#2643`) **ni que un shader SM 5.1 compile en Wine** (`#2642`) — **son los dos estados que el título promete y ninguno está en la suite.** **Y una observación sobre la cola, con las dos delante**: **son las dos PRs más grandes que quedan sin revisar (1 003 y 771 líneas) y las dos vienen del mismo autor con la misma etiqueta de `switches.md`.** **Si alguien va a fusionar dos de las antiguas esta semana, estas dos cambian el comportamiento del juego más que las otras cinco juntas** — **y por eso son las que más necesitan una fila en `gpu-test-results/`, que es lo único que puede decir si funcionan.**
zmasi commented 2026-12-03 11:32:50 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-12-03T11:32:50Z.


Merged origin/main (6e97990505, #3318) into 4b4d99a822 strictly to regenerate d3d12/docs/switches.md (needs rebase); all 12 non-switches.md files preserve identical PR hunks against origin/main compared to 164506d01c.

AI-assisted: Gemini 4 Carbon (High) and Gemini 4 Neon (XHigh).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7376849567 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2642#issuecomment-7376849567). Originally posted by [zmasi](https://github.com/zmasi) on 2026-12-03T11:32:50Z. --- Merged `origin/main` (`6e97990505`, `#3318`) into `4b4d99a822` strictly to regenerate `d3d12/docs/switches.md` (`needs rebase`); all 12 non-`switches.md` files preserve identical PR hunks against `origin/main` compared to `164506d01c`. AI-assisted: Gemini 4 Carbon (High) and Gemini 4 Neon (XHigh).
MoonEyes commented 2026-12-03 12:46:32 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T12:46:32Z.


RUN (in game, third party, batch of four pull requests), each head merged with git merge --no-ff onto main 6e9799050, in one build: #2642 4b4d99a82, #3151 8894c5812, #3323 0c836e32e, #3324 02f37bcf8. RTX 4060 8 GB, driver 610.88, Windows 11. Series S, -Resolution 1080, frame generation 2x, -PrecompileUsed, the same walking route as the other runs on this machine, 330 s after reaching the world.

What Result
Device lost / device removed 0
Exceptions, panics, hang watchdog, GPU stall, title suspended 0
Process alive at the end yes, stopped by the time limit
Rendered fps, last 240 s (45 samples) median 17.6, mean 17.1
Rendered fps, last 120 s median 17.2
Time under 5 fps in the world 0 %

For reference, the same machine and route rendered 13.3 to 17.4 fps on other runs in the last day: a check that nothing fell over, not a measurement of a gain.

Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch, on the heads listed above. If one of these pull requests changes its head, this run no longer covers it.

Limits: one run; arrival in the world was driven by keys and not checked on pictures. The precompile before the world took 529 s, against about 110 s for main alone: the translator change in #3324 left the pipeline cache cold. Switches that are off by default (for example #3323's own-pass timing) were not turned on: this run covers their default path only. #2642 targets Wine and was run on Windows only. #3151 changes what happens on a lost device; no device was lost, so that path was not exercised.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7378817221 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2642#issuecomment-7378817221). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T12:46:32Z. --- RUN (in game, third party, batch of four pull requests), each head merged with `git merge --no-ff` onto main `6e9799050`, in one build: #2642 `4b4d99a82`, #3151 `8894c5812`, #3323 `0c836e32e`, #3324 `02f37bcf8`. RTX 4060 8 GB, driver 610.88, Windows 11. Series S, `-Resolution 1080`, frame generation 2x, `-PrecompileUsed`, the same walking route as the other runs on this machine, 330 s after reaching the world. | What | Result | |---|---| | Device lost / device removed | 0 | | Exceptions, panics, hang watchdog, GPU stall, title suspended | 0 | | Process alive at the end | yes, stopped by the time limit | | Rendered fps, last 240 s (45 samples) | median 17.6, mean 17.1 | | Rendered fps, last 120 s | median 17.2 | | Time under 5 fps in the world | 0 % | For reference, the same machine and route rendered 13.3 to 17.4 fps on other runs in the last day: a check that nothing fell over, not a measurement of a gain. Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch, on the heads listed above. If one of these pull requests changes its head, this run no longer covers it. Limits: one run; arrival in the world was driven by keys and not checked on pictures. The precompile before the world took 529 s, against about 110 s for main alone: the translator change in #3324 left the pipeline cache cold. Switches that are off by default (for example #3323's own-pass timing) were not turned on: this run covers their default path only. #2642 targets Wine and was run on Windows only. #3151 changes what happens on a lost device; no device was lost, so that path was not exercised. AI-assisted (Claude Code, Claude Opus 5.5).
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2642:upstream-pr/2642'
git switch 'upstream-pr/2642'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2642'
git switch 'upstream-pr/2642'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2642'
git switch 'upstream-pr/2642'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2642'
git switch 'main'
git merge --squash 'upstream-pr/2642'
git switch 'main'
git merge --ff-only 'upstream-pr/2642'
git switch 'main'
git merge 'upstream-pr/2642'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
ProjectLeonida/mandy!2642
No description provided.