d3d12: immutable compute root-argument blocks (ROOT-SIG-SPILL-MODEL) #1009

Closed
djrolfes wants to merge 2 commits from upstream-pr/1009 into main
djrolfes commented 2026-11-24 16:47:51 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by djrolfes on 2026-11-24T16:47:51Z.


Claimed: ROOT-SIG-SPILL-MODEL (coordination).

Depends on: #974, #1547, #1723 (merged; their layouts, pipeline workers and post-story queue/indirect paths are retained).

What and why

Compute root arguments need a packed memory block even for some signatures that fit inline. This is the full argument block, not merely a tail spill.

  • Model full-block offsets, whole-parameter/sticky-tail inline spill and the 64-dword bound; reject malformed parameters even after spilling. Graphics spills remain unsupported.
  • Preserve partial constants and both address halves; snapshot direct, indirect and counted dispatch arguments at record time.
  • Allocate fresh immutable host-coherent arena storage per dispatch execution. Supply its bounded console VA in s[0:1], not raw BDA; the translator adds heap_base.
  • Retain storage through queue completion; release unsubmitted storage on preparation/submission failure. No shared signature-owned mutable buffer or transfer/shader synchronization gap.
  • Keep the Python contract tool compute-only and consistent with the C++ packer.

All 52 embedded builder headers already initialize s4 from WorkgroupId.x. No translator/system-value override is needed.

Tested rebase

Head 0cc10a1ec, based on 490f5b9ec, replaces previously tested 1a85aad9c. Earlier tested heads remain preserved. Clean merge-tree check against newer main 5da72d19f. Same PR and remote branch; updated with an explicit old-head lease.

Preserves main's graphics/mesh argument windows, heap-direct indexing, title-VA rebasing, table descriptor counts, asynchronous/skipped pipeline behavior and geometry retention. block_offset follows table_descriptors; a regression asserts they remain distinct. The rollback fixture now injects a genuine second-upload failure instead of assuming an unresolved pipeline must abort submission.

The newer rebase also keeps main's stateful indirect-draw recording, clamp preparation/emission and submission retention, and remember_table tracking. Compute snapshots follow the moved record_indirect helper. A regression resolves one deferred pipeline shared by direct/indirect dispatches and checks every root-block VA survives. The GPU fixture now retains main's unbacked-root-view zeroing control and uses an explicitly synthetic, never-dereferenced alias to probe both address halves.

  • Complete native (GCC 16.2.1) and clang-cl/xwin Windows builds passed; at most 14 heavy workers.
  • Native CTest with validation: 99 passed, 1 corpus-dependent skip / 100; includes root GPU readback and synchronization-validation self-test.
  • Network-isolated Windows/Wine targeted CTest, no retail mount: 62 passed, 1 explicit host-comparison skip / 63. Includes all six root tests, loader/TLS/tiny-game checks, pipeline workers, stateful indirect pixel tests, clamp/budget paths, GPU labels/list values, descriptor rebinding, title VA, geometry and page pins. d3d12_indirect_zero skips the Microsoft-host comparison under Wine; it is not counted as a pass.
  • d3d12_indirect_dispatch_count now passes with main's merged fix; its earlier failure is not being carried as a waived result.
  • Translator: 490 files / 6,310 tests, zero failed files, 2 jobs.
  • Contract and line endings: 68 passed. Diff checks and explicit-path no-game-data scan passed.

GPUs tested: NVIDIA RTX 3070 Ti 8 GiB, driver 620.73.04, Linux; Wine 11.22 for Windows tests. Windows validation layers are unavailable here; GPU validation ran natively. Native Windows/MSVC not tested. Independent native Windows RTX 4060 confirmation of the old head's six root tests remains historical evidence, not a test of this rebase.

Scope and limitations

No title RT correctness, world frame or gameplay is claimed. The separate retail validation tree testing #1558 and owned translator fixes does not contain this PR.

Spilling-table behavior extends the measured inline four-byte table width and remains unmeasured in a retail spilling-table program. Other driver-SGPR scalar conventions are not established by these tests. Graphics spill layout is unsupported.

The earlier incorrect CreateHeap attribution remains withdrawn in the correction; slot 61 belongs to #383, not this work.

AI-assisted: yes. No game content, shader listings, raw boot logs, captures, keys or decryption included.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5476479534 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1009). Originally posted by [djrolfes](https://github.com/djrolfes) on 2026-11-24T16:47:51Z. --- Claimed: **ROOT-SIG-SPILL-MODEL** ([coordination](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135191157)). Depends on: #974, #1547, #1723 (merged; their layouts, pipeline workers and post-story queue/indirect paths are retained). ### What and why Compute root arguments need a packed memory block even for some signatures that fit inline. This is the full argument block, not merely a tail spill. - Model full-block offsets, whole-parameter/sticky-tail inline spill and the 64-dword bound; reject malformed parameters even after spilling. Graphics spills remain unsupported. - Preserve partial constants and both address halves; snapshot direct, indirect and counted dispatch arguments at record time. - Allocate fresh immutable host-coherent arena storage per dispatch execution. Supply its bounded console VA in s[0:1], not raw BDA; the translator adds heap_base. - Retain storage through queue completion; release unsubmitted storage on preparation/submission failure. No shared signature-owned mutable buffer or transfer/shader synchronization gap. - Keep the Python contract tool compute-only and consistent with the C++ packer. All 52 embedded builder headers already initialize s4 from WorkgroupId.x. No translator/system-value override is needed. ### Tested rebase Head **`0cc10a1ec`**, based on **`490f5b9ec`**, replaces previously tested `1a85aad9c`. Earlier tested heads remain preserved. Clean merge-tree check against newer main **`5da72d19f`**. Same PR and remote branch; updated with an explicit old-head lease. Preserves main's graphics/mesh argument windows, heap-direct indexing, title-VA rebasing, table descriptor counts, asynchronous/skipped pipeline behavior and geometry retention. `block_offset` follows `table_descriptors`; a regression asserts they remain distinct. The rollback fixture now injects a genuine second-upload failure instead of assuming an unresolved pipeline must abort submission. The newer rebase also keeps main's stateful indirect-draw recording, clamp preparation/emission and submission retention, and `remember_table` tracking. Compute snapshots follow the moved `record_indirect` helper. A regression resolves one deferred pipeline shared by direct/indirect dispatches and checks every root-block VA survives. The GPU fixture now retains main's unbacked-root-view zeroing control and uses an explicitly synthetic, never-dereferenced alias to probe both address halves. - Complete native (GCC 16.2.1) and clang-cl/xwin Windows builds passed; at most 14 heavy workers. - Native CTest with validation: **99 passed, 1 corpus-dependent skip / 100**; includes root GPU readback and synchronization-validation self-test. - Network-isolated Windows/Wine targeted CTest, no retail mount: **62 passed, 1 explicit host-comparison skip / 63**. Includes all six root tests, loader/TLS/tiny-game checks, pipeline workers, stateful indirect pixel tests, clamp/budget paths, GPU labels/list values, descriptor rebinding, title VA, geometry and page pins. `d3d12_indirect_zero` skips the Microsoft-host comparison under Wine; it is not counted as a pass. - `d3d12_indirect_dispatch_count` now passes with main's merged fix; its earlier failure is not being carried as a waived result. - Translator: **490 files / 6,310 tests**, zero failed files, 2 jobs. - Contract and line endings: **68 passed**. Diff checks and explicit-path no-game-data scan passed. GPUs tested: NVIDIA RTX 3070 Ti 8 GiB, driver 620.73.04, Linux; Wine 11.22 for Windows tests. Windows validation layers are unavailable here; GPU validation ran natively. Native Windows/MSVC not tested. Independent native Windows RTX 4060 confirmation of the old head's six root tests remains historical evidence, not a test of this rebase. ### Scope and limitations No title RT correctness, world frame or gameplay is claimed. The separate retail validation tree testing #1558 and owned translator fixes does **not** contain this PR. Spilling-table behavior extends the measured inline four-byte table width and remains unmeasured in a retail spilling-table program. Other driver-SGPR scalar conventions are not established by these tests. Graphics spill layout is unsupported. The earlier incorrect CreateHeap attribution remains withdrawn in [the correction](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7137686495); slot 61 belongs to #383, not this work. AI-assisted: **yes**. No game content, shader listings, raw boot logs, captures, keys or decryption included.
iFeyz commented 2026-11-24 17:13:46 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by iFeyz on 2026-11-24T17:13:46Z.


@djrolfes #974 and this overlap in four files, all small: in address() (runtime/shims/d3d12_com.cpp) you change write() to take the parameter and a dword index, and #974 changes which tables are one dword (both bind points in the console layout, except a graphics signature past the 24-dword window, which keeps pack()'s layout through RootArgumentLayout::graphics_console). Combined, the two lines are:

write(state, *p, 0, std::uint32_t(va));
const bool console = is_compute(state) || state.layout->graphics_console;
if (!(console && type == rt::rootsig::ParamType::Table)) write(state, *p, 1, std::uint32_t(va >> 32));

The rest is the root_signature.h comment on the stage bases and the 3.5 section of docs/d3d12_vulkan.md / docs/design.md, where both texts stay. Whichever of the two lands first, I will rebase #974 onto it the same day, so nothing needs to wait on the other.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7138880095 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1009#issuecomment-7138880095). Originally posted by [iFeyz](https://github.com/iFeyz) on 2026-11-24T17:13:46Z. --- @djrolfes #974 and this overlap in four files, all small: in `address()` (`runtime/shims/d3d12_com.cpp`) you change `write()` to take the parameter and a dword index, and #974 changes which tables are one dword (both bind points in the console layout, except a graphics signature past the 24-dword window, which keeps `pack()`'s layout through `RootArgumentLayout::graphics_console`). Combined, the two lines are: ```cpp write(state, *p, 0, std::uint32_t(va)); const bool console = is_compute(state) || state.layout->graphics_console; if (!(console && type == rt::rootsig::ParamType::Table)) write(state, *p, 1, std::uint32_t(va >> 32)); ``` The rest is the `root_signature.h` comment on the stage bases and the 3.5 section of `docs/d3d12_vulkan.md` / `docs/design.md`, where both texts stay. Whichever of the two lands first, I will rebase #974 onto it the same day, so nothing needs to wait on the other.
slauko commented 2026-11-24 19:47:01 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by slauko on 2026-11-24T19:47:01Z.


Retail-title confirmation on Wine: the spilling builder signature is accepted and the first compute PSO path runs

Build: main 6293c1c4f + this PR b477602aa (merged clean) + a measurement branch (startup-trace stack dump, PSO-tail diagnostics, windows_only dispatch, SDL3 gamepad shim). Windows CI artifact of run 45469284944; its windows job is green (the CPU runtime suite in this tree passed).

Run: retail 1.0.2.1 package, Wine 11.17 on Arch Linux, RTX 3080 Ti, NVIDIA 595.112.07, LEONIDA_D3D12=vulkan, the 26,555-program corpus (26,503 + the 52 embedded builder programs). LEONIDA_SKIP_INT3=1 is used only to pass the title's pool-fill assert, which is independent of this PR and measured separately.

Result:

  • No root signature usable for graphics only and no spill array not modelled: the builder's spilling compute signature is accepted with the title's own data.
  • CreateRootSignature and the Xbox CreateComputePipelineState (device slot 62) are reached; the shader is selected (bvh_29_f12431f3), the module and pipeline path run, and the PSO-tail diagnostics print no vkCreateComputePipelines or arena failure.
  • Without LEONIDA_SKIP_INT3, the same build stops earlier at the title's pool-fill assert (capacity - used against 2 MiB, used = 0 after the two 4K items), which is independent of the spill path.
  • After the skip, the run reaches the title's own hang watchdog (+0x2215c35, the 30 s frame-code marker), downstream of the unfilled pool rather than a spill-path failure.

This is the first confirmation of the model against the retail executable; the PR describes the synthetic suite and explicitly does not claim a title boot. No boot past the pool is claimed here either. Counts and call shapes only, no game data.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7142583127 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1009#issuecomment-7142583127). Originally posted by [slauko](https://github.com/slauko) on 2026-11-24T19:47:01Z. --- **Retail-title confirmation on Wine: the spilling builder signature is accepted and the first compute PSO path runs** Build: `main` `6293c1c4f` + this PR `b477602aa` (merged clean) + a measurement branch (startup-trace stack dump, PSO-tail diagnostics, `windows_only` dispatch, SDL3 gamepad shim). Windows CI artifact of run `45469284944`; its `windows` job is green (the CPU runtime suite in this tree passed). Run: retail 1.0.2.1 package, Wine 11.17 on Arch Linux, RTX 3080 Ti, NVIDIA 595.112.07, `LEONIDA_D3D12=vulkan`, the 26,555-program corpus (26,503 + the 52 embedded builder programs). `LEONIDA_SKIP_INT3=1` is used only to pass the title's pool-fill assert, which is independent of this PR and measured separately. Result: - No `root signature usable for graphics only` and no `spill array not modelled`: the builder's spilling compute signature is accepted with the title's own data. - `CreateRootSignature` and the Xbox `CreateComputePipelineState` (device slot 62) are reached; the shader is selected (`bvh_29_f12431f3`), the module and pipeline path run, and the PSO-tail diagnostics print no `vkCreateComputePipelines` or arena failure. - Without `LEONIDA_SKIP_INT3`, the same build stops earlier at the title's pool-fill assert (`capacity - used` against 2 MiB, `used = 0` after the two 4K items), which is independent of the spill path. - After the skip, the run reaches the title's own hang watchdog (`+0x2215c35`, the 30 s frame-code marker), downstream of the unfilled pool rather than a spill-path failure. This is the first confirmation of the model against the retail executable; the PR describes the synthetic suite and explicitly does not claim a title boot. No boot past the pool is claimed here either. Counts and call shapes only, no game data.
wymd-wn118 commented 2026-11-24 20:06:41 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by wymd-wn118 on 2026-11-24T20:06:41Z.


Retail-title confirmation on native Windows / NVIDIA: the spilling compute signature is accepted, and the run stops at the same guest assert as on Wine

Build: main 32950551e + local Windows build fixes (c84448a0) + this PR b477602aa (merged clean, no conflicts) = dae56bb0. CMake/Ninja, MSVC 14.43.34808, native Windows 11 26200 x64 — no Wine. GPU: NVIDIA GeForce RTX 4060 Laptop GPU, driver 572.70.

Run: retail 1.0.2.1 Xbox Series package, LEONIDA_D3D12=vulkan, LEONIDA_SKIP_INT3=1, --trace. Corpus: the 26,503-program translation (the directory in use holds 26,569 .spv files, i.e. 26,499 from this translation plus stale files from an earlier export).

Result, same machine and same translation corpus both times:

Without this PR: immediately after the first CreateComputePipelineState (device slot 62) the run logs root signature usable for graphics only: root parameter 8 does not fit in the user SGPRs from s4 (spill array not modelled).
With this PR: that line does not appear at all. The first compute root signature (CreateRootSignature, device slot 16) and the first compute PSO are accepted, and 26569 translated programs are loaded. This is the confirmation the model needed on a second driver/OS pair.
The run still stops on the title's own code, at the same guest addresses as @slauko's Wine run:

int3 at game_scarlett_master.exe+0x247af2d, skipped — also present before the PR.
int3 at game_scarlett_master.exe+0x19f4f58, skipped; ~10 ms later 0xC0000005 read at 0xFFFFFFFFFFFFFFFF, top frame host:gta6rt.exe+0x36dd0a, called from host:gta6rt.exe+0x1d5cf2, then guest +0x12b981e → +0x12b97dc → +0x12b95ab → +0x12b9320 → +0x181911e → +0x19f5149 → ….
A second 0xC0000005, write at 0x0, at game_scarlett_master.exe+0x2215c35 — the 30 s frame-code marker reported downstream of the pool-fill assert.
Only the host frame moved (+0x2c0b2a before the PR, +0x36dd0a after) while the guest stack is unchanged, which reads like the same unfilled-pool path being reached now that the signature is accepted. No title boot, rendered frame or RT correctness is claimed.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7143055564 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1009#issuecomment-7143055564). Originally posted by [wymd-wn118](https://github.com/wymd-wn118) on 2026-11-24T20:06:41Z. --- Retail-title confirmation on native Windows / NVIDIA: the spilling compute signature is accepted, and the run stops at the same guest assert as on Wine Build: main 32950551e + local Windows build fixes (c84448a0) + this PR b477602aa (merged clean, no conflicts) = dae56bb0. CMake/Ninja, MSVC 14.43.34808, native Windows 11 26200 x64 — no Wine. GPU: NVIDIA GeForce RTX 4060 Laptop GPU, driver 572.70. Run: retail 1.0.2.1 Xbox Series package, LEONIDA_D3D12=vulkan, LEONIDA_SKIP_INT3=1, --trace. Corpus: the 26,503-program translation (the directory in use holds 26,569 .spv files, i.e. 26,499 from this translation plus stale files from an earlier export). Result, same machine and same translation corpus both times: Without this PR: immediately after the first CreateComputePipelineState (device slot 62) the run logs root signature usable for graphics only: root parameter 8 does not fit in the user SGPRs from s4 (spill array not modelled). With this PR: that line does not appear at all. The first compute root signature (CreateRootSignature, device slot 16) and the first compute PSO are accepted, and 26569 translated programs are loaded. This is the confirmation the model needed on a second driver/OS pair. The run still stops on the title's own code, at the same guest addresses as @slauko's Wine run: int3 at game_scarlett_master.exe+0x247af2d, skipped — also present before the PR. int3 at game_scarlett_master.exe+0x19f4f58, skipped; ~10 ms later 0xC0000005 read at 0xFFFFFFFFFFFFFFFF, top frame host:gta6rt.exe+0x36dd0a, called from host:gta6rt.exe+0x1d5cf2, then guest +0x12b981e → +0x12b97dc → +0x12b95ab → +0x12b9320 → +0x181911e → +0x19f5149 → …. A second 0xC0000005, write at 0x0, at game_scarlett_master.exe+0x2215c35 — the 30 s frame-code marker reported downstream of the pool-fill assert. Only the host frame moved (+0x2c0b2a before the PR, +0x36dd0a after) while the guest stack is unchanged, which reads like the same unfilled-pool path being reached now that the signature is accepted. No title boot, rendered frame or RT correctness is claimed.
Gefik23 commented 2026-11-25 05:51:12 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Gefik23 on 2026-11-25T05:51:12Z.


Tested b477602aa on NVIDIA GeForce RTX 4060 (Ada), driver 617.42, Windows 11 Pro build 26200, native Windows (not Wine): pass.

Built at this head with scripts\build_runtime.ps1 (MSVC 19.44, VS 2022 Build Tools, Ninja, RelWithDebInfo, Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0, glslangValidator from the SDK).

  • ctest -R "root_arguments|root_signature" -V: 6/6 passed (root_signature, root_signature_oracle, d3d12_root_arguments, replay_root_arguments, queue_root_arguments, vk_root_arguments).
  • Full ctest -C RelWithDebInfo: 300/301. The one failure is d3d12_execute_indirect_validation, which also fails on main on this host (stock Windows 11 d3d12core 10.0.26100.7309) and is fixed by #1066; this branch predates it. Game-data tests skipped (LEONIDA_GAME_DIR unset).
  • Not run: tests/test_root_sig_contract.py (pytest is not installed here).

AI-assisted (Claude Code ran the build and tests). No game files.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7154200594 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1009#issuecomment-7154200594). Originally posted by [Gefik23](https://github.com/Gefik23) on 2026-11-25T05:51:12Z. --- Tested b477602aa on NVIDIA GeForce RTX 4060 (Ada), driver 617.42, Windows 11 Pro build 26200, native Windows (not Wine): pass. Built at this head with `scripts\build_runtime.ps1` (MSVC 19.44, VS 2022 Build Tools, Ninja, RelWithDebInfo, Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0, glslangValidator from the SDK). - `ctest -R "root_arguments|root_signature" -V`: 6/6 passed (`root_signature`, `root_signature_oracle`, `d3d12_root_arguments`, `replay_root_arguments`, `queue_root_arguments`, `vk_root_arguments`). - Full `ctest -C RelWithDebInfo`: 300/301. The one failure is `d3d12_execute_indirect_validation`, which also fails on main on this host (stock Windows 11 d3d12core 10.0.26100.7309) and is fixed by #1066; this branch predates it. Game-data tests skipped (LEONIDA_GAME_DIR unset). - Not run: `tests/test_root_sig_contract.py` (pytest is not installed here). AI-assisted (Claude Code ran the build and tests). No game files.
djrolfes commented 2026-11-25 06:43:49 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by djrolfes on 2026-11-25T06:43:49Z.


Thank you for the independent native-Windows confirmation, @Gefik23. I am maintaining this PR rather than opening a replacement.

A rebase onto current main 42537e7b6 is prepared locally in a separate worktree (candidate 54ab64cac; old tested b477602aa remains preserved). Main now accepts compute spill layouts but still drops block-only argument values; this PR remains needed for the full argument block and immutable submission-retained uploads. Conflict resolution preserves main’s graphics/mesh windows, direct-heap delivery, title-VA rebasing, descriptor-table scan counts, async/skipped pipeline handling, and geometry-upload retention. The tests now also explicitly check that the table-descriptor count and new block offset remain distinct fields.

Validation of the rebased candidate is starting; no old-head pass is being presented as a pass on the new tree. I will update this same PR with a lease-protected push only after the new tests complete. #1066 is already in the base, so the formerly known indirect-range failure will be checked again rather than carried forward as an exemption. AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7155096757 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1009#issuecomment-7155096757). Originally posted by [djrolfes](https://github.com/djrolfes) on 2026-11-25T06:43:49Z. --- Thank you for the independent native-Windows confirmation, @Gefik23. I am maintaining this PR rather than opening a replacement. A rebase onto current main 42537e7b6 is prepared locally in a separate worktree (candidate 54ab64cac; old tested b477602aa remains preserved). Main now accepts compute spill layouts but still drops block-only argument values; this PR remains needed for the full argument block and immutable submission-retained uploads. Conflict resolution preserves main’s graphics/mesh windows, direct-heap delivery, title-VA rebasing, descriptor-table scan counts, async/skipped pipeline handling, and geometry-upload retention. The tests now also explicitly check that the table-descriptor count and new block offset remain distinct fields. Validation of the rebased candidate is starting; no old-head pass is being presented as a pass on the new tree. I will update this same PR with a lease-protected push only after the new tests complete. #1066 is already in the base, so the formerly known indirect-range failure will be checked again rather than carried forward as an exemption. AI-assisted.
Gefik23 commented 2026-11-25 07:09:13 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Gefik23 on 2026-11-25T07:09:13Z.


Follow-up to my earlier run: tests/test_root_sig_contract.py at b477602aa, in a venv with tests/requirements.txt (pytest 9.2.0), Python 3.12.10, Windows 11 build 26200: 61 passed (python -m pytest tests/test_root_sig_contract.py). With the 6/6 root-argument ctests from before, every test this PR touches has now passed on this host.

AI-assisted (Claude Code ran the test). No game files.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7155546065 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1009#issuecomment-7155546065). Originally posted by [Gefik23](https://github.com/Gefik23) on 2026-11-25T07:09:13Z. --- Follow-up to my earlier run: `tests/test_root_sig_contract.py` at b477602aa, in a venv with `tests/requirements.txt` (pytest 9.2.0), Python 3.12.10, Windows 11 build 26200: 61 passed (`python -m pytest tests/test_root_sig_contract.py`). With the 6/6 root-argument ctests from before, every test this PR touches has now passed on this host. AI-assisted (Claude Code ran the test). No game files.
djrolfes commented 2026-11-25 07:22:53 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by djrolfes on 2026-11-25T07:22:53Z.


Tested rebase pushed to the same branch with an explicit b477602aa lease: head 1a85aad9c, base 42537e7b6. Old tested head remains preserved locally. Complete native and Windows cross builds pass; native validation 87 pass + 1 corpus skip, Wine targeted 37/37 (all six root tests and the now-fixed indirect-count/range test included), semantic 487 files / 6,279 tests pass, contract/line-ending 68 pass. No-game-data and diff checks pass. Clean merge-tree against newer main 3f81d46ac. Updated the PR body with exact evidence and limitations.

The only rebase fixture correction replaces the old unresolved-pipeline rollback trigger with a real second-upload failure, because main now deliberately supports skipped/asynchronous pipelines. It asserts earlier unsubmitted allocation release. No production skip policy was changed. The new block_offset remains after table_descriptors, with a distinct-values assertion.

RTX 3070 Ti / NVIDIA 620.73.04 / Linux / Wine 11.22; GPU validation native, not available through Wine. No title/world correctness claim. The separately tested retail candidate with #1558 and translator fixes is not included. AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7155795763 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1009#issuecomment-7155795763). Originally posted by [djrolfes](https://github.com/djrolfes) on 2026-11-25T07:22:53Z. --- Tested rebase pushed to the same branch with an explicit b477602aa lease: head 1a85aad9c, base 42537e7b6. Old tested head remains preserved locally. Complete native and Windows cross builds pass; native validation 87 pass + 1 corpus skip, Wine targeted 37/37 (all six root tests and the now-fixed indirect-count/range test included), semantic 487 files / 6,279 tests pass, contract/line-ending 68 pass. No-game-data and diff checks pass. Clean merge-tree against newer main 3f81d46ac. Updated the PR body with exact evidence and limitations. The only rebase fixture correction replaces the old unresolved-pipeline rollback trigger with a real second-upload failure, because main now deliberately supports skipped/asynchronous pipelines. It asserts earlier unsubmitted allocation release. No production skip policy was changed. The new block_offset remains after table_descriptors, with a distinct-values assertion. RTX 3070 Ti / NVIDIA 620.73.04 / Linux / Wine 11.22; GPU validation native, not available through Wine. No title/world correctness claim. The separately tested retail candidate with #1558 and translator fixes is not included. AI-assisted.
djrolfes commented 2026-11-25 19:11:48 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by djrolfes on 2026-11-25T19:11:48Z.


Maintenance update: the second rebase candidate 5421df174 on bcaa13dad finished validation: complete native and Windows builds, native validation 90 pass + 1 corpus skip, targeted Wine 44/44, semantic 488 files / 6,287 tests, contract/line-ending 68 pass, scanner/diff checks clean. Added a regression that resolves a deferred pipeline shared by direct/indirect dispatches and checks all immutable root-block VAs survive.

Main has since advanced to 490f5b9ec, so that tested candidate conflicts again. I am preserving it rather than pushing it as current-main compatible. A third isolated rebase is prepared locally (b1d154efa, validation pending). It retains main’s stateful indirect-draw path and clamp handling, adds compute snapshots in the moved record_indirect helper, preserves remember_table tracking, and retains both indirect-clamp and root-block submission owners. No untested force-push; remote remains 1a85aad9c until the new overlap is validated. Same PR/claim, AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7171951404 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1009#issuecomment-7171951404). Originally posted by [djrolfes](https://github.com/djrolfes) on 2026-11-25T19:11:48Z. --- Maintenance update: the second rebase candidate 5421df174 on bcaa13dad finished validation: complete native and Windows builds, native validation 90 pass + 1 corpus skip, targeted Wine 44/44, semantic 488 files / 6,287 tests, contract/line-ending 68 pass, scanner/diff checks clean. Added a regression that resolves a deferred pipeline shared by direct/indirect dispatches and checks all immutable root-block VAs survive. Main has since advanced to 490f5b9ec, so that tested candidate conflicts again. I am preserving it rather than pushing it as current-main compatible. A third isolated rebase is prepared locally (b1d154efa, validation pending). It retains main’s stateful indirect-draw path and clamp handling, adds compute snapshots in the moved record_indirect helper, preserves remember_table tracking, and retains both indirect-clamp and root-block submission owners. No untested force-push; remote remains 1a85aad9c until the new overlap is validated. Same PR/claim, AI-assisted.
djrolfes commented 2026-11-25 19:44:16 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by djrolfes on 2026-11-25T19:44:16Z.


Third rebase validated and pushed to the SAME branch with an explicit 1a85aad9c lease: 0cc10a1ec on 490f5b9ec. Clean merge-tree against 5da72d19f immediately before pushing. Complete native/Windows builds; native validation 99 pass + 1 corpus skip; expanded Wine overlap 62 pass + 1 explicit Microsoft-host comparison skip / 63; semantic 490 files / 6,310 tests; contract/line-ending 68 pass; scanner/diff checks pass.

Retained the moved stateful indirect recording and compute snapshot hook, clamp preparation/emission/retention, table tracking, worker compile ticket and immutable root-block owners. Added direct/indirect deferred-worker coverage. The only latest fixture adaptation respects main’s unbacked-root-view zeroing and separately registers a synthetic, never-dereferenced alias to verify both address halves; no production safety guard was weakened.

The skipped d3d12_indirect_zero host comparison is not a pass. RTX 3070 Ti / NVIDIA 620.73.04 / Linux, GCC 16.2.1 native and clang-cl/xwin + Wine 11.22. GPU validation native; no native Windows/MSVC run or title/world claim. Retail main validation remains separate and excludes this PR. AI-assisted. Updated the body with exact evidence.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7172700019 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1009#issuecomment-7172700019). Originally posted by [djrolfes](https://github.com/djrolfes) on 2026-11-25T19:44:16Z. --- Third rebase validated and pushed to the SAME branch with an explicit 1a85aad9c lease: 0cc10a1ec on 490f5b9ec. Clean merge-tree against 5da72d19f immediately before pushing. Complete native/Windows builds; native validation 99 pass + 1 corpus skip; expanded Wine overlap 62 pass + 1 explicit Microsoft-host comparison skip / 63; semantic 490 files / 6,310 tests; contract/line-ending 68 pass; scanner/diff checks pass. Retained the moved stateful indirect recording and compute snapshot hook, clamp preparation/emission/retention, table tracking, worker compile ticket and immutable root-block owners. Added direct/indirect deferred-worker coverage. The only latest fixture adaptation respects main’s unbacked-root-view zeroing and separately registers a synthetic, never-dereferenced alias to verify both address halves; no production safety guard was weakened. The skipped d3d12_indirect_zero host comparison is not a pass. RTX 3070 Ti / NVIDIA 620.73.04 / Linux, GCC 16.2.1 native and clang-cl/xwin + Wine 11.22. GPU validation native; no native Windows/MSVC run or title/world claim. Retail main validation remains separate and excludes this PR. AI-assisted. Updated the body with exact evidence.
djrolfes commented 2026-11-25 21:50:40 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by djrolfes on 2026-11-25T21:50:40Z.


Rebased onto origin/main 24d8af66a -> new head e5551b81e (from 0cc10a1ec) with explicit 0cc10a1ec lease; verified clean git merge-tree against 1fe5072af before pushing.

Conflict resolution (runtime/src/vulkan_backend.h):

  • origin/main moved VulkanQueue::execute_now() preparation into a two-pass for (int pass = 0;; ++pass) loop that unlocks resource_mutex_ and tracker_mutex_ while compiling unbuilt pipelines under pipeline_mutex_ and resets replay = context_.replay_ on each pass.
  • Preserved both sides: kept root_arguments alongside geometry across passes, bound replay.prepare_root_arguments inside each pass, added root_arguments.clear() alongside geometry.clear() before pass-0 pipeline compilation so unused pass-0 arena allocations release immediately, and retained pass-1's owners on slot->root_arguments.
  • Extended runtime/test/queue_root_arguments_test.cpp with a mock deferred-compile check verifying pass-0 release before build(), pass-1 VA push constants, and slot retention until queue destruction.

Portable Linux CPU-only verification (no GPU, Wine, native Windows, or retail runs in this pass):

  • python3 -I scripts/check_no_game_data.py on all 19 changed files: pass
  • python3 -m compileall -q make_game.py tools tests: pass
  • python3 -I tests/test_text_write_line_endings.py: 3/3 passed
  • /usr/bin/python3 -m pytest tests/test_root_sig_contract.py: 65/65 passed
  • python3 -I tests/test_docs_*.py (13 files): 52/52 passed
  • Portable Linux runtime CMake build (RelWithDebInfo, -j 2, with runtime/build/generated created for glslangValidator outputs): built cleanly (103 CTest targets)
  • CPU-only ctest (VK_ICD_FILENAMES=/nonexistent VK_DRIVER_FILES=/nonexistent, excluding 21 Vulkan GPU tests via -E): 81 passed, 1 skipped (shader_library_corpus, unset LEONIDA_SHADERS), 0 failed out of 82 run (21 Vulkan GPU tests excluded, not run).

AI-assisted, no game data.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7175610420 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1009#issuecomment-7175610420). Originally posted by [djrolfes](https://github.com/djrolfes) on 2026-11-25T21:50:40Z. --- Rebased onto `origin/main` `24d8af66a` -> new head `e5551b81e` (from `0cc10a1ec`) with explicit `0cc10a1ec` lease; verified clean `git merge-tree` against `1fe5072af` before pushing. **Conflict resolution (`runtime/src/vulkan_backend.h`):** - `origin/main` moved `VulkanQueue::execute_now()` preparation into a two-pass `for (int pass = 0;; ++pass)` loop that unlocks `resource_mutex_` and `tracker_mutex_` while compiling unbuilt pipelines under `pipeline_mutex_` and resets `replay = context_.replay_` on each pass. - Preserved both sides: kept `root_arguments` alongside `geometry` across passes, bound `replay.prepare_root_arguments` inside each pass, added `root_arguments.clear()` alongside `geometry.clear()` before pass-0 pipeline compilation so unused pass-0 arena allocations release immediately, and retained pass-1's owners on `slot->root_arguments`. - Extended `runtime/test/queue_root_arguments_test.cpp` with a mock deferred-compile check verifying pass-0 release before `build()`, pass-1 VA push constants, and slot retention until queue destruction. **Portable Linux CPU-only verification (no GPU, Wine, native Windows, or retail runs in this pass):** - `python3 -I scripts/check_no_game_data.py` on all 19 changed files: pass - `python3 -m compileall -q make_game.py tools tests`: pass - `python3 -I tests/test_text_write_line_endings.py`: 3/3 passed - `/usr/bin/python3 -m pytest tests/test_root_sig_contract.py`: 65/65 passed - `python3 -I tests/test_docs_*.py` (13 files): 52/52 passed - Portable Linux runtime CMake build (`RelWithDebInfo`, `-j 2`, with `runtime/build/generated` created for `glslangValidator` outputs): built cleanly (103 CTest targets) - CPU-only `ctest` (`VK_ICD_FILENAMES=/nonexistent VK_DRIVER_FILES=/nonexistent`, excluding 21 Vulkan GPU tests via `-E`): 81 passed, 1 skipped (`shader_library_corpus`, unset `LEONIDA_SHADERS`), 0 failed out of 82 run (21 Vulkan GPU tests excluded, not run). AI-assisted, no game data.
djrolfes commented 2026-11-25 23:33:53 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by djrolfes on 2026-11-25T23:33:53Z.


Rebased onto origin/main cb1d5f57f -> new head 17a125c16 (from e5551b81e) with explicit e5551b81e lease; verified clean git merge-tree --write-tree against 33bd07cf8 before pushing.

Conflict resolution and consistency with #657 (D3D-942) / #677:

  • runtime/src/root_signature.h: resolved pack_stage() docstring conflict to retain both the compute argument-block spill model and #657's zero-value constant behavior (zero SGPRs, zero block dwords).
  • runtime/src/root_signature.cpp & tools/root_sig_contract.py: verified auto-merge preserves #657 acceptance of zero-value root constants consistently across C++ pack_stage() and Python pack_layout(), with block_dword sharing the next parameter's offset and block_dwords unchanged.
  • runtime/test/root_signature_test.cpp: resolved conflicts and updated #657's 64 constants and zero-value constant tests to assert spills(), spill_start, first_sgpr, block_dword, and block_dwords; updated the post-spill tail validation check so consts(0) after spill is accepted (ok, block_dwords == 29) while invalid parameter types and over-cost parameters (consts(36)) remain rejected; added the {consts(28), consts(0)} s31-boundary check.
  • tests/test_root_sig_contract.py: preserved test_zero_value_constants_take_no_dwords (including compute spill/boundary and 64-constant compute vs pixel checks) alongside test_console_layout_spill_goes_to_the_argument_block and test_console_spill_does_not_resume_inline_placement, and updated test_console_spill_validates_the_entire_tail to reject negative/boolean counts, over-cost counts, and unknown parameter types while accepting count: 0 after spill.

Portable Linux CPU-only verification (no GPU, Wine, native Windows, or retail runs in this pass):

  • git diff --check origin/main...HEAD: pass
  • python3 -I scripts/check_no_game_data.py on all 19 changed files: pass
  • nice -n 15 ionice -c 3 python3 -m compileall -q make_game.py tools tests: pass
  • python3 -I tests/test_text_write_line_endings.py: 3/3 passed
  • /usr/bin/python3 -m pytest tests/test_root_sig_contract.py -v: 65/65 passed
  • python3 -I tests/test_docs_*.py (13 files): 52/52 passed
  • Portable Linux runtime CMake build (RelWithDebInfo, -j 2, with runtime/build/generated created): built cleanly (105 CTest targets)
  • CPU-only ctest (VK_ICD_FILENAMES=/nonexistent VK_DRIVER_FILES=/nonexistent, excluding 21 Vulkan GPU tests via -E): 83 passed, 1 skipped (shader_library_corpus, unset LEONIDA_SHADERS), 0 failed out of 84 run (21 Vulkan GPU tests excluded, not run). Direct CPU binary runs (root_signature_test, replay_root_arguments_test, queue_root_arguments_test): all passed with 0 failures (root_sig_public_flags_test and d3d12_root_arguments_test are Windows-only targets and were not built/run here).

AI-assisted, no game data.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7177738291 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1009#issuecomment-7177738291). Originally posted by [djrolfes](https://github.com/djrolfes) on 2026-11-25T23:33:53Z. --- Rebased onto `origin/main` `cb1d5f57f` -> new head `17a125c16` (from `e5551b81e`) with explicit `e5551b81e` lease; verified clean `git merge-tree --write-tree` against `33bd07cf8` before pushing. **Conflict resolution and consistency with `#657` (`D3D-942`) / `#677`:** - `runtime/src/root_signature.h`: resolved `pack_stage()` docstring conflict to retain both the compute argument-block spill model and `#657`'s zero-value constant behavior (zero SGPRs, zero block dwords). - `runtime/src/root_signature.cpp` & `tools/root_sig_contract.py`: verified auto-merge preserves `#657` acceptance of zero-value root constants consistently across C++ `pack_stage()` and Python `pack_layout()`, with `block_dword` sharing the next parameter's offset and `block_dwords` unchanged. - `runtime/test/root_signature_test.cpp`: resolved conflicts and updated `#657`'s `64 constants` and zero-value constant tests to assert `spills()`, `spill_start`, `first_sgpr`, `block_dword`, and `block_dwords`; updated the post-spill tail validation check so `consts(0)` after spill is accepted (`ok`, `block_dwords == 29`) while invalid parameter types and over-cost parameters (`consts(36)`) remain rejected; added the `{consts(28), consts(0)}` s31-boundary check. - `tests/test_root_sig_contract.py`: preserved `test_zero_value_constants_take_no_dwords` (including compute spill/boundary and 64-constant compute vs pixel checks) alongside `test_console_layout_spill_goes_to_the_argument_block` and `test_console_spill_does_not_resume_inline_placement`, and updated `test_console_spill_validates_the_entire_tail` to reject negative/boolean counts, over-cost counts, and unknown parameter types while accepting `count: 0` after spill. **Portable Linux CPU-only verification (no GPU, Wine, native Windows, or retail runs in this pass):** - `git diff --check origin/main...HEAD`: pass - `python3 -I scripts/check_no_game_data.py` on all 19 changed files: pass - `nice -n 15 ionice -c 3 python3 -m compileall -q make_game.py tools tests`: pass - `python3 -I tests/test_text_write_line_endings.py`: 3/3 passed - `/usr/bin/python3 -m pytest tests/test_root_sig_contract.py -v`: 65/65 passed - `python3 -I tests/test_docs_*.py` (13 files): 52/52 passed - Portable Linux runtime CMake build (`RelWithDebInfo`, `-j 2`, with `runtime/build/generated` created): built cleanly (105 CTest targets) - CPU-only `ctest` (`VK_ICD_FILENAMES=/nonexistent VK_DRIVER_FILES=/nonexistent`, excluding 21 Vulkan GPU tests via `-E`): 83 passed, 1 skipped (`shader_library_corpus`, unset `LEONIDA_SHADERS`), 0 failed out of 84 run (21 Vulkan GPU tests excluded, not run). Direct CPU binary runs (`root_signature_test`, `replay_root_arguments_test`, `queue_root_arguments_test`): all passed with 0 failures (`root_sig_public_flags_test` and `d3d12_root_arguments_test` are Windows-only targets and were not built/run here). AI-assisted, no game data.
djrolfes commented 2026-11-26 02:02:37 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by djrolfes on 2026-11-26T02:02:37Z.


Rebased onto origin/main ef3493186 -> new head 25e5c4e4a (from 17a125c16) with explicit 17a125c16 lease; verified clean git merge-tree --write-tree against updated origin/main 88b290fcb before pushing.

Conflict resolution (runtime/src/vulkan_replay.h):

  • origin/main (#2098 / RT-POST-LOAD-GPU-MEMORY and indirect-clamp updates) generalized and moved the ExecuteIndirect clamp, counted-dispatch, and indirect entry-point checks above ind->kind == IndirectKind::dispatch && ind->pipeline resolution, and added if (ind->kind != IndirectKind::dispatch && !vk.external_graphics_scope) continue;.
  • Dropped the superseded duplicate indirect-clamp/counted-dispatch conflict block while preserving both sides:
    • Added if (ind->kind != IndirectKind::dispatch && !ind->root_arguments.empty()) return unsupported_at(__LINE__); before the external_graphics_scope skip so non-dispatch ExecuteIndirect with non-empty root_arguments stays rejected.
    • Preserved origin/main's clamp, counted-dispatch, and compute pipeline resolution/skip handling, followed by if (!ind->root_arguments.empty()) (!ind->pipeline || !detail::prepare_root_arguments(ind->root_arguments, vk, p.root_argument_va) -> unsupported_at(__LINE__)).
  • Verified auto-merged overlapping files (docs/d3d12_vulkan.md, docs/design.md, runtime/CMakeLists.txt, runtime/shims/d3d12_com.cpp, runtime/shims/d3d12_com.h, runtime/shims/d3d12_vulkan_device.cpp, runtime/src/command_list.h, runtime/src/vulkan_backend.h) keep both origin/main changes and PR #1009's immutable compute root-argument blocks intact.

Portable Linux CPU-only verification (no GPU, Wine, native Windows, or retail runs in this pass):

  • git diff --check origin/main...HEAD: pass
  • python3 -I scripts/check_no_game_data.py on all 19 changed files: pass
  • nice -n 15 ionice -c 3 python3 -m compileall -q make_game.py tools tests: pass
  • python3 -I tests/test_text_write_line_endings.py: 3/3 passed
  • /usr/bin/python3 -m pytest tests/test_root_sig_contract.py -v: 65/65 passed
  • python3 -I tests/test_ctest_registration.py: 6/6 passed
  • python3 -I tests/test_runner_calls_all_tests.py: 3/3 passed
  • python3 -I tests/test_docs_*.py (13 files): 52/52 passed
  • Portable Linux runtime CMake build (RelWithDebInfo, -j 2, with runtime/build/generated created): built cleanly (109 CTest targets)
  • CPU-only ctest (VK_ICD_FILENAMES=/nonexistent VK_DRIVER_FILES=/nonexistent, -j 2, excluding 23 Vulkan GPU tests via -E): 85 passed, 1 skipped (shader_library_corpus, unset LEONIDA_SHADERS), 0 failed out of 86 run (23 Vulkan GPU tests excluded, not run).
  • Direct CPU binary runs: root_signature_test (passed), replay_root_arguments_test (0 failures), queue_root_arguments_test (0 failures), replay_pipeline_compile_unlock_test (passed) (d3d12_root_arguments_test is Windows-only and vk_root_arguments_test is a Vulkan GPU test, so neither was run here).

AI-assisted, no game data.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7180401769 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1009#issuecomment-7180401769). Originally posted by [djrolfes](https://github.com/djrolfes) on 2026-11-26T02:02:37Z. --- Rebased onto `origin/main` `ef3493186` -> new head `25e5c4e4a` (from `17a125c16`) with explicit `17a125c16` lease; verified clean `git merge-tree --write-tree` against updated `origin/main` `88b290fcb` before pushing. **Conflict resolution (`runtime/src/vulkan_replay.h`):** - `origin/main` (`#2098` / `RT-POST-LOAD-GPU-MEMORY` and indirect-clamp updates) generalized and moved the `ExecuteIndirect` clamp, counted-dispatch, and indirect entry-point checks above `ind->kind == IndirectKind::dispatch && ind->pipeline` resolution, and added `if (ind->kind != IndirectKind::dispatch && !vk.external_graphics_scope) continue;`. - Dropped the superseded duplicate indirect-clamp/counted-dispatch conflict block while preserving both sides: - Added `if (ind->kind != IndirectKind::dispatch && !ind->root_arguments.empty()) return unsupported_at(__LINE__);` before the `external_graphics_scope` skip so non-dispatch `ExecuteIndirect` with non-empty `root_arguments` stays rejected. - Preserved `origin/main`'s clamp, counted-dispatch, and compute pipeline resolution/skip handling, followed by `if (!ind->root_arguments.empty())` (`!ind->pipeline || !detail::prepare_root_arguments(ind->root_arguments, vk, p.root_argument_va)` -> `unsupported_at(__LINE__)`). - Verified auto-merged overlapping files (`docs/d3d12_vulkan.md`, `docs/design.md`, `runtime/CMakeLists.txt`, `runtime/shims/d3d12_com.cpp`, `runtime/shims/d3d12_com.h`, `runtime/shims/d3d12_vulkan_device.cpp`, `runtime/src/command_list.h`, `runtime/src/vulkan_backend.h`) keep both `origin/main` changes and PR #1009's immutable compute root-argument blocks intact. **Portable Linux CPU-only verification (no GPU, Wine, native Windows, or retail runs in this pass):** - `git diff --check origin/main...HEAD`: pass - `python3 -I scripts/check_no_game_data.py` on all 19 changed files: pass - `nice -n 15 ionice -c 3 python3 -m compileall -q make_game.py tools tests`: pass - `python3 -I tests/test_text_write_line_endings.py`: 3/3 passed - `/usr/bin/python3 -m pytest tests/test_root_sig_contract.py -v`: 65/65 passed - `python3 -I tests/test_ctest_registration.py`: 6/6 passed - `python3 -I tests/test_runner_calls_all_tests.py`: 3/3 passed - `python3 -I tests/test_docs_*.py` (13 files): 52/52 passed - Portable Linux runtime CMake build (`RelWithDebInfo`, `-j 2`, with `runtime/build/generated` created): built cleanly (109 CTest targets) - CPU-only `ctest` (`VK_ICD_FILENAMES=/nonexistent VK_DRIVER_FILES=/nonexistent`, `-j 2`, excluding 23 Vulkan GPU tests via `-E`): 85 passed, 1 skipped (`shader_library_corpus`, unset `LEONIDA_SHADERS`), 0 failed out of 86 run (23 Vulkan GPU tests excluded, not run). - Direct CPU binary runs: `root_signature_test` (passed), `replay_root_arguments_test` (0 failures), `queue_root_arguments_test` (0 failures), `replay_pipeline_compile_unlock_test` (passed) (`d3d12_root_arguments_test` is Windows-only and `vk_root_arguments_test` is a Vulkan GPU test, so neither was run here). AI-assisted, no game data.
aslan2142 commented 2026-12-01 17:21:46 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T17:21:46Z.


Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7319178015 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1009#issuecomment-7319178015). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T17:21:46Z. --- Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.

Pull request closed

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!1009
No description provided.