[GH-ISSUE #1608] Coordinating who works on what (continued from #14) #44

Open
opened 2026-11-26 20:14:05 +01:00 by 4ld0 · 1829 comments
Owner

Originally created by @lixonik on GitHub (Nov 25, 2026).
Original GitHub issue: https://github.com/ubiquitarianism/leonida/issues/1608

Continuation of #14, which has reached GitHub's 2,500-comment cap. The previous thread contains the existing claims, findings, and open-work table. Check those records and the open pull requests before claiming anything.

  • Claim: comment claiming: <ID> before starting work. Use the existing ID if there is one, or give a short description for an unlisted item. Put the ID or a link to the claim in the pull request.
  • Finding: comment finding: <one line> with the file and line, why it matters, and what is needed to reproduce it.
  • Done: comment done: <ID> -> #<PR> when the pull request is open.

The same contribution rules apply. Existing claims in #14 still stand. If a claim was posted in a separate issue while #14 was capped, link it here so contributors can find it.

Originally created by @lixonik on GitHub (Nov 25, 2026). Original GitHub issue: https://github.com/ubiquitarianism/leonida/issues/1608 Continuation of #14, which has reached GitHub's 2,500-comment cap. The previous thread contains the existing claims, findings, and open-work table. Check those records and the [open pull requests](https://github.com/ubiquitarianism/leonida/pulls) before claiming anything. - Claim: comment `claiming: <ID>` before starting work. Use the existing ID if there is one, or give a short description for an unlisted item. Put the ID or a link to the claim in the pull request. - Finding: comment `finding: <one line>` with the file and line, why it matters, and what is needed to reproduce it. - Done: comment `done: <ID> -> #<PR>` when the pull request is open. The same [contribution rules](https://github.com/ubiquitarianism/leonida/blob/main/CONTRIBUTING.md) apply. Existing claims in #14 still stand. If a claim was posted in a separate issue while #14 was capped, link it here so contributors can find it.
Author
Owner

@lixonik commented on GitHub (Nov 25, 2026):

claiming: RT-WINDOWS-BOOT-SCRATCH-CWD -- I will handle the driver-dump part of #1552 by moving boot.ps1 child launches to a per-run working directory under -OutDir and protecting against accidental staging of a root-level ucode.elf from direct launches. Will verify relative launch paths with synthetic inputs. AI-assisted.

<!-- gh-comment-id:7154180405 --> @lixonik commented on GitHub (Nov 25, 2026): claiming: RT-WINDOWS-BOOT-SCRATCH-CWD -- I will handle the driver-dump part of #1552 by moving boot.ps1 child launches to a per-run working directory under -OutDir and protecting against accidental staging of a root-level ucode.elf from direct launches. Will verify relative launch paths with synthetic inputs. AI-assisted.
Author
Owner

@lixonik commented on GitHub (Nov 25, 2026):

done: RT-WINDOWS-BOOT-SCRATCH-CWD -> #1609

<!-- gh-comment-id:7154197056 --> @lixonik commented on GitHub (Nov 25, 2026): done: RT-WINDOWS-BOOT-SCRATCH-CWD -> #1609
Author
Owner

@Tyrannys commented on GitHub (Nov 25, 2026):

claiming: RT-FIRST-RUN-PAD-FOCUS - gta6rt --first-run-ui defaults LEONIDA_KEYBOARD_PAD=always (runtime/src/main.cpp, configure_first_run_ui), so keys typed into other windows reach the title's consent pages (hazard 1 of #1552). Default it to the focused mode 1; scripted presses still run unfocused. Check in tiny_game / run_tiny_first_run_ui. Does not touch boot.ps1 (#1609, RT-KEYBOARD-PAD-SCRIPT) or the shim default (#1528). AI-assisted.

<!-- gh-comment-id:7154210350 --> @Tyrannys commented on GitHub (Nov 25, 2026): claiming: RT-FIRST-RUN-PAD-FOCUS - `gta6rt --first-run-ui` defaults `LEONIDA_KEYBOARD_PAD=always` (`runtime/src/main.cpp`, `configure_first_run_ui`), so keys typed into other windows reach the title's consent pages (hazard 1 of #1552). Default it to the focused mode `1`; scripted presses still run unfocused. Check in `tiny_game` / `run_tiny_first_run_ui`. Does not touch `boot.ps1` (#1609, RT-KEYBOARD-PAD-SCRIPT) or the shim default (#1528). AI-assisted.
Author
Owner

@Tyrannys commented on GitHub (Nov 25, 2026):

done: RT-FIRST-RUN-PAD-FOCUS -> #1612

<!-- gh-comment-id:7154261991 --> @Tyrannys commented on GitHub (Nov 25, 2026): done: RT-FIRST-RUN-PAD-FOCUS -> #1612
Author
Owner

@thiefyzheng commented on GitHub (Nov 25, 2026):

done: TEST-TEMPDIR-STRIPPED-ENV -> #1600 (the done: line for this item was started on #14 but blocked by the 2,500-comment cap; completing it here as promised — https://github.com/ubiquitarianism/leonida/pull/1600#issuecomment-7153909113 ).

One testfiles::temp_dir() entry in runtime/test/test_temp_dir.h (LEONIDA_TEST_DIR, else cwd when the temp environment is stripped, else the standard temp resolution); 45 test files + the tiny_game fixture rerouted from direct GetTempPath/temp_directory_path; capture_stderr now checks _sopen_s; and the one runtime-source fallback the enumeration forced (tls_host_clone_dir in pe_loader.cpp, for the loader_tls tests), called out in the PR. Windows VM verification: stripped env — previously-crashing d3d12 tests exit 77 gracefully now, file_system_test 505 checks 0 failures, loader_test 95/0, no 0xc0000409 anywhere; normal env identical; LEONIDA_TEST_DIR honored under a fully stripped env (the scratch folder was captured mid-run inside it). Rebased over main's D3D-448 mesh changes. The finding is @whoalin1's (#14, 02:37:44Z). AI-assisted.

<!-- gh-comment-id:7154317606 --> @thiefyzheng commented on GitHub (Nov 25, 2026): done: TEST-TEMPDIR-STRIPPED-ENV -> #1600 (the `done:` line for this item was started on #14 but blocked by the 2,500-comment cap; completing it here as promised — https://github.com/ubiquitarianism/leonida/pull/1600#issuecomment-7153909113 ). One `testfiles::temp_dir()` entry in runtime/test/test_temp_dir.h (LEONIDA_TEST_DIR, else cwd when the temp environment is stripped, else the standard temp resolution); 45 test files + the tiny_game fixture rerouted from direct GetTempPath/temp_directory_path; `capture_stderr` now checks `_sopen_s`; and the one runtime-source fallback the enumeration forced (`tls_host_clone_dir` in pe_loader.cpp, for the loader_tls tests), called out in the PR. Windows VM verification: stripped env — previously-crashing d3d12 tests exit 77 gracefully now, file_system_test 505 checks 0 failures, loader_test 95/0, no 0xc0000409 anywhere; normal env identical; LEONIDA_TEST_DIR honored under a fully stripped env (the scratch folder was captured mid-run inside it). Rebased over main's D3D-448 mesh changes. The finding is @whoalin1's (#14, 02:37:44Z). AI-assisted.
Author
Owner

@Rain156 commented on GitHub (Nov 25, 2026):

done: RT-SLOT57-NATIVE-GRAPHICS-PSO -> #1592

The original claim predates the PR. The index prerequisite was #497. Reply to the post-merge RDNA2 question

<!-- gh-comment-id:7154337573 --> @Rain156 commented on GitHub (Nov 25, 2026): done: RT-SLOT57-NATIVE-GRAPHICS-PSO -> #1592 The [original claim](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7123093929) predates the PR. The index prerequisite was #497. [Reply to the post-merge RDNA2 question](https://github.com/ubiquitarianism/leonida/pull/497#issuecomment-7153790687)
Author
Owner

@Rain156 commented on GitHub (Nov 25, 2026):

finding: 344 pipeline-library graphics programs still need exact translations (325 PS, 18 MS, 1 VS).

The full #1592 census of 18,837 identified programs produced 18,493 validated modules in both native wave64 and wave64 emulation. The remaining translation diagnostics include v_interp_p2_f16 fields lost in LLVM text, DPP on v_cmpx, s_getpc_b64 destinations and missing interface containers. The raw-code route has no module for those programs. A stage whose record names a valid DXBC container can still use #497.

Where: tools/rdna2spirv.py at lines 17796, 7321, 10438 and 17322 on c7e82e26e. Reproduce with a local 1.0.2.1 package and the normal shaders build in #1592, then compare the extracted stage list with spirv/fspx_gfx/index.json. Counting or reproducing a translation refusal needs LLVM and SPIR-V Tools and runs on the CPU. Small hand-written fixtures are suitable for rule development. Aggregate results only.

<!-- gh-comment-id:7154337920 --> @Rain156 commented on GitHub (Nov 25, 2026): finding: 344 pipeline-library graphics programs still need exact translations (325 PS, 18 MS, 1 VS). The full #1592 census of 18,837 identified programs produced 18,493 validated modules in both native wave64 and wave64 emulation. The remaining translation diagnostics include v_interp_p2_f16 fields lost in LLVM text, DPP on v_cmpx, s_getpc_b64 destinations and missing interface containers. The raw-code route has no module for those programs. A stage whose record names a valid DXBC container can still use #497. Where: tools/rdna2spirv.py at lines 17796, 7321, 10438 and 17322 on c7e82e26e. Reproduce with a local 1.0.2.1 package and the normal shaders build in #1592, then compare the extracted stage list with spirv/fspx_gfx/index.json. Counting or reproducing a translation refusal needs LLVM and SPIR-V Tools and runs on the CPU. Small hand-written fixtures are suitable for rule development. Aggregate results only.
Author
Owner

@Tyrannys commented on GitHub (Nov 25, 2026):

claiming: RT-TITLE-WINDOW-OVERFLOW - from #1537: when LEONIDA_TITLE_WINDOWS_MB is used up or the arena is full, DeviceState::resolve_title_memory (runtime/shims/d3d12_vulkan_device.cpp) gives the GPU the title's raw VA, and one read of it loses the device. Point such an address at a zero-filled scratch window in the arena (reserved with the first window) instead, so the cost is a wrong frame, not the device. The default cap stays as it is. Test: a cap-0 mode in d3d12_title_va_test. No game files. AI-assisted.

<!-- gh-comment-id:7154369840 --> @Tyrannys commented on GitHub (Nov 25, 2026): claiming: RT-TITLE-WINDOW-OVERFLOW - from #1537: when `LEONIDA_TITLE_WINDOWS_MB` is used up or the arena is full, `DeviceState::resolve_title_memory` (`runtime/shims/d3d12_vulkan_device.cpp`) gives the GPU the title's raw VA, and one read of it loses the device. Point such an address at a zero-filled scratch window in the arena (reserved with the first window) instead, so the cost is a wrong frame, not the device. The default cap stays as it is. Test: a cap-0 mode in `d3d12_title_va_test`. No game files. AI-assisted.
Author
Owner

@JoeY54 commented on GitHub (Nov 25, 2026):

claiming: GPU-JOEY54-WINDOWS-5090-9950X3D — independent synthetic GPU baseline on Windows 11

I will run the documented synthetic GPU suite on my desktop RTX 5090 (10DE:2B85, NVIDIA 621.24), then add a separate Ryzen 9 9950X3D integrated Radeon row (1002:13C0, AMD 26.11.2 / Windows driver 32.0.21045.29003). Windows 11 Pro 26H2 build 26300.9974; Vulkan SDK 1.4.363.1. Device identity and versions will be rechecked when executing.

Scope: pin an exact current-main revision, follow docs/testing.md, explicitly verify the selected GPU, record tool versions/subgroup support and the actual pass/fail/skip counts and reasons, and distinguish the documented native and wave64-emulated profiles where applicable. Submit a focused results PR under gpu-test-results/; investigate unexpected failures against known issues before proposing a separate implementation change. No success or completion is claimed yet.

This is independent Windows desktop coverage, separate from the RTX 5090 Laptop Linux report in #784 and the existing corpus/pipeline investigations such as #584. It does not take ownership of existing translator/runtime fixes or other contributors' claims.

Only repository-provided synthetic fixtures; no game files, game-derived shaders/logs, keys, or protection workarounds. New isolated workspace; existing backups remain untouched. My completed FrameLab handoff/FG checks are separate evidence, not Leonida suite results.

AI-assisted: Codex will assist with setup, execution, evidence review and the report.

<!-- gh-comment-id:7154417681 --> @JoeY54 commented on GitHub (Nov 25, 2026): claiming: GPU-JOEY54-WINDOWS-5090-9950X3D — independent synthetic GPU baseline on Windows 11 I will run the documented synthetic GPU suite on my desktop RTX 5090 (10DE:2B85, NVIDIA 621.24), then add a separate Ryzen 9 9950X3D integrated Radeon row (1002:13C0, AMD 26.11.2 / Windows driver 32.0.21045.29003). Windows 11 Pro 26H2 build 26300.9974; Vulkan SDK 1.4.363.1. Device identity and versions will be rechecked when executing. Scope: pin an exact current-main revision, follow docs/testing.md, explicitly verify the selected GPU, record tool versions/subgroup support and the actual pass/fail/skip counts and reasons, and distinguish the documented native and wave64-emulated profiles where applicable. Submit a focused results PR under gpu-test-results/; investigate unexpected failures against known issues before proposing a separate implementation change. No success or completion is claimed yet. This is independent Windows desktop coverage, separate from the RTX 5090 Laptop Linux report in #784 and the existing corpus/pipeline investigations such as #584. It does not take ownership of existing translator/runtime fixes or other contributors' claims. Only repository-provided synthetic fixtures; no game files, game-derived shaders/logs, keys, or protection workarounds. New isolated workspace; existing backups remain untouched. My completed FrameLab handoff/FG checks are separate evidence, not Leonida suite results. AI-assisted: Codex will assist with setup, execution, evidence review and the report.
Author
Owner

@JoeY54 commented on GitHub (Nov 25, 2026):

claiming: TEST-JOEY54-PR1600-WINDOWS-GPU — independent validation of #1600 on Windows 11, RTX 5090 and integrated Radeon: normal vs stripped child-process temp environment and explicit LEONIDA_TEST_DIR; record actual GPU passes/skips and regressions.

claiming: TEST-JOEY54-PR1612-FOCUS — independent synthetic tiny_game / first-run profile validation of #1612, including the explicit override negative control; distinguish automated profile checks from any interactive focus behavior actually verified.

claiming: TEST-JOEY54-PR1609-SCRATCH — independent synthetic-child validation of #1609: output isolation, paths with spaces, relative inputs, and DryRun behavior.

These are supplemental testing scopes only; the original authors retain ownership of all three implementations. I will pin and report each tested PR head separately, use isolated directories and synthetic inputs only, preserve existing backups, and report blockers and pass/fail/skip honestly. No game files or production implementation edits. AI-assisted: Codex. Starting these focused checks now; the previously claimed broad GPU baseline remains a separate task.

<!-- gh-comment-id:7154458408 --> @JoeY54 commented on GitHub (Nov 25, 2026): claiming: TEST-JOEY54-PR1600-WINDOWS-GPU — independent validation of #1600 on Windows 11, RTX 5090 and integrated Radeon: normal vs stripped child-process temp environment and explicit LEONIDA_TEST_DIR; record actual GPU passes/skips and regressions. claiming: TEST-JOEY54-PR1612-FOCUS — independent synthetic tiny_game / first-run profile validation of #1612, including the explicit override negative control; distinguish automated profile checks from any interactive focus behavior actually verified. claiming: TEST-JOEY54-PR1609-SCRATCH — independent synthetic-child validation of #1609: output isolation, paths with spaces, relative inputs, and DryRun behavior. These are supplemental testing scopes only; the original authors retain ownership of all three implementations. I will pin and report each tested PR head separately, use isolated directories and synthetic inputs only, preserve existing backups, and report blockers and pass/fail/skip honestly. No game files or production implementation edits. AI-assisted: Codex. Starting these focused checks now; the previously claimed broad GPU baseline remains a separate task.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

Backfilling done: entries for PRs opened while #14 was at the 2,500-comment cap (all AI-assisted, synthetic fixtures only, no game data):

done: RESTOFWORLD-INDEX-VALIDATION-AND-IO -> #1535
done: SPIRV-INTERFACE-DECORATION-VALIDATION -> #1542
done: CHARACTER-CENSUS-ROW-AND-ATOMIC-IO -> #1543
done: BVH-TRI-PROBE-COMPARE-CHECK-AND-IO -> #1546
done: GAMEDATA-GRAPH-COUNTS-AND-CLI-GUARDS -> #1550
done: HEAP-INDEX-CENSUS-DATAFLOW-AND-IO -> #1551
done: CHARACTER-TEXTURES-CLASSIFICATION-AND-IO -> #1553
done: WORLD-ARCHETYPES-EXTENTS-AND-IO -> #1555
done: GAMEDATA-READER-FILTER-AND-OUT-IO -> #1557
done: CPU-FEATURE-SCAN-CLASSIFY-AND-CLI -> #1560
done: WAVE64-PIPELINE-AUDIT-VALIDATION -> #1563
done: PAGE-INDEX-SUMMARY-AND-ATOMIC-IO -> #1566
done: PTR-TRUNCATION-CENSUS-GUARDS-AND-IO -> #1567
done: RBF0-ENCODE-FAIL-CLOSED-VALIDATION -> #1574
done: PSOCACHE-EXTRACT-GUARDS-AND-IO -> #1575
done: GAMEDATA-INDEX-UTF8-DECL-AND-IO -> #1578
done: VEH-SPAWN-INTENSITIES-AGG-AND-IO -> #1580
done: WAVE64-GRAPHICS-SCAN-CLI-AND-IO -> #1582
done: GEN-D3D12-STUBS-COMMENTS-AND-IO -> #1583
done: WORLD-DRAWABLE-LOOKUP-VALIDATION -> #1584
done: TURING-ATLAS-VALIDATION-AND-ATOMIC-IO -> #1586
done: STALE-BUILD-COMMENTS-BOM-AND-NS-MTIME -> #1588
done: SGD5-EFFECTS-BOUNDARY-VALIDATION -> #1589
done: WAVE-TRACE-VALIDATION-AND-WRITE-CLEANUP -> #1590
done: XCL-COMPARE-GUARDS-AND-ATOMIC-IO -> #1591
done: RPF-PROBE-NONREG-AND-OUT-GUARDS -> #1593
done: MASK-CHANNELS-VALIDATION-AND-ATOMIC-IO -> #1597
done: BVH-GROUPS-GUARDS-AND-IO -> #1599
done: TEX-EXPORT-GUARDS-AND-ATOMIC-LOG -> #1603
done: ROOT-SIG-CONTRACT-CONSOLE-AND-VALIDATION -> #1606
done: SHADER-STATS-VALIDATION-AND-CLI -> #1607
done: CHECK-APT-KEY-PARSING-AND-GUARDS -> #1610
done: PSOCACHE-USERSIG-GUARDS -> #1611
done: DOT-DIFF-SKIPS-AND-CLI -> #1613
done: D16-IMAGE-PROBE-JSON-AND-CLI -> #1614
done: CVT-DIFF-CLI-AND-EMPTY-RUN-GUARDS -> #1615
done: DIV-FIXUP-DIFF-CLI-AND-EMPTY-RUN-GUARDS -> #1616
done: MODE-DIFF-CLI-AND-EMPTY-RUN-GUARDS -> #1617

<!-- gh-comment-id:7154516405 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): Backfilling `done:` entries for PRs opened while #14 was at the 2,500-comment cap (all AI-assisted, synthetic fixtures only, no game data): done: RESTOFWORLD-INDEX-VALIDATION-AND-IO -> #1535 done: SPIRV-INTERFACE-DECORATION-VALIDATION -> #1542 done: CHARACTER-CENSUS-ROW-AND-ATOMIC-IO -> #1543 done: BVH-TRI-PROBE-COMPARE-CHECK-AND-IO -> #1546 done: GAMEDATA-GRAPH-COUNTS-AND-CLI-GUARDS -> #1550 done: HEAP-INDEX-CENSUS-DATAFLOW-AND-IO -> #1551 done: CHARACTER-TEXTURES-CLASSIFICATION-AND-IO -> #1553 done: WORLD-ARCHETYPES-EXTENTS-AND-IO -> #1555 done: GAMEDATA-READER-FILTER-AND-OUT-IO -> #1557 done: CPU-FEATURE-SCAN-CLASSIFY-AND-CLI -> #1560 done: WAVE64-PIPELINE-AUDIT-VALIDATION -> #1563 done: PAGE-INDEX-SUMMARY-AND-ATOMIC-IO -> #1566 done: PTR-TRUNCATION-CENSUS-GUARDS-AND-IO -> #1567 done: RBF0-ENCODE-FAIL-CLOSED-VALIDATION -> #1574 done: PSOCACHE-EXTRACT-GUARDS-AND-IO -> #1575 done: GAMEDATA-INDEX-UTF8-DECL-AND-IO -> #1578 done: VEH-SPAWN-INTENSITIES-AGG-AND-IO -> #1580 done: WAVE64-GRAPHICS-SCAN-CLI-AND-IO -> #1582 done: GEN-D3D12-STUBS-COMMENTS-AND-IO -> #1583 done: WORLD-DRAWABLE-LOOKUP-VALIDATION -> #1584 done: TURING-ATLAS-VALIDATION-AND-ATOMIC-IO -> #1586 done: STALE-BUILD-COMMENTS-BOM-AND-NS-MTIME -> #1588 done: SGD5-EFFECTS-BOUNDARY-VALIDATION -> #1589 done: WAVE-TRACE-VALIDATION-AND-WRITE-CLEANUP -> #1590 done: XCL-COMPARE-GUARDS-AND-ATOMIC-IO -> #1591 done: RPF-PROBE-NONREG-AND-OUT-GUARDS -> #1593 done: MASK-CHANNELS-VALIDATION-AND-ATOMIC-IO -> #1597 done: BVH-GROUPS-GUARDS-AND-IO -> #1599 done: TEX-EXPORT-GUARDS-AND-ATOMIC-LOG -> #1603 done: ROOT-SIG-CONTRACT-CONSOLE-AND-VALIDATION -> #1606 done: SHADER-STATS-VALIDATION-AND-CLI -> #1607 done: CHECK-APT-KEY-PARSING-AND-GUARDS -> #1610 done: PSOCACHE-USERSIG-GUARDS -> #1611 done: DOT-DIFF-SKIPS-AND-CLI -> #1613 done: D16-IMAGE-PROBE-JSON-AND-CLI -> #1614 done: CVT-DIFF-CLI-AND-EMPTY-RUN-GUARDS -> #1615 done: DIV-FIXUP-DIFF-CLI-AND-EMPTY-RUN-GUARDS -> #1616 done: MODE-DIFF-CLI-AND-EMPTY-RUN-GUARDS -> #1617
Author
Owner

@PierreEbele commented on GitHub (Nov 25, 2026):

claiming: TEST-DEVICE-FILTER-TOOLS-WINE - on Linux the vk_device_filter_tools ctest entry of the Windows cross build starts the PE harnesses vk_descriptor_bench.exe and vk_sandbox.exe directly, so it always dies with OSError: [Errno 8] Exec format error and the TEST-1141 LEONIDA_VK_DEVICE refusal is never checked under Wine. Fix in runtime/test/check_device_filter_tools.py (run a PE through the suite's wine, skip with 77 when there is none) plus tests/test_check_device_filter_tools.py. No game files needed. AI-assisted.

<!-- gh-comment-id:7154527221 --> @PierreEbele commented on GitHub (Nov 25, 2026): claiming: TEST-DEVICE-FILTER-TOOLS-WINE - on Linux the `vk_device_filter_tools` ctest entry of the Windows cross build starts the PE harnesses `vk_descriptor_bench.exe` and `vk_sandbox.exe` directly, so it always dies with `OSError: [Errno 8] Exec format error` and the TEST-1141 `LEONIDA_VK_DEVICE` refusal is never checked under Wine. Fix in `runtime/test/check_device_filter_tools.py` (run a PE through the suite's wine, skip with 77 when there is none) plus `tests/test_check_device_filter_tools.py`. No game files needed. AI-assisted.
Author
Owner

@djrolfes commented on GitHub (Nov 25, 2026):

claiming: RT-PROTON-3070TI-VALIDATION (continuation of the existing #14 test/triage claim, https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7139248330). Comparing preserved pre-merge #984 baseline ac7c3449d with clean current main pinned at 42537e7b6, which includes #984, #968 plus CPU-view mapping, #939, and the silent audio endpoint work. Independent RTX 3070 Ti 8 GiB / Linux Wine 11.22 / NVIDIA 620.73.04 validation; not claiming ownership of any existing runtime implementations.

Separate worktree and private generated corpus/profile; rebuilds and synthetic tests precede retail probing. Offline network namespace, package read-only, two CPU threads left free, assertions and the title watchdog enabled, no compute skips/stub pipelines. The earlier title-side bounded-append assertion reproduced 3/3; this comparison will establish whether it remains. Counts/diagnostic classes only; all raw game-derived evidence stays local. Newly isolated fixes will be checked for existing ownership before separate claims. AI-assisted.

<!-- gh-comment-id:7154530601 --> @djrolfes commented on GitHub (Nov 25, 2026): claiming: RT-PROTON-3070TI-VALIDATION (continuation of the existing #14 test/triage claim, https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7139248330). Comparing preserved pre-merge #984 baseline ac7c3449d with clean current main pinned at 42537e7b6, which includes #984, #968 plus CPU-view mapping, #939, and the silent audio endpoint work. Independent RTX 3070 Ti 8 GiB / Linux Wine 11.22 / NVIDIA 620.73.04 validation; not claiming ownership of any existing runtime implementations. Separate worktree and private generated corpus/profile; rebuilds and synthetic tests precede retail probing. Offline network namespace, package read-only, two CPU threads left free, assertions and the title watchdog enabled, no compute skips/stub pipelines. The earlier title-side bounded-append assertion reproduced 3/3; this comparison will establish whether it remains. Counts/diagnostic classes only; all raw game-derived evidence stays local. Newly isolated fixes will be checked for existing ownership before separate claims. AI-assisted.
Author
Owner

@sodove commented on GitHub (Nov 25, 2026):

claiming: RT-BCPACK-TABLES-BUILD-RACE

A native parallel MSBuild ran the BCPack table generator from both the decoder and the history trainer, then failed with a sharing error (MSB8066). I will give the generated include one build target and check clean and incremental Windows builds. Host build only.

AI-assisted (OpenAI Codex).

<!-- gh-comment-id:7154531555 --> @sodove commented on GitHub (Nov 25, 2026): claiming: RT-BCPACK-TABLES-BUILD-RACE A native parallel MSBuild ran the BCPack table generator from both the decoder and the history trainer, then failed with a sharing error (MSB8066). I will give the generated include one build target and check clean and incremental Windows builds. Host build only. AI-assisted (OpenAI Codex).
Author
Owner

@PierreEbele commented on GitHub (Nov 25, 2026):

done: TEST-DEVICE-FILTER-TOOLS-WINE -> #1618

<!-- gh-comment-id:7154532565 --> @PierreEbele commented on GitHub (Nov 25, 2026): done: TEST-DEVICE-FILTER-TOOLS-WINE -> #1618
Author
Owner

@KoLolX3 commented on GitHub (Nov 25, 2026):

claiming: MAKE-GAME-CASE-INSIDE-GUARD — fix the reported case-insensitive filesystem bypass of the --out/--work game-directory guard in make_game.py, including destinations that do not exist yet. Add synthetic tests for case aliases and sibling paths. No game files or GPU needed; AI-assisted.

<!-- gh-comment-id:7154581392 --> @KoLolX3 commented on GitHub (Nov 25, 2026): claiming: MAKE-GAME-CASE-INSIDE-GUARD — fix the reported case-insensitive filesystem bypass of the --out/--work game-directory guard in make_game.py, including destinations that do not exist yet. Add synthetic tests for case aliases and sibling paths. No game files or GPU needed; AI-assisted.
Author
Owner

@ecox982745 commented on GitHub (Nov 25, 2026):

claiming: TEST-INTERP-P2-F16-LLVM-ROUNDTRIP — I will check which single-bit changes to a hand-assembled v_interp_p2_f16 disappear from gfx1013 LLVM disassembly, against the encoding check referenced in #1592. This is a synthetic CPU investigation. The translator implementation claim remains with SHADER-INTERP-P2-F16-OPSEL on #14.

<!-- gh-comment-id:7154608572 --> @ecox982745 commented on GitHub (Nov 25, 2026): claiming: TEST-INTERP-P2-F16-LLVM-ROUNDTRIP — I will check which single-bit changes to a hand-assembled v_interp_p2_f16 disappear from gfx1013 LLVM disassembly, against the encoding check referenced in #1592. This is a synthetic CPU investigation. The translator implementation claim remains with SHADER-INTERP-P2-F16-OPSEL on #14.
Author
Owner

@KoLolX3 commented on GitHub (Nov 25, 2026):

done: MAKE-GAME-CASE-INSIDE-GUARD -> #1627

<!-- gh-comment-id:7154627597 --> @KoLolX3 commented on GitHub (Nov 25, 2026): done: MAKE-GAME-CASE-INSIDE-GUARD -> #1627
Author
Owner

@lixonik commented on GitHub (Nov 25, 2026):

Index of temporary coordination issues opened while #14 could not accept comments. Each entry credits its author and links to the original record and timestamp. For an author-owned claim comment, the original contributor can post it here and link back to the original issue.

  • #1537 (DadaCap), finding: at world start, exhausting the title-memory windows causes the runtime to pass untranslated addresses to the GPU, where a read can cause device loss. Additional observations cover repeated BCPack decompression failures and a separate, intermittent later failure. quartz-heron-58's follow-up reports an earlier device loss when the arena fills on a second machine. Tetn5 asked about taking the fallback fix, and Tyrannys later filed a claim here.
  • #1552 (QemmHD), finding: Windows boot can read physical keystrokes while unfocused and can leave a driver artifact, ucode.elf, in the checkout. The scratch-directory fix is #1609. #1612 addresses first-run focus in the runtime.
  • #1554 (Tetn5), claiming: TEST-D3D12-PUSH-CONST-GUARD and claiming: SHADER-FMAMK-SNAN-CMP-CLASS: check the test guard for 128-byte push constants and investigate the FMA/signaling-NaN comparison mismatch.
  • #1562 (Mike7581), claiming: RT-CRT-QUICK-EXIT-TLS and claiming: RT-COMPAT-DIR-RUNTIME-LOADS. The issue records done for MVP-GPU-04 in #1549. The follow-up comment records done for RT-CRT-QUICK-EXIT-TLS in #1564 and RT-COMPAT-DIR-RUNTIME-LOADS in #1565.
  • #1568 (Tortoche), claiming: OLD-10044: carry forward the intra-block VGPR/SGPR value forwarding work from draft #309.
  • #1570 (Tortoche), claiming: OLD-9879: carry forward the resource-detile copy work from draft #146.
  • #1571 (Tortoche), done for OLD-9794 in #1569. Original #14 claim.
  • #1573 (Tortoche), done for OLD-9875 in #1572. Original #14 claim.
  • #1581 (Tortoche), claiming: OLD-9881: carry forward the subgroup-size range validation from draft #148.
  • #1594 (GTAVIB4GTAVI), claiming: TEST-FMA-DENORM-PRODUCT: add a CPU-only fixture for the denormal FMA product behavior.
  • #1596 (GTAVIB4GTAVI), claiming: DOC-TESTING-FMA-DEDUP: deduplicate the fused multiply-add subsection in docs/testing.md. PR #1595.
  • #1602 (tengotengo), finding: on post-#984 main under Proton, the splash presents and then the run stalls after mapping the 6.09 GiB pool, before D3D12 device creation. The original issue has the run details.
  • #1604 (GTAVIB4GTAVI), claiming: DOC-SHADER-VALIDATION-DEDUP: deduplicate the SHADER-302 and pixel-shader oracle sections in docs/shader_validation.md. PR #1605.
<!-- gh-comment-id:7154627786 --> @lixonik commented on GitHub (Nov 25, 2026): Index of temporary coordination issues opened while #14 could not accept comments. Each entry credits its author and links to the original record and timestamp. For an author-owned claim comment, the original contributor can post it here and link back to the original issue. - #1537 (DadaCap), `finding`: at world start, exhausting the title-memory windows causes the runtime to pass untranslated addresses to the GPU, where a read can cause device loss. [Additional observations](https://github.com/ubiquitarianism/leonida/issues/1537#issuecomment-7152630333) cover repeated BCPack decompression failures and a separate, intermittent later failure. [quartz-heron-58's follow-up](https://github.com/ubiquitarianism/leonida/issues/1537#issuecomment-7152717557) reports an earlier device loss when the arena fills on a second machine. [Tetn5 asked about taking the fallback fix](https://github.com/ubiquitarianism/leonida/issues/1537#issuecomment-7152787755), and [Tyrannys later filed a claim here](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7154369840). - #1552 (QemmHD), `finding`: Windows boot can read physical keystrokes while unfocused and can leave a driver artifact, `ucode.elf`, in the checkout. The scratch-directory fix is #1609. #1612 addresses first-run focus in the runtime. - #1554 (Tetn5), `claiming: TEST-D3D12-PUSH-CONST-GUARD` and `claiming: SHADER-FMAMK-SNAN-CMP-CLASS`: check the test guard for 128-byte push constants and investigate the FMA/signaling-NaN comparison mismatch. - #1562 (Mike7581), `claiming: RT-CRT-QUICK-EXIT-TLS` and `claiming: RT-COMPAT-DIR-RUNTIME-LOADS`. The issue records `done` for `MVP-GPU-04` in #1549. The [follow-up comment](https://github.com/ubiquitarianism/leonida/issues/1562#issuecomment-7153097630) records `done` for `RT-CRT-QUICK-EXIT-TLS` in #1564 and `RT-COMPAT-DIR-RUNTIME-LOADS` in #1565. - #1568 (Tortoche), `claiming: OLD-10044`: carry forward the intra-block VGPR/SGPR value forwarding work from draft #309. - #1570 (Tortoche), `claiming: OLD-9879`: carry forward the resource-detile copy work from draft #146. - #1571 (Tortoche), `done` for `OLD-9794` in #1569. [Original #14 claim](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7147781405). - #1573 (Tortoche), `done` for `OLD-9875` in #1572. [Original #14 claim](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7147714743). - #1581 (Tortoche), `claiming: OLD-9881`: carry forward the subgroup-size range validation from draft #148. - #1594 (GTAVIB4GTAVI), `claiming: TEST-FMA-DENORM-PRODUCT`: add a CPU-only fixture for the denormal FMA product behavior. - #1596 (GTAVIB4GTAVI), `claiming: DOC-TESTING-FMA-DEDUP`: deduplicate the fused multiply-add subsection in `docs/testing.md`. PR #1595. - #1602 (tengotengo), `finding`: on post-#984 main under Proton, the splash presents and then the run stalls after mapping the 6.09 GiB pool, before D3D12 device creation. The original issue has the run details. - #1604 (GTAVIB4GTAVI), `claiming: DOC-SHADER-VALIDATION-DEDUP`: deduplicate the SHADER-302 and pixel-shader oracle sections in `docs/shader_validation.md`. PR #1605.
Author
Owner

@ecox982745 commented on GitHub (Nov 25, 2026):

finding: v_interp_p2_f16 can lose any combination of bits 11–14 of its first dword in the gfx1013 LLVM listing. Four distinct single-bit changes produce identical text and printed bytes. This gives the #1592 investigation a synthetic reproducer and a concrete mask to count.

I tested tools/rdna2spirv.py::check_printed_encodings at #1592 head 817b4be0b with LLVM 23.1.6 on Windows. Starting from v_interp_p2_f16 v2, v1, attr0.x, v2, set bit 14 of the assembled first dword, then disassemble with llvm-mc --disassemble -triple=amdgcn-amd-amdhsa -mcpu=gfx1013 -show-encoding. LLVM prints the original instruction and its original encoding. Passing that listing and the mutated .code through the repository's encoding check reproduces the reported refusal. Bits 11, 12 and 13 individually do the same.

  • I flipped all 64 bits individually across 16 controls (two register/attribute selections, high on/off, clamp on/off, wave32/wave64). Of 1,024 cases, 640 round-tripped exactly, 320 changed opcode or did not decode as one complete instruction, and 64 decoded as the original instruction with a lost bit. All 64 losses were in bits 11–14. The 16 unchanged controls passed.
  • All 15 nonzero combinations within 0x00007800 also disappeared in all 16 controls (240/240). The existing destination-high-half claim concerns one of the candidate bits. The synthetic result alone does not establish the other bits' hardware behavior.

For anyone with the local census, a histogram of raw_first_dword XOR printed_first_dword for this opcode, plus a count with differences in the second dword, would show which cases actually occur. Aggregate counts are enough. That would tell the implementation owner whether the destination-half work covers the observed refusals.

Completes TEST-INTERP-P2-F16-LLVM-ROUNDTRIP. CPU disassembly and translator checks only, using hand-assembled inputs. AI-assisted.

<!-- gh-comment-id:7154650479 --> @ecox982745 commented on GitHub (Nov 25, 2026): finding: `v_interp_p2_f16` can lose any combination of bits 11–14 of its first dword in the gfx1013 LLVM listing. Four distinct single-bit changes produce identical text and printed bytes. This gives the #1592 investigation a synthetic reproducer and a concrete mask to count. I tested `tools/rdna2spirv.py::check_printed_encodings` at #1592 head `817b4be0b` with LLVM 23.1.6 on Windows. Starting from `v_interp_p2_f16 v2, v1, attr0.x, v2`, set bit 14 of the assembled first dword, then disassemble with `llvm-mc --disassemble -triple=amdgcn-amd-amdhsa -mcpu=gfx1013 -show-encoding`. LLVM prints the original instruction and its original encoding. Passing that listing and the mutated `.code` through the repository's encoding check reproduces the reported refusal. Bits 11, 12 and 13 individually do the same. - I flipped all 64 bits individually across 16 controls (two register/attribute selections, `high` on/off, `clamp` on/off, wave32/wave64). Of 1,024 cases, 640 round-tripped exactly, 320 changed opcode or did not decode as one complete instruction, and 64 decoded as the original instruction with a lost bit. All 64 losses were in bits 11–14. The 16 unchanged controls passed. - All 15 nonzero combinations within `0x00007800` also disappeared in all 16 controls (240/240). The existing [destination-high-half claim](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7142482665) concerns one of the candidate bits. The synthetic result alone does not establish the other bits' hardware behavior. For anyone with the local census, a histogram of `raw_first_dword XOR printed_first_dword` for this opcode, plus a count with differences in the second dword, would show which cases actually occur. Aggregate counts are enough. That would tell the implementation owner whether the destination-half work covers the observed refusals. Completes [TEST-INTERP-P2-F16-LLVM-ROUNDTRIP](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7154608572). CPU disassembly and translator checks only, using hand-assembled inputs. AI-assisted.
Author
Owner

@sodove commented on GitHub (Nov 25, 2026):

done: RT-BCPACK-TABLES-BUILD-RACE -> #1628

On native Windows x64 the clean parallel Visual Studio build now runs the generator once, and the incremental build runs it zero times. Ninja regenerates once and recompiles both consumers after an input changes. CPU-only verification with repository and synthetic inputs.

AI-assisted (OpenAI Codex).

<!-- gh-comment-id:7154652716 --> @sodove commented on GitHub (Nov 25, 2026): done: RT-BCPACK-TABLES-BUILD-RACE -> #1628 On native Windows x64 the clean parallel Visual Studio build now runs the generator once, and the incremental build runs it zero times. Ninja regenerates once and recompiles both consumers after an input changes. CPU-only verification with repository and synthetic inputs. AI-assisted (OpenAI Codex).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: SHADER-GETPC-DESTINATIONS - follow-up to the s_getpc_b64 destination item in https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7154337920 (tools/rdna2spirv.py:10438). Support vcc, 2-slot slist (e.g. [s105,vcc_lo]), and null destinations on s_getpc_b64 (plus vcc base in global_address and fold_far_branches, wave32 code_w64 exclusion for s_getpc_b64/s_setpc_b64, wave32 vcc_hi invalidation in tools/lane_masks.py, raw-VCC tracking in tools/wave64_emulate_opt.py, docs/design.md contract note, and synthetic semantic tests).

<!-- gh-comment-id:7154724734 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: SHADER-GETPC-DESTINATIONS - follow-up to the `s_getpc_b64` destination item in https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7154337920 (`tools/rdna2spirv.py:10438`). Support `vcc`, 2-slot `slist` (e.g. `[s105,vcc_lo]`), and `null` destinations on `s_getpc_b64` (plus `vcc` base in `global_address` and `fold_far_branches`, wave32 `code_w64` exclusion for `s_getpc_b64`/`s_setpc_b64`, wave32 `vcc_hi` invalidation in `tools/lane_masks.py`, raw-VCC tracking in `tools/wave64_emulate_opt.py`, `docs/design.md` contract note, and synthetic semantic tests).
Author
Owner

@Tyrannys commented on GitHub (Nov 25, 2026):

done: RT-TITLE-WINDOW-OVERFLOW -> #1631

<!-- gh-comment-id:7154727748 --> @Tyrannys commented on GitHub (Nov 25, 2026): done: RT-TITLE-WINDOW-OVERFLOW -> #1631
Author
Owner

@QemmHD commented on GitHub (Nov 25, 2026):

Carried over from #14, which hit its comment limit:

claiming: RT-D16S8-UAV-NVIDIA-FALLBACK (first claimed on #939, comment 7152724709)
done: RT-D16S8-UAV-NVIDIA-FALLBACK -> #1558. It's confirmed on a real boot exactly as committed, as posted on #1558.

finding: on NVIDIA, the first group of compute dispatches at world start still reads unmapped GPU memory on main c7e82e26e, which includes #1064 and #1232. The result is VK_ERROR_DEVICE_LOST, with a device-fault report of READ_INVALID (4 KiB precision) on the compute queue. The checkpoints put it on a single list of 13 pipeline-library compute dispatches, and skipping the first program only moves the fault to the next one, so it's their inputs, not one program. Seen in 3 of 3 runs on two trees (Windows 11, RTX 4070 SUPER, NVIDIA 621.24). I'm narrowing it down now with main's compute-input probe (LEONIDA_COMPUTE_INPUTS, LEONIDA_COMPUTE_INPUT_SLOTS, LEONIDA_DEVICE_FAULT_ROOTS=1) and will post which descriptor or buffer has no readable backing.

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

<!-- gh-comment-id:7154729632 --> @QemmHD commented on GitHub (Nov 25, 2026): Carried over from #14, which hit its comment limit: claiming: RT-D16S8-UAV-NVIDIA-FALLBACK (first claimed on #939, comment 7152724709) done: RT-D16S8-UAV-NVIDIA-FALLBACK -> #1558. It's confirmed on a real boot exactly as committed, as posted on #1558. finding: on NVIDIA, the first group of compute dispatches at world start still reads unmapped GPU memory on main c7e82e26e, which includes #1064 and #1232. The result is VK_ERROR_DEVICE_LOST, with a device-fault report of READ_INVALID (4 KiB precision) on the compute queue. The checkpoints put it on a single list of 13 pipeline-library compute dispatches, and skipping the first program only moves the fault to the next one, so it's their inputs, not one program. Seen in 3 of 3 runs on two trees (Windows 11, RTX 4070 SUPER, NVIDIA 621.24). I'm narrowing it down now with main's compute-input probe (`LEONIDA_COMPUTE_INPUTS`, `LEONIDA_COMPUTE_INPUT_SLOTS`, `LEONIDA_DEVICE_FAULT_ROOTS=1`) and will post which descriptor or buffer has no readable backing. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@djrolfes commented on GitHub (Nov 25, 2026):

finding: XMem read-only fault checks remain red under Wine 11.22 on both the preserved #984 tree and post-merge main; not a new merge regression.

RT-PROTON-3070TI-VALIDATION, clang-cl/xwin builds, isolated CPU-only synthetic tests with no game mount. At ac7c3449d, all three variants (xmem, xmem_no_write_watch, xmem_write_watch) fail six checks each. At pinned main 42537e7b6, all three fail the same remaining three checks: touched-page commit accounting, a write to an already-committed read-only 64 KiB page reaching the next handler, and a write to a read-only 4 KiB subrange reaching the next handler. Native full suite here is 82 pass / 2 skip / one 120-second BVH timeout being rerun with a larger bound; targeted Wine subset is 40/43 pass.

Where: runtime/test/xmem_test.cpp:747-769; runtime/shims/xmem.cpp:748-766 uses VirtualQuery on the view to distinguish first-touch commitment before physical_page_fault retries. Existing #983 records Wine reporting SEC_RESERVE views as MEM_RESERVE even after writes; #1316 already owns replacing system-wide commit-charge checks, and #417 has neighbouring window work. I have not established whether the two protection failures are entirely Wine host behaviour or the fault handler recommitting a page after a misleading query. They should not be waved through as harmless just because they predate the merge. A native SEC_RESERVE/alias control on Wine is the useful next reduction. No GPU or game files are needed. No duplicate implementation claimed. AI-assisted.

<!-- gh-comment-id:7154774965 --> @djrolfes commented on GitHub (Nov 25, 2026): finding: XMem read-only fault checks remain red under Wine 11.22 on both the preserved #984 tree and post-merge main; not a new merge regression. RT-PROTON-3070TI-VALIDATION, clang-cl/xwin builds, isolated CPU-only synthetic tests with no game mount. At ac7c3449d, all three variants (xmem, xmem_no_write_watch, xmem_write_watch) fail six checks each. At pinned main 42537e7b6, all three fail the same remaining three checks: touched-page commit accounting, a write to an already-committed read-only 64 KiB page reaching the next handler, and a write to a read-only 4 KiB subrange reaching the next handler. Native full suite here is 82 pass / 2 skip / one 120-second BVH timeout being rerun with a larger bound; targeted Wine subset is 40/43 pass. Where: runtime/test/xmem_test.cpp:747-769; runtime/shims/xmem.cpp:748-766 uses VirtualQuery on the view to distinguish first-touch commitment before physical_page_fault retries. Existing #983 records Wine reporting SEC_RESERVE views as MEM_RESERVE even after writes; #1316 already owns replacing system-wide commit-charge checks, and #417 has neighbouring window work. I have not established whether the two protection failures are entirely Wine host behaviour or the fault handler recommitting a page after a misleading query. They should not be waved through as harmless just because they predate the merge. A native SEC_RESERVE/alias control on Wine is the useful next reduction. No GPU or game files are needed. No duplicate implementation claimed. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: SHADER-GETPC-DESTINATIONS -> #1632

<!-- gh-comment-id:7154882342 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: SHADER-GETPC-DESTINATIONS -> #1632
Author
Owner

@KoLolX3 commented on GitHub (Nov 25, 2026):

claiming: WORLD-BUILD-CASE-LOCK — address the reported case and Unicode spelling aliases taking separate world_build output locks on case-insensitive volumes. Use a conservative normalized lock key and test serialization without game data or a GPU. AI-assisted.

<!-- gh-comment-id:7154885515 --> @KoLolX3 commented on GitHub (Nov 25, 2026): claiming: WORLD-BUILD-CASE-LOCK — address the reported case and Unicode spelling aliases taking separate world_build output locks on case-insensitive volumes. Use a conservative normalized lock key and test serialization without game data or a GPU. AI-assisted.
Author
Owner

@QemmHD commented on GitHub (Nov 25, 2026):

finding: past the #1537 title-window cap (with LEONIDA_TITLE_WINDOWS_MB=1024) and the FSPX gap (#1495), the next stop on NVIDIA is a device loss with WRITE_INVALID (VK_EXT_device_fault type 2, 4 KiB precision) about 160 s into the load. NVIDIA checkpoints: compute queue, command 46 of a list of about 490 commands, a dispatch of pipeline-library compute program lib_cs_00928; three other compute queues were inside dispatches of lib_cs_01468 at the same time. The windows were not exhausted (820 of 1024 MiB, 8,192 windows). That fits a write through an address that names title memory: a title-window copy is a read-only mirror refreshed before each submission, so a UAV or raw write there has nowhere to land, which matches the "open wall" Plaaasma described on #984. After the loss, 40 ExecuteCommandLists, 41 Signal and 2 PresentX were refused. Peak 20.0 GB private and 10.7 of 12 GB VRAM. (Windows 11, RTX 4070 SUPER, NVIDIA 621.24, main c7e82e26e + #1558.) I'm checking whether skipping that one program moves the stop or ends it.

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

<!-- gh-comment-id:7154898837 --> @QemmHD commented on GitHub (Nov 25, 2026): finding: past the #1537 title-window cap (with `LEONIDA_TITLE_WINDOWS_MB=1024`) and the FSPX gap (#1495), the next stop on NVIDIA is a device loss with **WRITE_INVALID** (VK_EXT_device_fault type 2, 4 KiB precision) about 160 s into the load. NVIDIA checkpoints: compute queue, command 46 of a list of about 490 commands, a dispatch of pipeline-library compute program lib_cs_00928; three other compute queues were inside dispatches of lib_cs_01468 at the same time. The windows were not exhausted (820 of 1024 MiB, 8,192 windows). That fits a write through an address that names title memory: a title-window copy is a read-only mirror refreshed before each submission, so a UAV or raw write there has nowhere to land, which matches the "open wall" Plaaasma described on #984. After the loss, 40 ExecuteCommandLists, 41 Signal and 2 PresentX were refused. Peak 20.0 GB private and 10.7 of 12 GB VRAM. (Windows 11, RTX 4070 SUPER, NVIDIA 621.24, main c7e82e26e + #1558.) I'm checking whether skipping that one program moves the stop or ends it. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: BUFFER-SWIZZLE-PROBE-JSON-AND-CLI - harden tools/buffer_swizzle_probe.py CLI and JSON reporting: validate --json upfront before running translator/GPU sweeps (reject empty/whitespace paths, directories, trailing separators, non-directory parent blockers, unwritable paths), write JSON atomically with published_mode + replace_retry.replace (preserving symlinks, /dev/null direct write, allow_nan=False), reject empty --group / --hw-arch, and enforce wave32/64 parity in --oracle translator mode.

<!-- gh-comment-id:7154914906 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: BUFFER-SWIZZLE-PROBE-JSON-AND-CLI - harden `tools/buffer_swizzle_probe.py` CLI and JSON reporting: validate `--json` upfront before running translator/GPU sweeps (reject empty/whitespace paths, directories, trailing separators, non-directory parent blockers, unwritable paths), write JSON atomically with `published_mode` + `replace_retry.replace` (preserving symlinks, `/dev/null` direct write, `allow_nan=False`), reject empty `--group` / `--hw-arch`, and enforce wave32/64 parity in `--oracle translator` mode.
Author
Owner

@KoLolX3 commented on GitHub (Nov 25, 2026):

done: WORLD-BUILD-CASE-LOCK -> #1633

<!-- gh-comment-id:7154933211 --> @KoLolX3 commented on GitHub (Nov 25, 2026): done: WORLD-BUILD-CASE-LOCK -> #1633
Author
Owner

@KoLolX3 commented on GitHub (Nov 25, 2026):

claiming: BINK-NAMES-UNLISTABLE-CASE — fix the reported --out containment check for an unlistable input folder when its spelling differs by case or Unicode normalization on a folding filesystem. Use the existing shared report path comparison for ancestor checks, with synthetic tests; no game files or GPU. AI-assisted.

<!-- gh-comment-id:7154940396 --> @KoLolX3 commented on GitHub (Nov 25, 2026): claiming: BINK-NAMES-UNLISTABLE-CASE — fix the reported --out containment check for an unlistable input folder when its spelling differs by case or Unicode normalization on a folding filesystem. Use the existing shared report path comparison for ancestor checks, with synthetic tests; no game files or GPU. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: BUFFER-SWIZZLE-PROBE-JSON-AND-CLI -> #1634

<!-- gh-comment-id:7154963874 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: BUFFER-SWIZZLE-PROBE-JSON-AND-CLI -> #1634
Author
Owner

@PierreEbele commented on GitHub (Nov 25, 2026):

releasing: TEST-DEVICE-FILTER-TOOLS-WINE - duplicate of VK-DEVICE-FILTER-WINE (#1219, robot00f), claimed earlier in #14; #1618 closed, #1219 tested under Wine.

<!-- gh-comment-id:7154970882 --> @PierreEbele commented on GitHub (Nov 25, 2026): releasing: TEST-DEVICE-FILTER-TOOLS-WINE - duplicate of VK-DEVICE-FILTER-WINE (#1219, robot00f), claimed earlier in #14; #1618 closed, #1219 tested under Wine.
Author
Owner

@KoLolX3 commented on GitHub (Nov 25, 2026):

done: BINK-NAMES-UNLISTABLE-CASE -> #1635

<!-- gh-comment-id:7154990507 --> @KoLolX3 commented on GitHub (Nov 25, 2026): done: BINK-NAMES-UNLISTABLE-CASE -> #1635
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: DRAW-OWNERSHIP-BOUNDS-AND-HEXDUMP - harden tools/draw_ownership.py: enforce PTR_BASE..GRAPHICS_BASE upper bound in _system_pointer() and reverse_pointers() and 0x60000000..0x70000000 range for graphics pointers in geometry_shape_check(), stop _hexdump() at EOF instead of emitting empty rows past the segment, reject bool/non-int offsets cleanly, and guard out-of-range caller-supplied index entries in classify_parent().

<!-- gh-comment-id:7154992847 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: DRAW-OWNERSHIP-BOUNDS-AND-HEXDUMP - harden `tools/draw_ownership.py`: enforce `PTR_BASE..GRAPHICS_BASE` upper bound in `_system_pointer()` and `reverse_pointers()` and `0x60000000..0x70000000` range for graphics pointers in `geometry_shape_check()`, stop `_hexdump()` at EOF instead of emitting empty rows past the segment, reject `bool`/non-int offsets cleanly, and guard out-of-range caller-supplied index entries in `classify_parent()`.
Author
Owner

@KoLolX3 commented on GitHub (Nov 25, 2026):

claiming: VERIFY-MANIFEST-WALK-CASE — fix the reported manifest_verifier scan exclusion when the manifest or cache directory is spelled with different case on a case-insensitive volume. Preserve distinct hard-linked input names and test synthetic filesystem aliases. No game files or GPU. AI-assisted.

<!-- gh-comment-id:7154998081 --> @KoLolX3 commented on GitHub (Nov 25, 2026): claiming: VERIFY-MANIFEST-WALK-CASE — fix the reported manifest_verifier scan exclusion when the manifest or cache directory is spelled with different case on a case-insensitive volume. Preserve distinct hard-linked input names and test synthetic filesystem aliases. No game files or GPU. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: DRAW-OWNERSHIP-BOUNDS-AND-HEXDUMP -> #1636

<!-- gh-comment-id:7155027522 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: DRAW-OWNERSHIP-BOUNDS-AND-HEXDUMP -> #1636
Author
Owner

@Snooozs commented on GitHub (Nov 25, 2026):

Second machine for the order of world-start stops (#1537 and the WRITE_INVALID finding above), numbers only. Windows 10 Pro 19045, Ryzen 7 7700, 32 GB RAM, RTX 5060 Ti 16 GB (NVIDIA 621.01), own 1.0.2.1 copy, scripts/windows-boot/boot.ps1, LEONIDA_TITLE_WATCHDOG=0. Build: main 42537e7b6 + #1558 + #1547, shaders from that tree (llvm-mc 23.1.6, 2,683 library programs, --wave64-emulate), first run already completed in the overlay. One run each.

run what differs end
1 27 of 29 FSPX programs (see #1317) 152 s, 0xc0000005 in amd_fidelityfx_upscaler_xbox.dll+0x65ff; story load from 80 s
2 29 of 29 208 s, device lost; fault report type 1 (read) + type 6; 597 title windows, 291 MB
3 + LEONIDA_TITLE_WINDOWS_MB=2048 LEONIDA_ARENA_MB=4096 280 s, device lost; fault report type 2 (write) + type 6; 8,804 title windows, 1.2 GB; peak system commit 57.7 GB, free RAM down to 2.2 GB

So the FSPX gap, the window cap and then the invalid write come in the same order on a 32 GB Windows 10 machine. Runs 2 and 3 each end with a display driver reset (System event 4101). I have not looked at which dispatch makes the write.

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

<!-- gh-comment-id:7155035622 --> @Snooozs commented on GitHub (Nov 25, 2026): Second machine for the order of world-start stops (#1537 and the WRITE_INVALID finding above), numbers only. Windows 10 Pro 19045, Ryzen 7 7700, 32 GB RAM, RTX 5060 Ti 16 GB (NVIDIA 621.01), own 1.0.2.1 copy, `scripts/windows-boot/boot.ps1`, `LEONIDA_TITLE_WATCHDOG=0`. Build: `main` `42537e7b6` + #1558 + #1547, shaders from that tree (`llvm-mc` 23.1.6, 2,683 library programs, `--wave64-emulate`), first run already completed in the overlay. One run each. | run | what differs | end | |---|---|---| | 1 | 27 of 29 FSPX programs (see #1317) | 152 s, `0xc0000005` in `amd_fidelityfx_upscaler_xbox.dll+0x65ff`; story load from 80 s | | 2 | 29 of 29 | 208 s, device lost; fault report type 1 (read) + type 6; 597 title windows, 291 MB | | 3 | + `LEONIDA_TITLE_WINDOWS_MB=2048 LEONIDA_ARENA_MB=4096` | 280 s, device lost; fault report **type 2 (write)** + type 6; 8,804 title windows, 1.2 GB; peak system commit 57.7 GB, free RAM down to 2.2 GB | So the FSPX gap, the window cap and then the invalid write come in the same order on a 32 GB Windows 10 machine. Runs 2 and 3 each end with a display driver reset (System event 4101). I have not looked at which dispatch makes the write. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: CVT-NORM-MODS-PROBE-JSON-AND-GUARDS - harden tools/cvt_norm_mods_probe.py: upfront --json validation (reject empty/whitespace, trailing sep, directory, non-directory parent blockers, unwritable existing files before opening GPU oracle), atomic write_json_report() (published_mode, replace_retry.replace, symlink preservation, /dev/null, allow_nan=False), reject empty --hw-arch, catch RuntimeError from oracle.run() cleanly (exit 2), and flag len(raw_results) != len(meta) in evaluate_results().

<!-- gh-comment-id:7155043403 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: CVT-NORM-MODS-PROBE-JSON-AND-GUARDS - harden `tools/cvt_norm_mods_probe.py`: upfront `--json` validation (reject empty/whitespace, trailing sep, directory, non-directory parent blockers, unwritable existing files before opening GPU oracle), atomic `write_json_report()` (`published_mode`, `replace_retry.replace`, symlink preservation, `/dev/null`, `allow_nan=False`), reject empty `--hw-arch`, catch `RuntimeError` from `oracle.run()` cleanly (exit 2), and flag `len(raw_results) != len(meta)` in `evaluate_results()`.
Author
Owner

@KoLolX3 commented on GitHub (Nov 25, 2026):

done: VERIFY-MANIFEST-WALK-CASE -> #1637

<!-- gh-comment-id:7155049632 --> @KoLolX3 commented on GitHub (Nov 25, 2026): done: VERIFY-MANIFEST-WALK-CASE -> #1637
Author
Owner

@Snooozs commented on GitHub (Nov 25, 2026):

released: OLD-7718 - #990 is closed; #1353 makes d3d12_set_descriptor_heaps_test pass on Windows 10 without it. #988 (OLD-4731) stays open: root_signature_oracle_test still fails there on main 42537e7b6. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7155056578 --> @Snooozs commented on GitHub (Nov 25, 2026): released: OLD-7718 - #990 is closed; #1353 makes `d3d12_set_descriptor_heaps_test` pass on Windows 10 without it. #988 (OLD-4731) stays open: `root_signature_oracle_test` still fails there on `main` `42537e7b6`. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: CVT-NORM-MODS-PROBE-JSON-AND-GUARDS -> #1638

<!-- gh-comment-id:7155077094 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: CVT-NORM-MODS-PROBE-JSON-AND-GUARDS -> #1638
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: CVT-F16-OMOD-PROBE-JSON-AND-CLI - harden tools/cvt_f16_omod_probe.py: reject empty tokens and deduplicate --modes/--waves, reject empty --hw-arch, validate --json upfront before opening GPU oracle (empty/whitespace/trailing-sep/dir/parent blocker/unwritable file), make write_report() atomic with published_mode + replace_retry.replace + symlink preservation + /dev/null + allow_nan=False, guard len(raw_results) != len(meta) in evaluate_results(), and catch ValueError from asm.family() (exit 77).

<!-- gh-comment-id:7155090450 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: CVT-F16-OMOD-PROBE-JSON-AND-CLI - harden `tools/cvt_f16_omod_probe.py`: reject empty tokens and deduplicate `--modes`/`--waves`, reject empty `--hw-arch`, validate `--json` upfront before opening GPU oracle (empty/whitespace/trailing-sep/dir/parent blocker/unwritable file), make `write_report()` atomic with `published_mode` + `replace_retry.replace` + symlink preservation + `/dev/null` + `allow_nan=False`, guard `len(raw_results) != len(meta)` in `evaluate_results()`, and catch `ValueError` from `asm.family()` (exit 77).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: CVT-F16-OMOD-PROBE-JSON-AND-CLI -> #1639

<!-- gh-comment-id:7155115628 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: CVT-F16-OMOD-PROBE-JSON-AND-CLI -> #1639
Author
Owner

@OreoFR commented on GitHub (Nov 25, 2026):

claiming: SHADER-VOPCX-DPP - follow-up to the DPP on v_cmpx item in https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7154337920 (tools/rdna2spirv.py:7321 on c7e82e26e), extending the VOPC DPP support from #957 to v_cmpx. On gfx10, v_cmpx writes its result to EXEC (not VCC). I'll take only the forms in which every lane writes its bit (row_mask:0xf, bank_mask:0xf, and bound_ctrl:1 or DPP8), as #957 does for v_cmp, and add a docs/design.md note and synthetic semantic tests.

Measured on the #1592 census, 1.0.2.1, --wave64-emulate: this refusal accounts for 78 of the 344 programs, all pixel shaders. Every one of the 113 instructions has the same form, v_cmpx_gt_f32_dpp vN, -vM quad_perm:[2,3,0,1] row_mask:0xf bank_mask:0xf bound_ctrl:1 fi:1. The other refusals there are v_interp_p2_f16 (242), s_getpc_b64 (18, #1632) and a missing container (6).

<!-- gh-comment-id:7155122672 --> @OreoFR commented on GitHub (Nov 25, 2026): claiming: SHADER-VOPCX-DPP - follow-up to the `DPP on v_cmpx` item in https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7154337920 (`tools/rdna2spirv.py:7321` on `c7e82e26e`), extending the VOPC DPP support from #957 to `v_cmpx`. On gfx10, `v_cmpx` writes its result to EXEC (not VCC). I'll take only the forms in which every lane writes its bit (`row_mask:0xf`, `bank_mask:0xf`, and `bound_ctrl:1` or DPP8), as #957 does for `v_cmp`, and add a `docs/design.md` note and synthetic semantic tests. Measured on the #1592 census, 1.0.2.1, `--wave64-emulate`: this refusal accounts for 78 of the 344 programs, all pixel shaders. Every one of the 113 instructions has the same form, `v_cmpx_gt_f32_dpp vN, -vM quad_perm:[2,3,0,1] row_mask:0xf bank_mask:0xf bound_ctrl:1 fi:1`. The other refusals there are `v_interp_p2_f16` (242), `s_getpc_b64` (18, #1632) and a missing container (6).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: CVT-PKNORM-F16-PROBE-JSON-AND-CLI - harden tools/cvt_pknorm_f16_probe.py: reject empty comma tokens and deduplicate --ops/--waves, reject empty --hw-arch, validate --json upfront before opening GPU oracle (empty/whitespace/trailing-sep/dir/parent blocker/unwritable file), make write_report() atomic with published_mode + replace_retry.replace + symlink preservation + /dev/null + allow_nan=False, guard len(raw_results) != len(meta) in evaluate_results(), and catch ValueError from asm.family() (exit 77).

<!-- gh-comment-id:7155141667 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: CVT-PKNORM-F16-PROBE-JSON-AND-CLI - harden `tools/cvt_pknorm_f16_probe.py`: reject empty comma tokens and deduplicate `--ops`/`--waves`, reject empty `--hw-arch`, validate `--json` upfront before opening GPU oracle (empty/whitespace/trailing-sep/dir/parent blocker/unwritable file), make `write_report()` atomic with `published_mode` + `replace_retry.replace` + symlink preservation + `/dev/null` + `allow_nan=False`, guard `len(raw_results) != len(meta)` in `evaluate_results()`, and catch `ValueError` from `asm.family()` (exit 77).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: CVT-PKNORM-F16-PROBE-JSON-AND-CLI -> #1640

<!-- gh-comment-id:7155169098 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: CVT-PKNORM-F16-PROBE-JSON-AND-CLI -> #1640
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: PK-INT16-CLAMP-PROBE-JSON-AND-CLI - harden tools/pk_int16_clamp_probe.py: reject empty comma tokens and deduplicate --ops/--waves, reject empty --hw-arch, validate --json upfront before opening GPU oracle (empty/whitespace/trailing-sep/dir/parent blocker/unwritable file), make write_report() atomic with published_mode + replace_retry.replace + symlink preservation + /dev/null + allow_nan=False, guard len(raw_results) != len(meta) in evaluate_results(), and catch ValueError from asm.family() (exit 77).

<!-- gh-comment-id:7155187060 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: PK-INT16-CLAMP-PROBE-JSON-AND-CLI - harden `tools/pk_int16_clamp_probe.py`: reject empty comma tokens and deduplicate `--ops`/`--waves`, reject empty `--hw-arch`, validate `--json` upfront before opening GPU oracle (empty/whitespace/trailing-sep/dir/parent blocker/unwritable file), make `write_report()` atomic with `published_mode` + `replace_retry.replace` + symlink preservation + `/dev/null` + `allow_nan=False`, guard `len(raw_results) != len(meta)` in `evaluate_results()`, and catch `ValueError` from `asm.family()` (exit 77).
Author
Owner

@slauko commented on GitHub (Nov 25, 2026):

claiming: CI-RUNTIME-SDL3-ARTIFACT — continued from #14. Okachamie released the item there (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7145945687) because the same change already exists as slauko/leonida@149adbdb9; I am taking it forward as a one-line PR against current main. -DLEONIDA_SDL3_FETCH=ON in the Windows Runtime configure puts the GameInput shim (pinned SDL3 3.4.20) into every runtime-windows artifact. Without it, a Wine --run stops at the title's GameInputCreate assert (0 D3D12 calls); with it, the pad is served and the boot proceeds (measured on the fork: RTX 3080 Ti, NVIDIA 595.112.07, Wine 11.17, retail 1.0.2.1). Build needs no game files; the boot check uses the retail package. AI-assisted.

<!-- gh-comment-id:7155187166 --> @slauko commented on GitHub (Nov 25, 2026): claiming: CI-RUNTIME-SDL3-ARTIFACT — continued from #14. Okachamie released the item there (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7145945687) because the same change already exists as `slauko/leonida@149adbdb9`; I am taking it forward as a one-line PR against current `main`. `-DLEONIDA_SDL3_FETCH=ON` in the Windows Runtime configure puts the GameInput shim (pinned SDL3 3.4.20) into every `runtime-windows` artifact. Without it, a Wine `--run` stops at the title's `GameInputCreate` assert (0 D3D12 calls); with it, the pad is served and the boot proceeds (measured on the fork: RTX 3080 Ti, NVIDIA 595.112.07, Wine 11.17, retail 1.0.2.1). Build needs no game files; the boot check uses the retail package. AI-assisted.
Author
Owner

@slauko commented on GitHub (Nov 25, 2026):

done: CI-RUNTIME-SDL3-ARTIFACT -> #1641

<!-- gh-comment-id:7155193173 --> @slauko commented on GitHub (Nov 25, 2026): done: CI-RUNTIME-SDL3-ARTIFACT -> #1641
Author
Owner

@sodove commented on GitHub (Nov 25, 2026):

claiming: WIN-BOOT-FAULT-DIGEST

The Windows boot digest currently keeps the first eight device-fault lines verbatim. This can hide a later READ_INVALID or WRITE_INVALID behind routine telemetry and can copy private metadata into the digest. I will summarize the full log by Vulkan fault class and device-loss status, with synthetic offline digest tests. This covers reporting only. Related observations: #1537 and #1631.

AI-assisted (OpenAI Codex).

<!-- gh-comment-id:7155213247 --> @sodove commented on GitHub (Nov 25, 2026): claiming: WIN-BOOT-FAULT-DIGEST The Windows boot digest currently keeps the first eight device-fault lines verbatim. This can hide a later READ_INVALID or WRITE_INVALID behind routine telemetry and can copy private metadata into the digest. I will summarize the full log by Vulkan fault class and device-loss status, with synthetic offline digest tests. This covers reporting only. Related observations: #1537 and #1631. AI-assisted (OpenAI Codex).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: PK-INT16-CLAMP-PROBE-JSON-AND-CLI -> #1642

<!-- gh-comment-id:7155215962 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: PK-INT16-CLAMP-PROBE-JSON-AND-CLI -> #1642
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: FREXP-LDEXP-F16-MODS-PROBE-JSON-AND-CLI - harden tools/frexp_ldexp_f16_mods_probe.py: reject empty comma tokens in --ops/--waves, reject empty --hw-arch, validate --json upfront before opening GPU oracle (empty/whitespace/trailing-sep/dir/parent blocker/unwritable file), make write_report() atomic with published_mode + replace_retry.replace + symlink preservation + /dev/null + allow_nan=False, guard len(raw_results) != len(meta) in evaluate_results(), and catch ValueError from asm.family() (exit 77).

<!-- gh-comment-id:7155228780 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: FREXP-LDEXP-F16-MODS-PROBE-JSON-AND-CLI - harden `tools/frexp_ldexp_f16_mods_probe.py`: reject empty comma tokens in `--ops`/`--waves`, reject empty `--hw-arch`, validate `--json` upfront before opening GPU oracle (empty/whitespace/trailing-sep/dir/parent blocker/unwritable file), make `write_report()` atomic with `published_mode` + `replace_retry.replace` + symlink preservation + `/dev/null` + `allow_nan=False`, guard `len(raw_results) != len(meta)` in `evaluate_results()`, and catch `ValueError` from `asm.family()` (exit 77).
Author
Owner

@Andretuta commented on GitHub (Nov 25, 2026):

claiming: DOC-README-BOOT-STATUS: README "Project status" paragraph and rows (first status row, PE loader, Linux platform row) for the boot through the story load that #321, #939 and #984 put on main. Overlaps the status part of #627; its dead-link fixes stay with #627.

<!-- gh-comment-id:7155237222 --> @Andretuta commented on GitHub (Nov 25, 2026): claiming: DOC-README-BOOT-STATUS: README "Project status" paragraph and rows (first status row, PE loader, Linux platform row) for the boot through the story load that #321, #939 and #984 put on `main`. Overlaps the status part of #627; its dead-link fixes stay with #627.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: FREXP-LDEXP-F16-MODS-PROBE-JSON-AND-CLI -> #1644

<!-- gh-comment-id:7155255030 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: FREXP-LDEXP-F16-MODS-PROBE-JSON-AND-CLI -> #1644
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: IMAGE-D16-PROBE-JSON-AND-CLI - harden tools/image_d16_probe.py: reject empty comma tokens and deduplicate --dims/--formats, reject empty --hw-arch, resolve symlinks and check existing unwritable targets in validate_json_path(), make write_json_report() atomic with published_mode + replace_retry.replace + trailing LF + allow_nan=False + /dev/null support, guard oracle.run() result count and word length mismatches (exit 2), and catch ValueError from asm.family() (exit 77).

<!-- gh-comment-id:7155269092 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: IMAGE-D16-PROBE-JSON-AND-CLI - harden `tools/image_d16_probe.py`: reject empty comma tokens and deduplicate `--dims`/`--formats`, reject empty `--hw-arch`, resolve symlinks and check existing unwritable targets in `validate_json_path()`, make `write_json_report()` atomic with `published_mode` + `replace_retry.replace` + trailing LF + `allow_nan=False` + `/dev/null` support, guard `oracle.run()` result count and word length mismatches (exit 2), and catch `ValueError` from `asm.family()` (exit 77).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: IMAGE-D16-PROBE-JSON-AND-CLI -> #1645

<!-- gh-comment-id:7155301731 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: IMAGE-D16-PROBE-JSON-AND-CLI -> #1645
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: F16-TRANS-SWEEP-JSON-AND-GUARDS - harden tools/f16_trans_sweep.py: reject empty/trailing comma tokens and deduplicate --ops/--modes/--waves, reject empty --hw-arch, resolve symlinks and check existing unwritable targets in validate_json_path(), make write_json_report() atomic with published_mode + replace_retry.replace + trailing LF + allow_nan=False + /dev/null, and guard kernel result counts and empty probe results in check_modes() and sweep().

<!-- gh-comment-id:7155318176 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: F16-TRANS-SWEEP-JSON-AND-GUARDS - harden `tools/f16_trans_sweep.py`: reject empty/trailing comma tokens and deduplicate `--ops`/`--modes`/`--waves`, reject empty `--hw-arch`, resolve symlinks and check existing unwritable targets in `validate_json_path()`, make `write_json_report()` atomic with `published_mode` + `replace_retry.replace` + trailing LF + `allow_nan=False` + `/dev/null`, and guard kernel result counts and empty probe results in `check_modes()` and `sweep()`.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: F16-TRANS-SWEEP-JSON-AND-GUARDS -> #1646

<!-- gh-comment-id:7155351089 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: F16-TRANS-SWEEP-JSON-AND-GUARDS -> #1646
Author
Owner

@Tyrannys commented on GitHub (Nov 25, 2026):

claiming: SHADER-DOT4-SEL-EXACT-ANCHOR - translate() in tools/rdna2spirv.py re-anchors a listing with llvm-mc's offsets (the exact path), but there it never tries restore_dot4_inline_sel, which the forward search and check_printed_encodings already use. So a v_dot4_i32_i8 with an inline-integer S1 and stored op_sel_hi 5 is marked normalized, and the whole program is refused. The FidelityFX DLL has such a program; with it missing, the title's slot 67 fails and the run crashes inside the upscaler. Builds on SHADER-FFX-PACKED-DOT (#1301) without touching its lines. Hand-built semantic test. AI-assisted.

<!-- gh-comment-id:7155365083 --> @Tyrannys commented on GitHub (Nov 25, 2026): claiming: SHADER-DOT4-SEL-EXACT-ANCHOR - `translate()` in `tools/rdna2spirv.py` re-anchors a listing with llvm-mc's offsets (the exact path), but there it never tries `restore_dot4_inline_sel`, which the forward search and `check_printed_encodings` already use. So a `v_dot4_i32_i8` with an inline-integer S1 and stored op_sel_hi 5 is marked normalized, and the whole program is refused. The FidelityFX DLL has such a program; with it missing, the title's slot 67 fails and the run crashes inside the upscaler. Builds on SHADER-FFX-PACKED-DOT (#1301) without touching its lines. Hand-built semantic test. AI-assisted.
Author
Owner

@sodove commented on GitHub (Nov 25, 2026):

done: WIN-BOOT-FAULT-DIGEST -> #1649

A separate synthetic control for the WRITE_INVALID discussion above, on main 42537e7b6, Windows 11, RTX 5070 Ti (610.74). I added CPU-side comparisons to a private copy of the existing d3d12_title_va fixture. After its ordinary in-bounds UAV write and a fence, I compared the resource readback with the original CPU page, then read the resource into a fresh readback range in a second submission. The CPU did not modify the source between submissions.

Backing exercised First GPU readback Original CPU page matched the GPU result Second GPU readback
Arena copy, read-write pages 64/64 0/64 64/64
Arena copy, write-combined pages 64/64 0/64 64/64
Host import, read-write pages 64/64 64/64 64/64

The original CPU page retained all 64 initial words in both arena-copy cases. The GPU value survived the next submission in all three cases. This establishes a CPU-visibility difference for a valid write. The fixture had no device loss and does not identify the cause of the reported world-load fault.

AI-assisted (OpenAI Codex). Synthetic inputs only.

<!-- gh-comment-id:7155403252 --> @sodove commented on GitHub (Nov 25, 2026): done: WIN-BOOT-FAULT-DIGEST -> #1649 A separate synthetic control for the WRITE_INVALID discussion above, on main `42537e7b6`, Windows 11, RTX 5070 Ti (610.74). I added CPU-side comparisons to a private copy of the existing `d3d12_title_va` fixture. After its ordinary in-bounds UAV write and a fence, I compared the resource readback with the original CPU page, then read the resource into a fresh readback range in a second submission. The CPU did not modify the source between submissions. | Backing exercised | First GPU readback | Original CPU page matched the GPU result | Second GPU readback | | --- | ---: | ---: | ---: | | Arena copy, read-write pages | 64/64 | 0/64 | 64/64 | | Arena copy, write-combined pages | 64/64 | 0/64 | 64/64 | | Host import, read-write pages | 64/64 | 64/64 | 64/64 | The original CPU page retained all 64 initial words in both arena-copy cases. The GPU value survived the next submission in all three cases. This establishes a CPU-visibility difference for a valid write. The fixture had no device loss and does not identify the cause of the reported world-load fault. AI-assisted (OpenAI Codex). Synthetic inputs only.
Author
Owner

@OreoFR commented on GitHub (Nov 25, 2026):

done: SHADER-VOPCX-DPP -> #1647. The 78 pipeline-library pixel shaders refused for DPP on v_cmpx now translate and pass spirv-val; GPU test cs_dpp_cmpx passes on an RTX 4070 Laptop, native wave32 and --wave64-emulate.

<!-- gh-comment-id:7155403672 --> @OreoFR commented on GitHub (Nov 25, 2026): done: SHADER-VOPCX-DPP -> #1647. The 78 pipeline-library pixel shaders refused for `DPP on v_cmpx` now translate and pass spirv-val; GPU test `cs_dpp_cmpx` passes on an RTX 4070 Laptop, native wave32 and `--wave64-emulate`.
Author
Owner

@OreoFR commented on GitHub (Nov 25, 2026):

finding: on the #1592 census, every v_interp_p2_f16 refusal is bit 14 of the first dword. This answers @ecox982745's request in https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7154650479.

The 344 graphics programs the #1592 census leaves untranslated (1.0.2.1, --wave64-emulate, translator at #1592's head) were translated again to list every refusal reason:

Reason Programs
v_interp_p2_f16 printed-encoding mismatch 242 (all PS)
DPP on v_cmpx 78 (#1647)
s_getpc_b64 destination 18 (#1632)
no shader container 6

For all 242, raw_first_dword XOR printed_first_dword is 0x00004000, and the second dword never differs. Of the bits in 0x7800, only bit 14 occurs in the shipped programs. That's op_sel[3], the destination's high half, which the existing destination-high-half claim (SHADER-INTERP-P2-F16-OPSEL) covers. Implementing that bit should clear the whole bucket, the largest refusal left. Counts are per program, at the first refusal the translator reports.

Aggregate counts only, measured on Windows 11 with LLVM 23. AI-assisted.

<!-- gh-comment-id:7155463187 --> @OreoFR commented on GitHub (Nov 25, 2026): finding: on the #1592 census, every `v_interp_p2_f16` refusal is bit 14 of the first dword. This answers @ecox982745's request in https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7154650479. The 344 graphics programs the #1592 census leaves untranslated (1.0.2.1, `--wave64-emulate`, translator at #1592's head) were translated again to list every refusal reason: | Reason | Programs | |---|---| | `v_interp_p2_f16` printed-encoding mismatch | 242 (all PS) | | `DPP on v_cmpx` | 78 (#1647) | | `s_getpc_b64` destination | 18 (#1632) | | no shader container | 6 | For all 242, `raw_first_dword XOR printed_first_dword` is `0x00004000`, and the second dword never differs. Of the bits in `0x7800`, only bit 14 occurs in the shipped programs. That's op_sel[3], the destination's high half, which the existing destination-high-half claim (SHADER-INTERP-P2-F16-OPSEL) covers. Implementing that bit should clear the whole bucket, the largest refusal left. Counts are per program, at the first refusal the translator reports. Aggregate counts only, measured on Windows 11 with LLVM 23. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: SDWA-DIFF-ORACLE-CLI-AND-REF - harden tools/sdwa_diff.py: handle asm.family() ValueError without leaking the hardware oracle, restore module KNOWN state across main() calls, validate hardware result count/word length and shrink Skip/empty-result handling, reject empty --hw-arch/--build/--work, and turn invalid SDWA selectors/unused modes/operands into RefError.

<!-- gh-comment-id:7155622653 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: SDWA-DIFF-ORACLE-CLI-AND-REF - harden `tools/sdwa_diff.py`: handle `asm.family()` `ValueError` without leaking the hardware oracle, restore module `KNOWN` state across `main()` calls, validate hardware result count/word length and shrink `Skip`/empty-result handling, reject empty `--hw-arch`/`--build`/`--work`, and turn invalid SDWA selectors/unused modes/operands into `RefError`.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: SDWA-DIFF-ORACLE-CLI-AND-REF -> #1653

<!-- gh-comment-id:7155664525 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: SDWA-DIFF-ORACLE-CLI-AND-REF -> #1653
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: PK16-DIFF-ORACLE-CLI-AND-REF - harden tools/pk16_diff.py: restore module KNOWN/LITERALS state across main() calls, validate hardware oracle batch/shrink result counts and 4-word payloads, handle Skip on final shrunk recheck, reject empty --hw-arch/--build/--work, and raise RefError on invalid operands, op_sel/op_sel_hi lengths, or unsupported clamp/op_sel_hi modifiers.

<!-- gh-comment-id:7155677593 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: PK16-DIFF-ORACLE-CLI-AND-REF - harden `tools/pk16_diff.py`: restore module `KNOWN`/`LITERALS` state across `main()` calls, validate hardware oracle batch/shrink result counts and 4-word payloads, handle `Skip` on final shrunk recheck, reject empty `--hw-arch`/`--build`/`--work`, and raise `RefError` on invalid operands, `op_sel`/`op_sel_hi` lengths, or unsupported `clamp`/`op_sel_hi` modifiers.
Author
Owner

@ecox982745 commented on GitHub (Nov 25, 2026):

finding: the Python disassembler exposes the destination bit in the 242-program census result, but the translator writes the low half for both settings. This gives the existing destination-half claim a GPU regression case for both backends.

At #1592 817b4be0b I assembled a synthetic PS with v7 initialized to 0x3c003800, the interpolation intermediate in v2, and v_interp_p2_f16 v7, v1, attr0.x, v2. I flipped only first-dword bit 14 in v_interp_p2_f16 and exported all of v7 for readback.

  • LLVM 23.1.6 accepts the control and the translator refuses the bit-set bytes at the encoding check. The Python disassembler prints op_sel:[0,0,0,1] on the bit-set version. The two Python listings produce byte-identical, valid SPIR-V. The v_interp_p2_f16 lowering in tools/rdna2spirv.py calls write_lo16 in both cases.
  • RTX 4090, Windows, NVIDIA 616.64, with the synthetic vs_f16_pack producer: the control matched the low-half reference at 4,096/4,096 pixels. The bit-set draw matched the high-half reference at 0/4,096. At the first pixel the f16 result is 0x2000. Both draws returned 0x3c002000; writing the high half and preserving the old low half would give 0x20003800.

A regression can use the same two synthetic byte streams through each disassembler, then check both halves of the exported word. That covers LLVM field recovery and the write in the translator independently. This measures translated output on NVIDIA. The 242 figure comes from OreoFR’s corpus run. AI-assisted verification.

<!-- gh-comment-id:7155691201 --> @ecox982745 commented on GitHub (Nov 25, 2026): finding: the Python disassembler exposes the destination bit in the [242-program census result](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7155463187), but the translator writes the low half for both settings. This gives the [existing destination-half claim](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7142482665) a GPU regression case for both backends. At #1592 `817b4be0b` I assembled a synthetic PS with `v7` initialized to `0x3c003800`, the interpolation intermediate in `v2`, and `v_interp_p2_f16 v7, v1, attr0.x, v2`. I flipped only first-dword bit 14 in `v_interp_p2_f16` and exported all of `v7` for readback. - LLVM 23.1.6 accepts the control and the translator refuses the bit-set bytes at the encoding check. The Python disassembler prints `op_sel:[0,0,0,1]` on the bit-set version. The two Python listings produce byte-identical, valid SPIR-V. The `v_interp_p2_f16` lowering in `tools/rdna2spirv.py` calls `write_lo16` in both cases. - RTX 4090, Windows, NVIDIA 616.64, with the synthetic `vs_f16_pack` producer: the control matched the low-half reference at **4,096/4,096** pixels. The bit-set draw matched the high-half reference at **0/4,096**. At the first pixel the f16 result is `0x2000`. Both draws returned `0x3c002000`; writing the high half and preserving the old low half would give `0x20003800`. A regression can use the same two synthetic byte streams through each disassembler, then check both halves of the exported word. That covers LLVM field recovery and the write in the translator independently. This measures translated output on NVIDIA. The 242 figure comes from OreoFR’s corpus run. AI-assisted verification.
Author
Owner

@PierreEbele commented on GitHub (Nov 25, 2026):

claiming: TEXT-TABLES-SOURCE-FILE-GUARD - tools/text_tables.py (main(), guard after the index.json check at line 466 on main) refuses --dialogue/--tables/--strings only when they name a source or a carve's index.json; blobs() (line 241) also reads every file below a plain source directory and every carved <offset>.bin/.bk2, so text_tables.py src --tables src/notes.txt reads the file and then replaces it (exit 0). Fix: refuse such a report before writing (reuse gamedata_index.carved_stream() for carves). Distinct from #1228/#738/#818 (other lines). Synthetic tests only, no game data, no GPU. AI-assisted.

<!-- gh-comment-id:7155704789 --> @PierreEbele commented on GitHub (Nov 25, 2026): claiming: TEXT-TABLES-SOURCE-FILE-GUARD - `tools/text_tables.py` (`main()`, guard after the `index.json` check at line 466 on main) refuses `--dialogue`/`--tables`/`--strings` only when they name a source or a carve's `index.json`; `blobs()` (line 241) also reads every file below a plain source directory and every carved `<offset>.bin`/`.bk2`, so `text_tables.py src --tables src/notes.txt` reads the file and then replaces it (exit 0). Fix: refuse such a report before writing (reuse `gamedata_index.carved_stream()` for carves). Distinct from #1228/#738/#818 (other lines). Synthetic tests only, no game data, no GPU. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: PK16-DIFF-ORACLE-CLI-AND-REF -> #1654

<!-- gh-comment-id:7155712202 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: PK16-DIFF-ORACLE-CLI-AND-REF -> #1654
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: VINT-DIFF-ORACLE-CLI-AND-REF - harden tools/vint_diff.py: restore module KNOWN/LITERALS state across main() calls, validate hardware oracle batch/shrink result counts and 4-word payloads, handle Skip on final shrunk recheck, reject empty --hw-arch/--build/--work, and enforce RefError on invalid operands, 64-bit destinations/sources, compares, and op_sel modifiers.

<!-- gh-comment-id:7155721833 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: VINT-DIFF-ORACLE-CLI-AND-REF - harden `tools/vint_diff.py`: restore module `KNOWN`/`LITERALS` state across `main()` calls, validate hardware oracle batch/shrink result counts and 4-word payloads, handle `Skip` on final shrunk recheck, reject empty `--hw-arch`/`--build`/`--work`, and enforce `RefError` on invalid operands, 64-bit destinations/sources, compares, and `op_sel` modifiers.
Author
Owner

@QemmHD commented on GitHub (Nov 25, 2026):

finding (follow-up to my WRITE_INVALID note above): where the write goes. On a real boot (Windows 11, RTX 4070 SUPER, main c7e82e26e + #1558, LEONIDA_TITLE_WINDOWS_MB=1024), 7 of 7 runs that get this far lose the device the same way: WRITE_INVALID in a pipeline-library compute dispatch, the same program each time, about 20 dispatches into one ~490-command compute list.

  • The faulting address is ordinary process memory: committed, PAGE_READWRITE, MEM_MAPPED, inside one XMemVirtualAlloc reservation of 4,170,186,752 bytes (= 63,632 × 64 KiB, attribute word 0x23). That's exactly the page count of the XMemAllocatePhysicalPages call with attributes 0x380, and the reservation ends at the pool address queue slot 31 (CopyPageMappingsBatchX) logs ("pool … of 63632 pages"). So the compute program writes into the physical-page pool window at its CPU address. In every run it's the last 4 KiB page of a 64 KiB page. It isn't in the 16 GiB GPU-only/CPU view pair (attribute words 0x21/0x3).
  • The layer has no GPU mapping at that address, so the raw address faults.
  • It isn't a descriptor the layer rebases: main's compute-input probe on 21 dispatches shows every descriptor in the program's two table pointers (s4/s5) is an arena or arena-shadow buffer, none covering that address, and the direct-heap entries probed are textures or null. Most likely the shader reads the 64-bit address out of buffer data, which descriptor rebasing can't catch.
  • Fix direction: make the pool window's address valid on the GPU at the same number (a host import at that VA, or a sparse binding at a matching device address), or redirect or refuse on the CPU when such a write is detected. Related claims: Tyrannys' RT-GPU-WINDOW-SPARSE (the GPU-only reservation) and roanh47's title-memory claims. This pool window may need the same treatment.
  • A test with no game files: a compute shader that stores through a 64-bit address read from a buffer, pointing into a host region mapped with MapViewOfFile3 placeholders. Today nothing maps it.

Probe note for its owner: LEONIDA_COMPUTE_INPUTS prints each row with several fprintf calls, so with --trace-d3d12 on the rows get split by trace lines, and rows for registers other than the heap register went missing when 400+ slots were requested.

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

<!-- gh-comment-id:7155730736 --> @QemmHD commented on GitHub (Nov 25, 2026): finding (follow-up to my WRITE_INVALID note above): where the write goes. On a real boot (Windows 11, RTX 4070 SUPER, main c7e82e26e + #1558, `LEONIDA_TITLE_WINDOWS_MB=1024`), 7 of 7 runs that get this far lose the device the same way: WRITE_INVALID in a pipeline-library compute dispatch, the same program each time, about 20 dispatches into one ~490-command compute list. - **The faulting address is ordinary process memory:** committed, PAGE_READWRITE, MEM_MAPPED, inside one `XMemVirtualAlloc` reservation of 4,170,186,752 bytes (= 63,632 × 64 KiB, attribute word `0x23`). That's exactly the page count of the `XMemAllocatePhysicalPages` call with attributes `0x380`, and the reservation ends at the pool address queue slot 31 (`CopyPageMappingsBatchX`) logs ("pool … of 63632 pages"). So the compute program writes into the **physical-page pool window at its CPU address**. In every run it's the last 4 KiB page of a 64 KiB page. It isn't in the 16 GiB GPU-only/CPU view pair (attribute words `0x21`/`0x3`). - **The layer has no GPU mapping at that address,** so the raw address faults. - **It isn't a descriptor the layer rebases:** main's compute-input probe on 21 dispatches shows every descriptor in the program's two table pointers (s4/s5) is an arena or arena-shadow buffer, none covering that address, and the direct-heap entries probed are textures or null. Most likely the shader reads the 64-bit address out of buffer data, which descriptor rebasing can't catch. - **Fix direction:** make the pool window's address valid on the GPU at the same number (a host import at that VA, or a sparse binding at a matching device address), or redirect or refuse on the CPU when such a write is detected. Related claims: Tyrannys' RT-GPU-WINDOW-SPARSE (the GPU-only reservation) and roanh47's title-memory claims. This pool window may need the same treatment. - **A test with no game files:** a compute shader that stores through a 64-bit address read from a buffer, pointing into a host region mapped with `MapViewOfFile3` placeholders. Today nothing maps it. Probe note for its owner: `LEONIDA_COMPUTE_INPUTS` prints each row with several `fprintf` calls, so with `--trace-d3d12` on the rows get split by trace lines, and rows for registers other than the heap register went missing when 400+ slots were requested. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@hugo0024 commented on GitHub (Nov 25, 2026):

claiming: CI-RUNTIME-PATHS-CONFORMANCE - add tools/conformance/** to the push and pull_request path lists of .github/workflows/runtime.yml. Since #939, runtime/CMakeLists.txt compiles tools/conformance/native/src/png_io.cpp and diagnostics.cpp into vk_present_dump_test, so a pull request that changes only those files does not start the Runtime workflow, and tests/test_runtime_paths.py fails on main with tools/conformance/**: missing (named in runtime/CMakeLists.txt) (reproduced on main 3f81d46ac; QemmHD reported it on #939). The workflow file only. No game files, no GPU. AI-assisted.

<!-- gh-comment-id:7155742907 --> @hugo0024 commented on GitHub (Nov 25, 2026): claiming: CI-RUNTIME-PATHS-CONFORMANCE - add `tools/conformance/**` to the `push` and `pull_request` path lists of `.github/workflows/runtime.yml`. Since #939, `runtime/CMakeLists.txt` compiles `tools/conformance/native/src/png_io.cpp` and `diagnostics.cpp` into `vk_present_dump_test`, so a pull request that changes only those files does not start the Runtime workflow, and `tests/test_runtime_paths.py` fails on main with `tools/conformance/**: missing (named in runtime/CMakeLists.txt)` (reproduced on main 3f81d46ac; QemmHD reported it on #939). The workflow file only. No game files, no GPU. AI-assisted.
Author
Owner

@PierreEbele commented on GitHub (Nov 25, 2026):

done: TEXT-TABLES-SOURCE-FILE-GUARD -> #1655 (AI-assisted)

<!-- gh-comment-id:7155747616 --> @PierreEbele commented on GitHub (Nov 25, 2026): done: TEXT-TABLES-SOURCE-FILE-GUARD -> #1655 (AI-assisted)
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: VINT-DIFF-ORACLE-CLI-AND-REF -> #1656

<!-- gh-comment-id:7155758084 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: VINT-DIFF-ORACLE-CLI-AND-REF -> #1656
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: FSSM-UNPACK-IO-AND-BOUNDS - harden tools/fssm_unpack.py: validate DXBC magic in parts() and full 24-byte XBCH header length in _inflate_xbch(), reject empty --carve-index, catch OSError cleanly (exit 2) when writing .fssm blobs or publishing fssm_index.json (preserving mode and symlinks), and avoid re-parsing DXBC/XDAT twice per container.

<!-- gh-comment-id:7155785517 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: FSSM-UNPACK-IO-AND-BOUNDS - harden `tools/fssm_unpack.py`: validate DXBC magic in `parts()` and full 24-byte XBCH header length in `_inflate_xbch()`, reject empty `--carve-index`, catch `OSError` cleanly (exit 2) when writing `.fssm` blobs or publishing `fssm_index.json` (preserving mode and symlinks), and avoid re-parsing DXBC/XDAT twice per container.
Author
Owner

@hugo0024 commented on GitHub (Nov 25, 2026):

done: CI-RUNTIME-PATHS-CONFORMANCE -> #1657

<!-- gh-comment-id:7155804354 --> @hugo0024 commented on GitHub (Nov 25, 2026): done: CI-RUNTIME-PATHS-CONFORMANCE -> #1657
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: FSSM-UNPACK-IO-AND-BOUNDS -> #1658

<!-- gh-comment-id:7155819584 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: FSSM-UNPACK-IO-AND-BOUNDS -> #1658
Author
Owner

@OreoFR commented on GitHub (Nov 25, 2026):

claiming: RT-SLOT57-BLEND-STATE - decode the blend state of the slot 57 record's state blob A, and build native PSOs with it.

On main, runtime/shims/d3d12_xs_native_pso.h builds every native PSO from a zeroed desc, setting only RenderTargetWriteMask, so all of them draw opaque. Blob A (runtime/src/native_pso.h:18: "blend, raster, depth, not decoded") is never read. On NVIDIA, this is the cause of the first-run-page picture regression after #939: solid glyph blocks, hard-edged artwork, and black where a gradient should be composited. QemmHD handed this item over in https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7155793736 and will A/B the result on a 4070 SUPER.

Scope:

  • Find the per-target blend words in blob A by their RDNA2 register layout (CB_BLENDn_CONTROL, CB_TARGET_MASK, CB_COLOR_CONTROL, as in Mesa's gfx10 register headers), checked against counts over all of the library's distinct state blobs.
  • Map them to D3D12_RENDER_TARGET_BLEND_DESC, and use them in fill_fixed_state.
  • Add synthetic tests and a docs/ note with the measured layout. Aggregate counts only, no blob bytes.

Raster and depth state stay out of scope, so the existing defaults are kept there. If a blob's blend words can't be identified with confidence, that blob keeps today's behaviour.

<!-- gh-comment-id:7155828305 --> @OreoFR commented on GitHub (Nov 25, 2026): claiming: RT-SLOT57-BLEND-STATE - decode the blend state of the slot 57 record's state blob A, and build native PSOs with it. On `main`, `runtime/shims/d3d12_xs_native_pso.h` builds every native PSO from a zeroed desc, setting only `RenderTargetWriteMask`, so all of them draw opaque. Blob A (`runtime/src/native_pso.h:18`: "blend, raster, depth, not decoded") is never read. On NVIDIA, this is the cause of the first-run-page picture regression after #939: solid glyph blocks, hard-edged artwork, and black where a gradient should be composited. QemmHD handed this item over in https://github.com/ubiquitarianism/leonida/pull/939#issuecomment-7155793736 and will A/B the result on a 4070 SUPER. Scope: - Find the per-target blend words in blob A by their RDNA2 register layout (`CB_BLENDn_CONTROL`, `CB_TARGET_MASK`, `CB_COLOR_CONTROL`, as in Mesa's gfx10 register headers), checked against counts over all of the library's distinct state blobs. - Map them to `D3D12_RENDER_TARGET_BLEND_DESC`, and use them in `fill_fixed_state`. - Add synthetic tests and a `docs/` note with the measured layout. Aggregate counts only, no blob bytes. Raster and depth state stay out of scope, so the existing defaults are kept there. If a blob's blend words can't be identified with confidence, that blob keeps today's behaviour.
Author
Owner

@kotekompotek commented on GitHub (Nov 25, 2026):

finding: xmem_test deadlocks in the "xmem heap-lock faults" section on Windows

Reproduced on clean ubi/main (42537e7b6), Debug build, xmem_test.exe xmem: the run reaches the heap-lock fault tests, then the test's own 30 s watchdog fires - "no progress for 30 s: deadlock (a holder of the lock xmem's fault handler waits for is waiting for the process heap)". All three variants are affected. Looks like a lock inversion between the xmem fault handler and the process-heap lock (e.g. a thread holding the lock the fault handler needs is itself blocked in HeapAlloc). No game files or special hardware needed - reproduces in the standard test binary on Windows.

<!-- gh-comment-id:7155831892 --> @kotekompotek commented on GitHub (Nov 25, 2026): finding: xmem_test deadlocks in the "xmem heap-lock faults" section on Windows Reproduced on clean `ubi/main` (42537e7b6), Debug build, `xmem_test.exe xmem`: the run reaches the heap-lock fault tests, then the test's own 30 s watchdog fires - "no progress for 30 s: deadlock (a holder of the lock xmem's fault handler waits for is waiting for the process heap)". All three variants are affected. Looks like a lock inversion between the xmem fault handler and the process-heap lock (e.g. a thread holding the lock the fault handler needs is itself blocked in HeapAlloc). No game files or special hardware needed - reproduces in the standard test binary on Windows.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: VREL-DIFF-CLI-COMPARE-AND-REF - harden tools/vrel_diff.py: reject empty/trailing-comma --ops and deduplicate op tokens, guard lane-count and word-count mismatches in compare() (preventing empty-list false passes), fall back cleanly on Skip during final shrunk recheck, and raise RefError on malformed operands/arities and uninitialized m0 in events()/step()/rel().

<!-- gh-comment-id:7155832832 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: VREL-DIFF-CLI-COMPARE-AND-REF - harden `tools/vrel_diff.py`: reject empty/trailing-comma `--ops` and deduplicate op tokens, guard lane-count and word-count mismatches in `compare()` (preventing empty-list false passes), fall back cleanly on `Skip` during final shrunk recheck, and raise `RefError` on malformed operands/arities and uninitialized `m0` in `events()`/`step()`/`rel()`.
Author
Owner

@slauko commented on GitHub (Nov 25, 2026):

claiming: BCPACK-PREDICTOR-DIAGNOSTIC — make the missing BCPack predictor profile a named setup error instead of a silent blank picture. The other two causes in docs/linux_proton.md are already owned: SDL3/input by #1528, the executable's embedded shaders by #387. Scope: (1) the runtime's DStorage open path names the expected <work>/bcpack/history.bcph (or LEONIDA_DSTORAGE_HISTORY), the generator tools/build_dstorage_history.py, and the consequence (loading art and most BC7 textures stay empty); (2) the runtime stage's --if-needed generation warns if the profile is still absent afterwards. No behaviour change, no game data; one synthetic test for the hint. AI-assisted.

<!-- gh-comment-id:7155841781 --> @slauko commented on GitHub (Nov 25, 2026): claiming: BCPACK-PREDICTOR-DIAGNOSTIC — make the missing BCPack predictor profile a named setup error instead of a silent blank picture. The other two causes in `docs/linux_proton.md` are already owned: SDL3/input by #1528, the executable's embedded shaders by #387. Scope: (1) the runtime's DStorage open path names the expected `<work>/bcpack/history.bcph` (or `LEONIDA_DSTORAGE_HISTORY`), the generator `tools/build_dstorage_history.py`, and the consequence (loading art and most BC7 textures stay empty); (2) the runtime stage's `--if-needed` generation warns if the profile is still absent afterwards. No behaviour change, no game data; one synthetic test for the hint. AI-assisted.
Author
Owner

@sodove commented on GitHub (Nov 25, 2026):

claiming: independent RTX 5070 Ti / native Windows check of #1631 on the previously measured boot baseline, including the PR's synthetic window-cap readback. Will report aggregate outcomes on the existing PR.

AI-assisted (OpenAI Codex).

<!-- gh-comment-id:7155863741 --> @sodove commented on GitHub (Nov 25, 2026): claiming: independent RTX 5070 Ti / native Windows check of #1631 on the previously measured boot baseline, including the PR's synthetic window-cap readback. Will report aggregate outcomes on the existing PR. AI-assisted (OpenAI Codex).
Author
Owner

@slauko commented on GitHub (Nov 25, 2026):

done: BCPACK-PREDICTOR-DIAGNOSTIC -> #1660

<!-- gh-comment-id:7155868740 --> @slauko commented on GitHub (Nov 25, 2026): done: BCPACK-PREDICTOR-DIAGNOSTIC -> #1660
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: VREL-DIFF-CLI-COMPARE-AND-REF -> #1661

<!-- gh-comment-id:7155869238 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: VREL-DIFF-CLI-COMPARE-AND-REF -> #1661
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: F64-DIFF-CLI-ORACLE-AND-SHRINK - harden tools/f64_diff.py: reject empty/trailing-comma --ops and deduplicate op tokens, reject empty --hw-arch/--exe and zero-case runs (--no-sweep --programs 0 without --known), validate hardware oracle batch/single-run result counts and 4-word payloads, propagate HarnessError out of shrink(), and add errors="replace"/OSError handling in GPU subprocess calls.

<!-- gh-comment-id:7155892025 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: F64-DIFF-CLI-ORACLE-AND-SHRINK - harden `tools/f64_diff.py`: reject empty/trailing-comma `--ops` and deduplicate op tokens, reject empty `--hw-arch`/`--exe` and zero-case runs (`--no-sweep --programs 0` without `--known`), validate hardware oracle batch/single-run result counts and 4-word payloads, propagate `HarnessError` out of `shrink()`, and add `errors="replace"`/`OSError` handling in GPU subprocess calls.
Author
Owner

@Tyrannys commented on GitHub (Nov 25, 2026):

done: SHADER-DOT4-SEL-EXACT-ANCHOR -> #1662

<!-- gh-comment-id:7155927712 --> @Tyrannys commented on GitHub (Nov 25, 2026): done: SHADER-DOT4-SEL-EXACT-ANCHOR -> #1662
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: F64-DIFF-CLI-ORACLE-AND-SHRINK -> #1663

<!-- gh-comment-id:7155933785 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: F64-DIFF-CLI-ORACLE-AND-SHRINK -> #1663
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: D16-FORMAT-PROBE-JSON-AND-CLI - harden tools/d16_format_probe.py: strip/reject empty comma tokens and deduplicate --formats/--waves, reject empty --hw-arch/--json, handle asm.family() ValueError cleanly as exit 77, validate blocked --json parents before opening the oracle, and make write_report() atomic with trailing LF, allow_nan=False, symlink/mode preservation, and /dev/null support.

<!-- gh-comment-id:7155954875 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: D16-FORMAT-PROBE-JSON-AND-CLI - harden `tools/d16_format_probe.py`: strip/reject empty comma tokens and deduplicate `--formats`/`--waves`, reject empty `--hw-arch`/`--json`, handle `asm.family()` `ValueError` cleanly as exit 77, validate blocked `--json` parents before opening the oracle, and make `write_report()` atomic with trailing LF, `allow_nan=False`, symlink/mode preservation, and `/dev/null` support.
Author
Owner

@sodove commented on GitHub (Nov 25, 2026):

done: independent RTX 5070 Ti / native Windows check of #1631. Validation tests passed 8/8; the offline run used the scratch window and still ended in device loss. Results on #1631.

AI-assisted (OpenAI Codex).

<!-- gh-comment-id:7155974082 --> @sodove commented on GitHub (Nov 25, 2026): done: independent RTX 5070 Ti / native Windows check of #1631. Validation tests passed 8/8; the offline run used the scratch window and still ended in device loss. [Results on #1631](https://github.com/ubiquitarianism/leonida/pull/1631#issuecomment-7155971286). AI-assisted (OpenAI Codex).
Author
Owner

@djrolfes commented on GitHub (Nov 25, 2026):

finding: #815 depth-bounds support appears not to propagate into main’s on-demand console-stream realization. runtime/shims/d3d12_vulkan_device.cpp:7059 in main 42537e7b6 parses a pending stream then calls create_graphics without stream.extras; #815 supplies the new extras argument only on the eager CreatePipelineState branch. This could silently drop DepthBoundsTestEnable rather than refuse it when first binding a console PSO. Code-path observation, GPU reduction pending. No game files needed for a stream+draw regression; a depth-bounds-capable Vulkan GPU is useful for readback. Existing D3D-DEPTH-BOUNDS owner notified on #815 (https://github.com/ubiquitarianism/leonida/pull/815#issuecomment-7156015786); no duplicate implementation claimed. AI-assisted.

<!-- gh-comment-id:7156018953 --> @djrolfes commented on GitHub (Nov 25, 2026): finding: #815 depth-bounds support appears not to propagate into main’s on-demand console-stream realization. runtime/shims/d3d12_vulkan_device.cpp:7059 in main 42537e7b6 parses a pending stream then calls create_graphics without stream.extras; #815 supplies the new extras argument only on the eager CreatePipelineState branch. This could silently drop DepthBoundsTestEnable rather than refuse it when first binding a console PSO. Code-path observation, GPU reduction pending. No game files needed for a stream+draw regression; a depth-bounds-capable Vulkan GPU is useful for readback. Existing D3D-DEPTH-BOUNDS owner notified on #815 (https://github.com/ubiquitarianism/leonida/pull/815#issuecomment-7156015786); no duplicate implementation claimed. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: D16-FORMAT-PROBE-JSON-AND-CLI -> #1664

<!-- gh-comment-id:7156020978 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: D16-FORMAT-PROBE-JSON-AND-CLI -> #1664
Author
Owner

@derkoch1337 commented on GitHub (Nov 25, 2026):

note: RT-RGB9E5-HALF -> #592 closed as superseded by 273b3bdf9 (RT-PROTON-STORY-LOAD): the default-on B10G11R11 stand-in now backs R9G9B9E5 render targets and boots the retail package, so the fp16 fallback is no longer needed. Item free again; the only residual difference is exactness (fp16 is a value superset, the stand-in is lossy).

<!-- gh-comment-id:7156030413 --> @derkoch1337 commented on GitHub (Nov 25, 2026): note: RT-RGB9E5-HALF -> #592 closed as superseded by 273b3bdf9 (RT-PROTON-STORY-LOAD): the default-on B10G11R11 stand-in now backs R9G9B9E5 render targets and boots the retail package, so the fp16 fallback is no longer needed. Item free again; the only residual difference is exactness (fp16 is a value superset, the stand-in is lossy).
Author
Owner

@slauko commented on GitHub (Nov 25, 2026):

claiming: CI-RUNTIME-WINDOWS-ONLY — a workflow_dispatch boolean windows_only that skips the Wine, Linux GPU-tools and macOS jobs, so a loader/artifact measurement round runs only the Windows job. The default stays the full matrix and push/pull_request runs are unchanged. The current workflow has no dispatch inputs; the same idea was carried on our fork. Verified on slauko/leonida: dispatch run 45569154298 with windows_only=true accepted the input and skipped macos and linux-gpu-tools while windows runs. No runtime code. AI-assisted.

<!-- gh-comment-id:7156034488 --> @slauko commented on GitHub (Nov 25, 2026): claiming: CI-RUNTIME-WINDOWS-ONLY — a `workflow_dispatch` boolean `windows_only` that skips the Wine, Linux GPU-tools and macOS jobs, so a loader/artifact measurement round runs only the Windows job. The default stays the full matrix and push/pull_request runs are unchanged. The current workflow has no dispatch inputs; the same idea was carried on our fork. Verified on slauko/leonida: dispatch run 45569154298 with `windows_only=true` accepted the input and skipped macos and linux-gpu-tools while windows runs. No runtime code. AI-assisted.
Author
Owner

@slauko commented on GitHub (Nov 25, 2026):

done: CI-RUNTIME-WINDOWS-ONLY -> #1665

<!-- gh-comment-id:7156042925 --> @slauko commented on GitHub (Nov 25, 2026): done: CI-RUNTIME-WINDOWS-ONLY -> #1665
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: F64-OMOD-PROBE-JSON-AND-CLI - harden tools/f64_omod_probe.py CLI validation/dedup, oracle result & Unavailable/arch handling, f32 overflow, and upfront/atomic JSON report writing

<!-- gh-comment-id:7156055033 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: F64-OMOD-PROBE-JSON-AND-CLI - harden tools/f64_omod_probe.py CLI validation/dedup, oracle result & Unavailable/arch handling, f32 overflow, and upfront/atomic JSON report writing
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: F64-OMOD-PROBE-JSON-AND-CLI -> #1666

<!-- gh-comment-id:7156092511 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: F64-OMOD-PROBE-JSON-AND-CLI -> #1666
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: FMA-MIX-PROBE-CLI-AND-ORACLE - harden tools/fma_mix_probe.py CLI validation, run_hw() result/Unavailable handling, run_vulkan() UTF-8 decoding, and rdna2spirv.Unsupported catching

<!-- gh-comment-id:7156111455 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: FMA-MIX-PROBE-CLI-AND-ORACLE - harden tools/fma_mix_probe.py CLI validation, run_hw() result/Unavailable handling, run_vulkan() UTF-8 decoding, and rdna2spirv.Unsupported catching
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: FMA-MIX-PROBE-CLI-AND-ORACLE -> #1670

<!-- gh-comment-id:7156145478 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: FMA-MIX-PROBE-CLI-AND-ORACLE -> #1670
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: FMA-MIX-LITERAL-PROBE-CLI-AND-ORACLE - harden tools/fma_mix_literal_probe.py CLI validation, run_hw() payload/Unavailable handling, and word masking

<!-- gh-comment-id:7156151636 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: FMA-MIX-LITERAL-PROBE-CLI-AND-ORACLE - harden tools/fma_mix_literal_probe.py CLI validation, run_hw() payload/Unavailable handling, and word masking
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: FMA-MIX-LITERAL-PROBE-CLI-AND-ORACLE -> #1672

<!-- gh-comment-id:7156187948 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: FMA-MIX-LITERAL-PROBE-CLI-AND-ORACLE -> #1672
Author
Owner

@OreoFR commented on GitHub (Nov 25, 2026):

done: RT-SLOT57-BLEND-STATE -> #1671. Slot 57 native PSOs now take their blend state and per-target write mask from state blob A (CB_BLENDn_CONTROL / CB_TARGET_MASK), which fixes the first-run-page picture regression after #939 on a real boot (RTX 4070 Laptop). Dual-source (SRC1) pipelines keep the old defaults until the translator declares a second pixel-shader output; raster and depth state in blob A stay undecoded.

<!-- gh-comment-id:7156188277 --> @OreoFR commented on GitHub (Nov 25, 2026): done: RT-SLOT57-BLEND-STATE -> #1671. Slot 57 native PSOs now take their blend state and per-target write mask from state blob A (`CB_BLENDn_CONTROL` / `CB_TARGET_MASK`), which fixes the first-run-page picture regression after #939 on a real boot (RTX 4070 Laptop). Dual-source (`SRC1`) pipelines keep the old defaults until the translator declares a second pixel-shader output; raster and depth state in blob A stay undecoded.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: MAD-DENORM-PROBE-CLI-AND-ORACLE - harden tools/mad_denorm_probe.py CLI validation, oracle close/Unavailable/RuntimeError handling, and sanity/batch result validation

<!-- gh-comment-id:7156204400 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: MAD-DENORM-PROBE-CLI-AND-ORACLE - harden tools/mad_denorm_probe.py CLI validation, oracle close/Unavailable/RuntimeError handling, and sanity/batch result validation
Author
Owner

@hugo0024 commented on GitHub (Nov 25, 2026):

claiming: SHADER-PERMUTE-EAGER - tools/rdna2spirv.py, Gen.ds_permute (native path): store each source lane's two OpGroupNonUniformShuffle results (Gen.eager) before the OpSelect chain reads them, as the DPP rule already stores its ballot bit and its shuffle. Each is used once inside 32 chained selects, which SPIRV-Cross (MoltenVK) writes as nested ternaries, so not every lane runs every shuffle (the SHADER-529 mechanism). Measured on an Apple M5, MoltenVK 1.4.2, main 3f81d46ac: lds_fuzz.py --wave 32 --permute --programs 100 --seed 31002 reports 17 programs that differ, every one in a ds_permute_b32 result (docs/shader_validation.md records 0 mismatches for the op on RADV); with both shuffles stored, 100 of 100 match. With a semantic test. No game files. AI-assisted.

<!-- gh-comment-id:7156204534 --> @hugo0024 commented on GitHub (Nov 25, 2026): claiming: SHADER-PERMUTE-EAGER - `tools/rdna2spirv.py`, `Gen.ds_permute` (native path): store each source lane's two `OpGroupNonUniformShuffle` results (`Gen.eager`) before the `OpSelect` chain reads them, as the DPP rule already stores its ballot bit and its shuffle. Each is used once inside 32 chained selects, which SPIRV-Cross (MoltenVK) writes as nested ternaries, so not every lane runs every shuffle (the SHADER-529 mechanism). Measured on an Apple M5, MoltenVK 1.4.2, main 3f81d46ac: `lds_fuzz.py --wave 32 --permute --programs 100 --seed 31002` reports 17 programs that differ, every one in a `ds_permute_b32` result (docs/shader_validation.md records 0 mismatches for the op on RADV); with both shuffles stored, 100 of 100 match. With a semantic test. No game files. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: MAD-DENORM-PROBE-CLI-AND-ORACLE -> #1674

<!-- gh-comment-id:7156251472 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: MAD-DENORM-PROBE-CLI-AND-ORACLE -> #1674
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: PKNORM-PROBE-CLI-AND-ORACLE - harden tools/pknorm_probe.py CLI validation, run_hw() payload validation, and oracle Unavailable/RuntimeError lifecycle

<!-- gh-comment-id:7156255931 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: PKNORM-PROBE-CLI-AND-ORACLE - harden tools/pknorm_probe.py CLI validation, run_hw() payload validation, and oracle Unavailable/RuntimeError lifecycle
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: PKNORM-PROBE-CLI-AND-ORACLE -> #1675

<!-- gh-comment-id:7156284180 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: PKNORM-PROBE-CLI-AND-ORACLE -> #1675
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: SAMPLER-LOD-PROBE-ORACLE-AND-CALIBRATION - validate oracle batch/word payloads, non-finite calibration starts, and Unavailable/RuntimeError handling in tools/sampler_lod_probe.py

<!-- gh-comment-id:7156290731 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: SAMPLER-LOD-PROBE-ORACLE-AND-CALIBRATION - validate oracle batch/word payloads, non-finite calibration starts, and Unavailable/RuntimeError handling in tools/sampler_lod_probe.py
Author
Owner

@slauko commented on GitHub (Nov 25, 2026):

finding: current main under Wine reaches 129,459 D3D12 calls and 1,472 presents, then stops at a placed D16S8 depth texture (slot 133, format 118, hr=0x80070057, placement; the title's int3 follows at exe+0x131A2AD). Owners: #588 (CONFLICTING) / #1558 (MERGEABLE) for the depth format; #387 (CONFLICTING) for the executable's embedded VS, whose absence fails three PSOs earlier but is not fatal. Build: main 42537e7b6 + the SDL3 artifact line (head f81cf9092), Wine 11.17, RTX 3080 Ti (NVIDIA 595.112.07), retail 1.0.2.1. Counts and call shapes only, no game data. AI-assisted.

<!-- gh-comment-id:7156293568 --> @slauko commented on GitHub (Nov 25, 2026): finding: current main under Wine reaches 129,459 D3D12 calls and 1,472 presents, then stops at a placed D16S8 depth texture (slot 133, format 118, `hr=0x80070057, placement`; the title's int3 follows at `exe+0x131A2AD`). Owners: #588 (CONFLICTING) / #1558 (MERGEABLE) for the depth format; #387 (CONFLICTING) for the executable's embedded VS, whose absence fails three PSOs earlier but is not fatal. Build: `main` `42537e7b6` + the SDL3 artifact line (head `f81cf9092`), Wine 11.17, RTX 3080 Ti (NVIDIA 595.112.07), retail 1.0.2.1. Counts and call shapes only, no game data. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: SAMPLER-LOD-PROBE-ORACLE-AND-CALIBRATION -> #1676

<!-- gh-comment-id:7156318183 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: SAMPLER-LOD-PROBE-ORACLE-AND-CALIBRATION -> #1676
Author
Owner

@OreoFR commented on GitHub (Nov 25, 2026):

claiming: RT-SLOT57-DEPTH-RASTER - depth, stencil and raster state for slot 57 native PSOs from state blob A. This is the follow-up to #1671 (blend), on the same register block.

Native PSOs are built with depth ALWAYS plus write, no culling and depth clip on, whatever the record says. Blob A's shared block also holds, in the RDNA2 layout (vertex-pipeline offsets; +84 for mesh pipelines):

  • +0xb8 DB_DEPTH_CONTROL. With no DSV in blob B, Z_ENABLE is 0 in 7,040 of 7,079 records, and STENCIL_ENABLE is set only with stencil formats. GEQUAL is the most common test.
  • +0xbc DB_STENCIL_CONTROL, nonzero with stencil on in 5,512 records and with it off in 2.
  • +0xc0/+0xc4 DB_STENCILREFMASK(_BF).
  • +0xa0 PA_SU_SC_MODE_CNTL: cull none in 13,534, back in 11,873, front in 62.
  • +0x9c PA_CL_CLIP_CNTL: z clip off in 960.

These counts are over all 25,471 graphics records of 1.0.2.1, aggregates only.

Scope: map these registers to D3D12_DEPTH_STENCIL_DESC and the cull, front-face and depth-clip fields of D3D12_RASTERIZER_DESC in fill_fixed_state, with the same fallback as #1671 (a shape or value this path can't express keeps today's defaults). Add synthetic tests and the layout in docs/fspx.md. Depth bias (PA_SU_POLY_OFFSET_*) stays out of scope, because its D3D12 units depend on the depth format.

<!-- gh-comment-id:7156345815 --> @OreoFR commented on GitHub (Nov 25, 2026): claiming: RT-SLOT57-DEPTH-RASTER - depth, stencil and raster state for slot 57 native PSOs from state blob A. This is the follow-up to #1671 (blend), on the same register block. Native PSOs are built with depth `ALWAYS` plus write, no culling and depth clip on, whatever the record says. Blob A's shared block also holds, in the RDNA2 layout (vertex-pipeline offsets; +84 for mesh pipelines): - `+0xb8` `DB_DEPTH_CONTROL`. With no DSV in blob B, `Z_ENABLE` is 0 in 7,040 of 7,079 records, and `STENCIL_ENABLE` is set only with stencil formats. `GEQUAL` is the most common test. - `+0xbc` `DB_STENCIL_CONTROL`, nonzero with stencil on in 5,512 records and with it off in 2. - `+0xc0`/`+0xc4` `DB_STENCILREFMASK(_BF)`. - `+0xa0` `PA_SU_SC_MODE_CNTL`: cull none in 13,534, back in 11,873, front in 62. - `+0x9c` `PA_CL_CLIP_CNTL`: z clip off in 960. These counts are over all 25,471 graphics records of 1.0.2.1, aggregates only. Scope: map these registers to `D3D12_DEPTH_STENCIL_DESC` and the cull, front-face and depth-clip fields of `D3D12_RASTERIZER_DESC` in `fill_fixed_state`, with the same fallback as #1671 (a shape or value this path can't express keeps today's defaults). Add synthetic tests and the layout in `docs/fspx.md`. Depth bias (`PA_SU_POLY_OFFSET_*`) stays out of scope, because its D3D12 units depend on the depth format.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: MEM-DIFF-COMPARE-AND-HARNESS-ERRORS - fix tools/mem_diff.py broad Exception skip swallowing, zero-memory and overlong-export IndexError crashes, and --family deduplication

<!-- gh-comment-id:7156347986 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: MEM-DIFF-COMPARE-AND-HARNESS-ERRORS - fix tools/mem_diff.py broad Exception skip swallowing, zero-memory and overlong-export IndexError crashes, and --family deduplication
Author
Owner

@MoonEyes commented on GitHub (Nov 25, 2026):

claiming: TEST-REQUIRE-SPIRV-TOOLS-EQ-1 - tests/semantic/test_active_cache.py:56 and test_reg_ptr_hoist.py:59 read LEONIDA_REQUIRE_SPIRV_TOOLS for truthiness, so the 0 ci.yml sets on Windows makes both fail without SPIRV-Tools. Compare with 1 (the two lines of draft #136, credited). No game files, no GPU.

<!-- gh-comment-id:7156356748 --> @MoonEyes commented on GitHub (Nov 25, 2026): claiming: TEST-REQUIRE-SPIRV-TOOLS-EQ-1 - tests/semantic/test_active_cache.py:56 and test_reg_ptr_hoist.py:59 read LEONIDA_REQUIRE_SPIRV_TOOLS for truthiness, so the 0 ci.yml sets on Windows makes both fail without SPIRV-Tools. Compare with 1 (the two lines of draft #136, credited). No game files, no GPU.
Author
Owner

@MoonEyes commented on GitHub (Nov 25, 2026):

done: TEST-REQUIRE-SPIRV-TOOLS-EQ-1 -> #NNN

<!-- gh-comment-id:7156360394 --> @MoonEyes commented on GitHub (Nov 25, 2026): done: TEST-REQUIRE-SPIRV-TOOLS-EQ-1 -> #NNN
Author
Owner

@adrianmjim commented on GitHub (Nov 25, 2026):

claiming: RT-GEOMETRY-VIEWS-NO-REBAR - d3d12_geometry_views fails on every run on an RX 7900 XT without Resizable BAR (main 42537e7b6). LEONIDA_GEOMETRY_MB view blocks require DEVICE_LOCAL | HOST_VISIBLE memory (runtime/shims/d3d12_title_buffer_windows.h), and the 256 MiB default arena fills the 256 MiB BAR heap exactly, so every block fails with -2 and the shader reads zeros. Fix: fall back to host-visible system memory for those blocks. Test-checked on AMD, no game files.

<!-- gh-comment-id:7156374294 --> @adrianmjim commented on GitHub (Nov 25, 2026): claiming: RT-GEOMETRY-VIEWS-NO-REBAR - `d3d12_geometry_views` fails on every run on an RX 7900 XT without Resizable BAR (`main` `42537e7b6`). `LEONIDA_GEOMETRY_MB` view blocks require `DEVICE_LOCAL | HOST_VISIBLE` memory (`runtime/shims/d3d12_title_buffer_windows.h`), and the 256 MiB default arena fills the 256 MiB BAR heap exactly, so every block fails with -2 and the shader reads zeros. Fix: fall back to host-visible system memory for those blocks. Test-checked on AMD, no game files.
Author
Owner

@adrianmjim commented on GitHub (Nov 25, 2026):

done: RT-GEOMETRY-VIEWS-NO-REBAR -> #1678

<!-- gh-comment-id:7156382612 --> @adrianmjim commented on GitHub (Nov 25, 2026): done: RT-GEOMETRY-VIEWS-NO-REBAR -> #1678
Author
Owner

@Tyrannys commented on GitHub (Nov 25, 2026):

@QemmHD @roanh47 Data from one more machine for the WRITE_INVALID stop, counts only. Windows 11, RTX 4070 SUPER (NVIDIA 621.01), 64 GB, own 1.0.2.1 copy.

Build: main 42537e7b6 + #1631. Shaders re-translated on that tree + #674 + #1662 (LLVM 21.1.8, --wave64-emulate): 2,683 library programs, 29 of 29 FSPX. Recipe: boot.ps1 -Seconds 480, LEONIDA_KEYBOARD_PAD=1 LEONIDA_SKIP_INT3=1 LEONIDA_TITLE_WATCHDOG=0, A pressed every 15 s, default window cap. One run per row.

run what differs end
1 library built before #1021 178 s: device lost at the loading-screen compute dispatch #1021 names
2 library re-translated on main 202 s: the title's hang watchdog
3 + LEONIDA_TITLE_WATCHDOG=0 257 s: null read in the upscaler DLL (22 of 29 FSPX translated)
4 + #1662 (24 of 29) 176 s: same null read, another FSPX program missing
5 + #674 (29 of 29) full 485 s, device lost late: lib_cs_02229
6 + library re-translated with #674 + #1662 full 482 s, device lost late: VK_EXT_device_fault type 2 (write, 4 KiB precision) + type 6, last checkpoint a dispatch of lib_cs_00928 on a compute queue, about 49 commands into the list
  • With #1631, the cap line prints once per run (63 MiB copied) and the address goes to the scratch window. No device loss at the cap in runs 2 to 6.
  • Run 6 matches @QemmHD's report: the same program and kind of fault, with the default window cap instead of 1024 MiB. So the cap is not what drives this stop.
  • My reading of why #1273 alone would not reach it: a translated shader forms heap_base + address for an address it read from buffer data, so the pool window needs GPU memory at that same offset from heap_base. That is the layout RT-TITLE-RESERVATION-ARENA describes. An import at a driver-chosen address only covers the addresses the layer itself rebases. Not tested.

Happy to run a branch for either of you on this machine.

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

<!-- gh-comment-id:7156386366 --> @Tyrannys commented on GitHub (Nov 25, 2026): @QemmHD @roanh47 Data from one more machine for the WRITE_INVALID stop, counts only. Windows 11, RTX 4070 SUPER (NVIDIA 621.01), 64 GB, own 1.0.2.1 copy. Build: `main` `42537e7b6` + #1631. Shaders re-translated on that tree + #674 + #1662 (LLVM 21.1.8, `--wave64-emulate`): 2,683 library programs, 29 of 29 FSPX. Recipe: `boot.ps1 -Seconds 480`, `LEONIDA_KEYBOARD_PAD=1 LEONIDA_SKIP_INT3=1 LEONIDA_TITLE_WATCHDOG=0`, A pressed every 15 s, default window cap. One run per row. | run | what differs | end | |---|---|---| | 1 | library built before #1021 | 178 s: device lost at the loading-screen compute dispatch #1021 names | | 2 | library re-translated on `main` | 202 s: the title's hang watchdog | | 3 | + `LEONIDA_TITLE_WATCHDOG=0` | 257 s: null read in the upscaler DLL (22 of 29 FSPX translated) | | 4 | + #1662 (24 of 29) | 176 s: same null read, another FSPX program missing | | 5 | + #674 (29 of 29) | full 485 s, device lost late: `lib_cs_02229` | | 6 | + library re-translated with #674 + #1662 | full 482 s, device lost late: VK_EXT_device_fault type 2 (write, 4 KiB precision) + type 6, last checkpoint a dispatch of `lib_cs_00928` on a compute queue, about 49 commands into the list | - With #1631, the cap line prints once per run (63 MiB copied) and the address goes to the scratch window. No device loss at the cap in runs 2 to 6. - Run 6 matches @QemmHD's report: the same program and kind of fault, with the default window cap instead of 1024 MiB. So the cap is not what drives this stop. - My reading of why #1273 alone would not reach it: a translated shader forms `heap_base + address` for an address it read from buffer data, so the pool window needs GPU memory at that same offset from `heap_base`. That is the layout RT-TITLE-RESERVATION-ARENA describes. An import at a driver-chosen address only covers the addresses the layer itself rebases. Not tested. Happy to run a branch for either of you on this machine. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: MEM-DIFF-COMPARE-AND-HARNESS-ERRORS -> #1679

<!-- gh-comment-id:7156403362 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: MEM-DIFF-COMPARE-AND-HARNESS-ERRORS -> #1679
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: INTERP-HW-PROBE-CLI-AND-ORACLE - harden tools/interp_hw_probe.py CLI validation (--arch/--kernels/--seeds), oracle batch/word validation, and Unavailable/RuntimeError handling

<!-- gh-comment-id:7156453676 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: INTERP-HW-PROBE-CLI-AND-ORACLE - harden tools/interp_hw_probe.py CLI validation (--arch/--kernels/--seeds), oracle batch/word validation, and Unavailable/RuntimeError handling
Author
Owner

@TheGeogeo commented on GitHub (Nov 25, 2026):

done: RT-PIPELINE-COMPILE-WORKERS -> #1547

<!-- gh-comment-id:7156466265 --> @TheGeogeo commented on GitHub (Nov 25, 2026): done: RT-PIPELINE-COMPILE-WORKERS -> #1547
Author
Owner

@ImLele69 commented on GitHub (Nov 25, 2026):

claiming: RT-ALLOC-NO-REBAR-RETRIES - DeviceState::allocate and memory_type_order (runtime/src/vulkan_memory.h) when VRAM or the BAR window is full, on an NVIDIA card without Resizable BAR. Three changes: a texture or staging buffer tries the DEVICE_LOCAL | HOST_VISIBLE type of the ~256 MiB BAR heap last instead of second, so it leaves the window to the arena and upload buffers; an out-of-host-memory answer from that window, or from a type whose last six tries all failed in the past two seconds, is believed the first time instead of retried six times with sleeps under memory_mutex; a reserved-resource tile heap prefers DEVICE_LOCAL instead of requiring it, so with VRAM full it comes from system memory instead of failing. Seen on story-load boots under Wine 11.21 with an RTX 2070 SUPER 8 GB. Not the same code as #1678 (geometry view blocks) or #443. AI-assisted (Claude Code).

<!-- gh-comment-id:7156470795 --> @ImLele69 commented on GitHub (Nov 25, 2026): claiming: RT-ALLOC-NO-REBAR-RETRIES - `DeviceState::allocate` and `memory_type_order` (`runtime/src/vulkan_memory.h`) when VRAM or the BAR window is full, on an NVIDIA card without Resizable BAR. Three changes: a texture or staging buffer tries the DEVICE_LOCAL | HOST_VISIBLE type of the ~256 MiB BAR heap last instead of second, so it leaves the window to the arena and upload buffers; an out-of-host-memory answer from that window, or from a type whose last six tries all failed in the past two seconds, is believed the first time instead of retried six times with sleeps under `memory_mutex`; a reserved-resource tile heap prefers DEVICE_LOCAL instead of requiring it, so with VRAM full it comes from system memory instead of failing. Seen on story-load boots under Wine 11.21 with an RTX 2070 SUPER 8 GB. Not the same code as #1678 (geometry view blocks) or #443. AI-assisted (Claude Code).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: INTERP-HW-PROBE-CLI-AND-ORACLE -> #1680

<!-- gh-comment-id:7156486101 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: INTERP-HW-PROBE-CLI-AND-ORACLE -> #1680
Author
Owner

@ImLele69 commented on GitHub (Nov 25, 2026):

done: RT-ALLOC-NO-REBAR-RETRIES -> #1681

<!-- gh-comment-id:7156486414 --> @ImLele69 commented on GitHub (Nov 25, 2026): done: RT-ALLOC-NO-REBAR-RETRIES -> #1681
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: VINTERP-HW-PROBE-ORACLE-AND-CLI - harden tools/vinterp_hw_probe.py CLI validation, run_hw() batch/tuple/rejection validation, and translator/hw harness error exits

<!-- gh-comment-id:7156493260 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: VINTERP-HW-PROBE-ORACLE-AND-CLI - harden tools/vinterp_hw_probe.py CLI validation, run_hw() batch/tuple/rejection validation, and translator/hw harness error exits
Author
Owner

@hugo0024 commented on GitHub (Nov 25, 2026):

done: SHADER-PERMUTE-EAGER -> #1683

<!-- gh-comment-id:7156525808 --> @hugo0024 commented on GitHub (Nov 25, 2026): done: SHADER-PERMUTE-EAGER -> #1683
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: VINTERP-HW-PROBE-ORACLE-AND-CLI -> #1682

<!-- gh-comment-id:7156535543 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: VINTERP-HW-PROBE-ORACLE-AND-CLI -> #1682
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: TEXOFF-PROBE-ORACLE-VALIDATION - validate oracle batch/word payloads and handle Unavailable/RuntimeError cleanly in tools/texoff_probe.py

<!-- gh-comment-id:7156550196 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: TEXOFF-PROBE-ORACLE-VALIDATION - validate oracle batch/word payloads and handle Unavailable/RuntimeError cleanly in tools/texoff_probe.py
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: TEXOFF-PROBE-ORACLE-VALIDATION -> #1684

<!-- gh-comment-id:7156577809 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: TEXOFF-PROBE-ORACLE-VALIDATION -> #1684
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: FSPX-PROLOGUE-PROBE-ORACLE-AND-CLI - fix tools/fspx_prologue_probe.py empty-batch false pass, short/tuple StopIteration/IndexError crashes, RuntimeError handling, and --hw-arch validation

<!-- gh-comment-id:7156604721 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: FSPX-PROLOGUE-PROBE-ORACLE-AND-CLI - fix tools/fspx_prologue_probe.py empty-batch false pass, short/tuple StopIteration/IndexError crashes, RuntimeError handling, and --hw-arch validation
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: FSPX-PROLOGUE-PROBE-ORACLE-AND-CLI -> #1685

<!-- gh-comment-id:7156637806 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: FSPX-PROLOGUE-PROBE-ORACLE-AND-CLI -> #1685
Author
Owner

@QemmHD commented on GitHub (Nov 25, 2026):

finding: the device proxy's slot 133 title-placed stand-in leaks Vulkan objects at device teardown. On main (42537e7b6) under LEONIDA_VK_VALIDATION=1, a slot 133 placed texture that takes the stand-in path (a 1280×720 format-118 depth target without UAV, and also a plain RGBA8 texture) leaves 57-63 objects (VkSemaphore, VkDeviceMemory, …) at vkDestroyDevice (VUID-vkDestroyDevice-device-05137). Something in the stand-in keeps a device reference after the resource is released. Tests don't catch it because gpu.validation_errors() is read before the device is destroyed. Seen independently by adrianmjim (RX 7900 XT) and on an RTX 4070 SUPER; details on #1558. No game files needed: xbox_d16s8_refused_uav with validation on shows it.

@Tyrannys thanks for the run table. Run 6 confirms the WRITE_INVALID stop is independent of the cap, and the heap_base + address point is the key one: the pool window needs GPU memory at the same offset from the arena's heap base, i.e. the RT-TITLE-RESERVATION-ARENA layout. I'm trying a local experiment along those lines and will share a branch for you to run if it gets past the stop.

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

<!-- gh-comment-id:7156645667 --> @QemmHD commented on GitHub (Nov 25, 2026): finding: the device proxy's slot 133 title-placed stand-in leaks Vulkan objects at device teardown. On `main` (42537e7b6) under `LEONIDA_VK_VALIDATION=1`, a slot 133 placed texture that takes the stand-in path (a 1280×720 format-118 depth target without UAV, and also a plain RGBA8 texture) leaves 57-63 objects (VkSemaphore, VkDeviceMemory, …) at `vkDestroyDevice` (VUID-vkDestroyDevice-device-05137). Something in the stand-in keeps a device reference after the resource is released. Tests don't catch it because `gpu.validation_errors()` is read before the device is destroyed. Seen independently by adrianmjim (RX 7900 XT) and on an RTX 4070 SUPER; details on #1558. No game files needed: `xbox_d16s8_refused_uav` with validation on shows it. @Tyrannys thanks for the run table. Run 6 confirms the WRITE_INVALID stop is independent of the cap, and the `heap_base + address` point is the key one: the pool window needs GPU memory at the same offset from the arena's heap base, i.e. the RT-TITLE-RESERVATION-ARENA layout. I'm trying a local experiment along those lines and will share a branch for you to run if it gets past the stop. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: TRANSLATE-PIPELINE-COMPUTE-IO-AND-WORKER - harden scripts/translate_pipeline_compute.py index validation, published .spv mode, child worker cleanup without masking parent exceptions, and cross-platform tests

<!-- gh-comment-id:7156665714 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: TRANSLATE-PIPELINE-COMPUTE-IO-AND-WORKER - harden scripts/translate_pipeline_compute.py index validation, published .spv mode, child worker cleanup without masking parent exceptions, and cross-platform tests
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: TRANSLATE-PIPELINE-COMPUTE-IO-AND-WORKER -> #1686

<!-- gh-comment-id:7156718183 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: TRANSLATE-PIPELINE-COMPUTE-IO-AND-WORKER -> #1686
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: VCMP16-OPSEL-PROBE-ORACLE-VALIDATION - validate oracle batch shape, non-bool int word elements, and Unavailable/RuntimeError lifecycle in tools/vcmp16_opsel_probe.py

<!-- gh-comment-id:7156727807 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: VCMP16-OPSEL-PROBE-ORACLE-VALIDATION - validate oracle batch shape, non-bool int word elements, and Unavailable/RuntimeError lifecycle in tools/vcmp16_opsel_probe.py
Author
Owner

@sodove commented on GitHub (Nov 25, 2026):

claiming: WIN-BOOT-PRIVATE-MINIDUMP — add opt-in, out-of-process crash capture to the native Windows boot harness. Save a local minidump and a text stack for an unhandled exception or unexpected nonzero exit, with synthetic Windows tests. Related: #994 covers the in-process exception log. This work is in the boot harness.

AI-assisted (OpenAI Codex).

<!-- gh-comment-id:7156744122 --> @sodove commented on GitHub (Nov 25, 2026): claiming: WIN-BOOT-PRIVATE-MINIDUMP — add opt-in, out-of-process crash capture to the native Windows boot harness. Save a local minidump and a text stack for an unhandled exception or unexpected nonzero exit, with synthetic Windows tests. Related: #994 covers the in-process exception log. This work is in the boot harness. AI-assisted (OpenAI Codex).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: VCMP16-OPSEL-PROBE-ORACLE-VALIDATION -> #1687

<!-- gh-comment-id:7156762133 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: VCMP16-OPSEL-PROBE-ORACLE-VALIDATION -> #1687
Author
Owner

@Undefined3301 commented on GitHub (Nov 25, 2026):

finding: two layer changes move the world-start WRITE_INVALID but do not remove it on an RTX 4080. With main 42537e7b6 + #1631 (zeroed cap scratch) and the window cap raised to 4 GiB (arena 4 GiB), the first stop is the known type-2 write on a compute queue at about 250 s (last NV checkpoint: a dispatch of library/lib_cs_00928, command 45/46 of its list; library/lib_cs_01468 in flight on two other compute queues). Translating a GPU-only table V# through its paired CPU range (title_gpu_views) moved it to about 470 s; also giving title pages that are reserved but not committed a zeroed window moved it to about 200 s with a warm pipeline cache. LEONIDA_COMPUTE_INPUTS=lib_cs_00928 reports every s4/s5 descriptor as import or arena-shadow (none untranslated-title), and the write address is a title VA, so it is not one of the descriptors the execute-time scan saw. Skipping lib_cs_00928 is not a fix per the earlier reduction (the fault moves to the next program); the heap_base + address / RT-TITLE-RESERVATION-ARENA direction looks necessary. Location: runtime/shims/d3d12_vulkan_device.cpp::resolve_title_memory and runtime/src/title_page_watch.h::cpu_range; the local changes also add a d3d12_title_va_test --gpu-view mode (passes, along with the default, geometry and window-cap modes). AI-assisted (Claude Code).

finding: the pipeline library's remaining graphics programs translate from listings made by the pure-Python RDNA2 decoder. Taking the 1,729 programs absent from spirv/fspx_gfx after the llvm-mc build, re-disassembling their FSPX code with tools/rdna2_decode.py (the existing shader_disasm.py --backend python) and translating with --wave64-emulate produced 1,627 modules that pass spirv-val; 78 still fail on DPP on v_cmpx, 18 on s_getpc_b64 destinations and 6 have no shader container (one of the 6 is lib_vs_21468). fspx_gfx now has 18,735 modules (llvm-mc build: 17,108). The six instructions llvm-mc rejects in the example mesh program are ordinary s_load_dwordx4/s_buffer_load_*, mostly with an s[104:107] descriptor spanning vcc_lo/vcc_hi; rdna2_decode prints them and the translator's printed-encoding check validates every word. No repository change was made for this (the listings are generated in the user's work folder); a --backend python fallback in the pipeline-library build would make it reproducible. AI-assisted (Claude Code).

<!-- gh-comment-id:7156808927 --> @Undefined3301 commented on GitHub (Nov 25, 2026): finding: two layer changes move the world-start WRITE_INVALID but do not remove it on an RTX 4080. With main 42537e7b6 + #1631 (zeroed cap scratch) and the window cap raised to 4 GiB (arena 4 GiB), the first stop is the known type-2 write on a compute queue at about 250 s (last NV checkpoint: a dispatch of `library/lib_cs_00928`, command 45/46 of its list; `library/lib_cs_01468` in flight on two other compute queues). Translating a GPU-only table V# through its paired CPU range (`title_gpu_views`) moved it to about 470 s; also giving title pages that are reserved but not committed a zeroed window moved it to about 200 s with a warm pipeline cache. `LEONIDA_COMPUTE_INPUTS=lib_cs_00928` reports every s4/s5 descriptor as `import` or `arena-shadow` (none `untranslated-title`), and the write address is a title VA, so it is not one of the descriptors the execute-time scan saw. Skipping `lib_cs_00928` is not a fix per the earlier reduction (the fault moves to the next program); the `heap_base + address` / RT-TITLE-RESERVATION-ARENA direction looks necessary. Location: `runtime/shims/d3d12_vulkan_device.cpp::resolve_title_memory` and `runtime/src/title_page_watch.h::cpu_range`; the local changes also add a `d3d12_title_va_test --gpu-view` mode (passes, along with the default, geometry and window-cap modes). AI-assisted (Claude Code). finding: the pipeline library's remaining graphics programs translate from listings made by the pure-Python RDNA2 decoder. Taking the 1,729 programs absent from `spirv/fspx_gfx` after the llvm-mc build, re-disassembling their FSPX code with `tools/rdna2_decode.py` (the existing `shader_disasm.py --backend python`) and translating with `--wave64-emulate` produced 1,627 modules that pass `spirv-val`; 78 still fail on `DPP on v_cmpx`, 18 on `s_getpc_b64` destinations and 6 have no shader container (one of the 6 is `lib_vs_21468`). `fspx_gfx` now has 18,735 modules (llvm-mc build: 17,108). The six instructions llvm-mc rejects in the example mesh program are ordinary `s_load_dwordx4`/`s_buffer_load_*`, mostly with an `s[104:107]` descriptor spanning `vcc_lo`/`vcc_hi`; `rdna2_decode` prints them and the translator's printed-encoding check validates every word. No repository change was made for this (the listings are generated in the user's work folder); a `--backend python` fallback in the pipeline-library build would make it reproducible. AI-assisted (Claude Code).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: WORLD-ATLAS-ACCEL-BOUNDS-AND-FALLBACK - validate inputs (cells.ndim, order, finite margin, C-contiguous packed_cells) and native output bounds/finiteness in tools/world_atlas_accel.py

<!-- gh-comment-id:7156815392 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: WORLD-ATLAS-ACCEL-BOUNDS-AND-FALLBACK - validate inputs (cells.ndim, order, finite margin, C-contiguous packed_cells) and native output bounds/finiteness in tools/world_atlas_accel.py
Author
Owner

@whoalin1 commented on GitHub (Nov 25, 2026):

finding: tools/crosslane_fuzz.py has no --pc-tail-ubo plumbing — on GPUs with maxPushConstantsSize=128 (e.g. AMD gfx1036 iGPU) every vk_compute_test exits 77 without LEONIDA_PC_TAIL_UBO, and with the env set but the SPIR-V built without --pc-tail-ubo all programs mismatch (0xeeeeeeee dumps). run_gpu_tests.py already handles this env; the fuzzer needs the same. Needs the AMD iGPU to reproduce. (Posted here since #14 hit the 2500-comment cap.)

<!-- gh-comment-id:7156819685 --> @whoalin1 commented on GitHub (Nov 25, 2026): finding: tools/crosslane_fuzz.py has no `--pc-tail-ubo` plumbing — on GPUs with maxPushConstantsSize=128 (e.g. AMD gfx1036 iGPU) every vk_compute_test exits 77 without LEONIDA_PC_TAIL_UBO, and with the env set but the SPIR-V built without --pc-tail-ubo all programs mismatch (0xeeeeeeee dumps). run_gpu_tests.py already handles this env; the fuzzer needs the same. Needs the AMD iGPU to reproduce. (Posted here since #14 hit the 2500-comment cap.)
Author
Owner

@CLHelper commented on GitHub (Nov 25, 2026):

released: RT-HANG-DUMP - #576 closed; main has LEONIDA_STACKS (with #984), which covers it. AI-assisted.

<!-- gh-comment-id:7156833063 --> @CLHelper commented on GitHub (Nov 25, 2026): released: RT-HANG-DUMP - #576 closed; `main` has `LEONIDA_STACKS` (with #984), which covers it. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: WORLD-ATLAS-ACCEL-BOUNDS-AND-FALLBACK -> #1689

<!-- gh-comment-id:7156849925 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: WORLD-ATLAS-ACCEL-BOUNDS-AND-FALLBACK -> #1689
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: SMEM-NEG-PROBE-RUN-ERRORS - handle Unavailable/RuntimeError during oracle.run() and mask 32-bit words in tools/smem_neg_probe.py

<!-- gh-comment-id:7156857639 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: SMEM-NEG-PROBE-RUN-ERRORS - handle Unavailable/RuntimeError during oracle.run() and mask 32-bit words in tools/smem_neg_probe.py
Author
Owner

@MoonEyes commented on GitHub (Nov 25, 2026):

done: TEST-REQUIRE-SPIRV-TOOLS-EQ-1 -> #1677

<!-- gh-comment-id:7156863161 --> @MoonEyes commented on GitHub (Nov 25, 2026): done: TEST-REQUIRE-SPIRV-TOOLS-EQ-1 -> #1677
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: SMEM-NEG-PROBE-RUN-ERRORS -> #1690

<!-- gh-comment-id:7156881785 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: SMEM-NEG-PROBE-RUN-ERRORS -> #1690
Author
Owner

@Tyrannys commented on GitHub (Nov 25, 2026):

claiming: RT-SLOT133-STANDIN-LEAK - release the Vulkan objects the device proxy's slot 133 title-placed stand-in keeps after the resource goes, so vkDestroyDevice reports no leaked objects (VUID-vkDestroyDevice-device-05137) under LEONIDA_VK_VALIDATION=1; synthetic test that checks validation after device teardown. Builds on #1558 where it overlaps. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7156923617 --> @Tyrannys commented on GitHub (Nov 25, 2026): claiming: RT-SLOT133-STANDIN-LEAK - release the Vulkan objects the device proxy's slot 133 title-placed stand-in keeps after the resource goes, so vkDestroyDevice reports no leaked objects (VUID-vkDestroyDevice-device-05137) under LEONIDA_VK_VALIDATION=1; synthetic test that checks validation after device teardown. Builds on #1558 where it overlaps. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@OreoFR commented on GitHub (Nov 25, 2026):

done: RT-SLOT57-DEPTH-RASTER -> #1691 (stacked on #1671). Slot 57 native PSOs now take depth/stencil (DB_DEPTH_CONTROL, DB_STENCIL_CONTROL, DB_STENCILREFMASK(_BF)), cull/front face (PA_SU_SC_MODE_CNTL) and depth clip (PA_CL_CLIP_CNTL) from state blob A; all 25,471 graphics records of 1.0.2.1 map. Depth bias stays undecoded. Real boot on an RTX 4070 Laptop: no refused pipeline, first-run pages unchanged; the 3D effect needs a world frame to show.

<!-- gh-comment-id:7156927917 --> @OreoFR commented on GitHub (Nov 25, 2026): done: RT-SLOT57-DEPTH-RASTER -> #1691 (stacked on #1671). Slot 57 native PSOs now take depth/stencil (`DB_DEPTH_CONTROL`, `DB_STENCIL_CONTROL`, `DB_STENCILREFMASK(_BF)`), cull/front face (`PA_SU_SC_MODE_CNTL`) and depth clip (`PA_CL_CLIP_CNTL`) from state blob A; all 25,471 graphics records of 1.0.2.1 map. Depth bias stays undecoded. Real boot on an RTX 4070 Laptop: no refused pipeline, first-run pages unchanged; the 3D effect needs a world frame to show.
Author
Owner

@thiefyzheng commented on GitHub (Nov 25, 2026):

claiming: RT-DEPTHBOUNDS-STREAM-EXTRAS — @djrolfes' integration finding on #815 (comment 7156015786): PipelineState::prepare (runtime/shims/d3d12_vulkan_device.cpp ~7059 on main 42537e7b6) parses the retained console stream but calls create_graphics(stream.graphics, &stream.ms, &stream.as) without stream.extras, so DepthBoundsTestEnable from a DEPTH_STENCIL1/2 stream is silently dropped on the on-demand stream-realization path while the eager CreatePipelineState branch passes it.

Plan: branch from #815's head efea97331 (the GraphicsStreamExtras argument only exists there), pass the stream's extras through the prepare path (and back_stencil if the stream carries it), add a stream-realization regression test, verify CPU-only and say not-GPU-confirmed. PR will say Depends on: #815, and @kotekompotek is welcome to fold it into #815 instead of taking the stacked PR — say so and I'll drop the branch. AI-assisted.

<!-- gh-comment-id:7156944266 --> @thiefyzheng commented on GitHub (Nov 25, 2026): claiming: RT-DEPTHBOUNDS-STREAM-EXTRAS — @djrolfes' integration finding on #815 (comment 7156015786): `PipelineState::prepare` (`runtime/shims/d3d12_vulkan_device.cpp` ~7059 on main 42537e7b6) parses the retained console stream but calls `create_graphics(stream.graphics, &stream.ms, &stream.as)` without `stream.extras`, so `DepthBoundsTestEnable` from a DEPTH_STENCIL1/2 stream is silently dropped on the on-demand stream-realization path while the eager `CreatePipelineState` branch passes it. Plan: branch from #815's head efea97331 (the `GraphicsStreamExtras` argument only exists there), pass the stream's extras through the `prepare` path (and `back_stencil` if the stream carries it), add a stream-realization regression test, verify CPU-only and say not-GPU-confirmed. PR will say Depends on: #815, and @kotekompotek is welcome to fold it into #815 instead of taking the stacked PR — say so and I'll drop the branch. AI-assisted.
Author
Owner

@sodove commented on GitHub (Nov 25, 2026):

done: WIN-BOOT-PRIVATE-MINIDUMP -> #1693

Windows x64: all 10 synthetic crash-monitor tests passed, including the boot wrapper's nonzero-exit and timer paths.

AI-assisted: yes

<!-- gh-comment-id:7156971981 --> @sodove commented on GitHub (Nov 25, 2026): done: WIN-BOOT-PRIVATE-MINIDUMP -> #1693 Windows x64: all 10 synthetic crash-monitor tests passed, including the boot wrapper's nonzero-exit and timer paths. AI-assisted: yes
Author
Owner

@whoalin1 commented on GitHub (Nov 25, 2026):

finding: d3d12_pipeline_library_host ctest crashes 0xc0000409 on BOTH RTX 4070 SUPER and AMD gfx1036 iGPU on current main (3f81d46ac) — reproduced during verification of #1671, identical on branch and baseline, so pre-existing. Needs investigation; may be the same class as the vk_compute_test 0xC0000005 AMD trigger reported earlier. No game files needed.

<!-- gh-comment-id:7156997734 --> @whoalin1 commented on GitHub (Nov 25, 2026): finding: `d3d12_pipeline_library_host` ctest crashes 0xc0000409 on BOTH RTX 4070 SUPER and AMD gfx1036 iGPU on current main (3f81d46ac) — reproduced during verification of #1671, identical on branch and baseline, so pre-existing. Needs investigation; may be the same class as the vk_compute_test 0xC0000005 AMD trigger reported earlier. No game files needed.
Author
Owner

@DadaCap commented on GitHub (Nov 25, 2026):

claiming: RT-PRESENT-CAPTURE-CACHED - VulkanPresenter::make_capture_buffer (runtime/src/vulkan_present.h) takes the first host-visible, coherent memory type, which on NVIDIA is an uncached one. Since the launch splash (#939), finish_startup_frame scans that buffer on the CPU for every frame the title presents before its first non-black one, with the submit and tracker locks held. On a large window (3824x1841 here, RTX 5080, NVIDIA 621.24) one title thread sits in that scan at 97 % CPU, other submissions starve ("device-stall: could not sample the submit lock for 15 s"), the game state stays 2 and the title's hang watchdog ends the boot at the landing screen at 108 to 126 s (2 of 3 runs on main 3f81d46ac, with or without #1558 and #1631; the third was still on the landing screen at 160 s). The change: choose a host-cached type first, as probe_read_source in the same file already does. With it the landing screen is reached at 20 s and the story load starts at 35 s. One function, no game files needed to review; the effect needs a real boot to see. AI-assisted (Claude Code).

<!-- gh-comment-id:7157004451 --> @DadaCap commented on GitHub (Nov 25, 2026): claiming: RT-PRESENT-CAPTURE-CACHED - `VulkanPresenter::make_capture_buffer` (`runtime/src/vulkan_present.h`) takes the first host-visible, coherent memory type, which on NVIDIA is an uncached one. Since the launch splash (#939), `finish_startup_frame` scans that buffer on the CPU for every frame the title presents before its first non-black one, with the submit and tracker locks held. On a large window (3824x1841 here, RTX 5080, NVIDIA 621.24) one title thread sits in that scan at 97 % CPU, other submissions starve ("device-stall: could not sample the submit lock for 15 s"), the game state stays 2 and the title's hang watchdog ends the boot at the landing screen at 108 to 126 s (2 of 3 runs on main 3f81d46ac, with or without #1558 and #1631; the third was still on the landing screen at 160 s). The change: choose a host-cached type first, as `probe_read_source` in the same file already does. With it the landing screen is reached at 20 s and the story load starts at 35 s. One function, no game files needed to review; the effect needs a real boot to see. AI-assisted (Claude Code).
Author
Owner

@Zalthor commented on GitHub (Nov 25, 2026):

Verification batch: 23 open pull requests that had no CI run. Each diff (merge-base..head) was applied to its own clean worktree at main 3f81d46ac (Windows 10, CPython 3.10.6, numpy 2.2.6, pytest 9.1.1, CPU only, no game files). All 23 apply cleanly, compile, and pass scripts/check_no_game_data.py on every changed file. I picked PRs whose files no other open pull request touches, so none of these has a duplicate. AI-assisted (Claude Code).

Method, per PR:

  1. PR tests: the changed test files, run the way CI runs them (python -I tests/x.py when the file has a __main__ runner, pytest otherwise).
  2. Repo checks: test_runner_calls_all_tests, test_tool_stdout_encoding, test_text_write_line_endings, test_ci_registration. Their failures were compared with main's.
  3. Catches the bug: the PR's test files only, put on unpatched main, run both the CI way and under pytest restricted to the newly added test functions.

Red on main right now: test_runner_calls_all_tests (test_feature_scan.py: test_out_named_like_the_optional_spirv_index is not called by its runner), test_tool_stdout_encoding (tools/compute_heap_layout_census.py) and test_ci_registration (2 subtests). None of the 23 adds a failure to these three. #1561 fixes the first two (checked below).

PR Verdict PR tests with the change New tests on unpatched main
#1305 PASS test_leonida_tui.py OK 2 new fail → fix confirmed
#1367 PASS test_save_keys.py OK (1 skip: chmod case self-skips on Windows) 3 of 4 new fail
#1422 PASS test_bcpack_tool.py OK 8 of 10 new fail
#1429 PASS test_bvh_geometry_check.py OK 5 of 5 new fail
#1434 PASS, macOS fix not reproducible here test_skin_streams.py OK new test passes on main too: the bug is APFS-only (normcase already folds case on Windows)
#1439 PASS, test-only test_build_runtime_cmake.py OK no new test functions; the locked-recorder.exe race was not reproduced
#1453 PASS, macOS fix not reproducible here test_world_drawable_verify.py, test_world_drawable_verify_archive_aliases.py OK new test passes on main too: same APFS-only case as #1434
#1454 PASS test_psocache_inspect.py OK 6 of 7 new fail
#1457 PASS test_cpu_ref.py OK 23 of 27 new fail
#1460 PASS test_anim_index.py OK 10 of 11 new fail
#1463 PASS test_psin_data.py OK 3 of 3 new fail
#1486 PASS test_glb_inspect.py OK (1 skip: symlinks unavailable without Developer Mode) 8 of 9 new fail
#1500 PASS test_dstorage_census.py OK 5 of 7 new fail
#1503 PASS test_int3_cause.py OK 14 of 15 new fail
#1506 PASS test_world_grid_atlas.py OK (1 skip: POSIX permission bits) 25 of 27 new fail
#1538 PASS test_bcpack_history_calib.py OK 3 of 3 new fail
#1556 PASS test_op_reach.py OK 8 of 8 new fail
#1561 PASS test_runner_calls_all_tests and test_tool_stdout_encoding both go from FAIL on main to OK; test_feature_scan.py, test_compute_heap_layout_census.py OK n/a (repo-check fix)
#1601 PASS test_amd_swizzle.py OK 5 of 6 new fail under pytest. Its python -I runner sits above these functions, so only pytest runs them; CI does run this file under pytest (HAVE_NUMPY = marker). The layout predates this PR
#1619 PASS test_f16misc_diff.py OK 5 of 6 new fail
#1621 PASS test_valu_int_diff.py OK 4 of 6 new fail
#1622 PASS test_tile_probe.py OK (1 skip: -I can import Pillow here) 4 of 5 new fail
#1624 PASS test_sad_diff.py OK 4 of 6 new fail

"N of M new fail" counts the test functions the PR adds; the ones that pass on main are guard cases that pin existing behavior.

Not covered: no Linux or macOS run, no line-by-line code review, Python 3.10 rather than CI's 3.12, and numpy 2.2.6 / pytest 9.1.1 rather than the pinned 2.5.5 / 9.2.0. Heads tested are the ones current at the time of posting; a force-push after this voids the row.

<!-- gh-comment-id:7157070042 --> @Zalthor commented on GitHub (Nov 25, 2026): Verification batch: 23 open pull requests that had no CI run. Each diff (merge-base..head) was applied to its own clean worktree at `main` `3f81d46ac` (Windows 10, CPython 3.10.6, numpy 2.2.6, pytest 9.1.1, CPU only, no game files). All 23 apply cleanly, compile, and pass `scripts/check_no_game_data.py` on every changed file. I picked PRs whose files no other open pull request touches, so none of these has a duplicate. AI-assisted (Claude Code). Method, per PR: 1. **PR tests:** the changed test files, run the way CI runs them (`python -I tests/x.py` when the file has a `__main__` runner, pytest otherwise). 2. **Repo checks:** `test_runner_calls_all_tests`, `test_tool_stdout_encoding`, `test_text_write_line_endings`, `test_ci_registration`. Their failures were compared with `main`'s. 3. **Catches the bug:** the PR's test files only, put on unpatched `main`, run both the CI way and under pytest restricted to the newly added test functions. **Red on `main` right now:** `test_runner_calls_all_tests` (`test_feature_scan.py: test_out_named_like_the_optional_spirv_index` is not called by its runner), `test_tool_stdout_encoding` (`tools/compute_heap_layout_census.py`) and `test_ci_registration` (2 subtests). None of the 23 adds a failure to these three. #1561 fixes the first two (checked below). | PR | Verdict | PR tests with the change | New tests on unpatched `main` | |---|---|---|---| | #1305 | PASS | `test_leonida_tui.py` OK | 2 new fail → fix confirmed | | #1367 | PASS | `test_save_keys.py` OK (1 skip: chmod case self-skips on Windows) | 3 of 4 new fail | | #1422 | PASS | `test_bcpack_tool.py` OK | 8 of 10 new fail | | #1429 | PASS | `test_bvh_geometry_check.py` OK | 5 of 5 new fail | | #1434 | PASS, macOS fix not reproducible here | `test_skin_streams.py` OK | new test passes on `main` too: the bug is APFS-only (`normcase` already folds case on Windows) | | #1439 | PASS, test-only | `test_build_runtime_cmake.py` OK | no new test functions; the locked-`recorder.exe` race was not reproduced | | #1453 | PASS, macOS fix not reproducible here | `test_world_drawable_verify.py`, `test_world_drawable_verify_archive_aliases.py` OK | new test passes on `main` too: same APFS-only case as #1434 | | #1454 | PASS | `test_psocache_inspect.py` OK | 6 of 7 new fail | | #1457 | PASS | `test_cpu_ref.py` OK | 23 of 27 new fail | | #1460 | PASS | `test_anim_index.py` OK | 10 of 11 new fail | | #1463 | PASS | `test_psin_data.py` OK | 3 of 3 new fail | | #1486 | PASS | `test_glb_inspect.py` OK (1 skip: symlinks unavailable without Developer Mode) | 8 of 9 new fail | | #1500 | PASS | `test_dstorage_census.py` OK | 5 of 7 new fail | | #1503 | PASS | `test_int3_cause.py` OK | 14 of 15 new fail | | #1506 | PASS | `test_world_grid_atlas.py` OK (1 skip: POSIX permission bits) | 25 of 27 new fail | | #1538 | PASS | `test_bcpack_history_calib.py` OK | 3 of 3 new fail | | #1556 | PASS | `test_op_reach.py` OK | 8 of 8 new fail | | #1561 | PASS | `test_runner_calls_all_tests` and `test_tool_stdout_encoding` both go from FAIL on `main` to OK; `test_feature_scan.py`, `test_compute_heap_layout_census.py` OK | n/a (repo-check fix) | | #1601 | PASS | `test_amd_swizzle.py` OK | 5 of 6 new fail under pytest. Its `python -I` runner sits above these functions, so only pytest runs them; CI does run this file under pytest (`HAVE_NUMPY =` marker). The layout predates this PR | | #1619 | PASS | `test_f16misc_diff.py` OK | 5 of 6 new fail | | #1621 | PASS | `test_valu_int_diff.py` OK | 4 of 6 new fail | | #1622 | PASS | `test_tile_probe.py` OK (1 skip: `-I` can import Pillow here) | 4 of 5 new fail | | #1624 | PASS | `test_sad_diff.py` OK | 4 of 6 new fail | "N of M new fail" counts the test functions the PR adds; the ones that pass on `main` are guard cases that pin existing behavior. Not covered: no Linux or macOS run, no line-by-line code review, Python 3.10 rather than CI's 3.12, and numpy 2.2.6 / pytest 9.1.1 rather than the pinned 2.5.5 / 9.2.0. Heads tested are the ones current at the time of posting; a force-push after this voids the row.
Author
Owner

@OreoFR commented on GitHub (Nov 25, 2026):

claiming: RT-DUAL-SOURCE-BLEND - dual-source (SRC1) blending in the Vulkan layer, and on slot 57 native PSOs.

D3D12_BLEND_SRC1_* factors reach Vulkan, but the translated pixel shader declares SV_Target1 at Location 1, while Vulkan takes the second source from Location 0, Index 1. So a PSO that blends with SRC1 can't be built correctly today. #1671 keeps the 1,937 slot 57 records that use these factors (CB_BLEND0 0xf1010f01, colour ONE/SRC1_COLOR, alpha ONE/SRC1_ALPHA) on blending off for that reason.

Scope:

  • When a PSO's blend state uses a SRC1 factor, rewrite the fragment module's Location 1 colour output to Location 0, Index 1 at pipeline creation, alongside the existing B4G4R4A4 output rewrite (rgba4_fragment.h). A module that has outputs past Location 1, or no second output, is refused as today.
  • Let #1671's blend mapping take the SRC1 factors.
  • Add a portable test of the SPIR-V rewrite, and check the result on a real boot with LEONIDA_VK_VALIDATION=1.

Depends on #1671.

<!-- gh-comment-id:7157103042 --> @OreoFR commented on GitHub (Nov 25, 2026): claiming: RT-DUAL-SOURCE-BLEND - dual-source (`SRC1`) blending in the Vulkan layer, and on slot 57 native PSOs. `D3D12_BLEND_SRC1_*` factors reach Vulkan, but the translated pixel shader declares `SV_Target1` at `Location 1`, while Vulkan takes the second source from `Location 0, Index 1`. So a PSO that blends with `SRC1` can't be built correctly today. #1671 keeps the 1,937 slot 57 records that use these factors (`CB_BLEND0 0xf1010f01`, colour `ONE`/`SRC1_COLOR`, alpha `ONE`/`SRC1_ALPHA`) on blending off for that reason. Scope: - When a PSO's blend state uses a `SRC1` factor, rewrite the fragment module's `Location 1` colour output to `Location 0, Index 1` at pipeline creation, alongside the existing `B4G4R4A4` output rewrite (`rgba4_fragment.h`). A module that has outputs past `Location 1`, or no second output, is refused as today. - Let #1671's blend mapping take the `SRC1` factors. - Add a portable test of the SPIR-V rewrite, and check the result on a real boot with `LEONIDA_VK_VALIDATION=1`. Depends on #1671.
Author
Owner

@DadaCap commented on GitHub (Nov 25, 2026):

done: RT-PRESENT-CAPTURE-CACHED -> #1694

<!-- gh-comment-id:7157106878 --> @DadaCap commented on GitHub (Nov 25, 2026): done: RT-PRESENT-CAPTURE-CACHED -> #1694
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RGBA4-FRAGMENT-VALIDATION-AND-TESTS - harden runtime/src/rgba4_fragment.h SPIR-V output quantization (allow shaders with no masked outputs and no float32 type, require OpMemoryModel before emitting GLSL.std.450 import, handle OpGroupDecorate locations, reject OpCopyMemorySized and untracked pointer aliases/escapes on masked outputs, guard ID bound overflow) and add portable runtime/test/rgba4_fragment_test.cpp.

<!-- gh-comment-id:7157180890 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RGBA4-FRAGMENT-VALIDATION-AND-TESTS - harden `runtime/src/rgba4_fragment.h` SPIR-V output quantization (allow shaders with no masked outputs and no float32 type, require `OpMemoryModel` before emitting `GLSL.std.450` import, handle `OpGroupDecorate` locations, reject `OpCopyMemorySized` and untracked pointer aliases/escapes on masked outputs, guard ID bound overflow) and add portable `runtime/test/rgba4_fragment_test.cpp`.
Author
Owner

@thiefyzheng commented on GitHub (Nov 25, 2026):

done: RT-DEPTHBOUNDS-STREAM-EXTRAS -> #1695

The lazy console-PSO path (PipelineState::resolve_type, runtime/shims/d3d12_vulkan_device.cpp:7059) now passes stream.extras (depth-bounds flag) and stream.back_stencil (DEPTH_STENCIL2 back-face masks) to create_graphics, argument-for-argument like the eager branch — @djrolfes' finding. Two things the review added along the way, both in the same PR: the stream path's pipeline cache key (prepare_console_stream ~10367) hashed only the plain D3D12_DEPTH_STENCIL_DESC fields, so console PSOs differing only in depth-bounds or back-face masks collided (key now post-mixes them), and a d3d12_mesh_test case draws a DEPTH_STENCIL1 DepthBoundsTestEnable console stream through slot 86 inside OMSetDepthBounds(0,1)/(0.5,1) to catch the dropped flag.

Honest status: not compiled, not run, not GPU-confirmed on the author host (no GPU, no Vulkan SDK, MSVC-only tests). Verified by an independent mechanical review against the branch sources (create_graphics signature, PipelineStream field fills, test identifier scoping, fence/readback parity, slot 86, subobject 24) — details in the PR body. Guard demonstration on depth-bounds-capable hardware still owed.

Depends on: #815 (branched from its head efea97331; the PR diff carries its commit until it merges). @kotekompotek can fold it into #815 instead of a stacked PR — say so and the branch is dropped. AI-assisted (Claude Sonnet 5.5 implementation, GLM 5.3 Flash review).

<!-- gh-comment-id:7157183433 --> @thiefyzheng commented on GitHub (Nov 25, 2026): done: RT-DEPTHBOUNDS-STREAM-EXTRAS -> #1695 The lazy console-PSO path (`PipelineState::resolve_type`, `runtime/shims/d3d12_vulkan_device.cpp:7059`) now passes `stream.extras` (depth-bounds flag) and `stream.back_stencil` (DEPTH_STENCIL2 back-face masks) to `create_graphics`, argument-for-argument like the eager branch — @djrolfes' finding. Two things the review added along the way, both in the same PR: the stream path's pipeline cache key (`prepare_console_stream` ~10367) hashed only the plain `D3D12_DEPTH_STENCIL_DESC` fields, so console PSOs differing only in depth-bounds or back-face masks collided (key now post-mixes them), and a `d3d12_mesh_test` case draws a DEPTH_STENCIL1 `DepthBoundsTestEnable` console stream through slot 86 inside `OMSetDepthBounds(0,1)`/`(0.5,1)` to catch the dropped flag. Honest status: **not compiled, not run, not GPU-confirmed on the author host** (no GPU, no Vulkan SDK, MSVC-only tests). Verified by an independent mechanical review against the branch sources (create_graphics signature, PipelineStream field fills, test identifier scoping, fence/readback parity, slot 86, subobject 24) — details in the PR body. Guard demonstration on depth-bounds-capable hardware still owed. Depends on: #815 (branched from its head efea97331; the PR diff carries its commit until it merges). @kotekompotek can fold it into #815 instead of a stacked PR — say so and the branch is dropped. AI-assisted (Claude Sonnet 5.5 implementation, GLM 5.3 Flash review).
Author
Owner

@Tyrannys commented on GitHub (Nov 25, 2026):

claiming: RT-XMEM-HEAP-LOCK-DEADLOCK - the Debug-only hang in xmem_test's heap-lock section (kotekompotek's finding above). Measured on main: a toucher holding HeapLock calls the debug CRT's _aligned_free, which waits for the CRT's own heap lock, while another thread holds that lock in _calloc_dbg and waits for the process heap. xmem's fault lock isn't in the cycle, and RelWithDebInfo passes all three variants. Fix in the test: the "title" threads allocate with HeapAlloc/HeapFree on the process heap (what XMemAlloc's _aligned_malloc reduces to in a release CRT) instead of the test binary's own CRT. No game files. AI-assisted (Claude Code).

<!-- gh-comment-id:7157247346 --> @Tyrannys commented on GitHub (Nov 25, 2026): claiming: RT-XMEM-HEAP-LOCK-DEADLOCK - the Debug-only hang in `xmem_test`'s heap-lock section (kotekompotek's finding above). Measured on `main`: a toucher holding `HeapLock` calls the debug CRT's `_aligned_free`, which waits for the CRT's own heap lock, while another thread holds that lock in `_calloc_dbg` and waits for the process heap. xmem's fault lock isn't in the cycle, and RelWithDebInfo passes all three variants. Fix in the test: the "title" threads allocate with HeapAlloc/HeapFree on the process heap (what XMemAlloc's `_aligned_malloc` reduces to in a release CRT) instead of the test binary's own CRT. No game files. AI-assisted (Claude Code).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RGBA4-FRAGMENT-VALIDATION-AND-TESTS -> #1696

<!-- gh-comment-id:7157252441 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RGBA4-FRAGMENT-VALIDATION-AND-TESTS -> #1696
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: IMAGE-MEMORY-POOL-GUARDS-AND-EXCEPTION-SAFETY - harden runtime/src/image_memory.h (BlockRanges and ImageMemoryPool): reject zero size/alignment before allocating a driver block or decrementing retry-skip, make BlockRanges::allocate and ImageMemoryPool::allocate strong-exception-safe against std::bad_alloc without leaking driver memory or corrupting range accounting, guard zero-size BlockRanges::release, and invoke free_ outside mutex_ on failure paths; add regressions to runtime/test/image_memory_test.cpp.

<!-- gh-comment-id:7157274006 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: IMAGE-MEMORY-POOL-GUARDS-AND-EXCEPTION-SAFETY - harden `runtime/src/image_memory.h` (`BlockRanges` and `ImageMemoryPool`): reject zero `size`/`alignment` before allocating a driver block or decrementing retry-skip, make `BlockRanges::allocate` and `ImageMemoryPool::allocate` strong-exception-safe against `std::bad_alloc` without leaking driver memory or corrupting range accounting, guard zero-size `BlockRanges::release`, and invoke `free_` outside `mutex_` on failure paths; add regressions to `runtime/test/image_memory_test.cpp`.
Author
Owner

@kawaii-shakal commented on GitHub (Nov 25, 2026):

claiming: SHADER-SETHALT. s_sethalt 1 right before s_endpgm (and s_sethalt 0) translates as the end of the wave; s_sethalt 1 before more code stays refused. It is the last refusal of the 1.0.2.1 pipeline library (the one left by #583 and listed in #674). The dot4 exact-anchor refusal in the FidelityFX programs is already in #1662.

<!-- gh-comment-id:7157294504 --> @kawaii-shakal commented on GitHub (Nov 25, 2026): claiming: SHADER-SETHALT. `s_sethalt 1` right before `s_endpgm` (and `s_sethalt 0`) translates as the end of the wave; `s_sethalt 1` before more code stays refused. It is the last refusal of the 1.0.2.1 pipeline library (the one left by #583 and listed in #674). The dot4 exact-anchor refusal in the FidelityFX programs is already in #1662.
Author
Owner

@kawaii-shakal commented on GitHub (Nov 25, 2026):

done: SHADER-SETHALT -> #1697

<!-- gh-comment-id:7157302904 --> @kawaii-shakal commented on GitHub (Nov 25, 2026): done: SHADER-SETHALT -> #1697
Author
Owner

@Moriz82 commented on GitHub (Nov 25, 2026):

claiming: RT-POST-STORY-RUNTIME — follow-up integration to #984 for Linux/Proton and Windows. Bringing the runtime changes onto current main and testing the rebased tree. Includes XMem window carving (RT-XMEM-WINDOW-CARVE), queue value operations, and indirect graphics. The PR will credit Plaaasma and ivanepsilondelta and describe overlaps, including #622.

<!-- gh-comment-id:7157334772 --> @Moriz82 commented on GitHub (Nov 25, 2026): claiming: RT-POST-STORY-RUNTIME — follow-up integration to #984 for Linux/Proton and Windows. Bringing the runtime changes onto current main and testing the rebased tree. Includes XMem window carving (RT-XMEM-WINDOW-CARVE), queue value operations, and indirect graphics. The PR will credit Plaaasma and ivanepsilondelta and describe overlaps, including #622.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: IMAGE-MEMORY-POOL-GUARDS-AND-EXCEPTION-SAFETY -> #1698

<!-- gh-comment-id:7157339880 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: IMAGE-MEMORY-POOL-GUARDS-AND-EXCEPTION-SAFETY -> #1698
Author
Owner

@KoLolX3 commented on GitHub (Nov 25, 2026):

claiming: SEMANTIC-JOBS-POSITIVE — reject zero and negative --jobs values in scripts/run_semantic_tests.py instead of silently running serially; add CLI regressions for invalid values and a valid serial run. No game files or GPU; AI-assisted.

<!-- gh-comment-id:7157357875 --> @KoLolX3 commented on GitHub (Nov 25, 2026): claiming: SEMANTIC-JOBS-POSITIVE — reject zero and negative --jobs values in scripts/run_semantic_tests.py instead of silently running serially; add CLI regressions for invalid values and a valid serial run. No game files or GPU; AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: TITLE-VA-ALIAS-RANGE-AND-GAP-GUARDS - harden runtime/src/title_va_alias.h: reject null title_va in add(), return empty [va, va) from gap() when va is inside an existing range (preventing lo > va and unsigned span underflow), return 0 from title_overlap_end(lo, hi) when lo >= hi, and make add()/add_title_memory() strong-exception-safe via node pre-allocation; add regressions to runtime/test/title_va_alias_test.cpp.

<!-- gh-comment-id:7157362802 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: TITLE-VA-ALIAS-RANGE-AND-GAP-GUARDS - harden `runtime/src/title_va_alias.h`: reject null `title_va` in `add()`, return empty `[va, va)` from `gap()` when `va` is inside an existing range (preventing `lo > va` and unsigned span underflow), return 0 from `title_overlap_end(lo, hi)` when `lo >= hi`, and make `add()`/`add_title_memory()` strong-exception-safe via node pre-allocation; add regressions to `runtime/test/title_va_alias_test.cpp`.
Author
Owner

@DadaCap commented on GitHub (Nov 25, 2026):

claiming: RT-TITLE-HASH-WC-STREAM - DeviceState::refresh_title_textures (runtime/shims/d3d12_vulkan_device.cpp) hashes every byte of a mapped title texture of up to 4 MiB each sixth pass, with ordinary loads straight from the title's pages. Those pages are write-combined in the real boot, where such loads are not cached: measured on the intro (RTX 5080, Windows 11), one such hash takes 36 ms on average and up to 78 ms over 4,096 KiB, 30 to 41 of every 180 to 250 passes spend more than 33 ms hashing, and the title presents 24 frames a second where it paces itself for 30, with the movie's sound stuttering. The change: read write-combined memory for the every-byte hash through the streaming copy the file already has (copy_guarded), then hash the copy. With it the same hash takes 0.4 to 1.1 ms, no pass is over 10 ms and the intro holds 29.4 frames a second. Test: a mapped plane in ordinary and in write-combined pages, one byte changed where the sampled hash does not look. AI-assisted (Claude Code).

<!-- gh-comment-id:7157390683 --> @DadaCap commented on GitHub (Nov 25, 2026): claiming: RT-TITLE-HASH-WC-STREAM - `DeviceState::refresh_title_textures` (`runtime/shims/d3d12_vulkan_device.cpp`) hashes every byte of a mapped title texture of up to 4 MiB each sixth pass, with ordinary loads straight from the title's pages. Those pages are write-combined in the real boot, where such loads are not cached: measured on the intro (RTX 5080, Windows 11), one such hash takes 36 ms on average and up to 78 ms over 4,096 KiB, 30 to 41 of every 180 to 250 passes spend more than 33 ms hashing, and the title presents 24 frames a second where it paces itself for 30, with the movie's sound stuttering. The change: read write-combined memory for the every-byte hash through the streaming copy the file already has (`copy_guarded`), then hash the copy. With it the same hash takes 0.4 to 1.1 ms, no pass is over 10 ms and the intro holds 29.4 frames a second. Test: a mapped plane in ordinary and in write-combined pages, one byte changed where the sampled hash does not look. AI-assisted (Claude Code).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: TITLE-VA-ALIAS-RANGE-AND-GAP-GUARDS -> #1699

<!-- gh-comment-id:7157407731 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: TITLE-VA-ALIAS-RANGE-AND-GAP-GUARDS -> #1699
Author
Owner

@KoLolX3 commented on GitHub (Nov 25, 2026):

done: SEMANTIC-JOBS-POSITIVE -> #1700

<!-- gh-comment-id:7157416208 --> @KoLolX3 commented on GitHub (Nov 25, 2026): done: SEMANTIC-JOBS-POSITIVE -> #1700
Author
Owner

@NinsonD commented on GitHub (Nov 25, 2026):

Hi @djrolfes, I saw your finding about the XMem read-only fault tests under Wine.

I’d like to help investigate by preparing a small synthetic comparison of the relevant memory behavior on Windows and Wine, without game files. Is anyone already working on that reduction, and would you welcome an independent check?

I’m a first-time contributor to this repository and will share the exact environment and results, including any limitations. AI-assisted investigation.

<!-- gh-comment-id:7157444156 --> @NinsonD commented on GitHub (Nov 25, 2026): Hi @djrolfes, I saw your finding about the XMem read-only fault tests under Wine. I’d like to help investigate by preparing a small synthetic comparison of the relevant memory behavior on Windows and Wine, without game files. Is anyone already working on that reduction, and would you welcome an independent check? I’m a first-time contributor to this repository and will share the exact environment and results, including any limitations. AI-assisted investigation.
Author
Owner

@kawaii-shakal commented on GitHub (Nov 25, 2026):

finding: on the retail boot (RTX 5070 Ti, main c7e82e26e) GPU-read title data is kept twice, in title pages (commit + RAM) and as Vulkan copies; the 4 GiB arena sits in host memory although a ReBAR type exists, and imports below the arena fall back to arena shadows. Commit and RAM run out before the crash. Proposal with measurements: https://github.com/ubiquitarianism/leonida/issues/1702

<!-- gh-comment-id:7157448702 --> @kawaii-shakal commented on GitHub (Nov 25, 2026): finding: on the retail boot (RTX 5070 Ti, main c7e82e26e) GPU-read title data is kept twice, in title pages (commit + RAM) and as Vulkan copies; the 4 GiB arena sits in host memory although a ReBAR type exists, and imports below the arena fall back to arena shadows. Commit and RAM run out before the crash. Proposal with measurements: https://github.com/ubiquitarianism/leonida/issues/1702
Author
Owner

@OreoFR commented on GitHub (Nov 25, 2026):

done: RT-DUAL-SOURCE-BLEND -> #1703 (stacked on #1671). A PSO whose blend uses a SRC1 factor gets its fragment module's SV_Target1 (Location 1) moved to Location 0, Index 1 at pipeline creation, so the 1,937 dual-source slot 57 records now blend instead of drawing opaque. 1,378 of their 1,457 distinct pixel shaders have modules in the #1592 census, and all pass spirv-val after the rewrite; the other 79 are refused by the translator for other reasons. Real boot with LEONIDA_VK_VALIDATION=1 (RTX 4070 Laptop): no refused pipeline and no pipeline or shader validation error. No translator change, so no retranslation.

<!-- gh-comment-id:7157472405 --> @OreoFR commented on GitHub (Nov 25, 2026): done: RT-DUAL-SOURCE-BLEND -> #1703 (stacked on #1671). A PSO whose blend uses a `SRC1` factor gets its fragment module's `SV_Target1` (`Location 1`) moved to `Location 0, Index 1` at pipeline creation, so the 1,937 dual-source slot 57 records now blend instead of drawing opaque. 1,378 of their 1,457 distinct pixel shaders have modules in the #1592 census, and all pass spirv-val after the rewrite; the other 79 are refused by the translator for other reasons. Real boot with `LEONIDA_VK_VALIDATION=1` (RTX 4070 Laptop): no refused pipeline and no pipeline or shader validation error. No translator change, so no retranslation.
Author
Owner

@klikso commented on GitHub (Nov 25, 2026):

claiming: GPU-RTX3060TI-WIN-REFRESH - rerun of gpu-test-results/RTX3060Ti-Windows.txt (mine, #1113, on 3aa975421) on main 3f81d46ac. The old record lists d3d12_execute_indirect_validation as failed (fixed by #1066) and says no validation layer is installed; the new one has 273 shaders, 263 GPU cases (1 failure, cs_imgatomic_ext, #1518), 403 runtime tests with and without LEONIDA_VK_VALIDATION=1, and the fixtures that print an error under GPU-assisted validation. One file. AI-assisted (Claude Code).

<!-- gh-comment-id:7157494461 --> @klikso commented on GitHub (Nov 25, 2026): claiming: GPU-RTX3060TI-WIN-REFRESH - rerun of `gpu-test-results/RTX3060Ti-Windows.txt` (mine, #1113, on `3aa975421`) on `main` `3f81d46ac`. The old record lists `d3d12_execute_indirect_validation` as failed (fixed by #1066) and says no validation layer is installed; the new one has 273 shaders, 263 GPU cases (1 failure, `cs_imgatomic_ext`, #1518), 403 runtime tests with and without `LEONIDA_VK_VALIDATION=1`, and the fixtures that print an error under GPU-assisted validation. One file. AI-assisted (Claude Code).
Author
Owner

@klikso commented on GitHub (Nov 25, 2026):

done: GPU-RTX3060TI-WIN-REFRESH -> #1704

main 3f81d46ac, RTX 3060 Ti, Windows 11: 273/273 shaders; native 209/263 passed, 53 skipped, 1 failed; emulated 243/263, 19 skipped, 1 failed (cs_imgatomic_ext, #1518); runtime 391 of 403 passed, 12 skipped, 0 failed, the same under LEONIDA_VK_VALIDATION=1. AI-assisted (Claude Code).

<!-- gh-comment-id:7157505099 --> @klikso commented on GitHub (Nov 25, 2026): done: GPU-RTX3060TI-WIN-REFRESH -> #1704 `main` `3f81d46ac`, RTX 3060 Ti, Windows 11: 273/273 shaders; native 209/263 passed, 53 skipped, 1 failed; emulated 243/263, 19 skipped, 1 failed (`cs_imgatomic_ext`, #1518); runtime 391 of 403 passed, 12 skipped, 0 failed, the same under `LEONIDA_VK_VALIDATION=1`. AI-assisted (Claude Code).
Author
Owner

@x2Tweek commented on GitHub (Nov 25, 2026):

claiming: RT-VULKAN-COMPILE-STATUS

Add an opt-in stderr heartbeat while Vulkan graphics or compute PSO creation is in flight, with the active count, oldest age and finished count. Includes a synthetic formatting test. AI-assisted.

<!-- gh-comment-id:7157517798 --> @x2Tweek commented on GitHub (Nov 25, 2026): claiming: RT-VULKAN-COMPILE-STATUS Add an opt-in stderr heartbeat while Vulkan graphics or compute PSO creation is in flight, with the active count, oldest age and finished count. Includes a synthetic formatting test. AI-assisted.
Author
Owner

@DadaCap commented on GitHub (Nov 25, 2026):

done: RT-TITLE-HASH-WC-STREAM -> #1705

<!-- gh-comment-id:7157519220 --> @DadaCap commented on GitHub (Nov 25, 2026): done: RT-TITLE-HASH-WC-STREAM -> #1705
Author
Owner

@QemmHD commented on GitHub (Nov 25, 2026):

finding (update on the WRITE_INVALID stop; this corrects my earlier note): the faulting program never stores through a raw 64-bit pointer. Every store is a buffer store through a V#: either table register s5 slot 7 (12-byte records), or for the typed stores an entry of the directly indexed heap (s10) at a per-lane index taken from the low 24 bits of dword 15 of the 176-byte records in table s4 slot 14. Every descriptor the CPU can see before the submission is mapped and fine, so the bad one is picked on the GPU by some lane. Subtracting the arena base from the faulting number lands in committed write-combined pages just past the 16 GiB GPU-only view (attribute words 0x183/0x283). That fits a V# whose base is an unrebased address that the shader then offsets by the arena base. (The pool-reservation match I reported earlier was the CPU meaning of the raw number, most likely a coincidence; sorry for the noise, @Tyrannys @roanh47.)

Why unrebased V#s exist: add_console_heap imports the directly indexed resource heap as it is unless LEONIDA_GEOMETRY_MB is set, and the log says "0 title V#s rebased" for the whole run, while a dump of the heap holds 300+ plausible V#s with raw title bases. But rebasing what the heap scan finds isn't enough. LEONIDA_GEOMETRY_MB=512 (4,629 rebased), =1536 (2,987 rebased, no cap refusal) and a local switch that lets heap-scan V#s take general title windows (6,259 rebased) all end in the same fault. So the lane takes a descriptor the scan doesn't fix: not yet settled, outside what's scanned, or not a heap slot at all.

Next, I'm building a small env-gated store-trace tool. It makes one named program record, per store, the V# words, the lane index and the address it forms into a side buffer that's read back after the dispatch, even after a device loss. That would answer this in one run and be reusable for later losses. (Windows 11, RTX 4070 SUPER, main c7e82e26e + #1558 + #815.)

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

<!-- gh-comment-id:7157519493 --> @QemmHD commented on GitHub (Nov 25, 2026): finding (update on the WRITE_INVALID stop; this corrects my earlier note): the faulting program never stores through a raw 64-bit pointer. Every store is a buffer store through a V#: either table register s5 slot 7 (12-byte records), or for the typed stores an entry of the directly indexed heap (s10) at a **per-lane** index taken from the low 24 bits of dword 15 of the 176-byte records in table s4 slot 14. Every descriptor the CPU can see before the submission is mapped and fine, so the bad one is picked on the GPU by some lane. Subtracting the arena base from the faulting number lands in committed write-combined pages just past the 16 GiB GPU-only view (attribute words `0x183`/`0x283`). That fits a V# whose base is an **unrebased** address that the shader then offsets by the arena base. (The pool-reservation match I reported earlier was the CPU meaning of the raw number, most likely a coincidence; sorry for the noise, @Tyrannys @roanh47.) Why unrebased V#s exist: `add_console_heap` imports the directly indexed resource heap as it is unless `LEONIDA_GEOMETRY_MB` is set, and the log says "0 title V#s rebased" for the whole run, while a dump of the heap holds 300+ plausible V#s with raw title bases. But rebasing what the heap scan finds isn't enough. `LEONIDA_GEOMETRY_MB=512` (4,629 rebased), `=1536` (2,987 rebased, no cap refusal) and a local switch that lets heap-scan V#s take general title windows (6,259 rebased) all end in the same fault. So the lane takes a descriptor the scan doesn't fix: not yet settled, outside what's scanned, or not a heap slot at all. Next, I'm building a small env-gated store-trace tool. It makes one named program record, per store, the V# words, the lane index and the address it forms into a side buffer that's read back after the dispatch, even after a device loss. That would answer this in one run and be reusable for later losses. (Windows 11, RTX 4070 SUPER, main c7e82e26e + #1558 + #815.) AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@QemmHD commented on GitHub (Nov 25, 2026):

claiming: RT-STORE-TRACE, a diagnostic only. It's an env-gated (LEONIDA_STORE_TRACE=<program>, off by default) translator and runtime option that makes one named program record, for each buffer store, the V# words, the lane's heap index and the address it forms into a host-visible side buffer. That buffer is read back and printed next to the device-fault report, including after a device loss. It comes with a synthetic test (a compute store through a heap V# at a per-lane index). Purpose: name the one descriptor behind the WRITE_INVALID stop in one run, for whoever owns the fix. It doesn't change any default behaviour and doesn't overlap the arena/rebase claims.

@Undefined3301 your result matches mine: every s4/s5 descriptor the probe sees is import/arena-shadow, the write is a title VA, so it's a descriptor the execute-time scan never saw (on my side the typed stores pick a heap entry per lane, from dword 15 of the 176-byte s4 slot 14 records). @roanh47 is there a branch for RT-TITLE-RESERVATION-ARENA yet? I can boot it on the 4070 SUPER with the trace on, and luizwidmer/palmetto's patch_descriptor_bases (ubiquitarianism's note above) looks like the piece that covers heap V#s.

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

<!-- gh-comment-id:7157549239 --> @QemmHD commented on GitHub (Nov 25, 2026): claiming: RT-STORE-TRACE, a diagnostic only. It's an env-gated (`LEONIDA_STORE_TRACE=<program>`, off by default) translator and runtime option that makes one named program record, for each buffer store, the V# words, the lane's heap index and the address it forms into a host-visible side buffer. That buffer is read back and printed next to the device-fault report, including after a device loss. It comes with a synthetic test (a compute store through a heap V# at a per-lane index). Purpose: name the one descriptor behind the WRITE_INVALID stop in one run, for whoever owns the fix. It doesn't change any default behaviour and doesn't overlap the arena/rebase claims. @Undefined3301 your result matches mine: every s4/s5 descriptor the probe sees is `import`/`arena-shadow`, the write is a title VA, so it's a descriptor the execute-time scan never saw (on my side the typed stores pick a heap entry per lane, from dword 15 of the 176-byte s4 slot 14 records). @roanh47 is there a branch for RT-TITLE-RESERVATION-ARENA yet? I can boot it on the 4070 SUPER with the trace on, and luizwidmer/palmetto's `patch_descriptor_bases` (ubiquitarianism's note above) looks like the piece that covers heap V#s. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@Tortoche commented on GitHub (Nov 25, 2026):

claiming: XMEM-FAULT-BATCH-COMMIT - aligned fault-ahead batch commit (with view-boundary clamping and single-page OOM fallback) in commit_mapped_page (runtime/shims/xmem.cpp) to eliminate the ~529 s 99,776-page commit convoy reported in #1602, plus regression tests in runtime/test/xmem_test.cpp.

<!-- gh-comment-id:7157581316 --> @Tortoche commented on GitHub (Nov 25, 2026): claiming: XMEM-FAULT-BATCH-COMMIT - aligned fault-ahead batch commit (with view-boundary clamping and single-page OOM fallback) in commit_mapped_page (runtime/shims/xmem.cpp) to eliminate the ~529 s 99,776-page commit convoy reported in #1602, plus regression tests in runtime/test/xmem_test.cpp.
Author
Owner

@aslan2142 commented on GitHub (Nov 25, 2026):

Two claims from while #14 was capped, recorded here. Both claim texts were in their pull requests' descriptions, and nothing else claimed either item:

claiming: RT-PLACED-DEPTH-OVERLAP - a slot-133 depth placement that starts inside an earlier placement's range gets its own image when both layouts are opaque, instead of E_NOTIMPL, and refused depth placements are logged
done: RT-PLACED-DEPTH-OVERLAP -> #1544 (merged)

claiming: RT-SILENT-AUDIO-ENDPOINT - when the host has no audio output, CoCreateInstance(MMDeviceEnumerator) answers render questions with an in-process silent output endpoint (LEONIDA_AUDIO=silent forces it)
done: RT-SILENT-AUDIO-ENDPOINT -> #1598 (merged)

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

<!-- gh-comment-id:7157588845 --> @aslan2142 commented on GitHub (Nov 25, 2026): Two claims from while #14 was capped, recorded here. Both claim texts were in their pull requests' descriptions, and nothing else claimed either item: claiming: RT-PLACED-DEPTH-OVERLAP - a slot-133 depth placement that starts inside an earlier placement's range gets its own image when both layouts are opaque, instead of `E_NOTIMPL`, and refused depth placements are logged done: RT-PLACED-DEPTH-OVERLAP -> #1544 (merged) claiming: RT-SILENT-AUDIO-ENDPOINT - when the host has no audio output, `CoCreateInstance(MMDeviceEnumerator)` answers render questions with an in-process silent output endpoint (`LEONIDA_AUDIO=silent` forces it) done: RT-SILENT-AUDIO-ENDPOINT -> #1598 (merged) AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@aslan2142 commented on GitHub (Nov 25, 2026):

finding: one runtime log line is in Spanish

  • Where: runtime/shims/d3d12_xs_device.cpp:4002, [rt] d3d12_xs: state blob: campo sin identificar en 0x%03x = 0x%08x. It came in with #984's integration (273b3bdf9).
  • Why it matters: every other [rt] line is English, so this one is missed by anyone grepping for "unidentified" or reading the logs. It prints for each unmeasured state-blob offset (about 40 lines a boot).
  • Fix: an English wording, for example "unidentified field at". Needs no game files.

finding: CreatePipelineState refuses 4 pipeline streams a boot with E_INVALIDARG and no reason

  • Where: the PC stream path, in parse_pipeline_stream / create_graphics (runtime/shims/d3d12_vulkan_device.cpp). The refusals come right after the first pipeline stream with a mesh shader.
  • Why it matters: LEONIDA_PSO_STREAM_AUDIT (runtime/shims/d3d12_xs_device.cpp:4727) only reports E_NOTIMPL and E_FAIL, so these four refusals print nothing. Whatever those pipelines draw is skipped silently.
  • Measured on main plus #1539, retail boot on an RDNA2 iGPU (RADV, Wine): 4 of 54,645 CreatePipelineState calls in 900 s.
  • Needs the game files to reproduce. A first step that needs none: print the refusal reason for E_INVALIDARG too.

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

<!-- gh-comment-id:7157589410 --> @aslan2142 commented on GitHub (Nov 25, 2026): finding: one runtime log line is in Spanish - **Where:** `runtime/shims/d3d12_xs_device.cpp:4002`, `[rt] d3d12_xs: state blob: campo sin identificar en 0x%03x = 0x%08x`. It came in with #984's integration (`273b3bdf9`). - **Why it matters:** every other `[rt]` line is English, so this one is missed by anyone grepping for "unidentified" or reading the logs. It prints for each unmeasured state-blob offset (about 40 lines a boot). - **Fix:** an English wording, for example "unidentified field at". Needs no game files. finding: `CreatePipelineState` refuses 4 pipeline streams a boot with `E_INVALIDARG` and no reason - **Where:** the PC stream path, in `parse_pipeline_stream` / `create_graphics` (`runtime/shims/d3d12_vulkan_device.cpp`). The refusals come right after the first pipeline stream with a mesh shader. - **Why it matters:** `LEONIDA_PSO_STREAM_AUDIT` (`runtime/shims/d3d12_xs_device.cpp:4727`) only reports `E_NOTIMPL` and `E_FAIL`, so these four refusals print nothing. Whatever those pipelines draw is skipped silently. - **Measured** on `main` plus #1539, retail boot on an RDNA2 iGPU (RADV, Wine): 4 of 54,645 `CreatePipelineState` calls in 900 s. - **Needs** the game files to reproduce. A first step that needs none: print the refusal reason for `E_INVALIDARG` too. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@aslan2142 commented on GitHub (Nov 25, 2026):

finding: LEONIDA_PRESENT_DUMP crashes the process after a few hundred presents. @DadaCap, it is in the same capture code as your RT-PRESENT-CAPTURE-CACHED, so it may be worth a look while you are in there.

  • Measured on main plus #1539, retail boot on an RDNA2 iGPU (RADV, Wine):
    • with ,30, the process died after about 149 presents and 5 dumped frames;
    • with ,150, after about 299 presents and 2 frames;
    • both times with 0xc0000005, a read of address 0, at host:ucrtbase.dll+0x171a6.
    • The same build without the variable runs 900 s and 931 presents with no exception.
  • Suspects (hypotheses, not measured):
    • the capture buffer is shared between the splash's frame inspection (splash_capture_only_, capture_ptr_, release_capture() in runtime/src/vulkan_present.h, and finish_startup_frame) and the dump's encoder worker;
    • or a swapchain recreate re-sizes capture_size_ while the worker still encodes an older frame.
  • Context: in both runs the splash was still up, because no title frame had a non-black pixel yet.
  • Needs the game files to reproduce as measured. A presenter test that keeps the splash up while dumping might reproduce it without them.

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

<!-- gh-comment-id:7157589788 --> @aslan2142 commented on GitHub (Nov 25, 2026): finding: `LEONIDA_PRESENT_DUMP` crashes the process after a few hundred presents. @DadaCap, it is in the same capture code as your `RT-PRESENT-CAPTURE-CACHED`, so it may be worth a look while you are in there. - **Measured** on `main` plus #1539, retail boot on an RDNA2 iGPU (RADV, Wine): - with `,30`, the process died after about 149 presents and 5 dumped frames; - with `,150`, after about 299 presents and 2 frames; - both times with `0xc0000005`, a read of address 0, at `host:ucrtbase.dll+0x171a6`. - The same build without the variable runs 900 s and 931 presents with no exception. - **Suspects** (hypotheses, not measured): - the capture buffer is shared between the splash's frame inspection (`splash_capture_only_`, `capture_ptr_`, `release_capture()` in `runtime/src/vulkan_present.h`, and `finish_startup_frame`) and the dump's encoder worker; - or a swapchain recreate re-sizes `capture_size_` while the worker still encodes an older frame. - **Context:** in both runs the splash was still up, because no title frame had a non-black pixel yet. - **Needs** the game files to reproduce as measured. A presenter test that keeps the splash up while dumping might reproduce it without them. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@thiefyzheng commented on GitHub (Nov 25, 2026):

claiming: CROSSLANE-FUZZ-PCTAIL — @whoalin1's finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7156819685): give tools/crosslane_fuzz.py the same LEONIDA_PC_TAIL_UBO → --pc-tail-ubo plumbing run_gpu_tests.py already has and #1519 put into vk_fuzz_run, so 128B-push-constant GPUs (gfx1036 iGPU) do not exit 77 without the env or dump 0xeeeeeeee mismatches with the env set but the SPIR-V built without --pc-tail-ubo.

Plan: mirror the #1519 vk_fuzz_run implementation, add the same style of tests it got. CPU-side change; I can verify the plumbing and tests CPU-only, the gfx1036 end-to-end mismatch check is still owed to someone with that iGPU (our XTX rig is not 128B-limited). AI-assisted.

<!-- gh-comment-id:7157649481 --> @thiefyzheng commented on GitHub (Nov 25, 2026): claiming: CROSSLANE-FUZZ-PCTAIL — @whoalin1's finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7156819685): give `tools/crosslane_fuzz.py` the same `LEONIDA_PC_TAIL_UBO` → `--pc-tail-ubo` plumbing `run_gpu_tests.py` already has and #1519 put into `vk_fuzz_run`, so 128B-push-constant GPUs (gfx1036 iGPU) do not exit 77 without the env or dump 0xeeeeeeee mismatches with the env set but the SPIR-V built without `--pc-tail-ubo`. Plan: mirror the #1519 `vk_fuzz_run` implementation, add the same style of tests it got. CPU-side change; I can verify the plumbing and tests CPU-only, the gfx1036 end-to-end mismatch check is still owed to someone with that iGPU (our XTX rig is not 128B-limited). AI-assisted.
Author
Owner

@Tortoche commented on GitHub (Nov 25, 2026):

done: XMEM-FAULT-BATCH-COMMIT -> #1707

<!-- gh-comment-id:7157669036 --> @Tortoche commented on GitHub (Nov 25, 2026): done: XMEM-FAULT-BATCH-COMMIT -> #1707
Author
Owner

@MoonEyes commented on GitHub (Nov 25, 2026):

claiming: RT-STATE-BLOB-LOG-ENGLISH - aslan2142's finding above: runtime/shims/d3d12_xs_device.cpp:4002 prints the state-blob field line in Spanish; use 'unidentified field at'. No game files.

<!-- gh-comment-id:7157674869 --> @MoonEyes commented on GitHub (Nov 25, 2026): claiming: RT-STATE-BLOB-LOG-ENGLISH - aslan2142's finding above: runtime/shims/d3d12_xs_device.cpp:4002 prints the state-blob field line in Spanish; use 'unidentified field at'. No game files.
Author
Owner

@thiefyzheng commented on GitHub (Nov 25, 2026):

done: CROSSLANE-FUZZ-PCTAIL -> #1709

tools/crosslane_fuzz.py now has the same LEONIDA_PC_TAIL_UBO → --pc-tail-ubo plumbing as lds_fuzz/valu_fuzz/image_fuzz/run_gpu_tests.py — @whoalin1's finding. SPIR-V built with --pc-tail-ubo and vk_compute_test run with LEONIDA_PC_TAIL_UBO=1 when the flag or env asks, covering both failure modes (exit 77; 0xeeeeeeee mismatches).

CPU-verified: compileall OK, tests/test_crosslane_fuzz.py 75 tests OK (65 baseline + 10 new, mirrored from test_lds_fuzz_cli.py), and a revert-the-source guard check (4 tests fail with only crosslane_fuzz.py reverted). Not verified end-to-end on the gfx1036 iGPU — still owed to that hardware for both this tool and generally. AI-assisted, details in the PR body.

<!-- gh-comment-id:7157731469 --> @thiefyzheng commented on GitHub (Nov 25, 2026): done: CROSSLANE-FUZZ-PCTAIL -> #1709 `tools/crosslane_fuzz.py` now has the same `LEONIDA_PC_TAIL_UBO` → `--pc-tail-ubo` plumbing as `lds_fuzz`/`valu_fuzz`/`image_fuzz`/`run_gpu_tests.py` — @whoalin1's finding. SPIR-V built with `--pc-tail-ubo` and `vk_compute_test` run with `LEONIDA_PC_TAIL_UBO=1` when the flag or env asks, covering both failure modes (exit 77; 0xeeeeeeee mismatches). CPU-verified: compileall OK, `tests/test_crosslane_fuzz.py` 75 tests OK (65 baseline + 10 new, mirrored from `test_lds_fuzz_cli.py`), and a revert-the-source guard check (4 tests fail with only `crosslane_fuzz.py` reverted). Not verified end-to-end on the gfx1036 iGPU — still owed to that hardware for both this tool and generally. AI-assisted, details in the PR body.
Author
Owner

@Tortoche commented on GitHub (Nov 25, 2026):

done: XMEM-FAULT-BATCH-COMMIT -> #1707

<!-- gh-comment-id:7157757445 --> @Tortoche commented on GitHub (Nov 25, 2026): done: XMEM-FAULT-BATCH-COMMIT -> #1707
Author
Owner

@DadaCap commented on GitHub (Nov 25, 2026):

finding: the "title's hang watchdog" stop at the world start is the render thread waiting behind compute pipelines that are compiled inline on a submission, 2 to 5 s each, about 15 in a row; the GPU is idle meanwhile.

Where: runtime/shims/d3d12_vulkan_device.cpp, PipelineState::build_compute reached from leonida::prepare in VulkanQueue::execute_now (runtime/src/vulkan_backend.h), and VulkanContext::remove_resource (vulkan_backend.h, the std::unique_lock rlock(resource_mutex_)).

Measured (Windows 11, RTX 5080, NVIDIA 621.24, 64 GB; main 237deb64c + #1558 + #1631 + #1694 + #1705, main's translator, LEONIDA_ARENA_MB=2048 LEONIDA_FRAME_PACING=1, default window cap; LEONIDA_STACKS=105,118, frames named with llvm-symbolizer):

  • Submissions stop at about 100 s (3,553 by then, 22 more in the next 15 s). nvidia-smi at 100, 115 and 125 s: 1 %, 6 %, 1 % busy. The watchdog fires at 126.8 s (+0x23cf683); in four other runs of the same tree at 145 to 180 s.
  • At 105 s:
    • the title's main thread waits in +0x23cf735, the function the watchdog exception comes from;
    • the title's render thread (+0x2215eca -> +0x23cf104 -> ... -> +0x4fb0550) is releasing a resource: Resource::~Resource -> VulkanContext::remove_resource, waiting for resource_mutex_;
    • one thread is inside the driver's compiler under PipelineState::build_compute <- create_compute <- leonida::prepare <- VulkanQueue::execute_now;
    • a PipelineCompiler thread waits on a mutex in build_compute (queue_build), behind that same build.
  • At 118 s the render thread has moved on and waits inside the title (+0x4e7f358 under +0x43c3d6e); the inline compile and the waiting compiler thread are in the same place, on a later program; the main thread still waits.
  • The log names the compiles: lib_cs_01076 3.6 s, lib_cs_01405 3.5 s (1,454,592 B SPIR-V), 3InstanceCulling_CS_Tree_BatchCull 4.9 s (2,018,548 B), lib_cs_01406 2.3 s before this run's watchdog; with LEONIDA_TITLE_WATCHDOG=0 15 such lines follow one another until the known WRITE_INVALID loss at about 195 s.
  • The same programs take the same time in every run here (lib_cs_01405 3.0, 3.1, 3.5 s in three runs), so nothing carries over between runs: each of mine ends in a crash, and the session cache is written at teardown. With LEONIDA_PIPELINE_CACHE_DIR=<folder> LEONIDA_PIPELINE_CACHE_BYTES=4294967296 LEONIDA_STARTUP_CACHE_CHECKPOINTS=1 the folder was still empty after a 200 s run that reached the world start.

Why it matters: a tester without LEONIDA_TITLE_WATCHDOG=0 stops here before reaching the WRITE_INVALID stop, and once that one is fixed every first use of a world compute program is a multi-second hitch on the submitting thread. Three separate things to decide for whoever owns the pipeline compiler: the inline build on the submission path, the checkpoint that saved nothing by the world start, and whether these programs can be built ahead (they are known when the library is loaded).

Not shown: which lock the inline build holds while it compiles (I did not read that far; the render thread's wait on resource_mutex_ at 105 s fits a shared hold in execute_now, which is a guess), and what exactly the render thread waits for at 118 s (title frames only). One machine.

Needs: game files. Counters, timings and addresses of the executable only; no game data. I am not claiming a fix yet. AI-assisted (Claude Code).

<!-- gh-comment-id:7157762911 --> @DadaCap commented on GitHub (Nov 25, 2026): finding: the "title's hang watchdog" stop at the world start is the render thread waiting behind compute pipelines that are compiled inline on a submission, 2 to 5 s each, about 15 in a row; the GPU is idle meanwhile. **Where:** `runtime/shims/d3d12_vulkan_device.cpp`, `PipelineState::build_compute` reached from `leonida::prepare` in `VulkanQueue::execute_now` (`runtime/src/vulkan_backend.h`), and `VulkanContext::remove_resource` (`vulkan_backend.h`, the `std::unique_lock rlock(resource_mutex_)`). **Measured** (Windows 11, RTX 5080, NVIDIA 621.24, 64 GB; `main` 237deb64c + #1558 + #1631 + #1694 + #1705, `main`'s translator, `LEONIDA_ARENA_MB=2048 LEONIDA_FRAME_PACING=1`, default window cap; `LEONIDA_STACKS=105,118`, frames named with `llvm-symbolizer`): - Submissions stop at about 100 s (3,553 by then, 22 more in the next 15 s). `nvidia-smi` at 100, 115 and 125 s: 1 %, 6 %, 1 % busy. The watchdog fires at 126.8 s (`+0x23cf683`); in four other runs of the same tree at 145 to 180 s. - At 105 s: - the title's main thread waits in `+0x23cf735`, the function the watchdog exception comes from; - the title's render thread (`+0x2215eca` -> `+0x23cf104` -> ... -> `+0x4fb0550`) is releasing a resource: `Resource::~Resource` -> `VulkanContext::remove_resource`, waiting for `resource_mutex_`; - one thread is inside the driver's compiler under `PipelineState::build_compute` <- `create_compute` <- `leonida::prepare` <- `VulkanQueue::execute_now`; - a `PipelineCompiler` thread waits on a mutex in `build_compute` (`queue_build`), behind that same build. - At 118 s the render thread has moved on and waits inside the title (`+0x4e7f358` under `+0x43c3d6e`); the inline compile and the waiting compiler thread are in the same place, on a later program; the main thread still waits. - The log names the compiles: `lib_cs_01076` 3.6 s, `lib_cs_01405` 3.5 s (1,454,592 B SPIR-V), `3InstanceCulling_CS_Tree_BatchCull` 4.9 s (2,018,548 B), `lib_cs_01406` 2.3 s before this run's watchdog; with `LEONIDA_TITLE_WATCHDOG=0` 15 such lines follow one another until the known WRITE_INVALID loss at about 195 s. - The same programs take the same time in every run here (`lib_cs_01405` 3.0, 3.1, 3.5 s in three runs), so nothing carries over between runs: each of mine ends in a crash, and the session cache is written at teardown. With `LEONIDA_PIPELINE_CACHE_DIR=<folder> LEONIDA_PIPELINE_CACHE_BYTES=4294967296 LEONIDA_STARTUP_CACHE_CHECKPOINTS=1` the folder was still empty after a 200 s run that reached the world start. **Why it matters:** a tester without `LEONIDA_TITLE_WATCHDOG=0` stops here before reaching the WRITE_INVALID stop, and once that one is fixed every first use of a world compute program is a multi-second hitch on the submitting thread. Three separate things to decide for whoever owns the pipeline compiler: the inline build on the submission path, the checkpoint that saved nothing by the world start, and whether these programs can be built ahead (they are known when the library is loaded). **Not shown:** which lock the inline build holds while it compiles (I did not read that far; the render thread's wait on `resource_mutex_` at 105 s fits a shared hold in `execute_now`, which is a guess), and what exactly the render thread waits for at 118 s (title frames only). One machine. **Needs:** game files. Counters, timings and addresses of the executable only; no game data. I am not claiming a fix yet. AI-assisted (Claude Code).
Author
Owner

@MoonEyes commented on GitHub (Nov 25, 2026):

done: RT-STATE-BLOB-LOG-ENGLISH -> #1710

<!-- gh-comment-id:7157780657 --> @MoonEyes commented on GitHub (Nov 25, 2026): done: RT-STATE-BLOB-LOG-ENGLISH -> #1710
Author
Owner

@Undefined3301 commented on GitHub (Nov 25, 2026):

Follow-up to the second finding: the 840 library compute programs missing from spirv/library (2,684 in the carve) translate the same way. Re-disassembling with tools/rdna2_decode.py and translating with --wave64-emulate gives 839/840 modules that pass spirv-val; the one refusal is an s_sethalt. The library index is now 2,683 programs (was 1,844), and fspx_gfx is 18,735. With that library the world-start stop is unchanged: the same WRITE_INVALID on library/lib_cs_00928 (commands 1-7 then 476-489 of its list), now at about 270 s, and the compute-input probe again reports the s4/s5 descriptors as import or arena-shadow. So the missing programs are not the cause of the write. The 78 DPP-on-v_cmpx and 18 s_getpc_b64 refusals in the graphics set remain; the library set has none of those. AI-assisted (Claude Code).

<!-- gh-comment-id:7157792566 --> @Undefined3301 commented on GitHub (Nov 25, 2026): Follow-up to the second finding: the 840 library compute programs missing from `spirv/library` (2,684 in the carve) translate the same way. Re-disassembling with `tools/rdna2_decode.py` and translating with `--wave64-emulate` gives 839/840 modules that pass `spirv-val`; the one refusal is an `s_sethalt`. The library index is now 2,683 programs (was 1,844), and `fspx_gfx` is 18,735. With that library the world-start stop is unchanged: the same WRITE_INVALID on `library/lib_cs_00928` (commands 1-7 then 476-489 of its list), now at about 270 s, and the compute-input probe again reports the s4/s5 descriptors as `import` or `arena-shadow`. So the missing programs are not the cause of the write. The 78 DPP-on-`v_cmpx` and 18 `s_getpc_b64` refusals in the graphics set remain; the library set has none of those. AI-assisted (Claude Code).
Author
Owner

@tengotengo commented on GitHub (Nov 25, 2026):

finding: post-#984 main 1cfc29af7, 5060 Ti / Proton 11 SLR, watchdog defused — 529 s pool-commit convoy completes; 28.3-min pipeline-compile storm ends at exe+0x131a2ad (E_INVALIDARG) — same fatal site as slauko's 3080 Ti/Wine run (slot-133 D16S8 placement)

(Companion to #1602 — the full 3-run arc + all registers in that issue; this is the actable data point + our round-6 disassembly of the site.)

  1. The t≈30.6 s stop after the 6.09 GiB pool map (XMemAllocatePhysicalPages 99,776 × 64 KiB, attrs 0x380, caller exe+0x1e6c232) is NOT a deadlock: it is a deterministic ~529 s CPU-side per-page commit convoy (run-2 528.78 s / run-3 527.18 s; steady ~1.7 user + 0.7 kernel cores by 30 s deltas; swap flat; no backing file — LEONIDA_XMEM_BACKING_DIR unset). The run RESUMES at t≈557–560 s into ACP audio HAL + the full ttdb content-DB load (49 distinct opens). With LEONIDA_TITLE_WATCHDOG at its default (armed) this phase dies at t≈61 s — i.e. the 30 s watchdog time-slices these slow phases; defusing it is what makes the later wall visible.
  2. The real wall: after the ttdb load (pin t≈564 s) a compute-pipeline-compile storm runs 28.3 min: eu-stack top thread (455 s utime, 40% of process CPU) in thunk64_vkCreateComputePipelines → _nv002nvvm (~1.9 user cores, no decay over the full 28 min), VRAM 1.1 → 3.1 GiB, no OOM (RAM peak 9.9 GiB of 32, swap flat). It ends FATAL: INT3 at game_scarlett_master.exe+0x131a2ad, r8=0x80070057 (E_INVALIDARG), rdx=0xffffff01, rcx=0x981, r12=0xc13, r15=0x282; stack +0x131a2ad ← +0x24740d5 ← +0x2473903 ← +0x3239287 ← +0x221c29c ← +0x2215eca → WER MDMP.
  3. Independent confirmation + suspect surface: slauko 7156293568 (07:49Z, RTX 3080 Ti / Wine 11.17, main 42537e7b6) reached 129,459 D3D12 calls + 1,472 presents, then stopped at the SAME int3 exe+0x131A2AD with the same hr=0x80070057 — attributed to a placed D16S8 depth texture (slot 133, format 118, placement). Our run's trace has zero d3d12 events (our trace hook set does not instrument the pipeline-create/placement path — the eu-stack proves the D3D12→Vulkan layer was live), so both observations are consistent: the fatal surface is the slot-133 D16S8 placement on page-mapped memory → #1558 (mergeable) / #588 (conflicting) for the depth format, #387 (conflicting) for the embedded VS, plus RT-TITLE-WINDOW-OVERFLOW (claim 7154369840) on the arena-overflow side.
  4. Our round-6 disassembly of the site: the trap at +0x131a2ad is test %al,%al; je int3 inside the arena page resolver fn +0x131a270 — it traps only when al==0, so it CANNOT fire with r8=E_INVALIDARG (al=0x57); a full .text E8/E9 scan (95.25 MiB) finds 0 static refs to the CC → the fatal int3 was executed by a corrupted indirect branch landing exactly on the trap byte. The caller (+0x24740d5) is the 0x2474xxx arena/page-init fn (per-64 KiB-slot histogram + per-page helper +0x2474660, 0x10000 stepping) calling the resolver with rcx=request object, rdx=&{16 B, page 0x1197fe0000, N, 0, 0} — no hr check after the call. So: arena-state/object corruption under sustained compile-scratch allocation load, same family as the post-#984 235 s AVs on unmapped xmem physical-page windows — not a missing shim. Next: 0x14193de10 (the resolver's 0x980-branch callee) to find the wild-branch candidate.
  5. Also: the #1602 index bullet ("stalls after mapping the 6.09 GiB pool, before D3D12 device creation") is stale — the amended #1602 body is canonical (the convoy completes; the wall is post-ttdb, post-D3D12-init). exe+N = RVA from 0x140000000.

No game data. AI-assisted.

<!-- gh-comment-id:7157824629 --> @tengotengo commented on GitHub (Nov 25, 2026): finding: post-#984 main 1cfc29af7, 5060 Ti / Proton 11 SLR, watchdog defused — 529 s pool-commit convoy completes; 28.3-min pipeline-compile storm ends at exe+0x131a2ad (E_INVALIDARG) — same fatal site as slauko's 3080 Ti/Wine run (slot-133 D16S8 placement) (Companion to #1602 — the full 3-run arc + all registers in that issue; this is the actable data point + our round-6 disassembly of the site.) 1. The t≈30.6 s stop after the 6.09 GiB pool map (XMemAllocatePhysicalPages 99,776 × 64 KiB, attrs 0x380, caller exe+0x1e6c232) is NOT a deadlock: it is a deterministic ~529 s CPU-side per-page commit convoy (run-2 528.78 s / run-3 527.18 s; steady ~1.7 user + 0.7 kernel cores by 30 s deltas; swap flat; no backing file — LEONIDA_XMEM_BACKING_DIR unset). The run RESUMES at t≈557–560 s into ACP audio HAL + the full ttdb content-DB load (49 distinct opens). With LEONIDA_TITLE_WATCHDOG at its default (armed) this phase dies at t≈61 s — i.e. the 30 s watchdog time-slices these slow phases; defusing it is what makes the later wall visible. 2. The real wall: after the ttdb load (pin t≈564 s) a compute-pipeline-compile storm runs 28.3 min: eu-stack top thread (455 s utime, 40% of process CPU) in thunk64_vkCreateComputePipelines → _nv002nvvm (~1.9 user cores, no decay over the full 28 min), VRAM 1.1 → 3.1 GiB, no OOM (RAM peak 9.9 GiB of 32, swap flat). It ends FATAL: INT3 at game_scarlett_master.exe+0x131a2ad, r8=0x80070057 (E_INVALIDARG), rdx=0xffffff01, rcx=0x981, r12=0xc13, r15=0x282; stack +0x131a2ad ← +0x24740d5 ← +0x2473903 ← +0x3239287 ← +0x221c29c ← +0x2215eca → WER MDMP. 3. Independent confirmation + suspect surface: slauko 7156293568 (07:49Z, RTX 3080 Ti / Wine 11.17, main 42537e7b6) reached 129,459 D3D12 calls + 1,472 presents, then stopped at the SAME int3 exe+0x131A2AD with the same hr=0x80070057 — attributed to a placed D16S8 depth texture (slot 133, format 118, `placement`). Our run's trace has zero d3d12 events (our trace hook set does not instrument the pipeline-create/placement path — the eu-stack proves the D3D12→Vulkan layer was live), so both observations are consistent: the fatal surface is the slot-133 D16S8 placement on page-mapped memory → #1558 (mergeable) / #588 (conflicting) for the depth format, #387 (conflicting) for the embedded VS, plus RT-TITLE-WINDOW-OVERFLOW (claim 7154369840) on the arena-overflow side. 4. Our round-6 disassembly of the site: the trap at +0x131a2ad is `test %al,%al; je int3` inside the arena page resolver fn +0x131a270 — it traps only when al==0, so it CANNOT fire with r8=E_INVALIDARG (al=0x57); a full .text E8/E9 scan (95.25 MiB) finds 0 static refs to the CC → the fatal int3 was executed by a corrupted indirect branch landing exactly on the trap byte. The caller (+0x24740d5) is the 0x2474xxx arena/page-init fn (per-64 KiB-slot histogram + per-page helper +0x2474660, 0x10000 stepping) calling the resolver with rcx=request object, rdx=&{16 B, page 0x1197fe0000, N, 0, 0} — no hr check after the call. So: arena-state/object corruption under sustained compile-scratch allocation load, same family as the post-#984 235 s AVs on unmapped xmem physical-page windows — not a missing shim. Next: 0x14193de10 (the resolver's 0x980-branch callee) to find the wild-branch candidate. 5. Also: the #1602 index bullet ("stalls after mapping the 6.09 GiB pool, before D3D12 device creation") is stale — the amended #1602 body is canonical (the convoy completes; the wall is post-ttdb, post-D3D12-init). exe+N = RVA from 0x140000000. No game data. AI-assisted.
Author
Owner

@akimfomin commented on GitHub (Nov 25, 2026):

claiming: VK-IMAGE-LAYOUT-RANGE-COALESCING — separate follow-up discussed with DadaCap in #1284. Coalesce adjacent initialized rectangles with the same prior Vulkan image layout; preserve UNDEFINED initialization, barrier scopes and command order. The undo journal remains in #1284. I will recheck current main and the #1284 combination with synthetic fixtures. No game inputs. AI-assisted (Codex).

<!-- gh-comment-id:7157843511 --> @akimfomin commented on GitHub (Nov 25, 2026): claiming: VK-IMAGE-LAYOUT-RANGE-COALESCING — separate follow-up discussed with DadaCap in #1284. Coalesce adjacent initialized rectangles with the same prior Vulkan image layout; preserve UNDEFINED initialization, barrier scopes and command order. The undo journal remains in #1284. I will recheck current main and the #1284 combination with synthetic fixtures. No game inputs. AI-assisted (Codex).
Author
Owner

@MoonEyes commented on GitHub (Nov 25, 2026):

finding: 9 pairs of open pull requests carry the same change (diff similarity 0.96-1.00), plus one item with 4 competing implementations. Listing them so a maintainer can close the later copy of each instead of reviewing both.

Method: every open non-draft PR (1,139 on 2026-11-25 ~10:00 UTC), pairs by different authors touching the same non-doc files with similar titles, then the +/- lines of gh pr diff compared with difflib. Earlier PR first.

earlier later similarity
#747 #1312 (file_system: GetVolumeInformation / GetVolumePathName) 0.98
#718 #1303 (mods: joaat of a mod.json name, OLD-10050) 1.00
#765 #1295 (mesh_compute_vs %pc_tail, OLD-2528) 0.96
#703 #1280 (exe_checklist list markers) 1.00
#696 #1268 (find_hash_lookup section sizes) 1.00
#766 #1314 (file_system: GetTempPath / GetTempFileName) 1.00
#1319 #1337 (make_game: pipelines check with a locked crash report) 1.00
#736 #937 (make_game: partial vulkaninfo output) 1.00
#898 #932 (wave32_pixel_scan same_report_path) 1.00

Same item, different code (not duplicates, but only one can land): crosslane_fuzz --pc-tail-ubo has #1501, #1507, #1508 and #1709 (similarity 0.22-0.37 between them).

Not checked: which of each pair was claimed first in #14 / here; that is the maintainers' call. Only titles and diffs were compared, nothing was run.

<!-- gh-comment-id:7157946516 --> @MoonEyes commented on GitHub (Nov 25, 2026): finding: 9 pairs of open pull requests carry the same change (diff similarity 0.96-1.00), plus one item with 4 competing implementations. Listing them so a maintainer can close the later copy of each instead of reviewing both. Method: every open non-draft PR (1,139 on 2026-11-25 ~10:00 UTC), pairs by different authors touching the same non-doc files with similar titles, then the `+`/`-` lines of `gh pr diff` compared with `difflib`. Earlier PR first. | earlier | later | similarity | |---|---|---| | #747 | #1312 (`file_system`: GetVolumeInformation / GetVolumePathName) | 0.98 | | #718 | #1303 (mods: joaat of a mod.json name, OLD-10050) | 1.00 | | #765 | #1295 (mesh_compute_vs `%pc_tail`, OLD-2528) | 0.96 | | #703 | #1280 (exe_checklist list markers) | 1.00 | | #696 | #1268 (find_hash_lookup section sizes) | 1.00 | | #766 | #1314 (`file_system`: GetTempPath / GetTempFileName) | 1.00 | | #1319 | #1337 (make_game: pipelines check with a locked crash report) | 1.00 | | #736 | #937 (make_game: partial vulkaninfo output) | 1.00 | | #898 | #932 (wave32_pixel_scan `same_report_path`) | 1.00 | Same item, different code (not duplicates, but only one can land): `crosslane_fuzz --pc-tail-ubo` has #1501, #1507, #1508 and #1709 (similarity 0.22-0.37 between them). Not checked: which of each pair was claimed first in #14 / here; that is the maintainers' call. Only titles and diffs were compared, nothing was run.
Author
Owner

@Tauwni commented on GitHub (Nov 25, 2026):

claiming: I18N-FR-QUICKSTART-SYNC - docs/i18n/fr/quickstart.md is behind the English README: it still says the game does not boot, links to the private original (clone URL, #166, coordination search), lacks the Linux/Proton boot and ./Build.sh, the versioned llvm-mc note, 400 GB and the disk and drives section. I will sync it and bump its commit in docs/i18n/README.md. Overlaps #904 (350 -> 400 Go). Docs only, no game files. AI-assisted.

<!-- gh-comment-id:7157948862 --> @Tauwni commented on GitHub (Nov 25, 2026): claiming: I18N-FR-QUICKSTART-SYNC - `docs/i18n/fr/quickstart.md` is behind the English README: it still says the game does not boot, links to the private original (clone URL, #166, coordination search), lacks the Linux/Proton boot and `./Build.sh`, the versioned `llvm-mc` note, 400 GB and the disk and drives section. I will sync it and bump its commit in `docs/i18n/README.md`. Overlaps #904 (350 -> 400 Go). Docs only, no game files. AI-assisted.
Author
Owner

@Tauwni commented on GitHub (Nov 25, 2026):

done: I18N-FR-QUICKSTART-SYNC -> #1711

<!-- gh-comment-id:7157951904 --> @Tauwni commented on GitHub (Nov 25, 2026): done: I18N-FR-QUICKSTART-SYNC -> #1711
Author
Owner

@BubsMcgee commented on GitHub (Nov 25, 2026):

claiming: STREAM-OUTPUT — SOSetTargets and real SO_STATISTICS query pools, transform feedback capture (D3D-302). PR #1630 already open.

claiming: INDIRECT-STATE-ARGS — Store indirect signature argument types from CreateCommandSignature through ExecuteIndirect into Vulkan replay; bind VERTEX_BUFFER_VIEW and INDEX_BUFFER_VIEW before indirect draws. PR #1620 already open.

claiming: BL-2 — Feature level at device creation: create_host_device accepts D3D_FEATURE_LEVEL minimum param, passes kHostDeviceFloor (11_0) when title's request unknown, logs min + highest level. Mock test covers 11_0-12_2 against hosts topping out at 11_0 and 12_1. PR coming.

<!-- gh-comment-id:7157996090 --> @BubsMcgee commented on GitHub (Nov 25, 2026): claiming: STREAM-OUTPUT — SOSetTargets and real SO_STATISTICS query pools, transform feedback capture (D3D-302). PR #1630 already open. claiming: INDIRECT-STATE-ARGS — Store indirect signature argument types from CreateCommandSignature through ExecuteIndirect into Vulkan replay; bind VERTEX_BUFFER_VIEW and INDEX_BUFFER_VIEW before indirect draws. PR #1620 already open. claiming: BL-2 — Feature level at device creation: create_host_device accepts D3D_FEATURE_LEVEL minimum param, passes kHostDeviceFloor (11_0) when title's request unknown, logs min + highest level. Mock test covers 11_0-12_2 against hosts topping out at 11_0 and 12_1. PR coming.
Author
Owner

@Tortoche commented on GitHub (Nov 25, 2026):

claiming: SHADER-DISASM-AUTO-FALLBACK - add backend="auto" in tools/shader_disasm.py (per-program fallback to rdna2_decode.py when llvm-mc reports invalid words or empty output and python yields fewer invalid words) and default --backend auto in tools/shader_library.py to recover llvm-mc-rejected fspx_gfx (ps,vs,ms) and library (cs) programs (#1608 comments 7156808927, 7157792566; supersedes #998's compute-only shader_disasm/shader_library hunk), plus synthetic unit tests in tests/test_shader_disasm.py and tests/test_shader_library.py.

<!-- gh-comment-id:7158019367 --> @Tortoche commented on GitHub (Nov 25, 2026): claiming: SHADER-DISASM-AUTO-FALLBACK - add backend="auto" in tools/shader_disasm.py (per-program fallback to rdna2_decode.py when llvm-mc reports invalid words or empty output and python yields fewer invalid words) and default --backend auto in tools/shader_library.py to recover llvm-mc-rejected fspx_gfx (ps,vs,ms) and library (cs) programs (#1608 comments 7156808927, 7157792566; supersedes #998's compute-only shader_disasm/shader_library hunk), plus synthetic unit tests in tests/test_shader_disasm.py and tests/test_shader_library.py.
Author
Owner

@kurrutako commented on GitHub (Nov 25, 2026):

claiming: I18N-ES-CONTRIBUTING — Spanish translation of CONTRIBUTING.md (docs/i18n/es/contributing.md), synced at 2b567edc

<!-- gh-comment-id:7158094491 --> @kurrutako commented on GitHub (Nov 25, 2026): claiming: I18N-ES-CONTRIBUTING — Spanish translation of CONTRIBUTING.md (docs/i18n/es/contributing.md), synced at 2b567edc
Author
Owner

@Tortoche commented on GitHub (Nov 25, 2026):

done: SHADER-DISASM-AUTO-FALLBACK -> #1712

<!-- gh-comment-id:7158098172 --> @Tortoche commented on GitHub (Nov 25, 2026): done: SHADER-DISASM-AUTO-FALLBACK -> #1712
Author
Owner

@akimfomin commented on GitHub (Nov 25, 2026):

done: VK-IMAGE-LAYOUT-RANGE-COALESCING -> #1713

<!-- gh-comment-id:7158112125 --> @akimfomin commented on GitHub (Nov 25, 2026): done: VK-IMAGE-LAYOUT-RANGE-COALESCING -> #1713
Author
Owner

@kurrutako commented on GitHub (Nov 25, 2026):

done: I18N-ES-CONTRIBUTING -> #1714

<!-- gh-comment-id:7158119272 --> @kurrutako commented on GitHub (Nov 25, 2026): done: I18N-ES-CONTRIBUTING -> #1714
Author
Owner

@Tortoche commented on GitHub (Nov 25, 2026):

done: SHADER-DISASM-AUTO-FALLBACK -> #1712

<!-- gh-comment-id:7158166723 --> @Tortoche commented on GitHub (Nov 25, 2026): done: SHADER-DISASM-AUTO-FALLBACK -> #1712
Author
Owner

@kawaii-shakal commented on GitHub (Nov 25, 2026):

claiming: BCPACK-LOST-BLOCK-LIMIT - runtime/src/bcpack.cpp refuses a fitted BC6H/BC7 request when more than max(2, blocks/1024) blocks start their predictor chain at a history entry the profile lacks, so the whole destination stays blank. On the 1.0.2.1 package the two BC7 requests in octa_imposters.ttpf that fail at every boot (#1537) have one unknown endpoint entry each (5 of 1,536 and 15 of 768 blocks with a locally built profile). Separate limit for these lost blocks (default 1 in 32, LEONIDA_DSTORAGE_LOST_DIVISOR), a decode report and a log line; inconsistent blocks and strict mode unchanged.

<!-- gh-comment-id:7158195672 --> @kawaii-shakal commented on GitHub (Nov 25, 2026): claiming: BCPACK-LOST-BLOCK-LIMIT - `runtime/src/bcpack.cpp` refuses a fitted BC6H/BC7 request when more than max(2, blocks/1024) blocks start their predictor chain at a history entry the profile lacks, so the whole destination stays blank. On the 1.0.2.1 package the two BC7 requests in `octa_imposters.ttpf` that fail at every boot (#1537) have one unknown endpoint entry each (5 of 1,536 and 15 of 768 blocks with a locally built profile). Separate limit for these lost blocks (default 1 in 32, `LEONIDA_DSTORAGE_LOST_DIVISOR`), a decode report and a log line; inconsistent blocks and strict mode unchanged.
Author
Owner

@kawaii-shakal commented on GitHub (Nov 25, 2026):

done: BCPACK-LOST-BLOCK-LIMIT -> #1715

<!-- gh-comment-id:7158215199 --> @kawaii-shakal commented on GitHub (Nov 25, 2026): done: BCPACK-LOST-BLOCK-LIMIT -> #1715
Author
Owner

@Tyrannys commented on GitHub (Nov 25, 2026):

done: RT-SLOT133-STANDIN-LEAK -> #1716. The leak was in the test helper, not the runtime: d3d12test::Ref had no assignment operator, so placed = {} (in #1558's check_d16s8_refused_uav) overwrote the pointer without Release, and the placed texture kept the device alive until vkDestroyDevice. Ref now releases on = {}. A new game-free test (xbox_slot133_teardown) reads the validation count after vkDestroyDevice; it is clean on main, and #1558's test is clean too once this is in. RTX 4070 SUPER, driver 621.01. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7158333949 --> @Tyrannys commented on GitHub (Nov 25, 2026): done: RT-SLOT133-STANDIN-LEAK -> #1716. The leak was in the test helper, not the runtime: `d3d12test::Ref` had no assignment operator, so `placed = {}` (in #1558's `check_d16s8_refused_uav`) overwrote the pointer without `Release`, and the placed texture kept the device alive until `vkDestroyDevice`. `Ref` now releases on `= {}`. A new game-free test (`xbox_slot133_teardown`) reads the validation count after `vkDestroyDevice`; it is clean on main, and #1558's test is clean too once this is in. RTX 4070 SUPER, driver 621.01. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@ImLele69 commented on GitHub (Nov 25, 2026):

claiming: RT-CLANG-EHA - under clang-cl, __try/__except in gta6rt does not catch a page fault inside memcpy: clang lowers memcpy to an intrinsic it treats as unable to throw, so without asynchronous exceptions (/EHa) the __except never runs. runtime/CMakeLists.txt gives /EHa only to shims/dstorage.cpp and src/thread_stacks.cpp, but copy_guarded/hash_guarded (shims/d3d12_vulkan_device.cpp), shims/file_system.cpp, src/pe_loader.cpp and src/title_page_watch.h rely on __try too. Seen on a clang-cl/xwin build under Wine 11.21: a slot-133 shadow refresh copied a page xmem had just unmapped (region MEM_RESERVE) and the process died in ucrtbase.dll memcpy, stack copy_guarded < ShadowPages::refresh < VulkanQueue::execute_now. Fix: /EHa for the whole gta6rt target when the compiler is Clang. MSVC builds are not affected. @djrolfes: your XMem read-only fault finding is under clang-cl too, but xmem_test already has /EHa, so probably not the same cause. AI-assisted (Claude Code).

<!-- gh-comment-id:7158385623 --> @ImLele69 commented on GitHub (Nov 25, 2026): claiming: RT-CLANG-EHA - under clang-cl, `__try`/`__except` in `gta6rt` does not catch a page fault inside `memcpy`: clang lowers `memcpy` to an intrinsic it treats as unable to throw, so without asynchronous exceptions (`/EHa`) the `__except` never runs. `runtime/CMakeLists.txt` gives `/EHa` only to `shims/dstorage.cpp` and `src/thread_stacks.cpp`, but `copy_guarded`/`hash_guarded` (`shims/d3d12_vulkan_device.cpp`), `shims/file_system.cpp`, `src/pe_loader.cpp` and `src/title_page_watch.h` rely on `__try` too. Seen on a clang-cl/xwin build under Wine 11.21: a slot-133 shadow refresh copied a page xmem had just unmapped (region `MEM_RESERVE`) and the process died in `ucrtbase.dll` memcpy, stack `copy_guarded` < `ShadowPages::refresh` < `VulkanQueue::execute_now`. Fix: `/EHa` for the whole `gta6rt` target when the compiler is Clang. MSVC builds are not affected. @djrolfes: your XMem read-only fault finding is under clang-cl too, but `xmem_test` already has `/EHa`, so probably not the same cause. AI-assisted (Claude Code).
Author
Owner

@PyZikYG commented on GitHub (Nov 25, 2026):

claiming: D3D-CLOCK-CALIBRATION-SUBMIT — let D3D12 queues continue submitting during fallback GPU clock calibration. Replace queue-idle waits under the device submission lock with waits on private completion markers, preserving the CPU timestamp bracket and retry safety. AI-assisted.

<!-- gh-comment-id:7158386667 --> @PyZikYG commented on GitHub (Nov 25, 2026): claiming: D3D-CLOCK-CALIBRATION-SUBMIT — let D3D12 queues continue submitting during fallback GPU clock calibration. Replace queue-idle waits under the device submission lock with waits on private completion markers, preserving the CPU timestamp bracket and retry safety. AI-assisted.
Author
Owner

@ImLele69 commented on GitHub (Nov 25, 2026):

done: RT-CLANG-EHA -> #1717

<!-- gh-comment-id:7158396285 --> @ImLele69 commented on GitHub (Nov 25, 2026): done: RT-CLANG-EHA -> #1717
Author
Owner

@Tauwni commented on GitHub (Nov 25, 2026):

claiming: GPU-M3 - GPU test results for an Apple M3 (10-core GPU) on MoltenVK 1.4.2, macOS 26.5.1, at main 626d1281a: gpu-test-results/AppleM3.txt plus a row in docs/gpu_test_results.md. No other M3 result or claim found (M4 #564, M5 #785, M5 Pro #552). No game files. AI-assisted.

<!-- gh-comment-id:7158464859 --> @Tauwni commented on GitHub (Nov 25, 2026): claiming: GPU-M3 - GPU test results for an Apple M3 (10-core GPU) on MoltenVK 1.4.2, macOS 26.5.1, at main 626d1281a: `gpu-test-results/AppleM3.txt` plus a row in `docs/gpu_test_results.md`. No other M3 result or claim found (M4 #564, M5 #785, M5 Pro #552). No game files. AI-assisted.
Author
Owner

@Tauwni commented on GitHub (Nov 25, 2026):

done: GPU-M3 -> #1718

<!-- gh-comment-id:7158466707 --> @Tauwni commented on GitHub (Nov 25, 2026): done: GPU-M3 -> #1718
Author
Owner

@Tauwni commented on GitHub (Nov 25, 2026):

finding: cs_imgatomic_ext (runtime/test/shaders/cs_imgatomic_ext.asm, from 367d91ef, GPU-IMG-ATOMIC-EXT) fails deterministically on Apple M3 with MoltenVK 1.4.2 (macOS 26.5.1, main 626d1281a): "6 of 64 sint words differ; first word 32: got 0x0badf00d, expected 0x00000101" - 0x0badf00d is the swap row's initial value, so image_atomic_swap leaves 6 sint words unchanged. 20/20 runs with --filter, same words. It is not in the macOS job's EXPECTED_FAILURES (.github/workflows/runtime.yml) nor in the Known problems table of docs/testing.md. Needs a Mac with MoltenVK; no game files. Details in #1718. AI-assisted.

<!-- gh-comment-id:7158467401 --> @Tauwni commented on GitHub (Nov 25, 2026): finding: `cs_imgatomic_ext` (runtime/test/shaders/cs_imgatomic_ext.asm, from 367d91ef, GPU-IMG-ATOMIC-EXT) fails deterministically on Apple M3 with MoltenVK 1.4.2 (macOS 26.5.1, main 626d1281a): "6 of 64 sint words differ; first word 32: got 0x0badf00d, expected 0x00000101" - 0x0badf00d is the swap row's initial value, so image_atomic_swap leaves 6 sint words unchanged. 20/20 runs with `--filter`, same words. It is not in the macOS job's EXPECTED_FAILURES (.github/workflows/runtime.yml) nor in the Known problems table of docs/testing.md. Needs a Mac with MoltenVK; no game files. Details in #1718. AI-assisted.
Author
Owner

@OreoFR commented on GitHub (Nov 25, 2026):

Data point for the world-start WRITE_INVALID stop (#1537, QemmHD's and Undefined3301's notes above), on an 8 GB laptop card. Counts only.

Windows 11, RTX 4070 Laptop 8 GB (NVIDIA 591.59), 40 GB RAM, own 1.0.2.1. Build: main 237deb64c + #1558 + #1547 + #1671 + #1691 + #1703, --wave64-emulate library. LEONIDA_TITLE_WATCHDOG=0 LEONIDA_DEVICE_FAULT=1, saved profile, A every 15 to 60 s.

  • Default caps: in most runs that reach the story load, the device is lost at about 250 to 270 s, at library compute dispatches (lib_cs_01452, lib_cs_01405).
  • LEONIDA_TITLE_WINDOWS_MB=4096 LEONIDA_ARENA_MB=4096:
    • The 8 GB card takes it without an out-of-memory error. The arena reports 4094 MiB, capped by maxMemoryAllocationSize, and the process peaks at about 21 GB private.
    • The device is lost later, at about 305 s: WRITE_INVALID (type 2, 4 KiB precision) at a process address far above the arena.
    • The NV checkpoints put three compute queues inside dispatches of lib_cs_01468; the last dispatches submitted were lib_cs_00927/lib_cs_00928.

That's the same stop as on the 4070 SUPER, 4080 and 5060 Ti, on the smallest VRAM reported so far. @QemmHD I can run RT-STORE-TRACE on this machine once it's up.

AI-assisted.

<!-- gh-comment-id:7158477640 --> @OreoFR commented on GitHub (Nov 25, 2026): Data point for the world-start WRITE_INVALID stop (#1537, QemmHD's and Undefined3301's notes above), on an 8 GB laptop card. Counts only. Windows 11, RTX 4070 Laptop 8 GB (NVIDIA 591.59), 40 GB RAM, own 1.0.2.1. Build: `main` `237deb64c` + #1558 + #1547 + #1671 + #1691 + #1703, `--wave64-emulate` library. `LEONIDA_TITLE_WATCHDOG=0 LEONIDA_DEVICE_FAULT=1`, saved profile, A every 15 to 60 s. - **Default caps:** in most runs that reach the story load, the device is lost at about 250 to 270 s, at library compute dispatches (`lib_cs_01452`, `lib_cs_01405`). - **`LEONIDA_TITLE_WINDOWS_MB=4096 LEONIDA_ARENA_MB=4096`:** - The 8 GB card takes it without an out-of-memory error. The arena reports 4094 MiB, capped by `maxMemoryAllocationSize`, and the process peaks at about 21 GB private. - The device is lost later, at about 305 s: WRITE_INVALID (type 2, 4 KiB precision) at a process address far above the arena. - The NV checkpoints put three compute queues inside dispatches of `lib_cs_01468`; the last dispatches submitted were `lib_cs_00927`/`lib_cs_00928`. That's the same stop as on the 4070 SUPER, 4080 and 5060 Ti, on the smallest VRAM reported so far. @QemmHD I can run RT-STORE-TRACE on this machine once it's up. AI-assisted.
Author
Owner

@qhukz13 commented on GitHub (Nov 25, 2026):

claiming: TEST-ROOT-SIG-VERSIONED-WIN10 - root_sig fails on Windows 10 19045 (GTX 1050 Ti, NVIDIA 582.66) at "versioned shim rejects Xbox flags with corrupt checksum": that in-box D3D12CreateVersionedRootSignatureDeserializer accepts a blob with a corrupted DXBC checksum, and the shim hands such a blob to the host unchanged (its helper refuses to re-sign it). The unversioned check in the same test already asks the host first and prints a SKIP where it accepts bad checksums; I will make the versioned check do the same. Test only, the shim is unchanged. (#235's change is already on main; this is a different check.) No game files. AI-assisted (Claude Code).

<!-- gh-comment-id:7158508340 --> @qhukz13 commented on GitHub (Nov 25, 2026): claiming: TEST-ROOT-SIG-VERSIONED-WIN10 - `root_sig` fails on Windows 10 19045 (GTX 1050 Ti, NVIDIA 582.66) at "versioned shim rejects Xbox flags with corrupt checksum": that in-box `D3D12CreateVersionedRootSignatureDeserializer` accepts a blob with a corrupted DXBC checksum, and the shim hands such a blob to the host unchanged (its helper refuses to re-sign it). The unversioned check in the same test already asks the host first and prints a SKIP where it accepts bad checksums; I will make the versioned check do the same. Test only, the shim is unchanged. (#235's change is already on `main`; this is a different check.) No game files. AI-assisted (Claude Code).
Author
Owner

@PyZikYG commented on GitHub (Nov 25, 2026):

done: D3D-CLOCK-CALIBRATION-SUBMIT -> #1720

<!-- gh-comment-id:7158508427 --> @PyZikYG commented on GitHub (Nov 25, 2026): done: D3D-CLOCK-CALIBRATION-SUBMIT -> #1720
Author
Owner

@qhukz13 commented on GitHub (Nov 25, 2026):

done: TEST-ROOT-SIG-VERSIONED-WIN10 -> #1719 (opened a few minutes before this claim, while #14 refused comments at its cap)

<!-- gh-comment-id:7158508847 --> @qhukz13 commented on GitHub (Nov 25, 2026): done: TEST-ROOT-SIG-VERSIONED-WIN10 -> #1719 (opened a few minutes before this claim, while #14 refused comments at its cap)
Author
Owner

@hugo0024 commented on GitHub (Nov 25, 2026):

claiming: TEST-FMA-FUSED-F16-RUNTIME - runtime/test/shaders/cs_fma_fused.asm: the three operands of its v_fma_f16 become run-time values (the s4 word XOR a literal), as the fixture's f32 operands already are. With literals the whole f16 multiply-add is a compile-time constant, and on an Apple M5 (MoltenVK 1.4.2) word 7 then reads 0x0000 instead of 0x7351: the cs_fma_fused row of docs/testing.md, which is in the macOS job's EXPECTED_FAILURES. With any one of the three operands taken at run time the same translation gives 0x7351 and the test passes 8/8 (measured on main 626d1281a). Also rewrites that Known problems row. Fixture and docs only; the translator is not changed. No game files. AI-assisted.

<!-- gh-comment-id:7158527074 --> @hugo0024 commented on GitHub (Nov 25, 2026): claiming: TEST-FMA-FUSED-F16-RUNTIME - `runtime/test/shaders/cs_fma_fused.asm`: the three operands of its `v_fma_f16` become run-time values (the s4 word XOR a literal), as the fixture's f32 operands already are. With literals the whole f16 multiply-add is a compile-time constant, and on an Apple M5 (MoltenVK 1.4.2) word 7 then reads 0x0000 instead of 0x7351: the `cs_fma_fused` row of docs/testing.md, which is in the macOS job's EXPECTED_FAILURES. With any one of the three operands taken at run time the same translation gives 0x7351 and the test passes 8/8 (measured on main 626d1281a). Also rewrites that Known problems row. Fixture and docs only; the translator is not changed. No game files. AI-assisted.
Author
Owner

@kotekompotek commented on GitHub (Nov 25, 2026):

claiming: TEST-CREATEHEAP-HOST-PROBE - d3d12_vulkan_device_test fails on a GTX 1050 host (driver 582.28, Windows 11 24H2) because that D3D12 runtime answers E_INVALIDARG for every CreateHeap, including the canonical 64 KiB default heap; compare_heap_neighbours and compare_placed_reserved then read the host's blanket refusal as layer mismatches (heap_mismatches / placed_mismatches assertions). Fix: probe the canonical heap once and skip the host comparison when the host cannot create it — same shape as the existing windows10_refuses/host_ray_tracing comparability gates. Test-only change; Intel UHD 630 and WARP still run the comparison. AI-assisted.

<!-- gh-comment-id:7158530499 --> @kotekompotek commented on GitHub (Nov 25, 2026): claiming: TEST-CREATEHEAP-HOST-PROBE - `d3d12_vulkan_device_test` fails on a GTX 1050 host (driver 582.28, Windows 11 24H2) because that D3D12 runtime answers E_INVALIDARG for every CreateHeap, including the canonical 64 KiB default heap; compare_heap_neighbours and compare_placed_reserved then read the host's blanket refusal as layer mismatches (heap_mismatches / placed_mismatches assertions). Fix: probe the canonical heap once and skip the host comparison when the host cannot create it — same shape as the existing windows10_refuses/host_ray_tracing comparability gates. Test-only change; Intel UHD 630 and WARP still run the comparison. AI-assisted.
Author
Owner

@slauko commented on GitHub (Nov 25, 2026):

finding: with the SDL3 artifact and #1558, the retail boot under Wine 11.17 (RTX 3080 Ti / NVIDIA 595.112.07) now passes the account-selection page with input and reaches the loading slideshow and the first-run navigation tutorial: 1,216 s, 749,289 D3D12 calls, 16,486 PresentX, 0 exceptions. Input must be LEONIDA_KEYBOARD_PAD=always plus LEONIDA_INPUT_SCRIPT (the script is ignored with the default keyboard pad off; the first attempt sat in the account menu for 1,204 s with byte-identical frames). The tutorial page (navigation/minimap option, continue with A) waits for more A presses; the loading artwork renders despite the missing executable VS (#387, 20 no translated vs). Build: main 42537e7b6 + the SDL3 artifact line + #1558, artifact from branch head 69244ae91. Counts and stage names only, no game data. AI-assisted.

<!-- gh-comment-id:7158599117 --> @slauko commented on GitHub (Nov 25, 2026): finding: with the SDL3 artifact and #1558, the retail boot under Wine 11.17 (RTX 3080 Ti / NVIDIA 595.112.07) now passes the account-selection page with input and reaches the loading slideshow and the first-run navigation tutorial: 1,216 s, 749,289 D3D12 calls, 16,486 PresentX, **0 exceptions**. Input must be `LEONIDA_KEYBOARD_PAD=always` plus `LEONIDA_INPUT_SCRIPT` (the script is ignored with the default keyboard pad `off`; the first attempt sat in the account menu for 1,204 s with byte-identical frames). The tutorial page (navigation/minimap option, continue with A) waits for more A presses; the loading artwork renders despite the missing executable VS (#387, 20 `no translated vs`). Build: `main` `42537e7b6` + the SDL3 artifact line + #1558, artifact from branch head `69244ae91`. Counts and stage names only, no game data. AI-assisted.
Author
Owner

@OreoFR commented on GitHub (Nov 25, 2026):

finding: in DPP, the translator applies src0's neg before the zero it gives an invalid source lane, and hardware may apply it after. This needs a measurement on an AMD GPU. adrianmjim raised it in the review of #1647.

Where: tools/rdna2spirv.py Gen.dpp_insn on main 3de22a190:

  • line 7333 builds src_val = self.src_u(src) with the modifiers already applied ("neg/abs are lane-uniform, so before or after the shuffle is the same");
  • line 7503 then replaces the value of a lane whose DPP source is invalid with 0: OpSelect %uint {src_ok} {shuffled} {zero}. An invalid source is one out of its row with bound_ctrl:1, or inactive without fi:1.

So, with neg on src0, an invalid lane reads +0. If hardware fetches 0 and then applies neg, as the ISA's DPP description reads, it reads -0. abs is unaffected.

Why it matters (a little):

  • It's bit-exact only: v_cmp_class_f32 / v_cmpx_class_f32 with negated src0 classify +0 (bit 6) where hardware might give -0 (bit 5), and a float op can differ in the sign of a zero result (-0 + -0).
  • It applies to every DPP form with neg on src0, on main too, not only to the v_cmpx forms #1647 adds.
  • 1.0.2.1's DPP compares can't reach it: the 113 v_cmpx DPP instructions are quad_perm with fi:1, and their neg is on src1. I haven't counted the other DPP ops in the corpus.

How to settle it (AMD GPU needed): tools/crosslane_fuzz.py --dpp-sweep --oracle hw sweeps the DPP controls, but I don't think it varies source modifiers. A one-program check would do:

  • v_add_f32_dpp vD, -vA, vB row_shr:1 row_mask:0xf bank_mask:0xf bound_ctrl:1, with vB = -0.0 in every lane;
  • on lane 0 of each row, where the source is invalid, hardware gives 0x80000000 if neg comes after the zero, and 0x00000000 if it comes before.

If someone with RDNA2/RDNA3 hardware measures it, the fix is a few lines: shuffle the unmodified value, select, then apply modify(). I can write it with a GPU fixture once the result is known.

AI-assisted.

<!-- gh-comment-id:7158607949 --> @OreoFR commented on GitHub (Nov 25, 2026): finding: in DPP, the translator applies src0's `neg` before the zero it gives an invalid source lane, and hardware may apply it after. This needs a measurement on an AMD GPU. adrianmjim raised it in the review of #1647. **Where:** `tools/rdna2spirv.py` `Gen.dpp_insn` on `main` `3de22a190`: - line 7333 builds `src_val = self.src_u(src)` with the modifiers already applied ("neg/abs are lane-uniform, so before or after the shuffle is the same"); - line 7503 then replaces the value of a lane whose DPP source is invalid with 0: `OpSelect %uint {src_ok} {shuffled} {zero}`. An invalid source is one out of its row with `bound_ctrl:1`, or inactive without `fi:1`. So, with `neg` on src0, an invalid lane reads **+0**. If hardware fetches 0 and then applies `neg`, as the ISA's DPP description reads, it reads **-0**. `abs` is unaffected. **Why it matters (a little):** - It's bit-exact only: `v_cmp_class_f32` / `v_cmpx_class_f32` with negated src0 classify +0 (bit 6) where hardware might give -0 (bit 5), and a float op can differ in the sign of a zero result (`-0 + -0`). - It applies to every DPP form with `neg` on src0, on `main` too, not only to the `v_cmpx` forms #1647 adds. - 1.0.2.1's DPP compares can't reach it: the 113 `v_cmpx` DPP instructions are `quad_perm` with `fi:1`, and their `neg` is on src1. I haven't counted the other DPP ops in the corpus. **How to settle it (AMD GPU needed):** `tools/crosslane_fuzz.py --dpp-sweep --oracle hw` sweeps the DPP controls, but I don't think it varies source modifiers. A one-program check would do: - `v_add_f32_dpp vD, -vA, vB row_shr:1 row_mask:0xf bank_mask:0xf bound_ctrl:1`, with `vB = -0.0` in every lane; - on lane 0 of each row, where the source is invalid, hardware gives `0x80000000` if `neg` comes after the zero, and `0x00000000` if it comes before. If someone with RDNA2/RDNA3 hardware measures it, the fix is a few lines: shuffle the unmodified value, select, then apply `modify()`. I can write it with a GPU fixture once the result is known. AI-assisted.
Author
Owner

@Snooozs commented on GitHub (Nov 25, 2026):

claiming: RT-BVH-BUILD-TITLE-VA - BuildRaytracingAccelerationStructure, EmitRaytracingAccelerationStructurePostbuildInfo and CopyRaytracingAccelerationStructure use the addresses they are given as they are: the XDXR builder records heap_base + VA for the destination, source, scratch, instances, vertices, indices and transform (runtime/src/vulkan_backend.h, xdxr_record), with no pass through title_va_aliases() as root views and table V#s have. An address in the title's own memory then becomes a raw device address. I will translate them where the command is recorded and add a test with the build's buffers in title memory (no game files).

This may be the world-start WRITE_INVALID (#1537). Not confirmed: I have not had a run with the change yet. What points there, on retail 1.0.2.1, Windows 10, RTX 5060 Ti (621.01), main 42537e7b6 + #1558 + #1547 + #1631 and local diagnostics:

  • In five of five runs re-read, the compute queue's top-of-pipe and bottom-of-pipe checkpoints both name the same lib_cs_00928 dispatch (command 45, 46, 46, 47 and 49). So that dispatch looks finished, and the write would come from what follows it in the list.
  • The faulting instruction address (type 6) is the same value in five of six runs. One of those five had the modules of lib_cs_00921, lib_cs_00928 and lib_cs_00930 replaced.
  • Those replacements had a check in front of every buffer store that drops and records a store with a console VA between 2^40 and 2^47. Nothing was recorded, and the fault stayed. (The record is read at the next submission, so a fault before it could hide one.)
  • The faulting page is committed, write-combined title memory, at the same offset of its allocation in the runs where I logged the allocation.

Counts and addresses only, no game data. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7158644358 --> @Snooozs commented on GitHub (Nov 25, 2026): claiming: RT-BVH-BUILD-TITLE-VA - `BuildRaytracingAccelerationStructure`, `EmitRaytracingAccelerationStructurePostbuildInfo` and `CopyRaytracingAccelerationStructure` use the addresses they are given as they are: the XDXR builder records `heap_base + VA` for the destination, source, scratch, instances, vertices, indices and transform (`runtime/src/vulkan_backend.h`, `xdxr_record`), with no pass through `title_va_aliases()` as root views and table V#s have. An address in the title's own memory then becomes a raw device address. I will translate them where the command is recorded and add a test with the build's buffers in title memory (no game files). This may be the world-start WRITE_INVALID (#1537). **Not confirmed**: I have not had a run with the change yet. What points there, on retail 1.0.2.1, Windows 10, RTX 5060 Ti (621.01), main 42537e7b6 + #1558 + #1547 + #1631 and local diagnostics: - In five of five runs re-read, the compute queue's top-of-pipe and bottom-of-pipe checkpoints both name the same `lib_cs_00928` dispatch (command 45, 46, 46, 47 and 49). So that dispatch looks finished, and the write would come from what follows it in the list. - The faulting instruction address (type 6) is the same value in five of six runs. One of those five had the modules of `lib_cs_00921`, `lib_cs_00928` and `lib_cs_00930` replaced. - Those replacements had a check in front of every buffer store that drops and records a store with a console VA between 2^40 and 2^47. Nothing was recorded, and the fault stayed. (The record is read at the next submission, so a fault before it could hide one.) - The faulting page is committed, write-combined title memory, at the same offset of its allocation in the runs where I logged the allocation. Counts and addresses only, no game data. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@kurrutako commented on GitHub (Nov 25, 2026):

claiming: TEST-WINE-JOBS-TIMING-WINDOWS — tests/test_run_wine_tests.py: test_jobs_runs_that_many_tests_at_a_time and test_jobs_keeps_locks_serial_tests_and_dependencies fail on native Windows every run (IndexError / ValueError in intervals()). The timed() child processes append to one shared timing.log at the same time, and appends from several processes are not atomic on Windows, so lines get merged or lost. Fix in the test only: one timing file per child. No game files.

<!-- gh-comment-id:7158675336 --> @kurrutako commented on GitHub (Nov 25, 2026): claiming: TEST-WINE-JOBS-TIMING-WINDOWS — tests/test_run_wine_tests.py: test_jobs_runs_that_many_tests_at_a_time and test_jobs_keeps_locks_serial_tests_and_dependencies fail on native Windows every run (IndexError / ValueError in intervals()). The timed() child processes append to one shared timing.log at the same time, and appends from several processes are not atomic on Windows, so lines get merged or lost. Fix in the test only: one timing file per child. No game files.
Author
Owner

@thiefyzheng commented on GitHub (Nov 25, 2026):

released: CROSSLANE-FUZZ-PCTAIL — my claim was invalid; withdrawing #1709 as a duplicate of #1507, which @ytsodacan already picked as the single PR for this change and which carries GPU runs. Please disregard my done: above; nothing of mine needs review.

Note for the board: my claim-time check replayed recent claiming: comments and the finding itself but not the open pull requests (the coordination issue asks for both). @whoalin1's 08:16 finding reads as if the fuzzer still lacks the plumbing — actually #1507 is open and already merge-picked, so the finding is stale. Future readers: search open PRs before claiming.

<!-- gh-comment-id:7158709782 --> @thiefyzheng commented on GitHub (Nov 25, 2026): released: CROSSLANE-FUZZ-PCTAIL — my claim was invalid; withdrawing #1709 as a duplicate of #1507, which @ytsodacan already picked as the single PR for this change and which carries GPU runs. Please disregard my `done:` above; nothing of mine needs review. Note for the board: my claim-time check replayed recent `claiming:` comments and the finding itself but not the open pull requests (the coordination issue asks for both). @whoalin1's 08:16 finding reads as if the fuzzer still lacks the plumbing — actually #1507 is open and already merge-picked, so the finding is stale. Future readers: search open PRs before claiming.
Author
Owner

@kurrutako commented on GitHub (Nov 25, 2026):

done: TEST-WINE-JOBS-TIMING-WINDOWS -> #1722

<!-- gh-comment-id:7158720858 --> @kurrutako commented on GitHub (Nov 25, 2026): done: TEST-WINE-JOBS-TIMING-WINDOWS -> #1722
Author
Owner

@Timon360SB commented on GitHub (Nov 25, 2026):

claiming: GPU-RTX5070-WIN-REFRESH and GPU-RTX2060SUPER-WIN-REFRESH

Full regression testing of current main on RTX 5070 (Blackwell) and RTX 2060 SUPER (Turing), including native and Wave64-emulated GPU suites, runtime CTest, and validated runs.

Follow-up to my previous GPU reports #560 and #567.

<!-- gh-comment-id:7158732438 --> @Timon360SB commented on GitHub (Nov 25, 2026): claiming: GPU-RTX5070-WIN-REFRESH and GPU-RTX2060SUPER-WIN-REFRESH Full regression testing of current main on RTX 5070 (Blackwell) and RTX 2060 SUPER (Turing), including native and Wave64-emulated GPU suites, runtime CTest, and validated runs. Follow-up to my previous GPU reports #560 and #567.
Author
Owner

@Moriz82 commented on GitHub (Nov 25, 2026):

done: RT-POST-STORY-RUNTIME -> #1723 (draft). The PR distinguishes the accepted Linux/Proton boot, rebased tests and outstanding native Windows verification.

<!-- gh-comment-id:7158769284 --> @Moriz82 commented on GitHub (Nov 25, 2026): done: RT-POST-STORY-RUNTIME -> #1723 (draft). The PR distinguishes the accepted Linux/Proton boot, rebased tests and outstanding native Windows verification.
Author
Owner

@TanmaySatyam commented on GitHub (Nov 25, 2026):

claiming: TEST-RUN-GPU-SORTED-TABLES - deduplicate scripts/run_gpu_tests.py cs_dump dispatch tuple against cs_dump_wants and sort the cs_dump/wave32/hexwords tables one entry per line so GPU-test PRs stop colliding on the same horizontal lines; add stdlib unit test checking ordering and parity. No game files needed.

claiming: RT-UNTRANSLATED-VSHARP-GUARD - translate GPU-only title views via title_gpu_views::to_cpu in resolve_title_memory/rebase_title_vsharp, allow decoded title-memory V#s in console heap rebasing to resolve title windows, and redirect any remaining unresolvable raw title-memory V# to a zeroed scratch arena slot with num_records=0 (via a dedicated runtime/src/title_vsharp_guard.h helper + unit test) so shaders drop OOB reads/writes instead of faulting with READ_INVALID/WRITE_INVALID (VK_ERROR_DEVICE_LOST) at world start.

<!-- gh-comment-id:7158772853 --> @TanmaySatyam commented on GitHub (Nov 25, 2026): claiming: TEST-RUN-GPU-SORTED-TABLES - deduplicate scripts/run_gpu_tests.py cs_dump dispatch tuple against cs_dump_wants and sort the cs_dump/wave32/hexwords tables one entry per line so GPU-test PRs stop colliding on the same horizontal lines; add stdlib unit test checking ordering and parity. No game files needed. claiming: RT-UNTRANSLATED-VSHARP-GUARD - translate GPU-only title views via title_gpu_views::to_cpu in resolve_title_memory/rebase_title_vsharp, allow decoded title-memory V#s in console heap rebasing to resolve title windows, and redirect any remaining unresolvable raw title-memory V# to a zeroed scratch arena slot with num_records=0 (via a dedicated runtime/src/title_vsharp_guard.h helper + unit test) so shaders drop OOB reads/writes instead of faulting with READ_INVALID/WRITE_INVALID (VK_ERROR_DEVICE_LOST) at world start.
Author
Owner

@hugo0024 commented on GitHub (Nov 25, 2026):

done: TEST-FMA-FUSED-F16-RUNTIME -> #1724

<!-- gh-comment-id:7158792346 --> @hugo0024 commented on GitHub (Nov 25, 2026): done: TEST-FMA-FUSED-F16-RUNTIME -> #1724
Author
Owner

@kotekompotek commented on GitHub (Nov 25, 2026):

data point on @whoalin1's d3d12_pipeline_library_host 0xc0000409 finding (comment 7156997734): on NVIDIA GeForce GTX 1050, driver 582.28, Windows 11 24H2, MSVC 19.43 Debug, main 3f81d46ac, the test passes — "72 steps compared with the host (22 more not compared), 0 mismatches". The host-fault path works here: faulting host calls come back as 0xfa017ed via the --host-step child-process isolation.

So the crash is not universal: this box's older D3D12 runtime never reaches the fail-fast path the comment at line ~291 describes ("in-process the next call failed fast, which no exception handler survives"). The crash presumably needs a runtime that fail-fasts inside the child in a way that propagates to the parent, or a different call site. AI-assisted.

<!-- gh-comment-id:7158810895 --> @kotekompotek commented on GitHub (Nov 25, 2026): data point on @whoalin1's `d3d12_pipeline_library_host` 0xc0000409 finding (comment 7156997734): on NVIDIA GeForce GTX 1050, driver 582.28, Windows 11 24H2, MSVC 19.43 Debug, main 3f81d46ac, the test **passes** — "72 steps compared with the host (22 more not compared), 0 mismatches". The host-fault path works here: faulting host calls come back as 0xfa017ed via the --host-step child-process isolation. So the crash is not universal: this box's older D3D12 runtime never reaches the fail-fast path the comment at line ~291 describes ("in-process the next call failed fast, which no exception handler survives"). The crash presumably needs a runtime that fail-fasts inside the child in a way that propagates to the parent, or a different call site. AI-assisted.
Author
Owner

@Tyrannys commented on GitHub (Nov 25, 2026):

done: RT-XMEM-HEAP-LOCK-DEADLOCK -> #1725 (test-side debug-CRT lock inversion, fixed in xmem_test and d3d12_existing_heap_test; xmem's fault handler wasn't in the cycle).

<!-- gh-comment-id:7158828122 --> @Tyrannys commented on GitHub (Nov 25, 2026): done: RT-XMEM-HEAP-LOCK-DEADLOCK -> #1725 (test-side debug-CRT lock inversion, fixed in xmem_test and d3d12_existing_heap_test; xmem's fault handler wasn't in the cycle).
Author
Owner

@TheGeogeo commented on GitHub (Nov 25, 2026):

claiming: RT-BIG-COMPUTE-BUDGET - replace the one-at-a-time rule for large pipelines (the big_compile mutex for compute modules over 128 KiB, and the chain of #1547, which also holds graphics pipelines of 1 MiB or more) with admission by memory: several compile at once while their estimates fit what the machine has free at that moment (RAM and commit limit), one always gets in, a build a submission waits for goes before the warm-up and other speculative work, and a setting keeps today's behaviour; continues #1547; addresses the findings in https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7150502283 (huangzhuoyue) and https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157762911 (DadaCap: the inline compiles of the world start; resource_mutex_ and the cache checkpoint are not part of it); synthetic tests on Windows, no game files; AI-assisted (Claude Code).

<!-- gh-comment-id:7158846373 --> @TheGeogeo commented on GitHub (Nov 25, 2026): claiming: RT-BIG-COMPUTE-BUDGET - replace the one-at-a-time rule for large pipelines (the `big_compile` mutex for compute modules over 128 KiB, and the chain of #1547, which also holds graphics pipelines of 1 MiB or more) with admission by memory: several compile at once while their estimates fit what the machine has free at that moment (RAM and commit limit), one always gets in, a build a submission waits for goes before the warm-up and other speculative work, and a setting keeps today's behaviour; continues #1547; addresses the findings in https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7150502283 (huangzhuoyue) and https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157762911 (DadaCap: the inline compiles of the world start; `resource_mutex_` and the cache checkpoint are not part of it); synthetic tests on Windows, no game files; AI-assisted (Claude Code).
Author
Owner

@QemmHD commented on GitHub (Nov 25, 2026):

finding (correction, important for everyone chasing the world-start WRITE_INVALID): lib_cs_00928 doesn't form the faulting address. I'd blamed it because of the NVIDIA checkpoint, and so have several of us, but a store trace says otherwise.

What ran: an early build of RT-STORE-TRACE on a real boot (Windows 11, RTX 4070 SUPER, main 542fc7cd8 + #1558 + #1671, slot 57 factory on). It records every buffer store of the traced programs into a host-visible ring that's read back after the device loss.

  • Run 1: traced lib_cs_00928.
  • Run 2: traced lib_cs_00927, 00921, 00930, 01468 and 00928 together.
  • The ring survived the loss both times: 76,071 and 129,864 records, 0 unfinished.
  • Every store of those five programs is inside its descriptor's bounds and lands in mapped memory. 00927/00921/00928/00930 store only through two imported buffers (12 MiB raw, 8 MiB stride-4), and 01468 through 30 small arena V#s.
  • The reported WRITE_INVALID address is about 2.7 TiB from the nearest recorded store, and 0 recorded accesses reached it, in both runs.
  • Why the checkpoint misled us: it puts that compute queue at command 46 of 47, the list's last dispatch. That queue had simply finished its list.
  • The fault report doesn't identify the faulting shader either: its vendor-binary entry differs run to run (graphics in one, compute in the other).

Where it points now: the direct queue. Its checkpoint entry has a null marker at both stages, and its last submission, just before that compute list, is the first world frame. That frame's only dispatches do image stores, but many of its pixel programs do buffer stores through V#s. So the likely writer is a graphics-stage buffer store through a V# with an unrebased base. Not proven yet. Next I'm extending the trace to graphics stages and booting again.

@Tyrannys @Undefined3301 @OreoFR @roanh47: this probably also explains why skipping lib_cs_00928 just moves the fault to the next program.

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

<!-- gh-comment-id:7158847153 --> @QemmHD commented on GitHub (Nov 25, 2026): finding (correction, important for everyone chasing the world-start WRITE_INVALID): **`lib_cs_00928` doesn't form the faulting address.** I'd blamed it because of the NVIDIA checkpoint, and so have several of us, but a store trace says otherwise. What ran: an early build of RT-STORE-TRACE on a real boot (Windows 11, RTX 4070 SUPER, main 542fc7cd8 + #1558 + #1671, slot 57 factory on). It records every buffer store of the traced programs into a host-visible ring that's read back after the device loss. - **Run 1:** traced `lib_cs_00928`. - **Run 2:** traced `lib_cs_00927`, `00921`, `00930`, `01468` and `00928` together. - **The ring survived the loss both times:** 76,071 and 129,864 records, 0 unfinished. - **Every store of those five programs is inside its descriptor's bounds and lands in mapped memory.** 00927/00921/00928/00930 store only through two imported buffers (12 MiB raw, 8 MiB stride-4), and 01468 through 30 small arena V#s. - **The reported WRITE_INVALID address is about 2.7 TiB from the nearest recorded store,** and 0 recorded accesses reached it, in both runs. - **Why the checkpoint misled us:** it puts that compute queue at command 46 of 47, the list's last dispatch. That queue had simply finished its list. - **The fault report doesn't identify the faulting shader either:** its vendor-binary entry differs run to run (graphics in one, compute in the other). Where it points now: the **direct queue**. Its checkpoint entry has a null marker at both stages, and its last submission, just before that compute list, is the first world frame. That frame's only dispatches do image stores, but many of its pixel programs do buffer stores through V#s. So the likely writer is a graphics-stage buffer store through a V# with an unrebased base. Not proven yet. Next I'm extending the trace to graphics stages and booting again. @Tyrannys @Undefined3301 @OreoFR @roanh47: this probably also explains why skipping `lib_cs_00928` just moves the fault to the next program. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@potatoe0100 commented on GitHub (Nov 25, 2026):

claiming: DOC-TESTING-WINDOWS-QUICKSTART - docs/testing.md: a short "Quick start on Windows" section (install, build, native and wave64-emulated runs, what to collect for a gpu-test-results record) plus "Testing someone else's pull request" on Windows. Docs only; links to the existing sections instead of repeating them.

<!-- gh-comment-id:7158856504 --> @potatoe0100 commented on GitHub (Nov 25, 2026): claiming: DOC-TESTING-WINDOWS-QUICKSTART - docs/testing.md: a short "Quick start on Windows" section (install, build, native and wave64-emulated runs, what to collect for a gpu-test-results record) plus "Testing someone else's pull request" on Windows. Docs only; links to the existing sections instead of repeating them.
Author
Owner

@potatoe0100 commented on GitHub (Nov 25, 2026):

done: DOC-TESTING-WINDOWS-QUICKSTART -> #1727

<!-- gh-comment-id:7158902100 --> @potatoe0100 commented on GitHub (Nov 25, 2026): done: DOC-TESTING-WINDOWS-QUICKSTART -> #1727
Author
Owner

@Undefined3301 commented on GitHub (Nov 25, 2026):

claiming: SHADER-VINTERP-P2-F16-OP-SEL - same_encoding refuses a v_interp_p2_f16 whose destination op_sel bit 14 is set in the blob but printed as 0 by llvm-mc, with "the blob holds ..., LLVM printed ...". The bit names the high half of the destination, which this op keeps (the high bit in byte 5 selects the attribute half, and the translator reads it), so one bit is accepted and nothing else. Test: tests/semantic/test_printed_encoding.py::test_interp_p2_f16_op_sel_hi_bit_is_ignored (also asserts the exception does not apply to v_interp_p1_f16); contract-table row in docs/design.md "Pixel-shader interpolants". On a 1.0.2.1 copy this translated 194 more of the pipeline library's graphics programs (16,914 -> 17,108 in spirv/fspx_gfx). AI-assisted (Claude Code).

<!-- gh-comment-id:7158945516 --> @Undefined3301 commented on GitHub (Nov 25, 2026): claiming: SHADER-VINTERP-P2-F16-OP-SEL - `same_encoding` refuses a `v_interp_p2_f16` whose destination `op_sel` bit 14 is set in the blob but printed as 0 by llvm-mc, with "the blob holds ..., LLVM printed ...". The bit names the high half of the destination, which this op keeps (the `high` bit in byte 5 selects the attribute half, and the translator reads it), so one bit is accepted and nothing else. Test: `tests/semantic/test_printed_encoding.py::test_interp_p2_f16_op_sel_hi_bit_is_ignored` (also asserts the exception does not apply to `v_interp_p1_f16`); contract-table row in `docs/design.md` "Pixel-shader interpolants". On a 1.0.2.1 copy this translated 194 more of the pipeline library's graphics programs (16,914 -> 17,108 in `spirv/fspx_gfx`). AI-assisted (Claude Code).
Author
Owner

@TanmaySatyam commented on GitHub (Nov 25, 2026):

done: TEST-RUN-GPU-SORTED-TABLES -> #1726
done: RT-UNTRANSLATED-VSHARP-GUARD -> #1728

<!-- gh-comment-id:7158957050 --> @TanmaySatyam commented on GitHub (Nov 25, 2026): done: TEST-RUN-GPU-SORTED-TABLES -> #1726 done: RT-UNTRANSLATED-VSHARP-GUARD -> #1728
Author
Owner

@efeekrb commented on GitHub (Nov 25, 2026):

claiming: DOC-BOOT-LEADS-STATUS - docs/boot_leads.md still lists BL-2, BL-5 and BL-6 as open hypotheses, but #913 (BL-2), #882 (BL-5) and #891 (BL-6) are merged on main, and it does not point at the open pull requests for BL-3 (#1050) and BL-4 (#1166). I will add a status line per lead (done -> PR and where it is recorded, or in progress -> PR), keep the open parts of each lead, and update the docs/README.md entry. Docs only, no game files; AI-assisted (Claude Code).

<!-- gh-comment-id:7158977769 --> @efeekrb commented on GitHub (Nov 25, 2026): claiming: DOC-BOOT-LEADS-STATUS - docs/boot_leads.md still lists BL-2, BL-5 and BL-6 as open hypotheses, but #913 (BL-2), #882 (BL-5) and #891 (BL-6) are merged on main, and it does not point at the open pull requests for BL-3 (#1050) and BL-4 (#1166). I will add a status line per lead (done -> PR and where it is recorded, or in progress -> PR), keep the open parts of each lead, and update the docs/README.md entry. Docs only, no game files; AI-assisted (Claude Code).
Author
Owner

@potatoe0100 commented on GitHub (Nov 25, 2026):

claiming: GPU-RTX4060-WIN-FULL - gpu-test-results: RTX 4060 (NVIDIA 621.14, Windows 11) full suite with llvm-mc at main 626d1281a. #1178 has the disasm subset on the same card; this adds the full run and ctest. AI-assisted, posted by a non-developer tester.

<!-- gh-comment-id:7159020328 --> @potatoe0100 commented on GitHub (Nov 25, 2026): claiming: GPU-RTX4060-WIN-FULL - gpu-test-results: RTX 4060 (NVIDIA 621.14, Windows 11) full suite with llvm-mc at main 626d1281a. #1178 has the disasm subset on the same card; this adds the full run and ctest. AI-assisted, posted by a non-developer tester.
Author
Owner

@efeekrb commented on GitHub (Nov 25, 2026):

done: DOC-BOOT-LEADS-STATUS -> #1730

<!-- gh-comment-id:7159107143 --> @efeekrb commented on GitHub (Nov 25, 2026): done: DOC-BOOT-LEADS-STATUS -> #1730
Author
Owner

@potatoe0100 commented on GitHub (Nov 25, 2026):

done: GPU-RTX4060-WIN-FULL -> #1731

<!-- gh-comment-id:7159115515 --> @potatoe0100 commented on GitHub (Nov 25, 2026): done: GPU-RTX4060-WIN-FULL -> #1731
Author
Owner

@kawaii-shakal commented on GitHub (Nov 25, 2026):

claiming: RT-ARENA-REBAR-FIT - step 2 of #1702. With Resizable BAR the NVIDIA driver leaves the DEVICE_LOCAL | HOST_VISIBLE type out of a buffer above about 4,091 MiB (RTX 5070 Ti, 617.42), so LEONIDA_ARENA_MB=4096 (the #1537 workaround) puts the 4,095 MiB arena in system memory. create_arena shrinks it in 16 MiB steps (by at most an eighth) to the largest size that may use that type, and logs it as a cap.

<!-- gh-comment-id:7159118394 --> @kawaii-shakal commented on GitHub (Nov 25, 2026): claiming: RT-ARENA-REBAR-FIT - step 2 of #1702. With Resizable BAR the NVIDIA driver leaves the DEVICE_LOCAL | HOST_VISIBLE type out of a buffer above about 4,091 MiB (RTX 5070 Ti, 617.42), so `LEONIDA_ARENA_MB=4096` (the #1537 workaround) puts the 4,095 MiB arena in system memory. `create_arena` shrinks it in 16 MiB steps (by at most an eighth) to the largest size that may use that type, and logs it as a cap.
Author
Owner

@CLHelper commented on GitHub (Nov 25, 2026):

claiming: PIPELINE-SEED-LIBRARY - the pipelines stage of make_game.py seeds pipeline_cache.bin from spirv/ and, through seed_bvh, from spirv/bvh, but never from spirv/library (vk_pipeline_check reads one folder's index.json), so the library's compute programs (lib_cs_*) are never in the offline seed. Those are the inline world-start compiles in DadaCap's finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157762911, 2-5 s each).

Plan: seed spirv/library the way spirv/bvh is seeded (skipped when it has no index), a synthetic test with a stand-in checker, and one NVIDIA run (RTX 4060 Laptop 8 GB) counting the runtime's took N s to build lines for lib_cs_* with and without the seed. docs/pipeline_check.md lists when the runtime's device can miss the checker's cache, so that run is what says whether the seed helps there; I'll report it either way.

Complements TheGeogeo's RT-BIG-COMPUTE-BUDGET (runtime side): this does not touch the compiler, big_compile or the cache checkpoint. AI-assisted.

<!-- gh-comment-id:7159120416 --> @CLHelper commented on GitHub (Nov 25, 2026): claiming: PIPELINE-SEED-LIBRARY - the `pipelines` stage of `make_game.py` seeds `pipeline_cache.bin` from `spirv/` and, through `seed_bvh`, from `spirv/bvh`, but never from `spirv/library` (`vk_pipeline_check` reads one folder's `index.json`), so the library's compute programs (`lib_cs_*`) are never in the offline seed. Those are the inline world-start compiles in DadaCap's finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157762911, 2-5 s each). Plan: seed `spirv/library` the way `spirv/bvh` is seeded (skipped when it has no index), a synthetic test with a stand-in checker, and one NVIDIA run (RTX 4060 Laptop 8 GB) counting the runtime's `took N s to build` lines for `lib_cs_*` with and without the seed. `docs/pipeline_check.md` lists when the runtime's device can miss the checker's cache, so that run is what says whether the seed helps there; I'll report it either way. Complements TheGeogeo's RT-BIG-COMPUTE-BUDGET (runtime side): this does not touch the compiler, `big_compile` or the cache checkpoint. AI-assisted.
Author
Owner

@Tauwni commented on GitHub (Nov 25, 2026):

Correction to my finding: above on cs_imgatomic_ext (Apple M3): it is not Mac-specific and already has a fix, #1518 (GPU-IMG-ATOMIC-EXT-VOLUME-TAG). It fails the same way on KosmicKrisp and llvmpipe, and #1518 makes it pass on all three; details in https://github.com/ubiquitarianism/leonida/pull/1518. No new work needed. AI-assisted.

<!-- gh-comment-id:7159136071 --> @Tauwni commented on GitHub (Nov 25, 2026): Correction to my `finding:` above on `cs_imgatomic_ext` (Apple M3): it is not Mac-specific and already has a fix, #1518 (GPU-IMG-ATOMIC-EXT-VOLUME-TAG). It fails the same way on KosmicKrisp and llvmpipe, and #1518 makes it pass on all three; details in https://github.com/ubiquitarianism/leonida/pull/1518. No new work needed. AI-assisted.
Author
Owner

@kawaii-shakal commented on GitHub (Nov 25, 2026):

done: RT-ARENA-REBAR-FIT -> #1732

<!-- gh-comment-id:7159137852 --> @kawaii-shakal commented on GitHub (Nov 25, 2026): done: RT-ARENA-REBAR-FIT -> #1732
Author
Owner

@kawaii-shakal commented on GitHub (Nov 25, 2026):

finding: three wave64 ScreenProbes compute shaders take the NVIDIA compiler minutes to hours under --wave64-emulate, and the cost grows faster than their size. The shaders are indirect_diffuse_lighting:CS_ScreenProbes_ActivateProbes, _ActivateProbesTarget and _ActivateRays, with 77k to 89k instructions and 16 to 26 MB of SPIR-V each. The cost tracks the emulation's wave-wide votes, not the code size.

Where: tools/rdna2spirv.py, the inline wave64 exchange (Gen.x_round, emulate_inline): every OpControlBarrier it emits.

Measured (RTX 5070 Ti, NVIDIA 617.42, Windows 11 Pro 26300; main c7e82e26e's translator with --wave64-emulate; vk_pipeline_check --jobs 1; each module given a unique OpString so that the driver's shader cache misses):

  • ActivateProbes cut after its first N bytes of code. Branches and far branches past the cut are sent to an s_endpgm there. All cuts translate and pass spirv-val.

    code bytes SPIR-V compile
    20,000 1.0 MB 6.9 s
    40,000 2.1 MB 23.5 s
    80,000 4.1 MB 70.3 s
    160,000 8.3 MB 168.8 s

    The full shader is about 480,000 bytes. In this run's pipelines stage, the 500-shader chunk that holds it took about 1 h 20 min.

  • Synthetic wave64 listings (hand-written, no game data) with the same instruction mix (v_mul_lo_u32 chains, buffer_load_format_x, v_cmpx, s_cbranch_execz) compile linearly and about 12 times cheaper per byte: 1.0 MB in 0.56 s and 1.9 MB in 1.0 to 1.2 s. That holds whether the ifs are straight-line, sequential or nested 400 deep.

  • The structural difference is barriers. The first 20,000 bytes of the real shader produce 155 OpControlBarrier (321 in the first 40,000 bytes). A synthetic module of the same size has 2. 153 of those 155 follow the same shape:

    1. EXEC is restored and narrowed with SALU (s_mov_b64 exec, …; s_andn2_b64 exec, …, exec);
    2. s_cbranch_execz follows;
    3. the region it skips writes SGPRs (s_mov_b64 s[a:b], exec).

    The branch then needs the whole 64-lane EXEC, so the two 32-wide halves vote. Where s_cbranch_execz follows a v_cmpx with nothing scalar in the skipped region, no vote is emitted.

  • Ruled out: putting runs of lane-local VALU under one if (active) under --wave64-emulate too. Modules 3 % smaller, same compile time: 3.87, 3.92, 3.88 s before against 3.93, 3.88, 3.87 s after on ScreenProbes_TraceRays_BVH_Shared_ShaderBinning. Translating without --wave64-emulate is slower to compile (5.5 s), so the round machinery itself is not the cost.

Why it matters: the title creates these pipelines at the world start. A compile that takes minutes to hours there stalls it, and the title's hang watchdog (the inline-compile finding in this thread) or the user gives up first. A warmed pipeline cache only helps after the first full run.

What could help (not done):

  • Fewer votes. An s_cbranch_execz whose skipped region only does EXEC bookkeeping could run that region with all lanes inactive instead of voting. This is valid only if every SGPR it writes is dead, or equal either way, at the join, so it needs a dataflow check. Measuring compile time against the number of votes, with votes removed by hand, would show the gain first.
  • Cheaper votes. Batching the barriers of nearby exchanges.

Reproducing needs the game's translated library (no game bytes here). Scripts: trunc.py, which cuts a listing and its FSSM blob at a byte offset and retargets branches and s_getpc/s_setpc far branches, and uniq.py, which defeats the driver cache. I can attach them if useful.

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

<!-- gh-comment-id:7159151871 --> @kawaii-shakal commented on GitHub (Nov 25, 2026): finding: three wave64 ScreenProbes compute shaders take the NVIDIA compiler minutes to hours under `--wave64-emulate`, and the cost grows faster than their size. The shaders are `indirect_diffuse_lighting:CS_ScreenProbes_ActivateProbes`, `_ActivateProbesTarget` and `_ActivateRays`, with 77k to 89k instructions and 16 to 26 MB of SPIR-V each. The cost tracks the emulation's wave-wide votes, not the code size. **Where:** `tools/rdna2spirv.py`, the inline wave64 exchange (`Gen.x_round`, `emulate_inline`): every `OpControlBarrier` it emits. **Measured** (RTX 5070 Ti, NVIDIA 617.42, Windows 11 Pro 26300; main c7e82e26e's translator with `--wave64-emulate`; `vk_pipeline_check --jobs 1`; each module given a unique `OpString` so that the driver's shader cache misses): - `ActivateProbes` cut after its first N bytes of code. Branches and far branches past the cut are sent to an `s_endpgm` there. All cuts translate and pass `spirv-val`. | code bytes | SPIR-V | compile | |---|---|---| | 20,000 | 1.0 MB | 6.9 s | | 40,000 | 2.1 MB | 23.5 s | | 80,000 | 4.1 MB | 70.3 s | | 160,000 | 8.3 MB | 168.8 s | The full shader is about 480,000 bytes. In this run's pipelines stage, the 500-shader chunk that holds it took about 1 h 20 min. - **Synthetic wave64 listings** (hand-written, no game data) with the same instruction mix (`v_mul_lo_u32` chains, `buffer_load_format_x`, `v_cmpx`, `s_cbranch_execz`) compile linearly and about 12 times cheaper per byte: 1.0 MB in 0.56 s and 1.9 MB in 1.0 to 1.2 s. That holds whether the ifs are straight-line, sequential or nested 400 deep. - **The structural difference is barriers.** The first 20,000 bytes of the real shader produce 155 `OpControlBarrier` (321 in the first 40,000 bytes). A synthetic module of the same size has 2. 153 of those 155 follow the same shape: 1. EXEC is restored and narrowed with SALU (`s_mov_b64 exec, …; s_andn2_b64 exec, …, exec`); 2. `s_cbranch_execz` follows; 3. the region it skips writes SGPRs (`s_mov_b64 s[a:b], exec`). The branch then needs the whole 64-lane EXEC, so the two 32-wide halves vote. Where `s_cbranch_execz` follows a `v_cmpx` with nothing scalar in the skipped region, no vote is emitted. - **Ruled out:** putting runs of lane-local VALU under one `if (active)` under `--wave64-emulate` too. Modules 3 % smaller, same compile time: 3.87, 3.92, 3.88 s before against 3.93, 3.88, 3.87 s after on `ScreenProbes_TraceRays_BVH_Shared_ShaderBinning`. Translating without `--wave64-emulate` is slower to compile (5.5 s), so the round machinery itself is not the cost. **Why it matters:** the title creates these pipelines at the world start. A compile that takes minutes to hours there stalls it, and the title's hang watchdog (the inline-compile finding in this thread) or the user gives up first. A warmed pipeline cache only helps after the first full run. **What could help** (not done): - **Fewer votes.** An `s_cbranch_execz` whose skipped region only does EXEC bookkeeping could run that region with all lanes inactive instead of voting. This is valid only if every SGPR it writes is dead, or equal either way, at the join, so it needs a dataflow check. Measuring compile time against the number of votes, with votes removed by hand, would show the gain first. - **Cheaper votes.** Batching the barriers of nearby exchanges. Reproducing needs the game's translated library (no game bytes here). Scripts: `trunc.py`, which cuts a listing and its FSSM blob at a byte offset and retargets branches and `s_getpc`/`s_setpc` far branches, and `uniq.py`, which defeats the driver cache. I can attach them if useful. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@whoalin1 commented on GitHub (Nov 25, 2026):

finding: wave64-emulate fold safety has an undocumented residual guard — _mask_b32_src's opposite-half path (tools/rdna2spirv.py ~6670-6682, also used by s_mov_b32 mask-dst ~8206) emits wave_mask -> x_round independent of SCC liveness, and it is NOT covered by the _sop2_b32_scc_vote fold check added in mask-regs-wave64-fold. Probes (s_and_b32 vcc_lo,vcc_hi,sN dead-SCC, s_and_b32 exec_lo,exec_hi,sN, s_mov_b32 vcc_lo,vcc_hi inside folded s_cbranch_execz regions) all produced OpControlBarrier rather than the x_split assert — something else currently keeps them out, but the invariant is undocumented. Worth pinning down before a future change removes that protection.

<!-- gh-comment-id:7159165301 --> @whoalin1 commented on GitHub (Nov 25, 2026): finding: wave64-emulate fold safety has an undocumented residual guard — `_mask_b32_src`'s opposite-half path (tools/rdna2spirv.py ~6670-6682, also used by s_mov_b32 mask-dst ~8206) emits `wave_mask -> x_round` independent of SCC liveness, and it is NOT covered by the `_sop2_b32_scc_vote` fold check added in mask-regs-wave64-fold. Probes (`s_and_b32 vcc_lo,vcc_hi,sN` dead-SCC, `s_and_b32 exec_lo,exec_hi,sN`, `s_mov_b32 vcc_lo,vcc_hi` inside folded s_cbranch_execz regions) all produced OpControlBarrier rather than the x_split assert — something else currently keeps them out, but the invariant is undocumented. Worth pinning down before a future change removes that protection.
Author
Owner

@kawaii-shakal commented on GitHub (Nov 25, 2026):

Follow-up to the ScreenProbes compile finding above: why those s_cbranch_execz regions are not folded (run without a vote). wave64_emulate_opt.find_local_exec_folds already folds safe regions. I counted its rejections on the first 20,000 code bytes of ActivateProbes, out of 142 candidate regions:

  • 109 are rejected by _exec_writes_stay_inactive. The region restores EXEC with s_andn2_b64 exec, s[40:41], exec, where s[40:41] is live-in. That computes s40 & ~EXEC, so if the region ran with EXEC = 0, a lane whose s40 bit is set would become active again. The rejection is correct as the analysis stands.
  • 28 are rejected because an SGPR written in the region is live at the join (scalar-live).
  • 3 fail on ipdom and 2 on the single-entry check.

So the votes are needed unless the translator can prove s[40:41] ⊆ EXEC at the region entry. That is the usual shape of an unrolled loop whose lanes leave one by one: s40 holds the lanes still in the loop, a subset of the current EXEC. That would take a relational lane-mask fact, which the per-pair zero tracking (zero_pairs) cannot express. It is the lever for these three shaders. VALU batching is not (measured above). I am not working on it now.

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

<!-- gh-comment-id:7159201759 --> @kawaii-shakal commented on GitHub (Nov 25, 2026): Follow-up to the ScreenProbes compile finding above: why those `s_cbranch_execz` regions are not folded (run without a vote). `wave64_emulate_opt.find_local_exec_folds` already folds safe regions. I counted its rejections on the first 20,000 code bytes of `ActivateProbes`, out of 142 candidate regions: - **109 are rejected by `_exec_writes_stay_inactive`.** The region restores EXEC with `s_andn2_b64 exec, s[40:41], exec`, where `s[40:41]` is live-in. That computes `s40 & ~EXEC`, so if the region ran with EXEC = 0, a lane whose `s40` bit is set would become active again. The rejection is correct as the analysis stands. - **28 are rejected because an SGPR written in the region is live at the join** (`scalar-live`). - 3 fail on `ipdom` and 2 on the single-entry check. So the votes are needed unless the translator can prove `s[40:41]` ⊆ EXEC at the region entry. That is the usual shape of an unrolled loop whose lanes leave one by one: `s40` holds the lanes still in the loop, a subset of the current EXEC. That would take a relational lane-mask fact, which the per-pair zero tracking (`zero_pairs`) cannot express. It is the lever for these three shaders. VALU batching is not (measured above). I am not working on it now. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@MoonEyes commented on GitHub (Nov 25, 2026):

claiming: TEST-LDS-SRC2-MC-STDIN - tests/semantic/test_lds_src2.py assemble() passes llvm-mc a Windows temp file path, so with the documented WSL form of LLVM_MC (wsl -d Ubuntu -e .../llvm-mc) every EncodingTests subtest fails. Feed llvm-mc through stdin as tools/shader_disasm.py does. No game files.

<!-- gh-comment-id:7159312123 --> @MoonEyes commented on GitHub (Nov 25, 2026): claiming: TEST-LDS-SRC2-MC-STDIN - tests/semantic/test_lds_src2.py assemble() passes llvm-mc a Windows temp file path, so with the documented WSL form of LLVM_MC (wsl -d Ubuntu -e .../llvm-mc) every EncodingTests subtest fails. Feed llvm-mc through stdin as tools/shader_disasm.py does. No game files.
Author
Owner

@MoonEyes commented on GitHub (Nov 25, 2026):

done: TEST-LDS-SRC2-MC-STDIN -> #1733

<!-- gh-comment-id:7159325362 --> @MoonEyes commented on GitHub (Nov 25, 2026): done: TEST-LDS-SRC2-MC-STDIN -> #1733
Author
Owner

@kawaii-shakal commented on GitHub (Nov 25, 2026):

claiming: RT-MEM-PROBE-DUPLICATE - step 1 of #1702. With LEONIDA_MEM_PROBE, the texture census also reports the title pages behind filled images and how much of them is resident in RAM (QueryWorkingSetEx, one page in 16, new runtime/src/working_set.h), so a boot shows how big the RAM/VRAM duplicate is before anything changes behaviour.

<!-- gh-comment-id:7159332414 --> @kawaii-shakal commented on GitHub (Nov 25, 2026): claiming: RT-MEM-PROBE-DUPLICATE - step 1 of #1702. With `LEONIDA_MEM_PROBE`, the texture census also reports the title pages behind filled images and how much of them is resident in RAM (`QueryWorkingSetEx`, one page in 16, new `runtime/src/working_set.h`), so a boot shows how big the RAM/VRAM duplicate is before anything changes behaviour.
Author
Owner

@kawaii-shakal commented on GitHub (Nov 25, 2026):

done: RT-MEM-PROBE-DUPLICATE -> #1734

<!-- gh-comment-id:7159346204 --> @kawaii-shakal commented on GitHub (Nov 25, 2026): done: RT-MEM-PROBE-DUPLICATE -> #1734
Author
Owner

@kawaii-shakal commented on GitHub (Nov 25, 2026):

Correction to my ScreenProbes follow-up above. In those regions, s_andn2_b64 exec, s[40:41], exec is the else-arm flip: s[40:41] holds the enclosing condition's mask, and EXEC is usually a subset of it, not a superset. So a proof that s[40:41] ⊆ EXEC at the region entry would not hold there in general, and those votes look inherent to exact wave64 emulation on 32-wide subgroups. The more promising lever is making each vote cheaper, for example merging adjacent exchanges into one barrier or a cheaper wave-wide OR, rather than removing them. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7159367489 --> @kawaii-shakal commented on GitHub (Nov 25, 2026): Correction to my ScreenProbes follow-up above. In those regions, `s_andn2_b64 exec, s[40:41], exec` is the else-arm flip: `s[40:41]` holds the enclosing condition's mask, and EXEC is usually a subset of it, not a superset. So a proof that `s[40:41]` ⊆ EXEC at the region entry would not hold there in general, and those votes look inherent to exact wave64 emulation on 32-wide subgroups. The more promising lever is making each vote cheaper, for example merging adjacent exchanges into one barrier or a cheaper wave-wide OR, rather than removing them. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: SHADER-W64-FOLD-B32-MASK-BARRIERS - follow-up to @whoalin1's finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7159165301): in tools/wave64_emulate_opt.py, _classify_block_body, find_local_exec_folds, and _insn_may_barrier_with_meta miss three 32-bit wave64 lane-mask barrier/vote paths that tools/rdna2spirv.py lowers via wave_mask/g_vote (x_round/x_split): (1) opposite-half _mask_b32_src on s_mov_b32, s_cselect_b32, s_not_b32, and MASK_SOP2_B32 (independent of SCC liveness), (2) live-SCC scc_logic votes on _SOP2_B32_LOGIC, and (3) opposite-half wave_mask on s_*_saveexec_b32 / s_*_wrexec_b32 (independent of SCC liveness). All three currently trip AssertionError: wave64 emulation: x_split inside a folded lane-local region when folded (and can misclassify multi-wave inline_sync_free regions). Fix in tools/wave64_emulate_opt.py, regression + 64/128-lane workgroup tests in tests/semantic/test_wave64_emulate_barriers.py and tests/semantic/test_wave64_emulate_opt.py, contract note in docs/design.md. No game files or GPU needed. AI-assisted.

<!-- gh-comment-id:7159451450 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: SHADER-W64-FOLD-B32-MASK-BARRIERS - follow-up to @whoalin1's finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7159165301): in `tools/wave64_emulate_opt.py`, `_classify_block_body`, `find_local_exec_folds`, and `_insn_may_barrier_with_meta` miss three 32-bit wave64 lane-mask barrier/vote paths that `tools/rdna2spirv.py` lowers via `wave_mask`/`g_vote` (`x_round`/`x_split`): (1) opposite-half `_mask_b32_src` on `s_mov_b32`, `s_cselect_b32`, `s_not_b32`, and `MASK_SOP2_B32` (independent of SCC liveness), (2) live-SCC `scc_logic` votes on `_SOP2_B32_LOGIC`, and (3) opposite-half `wave_mask` on `s_*_saveexec_b32` / `s_*_wrexec_b32` (independent of SCC liveness). All three currently trip `AssertionError: wave64 emulation: x_split inside a folded lane-local region` when folded (and can misclassify multi-wave `inline_sync_free` regions). Fix in `tools/wave64_emulate_opt.py`, regression + 64/128-lane workgroup tests in `tests/semantic/test_wave64_emulate_barriers.py` and `tests/semantic/test_wave64_emulate_opt.py`, contract note in `docs/design.md`. No game files or GPU needed. AI-assisted.
Author
Owner

@Tauwni commented on GitHub (Nov 25, 2026):

finding: ps_cndmask_sign_mods and ps_valu16_mad_sel (runtime/test/shaders/, both from 2026-11-23) fail on KosmicKrisp (Mesa 26.3.1, Apple M3, macOS 26.5.1, main 626d1281a), 4096/4096 pixels, and pass on MoltenVK 1.4.2 and llvmpipe on the same machine. ps_cndmask_sign_mods (0,0): got 0x7fc00000 0x7fc00000 0x80000001 0x7fc00000, want 0xff800001 0x7f800001 0x80000001 0x7f800001; ps_valu16_mad_sel channel 2: got 0x7fc00000, want 0xffffffff. Both look like the measured KosmicKrisp NaN canonicalization in docs/testing.md (the RGBA32F row and the cs_bvh row), which check.py allows for ps_nan_payload only. Needs a Mac with KosmicKrisp; no game files. Details in #1718. AI-assisted.

Edit: check.py adds a third one on KosmicKrisp, cs_fmt_all word 293: expected 0x80007c01, got 0x80007e00 (an f16 signalling NaN stored quiet), on main with #1444 and with the open fixes merged; it passes on MoltenVK. run_gpu_tests.py does not run cs_fmt_all yet (#800).

<!-- gh-comment-id:7159472121 --> @Tauwni commented on GitHub (Nov 25, 2026): finding: `ps_cndmask_sign_mods` and `ps_valu16_mad_sel` (runtime/test/shaders/, both from 2026-11-23) fail on KosmicKrisp (Mesa 26.3.1, Apple M3, macOS 26.5.1, main 626d1281a), 4096/4096 pixels, and pass on MoltenVK 1.4.2 and llvmpipe on the same machine. `ps_cndmask_sign_mods` (0,0): got 0x7fc00000 0x7fc00000 0x80000001 0x7fc00000, want 0xff800001 0x7f800001 0x80000001 0x7f800001; `ps_valu16_mad_sel` channel 2: got 0x7fc00000, want 0xffffffff. Both look like the measured KosmicKrisp NaN canonicalization in docs/testing.md (the RGBA32F row and the cs_bvh row), which check.py allows for ps_nan_payload only. Needs a Mac with KosmicKrisp; no game files. Details in #1718. AI-assisted. Edit: `check.py` adds a third one on KosmicKrisp, `cs_fmt_all` word 293: expected 0x80007c01, got 0x80007e00 (an f16 signalling NaN stored quiet), on `main` with #1444 and with the open fixes merged; it passes on MoltenVK. `run_gpu_tests.py` does not run `cs_fmt_all` yet (#800).
Author
Owner

@xel1uz commented on GitHub (Nov 25, 2026):

claiming: CI-MAIN-CONSISTENCY (three repo-consistency tests red on main: test_runner_calls_all_tests, test_runtime_paths, test_tool_stdout_encoding)

<!-- gh-comment-id:7159480485 --> @xel1uz commented on GitHub (Nov 25, 2026): claiming: CI-MAIN-CONSISTENCY (three repo-consistency tests red on main: test_runner_calls_all_tests, test_runtime_paths, test_tool_stdout_encoding)
Author
Owner

@xel1uz commented on GitHub (Nov 25, 2026):

done: CI-MAIN-CONSISTENCY -> #1673

<!-- gh-comment-id:7159487506 --> @xel1uz commented on GitHub (Nov 25, 2026): done: CI-MAIN-CONSISTENCY -> #1673
Author
Owner

@Zalthor commented on GitHub (Nov 25, 2026):

Verification batch 2: 34 open pull requests. That's the last 2 that had no CI and no other PR on their files, plus 16 pairs where two open PRs edit the same tool. For the pairs I tested both sides and checked which one covers the other. Each diff (merge-base..head) was applied to its own clean worktree at main 626d1281a. Every diff except the three stale ones also still applies at 57ba40bd6, whose new commits only touch the runtime and rdna2spirv. Environment: Windows 10, CPython 3.10.6, CPU only, no game files. AI-assisted (Claude Code). Same method as batch 1: the PR's tests run the way CI runs them; the four repo-wide checks compared with main (none of the 34 adds a failure there); and the PR's test files run on unpatched main to confirm the new tests catch the bug.

Will fail CI's Windows job

CI's check job runs standard-library test files with python -I on windows-latest. These new tests use POSIX-only features with no Windows skip:

PR Fails on Windows because
#1667 build_dstorage_history import resource / setrlimit(RLIMIT_FSIZE) (ModuleNotFoundError), plus a #!/usr/bin/env python3 script that is run directly. 3 tests fail
#1668 gen_gdk_runtime_classes import resource / setrlimit, so the file errors on import
#1669 sandbox_scene a POSIX shell trainer script (exec: : not found) and an st_mode & 0o777 == 0o640 check (Windows gives 0o666). 2 tests fail
#895 manifest st_mode & 0o777 == 0o600 after cleanup (Windows gives 0o666). 1 test fails; the rest of test_manifest.py passes

New tests that never run in CI

#1648 feature_scan: the three new tests are methods of a new unittest.TestCase class. tests/test_feature_scan.py's __main__ block only calls top-level test_* functions, and CI runs this file with python -I, so CI never runs them. test_runner_calls_all_tests only checks top-level functions, so it doesn't catch this. The tests are also POSIX-only (import resource). The file's existing tests pass with the change.

Overlapping pairs: only one side of each can merge as is

"Conflicts" means the other PR's diff no longer applies once this one is merged.

Pair What I found
#1360 / #1380 Identical change. #1380 was a review follow-up to #1360, and #1360's author has since added an equivalent commit. Both pass; 10 of 13 new tests fail on main. #1380 is redundant
#244 (draft) / #1266 Identical change: the same commit by Elijah-J in both. Pass; 12 of 13 new tests fail on main
#80 (draft) / #1299 Same fix. #1299 differs only by trailing whitespace on one blank line. Pass; the new test fails on main
#1613 / #1629 dot_diff
#1615 / #1626 cvt_diff
#1616 / #1625 div_fixup_diff
All six pass, and the new tests in all six fail on main. They conflict in pairs. In each pair, IlyassRS3's PR (#1613/#1615/#1616) covers xel1uz's except for one decision: xel1uz's PRs reject --programs 0 with --programs must be at least 1, while IlyassRS3's accept --programs 0 (exit 0) and reject negatives as must be nonnegative. xel1uz's PRs fail 10 to 11 of IlyassRS3's new tests. So: keep IlyassRS3's and settle the --programs 0 question there
#544 / #1414 spirv_opt #1414's new tests pass on #544's code, so #544 covers it. They conflict. Both pass alone
#885 / #1433 glb_skinning Both pass, and each one's new tests fail on the other's code. They are different fixes that conflict in tools/glb_skinning.py, so whichever merges second needs a rebase
#340 / #1668 Both add tests/test_gen_gdk_runtime_classes.py. #340 (tests only) passes; #1668 fails on Windows (above)
#355 / #1623 Both add tests/test_buffer_format_fuzz.py. Both pass; #1623's new tests fail on main (3 of 7)
#895 / #1441 manifest Different topics that conflict in tools/manifest.py. #1441 passes (a macOS case-folding fix, so its new tests pass on Windows main too); #895 fails on Windows (above)
#717 / #1452 They apply together. #717 passes, and its 4 test files fail on main. #1452 passes (macOS case-folding, so it can't be reproduced on Windows)
#140 (draft) / #1393 They apply together. #1393 passes; 16 of 18 new tests fail on main. #140 is the Rust workspace draft: 8 of 9 of its test files pass here and test_meshlet_native.py fails. Not investigated further

Pass, nothing else to report

PR Result
#1469 xdxr_bvh Passes. On main, test_check_build_corrupt_truncated_or_cyclic_bin_exits_1_not_2 hangs (killed after 20 s; a cyclic BVH puts the current tool in an endless loop) and the other 5 new tests fail. That confirms the fix
#1421 Test-only (sys.path from __file__); passes on both

Stale

#690, #1423 and #94 (draft) no longer apply to main (README.md:66, docs/d3d12_vulkan.md:4041, tests/test_mesh_alloc_single_writer.py:1). Not tested.

Not covered: no Linux or macOS run, so the macOS-only fixes (#1441, #1452) are checked only for not breaking anything; no line-by-line code review; Python 3.10 rather than CI's 3.12. A force-push after this voids that PR's row.

<!-- gh-comment-id:7159493566 --> @Zalthor commented on GitHub (Nov 25, 2026): Verification batch 2: 34 open pull requests. That's the last 2 that had no CI and no other PR on their files, plus 16 pairs where two open PRs edit the same tool. For the pairs I tested both sides and checked which one covers the other. Each diff (merge-base..head) was applied to its own clean worktree at `main` `626d1281a`. Every diff except the three stale ones also still applies at `57ba40bd6`, whose new commits only touch the runtime and `rdna2spirv`. Environment: Windows 10, CPython 3.10.6, CPU only, no game files. AI-assisted (Claude Code). Same method as [batch 1](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157070042): the PR's tests run the way CI runs them; the four repo-wide checks compared with `main` (none of the 34 adds a failure there); and the PR's test files run on unpatched `main` to confirm the new tests catch the bug. ### Will fail CI's Windows job CI's `check` job runs standard-library test files with `python -I` on `windows-latest`. These new tests use POSIX-only features with no Windows skip: | PR | Fails on Windows because | |---|---| | #1667 `build_dstorage_history` | `import resource` / `setrlimit(RLIMIT_FSIZE)` (`ModuleNotFoundError`), plus a `#!/usr/bin/env python3` script that is run directly. 3 tests fail | | #1668 `gen_gdk_runtime_classes` | `import resource` / `setrlimit`, so the file errors on import | | #1669 `sandbox_scene` | a POSIX shell trainer script (`exec: : not found`) and an `st_mode & 0o777 == 0o640` check (Windows gives `0o666`). 2 tests fail | | #895 `manifest` | `st_mode & 0o777 == 0o600` after cleanup (Windows gives `0o666`). 1 test fails; the rest of `test_manifest.py` passes | ### New tests that never run in CI #1648 `feature_scan`: the three new tests are methods of a new `unittest.TestCase` class. `tests/test_feature_scan.py`'s `__main__` block only calls top-level `test_*` functions, and CI runs this file with `python -I`, so CI never runs them. `test_runner_calls_all_tests` only checks top-level functions, so it doesn't catch this. The tests are also POSIX-only (`import resource`). The file's existing tests pass with the change. ### Overlapping pairs: only one side of each can merge as is "Conflicts" means the other PR's diff no longer applies once this one is merged. | Pair | What I found | |---|---| | #1360 / #1380 | **Identical change.** #1380 was a review follow-up to #1360, and #1360's author has since added an equivalent commit. Both pass; 10 of 13 new tests fail on `main`. #1380 is redundant | | #244 (draft) / #1266 | **Identical change**: the same commit by Elijah-J in both. Pass; 12 of 13 new tests fail on `main` | | #80 (draft) / #1299 | **Same fix.** #1299 differs only by trailing whitespace on one blank line. Pass; the new test fails on `main` | | #1613 / #1629 `dot_diff`<br>#1615 / #1626 `cvt_diff`<br>#1616 / #1625 `div_fixup_diff` | All six pass, and the new tests in all six fail on `main`. They conflict in pairs. In each pair, IlyassRS3's PR (#1613/#1615/#1616) covers xel1uz's except for one decision: xel1uz's PRs reject `--programs 0` with `--programs must be at least 1`, while IlyassRS3's accept `--programs 0` (exit 0) and reject negatives as `must be nonnegative`. xel1uz's PRs fail 10 to 11 of IlyassRS3's new tests. So: keep IlyassRS3's and settle the `--programs 0` question there | | #544 / #1414 `spirv_opt` | #1414's new tests pass on #544's code, so #544 covers it. They conflict. Both pass alone | | #885 / #1433 `glb_skinning` | Both pass, and each one's new tests fail on the other's code. They are different fixes that conflict in `tools/glb_skinning.py`, so whichever merges second needs a rebase | | #340 / #1668 | Both add `tests/test_gen_gdk_runtime_classes.py`. #340 (tests only) passes; #1668 fails on Windows (above) | | #355 / #1623 | Both add `tests/test_buffer_format_fuzz.py`. Both pass; #1623's new tests fail on `main` (3 of 7) | | #895 / #1441 `manifest` | Different topics that conflict in `tools/manifest.py`. #1441 passes (a macOS case-folding fix, so its new tests pass on Windows `main` too); #895 fails on Windows (above) | | #717 / #1452 | They apply together. #717 passes, and its 4 test files fail on `main`. #1452 passes (macOS case-folding, so it can't be reproduced on Windows) | | #140 (draft) / #1393 | They apply together. #1393 passes; 16 of 18 new tests fail on `main`. #140 is the Rust workspace draft: 8 of 9 of its test files pass here and `test_meshlet_native.py` fails. Not investigated further | ### Pass, nothing else to report | PR | Result | |---|---| | #1469 `xdxr_bvh` | Passes. On `main`, `test_check_build_corrupt_truncated_or_cyclic_bin_exits_1_not_2` **hangs** (killed after 20 s; a cyclic BVH puts the current tool in an endless loop) and the other 5 new tests fail. That confirms the fix | | #1421 | Test-only (`sys.path` from `__file__`); passes on both | ### Stale #690, #1423 and #94 (draft) no longer apply to `main` (`README.md:66`, `docs/d3d12_vulkan.md:4041`, `tests/test_mesh_alloc_single_writer.py:1`). Not tested. Not covered: no Linux or macOS run, so the macOS-only fixes (#1441, #1452) are checked only for not breaking anything; no line-by-line code review; Python 3.10 rather than CI's 3.12. A force-push after this voids that PR's row.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: SHADER-W64-FOLD-B32-MASK-BARRIERS -> #1735 (shared _mask_chk_may_barrier in tools/wave64_emulate_opt.py covering opposite-half _mask_b32_src, live-SCC scc_logic, and opposite-half saveexec_b32/wrexec_b32; 487 semantic test files / 6,283 tests OK, 11 mutation failures on unpatched main; CPU-only, no game files). AI-assisted.

<!-- gh-comment-id:7159563806 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: SHADER-W64-FOLD-B32-MASK-BARRIERS -> #1735 (shared `_mask_chk_may_barrier` in `tools/wave64_emulate_opt.py` covering opposite-half `_mask_b32_src`, live-SCC `scc_logic`, and opposite-half `saveexec_b32`/`wrexec_b32`; 487 semantic test files / 6,283 tests OK, 11 mutation failures on unpatched main; CPU-only, no game files). AI-assisted.
Author
Owner

@potatoe0100 commented on GitHub (Nov 25, 2026):

claiming: D3D-INDIRECT-STATE-REFUSE - a guard, not the feature. On main, CreateCommandSignature (runtime/shims/d3d12_vulkan_device.cpp) accepts a signature with arguments before the draw/dispatch (CONSTANT, INCREMENTING_CONSTANT, root CBV/SRV/UAV, VERTEX_BUFFER_VIEW, INDEX_BUFFER_VIEW), but the CommandSignature keeps only the kind and stride, and ExecuteIndirect reads the draw arguments at the start of each record. So [CONSTANT, DRAW] draws with the constant as its vertex count. Until per-command state is replayed, refuse those signatures with E_NOTIMPL and a one-time log, as other unimplemented features already are. One-argument signatures (all five the title creates at startup) are unchanged. When INDIRECT-STATE-ARGS (@BubsMcgee, #1620) lands, it lifts the VERTEX/INDEX_BUFFER_VIEW part. Synthetic tests in d3d12_execute_indirect_validation, no game files. AI-assisted, posted by a non-developer tester.

<!-- gh-comment-id:7159569770 --> @potatoe0100 commented on GitHub (Nov 25, 2026): claiming: D3D-INDIRECT-STATE-REFUSE - a guard, not the feature. On `main`, `CreateCommandSignature` (`runtime/shims/d3d12_vulkan_device.cpp`) accepts a signature with arguments before the draw/dispatch (CONSTANT, INCREMENTING_CONSTANT, root CBV/SRV/UAV, VERTEX_BUFFER_VIEW, INDEX_BUFFER_VIEW), but the `CommandSignature` keeps only the kind and stride, and `ExecuteIndirect` reads the draw arguments at the start of each record. So `[CONSTANT, DRAW]` draws with the constant as its vertex count. Until per-command state is replayed, refuse those signatures with `E_NOTIMPL` and a one-time log, as other unimplemented features already are. One-argument signatures (all five the title creates at startup) are unchanged. When INDIRECT-STATE-ARGS (@BubsMcgee, #1620) lands, it lifts the VERTEX/INDEX_BUFFER_VIEW part. Synthetic tests in `d3d12_execute_indirect_validation`, no game files. AI-assisted, posted by a non-developer tester.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: SHADER-W64-RELATIONAL-EXEC-SUBSET - follow-up to @kawaii-shakal's ScreenProbes compile-stall findings (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7159151871 and https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7159201759): add a conservative forward must-analysis of pairwise 64-bit lane-mask subset relations (a ⊆ b and must-zero masks across exec, vcc, and 64-bit SGPR pairs) in tools/wave64_emulate_opt.py, feeding the entry pairs proven ⊆ EXEC at each s_cbranch_execz/nz guard into _exec_writes_stay_inactive. This lets regions restoring EXEC via live-in s_andn2_b64 exec, s[a:b], exec / s_mov_b64 exec, s[a:b] / s_or_b64 exec, exec, s[a:b] fold inline behind if (%active) with zero wave-vote barriers whenever s[a:b] ⊆ EXEC at region entry, while still rejecting every non-subset live-in pair. Composes cleanly with #793 (inter-block subset facts only; leaves intra-region zero_pairs flow-insensitive). Verified with 64/128-lane workgroup interpreter positive and negative soundness tests in tests/semantic/test_wave64_emulate_opt.py and unit CFG tests in tests/test_wave64_emulate_opt_cfg.py, plus contract row in docs/design.md. No game files or GPU needed. AI-assisted.

<!-- gh-comment-id:7159574773 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: SHADER-W64-RELATIONAL-EXEC-SUBSET - follow-up to @kawaii-shakal's ScreenProbes compile-stall findings (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7159151871 and https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7159201759): add a conservative forward must-analysis of pairwise 64-bit lane-mask subset relations (`a ⊆ b` and must-zero masks across `exec`, `vcc`, and 64-bit SGPR pairs) in `tools/wave64_emulate_opt.py`, feeding the entry pairs proven `⊆ EXEC` at each `s_cbranch_execz`/`nz` guard into `_exec_writes_stay_inactive`. This lets regions restoring `EXEC` via live-in `s_andn2_b64 exec, s[a:b], exec` / `s_mov_b64 exec, s[a:b]` / `s_or_b64 exec, exec, s[a:b]` fold inline behind `if (%active)` with zero wave-vote barriers whenever `s[a:b] ⊆ EXEC` at region entry, while still rejecting every non-subset live-in pair. Composes cleanly with #793 (inter-block subset facts only; leaves intra-region `zero_pairs` flow-insensitive). Verified with 64/128-lane workgroup interpreter positive and negative soundness tests in `tests/semantic/test_wave64_emulate_opt.py` and unit CFG tests in `tests/test_wave64_emulate_opt_cfg.py`, plus contract row in `docs/design.md`. No game files or GPU needed. AI-assisted.
Author
Owner

@efeekrb commented on GitHub (Nov 25, 2026):

claiming: I18N-FR-CONTRIBUTING-PR-SECTION - docs/i18n/fr/contributing.md stops before the "Pull requests" section the English CONTRIBUTING.md gained in 4f7a3477 and 364754de (one topic per PR, template fields, the needs rebase label). I will translate it and move the synced commit to 364754de; the rest of the page already matches. Docs only, no game files; AI-assisted (Claude Code).

<!-- gh-comment-id:7159581934 --> @efeekrb commented on GitHub (Nov 25, 2026): claiming: I18N-FR-CONTRIBUTING-PR-SECTION - docs/i18n/fr/contributing.md stops before the "Pull requests" section the English CONTRIBUTING.md gained in 4f7a3477 and 364754de (one topic per PR, template fields, the `needs rebase` label). I will translate it and move the synced commit to 364754de; the rest of the page already matches. Docs only, no game files; AI-assisted (Claude Code).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

released: SHADER-W64-RELATIONAL-EXEC-SUBSET - saw @kawaii-shakal's 10:12Z correction (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7159367489) right after posting: in the ScreenProbes regions s[40:41] holds the enclosing condition's mask (a superset of EXEC, not a subset), so relational s[40:41] ⊆ EXEC tracking does not clear those 109 votes. Releasing rather than landing complexity that won't move ScreenProbes compile times. AI-assisted.

<!-- gh-comment-id:7159595337 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): released: SHADER-W64-RELATIONAL-EXEC-SUBSET - saw @kawaii-shakal's 10:12Z correction (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7159367489) right after posting: in the ScreenProbes regions `s[40:41]` holds the enclosing condition's mask (a superset of EXEC, not a subset), so relational `s[40:41] ⊆ EXEC` tracking does not clear those 109 votes. Releasing rather than landing complexity that won't move ScreenProbes compile times. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-PRESENT-DUMP-SPLASH-HANDOFF - @aslan2142's finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157589788): when LEONIDA_PRESENT_DUMP is enabled and present_splash() enables splash_capture_only_, the first non-black title frame (show_title == true in runtime/src/vulkan_present.h:648-655) unconditionally calls release_capture(), destroying capture_buffer_ and setting capture_ptr_ = nullptr while dump_.enabled() stays true and capture_size_ stays non-zero. On the same or next dump_.due(shown - 1) frame (vulkan_present.h:662-666), dump_.save(..., capture_ptr_, capture_size_) copies from nullptr -> 0xc0000005 read of address 0 in ucrtbase.dll (matching the ~149-present / 5-frame crash with ,30 and ~299-present / 2-frame crash with ,150).

Fix: (1) keep capture_buffer_/capture_ptr_ alive across splash handoff when dump_.enabled(), and wait on all frames_ fences before release_capture() when !dump_.enabled() so an in-flight copy cannot race buffer destruction; (2) clear capture_size_ = 0 in release_capture() and guard dump_.due() on capture_ptr_ && capture_size_; (3) validate src, format stride, extent, and overflow-safe buffer size in PresentDump::save() (runtime/src/present_dump.h); (4) add portable CPU tests for PresentDump::save() and the splash-handoff capture-release decision plus a splash-handoff mode in runtime/test/vk_present_dump_test.cpp. Does not overlap #1694 (make_capture_buffer memory type preference). No game files needed. AI-assisted.

<!-- gh-comment-id:7159613942 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-PRESENT-DUMP-SPLASH-HANDOFF - @aslan2142's finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157589788): when `LEONIDA_PRESENT_DUMP` is enabled and `present_splash()` enables `splash_capture_only_`, the first non-black title frame (`show_title == true` in `runtime/src/vulkan_present.h:648-655`) unconditionally calls `release_capture()`, destroying `capture_buffer_` and setting `capture_ptr_ = nullptr` while `dump_.enabled()` stays true and `capture_size_` stays non-zero. On the same or next `dump_.due(shown - 1)` frame (`vulkan_present.h:662-666`), `dump_.save(..., capture_ptr_, capture_size_)` copies from `nullptr` -> `0xc0000005` read of address 0 in `ucrtbase.dll` (matching the ~149-present / 5-frame crash with `,30` and ~299-present / 2-frame crash with `,150`). Fix: (1) keep `capture_buffer_`/`capture_ptr_` alive across splash handoff when `dump_.enabled()`, and wait on all `frames_` fences before `release_capture()` when `!dump_.enabled()` so an in-flight copy cannot race buffer destruction; (2) clear `capture_size_ = 0` in `release_capture()` and guard `dump_.due()` on `capture_ptr_ && capture_size_`; (3) validate `src`, format stride, extent, and overflow-safe buffer size in `PresentDump::save()` (`runtime/src/present_dump.h`); (4) add portable CPU tests for `PresentDump::save()` and the splash-handoff capture-release decision plus a splash-handoff mode in `runtime/test/vk_present_dump_test.cpp`. Does not overlap #1694 (`make_capture_buffer` memory type preference). No game files needed. AI-assisted.
Author
Owner

@efeekrb commented on GitHub (Nov 25, 2026):

done: I18N-FR-CONTRIBUTING-PR-SECTION -> #1736

<!-- gh-comment-id:7159631966 --> @efeekrb commented on GitHub (Nov 25, 2026): done: I18N-FR-CONTRIBUTING-PR-SECTION -> #1736
Author
Owner

@Zalthor commented on GitHub (Nov 25, 2026):

Verification batch 3: 22 open pull requests whose CI is still queued, behind 723 Actions runs at last count. All are Python with tests, none shares a file with another open PR, and none had been mentioned in #14's successor before now. Each diff (merge-base..head) was applied to its own clean worktree at main 57ba40bd6. Environment: Windows 10, CPython 3.10.6, CPU only, no game files. AI-assisted (Claude Code). Same method as batch 1 and batch 2.

All 22 pass. Each applies cleanly, compiles, passes check_no_game_data.py, and its tests pass the way CI runs them. None adds a failure to the four repo-wide checks. For every new test I also confirmed that CI's runner reaches it: unittest.main(), or an explicit runner that calls each new function. None of these has the batch-2 #1648 problem.

Bug fixes: the new tests fail on unpatched main and pass with the change

PR New tests failing on main
#1515 navmesh_links 10 of 12
#1522 ped_catalogues 12 of 12
#1523 psin_psch 5 of 5
#1526 gamedata_maps 7 of 7
#1530 sampler_source_census 7 of 7
#1534 image_bvh_census 6 of 6
#446 saves (SAVE-DATA-BLOB) changes existing tests; test_saves.py fails on main with them and passes with the change (70 OK, 1 skipped, the same as the PR body reports)

Test-only: they add coverage and pass on both main and the PR, as expected

PR New file Note
#341 test_conformance_compare.py no other test touches tools/conformance/compare.py on main
#342 test_hw_oracle_runner.py no other test touches tools/hw_oracle/runner.py
#351 test_hw_oracle_asm.py test_hw_oracle_asm_strip.py already covers part of the module
#352 test_run_guest_scene.py
#370 test_sandbox.py
#371 test_shaders_check.py
#372 test_shaders_build.py
#493 test_zero_span_extra.py beside test_zero_span.py and test_zero_span_negative.py
#495 test_file_mode_extra.py beside test_file_mode.py
#536 test_inline_scan_extra.py beside test_inline_scan.py
#538 test_fssm_header_bindings_extra.py beside test_fssm_header.py and test_fssm_header_extra.py
#542 test_cfg_structure_extra.py beside test_cfg_structure.py
#1412 changes test_mod_pack_output_alias.py
#1516 changes tests/semantic/test_mutations.py

The _extra files could arguably be folded into the existing file for each module, but that is a style call, not a defect.

Now test-only, although the title says otherwise

#1283 shader_ir: read a listing a line at a time: the PR's diff against current main no longer touches tools/shader_ir.py. main already streams the listing (parse_file iterates the file, line 258; the change appears to have landed with #984). What remains are two tests that pin that behavior, including a tracemalloc peak check on a ~6 MB message tail. They pass on both. Mergeable as tests, but the title no longer describes the change.

Not covered: no Linux or macOS run, no line-by-line code review, Python 3.10 rather than CI's 3.12. A force-push after this voids that PR's row.

<!-- gh-comment-id:7159700093 --> @Zalthor commented on GitHub (Nov 25, 2026): Verification batch 3: 22 open pull requests whose CI is still queued, behind 723 Actions runs at last count. All are Python with tests, none shares a file with another open PR, and none had been mentioned in #14's successor before now. Each diff (merge-base..head) was applied to its own clean worktree at `main` `57ba40bd6`. Environment: Windows 10, CPython 3.10.6, CPU only, no game files. AI-assisted (Claude Code). Same method as [batch 1](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157070042) and [batch 2](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7159493566). **All 22 pass.** Each applies cleanly, compiles, passes `check_no_game_data.py`, and its tests pass the way CI runs them. None adds a failure to the four repo-wide checks. For every new test I also confirmed that CI's runner reaches it: `unittest.main()`, or an explicit runner that calls each new function. None of these has the batch-2 #1648 problem. ### Bug fixes: the new tests fail on unpatched `main` and pass with the change | PR | New tests failing on `main` | |---|---| | #1515 `navmesh_links` | 10 of 12 | | #1522 `ped_catalogues` | 12 of 12 | | #1523 `psin_psch` | 5 of 5 | | #1526 `gamedata_maps` | 7 of 7 | | #1530 `sampler_source_census` | 7 of 7 | | #1534 `image_bvh_census` | 6 of 6 | | #446 `saves` (SAVE-DATA-BLOB) | changes existing tests; `test_saves.py` fails on `main` with them and passes with the change (70 OK, 1 skipped, the same as the PR body reports) | ### Test-only: they add coverage and pass on both `main` and the PR, as expected | PR | New file | Note | |---|---|---| | #341 | `test_conformance_compare.py` | no other test touches `tools/conformance/compare.py` on `main` | | #342 | `test_hw_oracle_runner.py` | no other test touches `tools/hw_oracle/runner.py` | | #351 | `test_hw_oracle_asm.py` | `test_hw_oracle_asm_strip.py` already covers part of the module | | #352 | `test_run_guest_scene.py` | | | #370 | `test_sandbox.py` | | | #371 | `test_shaders_check.py` | | | #372 | `test_shaders_build.py` | | | #493 | `test_zero_span_extra.py` | beside `test_zero_span.py` and `test_zero_span_negative.py` | | #495 | `test_file_mode_extra.py` | beside `test_file_mode.py` | | #536 | `test_inline_scan_extra.py` | beside `test_inline_scan.py` | | #538 | `test_fssm_header_bindings_extra.py` | beside `test_fssm_header.py` and `test_fssm_header_extra.py` | | #542 | `test_cfg_structure_extra.py` | beside `test_cfg_structure.py` | | #1412 | changes `test_mod_pack_output_alias.py` | | | #1516 | changes `tests/semantic/test_mutations.py` | | The `_extra` files could arguably be folded into the existing file for each module, but that is a style call, not a defect. ### Now test-only, although the title says otherwise #1283 `shader_ir: read a listing a line at a time`: the PR's diff against current `main` no longer touches `tools/shader_ir.py`. `main` already streams the listing (`parse_file` iterates the file, line 258; the change appears to have landed with #984). What remains are two tests that pin that behavior, including a `tracemalloc` peak check on a ~6 MB message tail. They pass on both. Mergeable as tests, but the title no longer describes the change. Not covered: no Linux or macOS run, no line-by-line code review, Python 3.10 rather than CI's 3.12. A force-push after this voids that PR's row.
Author
Owner

@efeekrb commented on GitHub (Nov 25, 2026):

finding: two rows of the open-work table in #14 are done on main and can be marked so.

  • SHADER-1264 (computed EXEC writes): fixed by #24 (1b15cd23). tests/semantic/test_exec_computed.py passes on main 3de22a19; the full semantic suite is 487 files / 6,279 tests / 0 failed (Linux, Python 3.13, no GPU). Issue #15 ("test_exec_computed is red on main") can be closed.
  • TEST-ATOMIC-GUARD: fixed by #460 (891fb8f4, b3eaa3d7: the helper accepts the folded %true and keeps a dynamic EXEC case). The open #136 covers the same test and may be superseded.
    No game files needed; AI-assisted (Claude Code).
<!-- gh-comment-id:7159721733 --> @efeekrb commented on GitHub (Nov 25, 2026): finding: two rows of the open-work table in #14 are done on main and can be marked so. - SHADER-1264 (computed EXEC writes): fixed by #24 (1b15cd23). tests/semantic/test_exec_computed.py passes on main 3de22a19; the full semantic suite is 487 files / 6,279 tests / 0 failed (Linux, Python 3.13, no GPU). Issue #15 ("test_exec_computed is red on main") can be closed. - TEST-ATOMIC-GUARD: fixed by #460 (891fb8f4, b3eaa3d7: the helper accepts the folded %true and keeps a dynamic EXEC case). The open #136 covers the same test and may be superseded. No game files needed; AI-assisted (Claude Code).
Author
Owner

@potatoe0100 commented on GitHub (Nov 25, 2026):

done: D3D-INDIRECT-STATE-REFUSE -> #1737

<!-- gh-comment-id:7159739731 --> @potatoe0100 commented on GitHub (Nov 25, 2026): done: D3D-INDIRECT-STATE-REFUSE -> #1737
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-PRESENT-DUMP-SPLASH-HANDOFF -> #1738 (https://github.com/ubiquitarianism/leonida/pull/1738)
Keeps the presenter capture buffer alive across launch splash handoff when LEONIDA_PRESENT_DUMP is active, waits on all ring fences before releasing it when dump is off, resets capture_size_ on release, and validates (src, size, extent, format) in PresentDump::save() before copying.

<!-- gh-comment-id:7159744996 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: `RT-PRESENT-DUMP-SPLASH-HANDOFF` -> #1738 (https://github.com/ubiquitarianism/leonida/pull/1738) Keeps the presenter capture buffer alive across launch splash handoff when `LEONIDA_PRESENT_DUMP` is active, waits on all ring fences before releasing it when dump is off, resets `capture_size_` on release, and validates `(src, size, extent, format)` in `PresentDump::save()` before copying.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-DESCRIPTOR-TABLE-GUARDS - harden runtime/src/descriptor_table.h (bindless set 0 binding 2 table):

  1. Check the 9-way full-hash collision before load-factor grow_locked() so a colliding insert into a 16-slot table throws std::length_error without needlessly doubling capacity and setting all_changed_.
  2. Widen read_slots() offset arithmetic to std::size_t (std::size_t(i) * 10, std::size_t(first) + i).
  3. Skip appending to changed_slots_ when all_changed_ is already set, and reserve changed_slots_ before mutating entries_/occupied_count_ so a std::bad_alloc in change tracking leaves the table and dirty list consistent instead of desynchronizing CPU and GPU tables.
    CPU-only, no game files; AI-assisted.
<!-- gh-comment-id:7159904197 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: `RT-DESCRIPTOR-TABLE-GUARDS` - harden `runtime/src/descriptor_table.h` (bindless set 0 binding 2 table): 1. Check the 9-way full-hash collision before load-factor `grow_locked()` so a colliding insert into a 16-slot table throws `std::length_error` without needlessly doubling capacity and setting `all_changed_`. 2. Widen `read_slots()` offset arithmetic to `std::size_t` (`std::size_t(i) * 10`, `std::size_t(first) + i`). 3. Skip appending to `changed_slots_` when `all_changed_` is already set, and reserve `changed_slots_` before mutating `entries_`/`occupied_count_` so a `std::bad_alloc` in change tracking leaves the table and dirty list consistent instead of desynchronizing CPU and GPU tables. CPU-only, no game files; AI-assisted.
Author
Owner

@Mby159 commented on GitHub (Nov 25, 2026):

claiming: RT-PSO-STREAM-EINVALIDARG-REASON - a pipeline state stream that this layer refuses with E_INVALIDARG names the reason, so the pipeline that is skipped is visible in the log.

aslan2142's finding asks for exactly one first step that needs no game files: "print the refusal reason for E_INVALIDARG too" (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157589410).

On main 57ba40bd6 the refusal is silent for two separate reasons, both visible in the source:

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

What the change does, in one pull request based on current main (the implementation is already written on a branch):

  • give each E_INVALIDARG refusal in parse_pipeline_stream a reason and print it once through the existing unconditional log_once, next to the stream_unsupported helper: the stream has no subobjects, it ends inside a subobject type or payload, an unknown subobject type, two subobjects of one family, a compute stage with graphics stages, no shader stage;
  • name the two mesh cases in create_graphics as well, and give one generic reason to the remaining graphics-state refusals;
  • record the E_INVALIDARG refusals in the PipelineStream::Refused trace when tracing is on, and widen the console path's LEONIDA_PSO_STREAM_AUDIT gate to E_INVALIDARG as well (the audit call site stays console-only);
  • update the stream section of docs/d3d12_vulkan.md.

Every refusal still returns E_INVALIDARG; what is added is the reason, one log line per distinct (reason, subobject type) pair, and the trace record.

No game files and no keys: a pipeline state stream is read from the caller's own description. AI-assisted.

<!-- gh-comment-id:7159937113 --> @Mby159 commented on GitHub (Nov 25, 2026): claiming: RT-PSO-STREAM-EINVALIDARG-REASON - a pipeline state stream that this layer refuses with E_INVALIDARG names the reason, so the pipeline that is skipped is visible in the log. aslan2142's finding asks for exactly one first step that needs no game files: "print the refusal reason for E_INVALIDARG too" (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157589410). On main 57ba40bd6 the refusal is silent for two separate reasons, both visible in the source: - `runtime/shims/d3d12_vulkan_device.cpp:12127`: the `finish` lambda of the PC `CreatePipelineState` records a `PipelineStream::Refused` trace for `E_NOTIMPL` only, and every `E_INVALIDARG` from `parse_pipeline_stream` returns a bare HRESULT, so `d3d12_trace::stream_refusal` stays null; - `runtime/shims/d3d12_xs_device.cpp:4729`: the `LEONIDA_PSO_STREAM_AUDIT` gate fires for `E_NOTIMPL` and `E_FAIL` only. `audit_pso_stream` is called from that console proxy path alone, so on the PC path the audit line does not appear either. What the change does, in one pull request based on current `main` (the implementation is already written on a branch): - give each `E_INVALIDARG` refusal in `parse_pipeline_stream` a reason and print it once through the existing unconditional `log_once`, next to the `stream_unsupported` helper: the stream has no subobjects, it ends inside a subobject type or payload, an unknown subobject type, two subobjects of one family, a compute stage with graphics stages, no shader stage; - name the two mesh cases in `create_graphics` as well, and give one generic reason to the remaining graphics-state refusals; - record the `E_INVALIDARG` refusals in the `PipelineStream::Refused` trace when tracing is on, and widen the console path's `LEONIDA_PSO_STREAM_AUDIT` gate to `E_INVALIDARG` as well (the audit call site stays console-only); - update the stream section of `docs/d3d12_vulkan.md`. Every refusal still returns `E_INVALIDARG`; what is added is the reason, one log line per distinct (reason, subobject type) pair, and the trace record. No game files and no keys: a pipeline state stream is read from the caller's own description. AI-assisted.
Author
Owner

@Mby159 commented on GitHub (Nov 25, 2026):

Still open from before this thread moved out of #14, linked here so they are easy to find:

Both pull requests are open against main. AI-assisted.

<!-- gh-comment-id:7159941509 --> @Mby159 commented on GitHub (Nov 25, 2026): Still open from before this thread moved out of #14, linked here so they are easy to find: - `RT-LIST-WRITE-VALUE` -> #622 (claim and `done:` in #14: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7127347713 and https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7128268888) - `GPU-780M-INDEX` -> #431 (claim and `done:` in #14: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7122161927 and https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7122653217) Both pull requests are open against `main`. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-DESCRIPTOR-TABLE-GUARDS -> #1739 (https://github.com/ubiquitarianism/leonida/pull/1739)
Checks 9-way full-hash collisions before load-factor grow_locked(), widens read_slots() offsets to std::size_t, skips redundant changed_slots_ appends while all_changed_ is set, and reserves changed_slots_ before mutating entries_/occupied_count_ for strong exception safety (descriptor_table_test passes under -Wall -Wextra -Werror -fsanitize=undefined and -O2; mutation test fails on unpatched main).

<!-- gh-comment-id:7159953433 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: `RT-DESCRIPTOR-TABLE-GUARDS` -> #1739 (https://github.com/ubiquitarianism/leonida/pull/1739) Checks 9-way full-hash collisions before load-factor `grow_locked()`, widens `read_slots()` offsets to `std::size_t`, skips redundant `changed_slots_` appends while `all_changed_` is set, and reserves `changed_slots_` before mutating `entries_`/`occupied_count_` for strong exception safety (`descriptor_table_test` passes under `-Wall -Wextra -Werror -fsanitize=undefined` and `-O2`; mutation test fails on unpatched `main`).
Author
Owner

@Mby159 commented on GitHub (Nov 25, 2026):

done: RT-PSO-STREAM-EINVALIDARG-REASON -> #1740

The pipeline state stream refusal reason is now printed for E_INVALIDARG. Each refusal in parse_pipeline_stream names its case (the stream has no subobjects, it ends inside a subobject type or payload, an unknown subobject type, two subobjects of one family, a compute stage with graphics stages, no shader stage), the PC CreatePipelineState prints each reason once through log_once (no environment variable needed) and records the E_INVALIDARG refusals in the PipelineStream::Refused trace when tracing is on, and the console proxy's LEONIDA_PSO_STREAM_AUDIT gate is widened to E_INVALIDARG (the audit call site stays console-only). The HRESULTs do not change.

Based on main 57ba40bd6. Syntax-checked only: this machine has no MSVC, no Windows SDK and no GPU, so the runtime was not built and no pipeline was created; the Runtime workflow builds the runtime tree with MSVC on windows-latest and runs the CPU runtime tests with ctest. AI-assisted.

<!-- gh-comment-id:7159982117 --> @Mby159 commented on GitHub (Nov 25, 2026): done: RT-PSO-STREAM-EINVALIDARG-REASON -> #1740 The pipeline state stream refusal reason is now printed for `E_INVALIDARG`. Each refusal in `parse_pipeline_stream` names its case (the stream has no subobjects, it ends inside a subobject type or payload, an unknown subobject type, two subobjects of one family, a compute stage with graphics stages, no shader stage), the PC `CreatePipelineState` prints each reason once through `log_once` (no environment variable needed) and records the `E_INVALIDARG` refusals in the `PipelineStream::Refused` trace when tracing is on, and the console proxy's `LEONIDA_PSO_STREAM_AUDIT` gate is widened to `E_INVALIDARG` (the audit call site stays console-only). The HRESULTs do not change. Based on `main` 57ba40bd6. Syntax-checked only: this machine has no MSVC, no Windows SDK and no GPU, so the runtime was not built and no pipeline was created; the Runtime workflow builds the runtime tree with MSVC on windows-latest and runs the CPU runtime tests with `ctest`. AI-assisted.
Author
Owner

@efeekrb commented on GitHub (Nov 25, 2026):

claiming: DOC-GPU-RESULTS-INDEX - docs/gpu_test_results.md summarizes 6 runs while gpu-test-results/ holds 20 records; 14 (RTX 2060 SUPER, 3060 Ti, 3070 Ti, 4060, 4070, 4070 Ti, 4080, 5070, 5090, GTX 1080, RX 5700 XT, Radeon 610M, 9950X3D iGPU, llvmpipe arm64) are not indexed anywhere. I will add one row each (GPU, driver/OS, commit, run_gpu_tests.py counts in both modes, failed tests, link to the record) and point the header at gpu-test-results/ instead of the dead #166. The 780M is left to #431. Docs only, no game files; AI-assisted (Claude Code).

<!-- gh-comment-id:7160020633 --> @efeekrb commented on GitHub (Nov 25, 2026): claiming: DOC-GPU-RESULTS-INDEX - docs/gpu_test_results.md summarizes 6 runs while gpu-test-results/ holds 20 records; 14 (RTX 2060 SUPER, 3060 Ti, 3070 Ti, 4060, 4070, 4070 Ti, 4080, 5070, 5090, GTX 1080, RX 5700 XT, Radeon 610M, 9950X3D iGPU, llvmpipe arm64) are not indexed anywhere. I will add one row each (GPU, driver/OS, commit, run_gpu_tests.py counts in both modes, failed tests, link to the record) and point the header at gpu-test-results/ instead of the dead #166. The 780M is left to #431. Docs only, no game files; AI-assisted (Claude Code).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-PIPELINE-COMPILE-UNLOCK-RESOURCES - addresses the resource_mutex_ lock convoy in @DadaCap's world-start watchdog finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157762911):

  • Separate VulkanContext::pipeline_mutex_ (guarding pipelines_, graphics_pipelines_, pipeline_workers_, and device_fault_->pipeline_names) from resource_mutex_ in runtime/src/vulkan_backend.h (strict lock hierarchy: state_mutex_ -> pipeline_mutex_ -> resource_mutex_ -> tracker_mutex_ -> submit_mutex_).
  • In VulkanQueue::execute_now(), collect unbuilt pipelines via PipelineCompiles (whether pipeline_workers_ is enabled or serial), release pass-0 transient state and unlock tracker_mutex_ and resource_mutex_ before compiling them under pipeline_mutex_ alone, then re-acquire resource_mutex_ to finish preparation against current resources.
  • Reuse prior compile outcomes in PipelineCompiles::build / build_pipelines (runtime/src/vulkan_replay.h) so non-strict failed compute dispatches are neither re-compiled nor double-logged on re-prepare.
  • Add CPU mock concurrency regression test runtime/test/replay_pipeline_compile_unlock_test.cpp and extend runtime/test/replay_pipeline_compiles_test.cpp. No game files; AI-assisted.
<!-- gh-comment-id:7160038060 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: `RT-PIPELINE-COMPILE-UNLOCK-RESOURCES` - addresses the `resource_mutex_` lock convoy in @DadaCap's world-start watchdog finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157762911): - Separate `VulkanContext::pipeline_mutex_` (guarding `pipelines_`, `graphics_pipelines_`, `pipeline_workers_`, and `device_fault_->pipeline_names`) from `resource_mutex_` in `runtime/src/vulkan_backend.h` (strict lock hierarchy: `state_mutex_` -> `pipeline_mutex_` -> `resource_mutex_` -> `tracker_mutex_` -> `submit_mutex_`). - In `VulkanQueue::execute_now()`, collect unbuilt pipelines via `PipelineCompiles` (whether `pipeline_workers_` is enabled or serial), release pass-0 transient state and unlock `tracker_mutex_` and `resource_mutex_` before compiling them under `pipeline_mutex_` alone, then re-acquire `resource_mutex_` to finish preparation against current resources. - Reuse prior compile outcomes in `PipelineCompiles::build` / `build_pipelines` (`runtime/src/vulkan_replay.h`) so non-strict failed compute dispatches are neither re-compiled nor double-logged on re-prepare. - Add CPU mock concurrency regression test `runtime/test/replay_pipeline_compile_unlock_test.cpp` and extend `runtime/test/replay_pipeline_compiles_test.cpp`. No game files; AI-assisted.
Author
Owner

@efeekrb commented on GitHub (Nov 25, 2026):

done: DOC-GPU-RESULTS-INDEX -> #1741

<!-- gh-comment-id:7160055977 --> @efeekrb commented on GitHub (Nov 25, 2026): done: DOC-GPU-RESULTS-INDEX -> #1741
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-PIPELINE-COMPILE-UNLOCK-RESOURCES -> #1742 (https://github.com/ubiquitarianism/leonida/pull/1742)
Separates VulkanContext::pipeline_mutex_ from resource_mutex_ and releases tracker_mutex_ + resource_mutex_ before compiling unbuilt pipelines in VulkanQueue::execute_now(), then re-prepares against current resources using prior compile outcomes (replay_pipeline_compile_unlock_test added; requires Vulkan::Headers in CI to build/run).

<!-- gh-comment-id:7160184004 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: `RT-PIPELINE-COMPILE-UNLOCK-RESOURCES` -> #1742 (https://github.com/ubiquitarianism/leonida/pull/1742) Separates `VulkanContext::pipeline_mutex_` from `resource_mutex_` and releases `tracker_mutex_` + `resource_mutex_` before compiling unbuilt pipelines in `VulkanQueue::execute_now()`, then re-prepares against current resources using prior compile outcomes (`replay_pipeline_compile_unlock_test` added; requires `Vulkan::Headers` in CI to build/run).
Author
Owner

@QemmHD commented on GitHub (Nov 25, 2026):

finding (follow-up to my correction above): the world-start WRITE_INVALID doesn't come from any translated shader's store. RT-STORE-TRACE now covers compute and graphics stages: buffer and global stores, atomics, and compute scalar (descriptor) loads. Trace modules were built for all 4,976 programs that contain a store or atomic. On a real boot with every traced program enabled (1,396-1,457 programs built and bound per run, about 905 of them graphics):

  • With a 1 TiB minimum-address filter: 0 records, twice.
  • With no filter: 963,363 records, all from 38 library compute programs, none far above the heap base, and 0 reaching the fault address. No graphics-stage store executed before the loss.

What the fault looks like over 8 runs:

  • The WRITE_INVALID address (type 2) is always the same offset modulo 2 MiB. That's the last 4 KiB page of a 1,835,008-byte span (448 pages = 28 × 64 KiB) that starts on a 2 MiB boundary.
  • The type-6 (instruction pointer) entry is the same value in every run, which fits a driver routine better than a title shader.
  • The direct queue has a null checkpoint at both stages in every run: its current command buffer hadn't reached a marked command (draw, dispatch, copy, clear or resolve).
  • LEONIDA_TITLE_IMAGE_STAGING=0 doesn't avoid it: the address pattern is the same, and the loss is then seen by the texture-upload wait instead of the staging wait.

My reading (not proven): a write the layer or driver makes itself on the direct queue in the first world frame, e.g. a load-op clear at a render-pass begin, an upload or a copy. Its target's last page isn't writable on the GPU: either a 28-tile object bound to memory one page short, or a host import whose last page the layer's write watch has write-protected while the import is live.

Next on this side:

  • checkpoint markers for render-pass begins and the layer's own upload, copy and clear command buffers;
  • a log of every 448-page object with how its memory was bound;
  • one run with write watch off under live imports.

The trace tool will be a PR once its suite is green.

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

<!-- gh-comment-id:7160254537 --> @QemmHD commented on GitHub (Nov 25, 2026): finding (follow-up to my correction above): **the world-start WRITE_INVALID doesn't come from any translated shader's store.** RT-STORE-TRACE now covers compute and graphics stages: buffer and global stores, atomics, and compute scalar (descriptor) loads. Trace modules were built for all 4,976 programs that contain a store or atomic. On a real boot with every traced program enabled (1,396-1,457 programs built and bound per run, about 905 of them graphics): - With a 1 TiB minimum-address filter: **0 records**, twice. - With no filter: 963,363 records, all from 38 library compute programs, none far above the heap base, and **0 reaching the fault address**. No graphics-stage store executed before the loss. **What the fault looks like over 8 runs:** - The WRITE_INVALID address (type 2) is always the same offset modulo 2 MiB. That's the **last 4 KiB page of a 1,835,008-byte span (448 pages = 28 × 64 KiB) that starts on a 2 MiB boundary**. - The type-6 (instruction pointer) entry is the **same value in every run**, which fits a driver routine better than a title shader. - The direct queue has a **null checkpoint at both stages in every run**: its current command buffer hadn't reached a marked command (draw, dispatch, copy, clear or resolve). - `LEONIDA_TITLE_IMAGE_STAGING=0` doesn't avoid it: the address pattern is the same, and the loss is then seen by the texture-upload wait instead of the staging wait. **My reading (not proven):** a write the layer or driver makes itself on the direct queue in the first world frame, e.g. a load-op clear at a render-pass begin, an upload or a copy. Its target's last page isn't writable on the GPU: either a 28-tile object bound to memory one page short, or a host import whose last page the layer's write watch has write-protected while the import is live. Next on this side: - checkpoint markers for render-pass begins and the layer's own upload, copy and clear command buffers; - a log of every 448-page object with how its memory was bound; - one run with write watch off under live imports. The trace tool will be a PR once its suite is green. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

done: SHADER-INTERP-P2-F16-OPSEL -> #1743 (claim was in #14 comment 7142482665)

<!-- gh-comment-id:7160361191 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): done: SHADER-INTERP-P2-F16-OPSEL -> #1743 (claim was in #14 comment 7142482665)
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claiming:

  • GLB-INSPECT-STREAM-CHUNKS — inspect file metadata without buffering the BIN or extension payloads
  • GLB-INSPECT-SKIN-REFERENCES — report missing, duplicate or invalid joint, skeleton and inverse bind matrix references
  • GLB-INSPECT-SCENE-ROOTS — list scene roots and the declared default scene, with invalid references identified
  • GLB-INSPECT-MATERIAL-MAPS — show the other four core material texture bindings alongside base color
  • GLB-INSPECT-POSITION-BOUND-VALIDITY — exclude inverted, incorrectly sized or non-finite POSITION bounds from aggregate reports
<!-- gh-comment-id:7160388047 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claiming: - GLB-INSPECT-STREAM-CHUNKS — inspect file metadata without buffering the BIN or extension payloads - GLB-INSPECT-SKIN-REFERENCES — report missing, duplicate or invalid joint, skeleton and inverse bind matrix references - GLB-INSPECT-SCENE-ROOTS — list scene roots and the declared default scene, with invalid references identified - GLB-INSPECT-MATERIAL-MAPS — show the other four core material texture bindings alongside base color - GLB-INSPECT-POSITION-BOUND-VALIDITY — exclude inverted, incorrectly sized or non-finite POSITION bounds from aggregate reports
Author
Owner

@Zalthor commented on GitHub (Nov 25, 2026):

Verification batch 4: 40 open pull requests. That's every remaining non-draft, Python-only PR with tests that had no CI at all (30), plus 10 whose CI is still queued. Each diff (merge-base..head) was applied to its own clean worktree at main 57ba40bd6, and all 40 still apply at bcaa13dad. Environment: Windows 10, CPython 3.10.6, CPU only, no game files. AI-assisted (Claude Code). Same method as batches 1, 2 and 3. None of the 40 adds a failure to the four repo-wide checks, and none breaks a test.

Already failing on Windows main

Three test files fail on main itself here, so for PRs touching them I compared failure lists rather than pass/fail:

  • tests/test_run_semantic_tests.py: 3 failures on main (test_empty_package_alone_is_not_a_false_green with jobs=1, and test_pattern_selects_files_without_importing_excluded_modules with jobs=2, for both -p and --pattern).
    • #1437 removes all 3.
    • #1406 removes the 2 pattern failures.
    • #1051 and #1442 leave the list unchanged.
  • tests/test_run_wine_tests.py: 3 errors on main (test_jobs_keeps_locks_serial_tests_and_dependencies, test_jobs_runs_that_many_tests_at_a_time, test_relative_root_launches_the_artifact_from_its_working_directory).
    • #1722 removes the first two.
    • #1384 removes the first.
    • Nothing removes the third.
  • tests/test_ci_registration.py: the 2 known semantic_selection_matches_discovery_through_packages failures. #1385 leaves them unchanged.

Bug fixes: the new tests fail on unpatched main and pass with the change

#258 (9 of 11), #272, #278, #487 (3 of 3), #492 (2 of 2), #498 (2 of 2), #805 (3 of 5), #1051 (3 of 3), #1256 (7 of 7), #1268 (4 of 7), #1280 (2 of 2), #1295 (10 of 11; another 11 tests skip because spirv-as/spirv-val aren't installed here), #1300 (the new test file errors on main), #1338, #1382 (2 of 3), #1384 (12 of 13), #1403, #1406, #1418 (test_ctest_registration), #1437 (4 of 6), #1438 (4 of 4), #1440 (18 of 21), #1501 (10 of 11).

#1442: its new test runs run_semantic_tests.py tests. On main that really starts the whole tests/ tree, and it was still running after 5 minutes; with #1442 it exits 2 at once. That confirms the fix. In the parallel run, test_timeout_requires_positive_finite_seconds (value='0') once timed out at its 15 s subprocess limit. Rerun alone it passes on both main and #1442, and the command exits in 0.4 s, so that was machine load, not the PR.

Refactors and test-only changes: pass on both, as expected

  • #1430, #1431, #1435, #1346: move tools onto report_paths. Their new case-spelling tests pass on Windows main too, because normcase already folds case here. As in batch 2, the macOS behavior isn't reproducible on Windows.
  • #1292, #1275, #1425, #1427: tests only.
  • #583: test and docs.
  • #1496: docs.
  • #1239: its new Wine tests are skipIf(os.name == "nt"), so they don't run here. The rest of the file passes.

Titles that no longer match the diff

#1073 (--compact-spirv) and #1101 (--loop-limit): both flags are already on main. They're in make_game.py (lines 3015 and 1778) and tools/rdna2spirv.py (--compact-spirv, and --loop-limit via spirv_loop_guard). Against current main, each PR only adds a docs/design.md contract-table row and a test_make_game_translator_flags.py case, and both pass. Worth merging for the contract row, but the titles describe code that has already landed.

Not covered: no Linux or macOS run, no line-by-line code review, Python 3.10 rather than CI's 3.12. A force-push after this voids that PR's row.

<!-- gh-comment-id:7160473031 --> @Zalthor commented on GitHub (Nov 25, 2026): Verification batch 4: 40 open pull requests. That's every remaining non-draft, Python-only PR with tests that had **no CI at all** (30), plus 10 whose CI is still queued. Each diff (merge-base..head) was applied to its own clean worktree at `main` `57ba40bd6`, and all 40 still apply at `bcaa13dad`. Environment: Windows 10, CPython 3.10.6, CPU only, no game files. AI-assisted (Claude Code). Same method as batches [1](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157070042), [2](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7159493566) and [3](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7159700093). None of the 40 adds a failure to the four repo-wide checks, and none breaks a test. ### Already failing on Windows `main` Three test files fail on `main` itself here, so for PRs touching them I compared failure lists rather than pass/fail: - **`tests/test_run_semantic_tests.py`:** 3 failures on `main` (`test_empty_package_alone_is_not_a_false_green` with jobs=1, and `test_pattern_selects_files_without_importing_excluded_modules` with jobs=2, for both `-p` and `--pattern`). - **#1437** removes all 3. - **#1406** removes the 2 pattern failures. - **#1051** and **#1442** leave the list unchanged. - **`tests/test_run_wine_tests.py`:** 3 errors on `main` (`test_jobs_keeps_locks_serial_tests_and_dependencies`, `test_jobs_runs_that_many_tests_at_a_time`, `test_relative_root_launches_the_artifact_from_its_working_directory`). - **#1722** removes the first two. - **#1384** removes the first. - Nothing removes the third. - **`tests/test_ci_registration.py`:** the 2 known `semantic_selection_matches_discovery_through_packages` failures. **#1385** leaves them unchanged. ### Bug fixes: the new tests fail on unpatched `main` and pass with the change #258 (9 of 11), #272, #278, #487 (3 of 3), #492 (2 of 2), #498 (2 of 2), #805 (3 of 5), #1051 (3 of 3), #1256 (7 of 7), #1268 (4 of 7), #1280 (2 of 2), #1295 (10 of 11; another 11 tests skip because `spirv-as`/`spirv-val` aren't installed here), #1300 (the new test file errors on `main`), #1338, #1382 (2 of 3), #1384 (12 of 13), #1403, #1406, #1418 (`test_ctest_registration`), #1437 (4 of 6), #1438 (4 of 4), #1440 (18 of 21), #1501 (10 of 11). **#1442:** its new test runs `run_semantic_tests.py tests`. On `main` that really starts the whole `tests/` tree, and it was still running after 5 minutes; with #1442 it exits 2 at once. That confirms the fix. In the parallel run, `test_timeout_requires_positive_finite_seconds (value='0')` once timed out at its 15 s subprocess limit. Rerun alone it passes on both `main` and #1442, and the command exits in 0.4 s, so that was machine load, not the PR. ### Refactors and test-only changes: pass on both, as expected - **#1430, #1431, #1435, #1346:** move tools onto `report_paths`. Their new case-spelling tests pass on Windows `main` too, because `normcase` already folds case here. As in batch 2, the macOS behavior isn't reproducible on Windows. - **#1292, #1275, #1425, #1427:** tests only. - **#583:** test and docs. - **#1496:** docs. - **#1239:** its new Wine tests are `skipIf(os.name == "nt")`, so they don't run here. The rest of the file passes. ### Titles that no longer match the diff **#1073** (`--compact-spirv`) and **#1101** (`--loop-limit`): both flags are already on `main`. They're in `make_game.py` (lines 3015 and 1778) and `tools/rdna2spirv.py` (`--compact-spirv`, and `--loop-limit` via `spirv_loop_guard`). Against current `main`, each PR only adds a `docs/design.md` contract-table row and a `test_make_game_translator_flags.py` case, and both pass. Worth merging for the contract row, but the titles describe code that has already landed. Not covered: no Linux or macOS run, no line-by-line code review, Python 3.10 rather than CI's 3.12. A force-push after this voids that PR's row.
Author
Owner

@BubsMcgee commented on GitHub (Nov 25, 2026):

released: BL-2 - already merged as #913 (create_host_device asks the host for feature level 11_0); nothing left to claim.

Correction: STREAM-OUTPUT is not released. #1630 was reopened (the "ALREADY MERGED-DROP" rename/close was wrong: none of its commits were on main) and is now narrowed to the real SO_STATISTICS query pools only, based on current main, per aslan2142's option. The capture path (SOSetTargets / StreamOutput PSOs) is not part of it and stays unlanded.

<!-- gh-comment-id:7160499926 --> @BubsMcgee commented on GitHub (Nov 25, 2026): released: BL-2 - already merged as #913 (create_host_device asks the host for feature level 11_0); nothing left to claim. Correction: STREAM-OUTPUT is not released. #1630 was reopened (the "ALREADY MERGED-DROP" rename/close was wrong: none of its commits were on main) and is now narrowed to the real SO_STATISTICS query pools only, based on current main, per aslan2142's option. The capture path (SOSetTargets / StreamOutput PSOs) is not part of it and stays unlanded.
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: GLB-INSPECT-STREAM-CHUNKS -> #1744

done: GLB-INSPECT-SKIN-REFERENCES -> #1745

done: GLB-INSPECT-SCENE-ROOTS -> #1746

done: GLB-INSPECT-MATERIAL-MAPS -> #1747

done: GLB-INSPECT-POSITION-BOUND-VALIDITY -> #1748

<!-- gh-comment-id:7160548959 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: GLB-INSPECT-STREAM-CHUNKS -> #1744 done: GLB-INSPECT-SKIN-REFERENCES -> #1745 done: GLB-INSPECT-SCENE-ROOTS -> #1746 done: GLB-INSPECT-MATERIAL-MAPS -> #1747 done: GLB-INSPECT-POSITION-BOUND-VALIDITY -> #1748
Author
Owner

@lixonik commented on GitHub (Nov 25, 2026):

claiming: SEMANTIC-WORKER-RESULT-REQUIRED -- a parallel semantic worker that exits 0 before writing its unittest result is counted as a pass if another module completes. Reproduced on current main with two synthetic modules. Require a valid result for a successful worker exit and add a CPU-only CLI regression. This is separate from #1051's nonzero-exit diagnostics and #1700's argument validation. AI-assisted.

<!-- gh-comment-id:7160571651 --> @lixonik commented on GitHub (Nov 25, 2026): claiming: SEMANTIC-WORKER-RESULT-REQUIRED -- a parallel semantic worker that exits 0 before writing its unittest result is counted as a pass if another module completes. Reproduced on current main with two synthetic modules. Require a valid result for a successful worker exit and add a CPU-only CLI regression. This is separate from #1051's nonzero-exit diagnostics and #1700's argument validation. AI-assisted.
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claiming:

  • BATCH-GLB-OUTPUT-NAME-COLLISION — Refuse colliding OBJ-to-GLB destination names before any model is written.
  • BATCH-GLB-DDS-SIBLING-FALLBACK — Keep a same-stem DDS available when the preferred PNG cannot be loaded.
  • BATCH-GLB-PER-TEXTURE-DECODE — Allow independent texture decodes to overlap while coalescing loads of the same texture and decode size.
  • GLB-SKINNING-SURPLUS-BIND-MATRICES — Accept inverse bind matrix accessors with more elements than skin joints; keep reporting short accessors.
  • GLB-SKINNING-PADDED-BUFFER-COPIES — Avoid full embedded-buffer copies for every accessor when the BIN chunk has alignment padding, and skip copying ignored extension payloads.
<!-- gh-comment-id:7160621714 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claiming: - BATCH-GLB-OUTPUT-NAME-COLLISION — Refuse colliding OBJ-to-GLB destination names before any model is written. - BATCH-GLB-DDS-SIBLING-FALLBACK — Keep a same-stem DDS available when the preferred PNG cannot be loaded. - BATCH-GLB-PER-TEXTURE-DECODE — Allow independent texture decodes to overlap while coalescing loads of the same texture and decode size. - GLB-SKINNING-SURPLUS-BIND-MATRICES — Accept inverse bind matrix accessors with more elements than skin joints; keep reporting short accessors. - GLB-SKINNING-PADDED-BUFFER-COPIES — Avoid full embedded-buffer copies for every accessor when the BIN chunk has alignment padding, and skip copying ignored extension payloads.
Author
Owner

@TimIdle commented on GitHub (Nov 25, 2026):

finding: a per-page lookup table could replace the fixed title-window cap behind the #1537 device loss (idea credited to Marvisak/VIctory, GPL-3.0)

Where: runtime/shims/d3d12_vulkan_device.cpp:2127, DeviceState::resolve_title_memory, with title_window_cap at line 2099 (main bcaa13da).

Why it matters: the first world-start stop in #1537 (READ_INVALID on the RTX 5080, 4080 and 4070 SUPER) comes from one fixed pool. Title memory that a shader names by address has to fit in windows inside the arena. Raising the cap gets past it. But the size needed keeps growing, 841 MiB at 225 s on the 4070 SUPER and still going up. #1631 makes the overflow safe, the shader just reads zeros there.

The later WRITE_INVALID stop is its own thing (buffer stores through a V#, per QemmHD's update). This idea doesn't touch that one.

Idea: VIctory does this with no cap at all. In its crates/victory-gpu/src/memory.rs, translated shaders look up every address they compute in a page table, one entry per 64 KiB page, and the entry names the views of a host copy of that page. Each submission only refreshes the pages the title wrote, and pages the shaders wrote are copied back after. A page with no copy can point at a zero page, so a bad address costs a wrong value and not the device.

For Leonida I think that would be:

  1. a page-table buffer per descriptor heap, kept current by the runtime at submission
  2. the translator emitting a table lookup for raw-address loads and stores instead of using the address as it is
  3. the current windows becoming the copies the table points to, so the refresh path we have now stays

Cost is one extra load per raw-address access in translated shaders, plus a table rewrite when copies come or go.

I haven't written any code for this yet. So my question for the maintainers: is this where you want to go after #1631, or is a higher default cap enough for now? If it's wanted I can try a prototype behind a switch and measure it on my RTX 2050 (4 GB).

Also xcl (GPL-2.0-only) shares title memory with the GPU without copies. I only read its README and not its code since the licence doesn't fit.

AI-assisted: yes (Claude Code: research and draft).

<!-- gh-comment-id:7160671892 --> @TimIdle commented on GitHub (Nov 25, 2026): finding: a per-page lookup table could replace the fixed title-window cap behind the #1537 device loss (idea credited to Marvisak/VIctory, GPL-3.0) **Where:** `runtime/shims/d3d12_vulkan_device.cpp:2127`, `DeviceState::resolve_title_memory`, with `title_window_cap` at line 2099 (main `bcaa13da`). **Why it matters:** the first world-start stop in #1537 (READ_INVALID on the RTX 5080, 4080 and 4070 SUPER) comes from one fixed pool. Title memory that a shader names by address has to fit in windows inside the arena. Raising the cap gets past it. But the size needed keeps growing, 841 MiB at 225 s on the 4070 SUPER and still going up. #1631 makes the overflow safe, the shader just reads zeros there. The later WRITE_INVALID stop is its own thing (buffer stores through a V#, per QemmHD's update). This idea doesn't touch that one. **Idea:** VIctory does this with no cap at all. In its `crates/victory-gpu/src/memory.rs`, translated shaders look up every address they compute in a page table, one entry per 64 KiB page, and the entry names the views of a host copy of that page. Each submission only refreshes the pages the title wrote, and pages the shaders wrote are copied back after. A page with no copy can point at a zero page, so a bad address costs a wrong value and not the device. For Leonida I think that would be: 1. a page-table buffer per descriptor heap, kept current by the runtime at submission 2. the translator emitting a table lookup for raw-address loads and stores instead of using the address as it is 3. the current windows becoming the copies the table points to, so the refresh path we have now stays Cost is one extra load per raw-address access in translated shaders, plus a table rewrite when copies come or go. I haven't written any code for this yet. So my question for the maintainers: is this where you want to go after #1631, or is a higher default cap enough for now? If it's wanted I can try a prototype behind a switch and measure it on my RTX 2050 (4 GB). Also xcl (GPL-2.0-only) shares title memory with the GPU without copies. I only read its README and not its code since the licence doesn't fit. AI-assisted: yes (Claude Code: research and draft).
Author
Owner

@lixonik commented on GitHub (Nov 25, 2026):

done: SEMANTIC-WORKER-RESULT-REQUIRED -> #1749

<!-- gh-comment-id:7160764993 --> @lixonik commented on GitHub (Nov 25, 2026): done: SEMANTIC-WORKER-RESULT-REQUIRED -> #1749
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: BATCH-GLB-OUTPUT-NAME-COLLISION -> #1750

done: BATCH-GLB-DDS-SIBLING-FALLBACK -> #1751

done: BATCH-GLB-PER-TEXTURE-DECODE -> #1752

done: GLB-SKINNING-SURPLUS-BIND-MATRICES -> #1753

done: GLB-SKINNING-PADDED-BUFFER-COPIES -> #1754

<!-- gh-comment-id:7160792203 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: BATCH-GLB-OUTPUT-NAME-COLLISION -> #1750 done: BATCH-GLB-DDS-SIBLING-FALLBACK -> #1751 done: BATCH-GLB-PER-TEXTURE-DECODE -> #1752 done: GLB-SKINNING-SURPLUS-BIND-MATRICES -> #1753 done: GLB-SKINNING-PADDED-BUFFER-COPIES -> #1754
Author
Owner

@Zalthor commented on GitHub (Nov 25, 2026):

Verification batch 5: 40 open pull requests whose CI is still queued. Each diff (merge-base..head) was applied to its own clean worktree at main bcaa13dad. Environment: Windows 10, CPython 3.10.6, CPU only, no game files. AI-assisted (Claude Code). Same method as batches 1 to 4.

All 40 pass. None adds a failure to the four repo-wide checks, and none breaks a test.

Bug fixes: the new tests fail on unpatched main and pass with the change

#1278, #1281, #1535, #1542, #1543, #1546, #1550, #1551, #1553, #1555, #1557, #1560, #1563, #1566, #1567, #1574, #1575, #1578, #1580, #1582, #1583, #1584, #1586, #1588, #1589, #1590, #1591, #1593, #1597, #1599, #1603, #1606, #1607, #1610, #1611, #1614, #1617. On main, between 1 and 23 new test functions fail per PR.

Notes:

  • #1589: one new test is skipUnless(LEONIDA_GAME_DIR), so it reads the user's own game folder and did not run here.
  • #1591 xcl_compare: a first run failed only because this machine's temp folder is on D:, and run_all refuses a --work folder on D: (XCL maps that drive to the game folder). main's existing test_hang_restart_preserves_previous_trace_and_resets_game_and_overlay fails here for the same reason. With TEMP on C:, main passes 15/15 and #1591 passes 20/20, and #1591's tests fail 7 times on unpatched main. GitHub's Windows runners keep TEMP on C:, so CI should not see this. Worth knowing for local runs on Windows machines whose temp folder is on D:.
  • #1281: test_shader_library.py has 4 errors on Windows main here (test_save_overlap_leaves_existing_outputs_intact, four save= cases). #1281 leaves them unchanged, and its own new tests pass.

Three PRs for one feature: crosslane_fuzz --pc-tail-ubo

#1501 (from batch 4), #1507 and #1508 all add --pc-tail-ubo to tools/crosslane_fuzz.py, and each conflicts with the other two. I cross-ran their tests:

Tests from → run on code of #1501 #1507 #1508
#1501's new tests pass 1 fails 1 fails
#1507's new tests pass pass pass
#1508's new tests pass pass pass

#1501 covers both of the others, and #1507 and #1508 are equivalent to each other. #1501's extra case is the one #1507 and #1508 miss; by its title, that's the LEONIDA_PC_TAIL_UBO environment variable. Only one of the three can merge as is.

Title no longer matches the diff

#1282 shader_disasm: list a wave64 program for wave64: against current main the diff touches no tool, only docs/design.md, tests/semantic/test_disasm_wave64_mask_pair.py, tests/test_fspx_unpack.py and tests/test_shader_library.py. Its new tests pass on unpatched main too, so the behavior is already there. The PR is now docs plus regression tests (test_shader_library.py shows the same 4 Windows errors as main, no more).

Not covered: no Linux or macOS run, no line-by-line code review, Python 3.10 rather than CI's 3.12. A force-push after this voids that PR's row.

<!-- gh-comment-id:7160802203 --> @Zalthor commented on GitHub (Nov 25, 2026): Verification batch 5: 40 open pull requests whose CI is still queued. Each diff (merge-base..head) was applied to its own clean worktree at `main` `bcaa13dad`. Environment: Windows 10, CPython 3.10.6, CPU only, no game files. AI-assisted (Claude Code). Same method as batches [1](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157070042) to [4](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7160473031). **All 40 pass.** None adds a failure to the four repo-wide checks, and none breaks a test. ### Bug fixes: the new tests fail on unpatched `main` and pass with the change #1278, #1281, #1535, #1542, #1543, #1546, #1550, #1551, #1553, #1555, #1557, #1560, #1563, #1566, #1567, #1574, #1575, #1578, #1580, #1582, #1583, #1584, #1586, #1588, #1589, #1590, #1591, #1593, #1597, #1599, #1603, #1606, #1607, #1610, #1611, #1614, #1617. On `main`, between 1 and 23 new test functions fail per PR. Notes: - **#1589:** one new test is `skipUnless(LEONIDA_GAME_DIR)`, so it reads the user's own game folder and did not run here. - **#1591 `xcl_compare`:** a first run failed only because this machine's temp folder is on `D:`, and `run_all` refuses a `--work` folder on `D:` (XCL maps that drive to the game folder). `main`'s existing `test_hang_restart_preserves_previous_trace_and_resets_game_and_overlay` fails here for the same reason. With `TEMP` on `C:`, `main` passes 15/15 and #1591 passes 20/20, and #1591's tests fail 7 times on unpatched `main`. GitHub's Windows runners keep `TEMP` on `C:`, so CI should not see this. Worth knowing for local runs on Windows machines whose temp folder is on `D:`. - **#1281:** `test_shader_library.py` has 4 errors on Windows `main` here (`test_save_overlap_leaves_existing_outputs_intact`, four `save=` cases). #1281 leaves them unchanged, and its own new tests pass. ### Three PRs for one feature: `crosslane_fuzz --pc-tail-ubo` #1501 (from [batch 4](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7160473031)), #1507 and #1508 all add `--pc-tail-ubo` to `tools/crosslane_fuzz.py`, and each conflicts with the other two. I cross-ran their tests: | Tests from → run on code of | #1501 | #1507 | #1508 | |---|---|---|---| | #1501's new tests | pass | 1 fails | 1 fails | | #1507's new tests | pass | pass | pass | | #1508's new tests | pass | pass | pass | **#1501 covers both of the others**, and #1507 and #1508 are equivalent to each other. #1501's extra case is the one #1507 and #1508 miss; by its title, that's the `LEONIDA_PC_TAIL_UBO` environment variable. Only one of the three can merge as is. ### Title no longer matches the diff **#1282** `shader_disasm: list a wave64 program for wave64`: against current `main` the diff touches no tool, only `docs/design.md`, `tests/semantic/test_disasm_wave64_mask_pair.py`, `tests/test_fspx_unpack.py` and `tests/test_shader_library.py`. Its new tests pass on unpatched `main` too, so the behavior is already there. The PR is now docs plus regression tests (`test_shader_library.py` shows the same 4 Windows errors as `main`, no more). Not covered: no Linux or macOS run, no line-by-line code review, Python 3.10 rather than CI's 3.12. A force-push after this voids that PR's row.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-STARTUP-CACHE-CHECKPOINT-RACE - addresses the empty LEONIDA_STARTUP_CACHE_CHECKPOINTS=1 folder in @DadaCap's world-start finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157762911):

  1. PipelineState::build_compute and PipelineState::build (runtime/shims/d3d12_vulkan_device.cpp:8038,8091,8202,8386) call maybe_checkpoint(cache) while CompileActivity still holds device_.active_compiles >= 1, so the checkpoint worker immediately sees an active compile and skips saving.
  2. Even when skipped due to active_compiles != 0 or has_compile_waiter() (lines 8110, 1348), maybe_checkpoint unconditionally pushed next_checkpoint out by another 120 s instead of retrying on the next compile completion.
    Fix: add idempotent CompileActivity::finish() (called before maybe_checkpoint), extract a portable CheckpointSchedule state machine into runtime/src/pipeline_cache_store.h (deferring without burning the 120 s cooldown), wire save_session_pipeline_cache/maybe_checkpoint to it, and add unit tests in runtime/test/pipeline_cache_store_test.cpp. No game files; AI-assisted.
<!-- gh-comment-id:7160859893 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: `RT-STARTUP-CACHE-CHECKPOINT-RACE` - addresses the empty `LEONIDA_STARTUP_CACHE_CHECKPOINTS=1` folder in @DadaCap's world-start finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157762911): 1. `PipelineState::build_compute` and `PipelineState::build` (`runtime/shims/d3d12_vulkan_device.cpp:8038,8091,8202,8386`) call `maybe_checkpoint(cache)` while `CompileActivity` still holds `device_.active_compiles >= 1`, so the checkpoint worker immediately sees an active compile and skips saving. 2. Even when skipped due to `active_compiles != 0` or `has_compile_waiter()` (lines 8110, 1348), `maybe_checkpoint` unconditionally pushed `next_checkpoint` out by another 120 s instead of retrying on the next compile completion. Fix: add idempotent `CompileActivity::finish()` (called before `maybe_checkpoint`), extract a portable `CheckpointSchedule` state machine into `runtime/src/pipeline_cache_store.h` (deferring without burning the 120 s cooldown), wire `save_session_pipeline_cache`/`maybe_checkpoint` to it, and add unit tests in `runtime/test/pipeline_cache_store_test.cpp`. No game files; AI-assisted.
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

claiming: TEST-PIPELINE-LIBRARY-HOST-RELEASE -- runtime/test/d3d12_pipeline_library_host_test.cpp: only release output pointer when SUCCEEDED(hr), preventing 0xc0000409 fail-fast on failed COM calls (@whoalin1 finding)

<!-- gh-comment-id:7160887151 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): claiming: TEST-PIPELINE-LIBRARY-HOST-RELEASE -- runtime/test/d3d12_pipeline_library_host_test.cpp: only release output pointer when SUCCEEDED(hr), preventing 0xc0000409 fail-fast on failed COM calls (@whoalin1 finding)
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-STARTUP-CACHE-CHECKPOINT-RACE -> #1756 (https://github.com/ubiquitarianism/leonida/pull/1756)
Releases CompileActivity before calling maybe_checkpoint(cache) in build_compute()/build(), extracts CheckpointSchedule into runtime/src/pipeline_cache_store.h so deferred checkpoints retry on the next compile completion instead of burning 120 s, and adds test_checkpoint_schedule() (pipeline_cache_store_test passes under ASan/UBSan and -O2; Windows shim changes rely on CI).

<!-- gh-comment-id:7160914539 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: `RT-STARTUP-CACHE-CHECKPOINT-RACE` -> #1756 (https://github.com/ubiquitarianism/leonida/pull/1756) Releases `CompileActivity` before calling `maybe_checkpoint(cache)` in `build_compute()`/`build()`, extracts `CheckpointSchedule` into `runtime/src/pipeline_cache_store.h` so deferred checkpoints retry on the next compile completion instead of burning 120 s, and adds `test_checkpoint_schedule()` (`pipeline_cache_store_test` passes under ASan/UBSan and `-O2`; Windows shim changes rely on CI).
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

done: TEST-PIPELINE-LIBRARY-HOST-RELEASE -> #1757

<!-- gh-comment-id:7160927863 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): done: TEST-PIPELINE-LIBRARY-HOST-RELEASE -> #1757
Author
Owner

@adrianmjim commented on GitHub (Nov 25, 2026):

claiming: TEST-REF-MOVE-ONLY - d3d12test::Ref (runtime/test/d3d12_test_shaders.h, 43 test files) has a destructor but no copy or move members of its own. So ref = {} never calls Release, which leaked the whole device in #1558's new test. And a growing std::vector<Ref<...>> would copy its elements and then Release them twice. The fix makes it move-only, with a move assignment that releases. Test-only change; builds and passes on AMD, no game files.

<!-- gh-comment-id:7161001857 --> @adrianmjim commented on GitHub (Nov 25, 2026): claiming: TEST-REF-MOVE-ONLY - `d3d12test::Ref` (`runtime/test/d3d12_test_shaders.h`, 43 test files) has a destructor but no copy or move members of its own. So `ref = {}` never calls Release, which leaked the whole device in #1558's new test. And a growing `std::vector<Ref<...>>` would copy its elements and then Release them twice. The fix makes it move-only, with a move assignment that releases. Test-only change; builds and passes on AMD, no game files.
Author
Owner

@timbot103 commented on GitHub (Nov 25, 2026):

finding: during an interactive retail 1.0.2.1 boot past the story-load texture streaming phase (38,333 registered images), the title calls XboxBvhBuilder::RehydrateRaytracingAccelerationStructureBatched2X and hits the E_NOTIMPL stub (runtime/shims/xbox_bvh_builder.cpp:231-236)

  • Where: runtime/shims/xbox_bvh_builder.cpp:231-236 (builder_rehydrate_batched2x, unchanged on main bcaa13dad), which logs once and returns E_NOTIMPL.
  • Why it matters:
    • Bears directly on the open question in README.md:73 ("Open: whether the game rehydrates the packs or rebuilds them"): this shows an attempted rehydration call on a real boot, confirming that the planned rehydration path (docs/xdxr.md:143-144) is reached after the bulk texture load. It does not identify which packs were passed, show successful rehydration, or rule out rebuilding.
    • Caveats:
      • RehydrateRaytracingAccelerationStructureBatched2X ... E_NOTIMPL was the final stderr line written; immediately afterward, Windows Application Event 1000 recorded an access violation (0xc0000005) with faulting module unknown. Because --trace was not enabled on this interactive run, neither the faulting module/stack nor whether E_NOTIMPL caused the crash is established.
      • This run was built on main 3de22a190 + #1558 (3cf0a41bc) with 22 modules in fspx/ (without #1317 or #1495), and logged 844 slot-67 0x80070057 refusals and 845 missing-translation messages (840 distinct keys) before exit.
  • Needs to reproduce: own 1.0.2.1 copy, native Windows GPU boot through the landing prompt and story-load streaming phase (LEONIDA_D3D12=vulkan, default XboxBvhBuilder shim enabled).

Native Windows 11 / RTX 5080 (Blackwell) boot data (counts and states only)

Machine: Windows 11 Pro (10.0.26200), 96 GiB installed (95,800 MB OS-visible), NVIDIA GeForce RTX 5080 16 GB (10DE:2C02, driver 616.64, Vulkan SDK 1.4.363.0, driver-advertised Vulkan API 1.4.351), MSVC 2022 (RelWithDebInfo), SDL3 3.4.20, WSL Ubuntu 24.04 llvm-mc 21.1.8, own 1.0.2.1 copy, local history.bcph. Shaders built with make_game.py --stages check,shaders,runtime --wave64-emulate on: 28,433 translated modules (excluding 45 generated stubs; 28,478 .spv files total) — 26,503 main, 1,844 pipeline-library compute, 22 FSPX, 52 bvh, 12 exe (reported at startup as 1866 fspx, 0 fspx_compute, 0 fspx_gfx, 52 bvh, 12 exe).

Run Build & switches Outcome States / snapshots Calls / presents / faults
1 (boot.ps1, baseline) main 3de22a190, harness defaults Exited by itself at 45 s (0x80000003); logged slot 133 depth texture refused (hr=0x80070057, placement): format 118 1280x720x1 (followed by one more state sample) t=0s 0/0, 5s 1/0, 10s 2/0, 35s 2/1, 40s 3/3 112,198 D3D12 calls (87,523 ok, 12,174 accepted, 12,497 called, 4 failed CreatePipelineState); 141 PresentX ok / 0 failed; 3/3 non-black captures; 0 device-loss diagnostics
2 (boot.ps1, locally patched) main 3de22a190 + #1558 (3cf0a41bc, prior to upstream merge bcaa13dad); -Seconds 240 -InputScript "a@50,a@65,a@80,a@100,a@125,a@150" Force-stopped by harness after 241 s; #1558 fallback logged once (format 118, hr=0x80070057; it is made without unordered access) t=0s 0/0, 5s 1/0, 10s 2/0, 25s 2/1, 35s 3/3, 55s 3/d (stayed at 3/d through last sample) 1,367,491 D3D12 calls (216,087 ok, 12,174 accepted, 1,139,226 called, 4 failed CreatePipelineState); 9,290 PresentX ok / 0 failed; 6 presses logged; 40/40 non-black captures; 0 device-loss diagnostics
3 (interactive desktop) Same 3de22a190 + #1558 build; LEONIDA_D3D12=vulkan, LEONIDA_VK_DEVICE=5080, VK_LOADER_DRIVERS_SELECT=nv*, LEONIDA_DEVICE_TYPE=6, LEONIDA_ARENA_MB=2048, shared LEONIDA_PIPELINE_CACHE_DIR, LEONIDA_PIPELINE_CACHE_BYTES=4294967296, LEONIDA_STARTUP_CACHE_CHECKPOINTS=1, LEONIDA_KEYBOARD_PAD=1, LEONIDA_DEVICE_FAULT=1, DISABLE_RTSS_LAYER=1, DISABLE_VULKAN_OBS_CAPTURE=1; no --trace; LEONIDA_TITLE_WINDOWS_MB and LEONIDA_TITLE_WATCHDOG neither set nor cleared by launcher (source defaults: 64 MiB and armed; inherited values not logged) Interactive menu input through [email protected] (last logged stick input 188.1 s on input-polling clock; no logged story-load completion time); late-run first calls reached list slot 61 (before 188.1 s), then device slot 71 (placed UAVs), ExecuteIndirect DISPATCH_MESH (not replayed yet), list slot 39/86/26/53, and RehydrateRaytracingAccelerationStructureBatched2X -> E_NOTIMPL (final stderr line); Windows Event 1000 recorded 0xc0000005 (faulting module unknown) Last periodic refresh snapshot: 38,333 registered images (35,200 made, 3,133 slot 133 of 3,212, 19 mapped, 33,971 filled), 65,708 fills (13,224.3 MiB, 0 failed), 76,005 slot-70 texture views (160 kinds, 18,197 null) Last periodic snapshots: 167,936 slot-70 calls (91,398 buffer, 0 refused, 58,243 texture, 18,295 null); 11,812 submissions (251 title windows); 7 LEONIDA_TITLE_WINDOWS_MB cap notices (48–63 MiB already copied); 7 compute pipeline builds logged 2.2–5.1 s (same timing diagnostic used by worker/warm-up/inline builds); 844 slot-67 0x80070057 refusals and 845 missing-translation messages (840 distinct keys); no device-loss diagnostic logged and no System Event 4101 recorded during the test window

Notes:

  • Runs 1–2 give a baseline vs. locally patched RTX 5080 (616.64) comparison for #1558 (note that Runs 1 and 2 differed in input script and duration, and both ran prior to #1558 merging in bcaa13dad).
  • In Run 3, the seven 2.2–5.1 s compute pipeline build timings and seven 48–63 MiB LEONIDA_TITLE_WINDOWS_MB cap notices provide additional RTX 5080 timing/cap data points alongside #1537 and @DadaCap's compute-compile report, without reproducing either the watchdog or device-loss failure mode.

Counts, states, and runtime diagnostic names only; no game data, offsets, logs, captures, or traces are included. AI-assisted (Gemini, verified by Codex).

<!-- gh-comment-id:7161002553 --> @timbot103 commented on GitHub (Nov 25, 2026): finding: during an interactive retail 1.0.2.1 boot past the story-load texture streaming phase (38,333 registered images), the title calls `XboxBvhBuilder::RehydrateRaytracingAccelerationStructureBatched2X` and hits the `E_NOTIMPL` stub (`runtime/shims/xbox_bvh_builder.cpp:231-236`) - **Where:** `runtime/shims/xbox_bvh_builder.cpp:231-236` (`builder_rehydrate_batched2x`, unchanged on `main` `bcaa13dad`), which logs once and returns `E_NOTIMPL`. - **Why it matters:** - Bears directly on the open question in `README.md:73` (*"Open: whether the game rehydrates the packs or rebuilds them"*): this shows an attempted rehydration call on a real boot, confirming that the planned rehydration path (`docs/xdxr.md:143-144`) is reached after the bulk texture load. It does not identify which packs were passed, show successful rehydration, or rule out rebuilding. - **Caveats:** - `RehydrateRaytracingAccelerationStructureBatched2X ... E_NOTIMPL` was the final stderr line written; immediately afterward, Windows Application Event 1000 recorded an access violation (`0xc0000005`) with faulting module `unknown`. Because `--trace` was not enabled on this interactive run, neither the faulting module/stack nor whether `E_NOTIMPL` caused the crash is established. - This run was built on `main` `3de22a190` + #1558 (`3cf0a41bc`) with `22` modules in `fspx/` (without #1317 or #1495), and logged `844` slot-67 `0x80070057` refusals and `845` missing-translation messages (`840` distinct keys) before exit. - **Needs to reproduce:** own 1.0.2.1 copy, native Windows GPU boot through the landing prompt and story-load streaming phase (`LEONIDA_D3D12=vulkan`, default `XboxBvhBuilder` shim enabled). --- ### Native Windows 11 / RTX 5080 (Blackwell) boot data (counts and states only) Machine: Windows 11 Pro (`10.0.26200`), 96 GiB installed (`95,800 MB` OS-visible), NVIDIA GeForce RTX 5080 16 GB (`10DE:2C02`, driver `616.64`, Vulkan SDK `1.4.363.0`, driver-advertised Vulkan API `1.4.351`), MSVC 2022 (`RelWithDebInfo`), SDL3 `3.4.20`, WSL Ubuntu 24.04 `llvm-mc` `21.1.8`, own 1.0.2.1 copy, local `history.bcph`. Shaders built with `make_game.py --stages check,shaders,runtime --wave64-emulate on`: `28,433` translated modules (excluding `45` generated stubs; `28,478` `.spv` files total) — `26,503` main, `1,844` pipeline-library compute, `22` FSPX, `52` bvh, `12` exe (reported at startup as `1866 fspx, 0 fspx_compute, 0 fspx_gfx, 52 bvh, 12 exe`). | Run | Build & switches | Outcome | States / snapshots | Calls / presents / faults | |---|---|---|---|---| | 1 (`boot.ps1`, baseline) | `main` `3de22a190`, harness defaults | Exited by itself at `45 s` (`0x80000003`); logged `slot 133 depth texture refused (hr=0x80070057, placement): format 118 1280x720x1` (followed by one more state sample) | `t=0s 0/0`, `5s 1/0`, `10s 2/0`, `35s 2/1`, `40s 3/3` | `112,198` D3D12 calls (`87,523` ok, `12,174` accepted, `12,497` called, `4` failed `CreatePipelineState`); `141` `PresentX` ok / `0` failed; `3/3` non-black captures; `0` device-loss diagnostics | | 2 (`boot.ps1`, locally patched) | `main` `3de22a190` + #1558 (`3cf0a41bc`, prior to upstream merge `bcaa13dad`); `-Seconds 240 -InputScript "a@50,a@65,a@80,a@100,a@125,a@150"` | Force-stopped by harness after `241 s`; #1558 fallback logged once (`format 118, hr=0x80070057; it is made without unordered access`) | `t=0s 0/0`, `5s 1/0`, `10s 2/0`, `25s 2/1`, `35s 3/3`, `55s 3/d` (stayed at `3/d` through last sample) | `1,367,491` D3D12 calls (`216,087` ok, `12,174` accepted, `1,139,226` called, `4` failed `CreatePipelineState`); `9,290` `PresentX` ok / `0` failed; `6` presses logged; `40/40` non-black captures; `0` device-loss diagnostics | | 3 (interactive desktop) | Same `3de22a190` + #1558 build; `LEONIDA_D3D12=vulkan`, `LEONIDA_VK_DEVICE=5080`, `VK_LOADER_DRIVERS_SELECT=nv*`, `LEONIDA_DEVICE_TYPE=6`, `LEONIDA_ARENA_MB=2048`, shared `LEONIDA_PIPELINE_CACHE_DIR`, `LEONIDA_PIPELINE_CACHE_BYTES=4294967296`, `LEONIDA_STARTUP_CACHE_CHECKPOINTS=1`, `LEONIDA_KEYBOARD_PAD=1`, `LEONIDA_DEVICE_FAULT=1`, `DISABLE_RTSS_LAYER=1`, `DISABLE_VULKAN_OBS_CAPTURE=1`; no `--trace`; `LEONIDA_TITLE_WINDOWS_MB` and `LEONIDA_TITLE_WATCHDOG` neither set nor cleared by launcher (source defaults: `64 MiB` and armed; inherited values not logged) | Interactive menu input through `[email protected]` (last logged stick input `188.1 s` on input-polling clock; no logged story-load completion time); late-run first calls reached `list slot 61` (before `188.1 s`), then `device slot 71` (placed UAVs), `ExecuteIndirect` `DISPATCH_MESH` (not replayed yet), `list slot 39/86/26/53`, and `RehydrateRaytracingAccelerationStructureBatched2X -> E_NOTIMPL` (final stderr line); Windows Event 1000 recorded `0xc0000005` (faulting module `unknown`) | Last periodic refresh snapshot: `38,333` registered images (`35,200` made, `3,133` slot 133 of `3,212`, `19` mapped, `33,971` filled), `65,708` fills (`13,224.3 MiB`, `0` failed), `76,005` slot-70 texture views (`160` kinds, `18,197` null) | Last periodic snapshots: `167,936` slot-70 calls (`91,398` buffer, `0` refused, `58,243` texture, `18,295` null); `11,812` submissions (`251` title windows); `7` `LEONIDA_TITLE_WINDOWS_MB` cap notices (`48–63 MiB` already copied); `7` compute pipeline builds logged `2.2–5.1 s` (same timing diagnostic used by worker/warm-up/inline builds); `844` slot-67 `0x80070057` refusals and `845` missing-translation messages (`840` distinct keys); no device-loss diagnostic logged and no System Event 4101 recorded during the test window | Notes: - Runs 1–2 give a baseline vs. locally patched RTX 5080 (`616.64`) comparison for #1558 (note that Runs 1 and 2 differed in input script and duration, and both ran prior to #1558 merging in `bcaa13dad`). - In Run 3, the seven `2.2–5.1 s` compute pipeline build timings and seven `48–63 MiB` `LEONIDA_TITLE_WINDOWS_MB` cap notices provide additional RTX 5080 timing/cap data points alongside #1537 and @DadaCap's compute-compile report, without reproducing either the watchdog or device-loss failure mode. Counts, states, and runtime diagnostic names only; no game data, offsets, logs, captures, or traces are included. AI-assisted (Gemini, verified by Codex).
Author
Owner

@adrianmjim commented on GitHub (Nov 25, 2026):

done: TEST-REF-MOVE-ONLY -> #1758

<!-- gh-comment-id:7161011331 --> @adrianmjim commented on GitHub (Nov 25, 2026): done: TEST-REF-MOVE-ONLY -> #1758
Author
Owner

@mcpeacebir-lang commented on GitHub (Nov 25, 2026):

claiming: HW-DPP-NEG-INVALID-LANE - the measurement @OreoFR's finding asks for (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7158607949: Gen.dpp_insn applies src0's neg before the zero of an invalid DPP source lane). I will run v_add_f32_dpp vD, -vA, vB row_shr:1 row_mask:0xf bank_mask:0xf bound_ctrl:1 with vB = -0.0 natively through tools/hw_oracle (wave32 and wave64) on an AMD Radeon RX 7800 XT (RDNA3, gfx1101, Windows 11) and post the words of lane 0 of each row here. Measurement only, no pull request: the translator fix stays with @OreoFR as offered. RDNA3, not RDNA2, so it is one data point for the RDNA2 question. No game files. AI-assisted.

<!-- gh-comment-id:7161059851 --> @mcpeacebir-lang commented on GitHub (Nov 25, 2026): claiming: HW-DPP-NEG-INVALID-LANE - the measurement @OreoFR's finding asks for (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7158607949: `Gen.dpp_insn` applies src0's `neg` before the zero of an invalid DPP source lane). I will run `v_add_f32_dpp vD, -vA, vB row_shr:1 row_mask:0xf bank_mask:0xf bound_ctrl:1` with `vB = -0.0` natively through `tools/hw_oracle` (wave32 and wave64) on an AMD Radeon RX 7800 XT (RDNA3, gfx1101, Windows 11) and post the words of lane 0 of each row here. Measurement only, no pull request: the translator fix stays with @OreoFR as offered. RDNA3, not RDNA2, so it is one data point for the RDNA2 question. No game files. AI-assisted.
Author
Owner

@kawaii-shakal commented on GitHub (Nov 25, 2026):

The full make_game pipelines stage passes on current main (c7e82e26e) with #1697 applied, RTX 5070 Ti, driver 617.42, Windows 11:

  • Main set: all 26,503 of 26,503 modules build a pipeline, with 0 failed and 0 skipped. The previous run had 26,502 of 26,503, and its one crash is gone.
  • BVH set: 52 of 52 compute pipelines build.
  • Run: every chunk ran in a fresh process with 0 crashes. The whole stage, shaders included, took 6 h 33 min.
  • Slowest single compile: one ray-traced shadow compute shader, 126 s. The ray-tracing resolve compute shaders take about 60 s each.
  • Pipeline cache: 9.2 GB, written to the warmed cache dir. My boot script keeps LEONIDA_PIPELINE_CACHE_DIR pointed at it for the next boot. Note that PipelineCacheSeed maps the whole file and passes it to vkCreatePipelineCache, so expect up to that much extra RAM at startup. I'll report the measured cost from the memory sampler.

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

<!-- gh-comment-id:7161078593 --> @kawaii-shakal commented on GitHub (Nov 25, 2026): The full `make_game` pipelines stage passes on current main (c7e82e26e) with #1697 applied, RTX 5070 Ti, driver 617.42, Windows 11: - **Main set:** all 26,503 of 26,503 modules build a pipeline, with 0 failed and 0 skipped. The previous run had 26,502 of 26,503, and its one crash is gone. - **BVH set:** 52 of 52 compute pipelines build. - **Run:** every chunk ran in a fresh process with 0 crashes. The whole stage, shaders included, took 6 h 33 min. - **Slowest single compile:** one ray-traced shadow compute shader, 126 s. The ray-tracing resolve compute shaders take about 60 s each. - **Pipeline cache:** 9.2 GB, written to the warmed cache dir. My boot script keeps `LEONIDA_PIPELINE_CACHE_DIR` pointed at it for the next boot. Note that `PipelineCacheSeed` maps the whole file and passes it to `vkCreatePipelineCache`, so expect up to that much extra RAM at startup. I'll report the measured cost from the memory sampler. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@thiefyzheng commented on GitHub (Nov 25, 2026):

finding: with LEONIDA_PIPELINE_COMPILE=on-demand, the console stream from device slot 86 is not created at all — d3d12_mesh_test bails at its SUCCEEDED(console_hr) && console_pso.p check (runtime/test/d3d12_mesh_test.cpp:349 region), identically on main and on #1695's head, so the on-demand console-PSO realization path (prepare_console_stream / resolve_type, d3d12_vulkan_device.cpp ~7055/10342, factory registration ~15276) currently has no test coverage.

Found by @adrianmjim while testing #1695 on an RX 7900 XT (their review comment: console-stream creation fails under on-demand the same way as main). Blocked #1695's lazy-path regression test — under plain ctest slot 86 takes the eager path. No game files needed; a Windows or Wine build with a Vulkan device should reproduce. Not claimed by me; whoever knows the on-demand factory registration (set only when prepare_on_bind is on, ~16091) is probably fastest to it.

<!-- gh-comment-id:7161103050 --> @thiefyzheng commented on GitHub (Nov 25, 2026): finding: with `LEONIDA_PIPELINE_COMPILE=on-demand`, the console stream from device slot 86 is not created at all — `d3d12_mesh_test` bails at its `SUCCEEDED(console_hr) && console_pso.p` check (`runtime/test/d3d12_mesh_test.cpp:349` region), identically on main and on #1695's head, so the on-demand console-PSO realization path (`prepare_console_stream` / `resolve_type`, `d3d12_vulkan_device.cpp` ~7055/10342, factory registration ~15276) currently has no test coverage. Found by @adrianmjim while testing #1695 on an RX 7900 XT (their review comment: console-stream creation fails under on-demand the same way as main). Blocked #1695's lazy-path regression test — under plain ctest slot 86 takes the eager path. No game files needed; a Windows or Wine build with a Vulkan device should reproduce. Not claimed by me; whoever knows the on-demand factory registration (set only when `prepare_on_bind` is on, ~16091) is probably fastest to it.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-DEPTH16-QUANTISE-AND-FALLBACK - fixes two critical bugs in the Xbox D16_UNORM_S8_UINT (DXGI 118) depth-draw path introduced in db19bbd3:

  1. runtime/src/depth24_fragment.h: Patch::quantise() multiplies and clamps by levels_ (65535.0f for D16S8 fallback), but its code-to-float reconstruction still hardcodes 24-bit constants (0xffffffu, 23 - e, e + 80), so every fragment depth in (0, 1) on a D16S8 fallback target is divided by 16,777,215 instead of 65,535 (256x too small: 0.5 -> 0.001953, 0.9999 -> 0.003906, while 1.0 -> 1.0). Fix: emit an exact division-free 16-bit UNORM reconstruction when levels_ == 65535.0f (matching float(double(d) / 65535.0) bit-for-bit across all 65,536 codes), prime its constants before apply(), and reject unsupported levels values.
  2. runtime/shims/d3d12_vulkan_device.cpp:7298: packed16_fallback checks raw desc.DSVFormat == xbox_d16s8 instead of vulkan_format(desc.DSVFormat, true).format == VK_FORMAT_D16_UNORM_S8_UINT, bypassing pc_format(). On NVIDIA (default LEONIDA_CONSOLE_D16S8=d24, backed by native D24S8), packed16_fallback still fired, causing MSAA format-118 PSOs to return E_NOTIMPL and single-sampled format-118 PSOs to patch fragment depth with levels = 65535.0f and disable hardware depth bias.
  3. runtime/src/vulkan_replay.h:4344: align xbox_depth16_stencil8 depth clear quantisation with Patch::quantise() (round-half-even + NaN -> 0.0f) so EQUAL depth tests against cleared values agree bit-for-bit.
    Includes a new portable CPU SPIR-V interpreter test (runtime/test/depth24_fragment_test.cpp) exhaustively verifying all 65,536 D16 codes, ties, specials, bias/slope/clamp, and D24 parity. No game files; AI-assisted.
<!-- gh-comment-id:7161138331 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: `RT-DEPTH16-QUANTISE-AND-FALLBACK` - fixes two critical bugs in the Xbox `D16_UNORM_S8_UINT` (DXGI 118) depth-draw path introduced in `db19bbd3`: 1. `runtime/src/depth24_fragment.h`: `Patch::quantise()` multiplies and clamps by `levels_` (`65535.0f` for D16S8 fallback), but its code-to-float reconstruction still hardcodes 24-bit constants (`0xffffffu`, `23 - e`, `e + 80`), so every fragment depth in `(0, 1)` on a D16S8 fallback target is divided by `16,777,215` instead of `65,535` (256x too small: `0.5 -> 0.001953`, `0.9999 -> 0.003906`, while `1.0 -> 1.0`). Fix: emit an exact division-free 16-bit UNORM reconstruction when `levels_ == 65535.0f` (matching `float(double(d) / 65535.0)` bit-for-bit across all 65,536 codes), prime its constants before `apply()`, and reject unsupported `levels` values. 2. `runtime/shims/d3d12_vulkan_device.cpp:7298`: `packed16_fallback` checks raw `desc.DSVFormat == xbox_d16s8` instead of `vulkan_format(desc.DSVFormat, true).format == VK_FORMAT_D16_UNORM_S8_UINT`, bypassing `pc_format()`. On NVIDIA (default `LEONIDA_CONSOLE_D16S8=d24`, backed by native D24S8), `packed16_fallback` still fired, causing MSAA format-118 PSOs to return `E_NOTIMPL` and single-sampled format-118 PSOs to patch fragment depth with `levels = 65535.0f` and disable hardware depth bias. 3. `runtime/src/vulkan_replay.h:4344`: align `xbox_depth16_stencil8` depth clear quantisation with `Patch::quantise()` (round-half-even + NaN -> 0.0f) so `EQUAL` depth tests against cleared values agree bit-for-bit. Includes a new portable CPU SPIR-V interpreter test (`runtime/test/depth24_fragment_test.cpp`) exhaustively verifying all 65,536 D16 codes, ties, specials, bias/slope/clamp, and D24 parity. No game files; AI-assisted.
Author
Owner

@mcpeacebir-lang commented on GitHub (Nov 25, 2026):

done: HW-DPP-NEG-INVALID-LANE - measured, no pull request. For @OreoFR's finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7158607949).

Result: on RDNA3 the hardware applies src0's neg after the bound_ctrl zero. An invalid source lane reads -0, not the +0 Gen.dpp_insn gives it on main. abs gives +0, as expected.

Setup: AMD Radeon RX 7800 XT (gfx1101, RDNA3), Windows 11, AMD driver 32.0.32029.2010, run natively through tools/hw_oracle (driver amdhip64_7.dll, AMD clang from rocm-sdk-core==10.0.0), on main bcaa13dad. One raw kernel per wave size, wave32 and native wave64, one thread per lane, s_nop 7 after every instruction. Per lane: v1 = lane + 1.0 (never zero), v2 = -0.0, v7 = 1.0, each destination pre-filled with 0xdeadbeef, EXEC back to all lanes before the stores.

Case Instruction (row_mask:0xf bank_mask:0xf bound_ctrl:1) EXEC Invalid lanes read
A v_add_f32_dpp v3, -v1, v2 row_shr:1 all 0x80000000
B (control) v_add_f32_dpp v4, v1, v2 row_shr:1 all 0x00000000
C v_add_f32_dpp v5, |v1|, v2 row_shr:1 all 0x00000000
D v_mul_f32_dpp v6, -v1, v7 row_shr:1 all 0x80000000
E v_add_f32_dpp v8, -v1, v2 row_shr:1 even lanes, fi:0 0x80000000
F as E with fi:1 even lanes 0x80000000 (row-start lanes only)
G v_add_f32_dpp v10, -v1, v2 quad_perm:[1,0,3,2] even lanes, fi:0 0x80000000

Every lane of every case, in both wave sizes, matches the model "fetch 0, then apply neg/abs". Valid lanes read -(src + 1.0) as expected, and lanes EXEC turned off keep 0xdeadbeef. The model "apply neg, then zero" fails exactly on the invalid lanes. In wave32 that is 2 lanes in A, D and F (the row starts) and 16 lanes in E and G. Wave64 doubles each count.

  • D rules out the sum's zero-sign rule as the cause: -0 * 1.0 gives 0x80000000 the same way.
  • E and G cover the other invalid kind in your finding: a source lane that is off in EXEC with fi:0. It gets the same -0.

So the fix you describe (shuffle the unmodified value, select the zero, then modify()) matches this hardware.

Not measured: RDNA2. This is gfx1101, so it is one data point for the RDNA2 translator, not a measurement of it. I did not re-run the translator on this program; the +0 on main is your reading of Gen.dpp_insn (lines 7333 and 7503 at 3de22a190). The probe is a hand-written kernel of about 70 lines in a scratch folder, not in the repository. I can post it if a GPU fixture wants it. No game files.

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

<!-- gh-comment-id:7161149101 --> @mcpeacebir-lang commented on GitHub (Nov 25, 2026): done: HW-DPP-NEG-INVALID-LANE - measured, no pull request. For @OreoFR's finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7158607949). **Result: on RDNA3 the hardware applies src0's `neg` after the bound_ctrl zero.** An invalid source lane reads **-0**, not the +0 `Gen.dpp_insn` gives it on `main`. `abs` gives +0, as expected. **Setup:** AMD Radeon RX 7800 XT (gfx1101, RDNA3), Windows 11, AMD driver 32.0.32029.2010, run natively through `tools/hw_oracle` (driver `amdhip64_7.dll`, AMD clang from `rocm-sdk-core==10.0.0`), on `main` `bcaa13dad`. One raw kernel per wave size, wave32 and native wave64, one thread per lane, `s_nop 7` after every instruction. Per lane: `v1 = lane + 1.0` (never zero), `v2 = -0.0`, `v7 = 1.0`, each destination pre-filled with `0xdeadbeef`, EXEC back to all lanes before the stores. | Case | Instruction (`row_mask:0xf bank_mask:0xf bound_ctrl:1`) | EXEC | Invalid lanes read | |---|---|---|---| | A | `v_add_f32_dpp v3, -v1, v2 row_shr:1` | all | `0x80000000` | | B (control) | `v_add_f32_dpp v4, v1, v2 row_shr:1` | all | `0x00000000` | | C | `v_add_f32_dpp v5, \|v1\|, v2 row_shr:1` | all | `0x00000000` | | D | `v_mul_f32_dpp v6, -v1, v7 row_shr:1` | all | `0x80000000` | | E | `v_add_f32_dpp v8, -v1, v2 row_shr:1` | even lanes, `fi:0` | `0x80000000` | | F | as E with `fi:1` | even lanes | `0x80000000` (row-start lanes only) | | G | `v_add_f32_dpp v10, -v1, v2 quad_perm:[1,0,3,2]` | even lanes, `fi:0` | `0x80000000` | Every lane of every case, in both wave sizes, matches the model "fetch 0, then apply `neg`/`abs`". Valid lanes read `-(src + 1.0)` as expected, and lanes EXEC turned off keep `0xdeadbeef`. The model "apply `neg`, then zero" fails exactly on the invalid lanes. In wave32 that is 2 lanes in A, D and F (the row starts) and 16 lanes in E and G. Wave64 doubles each count. - D rules out the sum's zero-sign rule as the cause: `-0 * 1.0` gives `0x80000000` the same way. - E and G cover the other invalid kind in your finding: a source lane that is off in EXEC with `fi:0`. It gets the same `-0`. So the fix you describe (shuffle the unmodified value, select the zero, then `modify()`) matches this hardware. **Not measured:** RDNA2. This is gfx1101, so it is one data point for the RDNA2 translator, not a measurement of it. I did not re-run the translator on this program; the +0 on `main` is your reading of `Gen.dpp_insn` (lines 7333 and 7503 at `3de22a190`). The probe is a hand-written kernel of about 70 lines in a scratch folder, not in the repository. I can post it if a GPU fixture wants it. No game files. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

claiming: RT-XDXR-BVH-REHYDRATE-BATCHED2X -- implement XboxBvhBuilder::RehydrateRaytracingAccelerationStructureBatched2X in runtime/shims/xbox_bvh_builder.cpp

<!-- gh-comment-id:7161152265 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): claiming: RT-XDXR-BVH-REHYDRATE-BATCHED2X -- implement XboxBvhBuilder::RehydrateRaytracingAccelerationStructureBatched2X in runtime/shims/xbox_bvh_builder.cpp
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claiming: RPF9-CARVE-ATOMIC-INDEX-AND-INPUT-GUARD - refuse carved .bin/.bk2 files overwriting the input archive, publish index.json atomically with Windows read-only cleanup, and compute progress from base. AI-assisted.

<!-- gh-comment-id:7161163878 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claiming: RPF9-CARVE-ATOMIC-INDEX-AND-INPUT-GUARD - refuse carved .bin/.bk2 files overwriting the input archive, publish index.json atomically with Windows read-only cleanup, and compute progress from base. AI-assisted.
Author
Owner

@Tortoche commented on GitHub (Nov 25, 2026):

finding: native Windows 11 + AMD RX 7800 XT (driver 26.11.2) on PR #1723 + #1715 + #1728: #1728 fixes the ~6994-submission +0x2474606 untranslated V# crash and reaches 9621+ submissions, but still hard-crashes after 201 dstorage_failure (0x89240030, reason=missing-profile) on ttdb_terrain_image_based_0_1.ttpf. Also 19 gate timeouts in d3d12_xs and staged texture upload failures for formats 133/134/145. Needs retail game files + AMD Windows.

<!-- gh-comment-id:7161178868 --> @Tortoche commented on GitHub (Nov 25, 2026): finding: native Windows 11 + AMD RX 7800 XT (driver 26.11.2) on PR #1723 + #1715 + #1728: #1728 fixes the ~6994-submission `+0x2474606` untranslated V# crash and reaches 9621+ submissions, but still hard-crashes after 201 `dstorage_failure` (`0x89240030`, `reason=missing-profile`) on `ttdb_terrain_image_based_0_1.ttpf`. Also 19 gate timeouts in `d3d12_xs` and staged texture upload failures for formats 133/134/145. Needs retail game files + AMD Windows.
Author
Owner

@Zalthor commented on GitHub (Nov 25, 2026):

Verification batch 6: 50 open pull requests with queued CI. That's 39 left from earlier selection plus 11 opened this morning. Each diff (merge-base..head) was applied to its own clean worktree at main bcaa13dad. Environment: Windows 10, CPython 3.10.6, CPU only, no game files. From this batch on, TEMP is on C:, as on GitHub's Windows runners. AI-assisted (Claude Code). Same method as batches 1 to 5.

Correction to batch 4: that run had TEMP on D:. With TEMP on C:, test_run_wine_tests.py on main has 2 errors, not 3: test_jobs_runs_that_many_tests_at_a_time passes. So #1722 demonstrably fixes one main error (test_jobs_keeps_locks_serial_tests_and_dependencies), not two. #1384 fixes that same one. The other batch-4 baselines (test_run_semantic_tests 3 failures, test_ci_registration 2) are the same with TEMP on C:.

All 50 pass. None adds a failure to the four repo-wide checks, and none breaks a test.

Bug fixes: the new tests fail on unpatched main and pass with the change

#1633, #1634, #1636, #1638, #1639, #1640, #1642, #1644, #1645, #1646, #1653, #1654, #1655, #1656, #1658, #1659, #1661, #1663, #1664, #1666, #1670, #1672, #1674, #1675, #1676, #1679, #1680, #1682, #1684, #1685, #1687, #1689, #1690, #1726, #1735, and #1744–#1754 (see below). On main, between 1 and 19 new test functions fail per PR.

These three touch test files that already fail on Windows main. Each leaves those failures exactly as they are, and its own new tests fail on main and pass with the change:

  • #1635: test_bink_names.py (main: test_unreadable_mount_directory_preserves_the_report)
  • #1712: test_shader_library.py (main: the 4 test_save_overlap_leaves_existing_outputs_intact errors from batch 5)
  • #1749: test_run_semantic_tests.py (main: the 3 failures from batch 4)

Ten PRs from one author on three tools

kirigayakazima opened ten PRs within 11 minutes:

  • #1744–#1748 on glb_inspect
  • #1750–#1752 on batch_glb
  • #1753–#1754 on glb_skinning

Each one passes on its own, and each one's new tests fail on main. Applied in sequence with a 3-way merge, every cluster combines without conflicts, and the combined test file passes (test_glb_inspect OK with 1 skip, test_batch_glb OK, test_glb_skinning OK). So they can be merged one after another. #1753/#1754 also touch tools/glb_skinning.py, which #885 and #1433 from batch 2 edit; I did not check those against each other.

Could not exercise here

  • #1686 translate_pipeline_compute: all 4 new tests are skipUnless(os.name == "posix") (POSIX fcntl/resource/fork) or Linux plus spirv-val. The rest of its file passes, but the change itself needs a Linux run.
  • #1733 tests/semantic/test_lds_src2.py: test-only (feeds llvm-mc through stdin). The file skips without an llvm-mc that has the AMDGPU target, and there is none here.

Not covered: no Linux or macOS run, no line-by-line code review, Python 3.10 rather than CI's 3.12. A force-push after this voids that PR's row.

<!-- gh-comment-id:7161188301 --> @Zalthor commented on GitHub (Nov 25, 2026): Verification batch 6: 50 open pull requests with queued CI. That's 39 left from earlier selection plus 11 opened this morning. Each diff (merge-base..head) was applied to its own clean worktree at `main` `bcaa13dad`. Environment: Windows 10, CPython 3.10.6, CPU only, no game files. From this batch on, `TEMP` is on `C:`, as on GitHub's Windows runners. AI-assisted (Claude Code). Same method as batches [1](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157070042) to [5](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7160802203). **Correction to [batch 4](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7160473031):** that run had `TEMP` on `D:`. With `TEMP` on `C:`, `test_run_wine_tests.py` on `main` has 2 errors, not 3: `test_jobs_runs_that_many_tests_at_a_time` passes. So #1722 demonstrably fixes one `main` error (`test_jobs_keeps_locks_serial_tests_and_dependencies`), not two. #1384 fixes that same one. The other batch-4 baselines (`test_run_semantic_tests` 3 failures, `test_ci_registration` 2) are the same with `TEMP` on `C:`. **All 50 pass.** None adds a failure to the four repo-wide checks, and none breaks a test. ### Bug fixes: the new tests fail on unpatched `main` and pass with the change #1633, #1634, #1636, #1638, #1639, #1640, #1642, #1644, #1645, #1646, #1653, #1654, #1655, #1656, #1658, #1659, #1661, #1663, #1664, #1666, #1670, #1672, #1674, #1675, #1676, #1679, #1680, #1682, #1684, #1685, #1687, #1689, #1690, #1726, #1735, and #1744–#1754 (see below). On `main`, between 1 and 19 new test functions fail per PR. These three touch test files that already fail on Windows `main`. Each leaves those failures exactly as they are, and its own new tests fail on `main` and pass with the change: - **#1635:** `test_bink_names.py` (`main`: `test_unreadable_mount_directory_preserves_the_report`) - **#1712:** `test_shader_library.py` (`main`: the 4 `test_save_overlap_leaves_existing_outputs_intact` errors from batch 5) - **#1749:** `test_run_semantic_tests.py` (`main`: the 3 failures from batch 4) ### Ten PRs from one author on three tools kirigayakazima opened ten PRs within 11 minutes: - **#1744–#1748** on `glb_inspect` - **#1750–#1752** on `batch_glb` - **#1753–#1754** on `glb_skinning` Each one passes on its own, and each one's new tests fail on `main`. Applied in sequence with a 3-way merge, every cluster combines without conflicts, and the combined test file passes (`test_glb_inspect` OK with 1 skip, `test_batch_glb` OK, `test_glb_skinning` OK). So they can be merged one after another. #1753/#1754 also touch `tools/glb_skinning.py`, which #885 and #1433 from batch 2 edit; I did not check those against each other. ### Could not exercise here - **#1686 `translate_pipeline_compute`:** all 4 new tests are `skipUnless(os.name == "posix")` (POSIX `fcntl`/`resource`/`fork`) or Linux plus `spirv-val`. The rest of its file passes, but the change itself needs a Linux run. - **#1733 `tests/semantic/test_lds_src2.py`:** test-only (feeds `llvm-mc` through stdin). The file skips without an `llvm-mc` that has the AMDGPU target, and there is none here. Not covered: no Linux or macOS run, no line-by-line code review, Python 3.10 rather than CI's 3.12. A force-push after this voids that PR's row.
Author
Owner

@mcpeacebir-lang commented on GitHub (Nov 25, 2026):

claiming: HW-VOPC-DPP-UNWRITTEN-LANES - the open measurement in the "DPP on a VOPC compare" row of docs/design.md (line 291 on main bcaa13dad): what a lane that DPP leaves unwritten does to its VCC bit, and to its EXEC bit for v_cmpx. The translator refuses those forms for this reason (DPP compare with lanes that keep their mask bit), #1647 included. I will run natively through tools/hw_oracle on an AMD Radeon RX 7800 XT (RDNA3, gfx1101, Windows 11), wave32 and wave64:

  • v_cmp_{gt,lt}_f32_dpp and v_cmpx_{gt,lt}_f32_dpp, with VCC preset to 0 and to all ones;
  • bound_ctrl:0 with an out-of-row source and with an inactive source (fi:0);
  • row_mask and bank_mask turning lanes off;
  • the translated bound_ctrl:1 forms as the reference.

For each lane I will say whether its bit is kept, written 0, or the compare of a 0 source, and post the result here. Measurement only, no pull request. RDNA3, not RDNA2. No game files. AI-assisted.

<!-- gh-comment-id:7161228341 --> @mcpeacebir-lang commented on GitHub (Nov 25, 2026): claiming: HW-VOPC-DPP-UNWRITTEN-LANES - the open measurement in the "DPP on a VOPC compare" row of `docs/design.md` (line 291 on `main` `bcaa13dad`): what a lane that DPP leaves unwritten does to its VCC bit, and to its EXEC bit for `v_cmpx`. The translator refuses those forms for this reason (`DPP compare with lanes that keep their mask bit`), #1647 included. I will run natively through `tools/hw_oracle` on an AMD Radeon RX 7800 XT (RDNA3, gfx1101, Windows 11), wave32 and wave64: - `v_cmp_{gt,lt}_f32_dpp` and `v_cmpx_{gt,lt}_f32_dpp`, with VCC preset to 0 and to all ones; - `bound_ctrl:0` with an out-of-row source and with an inactive source (`fi:0`); - `row_mask` and `bank_mask` turning lanes off; - the translated `bound_ctrl:1` forms as the reference. For each lane I will say whether its bit is kept, written 0, or the compare of a 0 source, and post the result here. Measurement only, no pull request. RDNA3, not RDNA2. No game files. AI-assisted.
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

done: RT-XDXR-BVH-REHYDRATE-BATCHED2X -> #1759

<!-- gh-comment-id:7161231037 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): done: RT-XDXR-BVH-REHYDRATE-BATCHED2X -> #1759
Author
Owner

@sodove commented on GitHub (Nov 25, 2026):

claiming: WIN-BOOT-MAPPED-IMAGE-STACK — offline stack recovery from a private Windows crash dump with a matching, explicitly supplied mapped PE image. Follow-up to #1693.

claiming: WIN-BOOT-FAULT-CONTEXT — extend the Windows boot digest with the first API reporting device loss, fault-query outcome and queue checkpoint counts. Follow-up to #1649. Both changes will use synthetic regression tests.

<!-- gh-comment-id:7161231063 --> @sodove commented on GitHub (Nov 25, 2026): claiming: WIN-BOOT-MAPPED-IMAGE-STACK — offline stack recovery from a private Windows crash dump with a matching, explicitly supplied mapped PE image. Follow-up to #1693. claiming: WIN-BOOT-FAULT-CONTEXT — extend the Windows boot digest with the first API reporting device loss, fault-query outcome and queue checkpoint counts. Follow-up to #1649. Both changes will use synthetic regression tests.
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: RPF9-CARVE-ATOMIC-INDEX-AND-INPUT-GUARD -> #1760

<!-- gh-comment-id:7161234277 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: RPF9-CARVE-ATOMIC-INDEX-AND-INPUT-GUARD -> #1760
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claiming: PSIN-NAMES-ATOMIC-REFS-AND-CASE-JSON - handle uppercase .JSON in --names, fold case in inside_src check, and publish --refs TSV atomically with Windows read-only cleanup. AI-assisted.

<!-- gh-comment-id:7161241950 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claiming: PSIN-NAMES-ATOMIC-REFS-AND-CASE-JSON - handle uppercase .JSON in --names, fold case in inside_src check, and publish --refs TSV atomically with Windows read-only cleanup. AI-assisted.
Author
Owner

@potatoe0100 commented on GitHub (Nov 25, 2026):

claiming: OLD-9996 - carry forward old-pr/9996 (draft #267, by tedin7): legacy GS ring lowering of ds_write_b96/b128 and ds_read2st64/ds_write2st64 in tools/rdna2spirv.py, rebased on main with the author's commit. AI-assisted.

<!-- gh-comment-id:7161271395 --> @potatoe0100 commented on GitHub (Nov 25, 2026): claiming: OLD-9996 - carry forward old-pr/9996 (draft #267, by tedin7): legacy GS ring lowering of ds_write_b96/b128 and ds_read2st64/ds_write2st64 in tools/rdna2spirv.py, rebased on main with the author's commit. AI-assisted.
Author
Owner

@potatoe0100 commented on GitHub (Nov 25, 2026):

done: OLD-9996 -> #1761

<!-- gh-comment-id:7161285759 --> @potatoe0100 commented on GitHub (Nov 25, 2026): done: OLD-9996 -> #1761
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: PSIN-NAMES-ATOMIC-REFS-AND-CASE-JSON -> #1762

<!-- gh-comment-id:7161286475 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: PSIN-NAMES-ATOMIC-REFS-AND-CASE-JSON -> #1762
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claiming: BVH-GPU-SMOKE-WORK-CLEANUP-AND-JSON-SAFETY - clean up temporary --game-dir translation work dir, validate --max-shared-memory > 0, guard --json against directories/inputs, and publish --json atomically. AI-assisted.

<!-- gh-comment-id:7161287514 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claiming: BVH-GPU-SMOKE-WORK-CLEANUP-AND-JSON-SAFETY - clean up temporary --game-dir translation work dir, validate --max-shared-memory > 0, guard --json against directories/inputs, and publish --json atomically. AI-assisted.
Author
Owner

@mcpeacebir-lang commented on GitHub (Nov 25, 2026):

done: HW-VOPC-DPP-UNWRITTEN-LANES - measured, no pull request. This is the open point of the "DPP on a VOPC compare" row in docs/design.md (line 291 on main bcaa13dad). It matters for #957's rule and #1647 (@OreoFR, @quartz-heron-58).

Result on RDNA3: a lane that DPP leaves unwritten does not keep its mask bit. It gets 0, like an inactive lane.

  • v_cmp_*_dpp writes 0 to its VCC bit.
  • v_cmpx_*_dpp turns it off in EXEC.

This holds for both kinds of unwritten lane:

  • Invalid source, bound_ctrl:0: the source is out of the row, or off in EXEC with fi:0.
  • Masked: the lane's row is off in row_mask or its bank is off in bank_mask. These lanes get 0 even with bound_ctrl:1; they are not compared against a 0 source.

The translated bound_ctrl:1 forms behave as the row says: compare of a 0 source.

Setup: AMD Radeon RX 7800 XT (gfx1101, RDNA3), Windows 11, AMD driver 32.0.32029.2010. Run natively through tools/hw_oracle (driver amdhip64_7.dll, AMD clang from rocm-sdk-core==10.0.0) on main bcaa13dad. One raw kernel each for wave32 and native wave64, one thread per lane, s_nop 7 after every instruction.

  • Per lane: v1 = lane + 1.0, v2 = 0.5.
  • Expected bits: with a valid source gt gives 1 and lt gives 0. With a 0 source, gt gives 0 and lt gives 1.
  • Before each v_cmp, VCC is preset once to 0 and once to all ones.
  • Telling the three outcomes apart: a kept bit shows the preset, so it would differ between the two runs. A bit written 0 is 0 under both presets and both compares. A computed bit follows the compare.
  • After each op the mask is copied to SGPRs, EXEC is restored to all lanes, and the mask is stored.
DPP control (masks 0xf unless named) EXEC gt VCC (preset 0 / ones) lt VCC (preset 0 / ones) v_cmpx gt / lt EXEC
C1 row_shr:1, bound_ctrl:0 all unwritten 0 / 0 unwritten 0 / 0 0 / 0
C2 row_shr:1 bound_ctrl:1 (translated) all zero-src 0 / 0 zero-src 1 / 1 0 / 1
C3 quad_perm:[0,1,2,3] row_mask:0x5 bound_ctrl:1 all masked 0 / 0 masked 0 / 0 0 / 0
C4 quad_perm:[0,1,2,3] bank_mask:0x5 bound_ctrl:1 all masked 0 / 0 masked 0 / 0 0 / 0
C5 quad_perm:[1,0,3,2], bound_ctrl:0 even lanes, fi:0 unwritten 0 / 0 unwritten 0 / 0 0 / 0
C6 quad_perm:[1,0,3,2] bound_ctrl:1 (translated) even lanes, fi:0 zero-src 0 / 0 zero-src 1 / 1 0 / 1

The table gives the bit of the named lanes. In every case, valid lanes read the compare (gt 1, lt 0) and inactive lanes read 0. Wave32 and wave64 give the same pattern; wave64 repeats it in every row. The masks, wave32:

  • gt C1/C2: fffefffe;
  • lt C2: 00010001;
  • gt C3: 0000ffff;
  • gt C4: 0f0f0f0f;
  • lt C6: 55555555;
  • everything else: 00000000.

v_cmpx gives the same words as v_cmp under the 0 preset.

What it means for the translator: the bit of a lane DPP does not write is 0, not "kept". So the refused forms (DPP compare with lanes that keep their mask bit) could be translated with a select to 0:

  • a lane that is off in row_mask or bank_mask gets 0, whatever bound_ctrl says;
  • an invalid source with bound_ctrl:0 gives 0;
  • with bound_ctrl:1 it is the compare of a 0 source.

None of the 1.0.2.1 compares named in the row need this, because they are all bound_ctrl:1 with full masks. I am not writing that change: rdna2spirv.py and #1647 are someone else's.

Not measured: RDNA2, so this is one data point for the gfx1013/gfx103x rule. Also not measured: DPP8 compares, row_mask/bank_mask with bound_ctrl:0, and compares other than f32 gt/lt. The probe is a hand-written kernel in a scratch folder, not in the repository; I can post it if a fixture wants it. No game files.

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

<!-- gh-comment-id:7161289307 --> @mcpeacebir-lang commented on GitHub (Nov 25, 2026): done: HW-VOPC-DPP-UNWRITTEN-LANES - measured, no pull request. This is the open point of the "DPP on a VOPC compare" row in `docs/design.md` (line 291 on `main` `bcaa13dad`). It matters for #957's rule and #1647 (@OreoFR, @quartz-heron-58). **Result on RDNA3: a lane that DPP leaves unwritten does not keep its mask bit. It gets 0, like an inactive lane.** - `v_cmp_*_dpp` writes 0 to its VCC bit. - `v_cmpx_*_dpp` turns it off in EXEC. This holds for both kinds of unwritten lane: - **Invalid source, `bound_ctrl:0`:** the source is out of the row, or off in EXEC with `fi:0`. - **Masked:** the lane's row is off in `row_mask` or its bank is off in `bank_mask`. These lanes get 0 even with `bound_ctrl:1`; they are not compared against a 0 source. The translated `bound_ctrl:1` forms behave as the row says: compare of a 0 source. **Setup:** AMD Radeon RX 7800 XT (gfx1101, RDNA3), Windows 11, AMD driver 32.0.32029.2010. Run natively through `tools/hw_oracle` (driver `amdhip64_7.dll`, AMD clang from `rocm-sdk-core==10.0.0`) on `main` `bcaa13dad`. One raw kernel each for wave32 and native wave64, one thread per lane, `s_nop 7` after every instruction. - Per lane: `v1 = lane + 1.0`, `v2 = 0.5`. - Expected bits: with a valid source `gt` gives 1 and `lt` gives 0. With a 0 source, `gt` gives 0 and `lt` gives 1. - Before each `v_cmp`, VCC is preset once to 0 and once to all ones. - Telling the three outcomes apart: a kept bit shows the preset, so it would differ between the two runs. A bit written 0 is 0 under both presets and both compares. A computed bit follows the compare. - After each op the mask is copied to SGPRs, EXEC is restored to all lanes, and the mask is stored. | | DPP control (masks 0xf unless named) | EXEC | `gt` VCC (preset 0 / ones) | `lt` VCC (preset 0 / ones) | `v_cmpx` `gt` / `lt` EXEC | |---|---|---|---|---|---| | C1 | `row_shr:1`, `bound_ctrl:0` | all | unwritten 0 / 0 | unwritten 0 / 0 | 0 / 0 | | C2 | `row_shr:1 bound_ctrl:1` (translated) | all | zero-src 0 / 0 | zero-src **1** / **1** | 0 / 1 | | C3 | `quad_perm:[0,1,2,3] row_mask:0x5 bound_ctrl:1` | all | masked 0 / 0 | masked 0 / 0 | 0 / 0 | | C4 | `quad_perm:[0,1,2,3] bank_mask:0x5 bound_ctrl:1` | all | masked 0 / 0 | masked 0 / 0 | 0 / 0 | | C5 | `quad_perm:[1,0,3,2]`, `bound_ctrl:0` | even lanes, `fi:0` | unwritten 0 / 0 | unwritten 0 / 0 | 0 / 0 | | C6 | `quad_perm:[1,0,3,2] bound_ctrl:1` (translated) | even lanes, `fi:0` | zero-src 0 / 0 | zero-src **1** / **1** | 0 / 1 | The table gives the bit of the named lanes. In every case, valid lanes read the compare (`gt` 1, `lt` 0) and inactive lanes read 0. Wave32 and wave64 give the same pattern; wave64 repeats it in every row. The masks, wave32: - `gt` C1/C2: `fffefffe`; - `lt` C2: `00010001`; - `gt` C3: `0000ffff`; - `gt` C4: `0f0f0f0f`; - `lt` C6: `55555555`; - everything else: `00000000`. `v_cmpx` gives the same words as `v_cmp` under the 0 preset. **What it means for the translator:** the bit of a lane DPP does not write is 0, not "kept". So the refused forms (`DPP compare with lanes that keep their mask bit`) could be translated with a select to 0: - a lane that is off in `row_mask` or `bank_mask` gets 0, whatever `bound_ctrl` says; - an invalid source with `bound_ctrl:0` gives 0; - with `bound_ctrl:1` it is the compare of a 0 source. None of the 1.0.2.1 compares named in the row need this, because they are all `bound_ctrl:1` with full masks. I am not writing that change: `rdna2spirv.py` and #1647 are someone else's. **Not measured:** RDNA2, so this is one data point for the gfx1013/gfx103x rule. Also not measured: DPP8 compares, `row_mask`/`bank_mask` with `bound_ctrl:0`, and compares other than `f32` `gt`/`lt`. The probe is a hand-written kernel in a scratch folder, not in the repository; I can post it if a fixture wants it. No game files. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@potatoe0100 commented on GitHub (Nov 25, 2026):

claiming: OLD-9905 - carry forward old-pr/9905 (draft #170, by cdomergue, ASSET-445): navmesh_decode --csv gains first_stream_bytes and runtime_data_end, and docs/navmesh.md records that stream lengths do not select the 4 KiB boundary value. Rebased on main with the author's commit. AI-assisted.

<!-- gh-comment-id:7161295097 --> @potatoe0100 commented on GitHub (Nov 25, 2026): claiming: OLD-9905 - carry forward old-pr/9905 (draft #170, by cdomergue, ASSET-445): navmesh_decode --csv gains first_stream_bytes and runtime_data_end, and docs/navmesh.md records that stream lengths do not select the 4 KiB boundary value. Rebased on main with the author's commit. AI-assisted.
Author
Owner

@potatoe0100 commented on GitHub (Nov 25, 2026):

done: OLD-9905 -> #1763

<!-- gh-comment-id:7161299592 --> @potatoe0100 commented on GitHub (Nov 25, 2026): done: OLD-9905 -> #1763
Author
Owner

@quartz-heron-58 commented on GitHub (Nov 25, 2026):

@mcpeacebir-lang thank you for HW-VOPC-DPP-UNWRITTEN-LANES. That is the measurement #957 did not have: I refused those forms because I could not tell "kept" from "written 0" without hardware, and named the refusal after my guess. Your table says the guess was wrong on RDNA3: the bit is 0.

As the author of that rule, so nobody doubles up:

  • I am not claiming the translation of the refused forms now. No 1.0.2.1 compare needs it (every one in the main corpus and in the library is bound_ctrl:1 with full masks, or DPP8), and it rests on one RDNA3 data point where the target is gfx1013. If someone has RDNA2 hardware and wants it, it is free to take; the select-to-0 you describe is the whole change.
  • What should change regardless is the wording: the refusal text "DPP compare with lanes that keep their mask bit" and the "DPP on a VOPC compare" row in docs/design.md state as fact something your run contradicts. That row is being edited by #1647 right now, so I will wait for #1647 to land and then claim a small wording fix that cites your measurement (RDNA3, 7800 XT, the six cases) and says RDNA2 is unmeasured. If @OreoFR would rather fold that sentence into #1647, that is fine with me too.

If you do post the probe kernel, a link from that row would be worth having. AI-assisted: yes (Claude Code)

<!-- gh-comment-id:7161321535 --> @quartz-heron-58 commented on GitHub (Nov 25, 2026): @mcpeacebir-lang thank you for HW-VOPC-DPP-UNWRITTEN-LANES. That is the measurement #957 did not have: I refused those forms because I could not tell "kept" from "written 0" without hardware, and named the refusal after my guess. Your table says the guess was wrong on RDNA3: the bit is 0. As the author of that rule, so nobody doubles up: - I am **not** claiming the translation of the refused forms now. No 1.0.2.1 compare needs it (every one in the main corpus and in the library is `bound_ctrl:1` with full masks, or DPP8), and it rests on one RDNA3 data point where the target is gfx1013. If someone has RDNA2 hardware and wants it, it is free to take; the select-to-0 you describe is the whole change. - What should change regardless is the wording: the refusal text "DPP compare with lanes that keep their mask bit" and the "DPP on a VOPC compare" row in `docs/design.md` state as fact something your run contradicts. That row is being edited by #1647 right now, so I will wait for #1647 to land and then claim a small wording fix that cites your measurement (RDNA3, 7800 XT, the six cases) and says RDNA2 is unmeasured. If @OreoFR would rather fold that sentence into #1647, that is fine with me too. If you do post the probe kernel, a link from that row would be worth having. AI-assisted: yes (Claude Code)
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: BVH-GPU-SMOKE-WORK-CLEANUP-AND-JSON-SAFETY -> #1765

<!-- gh-comment-id:7161331418 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: BVH-GPU-SMOKE-WORK-CLEANUP-AND-JSON-SAFETY -> #1765
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claiming: VS-INPUT-SURVEY-SAFE-PATHS-AND-ATOMIC-JSON - validate index.json shader basenames against path traversal, accept UTF-8 BOM, enforce same_report_path across inputs, and publish --json atomically. AI-assisted.

<!-- gh-comment-id:7161333334 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claiming: VS-INPUT-SURVEY-SAFE-PATHS-AND-ATOMIC-JSON - validate index.json shader basenames against path traversal, accept UTF-8 BOM, enforce same_report_path across inputs, and publish --json atomically. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-DEPTH16-QUANTISE-AND-FALLBACK -> #1764 (https://github.com/ubiquitarianism/leonida/pull/1764)
Adds exact division-free 16-bit UNORM reconstruction in depth24_fragment.h (fixing the 256x depth shrinkage for levels == 65535.0f), routes packed16_fallback in d3d12_vulkan_device.cpp through vulkan_format()/pc_format() so NVIDIA D24S8-backed format-118 PSOs no longer misfire, aligns D16S8 clear quantisation in vulkan_replay.h (detail::quantize_depth16), and adds runtime/test/depth24_fragment_test.cpp (passes under ASan/UBSan and -O2 across all 65,536 D16 codes; Windows/Vulkan shim edits rely on CI).

<!-- gh-comment-id:7161335631 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: `RT-DEPTH16-QUANTISE-AND-FALLBACK` -> #1764 (https://github.com/ubiquitarianism/leonida/pull/1764) Adds exact division-free 16-bit UNORM reconstruction in `depth24_fragment.h` (fixing the 256x depth shrinkage for `levels == 65535.0f`), routes `packed16_fallback` in `d3d12_vulkan_device.cpp` through `vulkan_format()`/`pc_format()` so NVIDIA D24S8-backed format-118 PSOs no longer misfire, aligns D16S8 clear quantisation in `vulkan_replay.h` (`detail::quantize_depth16`), and adds `runtime/test/depth24_fragment_test.cpp` (passes under ASan/UBSan and `-O2` across all 65,536 D16 codes; Windows/Vulkan shim edits rely on CI).
Author
Owner

@mcpeacebir-lang commented on GitHub (Nov 25, 2026):

claiming: TOOL-DPP-HW-PROBE - a new tools/dpp_hw_probe.py with its CPU-only unit test tests/test_dpp_hw_probe.py. It turns my two RX 7800 XT measurements above (HW-DPP-NEG-INVALID-LANE, HW-VOPC-DPP-UNWRITTEN-LANES) into one command, so someone with an RDNA2 card can repeat them through tools/hw_oracle and settle the gfx103x side.

What the tool does:

  • Two sets of cases: src0 neg/abs against the bound_ctrl zero, and the VCC/EXEC bit of lanes DPP leaves unwritten in v_cmp/v_cmpx.
  • Each lane is compared with both candidate models. --waves and --json work like the other probes. It exits 77 without the oracle or on a family other than gfx10/gfx11.
  • LLVM has no gfx10 encoding for a VOPC compare in DPP form (docs/design.md, the "DPP on a VOPC compare" row). So the compares are emitted as .long words from the RDNA2 and RDNA3 VOPC/DPP layouts.
  • The unit test checks the gfx11 words against the fields that AMD clang's llvm-mc prints for the same instructions, and the gfx10 opcodes against the e32 encodings it prints for gfx1030.

Only new files: no docs/design.md or translator change, since #1647 has that row and rdna2spirv.py. Standard library only, no game files. AI-assisted.

<!-- gh-comment-id:7161381032 --> @mcpeacebir-lang commented on GitHub (Nov 25, 2026): claiming: TOOL-DPP-HW-PROBE - a new `tools/dpp_hw_probe.py` with its CPU-only unit test `tests/test_dpp_hw_probe.py`. It turns my two RX 7800 XT measurements above (HW-DPP-NEG-INVALID-LANE, HW-VOPC-DPP-UNWRITTEN-LANES) into one command, so someone with an RDNA2 card can repeat them through `tools/hw_oracle` and settle the gfx103x side. What the tool does: - Two sets of cases: src0 `neg`/`abs` against the `bound_ctrl` zero, and the VCC/EXEC bit of lanes DPP leaves unwritten in `v_cmp`/`v_cmpx`. - Each lane is compared with both candidate models. `--waves` and `--json` work like the other probes. It exits 77 without the oracle or on a family other than gfx10/gfx11. - LLVM has no gfx10 encoding for a VOPC compare in DPP form (`docs/design.md`, the "DPP on a VOPC compare" row). So the compares are emitted as `.long` words from the RDNA2 and RDNA3 VOPC/DPP layouts. - The unit test checks the gfx11 words against the fields that AMD clang's `llvm-mc` prints for the same instructions, and the gfx10 opcodes against the e32 encodings it prints for gfx1030. Only new files: no `docs/design.md` or translator change, since #1647 has that row and `rdna2spirv.py`. Standard library only, no game files. AI-assisted.
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: VS-INPUT-SURVEY-SAFE-PATHS-AND-ATOMIC-JSON -> #1767

<!-- gh-comment-id:7161418571 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: VS-INPUT-SURVEY-SAFE-PATHS-AND-ATOMIC-JSON -> #1767
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claiming: NAVMESH-INDEX-ERROR-HANDLING-AND-CLEANUP - check input existence before mode flags, handle report write OSError without traceback, separate chmod/unlink cleanup guards, and align is_scanned_input pattern matching with scan_directory. AI-assisted.

<!-- gh-comment-id:7161419600 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claiming: NAVMESH-INDEX-ERROR-HANDLING-AND-CLEANUP - check input existence before mode flags, handle report write OSError without traceback, separate chmod/unlink cleanup guards, and align is_scanned_input pattern matching with scan_directory. AI-assisted.
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

claiming: RECOMP-CENSUS-RETAIL-EXE - run tools/recomp_census.py on the retail 1.0.2.1 executable and record the measured .pdata coverage, unwind flags, top mnemonics, and unhandled/hazard summary in docs/mobile.md (Next step 1; aggregate counts only, no game bytes or code). AI-assisted.

<!-- gh-comment-id:7161422476 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): claiming: RECOMP-CENSUS-RETAIL-EXE - run tools/recomp_census.py on the retail 1.0.2.1 executable and record the measured .pdata coverage, unwind flags, top mnemonics, and unhandled/hazard summary in docs/mobile.md (Next step 1; aggregate counts only, no game bytes or code). AI-assisted.
Author
Owner

@sodove commented on GitHub (Nov 25, 2026):

done: WIN-BOOT-FAULT-CONTEXT -> #1766

<!-- gh-comment-id:7161423134 --> @sodove commented on GitHub (Nov 25, 2026): done: WIN-BOOT-FAULT-CONTEXT -> #1766
Author
Owner

@Coderlord commented on GitHub (Nov 25, 2026):

claiming: RT-SLOT133-IMPORT-OFFSET - create_host_buffer declines a slot-133 buffer that sits off the Vulkan buffer alignment inside its page (the retail title places small buffers 32 bytes apart, one at +0xc60, refused for alignment 64 on an RTX 5080) and one whose memory requirement runs past its page (a 32-byte buffer at +0xfe0); both become shadows. Fix: the Vulkan buffer starts at the page and binds at 0, the D3D12 buffer is buffer_offset into it, and the import takes the next pages when the requirement needs them. PR follows.

<!-- gh-comment-id:7161446177 --> @Coderlord commented on GitHub (Nov 25, 2026): claiming: RT-SLOT133-IMPORT-OFFSET - `create_host_buffer` declines a slot-133 buffer that sits off the Vulkan buffer alignment inside its page (the retail title places small buffers 32 bytes apart, one at +0xc60, refused for alignment 64 on an RTX 5080) and one whose memory requirement runs past its page (a 32-byte buffer at +0xfe0); both become shadows. Fix: the Vulkan buffer starts at the page and binds at 0, the D3D12 buffer is `buffer_offset` into it, and the import takes the next pages when the requirement needs them. PR follows.
Author
Owner

@Coderlord commented on GitHub (Nov 25, 2026):

done: RT-SLOT133-IMPORT-OFFSET -> #1768

<!-- gh-comment-id:7161456482 --> @Coderlord commented on GitHub (Nov 25, 2026): done: RT-SLOT133-IMPORT-OFFSET -> #1768
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: NAVMESH-INDEX-ERROR-HANDLING-AND-CLEANUP -> #1769

<!-- gh-comment-id:7161462743 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: NAVMESH-INDEX-ERROR-HANDLING-AND-CLEANUP -> #1769
Author
Owner

@OreoFR commented on GitHub (Nov 25, 2026):

@quartz-heron-58 folded into #1647 (dec076574), so there's nothing left for you to claim there:

  • The refusal is now DPP compare with lanes DPP leaves unwritten (the two test_dpp_compare.py checks follow).
  • The "DPP on a VOPC compare" row in docs/design.md cites the RDNA3 result: an unwritten lane gets 0 in VCC and is turned off in EXEC by v_cmpx, for an invalid source with bound_ctrl 0 and for a lane row_mask/bank_mask turn off, even with bound_ctrl 1. It says RDNA2 (gfx1013) is unmeasured, so those forms stay refused. It also notes that the translated forms gave the compare of a 0 source on RDNA3, as the rule says.

No change to what is translated. test_dpp_compare.py, test_wave64_halves.py and test_library_compute_forms.py pass.

@mcpeacebir-lang thanks for both measurements.

AI-assisted.

<!-- gh-comment-id:7161485156 --> @OreoFR commented on GitHub (Nov 25, 2026): @quartz-heron-58 folded into #1647 (`dec076574`), so there's nothing left for you to claim there: - The refusal is now `DPP compare with lanes DPP leaves unwritten` (the two `test_dpp_compare.py` checks follow). - The "DPP on a VOPC compare" row in `docs/design.md` cites the RDNA3 result: an unwritten lane gets 0 in VCC and is turned off in EXEC by `v_cmpx`, for an invalid source with `bound_ctrl` 0 and for a lane `row_mask`/`bank_mask` turn off, even with `bound_ctrl` 1. It says RDNA2 (gfx1013) is unmeasured, so those forms stay refused. It also notes that the translated forms gave the compare of a 0 source on RDNA3, as the rule says. No change to what is translated. `test_dpp_compare.py`, `test_wave64_halves.py` and `test_library_compute_forms.py` pass. @mcpeacebir-lang thanks for both measurements. AI-assisted.
Author
Owner

@potatoe0100 commented on GitHub (Nov 25, 2026):

claiming: OLD-9776 - carry forward old-pr/9776 (draft #54, by pes7): scripts/bench_translate.py, a translator throughput benchmark (us per instruction, --compare of two tools/ trees, --max-slowdown), rebased on main with the author's commits. AI-assisted.

<!-- gh-comment-id:7161510791 --> @potatoe0100 commented on GitHub (Nov 25, 2026): claiming: OLD-9776 - carry forward old-pr/9776 (draft #54, by pes7): scripts/bench_translate.py, a translator throughput benchmark (us per instruction, --compare of two tools/ trees, --max-slowdown), rebased on main with the author's commits. AI-assisted.
Author
Owner

@potatoe0100 commented on GitHub (Nov 25, 2026):

done: OLD-9776 -> #1770

<!-- gh-comment-id:7161512633 --> @potatoe0100 commented on GitHub (Nov 25, 2026): done: OLD-9776 -> #1770
Author
Owner

@potatoe0100 commented on GitHub (Nov 25, 2026):

claiming: OLD-9850 - carry forward old-pr/9850 (draft #116): test_ttpf_assets test_profile_added_after_strict_rejection reads the original DDS before the rebuild removes it (FileNotFoundError on main whenever tools/bcpack_calibration is built), rebased on main with the author's commit. AI-assisted.

<!-- gh-comment-id:7161513239 --> @potatoe0100 commented on GitHub (Nov 25, 2026): claiming: OLD-9850 - carry forward old-pr/9850 (draft #116): test_ttpf_assets test_profile_added_after_strict_rejection reads the original DDS before the rebuild removes it (FileNotFoundError on main whenever tools/bcpack_calibration is built), rebased on main with the author's commit. AI-assisted.
Author
Owner

@potatoe0100 commented on GitHub (Nov 25, 2026):

done: OLD-9850 -> #1771

<!-- gh-comment-id:7161514895 --> @potatoe0100 commented on GitHub (Nov 25, 2026): done: OLD-9850 -> #1771
Author
Owner

@sodove commented on GitHub (Nov 25, 2026):

done: WIN-BOOT-MAPPED-IMAGE-STACK -> #1772

<!-- gh-comment-id:7161525172 --> @sodove commented on GitHub (Nov 25, 2026): done: WIN-BOOT-MAPPED-IMAGE-STACK -> #1772
Author
Owner

@timbot103 commented on GitHub (Nov 25, 2026):

claiming: D3D-CLEAR-UAV-3D-SLICE - implement unpredicated ClearUnorderedAccessViewUint/ClearUnorderedAccessViewFloat for partial 3D texture mips (FirstWSlice/WSize) and 3D XY rectangles on Vulkan (direct and compute command lists), removing the refusal in runtime/shims/d3d12_com.cpp (unordered_access_view). Preserves whole-mip vkCmdClearColorImage, matching view/backing format and emulated RGB9E5 rules, typeless-3D refusal, and predication refusal, using a bounded <= 64 KiB scratch tile copied per Z slice across FirstWSlice..FirstWSlice+WSize-1 with synthetic Vulkan/D3D12 readback tests under LEONIDA_VK_VALIDATION=1. No game files; AI-assisted (Gemini, Codex, Claude).

<!-- gh-comment-id:7161533493 --> @timbot103 commented on GitHub (Nov 25, 2026): claiming: D3D-CLEAR-UAV-3D-SLICE - implement unpredicated `ClearUnorderedAccessViewUint`/`ClearUnorderedAccessViewFloat` for partial 3D texture mips (`FirstWSlice`/`WSize`) and 3D XY rectangles on Vulkan (direct and compute command lists), removing the refusal in `runtime/shims/d3d12_com.cpp` (`unordered_access_view`). Preserves whole-mip `vkCmdClearColorImage`, matching view/backing format and emulated RGB9E5 rules, typeless-3D refusal, and predication refusal, using a bounded `<= 64 KiB` scratch tile copied per Z slice across `FirstWSlice..FirstWSlice+WSize-1` with synthetic Vulkan/D3D12 readback tests under `LEONIDA_VK_VALIDATION=1`. No game files; AI-assisted (Gemini, Codex, Claude).
Author
Owner

@mcpeacebir-lang commented on GitHub (Nov 25, 2026):

done: TOOL-DPP-HW-PROBE -> #1773

<!-- gh-comment-id:7161534096 --> @mcpeacebir-lang commented on GitHub (Nov 25, 2026): done: TOOL-DPP-HW-PROBE -> #1773
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

claiming: SHADER-DPP-NEG-BOUND-CTRL -- rdna2spirv: apply src0 float modifiers after bound_ctrl zero selection in Gen.dpp_insn (HW-DPP-NEG-INVALID-LANE)

<!-- gh-comment-id:7161557331 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): claiming: SHADER-DPP-NEG-BOUND-CTRL -- rdna2spirv: apply src0 float modifiers after bound_ctrl zero selection in Gen.dpp_insn (HW-DPP-NEG-INVALID-LANE)
Author
Owner

@Tauwni commented on GitHub (Nov 25, 2026):

claiming: SHADER-EXPLICIT-LOD-BIAS-MVK - ps_ssharp fails on every Mac (in the macOS job's EXPECTED_FAILURES): measured on an Apple M3, MoltenVK 1.4.2 drops the sampler's mipLodBias from explicit-LOD and derivative-LOD samples alike. I will add a per-device translator fallback, --explicit-lod-bias (the S# LOD_BIAS applied in the shader), on for MoltenVK through tools/vk_subgroup_info.py, plus +-0.3 sampler cases that catch a bias counted twice, tests and docs. No game files. AI-assisted.

<!-- gh-comment-id:7161563852 --> @Tauwni commented on GitHub (Nov 25, 2026): claiming: SHADER-EXPLICIT-LOD-BIAS-MVK - `ps_ssharp` fails on every Mac (in the macOS job's EXPECTED_FAILURES): measured on an Apple M3, MoltenVK 1.4.2 drops the sampler's mipLodBias from explicit-LOD and derivative-LOD samples alike. I will add a per-device translator fallback, `--explicit-lod-bias` (the S# LOD_BIAS applied in the shader), on for MoltenVK through tools/vk_subgroup_info.py, plus +-0.3 sampler cases that catch a bias counted twice, tests and docs. No game files. AI-assisted.
Author
Owner

@Tauwni commented on GitHub (Nov 25, 2026):

done: SHADER-EXPLICIT-LOD-BIAS-MVK -> #1774

<!-- gh-comment-id:7161566260 --> @Tauwni commented on GitHub (Nov 25, 2026): done: SHADER-EXPLICIT-LOD-BIAS-MVK -> #1774
Author
Owner

@potatoe0100 commented on GitHub (Nov 25, 2026):

claiming: OLD-9773 - carry forward old-pr/9773 (draft #51, by Joaco9020): the runtime reads the index's needs_maintenance8 and refuses a graphics or compute pipeline that needs VK_KHR_maintenance8 on a device without it, rebased on main with the author's commit. AI-assisted.

<!-- gh-comment-id:7161566908 --> @potatoe0100 commented on GitHub (Nov 25, 2026): claiming: OLD-9773 - carry forward old-pr/9773 (draft #51, by Joaco9020): the runtime reads the index's needs_maintenance8 and refuses a graphics or compute pipeline that needs VK_KHR_maintenance8 on a device without it, rebased on main with the author's commit. AI-assisted.
Author
Owner

@potatoe0100 commented on GitHub (Nov 25, 2026):

done: OLD-9773 -> #1775

<!-- gh-comment-id:7161568582 --> @potatoe0100 commented on GitHub (Nov 25, 2026): done: OLD-9773 -> #1775
Author
Owner

@mcpeacebir-lang commented on GitHub (Nov 25, 2026):

claiming: HW-CNDMASK-SIGN-MODS - the open point of the "v_cndmask_b32 source modifiers" row of docs/design.md (line 424 on main 0d80bc5df). The row says "Not measured on hardware for this instruction". The translator treats VOP3 abs/neg on v_cndmask_b32 as sign-bit moves (Gen.src_u_sign_mods): a signalling NaN stays signalling and a denormal is not flushed.

I will run v_cndmask_b32_e64 natively through tools/hw_oracle on an AMD Radeon RX 7800 XT (RDNA3, gfx1101, Windows 11):

  • the same kinds of words as tests/semantic/test_cndmask_sign_mods.py: ±0, denormals, ±1.0/2.0, max normal, ±inf, quiet and signalling NaNs with payloads;
  • each word through v, -v, |v| and -|v|, on src0 and on src1;
  • under all four ieee × denorm32 (0/3) modes, in wave32 and wave64.

For each word I will say whether it is a sign-bit move or a float op (a quieted sNaN or a flushed denormal), and post the result here. Measurement only, no pull request. RDNA3, not RDNA2. No game files. AI-assisted.

<!-- gh-comment-id:7161589628 --> @mcpeacebir-lang commented on GitHub (Nov 25, 2026): claiming: HW-CNDMASK-SIGN-MODS - the open point of the "`v_cndmask_b32` source modifiers" row of `docs/design.md` (line 424 on `main` `0d80bc5df`). The row says "Not measured on hardware for this instruction". The translator treats VOP3 `abs`/`neg` on `v_cndmask_b32` as sign-bit moves (`Gen.src_u_sign_mods`): a signalling NaN stays signalling and a denormal is not flushed. I will run `v_cndmask_b32_e64` natively through `tools/hw_oracle` on an AMD Radeon RX 7800 XT (RDNA3, gfx1101, Windows 11): - the same kinds of words as `tests/semantic/test_cndmask_sign_mods.py`: ±0, denormals, ±1.0/2.0, max normal, ±inf, quiet and signalling NaNs with payloads; - each word through `v`, `-v`, `|v|` and `-|v|`, on src0 and on src1; - under all four `ieee` × `denorm32` (0/3) modes, in wave32 and wave64. For each word I will say whether it is a sign-bit move or a float op (a quieted sNaN or a flushed denormal), and post the result here. Measurement only, no pull request. RDNA3, not RDNA2. No game files. AI-assisted.
Author
Owner

@OreoFR commented on GitHub (Nov 25, 2026):

About my DPP neg finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7158607949): @abnalstlll-byte has claimed the translator fix as SHADER-DPP-NEG-BOUND-CTRL (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7161557331), so it's theirs. I'm not taking it, despite the offer in the finding. @mcpeacebir-lang, your RX 7800 XT result is the measurement it rests on (RDNA3; RDNA2 still unmeasured). Happy to review the PR.

AI-assisted.

<!-- gh-comment-id:7161608079 --> @OreoFR commented on GitHub (Nov 25, 2026): About my DPP `neg` finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7158607949): @abnalstlll-byte has claimed the translator fix as SHADER-DPP-NEG-BOUND-CTRL (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7161557331), so it's theirs. I'm not taking it, despite the offer in the finding. @mcpeacebir-lang, your RX 7800 XT result is the measurement it rests on (RDNA3; RDNA2 still unmeasured). Happy to review the PR. AI-assisted.
Author
Owner

@ImLele69 commented on GitHub (Nov 25, 2026):

finding: the world-start WRITE_INVALID reproduces under Linux/Wine on an 8 GB card without Resizable BAR, and it stays when the layer's shadow trackers make no page read-only. For @QemmHD's driver-side reading above. Counts and addresses only.

Setup: Fedora 44, Wine 11.21 (Staging), RTX 2070 SUPER 8 GB (BAR1 256 MiB), NVIDIA 620.70.06, i9-9900KF, 16 GB RAM + swap, own 1.0.2.1. Build: main c7e82e26e + #1472 + #1681 + #1717 + local changes that cut wineserver time in the shadow refresh (to be posted separately), cross-built with clang-cl 20. One run with #429 on top. LEONIDA_TITLE_WATCHDOG=0 LEONIDA_TITLE_WINDOWS_MB=1024 LEONIDA_ARENA_MB=3072 LEONIDA_DEVICE_FAULT=1, keyboard-pad input script, warm pipeline cache.

What happens, 3 runs: the story load ends at about 36,400-37,700 registered images (20-25 min here), the UI of the first world screen is shown over a black frame, the title issues its first ExecuteIndirect with a DISPATCH_MESH signature, and the device is lost within seconds. Title windows peak at about 8,000 (~930 MB), under the 1024 MiB cap; no "past LEONIDA_TITLE_WINDOWS_MB" line.

run difference WRITE_INVALID (type 2, 4 KiB) offset mod 2 MiB type 6 queues at the loss
A – 0x7f64477fe000 0x1fe000 0xdf7dffbdc0 direct: copy (checkpoint), compute: lib_cs_00928, lib_cs_01468
B + #429 (mesh ExecuteIndirect replayed, the "not replayed yet" line is gone) none reported – – compute: lib_cs_01468, lib_cs_00927, lib_cs_02229, lib_cs_01728
C + LEONIDA_SHADOW_GUARDS=0 0x7fdab77ff000 0x1ff000 0xdf7dffbdc0 (same pattern)

LEONIDA_SHADOW_GUARDS=0 is a local diagnostic switch: ShadowPages is built with watch_ = false, so no shadow or title-window tracker ever calls VirtualProtect and every covered page is copied at every submission (the layer's "copy every page" path when the fault handler can't be installed). Kernel write watch (LEONIDA_WRITE_WATCH) was left on; it doesn't change protections.

Reading:

  • The layer's page guards are not what makes that page unwritable for the GPU: with none, run C faults the same way.
  • The type-6 entry is the same value in both runs that reported addresses, as in your 8 runs, on a different OS, driver branch and GPU generation.
  • The faulting page is again at the end of a 2 MiB-aligned block, but the last or second-to-last page of the 2 MiB itself here, not your 0x1bf000 (the 448-page span). So the object may not always be 448 pages.

Not done here: checkpoint markers for render-pass begins and the layer's own upload/copy/clear command buffers, and a log of how the object behind the address was bound.

AI-assisted (Claude Code).

<!-- gh-comment-id:7161613141 --> @ImLele69 commented on GitHub (Nov 25, 2026): finding: the world-start WRITE_INVALID reproduces under **Linux/Wine on an 8 GB card without Resizable BAR**, and it stays when the layer's shadow trackers make no page read-only. For @QemmHD's driver-side reading above. Counts and addresses only. **Setup:** Fedora 44, Wine 11.21 (Staging), RTX 2070 SUPER 8 GB (BAR1 256 MiB), NVIDIA 620.70.06, i9-9900KF, 16 GB RAM + swap, own 1.0.2.1. Build: `main` `c7e82e26e` + #1472 + #1681 + #1717 + local changes that cut wineserver time in the shadow refresh (to be posted separately), cross-built with clang-cl 20. One run with #429 on top. `LEONIDA_TITLE_WATCHDOG=0 LEONIDA_TITLE_WINDOWS_MB=1024 LEONIDA_ARENA_MB=3072 LEONIDA_DEVICE_FAULT=1`, keyboard-pad input script, warm pipeline cache. **What happens, 3 runs:** the story load ends at about 36,400-37,700 registered images (20-25 min here), the UI of the first world screen is shown over a black frame, the title issues its first `ExecuteIndirect` with a DISPATCH_MESH signature, and the device is lost within seconds. Title windows peak at about 8,000 (~930 MB), under the 1024 MiB cap; no "past LEONIDA_TITLE_WINDOWS_MB" line. | run | difference | WRITE_INVALID (type 2, 4 KiB) | offset mod 2 MiB | type 6 | queues at the loss | |---|---|---|---|---|---| | A | – | `0x7f64477fe000` | `0x1fe000` | `0xdf7dffbdc0` | direct: copy (checkpoint), compute: `lib_cs_00928`, `lib_cs_01468` | | B | + #429 (mesh ExecuteIndirect replayed, the "not replayed yet" line is gone) | none reported | – | – | compute: `lib_cs_01468`, `lib_cs_00927`, `lib_cs_02229`, `lib_cs_01728` | | C | + `LEONIDA_SHADOW_GUARDS=0` | `0x7fdab77ff000` | `0x1ff000` | `0xdf7dffbdc0` | (same pattern) | `LEONIDA_SHADOW_GUARDS=0` is a local diagnostic switch: `ShadowPages` is built with `watch_ = false`, so no shadow or title-window tracker ever calls `VirtualProtect` and every covered page is copied at every submission (the layer's "copy every page" path when the fault handler can't be installed). Kernel write watch (`LEONIDA_WRITE_WATCH`) was left on; it doesn't change protections. **Reading:** - The layer's page guards are not what makes that page unwritable for the GPU: with none, run C faults the same way. - The type-6 entry is the same value in both runs that reported addresses, as in your 8 runs, on a different OS, driver branch and GPU generation. - The faulting page is again at the end of a 2 MiB-aligned block, but the last or second-to-last page of the 2 MiB itself here, not your `0x1bf000` (the 448-page span). So the object may not always be 448 pages. Not done here: checkpoint markers for render-pass begins and the layer's own upload/copy/clear command buffers, and a log of how the object behind the address was bound. AI-assisted (Claude Code).
Author
Owner

@JesusACD commented on GitHub (Nov 25, 2026):

claiming: RT-ONDEMAND-CONSOLE-STREAM - fix console-numbered pipeline state streams under LEONIDA_PIPELINE_COMPILE=on-demand (Device::prepare_console_stream in
untime/shims/d3d12_vulkan_device.cpp and create_pso_from_stream in
untime/shims/d3d12_xs_device.cpp, reported by @thiefyzheng / @adrianmjim): retry console subobject numbering for DXIL kind-13 mesh streams when enabled, capture canonicalized PC tags in PsoStreamRecord::capture(source, used_console) for slot-55 derivation and bind-time
esolve_type, match eager mesh-stage refusal checks, and add d3d12_mesh_on_demand CTest coverage. No game files; AI-assisted.

<!-- gh-comment-id:7161618257 --> @JesusACD commented on GitHub (Nov 25, 2026): claiming: RT-ONDEMAND-CONSOLE-STREAM - fix console-numbered pipeline state streams under LEONIDA_PIPELINE_COMPILE=on-demand (Device::prepare_console_stream in untime/shims/d3d12_vulkan_device.cpp and create_pso_from_stream in untime/shims/d3d12_xs_device.cpp, reported by @thiefyzheng / @adrianmjim): retry console subobject numbering for DXIL kind-13 mesh streams when enabled, capture canonicalized PC tags in PsoStreamRecord::capture(source, used_console) for slot-55 derivation and bind-time esolve_type, match eager mesh-stage refusal checks, and add d3d12_mesh_on_demand CTest coverage. No game files; AI-assisted.
Author
Owner

@QemmHD commented on GitHub (Nov 25, 2026):

@ImLele69 very useful, thank you, especially run C: with no page guards it still faults, so the layer's write protection isn't what makes the page unwritable. I'll drop that experiment here. Two follow-ups:

  • Timing: the first DISPATCH_MESH ExecuteIndirect right before the loss fits what I see: on this side the loss comes in the first world frame, before any world frame is presented.
  • Run B: it's the interesting one. Was the device still lost with #429 but without a fault address, or did it run on? I'll A/B #429 on the 4070 SUPER on top of the new main (ed94fbef9/0d80bc5df, which now includes #1723).

On the address: thanks for the different offsets (0x1fe000/0x1ff000 vs my 0x1bf000). So the common factor is "near the end of a 2 MiB-aligned block", not a 448-page object. My diagnostic build marks every write the layer issues itself (the per-submission zero fills and storage-image initialisation, copies, clears) and prints which buffer owns the fault address. I'll post what it names.

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

<!-- gh-comment-id:7161631509 --> @QemmHD commented on GitHub (Nov 25, 2026): @ImLele69 very useful, thank you, especially run C: with no page guards it still faults, so the layer's write protection isn't what makes the page unwritable. I'll drop that experiment here. Two follow-ups: - **Timing:** the first DISPATCH_MESH `ExecuteIndirect` right before the loss fits what I see: on this side the loss comes in the first world frame, before any world frame is presented. - **Run B:** it's the interesting one. Was the device still lost with #429 but without a fault address, or did it run on? I'll A/B #429 on the 4070 SUPER on top of the new main (ed94fbef9/0d80bc5df, which now includes #1723). On the address: thanks for the different offsets (`0x1fe000`/`0x1ff000` vs my `0x1bf000`). So the common factor is "near the end of a 2 MiB-aligned block", not a 448-page object. My diagnostic build marks every write the layer issues itself (the per-submission zero fills and storage-image initialisation, copies, clears) and prints which buffer owns the fault address. I'll post what it names. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

done: RECOMP-CENSUS-RETAIL-EXE -> #1776

<!-- gh-comment-id:7161645367 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): done: RECOMP-CENSUS-RETAIL-EXE -> #1776
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-ONDEMAND-CONSOLE-STREAM-ENUM — fix Device::prepare_console_stream under LEONIDA_PIPELINE_COMPILE=on-demand (--first-run-ui) so device slot 86 applies the same console subobject numbering fallback as eager CreatePipelineState, normalizes tags when capturing PsoStreamRecord (unblocking slot 55 derivation and bind-time resolve_type), rejects unsupported stages/missing VK_EXT_mesh_shader up front, and adds on-demand CTest coverage for d3d12_mesh_test (follows up @thiefyzheng's finding #1608#issuecomment-7161103050; leaves PipelineState::resolve_type untouched to stay clear of #1695).

<!-- gh-comment-id:7161646143 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: `RT-ONDEMAND-CONSOLE-STREAM-ENUM` — fix `Device::prepare_console_stream` under `LEONIDA_PIPELINE_COMPILE=on-demand` (`--first-run-ui`) so device slot 86 applies the same console subobject numbering fallback as eager `CreatePipelineState`, normalizes tags when capturing `PsoStreamRecord` (unblocking slot 55 derivation and bind-time `resolve_type`), rejects unsupported stages/missing `VK_EXT_mesh_shader` up front, and adds on-demand CTest coverage for `d3d12_mesh_test` (follows up @thiefyzheng's finding #1608#issuecomment-7161103050; leaves `PipelineState::resolve_type` untouched to stay clear of #1695).
Author
Owner

@CodingRule commented on GitHub (Nov 25, 2026):

claiming: GPU-RTX4090 - first gpu-test-results/ record for an NVIDIA GeForce RTX 4090 (Ada / AD102, driver 591.86, Windows 11 26200): run_gpu_tests.py native and LEONIDA_W64_EMULATE=1 on main ed94fbef. One file, no game files. AI-assisted (Claude Code).

<!-- gh-comment-id:7161649089 --> @CodingRule commented on GitHub (Nov 25, 2026): claiming: GPU-RTX4090 - first `gpu-test-results/` record for an NVIDIA GeForce RTX 4090 (Ada / AD102, driver 591.86, Windows 11 26200): `run_gpu_tests.py` native and `LEONIDA_W64_EMULATE=1` on `main` `ed94fbef`. One file, no game files. AI-assisted (Claude Code).
Author
Owner

@CodingRule commented on GitHub (Nov 25, 2026):

done: GPU-RTX4090 -> #1777

main ed94fbef, RTX 4090, NVIDIA 591.86, Windows 11: 273/273 shaders; native 209/263 passed, 53 skipped, 1 failed; emulated 243/263, 19 skipped, 1 failed (cs_imgatomic_ext, which passes here with #1518 applied). AI-assisted (Claude Code).

<!-- gh-comment-id:7161656866 --> @CodingRule commented on GitHub (Nov 25, 2026): done: GPU-RTX4090 -> #1777 `main` `ed94fbef`, RTX 4090, NVIDIA 591.86, Windows 11: 273/273 shaders; native 209/263 passed, 53 skipped, 1 failed; emulated 243/263, 19 skipped, 1 failed (`cs_imgatomic_ext`, which passes here with #1518 applied). AI-assisted (Claude Code).
Author
Owner

@mcpeacebir-lang commented on GitHub (Nov 25, 2026):

done: HW-CNDMASK-SIGN-MODS - measured, no pull request. Claim: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7161589628

Result (RDNA3, gfx1101): VOP3 abs/neg on v_cndmask_b32_e64 are pure sign-bit moves. abs clears bit 31, and neg flips it after abs. A signalling NaN stays signalling, and a denormal is not flushed, under every ieee × denorm32 mode. This matches what the translator emits (Gen.src_u_sign_mods) and the "v_cndmask_b32 source modifiers" row of docs/design.md (line 424 on main 0d80bc5df).

Setup: AMD Radeon RX 7800 XT (gfx1101), AMD driver 32.0.32029.2010, Windows 11, tools/hw_oracle (amdhip64_7.dll, AMD clang from rocm-sdk-core==10.0.0), on main 0d80bc5df. Each kernel runs one lane and one instruction: v_cndmask_b32_e64 v3, <a>, <b>, s4 (wave64: s[4:5]). There is one kernel per wave × mode:

  • 15 words: ±0, ±min denormal (0x00000001/0x80000001), +max denormal 0x007fffff, +1.0, -2.0, +max normal, ±inf, +qNaN 0x7fc00000, -qNaN payload 1 0xffc00001, ±sNaN payload 1 (0x7f800001/0xff800001) and +sNaN 0x7fa00000.
  • Each word goes through v, -v, |v| and -|v|, as the selected src0 (condition 0) and as the selected src1 (condition all ones). The other operand is 0x12345678.
  • Modes: ieee 0/1 × denorm32 0/3, in wave32 and wave64.

Each kernel also stores four float ops as controls, to show its MODE is really in effect:

mode v_add_f32(0x00000001, 0) v_mul_f32(0x7f800001, 1.0) v_max_f32(0x7f800001, 1.0) v_mul_f32(-0x00000001, 1.0) v_cndmask_b32
ieee=0 denorm32=0 00000000 (flushed) 7f800001 3f800000 80000000 120/120 bit moves
ieee=0 denorm32=3 00000001 7f800001 3f800000 80000001 120/120 bit moves
ieee=1 denorm32=0 00000000 (flushed) 7fc00001 (quieted) 7fc00001 (quieted) 80000000 120/120 bit moves
ieee=1 denorm32=3 00000001 7fc00001 (quieted) 7fc00001 (quieted) 80000001 120/120 bit moves

wave32 and wave64 gave the same rows. The float ops flush and quiet exactly where the mode says they should, and v_cndmask_b32 does neither in any mode. Some sample results (src0; src1 is the same):

+sNaN payload 1  7f800001: v=7f800001 -v=ff800001 |v|=7f800001 -|v|=ff800001
-sNaN payload 1  ff800001: v=ff800001 -v=7f800001 |v|=7f800001 -|v|=ff800001
+min denormal    00000001: v=00000001 -v=80000001 |v|=00000001 -|v|=80000001
-0               80000000: v=80000000 -v=00000000 |v|=00000000 -|v|=80000000

Two side observations from the controls, both on gfx1101:

  • With ieee=0, v_mul_f32 passes an sNaN through unquieted (7f800001).
  • With ieee=0, v_max_f32(sNaN, 1.0) returns 1.0.

They are not part of this item.

What it means: the row could say "measured on RDNA3 (gfx1101)" in place of "Not measured on hardware for this instruction", with a link to this comment. I am not editing docs/design.md; that is for whoever owns the row.

Not measured: RDNA2 (no gfx103x card here), which the translator targets. VOP3 v_cndmask_b16 / v_cndmask_b32_sdwa / DPP forms were not tried. The probe is a ~110-line script outside the repository; I can post it if someone with a gfx103x card wants to repeat it. No game files.

AI-assisted (Claude Code, Claude Opus 5.5)

<!-- gh-comment-id:7161680445 --> @mcpeacebir-lang commented on GitHub (Nov 25, 2026): done: HW-CNDMASK-SIGN-MODS - measured, no pull request. Claim: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7161589628 **Result (RDNA3, gfx1101):** VOP3 `abs`/`neg` on `v_cndmask_b32_e64` are pure sign-bit moves. `abs` clears bit 31, and `neg` flips it after `abs`. A signalling NaN stays signalling, and a denormal is not flushed, under every `ieee` × `denorm32` mode. This matches what the translator emits (`Gen.src_u_sign_mods`) and the "`v_cndmask_b32` source modifiers" row of `docs/design.md` (line 424 on `main` `0d80bc5df`). **Setup:** AMD Radeon RX 7800 XT (gfx1101), AMD driver 32.0.32029.2010, Windows 11, `tools/hw_oracle` (`amdhip64_7.dll`, AMD clang from `rocm-sdk-core==10.0.0`), on `main` `0d80bc5df`. Each kernel runs one lane and one instruction: `v_cndmask_b32_e64 v3, <a>, <b>, s4` (wave64: `s[4:5]`). There is one kernel per wave × mode: - 15 words: ±0, ±min denormal (`0x00000001`/`0x80000001`), +max denormal `0x007fffff`, +1.0, -2.0, +max normal, ±inf, +qNaN `0x7fc00000`, -qNaN payload 1 `0xffc00001`, ±sNaN payload 1 (`0x7f800001`/`0xff800001`) and +sNaN `0x7fa00000`. - Each word goes through `v`, `-v`, `|v|` and `-|v|`, as the selected src0 (condition 0) and as the selected src1 (condition all ones). The other operand is `0x12345678`. - Modes: `ieee` 0/1 × `denorm32` 0/3, in wave32 and wave64. Each kernel also stores four float ops as controls, to show its MODE is really in effect: | mode | `v_add_f32(0x00000001, 0)` | `v_mul_f32(0x7f800001, 1.0)` | `v_max_f32(0x7f800001, 1.0)` | `v_mul_f32(-0x00000001, 1.0)` | `v_cndmask_b32` | |---|---|---|---|---|---| | ieee=0 denorm32=0 | `00000000` (flushed) | `7f800001` | `3f800000` | `80000000` | 120/120 bit moves | | ieee=0 denorm32=3 | `00000001` | `7f800001` | `3f800000` | `80000001` | 120/120 bit moves | | ieee=1 denorm32=0 | `00000000` (flushed) | `7fc00001` (quieted) | `7fc00001` (quieted) | `80000000` | 120/120 bit moves | | ieee=1 denorm32=3 | `00000001` | `7fc00001` (quieted) | `7fc00001` (quieted) | `80000001` | 120/120 bit moves | wave32 and wave64 gave the same rows. The float ops flush and quiet exactly where the mode says they should, and `v_cndmask_b32` does neither in any mode. Some sample results (src0; src1 is the same): ``` +sNaN payload 1 7f800001: v=7f800001 -v=ff800001 |v|=7f800001 -|v|=ff800001 -sNaN payload 1 ff800001: v=ff800001 -v=7f800001 |v|=7f800001 -|v|=ff800001 +min denormal 00000001: v=00000001 -v=80000001 |v|=00000001 -|v|=80000001 -0 80000000: v=80000000 -v=00000000 |v|=00000000 -|v|=80000000 ``` Two side observations from the controls, both on gfx1101: - With `ieee=0`, `v_mul_f32` passes an sNaN through unquieted (`7f800001`). - With `ieee=0`, `v_max_f32(sNaN, 1.0)` returns `1.0`. They are not part of this item. **What it means:** the row could say "measured on RDNA3 (gfx1101)" in place of "Not measured on hardware for this instruction", with a link to this comment. I am not editing `docs/design.md`; that is for whoever owns the row. **Not measured:** RDNA2 (no gfx103x card here), which the translator targets. VOP3 `v_cndmask_b16` / `v_cndmask_b32_sdwa` / DPP forms were not tried. The probe is a ~110-line script outside the repository; I can post it if someone with a gfx103x card wants to repeat it. No game files. AI-assisted (Claude Code, Claude Opus 5.5)
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

done: SHADER-DPP-NEG-BOUND-CTRL -> #1778

<!-- gh-comment-id:7161701033 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): done: SHADER-DPP-NEG-BOUND-CTRL -> #1778
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-ONDEMAND-CONSOLE-STREAM-ENUM -> #1779

<!-- gh-comment-id:7161717968 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: `RT-ONDEMAND-CONSOLE-STREAM-ENUM` -> #1779
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

claim: CF-REF-OPERAND-VALIDATION — tools/cf_ref.py (WaveMachine): validate exact mask operand widths (_read_mask/_write_mask), validate vector/compare operands even when EXEC == 0, reject abs/neg and multi-dword operands on integer/mask/export ops, check branch simm16 range/modifiers, and reject duplicate instruction PCs. (No game files, CPU-only.)

<!-- gh-comment-id:7161734635 --> @ShotTechOp commented on GitHub (Nov 25, 2026): claim: `CF-REF-OPERAND-VALIDATION` — `tools/cf_ref.py` (`WaveMachine`): validate exact mask operand widths (`_read_mask`/`_write_mask`), validate vector/compare operands even when `EXEC == 0`, reject `abs`/`neg` and multi-dword operands on integer/mask/export ops, check branch `simm16` range/modifiers, and reject duplicate instruction PCs. (No game files, CPU-only.)
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

withdrawing: RT-ONDEMAND-CONSOLE-STREAM-ENUM (#1779 closed) — @JesusACD claimed RT-ONDEMAND-CONSOLE-STREAM 73 s earlier (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7161618257); yielding to them.

<!-- gh-comment-id:7161736283 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): withdrawing: `RT-ONDEMAND-CONSOLE-STREAM-ENUM` (#1779 closed) — @JesusACD claimed `RT-ONDEMAND-CONSOLE-STREAM` 73 s earlier (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7161618257); yielding to them.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

done: CF-REF-OPERAND-VALIDATION (tools/cf_ref.py mask width validation, EXEC == 0 operand validation, integer/mask/export abs/neg & multi-dword rejection, branch simm16 range/modifier check, duplicate PC guard) -> #1780

<!-- gh-comment-id:7161774038 --> @ShotTechOp commented on GitHub (Nov 25, 2026): done: `CF-REF-OPERAND-VALIDATION` (`tools/cf_ref.py` mask width validation, `EXEC == 0` operand validation, integer/mask/export `abs`/`neg` & multi-dword rejection, branch `simm16` range/modifier check, duplicate PC guard) -> #1780
Author
Owner

@mcpeacebir-lang commented on GitHub (Nov 25, 2026):

claiming: TOOL-CNDMASK-HW-PROBE - follow-up to my HW-CNDMASK-SIGN-MODS result (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7161680445). That run used a script outside the repository, and the "v_cndmask_b32 source modifiers" row of docs/design.md (line 424 on main 0d80bc5df) still says "Not measured on hardware for this instruction".

One pull request:

  • a new tools/cndmask_hw_probe.py that repeats the measurement through tools/hw_oracle. It runs 15 words × v/-v/|v|/-|v| × src0/src1 on v_cndmask_b32_e64, under ieee 0/1 × denorm32 0/3, in wave32 and wave64. It adds float control ops that show each MODE is in effect, and reports each result as a bit move, a quieted sNaN or a flushed denormal. --json and --self-test follow ds_permute_probe.py and dpp_hw_probe.py (#1773). It exits 77 without the oracle. This lets someone with a gfx103x card measure RDNA2.
  • a CPU-only unit test, tests/test_cndmask_hw_probe.py.
  • the row edit: the instruction is measured as sign-bit moves on gfx1101 (RDNA3), with a link to the result. RDNA2 stays unmeasured, and the row names the tool for it.

No translator change. No game files. AI-assisted.

<!-- gh-comment-id:7161775786 --> @mcpeacebir-lang commented on GitHub (Nov 25, 2026): claiming: TOOL-CNDMASK-HW-PROBE - follow-up to my HW-CNDMASK-SIGN-MODS result (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7161680445). That run used a script outside the repository, and the "`v_cndmask_b32` source modifiers" row of `docs/design.md` (line 424 on `main` `0d80bc5df`) still says "Not measured on hardware for this instruction". One pull request: - a new `tools/cndmask_hw_probe.py` that repeats the measurement through `tools/hw_oracle`. It runs 15 words × `v`/`-v`/`|v|`/`-|v|` × src0/src1 on `v_cndmask_b32_e64`, under `ieee` 0/1 × `denorm32` 0/3, in wave32 and wave64. It adds float control ops that show each MODE is in effect, and reports each result as a bit move, a quieted sNaN or a flushed denormal. `--json` and `--self-test` follow `ds_permute_probe.py` and `dpp_hw_probe.py` (#1773). It exits 77 without the oracle. This lets someone with a gfx103x card measure RDNA2. - a CPU-only unit test, `tests/test_cndmask_hw_probe.py`. - the row edit: the instruction is measured as sign-bit moves on gfx1101 (RDNA3), with a link to the result. RDNA2 stays unmeasured, and the row names the tool for it. No translator change. No game files. AI-assisted.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

claim: DOC-SHADER-VAL-D16-MUTANTS — docs/shader_validation.md: document tools/d16_image_probe.py (image counterpart to tools/d16_format_probe.py) and tools/semantic_mutants.py (op-scoped mutation testing for tests/semantic) with verified CLI examples, flags, exit codes, and tests. (Docs-only, no game files.)

<!-- gh-comment-id:7161808658 --> @ShotTechOp commented on GitHub (Nov 25, 2026): claim: `DOC-SHADER-VAL-D16-MUTANTS` — `docs/shader_validation.md`: document `tools/d16_image_probe.py` (image counterpart to `tools/d16_format_probe.py`) and `tools/semantic_mutants.py` (op-scoped mutation testing for `tests/semantic`) with verified CLI examples, flags, exit codes, and tests. (Docs-only, no game files.)
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-QUEUE-HOLDS-PUMP-SAFETY — fix three concurrency/deadlock bugs in runtime/src/queue_holds.h (cross-queue Wait-before-Signal and Present barrier scheduler): (1) replace the non-SC dirty_ / try_to_lock handoff in pump_ready() with a mutex_-serialized pump_active_ + dirty_ state machine eliminating the Store-Load lost-wakeup race on weak memory models; (2) replace manual in_pump() = true/false with a zero-allocation RAII scope guard so exceptions in holders or barrier callbacks cannot wedge pump_ready() / remove_fence() permanently on that thread; (3) track re-entrancy per QueueHolds instance instead of a single process-wide thread_local bool. Add standalone portable runtime/test/queue_holds_test.cpp. No game files.

<!-- gh-comment-id:7161810177 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: `RT-QUEUE-HOLDS-PUMP-SAFETY` — fix three concurrency/deadlock bugs in `runtime/src/queue_holds.h` (cross-queue Wait-before-Signal and Present barrier scheduler): (1) replace the non-SC `dirty_` / `try_to_lock` handoff in `pump_ready()` with a `mutex_`-serialized `pump_active_` + `dirty_` state machine eliminating the Store-Load lost-wakeup race on weak memory models; (2) replace manual `in_pump() = true/false` with a zero-allocation RAII scope guard so exceptions in holders or barrier callbacks cannot wedge `pump_ready()` / `remove_fence()` permanently on that thread; (3) track re-entrancy per `QueueHolds` instance instead of a single process-wide `thread_local bool`. Add standalone portable `runtime/test/queue_holds_test.cpp`. No game files.
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

claiming: OLD-9836 - carry forward old-pr/9836 (draft #104, by noosko21-a11y): tests/docs: read an indented code block as code, not prose, rebased on main keeping the author's commit. AI-assisted.

<!-- gh-comment-id:7161825065 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): claiming: OLD-9836 - carry forward old-pr/9836 (draft #104, by noosko21-a11y): tests/docs: read an indented code block as code, not prose, rebased on main keeping the author's commit. AI-assisted.
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

done: OLD-9836 -> #1781

<!-- gh-comment-id:7161838096 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): done: OLD-9836 -> #1781
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

done: DOC-SHADER-VAL-D16-MUTANTS (docs/shader_validation.md document tools/d16_image_probe.py and tools/semantic_mutants.py) -> #1782

<!-- gh-comment-id:7161874052 --> @ShotTechOp commented on GitHub (Nov 25, 2026): done: `DOC-SHADER-VAL-D16-MUTANTS` (`docs/shader_validation.md` document `tools/d16_image_probe.py` and `tools/semantic_mutants.py`) -> #1782
Author
Owner

@BubsMcgee commented on GitHub (Nov 25, 2026):

released: INDIRECT-STATE-ARGS - #1620 closed as superseded. Main's ba626820e reworked CommandSignature/ExecuteIndirect (packed_size/terminal_only/graphics_writes, new compute replay, compound draws deferred via reset_indirect_graphics_bindings), so the PR's older argument_types/root_signature design no longer applies without a re-implementation.

Also: STREAM-OUTPUT stays claimed — #1630 is open and is now narrowed to the real SO_STATISTICS query pools only (StreamOutput PSOs still refused, SOSetTargets still not implemented). BL-2 is released (merged as #913).

finding: compound indirect draws still do not replay VERTEX_BUFFER_VIEW/INDEX_BUFFER_VIEW from the argument buffer. Where: the compound branch in runtime/shims/d3d12_com.cpp (ExecuteIndirect, resets bindings and skips) and the indirect replay in runtime/src/vulkan_replay.h. Why: a signature that carries state arguments binds nothing, so the draw reads stale/zero bindings. Needs a Vulkan device for the indirect tests; no game files.

<!-- gh-comment-id:7161889379 --> @BubsMcgee commented on GitHub (Nov 25, 2026): released: INDIRECT-STATE-ARGS - #1620 closed as superseded. Main's `ba626820e` reworked `CommandSignature`/`ExecuteIndirect` (`packed_size`/`terminal_only`/`graphics_writes`, new compute replay, compound draws deferred via `reset_indirect_graphics_bindings`), so the PR's older `argument_types`/`root_signature` design no longer applies without a re-implementation. Also: STREAM-OUTPUT stays claimed — #1630 is open and is now narrowed to the real `SO_STATISTICS` query pools only (StreamOutput PSOs still refused, `SOSetTargets` still not implemented). BL-2 is released (merged as #913). finding: compound indirect draws still do not replay `VERTEX_BUFFER_VIEW`/`INDEX_BUFFER_VIEW` from the argument buffer. Where: the compound branch in `runtime/shims/d3d12_com.cpp` (`ExecuteIndirect`, resets bindings and skips) and the indirect replay in `runtime/src/vulkan_replay.h`. Why: a signature that carries state arguments binds nothing, so the draw reads stale/zero bindings. Needs a Vulkan device for the indirect tests; no game files.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-QUEUE-HOLDS-PUMP-SAFETY -> #1783

<!-- gh-comment-id:7161906242 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: `RT-QUEUE-HOLDS-PUMP-SAFETY` -> #1783
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-TITLE-WINDOW-AND-ARENA-BOUNDS — harden boundary/overflow checks in the newly merged runtime/src/title_window_plan.h (va < lo returning a range excluding va causing unsigned underflow va - range.start in resolve_title_memory, std::clamp UB when most == 0, UINT64_MAX - want - align underflow, non-power-of-two align, and title_pool_extent rounding an unreadable readable_end <= va up past va or exceeding most) and runtime/src/arena_blocks.h (align_up wraparound / non-advancing keep_out_end <= start infinite loop in allocate(), and consistent() underflow/overflow). Extend runtime/test/arena_blocks_test.cpp and add portable runtime/test/title_window_plan_bounds_test.cpp. No game files.

<!-- gh-comment-id:7161907524 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: `RT-TITLE-WINDOW-AND-ARENA-BOUNDS` — harden boundary/overflow checks in the newly merged `runtime/src/title_window_plan.h` (`va < lo` returning a range excluding `va` causing unsigned underflow `va - range.start` in `resolve_title_memory`, `std::clamp` UB when `most == 0`, `UINT64_MAX - want - align` underflow, non-power-of-two `align`, and `title_pool_extent` rounding an unreadable `readable_end <= va` up past `va` or exceeding `most`) and `runtime/src/arena_blocks.h` (`align_up` wraparound / non-advancing `keep_out_end <= start` infinite loop in `allocate()`, and `consistent()` underflow/overflow). Extend `runtime/test/arena_blocks_test.cpp` and add portable `runtime/test/title_window_plan_bounds_test.cpp`. No game files.
Author
Owner

@ImLele69 commented on GitHub (Nov 25, 2026):

@QemmHD run B: the device was still lost, it did not run on. With #429 the "not replayed yet" line was gone (the DISPATCH_MESH ExecuteIndirect was recorded and replayed), and the loss came at about the same point, 36,355 registered images.

  • First seen as VK_ERROR_DEVICE_LOST from vkDeviceWaitIdle in the title texture upload (in runs A and C it was the fence dispatcher's vkWaitSemaphores).
  • No address[] entries at all, vendor binary 0 bytes, empty description. So no type 2 or type 6 entry to compare in that run.
  • Five queues with checkpoints, all compute dispatches at both stages (0x1 and 0x2000): lib_cs_01728 (list 1, command 69), lib_cs_01468 (two queues, command 16), lib_cs_02229 (command 38), lib_cs_00927 (commands 213/214). I did not log the direct queue's checkpoint line in that run's summary; I can look for it if it helps.
  • The frame was still black with the world screen's UI on top, as without #429.

For your A/B: #429 no longer merges cleanly on main 0d80bc5df (conflicts in src/command_list.h and src/vulkan_replay.h after #1723). I'm running 0d80bc5df plus one local fix now, without #429, and will add what it shows here if it differs from the runs above.

AI-assisted (Claude Code).

<!-- gh-comment-id:7161913417 --> @ImLele69 commented on GitHub (Nov 25, 2026): @QemmHD run B: the device was still lost, it did not run on. With #429 the "not replayed yet" line was gone (the DISPATCH_MESH `ExecuteIndirect` was recorded and replayed), and the loss came at about the same point, 36,355 registered images. - First seen as `VK_ERROR_DEVICE_LOST` from `vkDeviceWaitIdle` in the title texture upload (in runs A and C it was the fence dispatcher's `vkWaitSemaphores`). - No `address[]` entries at all, vendor binary 0 bytes, empty description. So no type 2 or type 6 entry to compare in that run. - Five queues with checkpoints, all compute dispatches at both stages (0x1 and 0x2000): `lib_cs_01728` (list 1, command 69), `lib_cs_01468` (two queues, command 16), `lib_cs_02229` (command 38), `lib_cs_00927` (commands 213/214). I did not log the direct queue's checkpoint line in that run's summary; I can look for it if it helps. - The frame was still black with the world screen's UI on top, as without #429. For your A/B: #429 no longer merges cleanly on `main` `0d80bc5df` (conflicts in `src/command_list.h` and `src/vulkan_replay.h` after #1723). I'm running `0d80bc5df` plus one local fix now, without #429, and will add what it shows here if it differs from the runs above. AI-assisted (Claude Code).
Author
Owner

@mcpeacebir-lang commented on GitHub (Nov 25, 2026):

done: TOOL-CNDMASK-HW-PROBE -> #1784

<!-- gh-comment-id:7161928807 --> @mcpeacebir-lang commented on GitHub (Nov 25, 2026): done: TOOL-CNDMASK-HW-PROBE -> #1784
Author
Owner

@DadaCap commented on GitHub (Nov 25, 2026):

finding: on a boot that ends in a crash the session pipeline cache is never written, so every run compiles the world start again; and the first world frame is one frame of 83 to 188 s of pipeline builds, with the WRITE_INVALID loss right after it. Follow-up to my stall finding above (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157762911).

Where: runtime/shims/d3d12_vulkan_device.cpp: next_checkpoint{GetTickCount64() + 120000}, PipelineState::maybe_checkpoint, save_session_pipeline_cache; runtime/shims/d3d12_pipeline_compile.h: PipelineCompiler::has_compile_waiter.

Setup: Windows 11, RTX 5080, NVIDIA 621.24; main 237deb64c + #1558 + #1631 + #1662 + #674 + #1694 + #1705; LEONIDA_DEVICE_TYPE=6 LEONIDA_FRAME_PACING=1 LEONIDA_ARENA_MB=2048 LEONIDA_TITLE_WATCHDOG=0 LEONIDA_STARTUP_CACHE_CHECKPOINTS=1 LEONIDA_TRACE_PIPELINE_COMPILE=1. Hits are the runtime's own pipeline-compile ... hit= lines.

1. A checkpoint never saves before a crash. Three things, each seen in a run:

  • The first one is due 120 s after the device is made, which here is the middle of the world-start builds.
  • It is queued at priority SIZE_MAX, behind every speculative warm-up build (about 900 here): in a 140 s run it was not tried once.
  • When it is tried, has_compile_waiter() is true for any queued job that is not a checkpoint, warm-up builds included, and active_compiles is non-zero while any thread builds; either skips it, and the next try is 120 s later. With the first two changed locally: 19 and 22 tries in two 150 s runs, all skipped.

2. Waiting for an idle moment buys nothing at these sizes. The runtime's own pipeline-cache op=checkpoint lines: 22 MiB in fill_us=7349 publish_us=2324, 77 MiB in fill_us=27686 publish_us=8216, query_us 0 or 1.

3. With the checkpoint changed in a local experiment (first at 30 s, queued ahead of the speculative builds, yielding only to a queued build that something waits for, again 30 s after a save and 5 s after a busy one; everything else as upstream):

run cache loaded builds found in the cache
upstream timing none (nothing was ever written) 35 of 901
first with the change none 35 of 892; 1 save, 14 MiB
second 14 MiB 617 of 941
third 18 MiB 714 of 989
fourth 22 MiB 781 of 1,009

One thing to know when comparing runs: with LEONIDA_DEVICE_FAULT=1 none of the entries written without it hit (35 of 873), and the reverse will hold too. A cache serves the runs made with the same diagnostic switches.

4. The first world frame, from a per-frame count kept locally (time between two PresentX, and what the title recorded in between): up to the world start a frame has 1 to 9 draws, no ExecuteIndirect, 1 to 5 dispatches and 2 ExecuteCommandLists. Then one frame:

run frame time draws ExecuteIndirect dispatches ExecuteCommandLists pipelines built in it
cache without the world start 83.0 s 112 11,429 1,280 37 120, 90.7 s
next run, 77 MiB loaded 188.0 s 106 11,436 1,729 38 106, 189.5 s
third run, 112 MiB loaded (1,016 of 1,107 builds found in it) 45.3 s 112 11,401 1,396 38 87, 45.8 s

The second run got further into that frame: 54 builds over 1 s against 23, only 6 of them the same programs (new ones: two ped_skinning_cs_CS_PedStandardSkinning programs at 26 s and 19 s, lib_cs_01047, 01055, 01056, 01050). In all three runs the device is lost on the type 2 (write) fault within seconds of that frame ending, at about 172 s, 280 s and 130 s. So the known WRITE_INVALID stop is at the end of the first world frame, wherever the compiles put that.

5. For PIPELINE-SEED-LIBRARY (@CLHelper): vk_pipeline_check <spirv>\library <cache> --stage cs works for itself (ten world-start programs: 3.9 s, then 0.1 s with 10 hits reported), but the runtime found only 4 of 8 of those programs in that file: lib_cs_01406 built in 12 ms with hit=1, while lib_cs_01405 (3.0 s), lib_cs_01411 (1.2 s) and lib_cs_01422 (1.7 s) had hit=0. So the tool does not create every library pipeline the way the runtime does; I did not look at which part of the create info differs. Counting hit= with LEONIDA_TRACE_PIPELINE_COMPILE=1 shows it in one run.

Why it matters: until the runtime's own builds are saved during a run, every tester pays the first world frame's compiles on every boot, and a fix for the write fault will be judged through minutes of them.

Needs: game files. Counts, timings and program names only; no game data. AI-assisted (Claude Code).

<!-- gh-comment-id:7161936928 --> @DadaCap commented on GitHub (Nov 25, 2026): finding: on a boot that ends in a crash the session pipeline cache is never written, so every run compiles the world start again; and the first world frame is one frame of 83 to 188 s of pipeline builds, with the WRITE_INVALID loss right after it. Follow-up to my stall finding above (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157762911). **Where:** `runtime/shims/d3d12_vulkan_device.cpp`: `next_checkpoint{GetTickCount64() + 120000}`, `PipelineState::maybe_checkpoint`, `save_session_pipeline_cache`; `runtime/shims/d3d12_pipeline_compile.h`: `PipelineCompiler::has_compile_waiter`. **Setup:** Windows 11, RTX 5080, NVIDIA 621.24; `main` 237deb64c + #1558 + #1631 + #1662 + #674 + #1694 + #1705; `LEONIDA_DEVICE_TYPE=6 LEONIDA_FRAME_PACING=1 LEONIDA_ARENA_MB=2048 LEONIDA_TITLE_WATCHDOG=0 LEONIDA_STARTUP_CACHE_CHECKPOINTS=1 LEONIDA_TRACE_PIPELINE_COMPILE=1`. Hits are the runtime's own `pipeline-compile ... hit=` lines. **1. A checkpoint never saves before a crash.** Three things, each seen in a run: - The first one is due 120 s after the device is made, which here is the middle of the world-start builds. - It is queued at priority `SIZE_MAX`, behind every speculative warm-up build (about 900 here): in a 140 s run it was not tried once. - When it is tried, `has_compile_waiter()` is true for any queued job that is not a checkpoint, warm-up builds included, and `active_compiles` is non-zero while any thread builds; either skips it, and the next try is 120 s later. With the first two changed locally: 19 and 22 tries in two 150 s runs, all skipped. **2. Waiting for an idle moment buys nothing at these sizes.** The runtime's own `pipeline-cache op=checkpoint` lines: 22 MiB in `fill_us=7349 publish_us=2324`, 77 MiB in `fill_us=27686 publish_us=8216`, `query_us` 0 or 1. **3. With the checkpoint changed in a local experiment** (first at 30 s, queued ahead of the speculative builds, yielding only to a queued build that something waits for, again 30 s after a save and 5 s after a busy one; everything else as upstream): | run | cache loaded | builds found in the cache | |---|---|---| | upstream timing | none (nothing was ever written) | 35 of 901 | | first with the change | none | 35 of 892; 1 save, 14 MiB | | second | 14 MiB | 617 of 941 | | third | 18 MiB | 714 of 989 | | fourth | 22 MiB | 781 of 1,009 | One thing to know when comparing runs: with `LEONIDA_DEVICE_FAULT=1` none of the entries written without it hit (35 of 873), and the reverse will hold too. A cache serves the runs made with the same diagnostic switches. **4. The first world frame, from a per-frame count kept locally** (time between two `PresentX`, and what the title recorded in between): up to the world start a frame has 1 to 9 draws, no `ExecuteIndirect`, 1 to 5 dispatches and 2 `ExecuteCommandLists`. Then one frame: | run | frame time | draws | `ExecuteIndirect` | dispatches | `ExecuteCommandLists` | pipelines built in it | |---|---|---|---|---|---|---| | cache without the world start | 83.0 s | 112 | 11,429 | 1,280 | 37 | 120, 90.7 s | | next run, 77 MiB loaded | 188.0 s | 106 | 11,436 | 1,729 | 38 | 106, 189.5 s | | third run, 112 MiB loaded (1,016 of 1,107 builds found in it) | 45.3 s | 112 | 11,401 | 1,396 | 38 | 87, 45.8 s | The second run got further into that frame: 54 builds over 1 s against 23, only 6 of them the same programs (new ones: two `ped_skinning_cs_CS_PedStandardSkinning` programs at 26 s and 19 s, `lib_cs_01047`, `01055`, `01056`, `01050`). In all three runs the device is lost on the type 2 (write) fault within seconds of that frame ending, at about 172 s, 280 s and 130 s. So the known WRITE_INVALID stop is at the end of the first world frame, wherever the compiles put that. **5. For PIPELINE-SEED-LIBRARY (@CLHelper):** `vk_pipeline_check <spirv>\library <cache> --stage cs` works for itself (ten world-start programs: 3.9 s, then 0.1 s with 10 hits reported), but the runtime found only 4 of 8 of those programs in that file: `lib_cs_01406` built in 12 ms with `hit=1`, while `lib_cs_01405` (3.0 s), `lib_cs_01411` (1.2 s) and `lib_cs_01422` (1.7 s) had `hit=0`. So the tool does not create every library pipeline the way the runtime does; I did not look at which part of the create info differs. Counting `hit=` with `LEONIDA_TRACE_PIPELINE_COMPILE=1` shows it in one run. **Why it matters:** until the runtime's own builds are saved during a run, every tester pays the first world frame's compiles on every boot, and a fix for the write fault will be judged through minutes of them. **Needs:** game files. Counts, timings and program names only; no game data. AI-assisted (Claude Code).
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

claiming: OLD-10007 - carry forward old-pr/10007 (draft #276, by Louka Ayari-Pignel): docs/i18n: it, ja, pl-PL quickstarts no longer promise a faster first boot from the pipeline cache, rebased on main keeping the author's commits. AI-assisted.

<!-- gh-comment-id:7161952143 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): claiming: OLD-10007 - carry forward old-pr/10007 (draft #276, by Louka Ayari-Pignel): docs/i18n: it, ja, pl-PL quickstarts no longer promise a faster first boot from the pipeline cache, rebased on main keeping the author's commits. AI-assisted.
Author
Owner

@QemmHD commented on GitHub (Nov 25, 2026):

@ImLele69 thanks, clear: #429 changes how the loss is reported (no fault address), not whether it happens. So the mesh ExecuteIndirect isn't the cause. Noted that it conflicts on 0d80bc5df after #1723; I'll skip it in my A/B. Next on the 4070 SUPER: the new main with the diagnostics that mark the layer's own writes and print the fault address's owner, then two bisection switches (skip the BVH build and ray dispatches at world entry; robustBufferAccess2 + nullDescriptor). I'll post the results.

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

<!-- gh-comment-id:7161957412 --> @QemmHD commented on GitHub (Nov 25, 2026): @ImLele69 thanks, clear: #429 changes how the loss is reported (no fault address), not whether it happens. So the mesh ExecuteIndirect isn't the cause. Noted that it conflicts on 0d80bc5df after #1723; I'll skip it in my A/B. Next on the 4070 SUPER: the new main with the diagnostics that mark the layer's own writes and print the fault address's owner, then two bisection switches (skip the BVH build and ray dispatches at world entry; robustBufferAccess2 + nullDescriptor). I'll post the results. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

claiming: OLD-9988 - carry forward old-pr/9988 (draft #257, by Jake Reddy): add 14 missing function return type annotations in make_game.py, rebased on main keeping the author's commits. AI-assisted.

<!-- gh-comment-id:7161978345 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): claiming: OLD-9988 - carry forward old-pr/9988 (draft #257, by Jake Reddy): add 14 missing function return type annotations in make_game.py, rebased on main keeping the author's commits. AI-assisted.
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

done: OLD-10007 -> #1786

<!-- gh-comment-id:7161984916 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): done: OLD-10007 -> #1786
Author
Owner

@mcpeacebir-lang commented on GitHub (Nov 25, 2026):

claiming: HW-VALU-LITERAL64-EXT - the open point of the "32-bit literal source of a signed 64-bit vector op" row of docs/design.md (line 397 on main 0d80bc5df). The row says "Not measured on hardware". The translator sign-extends a 32-bit VALU literal in an i64 operand (v_cmp(x)_*_i64, v_ashrrev_i64 S1, v_mad_i64_i32 S2) and zero-extends it in a u64/b64 operand (v_cmp_*_u64, v_lshlrev_b64/v_lshrrev_b64, v_mad_u64_u32 S2) (Gen.valu_imm_i64, SHADER-VALU-LITERAL-SEXT). Those are LLVM's assembler rules; what the hardware does with the high dword is not measured.

I will run these ops natively through tools/hw_oracle on an AMD Radeon RX 7800 XT (RDNA3, gfx1101, Windows 11):

  • the literals 0xffffff9c (-100), 0x80000000 and 0x7fffffff, as src0 and as src1 where the encoding allows it;
  • v_cmp_lt/gt_{i64,u64} in e32 and e64 form, v_cmpx_*_i64, v_ashrrev_i64, v_lshlrev_b64, v_lshrrev_b64, v_mad_i64_i32 and v_mad_u64_u32;
  • wave32 and wave64.

I will compare every result with the two models (the high dword sign-extended or zero-extended), and post which one the hardware follows for each op here. If it agrees with the row, a pull request turns the run into a tool and updates the row (like TOOL-CNDMASK-HW-PROBE, #1784). If it does not, I will post it as a finding. RDNA3, not RDNA2. No game files. AI-assisted.

<!-- gh-comment-id:7162001706 --> @mcpeacebir-lang commented on GitHub (Nov 25, 2026): claiming: HW-VALU-LITERAL64-EXT - the open point of the "32-bit literal source of a signed 64-bit vector op" row of `docs/design.md` (line 397 on `main` `0d80bc5df`). The row says "Not measured on hardware". The translator sign-extends a 32-bit VALU literal in an i64 operand (`v_cmp(x)_*_i64`, `v_ashrrev_i64` S1, `v_mad_i64_i32` S2) and zero-extends it in a u64/b64 operand (`v_cmp_*_u64`, `v_lshlrev_b64`/`v_lshrrev_b64`, `v_mad_u64_u32` S2) (`Gen.valu_imm_i64`, SHADER-VALU-LITERAL-SEXT). Those are LLVM's assembler rules; what the hardware does with the high dword is not measured. I will run these ops natively through `tools/hw_oracle` on an AMD Radeon RX 7800 XT (RDNA3, gfx1101, Windows 11): - the literals `0xffffff9c` (-100), `0x80000000` and `0x7fffffff`, as src0 and as src1 where the encoding allows it; - `v_cmp_lt/gt_{i64,u64}` in e32 and e64 form, `v_cmpx_*_i64`, `v_ashrrev_i64`, `v_lshlrev_b64`, `v_lshrrev_b64`, `v_mad_i64_i32` and `v_mad_u64_u32`; - wave32 and wave64. I will compare every result with the two models (the high dword sign-extended or zero-extended), and post which one the hardware follows for each op here. If it agrees with the row, a pull request turns the run into a tool and updates the row (like TOOL-CNDMASK-HW-PROBE, #1784). If it does not, I will post it as a finding. RDNA3, not RDNA2. No game files. AI-assisted.
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

done: OLD-9988 -> #1787

<!-- gh-comment-id:7162002610 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): done: OLD-9988 -> #1787
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-TITLE-WINDOW-AND-ARENA-BOUNDS -> #1785

<!-- gh-comment-id:7162004764 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: `RT-TITLE-WINDOW-AND-ARENA-BOUNDS` -> #1785
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-GPU-LABEL-MEMORY-EXPAND — fix leonida::label::Memory::track() in runtime/src/gpu_label_memory.h so growing a tracked non-heap region at the same base and allocation_base updates Region::end in place instead of overwriting regions_[base] with a new shared_ptr (which invalidated and silently dropped in-flight GPU completion value writes for that region). Add portable unit test runtime/test/gpu_label_memory_test.cpp. No game files.

<!-- gh-comment-id:7162005947 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: `RT-GPU-LABEL-MEMORY-EXPAND` — fix `leonida::label::Memory::track()` in `runtime/src/gpu_label_memory.h` so growing a tracked non-heap region at the same `base` and `allocation_base` updates `Region::end` in place instead of overwriting `regions_[base]` with a new `shared_ptr` (which invalidated and silently dropped in-flight GPU completion value writes for that region). Add portable unit test `runtime/test/gpu_label_memory_test.cpp`. No game files.
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claiming: STAGE-TIMELINE-STDOUT-GUARD-AND-PARSER-SAFETY - add stdout encoding guard, OSError/BOM handling, tighter timestamp/hex parsing, and game-state gating for story-load completion in tools/stage_timeline.py with regression tests. AI-assisted.

<!-- gh-comment-id:7162011238 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claiming: STAGE-TIMELINE-STDOUT-GUARD-AND-PARSER-SAFETY - add stdout encoding guard, OSError/BOM handling, tighter timestamp/hex parsing, and game-state gating for story-load completion in tools/stage_timeline.py with regression tests. AI-assisted.
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

claiming: USER-SGPR-CENSUS-MS-TECHNIQUE -- tools/user_sgpr_census.py: support MS stage techniques and pairing with PS

<!-- gh-comment-id:7162037146 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): claiming: USER-SGPR-CENSUS-MS-TECHNIQUE -- tools/user_sgpr_census.py: support MS stage techniques and pairing with PS
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-GPU-LABEL-MEMORY-EXPAND -> #1788

<!-- gh-comment-id:7162050455 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: `RT-GPU-LABEL-MEMORY-EXPAND` -> #1788
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: STAGE-TIMELINE-STDOUT-GUARD-AND-PARSER-SAFETY -> #1789

<!-- gh-comment-id:7162051397 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: STAGE-TIMELINE-STDOUT-GUARD-AND-PARSER-SAFETY -> #1789
Author
Owner

@Coderlord commented on GitHub (Nov 25, 2026):

claiming: BOOT-PAD-FOCUS - scripts/windows-boot/boot.ps1 sets LEONIDA_KEYBOARD_PAD=always with an input script, which lets the machine's own keyboard and mouse into unattended boots from any window (seen on a native RTX 5080 boot: the user's mouse and Backspace sent the first-run pages back). Scripted presses run in focus mode too (docs/gameinput.md), so the harness can use LEONIDA_KEYBOARD_PAD=1. PR follows.

<!-- gh-comment-id:7162053010 --> @Coderlord commented on GitHub (Nov 25, 2026): claiming: BOOT-PAD-FOCUS - scripts/windows-boot/boot.ps1 sets LEONIDA_KEYBOARD_PAD=always with an input script, which lets the machine's own keyboard and mouse into unattended boots from any window (seen on a native RTX 5080 boot: the user's mouse and Backspace sent the first-run pages back). Scripted presses run in focus mode too (docs/gameinput.md), so the harness can use LEONIDA_KEYBOARD_PAD=1. PR follows.
Author
Owner

@mcpeacebir-lang commented on GitHub (Nov 25, 2026):

result: HW-VALU-LITERAL64-EXT - measured; it agrees with the row. Claim: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7162001706

Result (RDNA3, gfx1101): a 32-bit VALU literal in a 64-bit integer operand is extended according to the operand type, exactly as the "32-bit literal source of a signed 64-bit vector op" row of docs/design.md (line 397 on main 0d80bc5df) and Gen.valu_imm_i64 say:

  • Sign-extended in an i64 operand: v_cmp_{lt,gt}_i64 (e32 and e64, literal as src0 and as src1), v_cmpx_{lt,gt}_i64, v_ashrrev_i64 S1 and v_mad_i64_i32 S2.
  • Zero-extended in a u64/b64 operand: v_cmp_{lt,gt}_u64 (same forms), v_cmpx_{lt,gt}_u64, v_lshrrev_b64 S1, v_lshlrev_b64 S1 and v_mad_u64_u32 S2.

The encoded literal bytes are the same for every op (0xffffff9c is one dword after the instruction, as llvm-mc prints it for gfx1030 and gfx1101). So the extension is the hardware's per-operand choice, not the assembler's.

Setup: AMD Radeon RX 7800 XT (gfx1101), AMD driver 32.0.32029.2010, Windows 11, tools/hw_oracle (amdhip64_7.dll, AMD clang from rocm-sdk-core==10.0.0), on main 0d80bc5df. Each kernel runs one lane; there is one kernel for wave32 and one for wave64.

  • 21 op forms × the literals 0xffffff9c (-100), 0x80000000 and 0x7fffffff. The last one is a control: both models give the same result for it.
  • The VGPR operand is chosen so the two models differ: 0 for the signed compares and 0x1_00000000 for the unsigned ones. Each result is stored as (lo, hi).

Counts: 126 results (63 per wave size). wave32 and wave64 are identical.

  • 84 results with differing models: 40 match only sign-extension (all i64 operands) and 44 match only zero-extension (all u64/b64 operands).
  • The 42 control results match both models.
  • 0 results match neither.

Some sample results:

v_cmp_lt_i64_e64  0xffffff9c < v[2:3] = 0            -> 1   (sext: -100 < 0)
v_cmp_lt_u64_e64  v[2:3] = 0x1_00000000 < 0xffffff9c -> 0   (zext: 2^32 < 0xffffff9c is false)
v_ashrrev_i64 4, 0xffffff9c                          -> 0xfffffffffffffff9
v_lshrrev_b64 4, 0xffffff9c                          -> 0x000000000ffffff9
v_lshlrev_b64 4, 0x80000000                          -> 0x0000000800000000
v_mad_i64_i32 1, 1, 0x80000000                       -> 0xffffffff80000001
v_mad_u64_u32 1, 1, 0x80000000                       -> 0x0000000080000001

What it means: the translator's rule matches RDNA3 hardware for these ops. As the claim said, I will open a pull request that turns this run into a tool (tools/valu_literal64_probe.py, CPU-only test) and adds the gfx1101 measurement to the row. RDNA2 stays unmeasured there.

Not measured: RDNA2 (no gfx103x card here). The other 64-bit compares (v_cmp_{eq,ne,le,ge}_*64) were not tried, and neither was a literal combined with an SGPR source. No game files.

AI-assisted (Claude Code, Claude Opus 5.5)

<!-- gh-comment-id:7162059499 --> @mcpeacebir-lang commented on GitHub (Nov 25, 2026): result: HW-VALU-LITERAL64-EXT - measured; it agrees with the row. Claim: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7162001706 **Result (RDNA3, gfx1101):** a 32-bit VALU literal in a 64-bit integer operand is extended according to the operand type, exactly as the "32-bit literal source of a signed 64-bit vector op" row of `docs/design.md` (line 397 on `main` `0d80bc5df`) and `Gen.valu_imm_i64` say: - **Sign-extended** in an i64 operand: `v_cmp_{lt,gt}_i64` (e32 and e64, literal as src0 and as src1), `v_cmpx_{lt,gt}_i64`, `v_ashrrev_i64` S1 and `v_mad_i64_i32` S2. - **Zero-extended** in a u64/b64 operand: `v_cmp_{lt,gt}_u64` (same forms), `v_cmpx_{lt,gt}_u64`, `v_lshrrev_b64` S1, `v_lshlrev_b64` S1 and `v_mad_u64_u32` S2. The encoded literal bytes are the same for every op (`0xffffff9c` is one dword after the instruction, as llvm-mc prints it for gfx1030 and gfx1101). So the extension is the hardware's per-operand choice, not the assembler's. **Setup:** AMD Radeon RX 7800 XT (gfx1101), AMD driver 32.0.32029.2010, Windows 11, `tools/hw_oracle` (`amdhip64_7.dll`, AMD clang from `rocm-sdk-core==10.0.0`), on `main` `0d80bc5df`. Each kernel runs one lane; there is one kernel for wave32 and one for wave64. - 21 op forms × the literals `0xffffff9c` (-100), `0x80000000` and `0x7fffffff`. The last one is a control: both models give the same result for it. - The VGPR operand is chosen so the two models differ: 0 for the signed compares and `0x1_00000000` for the unsigned ones. Each result is stored as (lo, hi). **Counts:** 126 results (63 per wave size). wave32 and wave64 are identical. - 84 results with differing models: 40 match only sign-extension (all i64 operands) and 44 match only zero-extension (all u64/b64 operands). - The 42 control results match both models. - 0 results match neither. Some sample results: ``` v_cmp_lt_i64_e64 0xffffff9c < v[2:3] = 0 -> 1 (sext: -100 < 0) v_cmp_lt_u64_e64 v[2:3] = 0x1_00000000 < 0xffffff9c -> 0 (zext: 2^32 < 0xffffff9c is false) v_ashrrev_i64 4, 0xffffff9c -> 0xfffffffffffffff9 v_lshrrev_b64 4, 0xffffff9c -> 0x000000000ffffff9 v_lshlrev_b64 4, 0x80000000 -> 0x0000000800000000 v_mad_i64_i32 1, 1, 0x80000000 -> 0xffffffff80000001 v_mad_u64_u32 1, 1, 0x80000000 -> 0x0000000080000001 ``` **What it means:** the translator's rule matches RDNA3 hardware for these ops. As the claim said, I will open a pull request that turns this run into a tool (`tools/valu_literal64_probe.py`, CPU-only test) and adds the gfx1101 measurement to the row. RDNA2 stays unmeasured there. **Not measured:** RDNA2 (no gfx103x card here). The other 64-bit compares (`v_cmp_{eq,ne,le,ge}_*64`) were not tried, and neither was a literal combined with an SGPR source. No game files. AI-assisted (Claude Code, Claude Opus 5.5)
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claiming: PS-HELPER-PROBE-EMPTY-COVERAGE-AND-ATOMIC-JSON - handle zero covered pixels safely in analyze() and validate/atomically write --json output in tools/ps_helper_probe.py. AI-assisted.

<!-- gh-comment-id:7162059721 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claiming: PS-HELPER-PROBE-EMPTY-COVERAGE-AND-ATOMIC-JSON - handle zero covered pixels safely in analyze() and validate/atomically write --json output in tools/ps_helper_probe.py. AI-assisted.
Author
Owner

@Coderlord commented on GitHub (Nov 25, 2026):

done: BOOT-PAD-FOCUS -> #1790

<!-- gh-comment-id:7162064954 --> @Coderlord commented on GitHub (Nov 25, 2026): done: BOOT-PAD-FOCUS -> #1790
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

claiming: OLD-9862 - carry forward old-pr/9862 (draft #130, by Salim Hammami): tests: reject identical fenced blocks that are back to back in docs/, rebased on main keeping the author's commits. AI-assisted.

<!-- gh-comment-id:7162072809 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): claiming: OLD-9862 - carry forward old-pr/9862 (draft #130, by Salim Hammami): tests: reject identical fenced blocks that are back to back in docs/, rebased on main keeping the author's commits. AI-assisted.
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

done: OLD-9862 -> #1791

<!-- gh-comment-id:7162081822 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): done: OLD-9862 -> #1791
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

claiming: OLD-9861 - carry forward old-pr/9861 (draft #128, by Salim Hammami): tools: print the plain path, not a repr'd one, in OSError messages, rebased on main keeping the author's commit. AI-assisted.

<!-- gh-comment-id:7162083041 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): claiming: OLD-9861 - carry forward old-pr/9861 (draft #128, by Salim Hammami): tools: print the plain path, not a repr'd one, in OSError messages, rebased on main keeping the author's commit. AI-assisted.
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

done: OLD-9861 -> #1792

<!-- gh-comment-id:7162095466 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): done: OLD-9861 -> #1792
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

claiming: OLD-10038 - carry forward old-pr/10038 (draft #304, by Igor Borges): docs: correct the retail XMem shim status, rebased on main keeping the author's commit. AI-assisted.

<!-- gh-comment-id:7162096779 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): claiming: OLD-10038 - carry forward old-pr/10038 (draft #304, by Igor Borges): docs: correct the retail XMem shim status, rebased on main keeping the author's commit. AI-assisted.
Author
Owner

@QemmHD commented on GitHub (Nov 25, 2026):

finding (preliminary, n=1 each; repeats running): not using VK_EXT_host_image_copy removes the world-start WRITE_INVALID here. Setup: RTX 4070 SUPER, Windows 11, the same build in both runs, one local change: info.host_image_copy = false (d3d12_vulkan_device.cpp, where the feature is queried), so every WriteToSubresource/ReadFromSubresource goes through a staging submit.

host image copy ON (main) OFF
end WRITE_INVALID device loss no device loss; still running at the 481 s limit
ExecuteCommandLists 6,570 29,726
Dispatch / DrawIndexedInstanced 3,207 / 7,207 6,965 / 49,019
PresentX ok 1,600 7,431 (0 failed)

Why it fits all the evidence so far:

  • A host image copy has no command buffer, so there's no checkpoint marker. That's why the direct queue never showed one.
  • It's done by a driver routine, which explains the constant type-6 entry.
  • It isn't a shader store, which explains why the store trace was empty.
  • A size watch over the whole boot found exactly one object of 1,835,008 bytes: a 448-page VkDeviceMemory of memory type 1 (not an import). That matches my fault offsets, the last 4 KiB of a 448-page span. (@ImLele69 your 0x1fe000/0x1ff000 offsets would be a different image size; worth checking whether your memory types differ.)
  • The fault address is far from every buffer device address (the nearest tracked one is about 1.8 TiB away). That fits a driver-side mapping rather than a normal GPU allocation.

Not yet established: which image sits on that memory, and whether this is a driver bug or a usage error (e.g. a host copy racing GPU work on the same image, or a layout or size mismatch).

It's cheap to reproduce: set info.host_image_copy = false and boot. @Tyrannys @OreoFR @Undefined3301 @kurrutako @ImLele69 a run each on your machines would settle it quickly. With staging copies the load is slower here (session reached the load at about 190 s instead of about 100 s), and at 481 s it was still on the loading artwork, so a longer run is going now to see what's next.

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

<!-- gh-comment-id:7162097442 --> @QemmHD commented on GitHub (Nov 25, 2026): finding (preliminary, n=1 each; repeats running): **not using `VK_EXT_host_image_copy` removes the world-start WRITE_INVALID here.** Setup: RTX 4070 SUPER, Windows 11, the same build in both runs, one local change: `info.host_image_copy = false` (d3d12_vulkan_device.cpp, where the feature is queried), so every WriteToSubresource/ReadFromSubresource goes through a staging submit. | | host image copy ON (main) | OFF | |---|---|---| | end | WRITE_INVALID device loss | **no device loss**; still running at the 481 s limit | | ExecuteCommandLists | 6,570 | 29,726 | | Dispatch / DrawIndexedInstanced | 3,207 / 7,207 | 6,965 / 49,019 | | PresentX ok | 1,600 | 7,431 (0 failed) | **Why it fits all the evidence so far:** - A host image copy has no command buffer, so there's no checkpoint marker. That's why the direct queue never showed one. - It's done by a driver routine, which explains the constant type-6 entry. - It isn't a shader store, which explains why the store trace was empty. - A size watch over the whole boot found exactly **one** object of 1,835,008 bytes: a 448-page `VkDeviceMemory` of memory type 1 (not an import). That matches my fault offsets, the last 4 KiB of a 448-page span. (@ImLele69 your `0x1fe000`/`0x1ff000` offsets would be a different image size; worth checking whether your memory types differ.) - The fault address is far from every buffer device address (the nearest tracked one is about 1.8 TiB away). That fits a driver-side mapping rather than a normal GPU allocation. Not yet established: which image sits on that memory, and whether this is a driver bug or a usage error (e.g. a host copy racing GPU work on the same image, or a layout or size mismatch). It's cheap to reproduce: set `info.host_image_copy = false` and boot. @Tyrannys @OreoFR @Undefined3301 @kurrutako @ImLele69 a run each on your machines would settle it quickly. With staging copies the load is slower here (session reached the load at about 190 s instead of about 100 s), and at 481 s it was still on the loading artwork, so a longer run is going now to see what's next. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: PS-HELPER-PROBE-EMPTY-COVERAGE-AND-ATOMIC-JSON -> #1793

<!-- gh-comment-id:7162101501 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: PS-HELPER-PROBE-EMPTY-COVERAGE-AND-ATOMIC-JSON -> #1793
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

done: OLD-10038 -> #1794

<!-- gh-comment-id:7162106350 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): done: OLD-10038 -> #1794
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

claiming: OLD-9936 - carry forward old-pr/9936 (draft #203, by Claude): docs/i18n/ru: the quickstart says shaders, assets and runtime run together, rebased on main keeping the author's commit. AI-assisted.

<!-- gh-comment-id:7162107904 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): claiming: OLD-9936 - carry forward old-pr/9936 (draft #203, by Claude): docs/i18n/ru: the quickstart says shaders, assets and runtime run together, rebased on main keeping the author's commit. AI-assisted.
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claiming: ISA-COVERAGE-PARSER-BOM-AND-ENCODING-SAFETY - accept UTF-8 BOM in --translator, catch SyntaxError/ValueError cleanly, guard empty-ISA zero division, normalize whitespace EncodingName, and pass utf-8/replace to llvm-mc probe in tools/isa_coverage.py. AI-assisted.

<!-- gh-comment-id:7162112152 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claiming: ISA-COVERAGE-PARSER-BOM-AND-ENCODING-SAFETY - accept UTF-8 BOM in --translator, catch SyntaxError/ValueError cleanly, guard empty-ISA zero division, normalize whitespace EncodingName, and pass utf-8/replace to llvm-mc probe in tools/isa_coverage.py. AI-assisted.
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

done: USER-SGPR-CENSUS-MS-TECHNIQUE -> #1795

<!-- gh-comment-id:7162113999 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): done: USER-SGPR-CENSUS-MS-TECHNIQUE -> #1795
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

done: OLD-9936 -> #1796

<!-- gh-comment-id:7162115476 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): done: OLD-9936 -> #1796
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

claiming: OLD-9956 - carry forward old-pr/9956 (draft #222, by SkippySteve): README: run gta6rt.sh with UMU-Proton's wine in a prefix of its own, rebased on main keeping the author's commit. AI-assisted.

<!-- gh-comment-id:7162116801 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): claiming: OLD-9956 - carry forward old-pr/9956 (draft #222, by SkippySteve): README: run gta6rt.sh with UMU-Proton's wine in a prefix of its own, rebased on main keeping the author's commit. AI-assisted.
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

done: OLD-9956 -> #1797

<!-- gh-comment-id:7162123963 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): done: OLD-9956 -> #1797
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

claim:

  1. LANE-MASKS-WAVE32-SLOT — tools/lane_masks.py + tools/rdna2spirv.py: mask v_writelane_b32/v_readlane_b32 parked-mask lane slots mod 32 in wave32 (lane_slot and parked respect wave64), matching RDNA2's S1[4:0] wave32 lane index masking already used in rdna2spirv.py. (Unit + end-to-end semantic tests, CPU-only, no game files.)
  2. WAVE-DIFF-REF-VALIDATION — tools/wave_diff.py (WaveRef): reject multi-dword VGPRs and abs/neg modifiers in _vsrc/_count_src/_lane_sel/step, validate destinations even when EXEC == 0 or source lanes are inactive in ds_bpermute_b32 and v_permlane16/x16_b32, validate ds_bpermute_b32 offset: range/syntax, and avoid mutating caller's info["insns"] dicts in WaveRef.__init__. (Synthetic tests, CPU-only, no game files.)
<!-- gh-comment-id:7162135689 --> @ShotTechOp commented on GitHub (Nov 25, 2026): claim: 1. `LANE-MASKS-WAVE32-SLOT` — `tools/lane_masks.py` + `tools/rdna2spirv.py`: mask `v_writelane_b32`/`v_readlane_b32` parked-mask lane slots mod 32 in wave32 (`lane_slot` and `parked` respect `wave64`), matching RDNA2's `S1[4:0]` wave32 lane index masking already used in `rdna2spirv.py`. (Unit + end-to-end semantic tests, CPU-only, no game files.) 2. `WAVE-DIFF-REF-VALIDATION` — `tools/wave_diff.py` (`WaveRef`): reject multi-dword VGPRs and `abs`/`neg` modifiers in `_vsrc`/`_count_src`/`_lane_sel`/`step`, validate destinations even when `EXEC == 0` or source lanes are inactive in `ds_bpermute_b32` and `v_permlane16/x16_b32`, validate `ds_bpermute_b32` `offset:` range/syntax, and avoid mutating caller's `info["insns"]` dicts in `WaveRef.__init__`. (Synthetic tests, CPU-only, no game files.)
Author
Owner

@ImLele69 commented on GitHub (Nov 25, 2026):

claiming: RT-TITLE-TEXTURE-GONE - DeviceState::title_texture_gone (runtime/shims/d3d12_vulkan_device.cpp) takes title_texture_mutex, and ~Resource calls it. When the last reference to a slot-70 texture is a descriptor that write_placed_texture_view overwrites while it holds that mutex, the same thread takes it again: MSVC's std::mutex throws resource_deadlock_would_occur, and under Wine msvcp140.dll has no std::_Throw_Cpp_error, so the boot aborts ("Unimplemented function msvcp140.dll.?_Throw_Cpp_error@std@@YAXH@Z"). Seen once in the story load under Wine 11.21; stack from a linker map: proxy_create_placed_view_x < write_placed_texture_view < write_title_srv < CreateShaderResourceView < ~Resource. Fix: inside the registry the entry only stops naming the resource, and the removal (and its GPU placement) waits until the thread lets go of the mutex. AI-assisted (Claude Code).

<!-- gh-comment-id:7162151750 --> @ImLele69 commented on GitHub (Nov 25, 2026): claiming: RT-TITLE-TEXTURE-GONE - `DeviceState::title_texture_gone` (`runtime/shims/d3d12_vulkan_device.cpp`) takes `title_texture_mutex`, and `~Resource` calls it. When the last reference to a slot-70 texture is a descriptor that `write_placed_texture_view` overwrites while it holds that mutex, the same thread takes it again: MSVC's `std::mutex` throws `resource_deadlock_would_occur`, and under Wine `msvcp140.dll` has no `std::_Throw_Cpp_error`, so the boot aborts ("Unimplemented function msvcp140.dll.?_Throw_Cpp_error@std@@YAXH@Z"). Seen once in the story load under Wine 11.21; stack from a linker map: `proxy_create_placed_view_x` < `write_placed_texture_view` < `write_title_srv` < `CreateShaderResourceView` < `~Resource`. Fix: inside the registry the entry only stops naming the resource, and the removal (and its GPU placement) waits until the thread lets go of the mutex. AI-assisted (Claude Code).
Author
Owner

@ImLele69 commented on GitHub (Nov 25, 2026):

done: RT-TITLE-TEXTURE-GONE -> #1798

<!-- gh-comment-id:7162157358 --> @ImLele69 commented on GitHub (Nov 25, 2026): done: RT-TITLE-TEXTURE-GONE -> #1798
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: ISA-COVERAGE-PARSER-BOM-AND-ENCODING-SAFETY -> #1799

<!-- gh-comment-id:7162161180 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: ISA-COVERAGE-PARSER-BOM-AND-ENCODING-SAFETY -> #1799
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claiming: META-TO-XML-NULL-HEAD-CASE-AND-LIMIT-GUARD - skip bink2/null head entries cleanly, compare hex prefixes case-insensitively, reject negative -Limit, and write XML outputs atomically in scripts/meta_to_xml.ps1. AI-assisted.

<!-- gh-comment-id:7162168340 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claiming: META-TO-XML-NULL-HEAD-CASE-AND-LIMIT-GUARD - skip bink2/null head entries cleanly, compare hex prefixes case-insensitively, reject negative -Limit, and write XML outputs atomically in scripts/meta_to_xml.ps1. AI-assisted.
Author
Owner

@mcpeacebir-lang commented on GitHub (Nov 25, 2026):

done: HW-VALU-LITERAL64-EXT -> #1800

<!-- gh-comment-id:7162179385 --> @mcpeacebir-lang commented on GitHub (Nov 25, 2026): done: HW-VALU-LITERAL64-EXT -> #1800
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

claiming: RT-HOST-IMAGE-COPY-ENV -- d3d12: support LEONIDA_HOST_IMAGE_COPY=0 to force staging texture copies

<!-- gh-comment-id:7162191969 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): claiming: RT-HOST-IMAGE-COPY-ENV -- d3d12: support LEONIDA_HOST_IMAGE_COPY=0 to force staging texture copies
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: META-TO-XML-NULL-HEAD-CASE-AND-LIMIT-GUARD -> #1801

<!-- gh-comment-id:7162203180 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: META-TO-XML-NULL-HEAD-CASE-AND-LIMIT-GUARD -> #1801
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

claiming: OLD-9801 - carry forward old-pr/9801 (draft #74, by Ramon Victor Cardoso): docs: D3D-56 descriptor lookup numbers on RTX 3070 (Ampere, ReBAR off), rebased on main keeping the author's commit. AI-assisted.

<!-- gh-comment-id:7162208755 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): claiming: OLD-9801 - carry forward old-pr/9801 (draft #74, by Ramon Victor Cardoso): docs: D3D-56 descriptor lookup numbers on RTX 3070 (Ampere, ReBAR off), rebased on main keeping the author's commit. AI-assisted.
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claiming: PAL-STAGES-ZLIB-ERROR-AND-CASE-EXTENSIONS - catch zlib.error in blob_rows(), handle .fssm/.dxbc extensions case-insensitively with normcase deduplication, and guard index.json RecursionError in tools/pal_stages.py. AI-assisted.

<!-- gh-comment-id:7162211163 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claiming: PAL-STAGES-ZLIB-ERROR-AND-CASE-EXTENSIONS - catch zlib.error in blob_rows(), handle .fssm/.dxbc extensions case-insensitively with normcase deduplication, and guard index.json RecursionError in tools/pal_stages.py. AI-assisted.
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

done: OLD-9801 -> #1802

<!-- gh-comment-id:7162217837 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): done: OLD-9801 -> #1802
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

claiming: OLD-9810 - carry forward old-pr/9810 (draft #84, by WeiZheng Huang): docs/testing: known-problems row for the four newer compute fixtures on an Arc 140T (ANV 25.2.8), rebased on main keeping the author's commit. AI-assisted.

<!-- gh-comment-id:7162219132 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): claiming: OLD-9810 - carry forward old-pr/9810 (draft #84, by WeiZheng Huang): docs/testing: known-problems row for the four newer compute fixtures on an Arc 140T (ANV 25.2.8), rebased on main keeping the author's commit. AI-assisted.
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

done: OLD-9810 -> #1804

<!-- gh-comment-id:7162228024 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): done: OLD-9810 -> #1804
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

claiming: OLD-9892 - carry forward old-pr/9892 (draft #161, by Tiller431): docs: verify movie archive padding and trailer totals, rebased on main keeping the author's commit. AI-assisted.

<!-- gh-comment-id:7162229603 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): claiming: OLD-9892 - carry forward old-pr/9892 (draft #161, by Tiller431): docs: verify movie archive padding and trailer totals, rebased on main keeping the author's commit. AI-assisted.
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

done: OLD-9892 -> #1805

<!-- gh-comment-id:7162239312 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): done: OLD-9892 -> #1805
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

claiming: OLD-10057 - carry forward old-pr/10057 (draft #323, by Osis78): docs: describe runtime Vulkan pipeline cache loading, rebased on main keeping the author's commits. AI-assisted.

<!-- gh-comment-id:7162240466 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): claiming: OLD-10057 - carry forward old-pr/10057 (draft #323, by Osis78): docs: describe runtime Vulkan pipeline cache loading, rebased on main keeping the author's commits. AI-assisted.
Author
Owner

@aslan2142 commented on GitHub (Nov 25, 2026):

claiming: TOOLS-WINE-GAME-RUN - a Linux/Wine launcher script for a retail game run, in scripts/. It runs a built gta6rt.exe --run headless or on the desktop, with all audio off (Wine's audio drivers disabled; the runtime's silent endpoint answers), a pinned Vulkan device, a hard time limit and one run at a time. It optionally takes an input script, and it ends with a counts-only summary: run time, how it ended, exceptions, D3D12 calls and presents. Complements #851 (native GUI launcher) and scripts/run_wine_session.sh (CI tests). Needs the game to run; its tests need none.

claiming: RT-INPUT-SCRIPT-NO-SDL3 - LEONIDA_INPUT_SCRIPT presses reach the title in a build without SDL3: the no-SDL GameInput path serves one scripted virtual gamepad. CI artifacts and offline builds can then get past the landing page, which the findings in #14 (runtime-windows artifacts stop at GameInputCreate) describe. Complements #1528 (INPUT-OUT-OF-THE-BOX), which makes SDL3 the default for make_game.py builds; real controllers and the keyboard pad still need SDL3.

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

<!-- gh-comment-id:7162247285 --> @aslan2142 commented on GitHub (Nov 25, 2026): claiming: TOOLS-WINE-GAME-RUN - a Linux/Wine launcher script for a retail game run, in `scripts/`. It runs a built `gta6rt.exe --run` headless or on the desktop, with all audio off (Wine's audio drivers disabled; the runtime's silent endpoint answers), a pinned Vulkan device, a hard time limit and one run at a time. It optionally takes an input script, and it ends with a counts-only summary: run time, how it ended, exceptions, D3D12 calls and presents. Complements #851 (native GUI launcher) and `scripts/run_wine_session.sh` (CI tests). Needs the game to run; its tests need none. claiming: RT-INPUT-SCRIPT-NO-SDL3 - `LEONIDA_INPUT_SCRIPT` presses reach the title in a build without SDL3: the no-SDL GameInput path serves one scripted virtual gamepad. CI artifacts and offline builds can then get past the landing page, which the findings in #14 (`runtime-windows` artifacts stop at `GameInputCreate`) describe. Complements #1528 (`INPUT-OUT-OF-THE-BOX`), which makes SDL3 the default for `make_game.py` builds; real controllers and the keyboard pad still need SDL3. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

done: OLD-10057 -> #1806

<!-- gh-comment-id:7162248939 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): done: OLD-10057 -> #1806
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

claiming: OLD-10016 - carry forward old-pr/10016 (draft #286, by towiice): docs: add NVIDIA GeForce GTX 1650 SUPER GPU test results, rebased on main keeping the author's commit. AI-assisted.

<!-- gh-comment-id:7162250078 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): claiming: OLD-10016 - carry forward old-pr/10016 (draft #286, by towiice): docs: add NVIDIA GeForce GTX 1650 SUPER GPU test results, rebased on main keeping the author's commit. AI-assisted.
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: PAL-STAGES-ZLIB-ERROR-AND-CASE-EXTENSIONS -> #1807

<!-- gh-comment-id:7162257487 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: PAL-STAGES-ZLIB-ERROR-AND-CASE-EXTENSIONS -> #1807
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claiming: GEN-BCPACK-TABLES-ATOMIC-IO-AND-CLI-TESTS - use atomic staging writes with published_mode and replace_retry, prevent --profile self-overwrite, reject conflicting output/--profile args, handle CLI errors cleanly, and add tests/test_gen_bcpack_runtime_tables.py. AI-assisted.

<!-- gh-comment-id:7162264899 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claiming: GEN-BCPACK-TABLES-ATOMIC-IO-AND-CLI-TESTS - use atomic staging writes with published_mode and replace_retry, prevent --profile self-overwrite, reject conflicting output/--profile args, handle CLI errors cleanly, and add tests/test_gen_bcpack_runtime_tables.py. AI-assisted.
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

done: OLD-10016 -> #1808

<!-- gh-comment-id:7162265357 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): done: OLD-10016 -> #1808
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

done: RT-HOST-IMAGE-COPY-ENV -> #1810

<!-- gh-comment-id:7162288495 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): done: RT-HOST-IMAGE-COPY-ENV -> #1810
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

done:

  1. LANE-MASKS-WAVE32-SLOT (tools/lane_masks.py + tools/rdna2spirv.py wave32 parked-slot mod-32 aliasing) -> #1803
  2. WAVE-DIFF-REF-VALIDATION (tools/wave_diff.py WaveRef operand/EXEC=0/DS-offset/immutability validation) -> #1809
<!-- gh-comment-id:7162291757 --> @ShotTechOp commented on GitHub (Nov 25, 2026): done: 1. `LANE-MASKS-WAVE32-SLOT` (`tools/lane_masks.py` + `tools/rdna2spirv.py` wave32 parked-slot mod-32 aliasing) -> #1803 2. `WAVE-DIFF-REF-VALIDATION` (`tools/wave_diff.py` `WaveRef` operand/EXEC=0/DS-offset/immutability validation) -> #1809
Author
Owner

@slauko commented on GitHub (Nov 25, 2026):

finding: Wine first-run chain after the navigation tutorial, on current main + #1558 (Wine 11.17, RTX 3080 Ti / NVIDIA 595.112.07, retail 1.0.2.1): account selection -> loading-slideshow artwork (420-900 s) -> Rockstar splash -> navigation tutorial (A) -> UI text size page (A) -> legal notices (Copyright / photosensitivity tabs; down/right moves the tab focus, "Weiter" sits below and is not focused) -> Rockstar privacy/terms consent (two checkboxes: A ticks the focused one, down moves, "Bestätigen" stays disabled until both are ticked). The consent checkboxes are the current first-run gate on this box. Input requires LEONIDA_KEYBOARD_PAD=always together with LEONIDA_INPUT_SCRIPT; without the pad the script is parsed but never delivered (1,204 s of byte-identical account-menu frames). Counts from the latest boots: ~650-745k D3D12 calls, 13-15k PresentX, 0 exceptions; the pages appear at ~300 / 420-900 / 1200 / 1400 / 1600 s. The executable's embedded VS (#387) remains a frame-content gap (20 no translated vs), but the loading artwork renders. Build: main 42537e7b6 + the SDL3 artifact line + #1558. Counts and stage names only, no game data. AI-assisted.

<!-- gh-comment-id:7162294560 --> @slauko commented on GitHub (Nov 25, 2026): finding: Wine first-run chain **after** the navigation tutorial, on current main + #1558 (Wine 11.17, RTX 3080 Ti / NVIDIA 595.112.07, retail 1.0.2.1): account selection -> loading-slideshow artwork (420-900 s) -> Rockstar splash -> navigation tutorial (A) -> **UI text size** page (A) -> **legal notices** (Copyright / photosensitivity tabs; down/right moves the tab focus, "Weiter" sits below and is not focused) -> **Rockstar privacy/terms consent** (two checkboxes: A ticks the focused one, down moves, "Bestätigen" stays disabled until both are ticked). The consent checkboxes are the current first-run gate on this box. Input requires `LEONIDA_KEYBOARD_PAD=always` together with `LEONIDA_INPUT_SCRIPT`; without the pad the script is parsed but never delivered (1,204 s of byte-identical account-menu frames). Counts from the latest boots: ~650-745k D3D12 calls, 13-15k PresentX, 0 exceptions; the pages appear at ~300 / 420-900 / 1200 / 1400 / 1600 s. The executable's embedded VS (#387) remains a frame-content gap (20 `no translated vs`), but the loading artwork renders. Build: `main` `42537e7b6` + the SDL3 artifact line + #1558. Counts and stage names only, no game data. AI-assisted.
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: GEN-BCPACK-TABLES-ATOMIC-IO-AND-CLI-TESTS -> #1811

<!-- gh-comment-id:7162302137 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: GEN-BCPACK-TABLES-ATOMIC-IO-AND-CLI-TESTS -> #1811
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claiming: BCPACK-BPTC-SECTION-AND-VALIDATION-SAFETY - validate non-dict codec sections, catch RecursionError on JSON load, reject malformed BC6H/BC7 history rows cleanly, prevent negative bit shifts in BC7 low2 fits, and include device/inode in _FILE_CACHE keys in tools/bcpack_tables_bptc.py. AI-assisted.

<!-- gh-comment-id:7162308818 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claiming: BCPACK-BPTC-SECTION-AND-VALIDATION-SAFETY - validate non-dict codec sections, catch RecursionError on JSON load, reject malformed BC6H/BC7 history rows cleanly, prevent negative bit shifts in BC7 low2 fits, and include device/inode in _FILE_CACHE keys in tools/bcpack_tables_bptc.py. AI-assisted.
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: BCPACK-BPTC-SECTION-AND-VALIDATION-SAFETY -> #1812

<!-- gh-comment-id:7162350938 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: BCPACK-BPTC-SECTION-AND-VALIDATION-SAFETY -> #1812
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claiming: SCRIPT-QTABLE-ATOMIC-JSON-AND-EMPTY-PATH-GUARD - write --json atomically with trailing newline and replace_retry, reject empty/whitespace/trailing-separator --json paths, and require unsigned hex stems in _BinFolderSource in tools/script_qtable.py. AI-assisted.

<!-- gh-comment-id:7162357891 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claiming: SCRIPT-QTABLE-ATOMIC-JSON-AND-EMPTY-PATH-GUARD - write --json atomically with trailing newline and replace_retry, reject empty/whitespace/trailing-separator --json paths, and require unsigned hex stems in _BinFolderSource in tools/script_qtable.py. AI-assisted.
Author
Owner

@DadaCap commented on GitHub (Nov 25, 2026):

finding: with VK_EXT_host_image_copy off, title textures are not uploaded at all, so "no device loss with host image copy off" (7162097442) does not yet separate the host copies from the textures being filled. @QemmHD, @abnalstlll-byte (#1810).

Measured (RTX 5080, NVIDIA 621.24, Windows 11, main 0d80bc5df + #1756 + #1662 + 674, 1694, 1705, info.host_image_copy = false): the intro movie is a flat green frame (zero YUV planes), and the refresh line at that point reads 473 passes, 125236 textures checked, 107844 changed, 0.0 MiB filled. The run is still going, so I can't say yet whether the device loss is gone here too.

Where: runtime/shims/d3d12_vulkan_device.cpp. fill_title_texture returns without filling when host_copy_now() is false (a refresh before a submission may only use a host copy), unless the resource is staged_title(). But create_texture only makes an image staged when host_transfer_ was true first, so on a device or a run without host copies neither path applies. That also affects any GPU or driver without the extension, not only the experiment.

A run that separates the two: the same switch with title images (linear movie planes too) on TitleImageUpload. I have that change locally and will run it next.

claiming: RT-TITLE-STAGED-NO-HOST-COPY - title images use the staged upload when the device has no host image copies. AI-assisted (Claude Code).

<!-- gh-comment-id:7162394831 --> @DadaCap commented on GitHub (Nov 25, 2026): finding: with `VK_EXT_host_image_copy` off, title textures are not uploaded at all, so "no device loss with host image copy off" ([7162097442](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7162097442)) does not yet separate the host copies from the textures being filled. @QemmHD, @abnalstlll-byte (#1810). **Measured** (RTX 5080, NVIDIA 621.24, Windows 11, `main` 0d80bc5df + #1756 + #1662 + 674, 1694, 1705, `info.host_image_copy = false`): the intro movie is a flat green frame (zero YUV planes), and the refresh line at that point reads `473 passes, 125236 textures checked, 107844 changed, 0.0 MiB filled`. The run is still going, so I can't say yet whether the device loss is gone here too. **Where:** `runtime/shims/d3d12_vulkan_device.cpp`. `fill_title_texture` returns without filling when `host_copy_now()` is false (a refresh before a submission may only use a host copy), unless the resource is `staged_title()`. But `create_texture` only makes an image staged when `host_transfer_` was true first, so on a device or a run without host copies neither path applies. That also affects any GPU or driver without the extension, not only the experiment. A run that separates the two: the same switch with title images (linear movie planes too) on `TitleImageUpload`. I have that change locally and will run it next. claiming: RT-TITLE-STAGED-NO-HOST-COPY - title images use the staged upload when the device has no host image copies. AI-assisted (Claude Code).
Author
Owner

@timbot103 commented on GitHub (Nov 25, 2026):

done: D3D-CLEAR-UAV-3D-SLICE -> #1814

<!-- gh-comment-id:7162402255 --> @timbot103 commented on GitHub (Nov 25, 2026): done: D3D-CLEAR-UAV-3D-SLICE -> #1814
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: SCRIPT-QTABLE-ATOMIC-JSON-AND-EMPTY-PATH-GUARD -> #1815

<!-- gh-comment-id:7162402608 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: SCRIPT-QTABLE-ATOMIC-JSON-AND-EMPTY-PATH-GUARD -> #1815
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claiming: GAMEDATA-SPS1-ATOMIC-JSON-AND-PATH-SAFETY - write --json atomically with trailing newline and replace_retry, reject empty/whitespace/trailing-separator --json paths, avoid reading index.json twice for directory inputs in tools/gamedata_sps1.py, and add isolated tests/test_gamedata_sps1_atomic.py. AI-assisted.

<!-- gh-comment-id:7162409595 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claiming: GAMEDATA-SPS1-ATOMIC-JSON-AND-PATH-SAFETY - write --json atomically with trailing newline and replace_retry, reject empty/whitespace/trailing-separator --json paths, avoid reading index.json twice for directory inputs in tools/gamedata_sps1.py, and add isolated tests/test_gamedata_sps1_atomic.py. AI-assisted.
Author
Owner

@Snooozs commented on GitHub (Nov 25, 2026):

done: RT-BVH-BUILD-TITLE-VA -> #1816 (test only). The address translation itself landed with #1723, so my version of the fix is dropped; nothing else of this item is in progress.

<!-- gh-comment-id:7162420100 --> @Snooozs commented on GitHub (Nov 25, 2026): done: RT-BVH-BUILD-TITLE-VA -> #1816 (test only). The address translation itself landed with #1723, so my version of the fix is dropped; nothing else of this item is in progress.
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: GAMEDATA-SPS1-ATOMIC-JSON-AND-PATH-SAFETY -> #1817

<!-- gh-comment-id:7162448070 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: GAMEDATA-SPS1-ATOMIC-JSON-AND-PATH-SAFETY -> #1817
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claiming: PSIN-INDEX-DUPLICATE-LSNS-AND-CASE-BIN - keep the first LSNS section consistently with LSCH/LENM in parse(), accept case-insensitive .bin extensions in input_paths(), and accept optional argv in main() of tools/psin_index.py. AI-assisted.

<!-- gh-comment-id:7162455934 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claiming: PSIN-INDEX-DUPLICATE-LSNS-AND-CASE-BIN - keep the first LSNS section consistently with LSCH/LENM in parse(), accept case-insensitive .bin extensions in input_paths(), and accept optional argv in main() of tools/psin_index.py. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-PIPELINE-WORKERS-OOM-UAF - fix stack use-after-free in PipelineWorkers::run() (runtime/src/pipeline_workers.h) when start() throws std::bad_alloc after &batch has already been pushed to queue_, handle std::bad_alloc in start() and queue_.push_back() cleanly so batches complete instead of dangling stack memory or failing submissions under memory pressure, and add deterministic OOM regression tests to runtime/test/pipeline_workers_test.cpp. AI-assisted.

<!-- gh-comment-id:7162472188 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: `RT-PIPELINE-WORKERS-OOM-UAF` - fix stack use-after-free in `PipelineWorkers::run()` (`runtime/src/pipeline_workers.h`) when `start()` throws `std::bad_alloc` after `&batch` has already been pushed to `queue_`, handle `std::bad_alloc` in `start()` and `queue_.push_back()` cleanly so batches complete instead of dangling stack memory or failing submissions under memory pressure, and add deterministic OOM regression tests to `runtime/test/pipeline_workers_test.cpp`. AI-assisted.
Author
Owner

@JesusACD commented on GitHub (Nov 25, 2026):

done: RT-ONDEMAND-CONSOLE-STREAM -> #1818 (https://github.com/ubiquitarianism/leonida/pull/1818)

<!-- gh-comment-id:7162496244 --> @JesusACD commented on GitHub (Nov 25, 2026): done: RT-ONDEMAND-CONSOLE-STREAM -> #1818 (https://github.com/ubiquitarianism/leonida/pull/1818)
Author
Owner

@aslan2142 commented on GitHub (Nov 25, 2026):

done: TOOLS-WINE-GAME-RUN -> #1819

<!-- gh-comment-id:7162513342 --> @aslan2142 commented on GitHub (Nov 25, 2026): done: TOOLS-WINE-GAME-RUN -> #1819
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: PSIN-INDEX-DUPLICATE-LSNS-AND-CASE-BIN -> #1820 (https://github.com/ubiquitarianism/leonida/pull/1820)

<!-- gh-comment-id:7162517226 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: PSIN-INDEX-DUPLICATE-LSNS-AND-CASE-BIN -> #1820 (https://github.com/ubiquitarianism/leonida/pull/1820)
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-PIPELINE-WORKERS-OOM-UAF -> #1821

<!-- gh-comment-id:7162520653 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: `RT-PIPELINE-WORKERS-OOM-UAF` -> #1821
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

claiming: OLD-9962 - carry forward old-pr/9962 (draft #229, by Leeahmy): conformance build.ps1: find Visual Studio's CMake and name no Visual Studio version, rebased on main keeping the author's commits. AI-assisted.

<!-- gh-comment-id:7162564669 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): claiming: OLD-9962 - carry forward old-pr/9962 (draft #229, by Leeahmy): conformance build.ps1: find Visual Studio's CMake and name no Visual Studio version, rebased on main keeping the author's commits. AI-assisted.
Author
Owner

@QemmHD commented on GitHub (Nov 25, 2026):

Confirmation, n=2: with host image copy unused, a second boot on the RTX 4070 SUPER ran its full 901 s with no device loss and 0 exceptions: 55,015 submissions, 7,960 PresentX ok, 0 failed. Peak private 16.4 GB, peak VRAM 8.1 GB, minimum available RAM 9.0 GB. It was still in the long load when the time limit stopped it: no presents for the last stretch while textures were still being created (729k D3D12 calls). Next is a longer run to see whether the first world frame follows.

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

<!-- gh-comment-id:7162571358 --> @QemmHD commented on GitHub (Nov 25, 2026): Confirmation, n=2: with host image copy unused, a second boot on the RTX 4070 SUPER ran its full **901 s with no device loss and 0 exceptions**: 55,015 submissions, 7,960 PresentX ok, 0 failed. Peak private 16.4 GB, peak VRAM 8.1 GB, minimum available RAM 9.0 GB. It was still in the long load when the time limit stopped it: no presents for the last stretch while textures were still being created (729k D3D12 calls). Next is a longer run to see whether the first world frame follows. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

done: OLD-9962 -> #1822

<!-- gh-comment-id:7162574897 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): done: OLD-9962 -> #1822
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

claiming: OLD-9895 - carry forward old-pr/9895 (draft #163, by neoisg8): docs: document LEONIDA_RNG_SEED in runtime/README.md, rebased on main keeping the author's commit. AI-assisted.

<!-- gh-comment-id:7162576260 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): claiming: OLD-9895 - carry forward old-pr/9895 (draft #163, by neoisg8): docs: document LEONIDA_RNG_SEED in runtime/README.md, rebased on main keeping the author's commit. AI-assisted.
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

done: OLD-9895 -> #1823

<!-- gh-comment-id:7162585981 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): done: OLD-9895 -> #1823
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

claiming: OLD-9998 - carry forward old-pr/9998 (draft #269, by Courtyard Games): runtime: stop the configure when Vulkan headers are too old for the Windows runtime, rebased on main keeping the author's commit. AI-assisted.

<!-- gh-comment-id:7162587897 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): claiming: OLD-9998 - carry forward old-pr/9998 (draft #269, by Courtyard Games): runtime: stop the configure when Vulkan headers are too old for the Windows runtime, rebased on main keeping the author's commit. AI-assisted.
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

done: OLD-9998 -> #1824

<!-- gh-comment-id:7162599338 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): done: OLD-9998 -> #1824
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

claiming: OLD-9995 - carry forward old-pr/9995 (draft #266, by lordon1a): docs/gpu_test_results: record Intel Iris Xe (8086:46a6) and RTX 3070 Ti Laptop (Windows 11) results, rebased on main keeping the author's commit. AI-assisted.

<!-- gh-comment-id:7162601150 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): claiming: OLD-9995 - carry forward old-pr/9995 (draft #266, by lordon1a): docs/gpu_test_results: record Intel Iris Xe (8086:46a6) and RTX 3070 Ti Laptop (Windows 11) results, rebased on main keeping the author's commit. AI-assisted.
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

done: OLD-9995 -> #1825

<!-- gh-comment-id:7162611705 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): done: OLD-9995 -> #1825
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

claiming: OLD-9791 - carry forward old-pr/9791 (draft #67, by Nikita Romanovich): docs/gpu_test_results.md: record NVIDIA GeForce RTX 5060 Ti (Windows 11, 610.88) results, rebased on main keeping the author's commit. AI-assisted.

<!-- gh-comment-id:7162613098 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): claiming: OLD-9791 - carry forward old-pr/9791 (draft #67, by Nikita Romanovich): docs/gpu_test_results.md: record NVIDIA GeForce RTX 5060 Ti (Windows 11, 610.88) results, rebased on main keeping the author's commit. AI-assisted.
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

done: OLD-9791 -> #1826

<!-- gh-comment-id:7162621427 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): done: OLD-9791 -> #1826
Author
Owner

@DadaCap commented on GitHub (Nov 25, 2026):

Result of the run I announced in 7162394831: with host image copy off and title textures really uploaded, the world-start WRITE_INVALID is gone, the first world frame is recorded and submitted, and the next stop is a different one. n=1; a repeat follows. RTX 5080, NVIDIA 621.24, Windows 11, main 0d80bc5df + #1756 + #1662 + 674, 1694, 1705 + the staged-upload change, LEONIDA_DEVICE_TYPE=6, watchdog off, warm pipeline cache.

host image copy on (m38, m39, older base 237deb64c) off, textures uploaded (m41)
intro movie shown shown (flat green without the change)
first world frame about 130 s in m39 90 s: 136 draws, 11,525 indirect, 2,118 dispatches, 12.9 s
fault report type 6 at a constant address + type 2, 4 KiB no type 2 and no type 6; 136 entries, all type 4, within one range of about 4.5 KiB
last checkpoint compute queues, lib_cs_00928 / lib_cs_01468 direct queue, lib_cs_01144, 64x32x1 groups

My reading of the second fault, not confirmed: many program counters inside one small range and no bad address look like a hang (GPU timeout) inside one program, and lib_cs_01144 is made of nested loops whose bounds are not constants. The base differs between the two columns, so the column on the left is not a strict A/B; QemmHD's runs are.

So for @QemmHD: your conclusion holds here with the confound removed. Your runs may be staying in the long load because the title's textures are not filled; a run with the change would tell. I'll open it as RT-TITLE-STAGED-NO-HOST-COPY today.

AI-assisted (Claude Code).

<!-- gh-comment-id:7162630346 --> @DadaCap commented on GitHub (Nov 25, 2026): Result of the run I announced in 7162394831: **with host image copy off and title textures really uploaded, the world-start WRITE_INVALID is gone, the first world frame is recorded and submitted, and the next stop is a different one.** n=1; a repeat follows. RTX 5080, NVIDIA 621.24, Windows 11, `main` 0d80bc5df + #1756 + #1662 + 674, 1694, 1705 + the staged-upload change, `LEONIDA_DEVICE_TYPE=6`, watchdog off, warm pipeline cache. | | host image copy on (m38, m39, older base 237deb64c) | off, textures uploaded (m41) | |---|---|---| | intro movie | shown | shown (flat green without the change) | | first world frame | about 130 s in m39 | 90 s: 136 draws, 11,525 indirect, 2,118 dispatches, 12.9 s | | fault report | type 6 at a constant address + type 2, 4 KiB | **no type 2 and no type 6**; 136 entries, all type 4, within one range of about 4.5 KiB | | last checkpoint | compute queues, `lib_cs_00928` / `lib_cs_01468` | direct queue, `lib_cs_01144`, 64x32x1 groups | My reading of the second fault, not confirmed: many program counters inside one small range and no bad address look like a hang (GPU timeout) inside one program, and `lib_cs_01144` is made of nested loops whose bounds are not constants. The base differs between the two columns, so the column on the left is not a strict A/B; QemmHD's runs are. So for @QemmHD: your conclusion holds here with the confound removed. Your runs may be staying in the long load because the title's textures are not filled; a run with the change would tell. I'll open it as RT-TITLE-STAGED-NO-HOST-COPY today. AI-assisted (Claude Code).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-INDIRECT-CLAMP-SHARING-AND-SAFETY - fix multi-queue-family sharing, concurrency, and cleanup bugs in IndirectArgumentClamp (runtime/src/vulkan_indirect_clamp.h, runtime/src/vulkan_scratch.h, runtime/src/vulkan_backend.h, runtime/shims/d3d12_vulkan_device.cpp): share clamp scratch and host counter-slot VkBuffers across graphics/compute queue families (VK_SHARING_MODE_CONCURRENT), guard areas_ lookup under mutex_ in prepare(), free VkDeviceMemory on vkBindBufferMemory retry failure in make_area(), zero released counter slots to prevent stale double-counting on aborted batches, validate 4-byte argument/count offset alignment, and add pure-CPU mock-Vulkan unit/TSan tests (runtime/test/indirect_clamp_safety_test.cpp). AI-assisted.

<!-- gh-comment-id:7162686562 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: `RT-INDIRECT-CLAMP-SHARING-AND-SAFETY` - fix multi-queue-family sharing, concurrency, and cleanup bugs in `IndirectArgumentClamp` (`runtime/src/vulkan_indirect_clamp.h`, `runtime/src/vulkan_scratch.h`, `runtime/src/vulkan_backend.h`, `runtime/shims/d3d12_vulkan_device.cpp`): share clamp scratch and host counter-slot `VkBuffer`s across graphics/compute queue families (`VK_SHARING_MODE_CONCURRENT`), guard `areas_` lookup under `mutex_` in `prepare()`, free `VkDeviceMemory` on `vkBindBufferMemory` retry failure in `make_area()`, zero released counter slots to prevent stale double-counting on aborted batches, validate 4-byte argument/count offset alignment, and add pure-CPU mock-Vulkan unit/TSan tests (`runtime/test/indirect_clamp_safety_test.cpp`). AI-assisted.
Author
Owner

@DadaCap commented on GitHub (Nov 25, 2026):

done: RT-TITLE-STAGED-NO-HOST-COPY -> #1827

<!-- gh-comment-id:7162716286 --> @DadaCap commented on GitHub (Nov 25, 2026): done: RT-TITLE-STAGED-NO-HOST-COPY -> #1827
Author
Owner

@RK28A commented on GitHub (Nov 25, 2026):

claiming: MODS-MANIFEST-RUNTIME-RULES - tools/leonida_mods.py checks mod.json with its own copy of the rules in runtime/src/mods.h, and the copy is behind: the "camera" section is not read (list says mods/first_person changes nothing, check passes camera values the runtime refuses), a mod.json that starts with a UTF-8 byte-order mark is refused although the runtime and docs/modding.md accept it, and "archetype_swaps": null is accepted although the runtime refuses it. Make the manager apply the same checks as parse_mod.

claiming: MODS-PACKAGE-FILE-NAMES - leonida_mods install refuses file names that pack writes: each name is checked against safe_folder_name(), so a file with a double space or a name longer than 80 characters packs and is then refused as an unsafe ZIP member name. Check names with a portable-name rule instead and run the same check in pack.

<!-- gh-comment-id:7162803920 --> @RK28A commented on GitHub (Nov 25, 2026): claiming: MODS-MANIFEST-RUNTIME-RULES - tools/leonida_mods.py checks mod.json with its own copy of the rules in runtime/src/mods.h, and the copy is behind: the "camera" section is not read (`list` says mods/first_person changes nothing, `check` passes camera values the runtime refuses), a mod.json that starts with a UTF-8 byte-order mark is refused although the runtime and docs/modding.md accept it, and "archetype_swaps": null is accepted although the runtime refuses it. Make the manager apply the same checks as parse_mod. claiming: MODS-PACKAGE-FILE-NAMES - leonida_mods `install` refuses file names that `pack` writes: each name is checked against safe_folder_name(), so a file with a double space or a name longer than 80 characters packs and is then refused as an unsafe ZIP member name. Check names with a portable-name rule instead and run the same check in `pack`.
Author
Owner

@potatoe0100 commented on GitHub (Nov 25, 2026):

claiming: OLD-7189 - carry forward old-pr/7189 (draft #41, by rafaelpssz): the startup trace names the caller of a call through a null pointer (null_call_from), rebased on main with the author's commits. AI-assisted.

<!-- gh-comment-id:7162808978 --> @potatoe0100 commented on GitHub (Nov 25, 2026): claiming: OLD-7189 - carry forward old-pr/7189 (draft #41, by rafaelpssz): the startup trace names the caller of a call through a null pointer (null_call_from), rebased on main with the author's commits. AI-assisted.
Author
Owner

@potatoe0100 commented on GitHub (Nov 25, 2026):

claiming: OLD-9805 - carry forward old-pr/9805 (draft #77, by a-lebailly): cancel suspended Vulkan presents before enqueueing, rebased on main with the author's commit. AI-assisted.

<!-- gh-comment-id:7162809577 --> @potatoe0100 commented on GitHub (Nov 25, 2026): claiming: OLD-9805 - carry forward old-pr/9805 (draft #77, by a-lebailly): cancel suspended Vulkan presents before enqueueing, rebased on main with the author's commit. AI-assisted.
Author
Owner

@potatoe0100 commented on GitHub (Nov 25, 2026):

claiming: OLD-10023 - carry forward old-pr/10023 (draft #292, by tedin7): ResolveSubresource averages a typeless resource in the format it names (sRGB in linear light), plus colour MIN/MAX resolves, rebased on main with the author's commits. AI-assisted.

<!-- gh-comment-id:7162810126 --> @potatoe0100 commented on GitHub (Nov 25, 2026): claiming: OLD-10023 - carry forward old-pr/10023 (draft #292, by tedin7): ResolveSubresource averages a typeless resource in the format it names (sRGB in linear light), plus colour MIN/MAX resolves, rebased on main with the author's commits. AI-assisted.
Author
Owner

@potatoe0100 commented on GitHub (Nov 25, 2026):

claiming: OLD-9966 - carry forward old-pr/9966 (draft #233, by tedin7): gameinput preserves controller transitions between polls, rebased on main with the author's commit. AI-assisted.

<!-- gh-comment-id:7162810670 --> @potatoe0100 commented on GitHub (Nov 25, 2026): claiming: OLD-9966 - carry forward old-pr/9966 (draft #233, by tedin7): gameinput preserves controller transitions between polls, rebased on main with the author's commit. AI-assisted.
Author
Owner

@potatoe0100 commented on GitHub (Nov 25, 2026):

done: OLD-7189 -> #1828

<!-- gh-comment-id:7162828421 --> @potatoe0100 commented on GitHub (Nov 25, 2026): done: OLD-7189 -> #1828
Author
Owner

@potatoe0100 commented on GitHub (Nov 25, 2026):

done: OLD-9805 -> #1829

<!-- gh-comment-id:7162828955 --> @potatoe0100 commented on GitHub (Nov 25, 2026): done: OLD-9805 -> #1829
Author
Owner

@potatoe0100 commented on GitHub (Nov 25, 2026):

done: OLD-10023 -> #1830

<!-- gh-comment-id:7162829512 --> @potatoe0100 commented on GitHub (Nov 25, 2026): done: OLD-10023 -> #1830
Author
Owner

@potatoe0100 commented on GitHub (Nov 25, 2026):

done: OLD-9966 -> #1831

<!-- gh-comment-id:7162830045 --> @potatoe0100 commented on GitHub (Nov 25, 2026): done: OLD-9966 -> #1831
Author
Owner

@QemmHD commented on GitHub (Nov 25, 2026):

claiming: RT-HOST-IMAGE-COPY-SWITCH. A documented LEONIDA_HOST_IMAGE_COPY=0|1|auto switch for the layer's use of VK_EXT_host_image_copy (WriteToSubresource/ReadFromSubresource). auto (the default) turns it off on NVIDIA until the mechanism behind the world-start WRITE_INVALID is understood, and on elsewhere as today. It also logs one line saying which path is in use and why, with a unit test of the decision.

Evidence so far, RTX 4070 SUPER: with host image copies unused, 2 of 2 boots have no device loss (481 s and 901 s, up to 31,841 ExecuteCommandLists and 7,960 presents); with them, 5 of 5 lose the device at about 6,600 ExecuteCommandLists. 13 of 13 fault addresses are the same offset modulo 2 MiB.

Ruled out by diagnostics:

  • No owner: no buffer device address is within 1.8 TiB of the fault.
  • No layer mapping: the fault isn't in any vkMapMemory mapping the layer made.
  • Not a caller's buffer: it isn't within 1 MiB of the caller memory of any of the last 131,072 host copies.
  • No under-bound image: no image is bound to less memory than it needs.
  • The 1,835,008-byte match was a coincidence: that memory object is a small shared block.

The mechanism isn't established yet. The switch changes three things together: no vkCopyMemoryToImageEXT/vkCopyImageToMemoryEXT/vkTransitionImageLayoutEXT calls, no HOST_TRANSFER usage on title images (so a different memory type), and uploads through staging instead. A validation-layer run is going. Replications on other NVIDIA cards and on AMD would decide whether auto should be NVIDIA-only.

Known cost: with staging uploads the load is slower, and the next limit after this stop is the per-submission title-page copying (about 200 MiB per submission at the 1024 MiB window cap).

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

<!-- gh-comment-id:7162848027 --> @QemmHD commented on GitHub (Nov 25, 2026): claiming: RT-HOST-IMAGE-COPY-SWITCH. A documented `LEONIDA_HOST_IMAGE_COPY=0|1|auto` switch for the layer's use of `VK_EXT_host_image_copy` (WriteToSubresource/ReadFromSubresource). `auto` (the default) turns it **off on NVIDIA** until the mechanism behind the world-start WRITE_INVALID is understood, and on elsewhere as today. It also logs one line saying which path is in use and why, with a unit test of the decision. Evidence so far, RTX 4070 SUPER: with host image copies unused, **2 of 2** boots have no device loss (481 s and 901 s, up to 31,841 ExecuteCommandLists and 7,960 presents); with them, **5 of 5** lose the device at about 6,600 ExecuteCommandLists. 13 of 13 fault addresses are the same offset modulo 2 MiB. Ruled out by diagnostics: - **No owner:** no buffer device address is within 1.8 TiB of the fault. - **No layer mapping:** the fault isn't in any `vkMapMemory` mapping the layer made. - **Not a caller's buffer:** it isn't within 1 MiB of the caller memory of any of the last 131,072 host copies. - **No under-bound image:** no image is bound to less memory than it needs. - **The 1,835,008-byte match was a coincidence:** that memory object is a small shared block. **The mechanism isn't established yet.** The switch changes three things together: no `vkCopyMemoryToImageEXT`/`vkCopyImageToMemoryEXT`/`vkTransitionImageLayoutEXT` calls, no HOST_TRANSFER usage on title images (so a different memory type), and uploads through staging instead. A validation-layer run is going. Replications on other NVIDIA cards and on AMD would decide whether `auto` should be NVIDIA-only. Known cost: with staging uploads the load is slower, and the next limit after this stop is the per-submission title-page copying (about 200 MiB per submission at the 1024 MiB window cap). AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-INDIRECT-CLAMP-SHARING-AND-SAFETY -> #1832

<!-- gh-comment-id:7162854799 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-INDIRECT-CLAMP-SHARING-AND-SAFETY -> #1832
Author
Owner

@MoonEyes commented on GitHub (Nov 25, 2026):

claiming: RT-CONSOLE-SLOT-SECOND-HALF - with @OreoFR. runtime/shims/d3d12_vulkan_device.cpp fix_console_slot (~3260-3287 on main): when the first 16-byte half of a 32-byte console heap slot is neither a V# nor a T#, the layer nulls that half but copies the second half (w[4..7]) to the GPU as the title wrote it, never through fix_vsharp; the alias pass (~3417) skips it too. A V# there keeps a raw title base, and a shader writes to heap_base + that address (WRITE_INVALID). Oreo's log shows 74 such slots with a non-zero raw second half. Plan: a synthetic runtime test that fails on main (in d3d12_unmapped_vsharp_test, next to the data-slot check), then fix_vsharp on w+4 when it is a V# and the first half is not an 8-dword T#, in both places. Game validation on the world-start crash A by Oreo. No game files for the test.

<!-- gh-comment-id:7162866174 --> @MoonEyes commented on GitHub (Nov 25, 2026): claiming: RT-CONSOLE-SLOT-SECOND-HALF - with @OreoFR. runtime/shims/d3d12_vulkan_device.cpp fix_console_slot (~3260-3287 on main): when the first 16-byte half of a 32-byte console heap slot is neither a V# nor a T#, the layer nulls that half but copies the second half (w[4..7]) to the GPU as the title wrote it, never through fix_vsharp; the alias pass (~3417) skips it too. A V# there keeps a raw title base, and a shader writes to heap_base + that address (WRITE_INVALID). Oreo's log shows 74 such slots with a non-zero raw second half. Plan: a synthetic runtime test that fails on main (in d3d12_unmapped_vsharp_test, next to the data-slot check), then fix_vsharp on w+4 when it is a V# and the first half is not an 8-dword T#, in both places. Game validation on the world-start crash A by Oreo. No game files for the test.
Author
Owner

@HasiKe commented on GitHub (Nov 25, 2026):

finding: on NVIDIA the retail world load loses the Vulkan device in library compute pipeline lib_cs_01405, which reads a title VA the runtime never mirrored, through a global (PhysicalStorageBuffer) load

  • Where: the title windows in runtime/shims/d3d12_vulkan_device.cpp (title memory named by a shader address is past LEONIDA_TITLE_WINDOWS_MB, left untranslated, around line 2186) together with the global-memory row of docs/design.md (address = title VA + heap base).
  • Evidence: 5 runs with VK_LAYER_LUNARG_crash_diagnostic + VK_EXT_device_fault. Each dump faults in one vkCmdDispatch on the dedicated compute family. A local log of compute VkPipeline handles maps it to library/lib_cs_01405 (wave64 emulated, PhysicalStorageBufferAddresses, 144-byte push constants). The fault is an Invalid Read at a title-range address. The window cap is hit before every loss: always at 64 MiB, and once still at 512 MiB.
  • Not the cause: a 4095 MiB arena, the missing RehydrateRaytracingAccelerationStructureBatched2X (its E_NOTIMPL comes after the loss), and PR #1728's V# guard (tested; the address likely does not come from a V#).
  • Why it matters: this is the first hard stop after the story load on NVIDIA. Mirroring only the title memory the CPU side has seen cannot cover addresses a shader computes or loads on the GPU.
  • Needs: the retail package (1.0.2.1). Seen on an RTX 2070 SUPER, driver 616.56, Windows 11, built from c7e82e26e. Reproducible unattended with a recorded LEONIDA_INPUT_SCRIPT.
  • AI-assisted (Claude Code); logs and dumps stay on my machine.
<!-- gh-comment-id:7162872414 --> @HasiKe commented on GitHub (Nov 25, 2026): finding: on NVIDIA the retail world load loses the Vulkan device in library compute pipeline `lib_cs_01405`, which reads a title VA the runtime never mirrored, through a global (PhysicalStorageBuffer) load - **Where:** the title windows in `runtime/shims/d3d12_vulkan_device.cpp` (`title memory named by a shader address is past LEONIDA_TITLE_WINDOWS_MB, left untranslated`, around line 2186) together with the global-memory row of `docs/design.md` (address = title VA + heap base). - **Evidence:** 5 runs with `VK_LAYER_LUNARG_crash_diagnostic` + `VK_EXT_device_fault`. Each dump faults in one `vkCmdDispatch` on the dedicated compute family. A local log of compute `VkPipeline` handles maps it to `library/lib_cs_01405` (wave64 emulated, `PhysicalStorageBufferAddresses`, 144-byte push constants). The fault is an `Invalid Read` at a title-range address. The window cap is hit before every loss: always at 64 MiB, and once still at 512 MiB. - **Not the cause:** a 4095 MiB arena, the missing `RehydrateRaytracingAccelerationStructureBatched2X` (its E_NOTIMPL comes after the loss), and PR #1728's V# guard (tested; the address likely does not come from a V#). - **Why it matters:** this is the first hard stop after the story load on NVIDIA. Mirroring only the title memory the CPU side has seen cannot cover addresses a shader computes or loads on the GPU. - **Needs:** the retail package (1.0.2.1). Seen on an RTX 2070 SUPER, driver 616.56, Windows 11, built from c7e82e26e. Reproducible unattended with a recorded `LEONIDA_INPUT_SCRIPT`. - AI-assisted (Claude Code); logs and dumps stay on my machine.
Author
Owner

@adrianmjim commented on GitHub (Nov 25, 2026):

claiming: RT-PIPELINE-CHECK-ROBUSTNESS - pipeline_cache_seed fails on main (0d80bc5df) on an RX 7900 XT. Since #1723 (ba626820e) the runtime's device enables robustBufferAccess, VK_EXT_robustness2's robustBufferAccess2 and nullDescriptor, but vk_pipeline_check still forces robustBufferAccess off, and AMD keys pipelines on it, so the offline cache never hits in gta6rt. Fix: the checker makes the same robustness choice with the same helper (leonida::can_enable_robust_index_view). Test-tool change only; no game files.

<!-- gh-comment-id:7162894648 --> @adrianmjim commented on GitHub (Nov 25, 2026): claiming: RT-PIPELINE-CHECK-ROBUSTNESS - `pipeline_cache_seed` fails on `main` (`0d80bc5df`) on an RX 7900 XT. Since #1723 (`ba626820e`) the runtime's device enables `robustBufferAccess`, `VK_EXT_robustness2`'s `robustBufferAccess2` and `nullDescriptor`, but `vk_pipeline_check` still forces `robustBufferAccess` off, and AMD keys pipelines on it, so the offline cache never hits in gta6rt. Fix: the checker makes the same robustness choice with the same helper (`leonida::can_enable_robust_index_view`). Test-tool change only; no game files.
Author
Owner

@adrianmjim commented on GitHub (Nov 25, 2026):

done: RT-PIPELINE-CHECK-ROBUSTNESS -> #1833

<!-- gh-comment-id:7162897605 --> @adrianmjim commented on GitHub (Nov 25, 2026): done: RT-PIPELINE-CHECK-ROBUSTNESS -> #1833
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-GPU-LABELS-COMPLETIONS-SAFETY — fix lock-order deadlock, dropped timestamp queries, unnecessary query pools for non-timestamp labels, and shutdown races in leonida::label::Completions (runtime/src/vulkan_gpu_labels.h): release mutex_ around vkGetFenceStatus/publish()/store_value() (eliminating the Completions::mutex_ <-> VulkanContext::resource_mutex_ reader-writer deadlock via value_sink::arena() -> is_sparse_va()), pass VK_QUERY_RESULT_WAIT_BIT for signaled timestamp queries, skip query pools for clock != 1 labels, guard stop()/~Completions() against concurrent double-join and in-flight recording during teardown, and add a pure-CPU mock-Vulkan unit + TSan test.

<!-- gh-comment-id:7162941588 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: `RT-GPU-LABELS-COMPLETIONS-SAFETY` — fix lock-order deadlock, dropped timestamp queries, unnecessary query pools for non-timestamp labels, and shutdown races in `leonida::label::Completions` (`runtime/src/vulkan_gpu_labels.h`): release `mutex_` around `vkGetFenceStatus`/`publish()`/`store_value()` (eliminating the `Completions::mutex_` <-> `VulkanContext::resource_mutex_` reader-writer deadlock via `value_sink::arena()` -> `is_sparse_va()`), pass `VK_QUERY_RESULT_WAIT_BIT` for signaled timestamp queries, skip query pools for `clock != 1` labels, guard `stop()`/`~Completions()` against concurrent double-join and in-flight recording during teardown, and add a pure-CPU mock-Vulkan unit + TSan test.
Author
Owner

@RK28A commented on GitHub (Nov 25, 2026):

done: MODS-MANIFEST-RUNTIME-RULES -> #1834

done: MODS-PACKAGE-FILE-NAMES -> #1835

<!-- gh-comment-id:7162961399 --> @RK28A commented on GitHub (Nov 25, 2026): done: MODS-MANIFEST-RUNTIME-RULES -> #1834 done: MODS-PACKAGE-FILE-NAMES -> #1835
Author
Owner

@DadaCap commented on GitHub (Nov 25, 2026):

finding: the device loss that follows the WRITE_INVALID (GPU hang in lib_cs_01144, 7162630346) is a null descriptor the layer writes itself: the console heap copy's 4 ms fix budget. With LEONIDA_CONSOLE_FIX_US=0 the run survives the first world frame: no device loss in 480 s. (n=1 with it, n=2 hangs without it)

Where: runtime/shims/d3d12_vulkan_device.cpp, fix_console_slots (added by #1723). Past LEONIDA_CONSOLE_FIX_US (4,000 us by default) of fixing in one submission, a changed slot is written to the GPU's copy as a null descriptor and left to retry_console_slots, which gets 500 us a submission. At the world start, log intervals report 7,891 to 30,249 slots "left to retries past the budget" and 7,363 to 29,952 waiting.

What it does to a shader: the compute input probe on that dispatch (64x32x1 groups, execute 3568, list 5, command 24): the table at root s4 is right, and the two slots of the table at root s5 are all zero in the GPU's copy while the title's own memory holds a valid buffer and a valid texture (words=[0 ...] title-words=[...] null, writer none recorded). The program's loop bounds are cvt_u32(size0 / size1 * pixel) with size1 read from that buffer. Zero gives an infinite bound, so the loops never end: 136 and 150 fault entries of type 4 in one 4.5 KiB range, no type 2.

Why it matters: a budget that nulls descriptors changes results in any shader, and one that divides by what it reads can hang the GPU. Workaround for anyone testing now: LEONIDA_CONSOLE_FIX_US=0.

After it: the run then stops making submissions at 104 s without a loss (list waits: 1,717 recorded, 1,643 met, 16 relayed; 33 gates held, 0 met, 33 timed out). I am looking at that next.

Setup as in 7162630346 (RTX 5080, NVIDIA 621.24, host image copy off with #1827's staged upload). Counts and program names only.

claiming: RT-CONSOLE-FIX-BUDGET-NULL - a changed console heap slot past the fix budget is not given to shaders as a null descriptor. AI-assisted (Claude Code).

<!-- gh-comment-id:7162983619 --> @DadaCap commented on GitHub (Nov 25, 2026): finding: the device loss that follows the WRITE_INVALID (GPU hang in `lib_cs_01144`, [7162630346](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7162630346)) is a null descriptor the layer writes itself: the console heap copy's 4 ms fix budget. **With `LEONIDA_CONSOLE_FIX_US=0` the run survives the first world frame: no device loss in 480 s.** (n=1 with it, n=2 hangs without it) **Where:** `runtime/shims/d3d12_vulkan_device.cpp`, `fix_console_slots` (added by #1723). Past `LEONIDA_CONSOLE_FIX_US` (4,000 us by default) of fixing in one submission, a changed slot is written to the GPU's copy as a null descriptor and left to `retry_console_slots`, which gets 500 us a submission. At the world start, log intervals report 7,891 to 30,249 slots "left to retries past the budget" and 7,363 to 29,952 waiting. **What it does to a shader:** the compute input probe on that dispatch (64x32x1 groups, execute 3568, list 5, command 24): the table at root s4 is right, and the two slots of the table at root s5 are all zero in the GPU's copy while the title's own memory holds a valid buffer and a valid texture (`words=[0 ...] title-words=[...] null`, writer none recorded). The program's loop bounds are `cvt_u32(size0 / size1 * pixel)` with `size1` read from that buffer. Zero gives an infinite bound, so the loops never end: 136 and 150 fault entries of type 4 in one 4.5 KiB range, no type 2. **Why it matters:** a budget that nulls descriptors changes results in any shader, and one that divides by what it reads can hang the GPU. Workaround for anyone testing now: `LEONIDA_CONSOLE_FIX_US=0`. **After it:** the run then stops making submissions at 104 s without a loss (list waits: 1,717 recorded, 1,643 met, 16 relayed; 33 gates held, 0 met, 33 timed out). I am looking at that next. Setup as in 7162630346 (RTX 5080, NVIDIA 621.24, host image copy off with #1827's staged upload). Counts and program names only. claiming: RT-CONSOLE-FIX-BUDGET-NULL - a changed console heap slot past the fix budget is not given to shaders as a null descriptor. AI-assisted (Claude Code).
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claiming: GAME-RUN-SUMMARY-STDOUT-BOM-AND-VALIDATION - add stdlib sys.stdout.reconfigure(errors='replace') guard in tools/game_run_summary.py, decode UTF-8-SIG in _read_int, catch OSError in _lines, catch RecursionError on boot.jsonl JSON parse, reject non-positive --limit-seconds, and add unit tests in tests/test_game_run_summary.py

<!-- gh-comment-id:7163012307 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claiming: GAME-RUN-SUMMARY-STDOUT-BOM-AND-VALIDATION - add stdlib sys.stdout.reconfigure(errors='replace') guard in tools/game_run_summary.py, decode UTF-8-SIG in _read_int, catch OSError in _lines, catch RecursionError on boot.jsonl JSON parse, reject non-positive --limit-seconds, and add unit tests in tests/test_game_run_summary.py
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-GPU-LABELS-COMPLETIONS-SAFETY -> #1836

<!-- gh-comment-id:7163020377 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-GPU-LABELS-COMPLETIONS-SAFETY -> #1836
Author
Owner

@delysidemanYT1 commented on GitHub (Nov 25, 2026):

claiming:

  • SEMANTIC-SCRATCH-ERROR - Report a semantic test worker's scratch directory permission failure without aborting the rest of the run.
  • GPU-SPIRV-AS-DIAGNOSTICS - Preserve assembler failure diagnostics containing undecodable bytes in run_gpu_tests.py.
  • WINE-RESOURCE-LOCK-SHAPE - Validate CTest RESOURCE_LOCK properties before the parallel scheduler consumes them.
  • DOC-GPU-COORDINATION-LINK - Update docs/testing.md to find the current coordination issue after #14 hit its comment cap.
  • GPU-DISASM-SCRATCH-ERROR - Report staging-directory creation or copy failures before the GPU test runner calls the shader translator.
    One PR per item. Synthetic tests or documentation only. AI-assisted.
<!-- gh-comment-id:7163027205 --> @delysidemanYT1 commented on GitHub (Nov 25, 2026): claiming: - SEMANTIC-SCRATCH-ERROR - Report a semantic test worker's scratch directory permission failure without aborting the rest of the run. - GPU-SPIRV-AS-DIAGNOSTICS - Preserve assembler failure diagnostics containing undecodable bytes in run_gpu_tests.py. - WINE-RESOURCE-LOCK-SHAPE - Validate CTest RESOURCE_LOCK properties before the parallel scheduler consumes them. - DOC-GPU-COORDINATION-LINK - Update docs/testing.md to find the current coordination issue after #14 hit its comment cap. - GPU-DISASM-SCRATCH-ERROR - Report staging-directory creation or copy failures before the GPU test runner calls the shader translator. One PR per item. Synthetic tests or documentation only. AI-assisted.
Author
Owner

@usercristian commented on GitHub (Nov 25, 2026):

claiming: TEST-ATOMIC-GUARD - tests/semantic/test_image_atomics_guard.py fails 47 subtests because its helper still requires the guard to be an OpLoad %bool %active, while a shader that never writes EXEC now folds the condition to %true. The file's real assertion - that a lane EXEC turned off skips the image atomic - is therefore not being checked at all. A fix should keep a case with a dynamic EXEC write so a real guard is still exercised.

<!-- gh-comment-id:7163044590 --> @usercristian commented on GitHub (Nov 25, 2026): claiming: TEST-ATOMIC-GUARD - tests/semantic/test_image_atomics_guard.py fails 47 subtests because its helper still requires the guard to be an OpLoad %bool %active, while a shader that never writes EXEC now folds the condition to %true. The file's real assertion - that a lane EXEC turned off skips the image atomic - is therefore not being checked at all. A fix should keep a case with a dynamic EXEC write so a real guard is still exercised.
Author
Owner

@MoonEyes commented on GitHub (Nov 25, 2026):

status: RT-CONSOLE-SLOT-SECOND-HALF - dropped, no PR. With @OreoFR's game run on main + the change (fix_vsharp on the second half of a slot whose first half is data): it does not prevent the world-start WRITE_INVALID (crash A, loss at ~248 s, earlier than usual), and over 65,000 second halves were treated as V#s and zeroed, so most are not V#s: the w[7]>>30 guard is too weak, and the zeroed slots flooded the empty-slot probes (96,297 deferred, 132,451 waiting before the loss). The gap itself (a second half reaching the GPU copy unchecked when the first half is data) is real; a fix would need to call fix_vsharp only when the half decodes as a V# (gfx10::decode) and keep data slots out of empty_slots. Leaving it as a note.

<!-- gh-comment-id:7163053324 --> @MoonEyes commented on GitHub (Nov 25, 2026): status: RT-CONSOLE-SLOT-SECOND-HALF - dropped, no PR. With @OreoFR's game run on main + the change (fix_vsharp on the second half of a slot whose first half is data): it does not prevent the world-start WRITE_INVALID (crash A, loss at ~248 s, earlier than usual), and over 65,000 second halves were treated as V#s and zeroed, so most are not V#s: the w[7]>>30 guard is too weak, and the zeroed slots flooded the empty-slot probes (96,297 deferred, 132,451 waiting before the loss). The gap itself (a second half reaching the GPU copy unchecked when the first half is data) is real; a fix would need to call fix_vsharp only when the half decodes as a V# (gfx10::decode) and keep data slots out of empty_slots. Leaving it as a note.
Author
Owner

@CLHelper commented on GitHub (Nov 25, 2026):

releasing: PIPELINE-SEED-LIBRARY - finding: on NVIDIA the offline seed does not hit in gta6rt for the library's compute programs, so seeding spirv/library (the change) gives nothing there and only lengthens the pipelines stage. Not opening the pull request; the branch is CLHelper/leonida-ubi tools/pipeline-seed-library (b5cbafb9d, tests and docs included) for anyone on a driver where the seed does hit.

Setup: RTX 4060 Laptop 8 GB, NVIDIA 576.80, Windows 11. Main 57ba40bd6 + the change + #1558 (for the slot-133 D16S8 stop), shaders translated by that tree. LEONIDA_TITLE_WATCHDOG=0, LEONIDA_PIPELINE_CACHE_BYTES=0 (no session file), LEONIDA_ARENA_MB=2048, default input script; the driver's own GLCache/DXCache cleared before every run; 330 s per run. Counted: the runtime's compute pipeline library/lib_cs_* took N s to build lines.

Run Seed in LEONIDA_PIPELINE_CACHE_DIR slow lib_cs builds sum
cold none 25 84 s
seeded vk_pipeline_check spirv/library (864 MB; stopped at about 65 % after 1 h 50 min, the inline-slow programs lib_cs_010xx-014xx all in it) 30 108 s
renamed the same checker copied as gta6rt.exe, over just the 36 slow programs (6.4 MB, 27 s) 33 118 s

The runtime logs loaded ... bytes from pipeline_cache.bin in both seeded runs, and the same programs take the same time in all three (lib_cs_01122 6.9 / 8.3 / 8.6 s, lib_cs_01433 4.5 / 6.0 / 6.0 s); the seeded runs got further in 330 s, hence more lines. So on this driver it is not (only) the executable name from docs/pipeline_check.md.

What I checked of the key: for the 22 of the 36 with no bindings, the checker's runtime-layout path (uses_runtime_compute_layout) builds the same layout as the runtime (no set, 144 push bytes) and applies a subgroup request through the same apply_subgroup_request (I did not compare the requested sizes), and they still miss. The 14 with bindings take the checker's own layout (layout_for), not the runtime's bindless set 0, so those cannot hit as it stands. The rest of the difference is device-side (enabled features or extensions), which I did not chase.

For DadaCap's world-start finding this means the offline seed is not a way around the inline compiles on NVIDIA today; the runtime side (TheGeogeo's RT-BIG-COMPUTE-BUDGET) is. Also of note there: the session cache is written at teardown (or with LEONIDA_STARTUP_CACHE_CHECKPOINTS=1, every 120 s when no compile runs), so runs that end in the watchdog or a device loss never keep what they compiled. AI-assisted.

<!-- gh-comment-id:7163057432 --> @CLHelper commented on GitHub (Nov 25, 2026): releasing: PIPELINE-SEED-LIBRARY - finding: on NVIDIA the offline seed does not hit in `gta6rt` for the library's compute programs, so seeding `spirv/library` (the change) gives nothing there and only lengthens the `pipelines` stage. Not opening the pull request; the branch is `CLHelper/leonida-ubi` `tools/pipeline-seed-library` (b5cbafb9d, tests and docs included) for anyone on a driver where the seed does hit. **Setup:** RTX 4060 Laptop 8 GB, NVIDIA 576.80, Windows 11. Main 57ba40bd6 + the change + #1558 (for the slot-133 D16S8 stop), shaders translated by that tree. `LEONIDA_TITLE_WATCHDOG=0`, `LEONIDA_PIPELINE_CACHE_BYTES=0` (no session file), `LEONIDA_ARENA_MB=2048`, default input script; the driver's own GLCache/DXCache cleared before every run; 330 s per run. Counted: the runtime's `compute pipeline library/lib_cs_* took N s to build` lines. | Run | Seed in `LEONIDA_PIPELINE_CACHE_DIR` | slow `lib_cs` builds | sum | |---|---|---|---| | cold | none | 25 | 84 s | | seeded | `vk_pipeline_check spirv/library` (864 MB; stopped at about 65 % after 1 h 50 min, the inline-slow programs `lib_cs_010xx`-`014xx` all in it) | 30 | 108 s | | renamed | the same checker copied as `gta6rt.exe`, over just the 36 slow programs (6.4 MB, 27 s) | 33 | 118 s | The runtime logs `loaded ... bytes from pipeline_cache.bin` in both seeded runs, and the same programs take the same time in all three (`lib_cs_01122` 6.9 / 8.3 / 8.6 s, `lib_cs_01433` 4.5 / 6.0 / 6.0 s); the seeded runs got further in 330 s, hence more lines. So on this driver it is not (only) the executable name from `docs/pipeline_check.md`. What I checked of the key: for the 22 of the 36 with no bindings, the checker's runtime-layout path (`uses_runtime_compute_layout`) builds the same layout as the runtime (no set, 144 push bytes) and applies a subgroup request through the same `apply_subgroup_request` (I did not compare the requested sizes), and they still miss. The 14 with bindings take the checker's own layout (`layout_for`), not the runtime's bindless set 0, so those cannot hit as it stands. The rest of the difference is device-side (enabled features or extensions), which I did not chase. For DadaCap's world-start finding this means the offline seed is not a way around the inline compiles on NVIDIA today; the runtime side (TheGeogeo's RT-BIG-COMPUTE-BUDGET) is. Also of note there: the session cache is written at teardown (or with `LEONIDA_STARTUP_CACHE_CHECKPOINTS=1`, every 120 s when no compile runs), so runs that end in the watchdog or a device loss never keep what they compiled. AI-assisted.
Author
Owner

@HasiKe commented on GitHub (Nov 25, 2026):

Correction to my finding above (lib_cs_01405 device loss): it is a duplicate of #1537, which measured the same dispatch, the same title-window cap and the same int3 earlier. With LEONIDA_TITLE_WINDOWS_MB=4096 LEONIDA_ARENA_MB=4096 the device loss is gone on my RTX 2070 SUPER as well, up to the watchdog stop at +0x23cf683. Details are in my comment on #1537. Nothing new to list here; please treat it as a confirmation of #1537.

<!-- gh-comment-id:7163066110 --> @HasiKe commented on GitHub (Nov 25, 2026): Correction to my finding above (`lib_cs_01405` device loss): it is a duplicate of #1537, which measured the same dispatch, the same title-window cap and the same int3 earlier. With `LEONIDA_TITLE_WINDOWS_MB=4096 LEONIDA_ARENA_MB=4096` the device loss is gone on my RTX 2070 SUPER as well, up to the watchdog stop at `+0x23cf683`. Details are in my comment on #1537. Nothing new to list here; please treat it as a confirmation of #1537.
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: GAME-RUN-SUMMARY-STDOUT-BOM-AND-VALIDATION -> #1837 (https://github.com/ubiquitarianism/leonida/pull/1837)

<!-- gh-comment-id:7163083449 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: GAME-RUN-SUMMARY-STDOUT-BOM-AND-VALIDATION -> #1837 (https://github.com/ubiquitarianism/leonida/pull/1837)
Author
Owner

@BubsMcgee commented on GitHub (Nov 25, 2026):

claiming: D3D-302 - real SO_STATISTICS query pools only (StreamOutput PSOs still refused, SOSetTargets still not implemented); PR #1630. The capture path is not part of this PR.

<!-- gh-comment-id:7163085669 --> @BubsMcgee commented on GitHub (Nov 25, 2026): claiming: D3D-302 - real SO_STATISTICS query pools only (StreamOutput PSOs still refused, SOSetTargets still not implemented); PR #1630. The capture path is not part of this PR.
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claiming: SPIRV-LOOP-GUARD-CRLF-SAFETY-AND-TESTS - preserve CRLF line endings without splitting OpPhi lines in tools/spirv_loop_guard.py, reject non-integer/bool limits and malformed OpConstant/missing OpFunction cleanly, and add unit tests in tests/test_spirv_loop_guard.py

<!-- gh-comment-id:7163090236 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claiming: SPIRV-LOOP-GUARD-CRLF-SAFETY-AND-TESTS - preserve CRLF line endings without splitting OpPhi lines in tools/spirv_loop_guard.py, reject non-integer/bool limits and malformed OpConstant/missing OpFunction cleanly, and add unit tests in tests/test_spirv_loop_guard.py
Author
Owner

@DadaCap commented on GitHub (Nov 25, 2026):

@QemmHD about RT-HOST-IMAGE-COPY-SWITCH (7162848027): an auto that is off on NVIDIA needs #1827 in front of it. Without it no title texture is filled when host copies are off (green intro movie, 0.0 MiB filled; confirmed on an RTX 4090 by ecox982745 on the pull request: 0 of 21 subresources without the change, 21 of 21 with it). I suggest Depends on: #1827. #1810 (abnalstlll-byte) already adds the =0 half of the switch, so the two of you may want to settle which one carries it.

Two of my results that match yours on the RTX 5080, host copies off and textures uploaded: 2 of 2 boots past the first world frame have no type 2 fault (m41, m43; they hang later in lib_cs_01144), and 2 of 2 with LEONIDA_CONSOLE_FIX_US=0 as well have no device loss at all (480 s and 210 s; 7162983619). Those two stop making submissions right after the first world frame: everything submitted has retired, so I read it as work held behind a fence nobody signals, and I'm dumping the held queues now. AI-assisted (Claude Code).

<!-- gh-comment-id:7163127774 --> @DadaCap commented on GitHub (Nov 25, 2026): @QemmHD about RT-HOST-IMAGE-COPY-SWITCH ([7162848027](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7162848027)): an `auto` that is off on NVIDIA needs #1827 in front of it. Without it no title texture is filled when host copies are off (green intro movie, `0.0 MiB filled`; confirmed on an RTX 4090 by ecox982745 on the pull request: 0 of 21 subresources without the change, 21 of 21 with it). I suggest `Depends on: #1827`. #1810 (abnalstlll-byte) already adds the `=0` half of the switch, so the two of you may want to settle which one carries it. Two of my results that match yours on the RTX 5080, host copies off and textures uploaded: 2 of 2 boots past the first world frame have no type 2 fault (m41, m43; they hang later in `lib_cs_01144`), and 2 of 2 with `LEONIDA_CONSOLE_FIX_US=0` as well have no device loss at all (480 s and 210 s; [7162983619](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7162983619)). Those two stop making submissions right after the first world frame: everything submitted has retired, so I read it as work held behind a fence nobody signals, and I'm dumping the held queues now. AI-assisted (Claude Code).
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: SPIRV-LOOP-GUARD-CRLF-SAFETY-AND-TESTS -> #1842 (https://github.com/ubiquitarianism/leonida/pull/1842)

<!-- gh-comment-id:7163132461 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: SPIRV-LOOP-GUARD-CRLF-SAFETY-AND-TESTS -> #1842 (https://github.com/ubiquitarianism/leonida/pull/1842)
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claiming: CARVE-ALL-FILE-FILTER-EMPTY-AND-ATOMIC-COVERAGE - validate -Game directory in scripts/carve_all.ps1, filter Get-ChildItem with -File, publish coverage.json atomically (with valid [] on empty game dir and bracketed -Out safety), and add PowerShell 5.1 regression tests in tests/test_carve_all_paths.py

<!-- gh-comment-id:7163140447 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claiming: CARVE-ALL-FILE-FILTER-EMPTY-AND-ATOMIC-COVERAGE - validate -Game directory in scripts/carve_all.ps1, filter Get-ChildItem with -File, publish coverage.json atomically (with valid [] on empty game dir and bracketed -Out safety), and add PowerShell 5.1 regression tests in tests/test_carve_all_paths.py
Author
Owner

@aslan2142 commented on GitHub (Nov 25, 2026):

done: RT-INPUT-SCRIPT-NO-SDL3 -> #1843

<!-- gh-comment-id:7163146374 --> @aslan2142 commented on GitHub (Nov 25, 2026): done: RT-INPUT-SCRIPT-NO-SDL3 -> #1843
Author
Owner

@cheltyi commented on GitHub (Nov 25, 2026):

claiming: GAMEDATA-EMPTY-TYPED-OBJECTS - preserve the class of empty non-NULL typed XML objects in tools/gamedata_reader.py. The current reader turns a hand-written into an empty string; a whole local common.rpf check found 173 affected objects in 13 well-formed documents. Add synthetic regression coverage and document the corrected conversion. This is separate from #1557 (root filtering/output I/O), whose _convert is unchanged. Checked open PRs and both coordination threads. AI-assisted: Codex.

<!-- gh-comment-id:7163147873 --> @cheltyi commented on GitHub (Nov 25, 2026): claiming: GAMEDATA-EMPTY-TYPED-OBJECTS - preserve the class of empty non-NULL typed XML objects in tools/gamedata_reader.py. The current reader turns a hand-written <Item type="CEmpty"/> into an empty string; a whole local common.rpf check found 173 affected objects in 13 well-formed documents. Add synthetic regression coverage and document the corrected conversion. This is separate from #1557 (root filtering/output I/O), whose _convert is unchanged. Checked open PRs and both coordination threads. AI-assisted: Codex.
Author
Owner

@cheltyi commented on GitHub (Nov 25, 2026):

claiming: ANIM-GLB-WINDOW-ENDPOINTS - preserve an anim_glb clip window by sampling its start/end boundaries, with linear translation/scale interpolation and quaternion interpolation for rotations. Current clip_channels drops off-grid endpoint samples: a synthetic one-second moving window [0.5,1.5] with keys at 0,1,2 becomes one static key. Add synthetic GLB playback/duration regression coverage and update the window contract. Separate from #1221/#308 (extra weighted bones). Checked open PRs and both coordination threads. AI-assisted: Codex.

<!-- gh-comment-id:7163148388 --> @cheltyi commented on GitHub (Nov 25, 2026): claiming: ANIM-GLB-WINDOW-ENDPOINTS - preserve an anim_glb clip window by sampling its start/end boundaries, with linear translation/scale interpolation and quaternion interpolation for rotations. Current clip_channels drops off-grid endpoint samples: a synthetic one-second moving window [0.5,1.5] with keys at 0,1,2 becomes one static key. Add synthetic GLB playback/duration regression coverage and update the window contract. Separate from #1221/#308 (extra weighted bones). Checked open PRs and both coordination threads. AI-assisted: Codex.
Author
Owner

@delysidemanYT1 commented on GitHub (Nov 25, 2026):

done: SEMANTIC-SCRATCH-ERROR -> #1838
done: GPU-SPIRV-AS-DIAGNOSTICS -> #1839
done: DOC-GPU-COORDINATION-LINK -> #1840
done: GPU-DISASM-SCRATCH-ERROR -> #1841
done: WINE-RESOURCE-LOCK-SHAPE -> #1845

<!-- gh-comment-id:7163153731 --> @delysidemanYT1 commented on GitHub (Nov 25, 2026): done: SEMANTIC-SCRATCH-ERROR -> #1838 done: GPU-SPIRV-AS-DIAGNOSTICS -> #1839 done: DOC-GPU-COORDINATION-LINK -> #1840 done: GPU-DISASM-SCRATCH-ERROR -> #1841 done: WINE-RESOURCE-LOCK-SHAPE -> #1845
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-QUEUE-RECYCLE-AND-STATS-BOUNDS — fix three replay/queue bugs in runtime/src/vulkan_backend.h and runtime/src/vulkan_replay.h: (1) bound VulkanQueue::execute_now()'s statistics->mesh collection loop (vulkan_backend.h:3151) to lists.size() instead of iterating stale retained entries past lists.size() in prepared_; (2) reset predicate, predicated_copy, counted_dispatch, and indirect_clamp batches in VulkanQueue::recycle_finished() across all completed CommandSlots (not only the single reuse slot in acquire()), preventing leaked VkDeviceMemory, VkDescriptorPool, and IndirectArgumentClamp counter slots after submission bursts; (3) short-circuit ExecuteIndirect(dispatch) with max_count == 0 before prepare_indirect_clamp / prepare_counted_dispatch so a valid zero-count no-op does not fail the command list.

<!-- gh-comment-id:7163162118 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: `RT-QUEUE-RECYCLE-AND-STATS-BOUNDS` — fix three replay/queue bugs in `runtime/src/vulkan_backend.h` and `runtime/src/vulkan_replay.h`: (1) bound `VulkanQueue::execute_now()`'s `statistics->mesh` collection loop (`vulkan_backend.h:3151`) to `lists.size()` instead of iterating stale retained entries past `lists.size()` in `prepared_`; (2) reset `predicate`, `predicated_copy`, `counted_dispatch`, and `indirect_clamp` batches in `VulkanQueue::recycle_finished()` across all completed `CommandSlot`s (not only the single `reuse` slot in `acquire()`), preventing leaked `VkDeviceMemory`, `VkDescriptorPool`, and `IndirectArgumentClamp` counter slots after submission bursts; (3) short-circuit `ExecuteIndirect(dispatch)` with `max_count == 0` before `prepare_indirect_clamp` / `prepare_counted_dispatch` so a valid zero-count no-op does not fail the command list.
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: CARVE-ALL-FILE-FILTER-EMPTY-AND-ATOMIC-COVERAGE -> #1847 (https://github.com/ubiquitarianism/leonida/pull/1847)

<!-- gh-comment-id:7163194742 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: CARVE-ALL-FILE-FILTER-EMPTY-AND-ATOMIC-COVERAGE -> #1847 (https://github.com/ubiquitarianism/leonida/pull/1847)
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claiming: CONFORMANCE-NEGATIVE-CONTROL-PS1-SAFETY - check CMake configure exit code, guard NativeCommandError and empty Compare-Object arrays, use -LiteralPath and try/finally scratch cleanup in tools/conformance/native/scripts/negative-control.ps1, and add PowerShell 5.1 tests in tests/test_conformance_negative_control.py

<!-- gh-comment-id:7163205423 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claiming: CONFORMANCE-NEGATIVE-CONTROL-PS1-SAFETY - check CMake configure exit code, guard NativeCommandError and empty Compare-Object arrays, use -LiteralPath and try/finally scratch cleanup in tools/conformance/native/scripts/negative-control.ps1, and add PowerShell 5.1 tests in tests/test_conformance_negative_control.py
Author
Owner

@Timon360SB commented on GitHub (Nov 25, 2026):

done: GPU-RTX5070-WIN-REFRESH -> #1844

done: GPU-RTX2060SUPER-WIN-REFRESH -> #1846

<!-- gh-comment-id:7163213717 --> @Timon360SB commented on GitHub (Nov 25, 2026): done: GPU-RTX5070-WIN-REFRESH -> #1844 done: GPU-RTX2060SUPER-WIN-REFRESH -> #1846
Author
Owner

@QemmHD commented on GitHub (Nov 25, 2026):

finding (separate from the world-start device loss): 3D image views with a nonzero base array layer. Under LEONIDA_VK_VALIDATION=1 on a real boot (RTX 4070 SUPER, Windows 11), the layer creates 2-4 image views of type 3D on a 33×33×33 R16G16B16A16_SFLOAT storage texture with a base array layer of 368, 1174 or 6784. The value changes from boot to boot, which suggests it's read from uninitialised or title-written view data rather than a fixed field. That violates VUID-VkImageViewCreateInfo-image-06724 / -subresourceRange-06725: a 3D image has one array layer. Clamping those views to layer 0 locally does not remove the device loss (one run), so it's its own bug. Probably in how a D3D12 Texture3D SRV/UAV desc (FirstWSlice/WSize vs FirstArraySlice) maps onto VkImageSubresourceRange. A synthetic test is easy: a Texture3D UAV desc with FirstWSlice != 0 should give baseArrayLayer 0. Unclaimed; I'm noting it here so it isn't lost.

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

<!-- gh-comment-id:7163255196 --> @QemmHD commented on GitHub (Nov 25, 2026): finding (separate from the world-start device loss): **3D image views with a nonzero base array layer.** Under `LEONIDA_VK_VALIDATION=1` on a real boot (RTX 4070 SUPER, Windows 11), the layer creates 2-4 image views of type 3D on a 33×33×33 `R16G16B16A16_SFLOAT` storage texture with a base array layer of 368, 1174 or 6784. The value changes from boot to boot, which suggests it's read from uninitialised or title-written view data rather than a fixed field. That violates VUID-VkImageViewCreateInfo-image-06724 / -subresourceRange-06725: a 3D image has one array layer. Clamping those views to layer 0 locally does **not** remove the device loss (one run), so it's its own bug. Probably in how a D3D12 Texture3D SRV/UAV desc (`FirstWSlice`/`WSize` vs `FirstArraySlice`) maps onto `VkImageSubresourceRange`. A synthetic test is easy: a Texture3D UAV desc with `FirstWSlice` != 0 should give `baseArrayLayer` 0. Unclaimed; I'm noting it here so it isn't lost. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: CONFORMANCE-NEGATIVE-CONTROL-PS1-SAFETY -> #1848 (https://github.com/ubiquitarianism/leonida/pull/1848)

<!-- gh-comment-id:7163262854 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: CONFORMANCE-NEGATIVE-CONTROL-PS1-SAFETY -> #1848 (https://github.com/ubiquitarianism/leonida/pull/1848)
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claiming: INT-HW-PROBE-ATOMIC-JSON-AND-PATH-SAFETY - reject trailing-separator --json paths upfront, publish --json atomically via mkstemp + fsync + published_mode + replace_retry with staging cleanup in tools/int_hw_probe.py, and add atomic JSON regression tests in tests/test_int_hw_probe.py

<!-- gh-comment-id:7163274170 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claiming: INT-HW-PROBE-ATOMIC-JSON-AND-PATH-SAFETY - reject trailing-separator --json paths upfront, publish --json atomically via mkstemp + fsync + published_mode + replace_retry with staging cleanup in tools/int_hw_probe.py, and add atomic JSON regression tests in tests/test_int_hw_probe.py
Author
Owner

@DadaCap commented on GitHub (Nov 25, 2026):

done: RT-CONSOLE-FIX-BUDGET-NULL -> #1849

Correction to my 7163127774 and 7162983619: the run that stops making submissions after the first world frame is not a fence nobody signals. In a third run (m46) I dumped the held queues and the call chains: 4 compute queues are held behind list-value gates, 40 gates are decided but only 17 were signalled, because the thread that signals them is inside execute_now building one compute pipeline in the driver's compiler (still in it at 200 s, the last submission at about 125 s). Every queue waits behind that one build. I have not yet named the program; a 30 minute run with LEONIDA_TRACE_PIPELINE_COMPILE=1 is going. AI-assisted (Claude Code).

<!-- gh-comment-id:7163275522 --> @DadaCap commented on GitHub (Nov 25, 2026): done: RT-CONSOLE-FIX-BUDGET-NULL -> #1849 Correction to my [7163127774](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7163127774) and 7162983619: the run that stops making submissions after the first world frame is not a fence nobody signals. In a third run (m46) I dumped the held queues and the call chains: 4 compute queues are held behind list-value gates, 40 gates are decided but only 17 were signalled, because the thread that signals them is inside `execute_now` building one compute pipeline in the driver's compiler (still in it at 200 s, the last submission at about 125 s). Every queue waits behind that one build. I have not yet named the program; a 30 minute run with `LEONIDA_TRACE_PIPELINE_COMPILE=1` is going. AI-assisted (Claude Code).
Author
Owner

@cheltyi commented on GitHub (Nov 25, 2026):

finding: run_build_stages silently discards unexpected stage exceptions.

Where: make_game.py:2924-2925 (also the wait/final-future handlers in run_build_stages). These handlers assume fail() printed a diagnostic, but catch every Exception. Patching the runtime builder to raise the synthetic PermissionError(13, 'Permission denied', 'synthetic-output') produces exit 1 and empty stderr under both overlap=False and overlap=True, with only initial progress on stdout. Permissions, disk or copy failures can therefore have no visible cause. Report the stage and unexpected exception once, preserving fail() diagnostics. Related #1378 adds plain logs but does not diagnose arbitrary exceptions. Reproduction needs no game files or GPU; no matching open PR/claim found in the audit.

finding: CPU D24 clear conversion follows the submitting thread's rounding mode and can disagree with GPU conversion.

Where: runtime/src/depth24.h:37-43 uses float multiplication and std::nearbyint, whereas runtime/src/depth24_convert.comp:48 uses roundEven. The same synthetic float 0x1p-23f quantizes to 2 under FE_TONEAREST, but 1 under FE_DOWNWARD or FE_TOWARDZERO (g++ -std=c++20 -O2 -frounding-math). The latter misses the exact scaled value by almost 1 integer ULP, beyond the documented 0.6 ULP tolerance. CPU clears through runtime/src/vulkan_replay.h:4545 can therefore disagree with uploads/copies during D24 emulation and depth comparisons on a calling thread with directed rounding. depth24_to_float also follows that environment. #524 concerns scratch bounds; #1764 concerns D16S8. CPU reproduction needs no game files or GPU. Retail impact has not been measured; no matching open PR/claim found.

AI-assisted: Codex. These are findings only; the current implementation work is GAMEDATA-EMPTY-TYPED-OBJECTS. ANIM-GLB-WINDOW-ENDPOINTS is deferred until the user reviews the first PR; no animation PR is being opened now.

<!-- gh-comment-id:7163281819 --> @cheltyi commented on GitHub (Nov 25, 2026): finding: run_build_stages silently discards unexpected stage exceptions. Where: make_game.py:2924-2925 (also the wait/final-future handlers in run_build_stages). These handlers assume fail() printed a diagnostic, but catch every Exception. Patching the runtime builder to raise the synthetic PermissionError(13, 'Permission denied', 'synthetic-output') produces exit 1 and empty stderr under both overlap=False and overlap=True, with only initial progress on stdout. Permissions, disk or copy failures can therefore have no visible cause. Report the stage and unexpected exception once, preserving fail() diagnostics. Related #1378 adds plain logs but does not diagnose arbitrary exceptions. Reproduction needs no game files or GPU; no matching open PR/claim found in the audit. finding: CPU D24 clear conversion follows the submitting thread's rounding mode and can disagree with GPU conversion. Where: runtime/src/depth24.h:37-43 uses float multiplication and std::nearbyint, whereas runtime/src/depth24_convert.comp:48 uses roundEven. The same synthetic float 0x1p-23f quantizes to 2 under FE_TONEAREST, but 1 under FE_DOWNWARD or FE_TOWARDZERO (g++ -std=c++20 -O2 -frounding-math). The latter misses the exact scaled value by almost 1 integer ULP, beyond the documented 0.6 ULP tolerance. CPU clears through runtime/src/vulkan_replay.h:4545 can therefore disagree with uploads/copies during D24 emulation and depth comparisons on a calling thread with directed rounding. depth24_to_float also follows that environment. #524 concerns scratch bounds; #1764 concerns D16S8. CPU reproduction needs no game files or GPU. Retail impact has not been measured; no matching open PR/claim found. AI-assisted: Codex. These are findings only; the current implementation work is GAMEDATA-EMPTY-TYPED-OBJECTS. ANIM-GLB-WINDOW-ENDPOINTS is deferred until the user reviews the first PR; no animation PR is being opened now.
Author
Owner

@cheltyi commented on GitHub (Nov 25, 2026):

done: GAMEDATA-EMPTY-TYPED-OBJECTS -> #1850

<!-- gh-comment-id:7163316958 --> @cheltyi commented on GitHub (Nov 25, 2026): done: GAMEDATA-EMPTY-TYPED-OBJECTS -> #1850
Author
Owner

@QemmHD commented on GitHub (Nov 25, 2026):

done: RT-HOST-IMAGE-COPY-SWITCH is up as #1851 (LEONIDA_HOST_IMAGE_COPY=0|1|auto, auto = off on NVIDIA, one log line, a unit-tested decision table). Reviews, and replications with =1 vs the default on other cards, are welcome.

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

<!-- gh-comment-id:7163336927 --> @QemmHD commented on GitHub (Nov 25, 2026): done: RT-HOST-IMAGE-COPY-SWITCH is up as #1851 (`LEONIDA_HOST_IMAGE_COPY=0|1|auto`, auto = off on NVIDIA, one log line, a unit-tested decision table). Reviews, and replications with `=1` vs the default on other cards, are welcome. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@ambroseautomation commented on GitHub (Nov 25, 2026):

claiming: BUILD-FALLBACK-PSO-STREAM - scripts/build_runtime.ps1's cl.exe fallback fails on main (98c2f7777) with 6 LNK2019 unresolved PsoStreamRecord/derive_stream/attach_pso_record/find_pso_record externals in root_sig_test.exe (and device_proxy_test.exe) because both compile shims/d3d12_xs_device.cpp without shims/d3d12_xs_pso_stream.cpp. Add d3d12_xs_pso_stream.cpp to both fallback commands and extend tests/test_build_runtime_fallback.py to verify every fallback target compiles every .cpp source CMakeLists.txt assigns it. Verified by running scripts/build_runtime.ps1 and executing the built test binaries on Windows 11. No game files. AI-assisted.

<!-- gh-comment-id:7163342978 --> @ambroseautomation commented on GitHub (Nov 25, 2026): claiming: BUILD-FALLBACK-PSO-STREAM - scripts/build_runtime.ps1's cl.exe fallback fails on main (98c2f7777) with 6 LNK2019 unresolved PsoStreamRecord/derive_stream/attach_pso_record/find_pso_record externals in root_sig_test.exe (and device_proxy_test.exe) because both compile shims/d3d12_xs_device.cpp without shims/d3d12_xs_pso_stream.cpp. Add d3d12_xs_pso_stream.cpp to both fallback commands and extend tests/test_build_runtime_fallback.py to verify every fallback target compiles every .cpp source CMakeLists.txt assigns it. Verified by running scripts/build_runtime.ps1 and executing the built test binaries on Windows 11. No game files. AI-assisted.
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: INT-HW-PROBE-ATOMIC-JSON-AND-PATH-SAFETY -> #1852 (https://github.com/ubiquitarianism/leonida/pull/1852)

<!-- gh-comment-id:7163352310 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: INT-HW-PROBE-ATOMIC-JSON-AND-PATH-SAFETY -> #1852 (https://github.com/ubiquitarianism/leonida/pull/1852)
Author
Owner

@MoonEyes commented on GitHub (Nov 25, 2026):

@QemmHD replication for RT-HOST-IMAGE-COPY-SWITCH on a second NVIDIA card and driver, run and measured by @OreoFR (posting with his numbers): RTX 4070 Laptop 8 GB, Windows 11, NVIDIA 621.40, #1723 head d0b0b453f + #1671/#1691/#1703, --wave64-emulate shaders, LEONIDA_ASYNC_PIPELINES=1, local info.host_image_copy = false, same save and input as his earlier runs.

  • With host image copy (5 earlier runs): device lost between 248 and 411 s, at ~3,800-5,500 submissions, WRITE_INVALID in the 0x43c..-0x46a.. range.
  • Without: no device loss over the whole run; 33,281 submissions, ~30 fps (119 submissions/s); list writes 56,044 recorded / 56,037 arrived, 0 failed; 8,215 waits all satisfied at submission; no gate held, no deferred descriptor fixes, no DirectStorage errors. Peak 5.8 GB VRAM / 8 GB.

So on this card and driver too, auto = off on NVIDIA removes the world-start loss. We can rerun with your branch once it is up (and add a desktop RTX 4060, driver 610.88).

AI-assisted (Claude Code).

<!-- gh-comment-id:7163362621 --> @MoonEyes commented on GitHub (Nov 25, 2026): @QemmHD replication for RT-HOST-IMAGE-COPY-SWITCH on a second NVIDIA card and driver, run and measured by @OreoFR (posting with his numbers): RTX 4070 Laptop 8 GB, Windows 11, NVIDIA 621.40, #1723 head d0b0b453f + #1671/#1691/#1703, --wave64-emulate shaders, LEONIDA_ASYNC_PIPELINES=1, local `info.host_image_copy = false`, same save and input as his earlier runs. - With host image copy (5 earlier runs): device lost between 248 and 411 s, at ~3,800-5,500 submissions, WRITE_INVALID in the 0x43c..-0x46a.. range. - Without: no device loss over the whole run; 33,281 submissions, ~30 fps (119 submissions/s); list writes 56,044 recorded / 56,037 arrived, 0 failed; 8,215 waits all satisfied at submission; no gate held, no deferred descriptor fixes, no DirectStorage errors. Peak 5.8 GB VRAM / 8 GB. So on this card and driver too, `auto = off on NVIDIA` removes the world-start loss. We can rerun with your branch once it is up (and add a desktop RTX 4060, driver 610.88). AI-assisted (Claude Code).
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claiming: AB-CONTROL-FLOW-CRLF-BOM-AND-ATOMIC-TSV - decode UTF-8-SIG and CRLF --names/index.json cleanly in tools/ab_control_flow.py, publish outcomes.tsv atomically via mkstemp + fsync + published_mode + replace_retry.replace, pass UTF-8 replacement encoding to subprocess.run, and add regression tests in tests/test_ab_control_flow.py

<!-- gh-comment-id:7163364385 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claiming: AB-CONTROL-FLOW-CRLF-BOM-AND-ATOMIC-TSV - decode UTF-8-SIG and CRLF --names/index.json cleanly in tools/ab_control_flow.py, publish outcomes.tsv atomically via mkstemp + fsync + published_mode + replace_retry.replace, pass UTF-8 replacement encoding to subprocess.run, and add regression tests in tests/test_ab_control_flow.py
Author
Owner

@QemmHD commented on GitHub (Nov 25, 2026):

Follow-up to my 3D-view finding above, with the code location (no open PR seems to cover it; #961 is about volume depth-stencils):

  • Where: runtime/shims/d3d12_vulkan_device.cpp. When the layer binds a title-written T#, it takes the layer range from the descriptor. The check "T# names layers the texture lacks" is skipped for a volume (if (!volume && image.first_layer + image.layer_count > layers)). DeviceState::bind_image_locked then sets view_info.subresourceRange = {..., image.first_mip, image.mip_count, image.first_layer, image.layer_count} whatever the image type. For a volume those T# fields are a depth (W) range, not array layers. The D3D12-description path (image_descriptor) already keeps a volume's range out of the view (VolumeSlices).
  • Fix: for a volume T#, create the view with baseArrayLayer 0 and layerCount 1, and carry the W range the way image_descriptor does (or refuse a partial W range, as that path does for a sampled view). Never pass vkCreateImageView a layer range the image doesn't have.
  • Test with no game files: write a T# for a Texture3D with a nonzero base field into a title heap, the same way the existing title-heap T# tests in d3d12_vulkan_device_test do for 2D arrays. Check that the created view's range is 0+1, and that LEONIDA_VK_VALIDATION=1 reports no VUID-VkImageViewCreateInfo-image-06724.
  • On the real boot: 2-4 such views on a 33×33×33 R16G16B16A16_SFLOAT storage texture, mips 0+1, with base layer 368/1174/6784 depending on the boot. The only other rule reported up to the loss was VUID-VkSubmitInfo-pSignalSemaphores-03242, twice.

Up for grabs; I'll test a fix on the 4070 SUPER under validation.

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

<!-- gh-comment-id:7163373594 --> @QemmHD commented on GitHub (Nov 25, 2026): Follow-up to my 3D-view finding above, with the code location (no open PR seems to cover it; #961 is about volume depth-stencils): - **Where:** `runtime/shims/d3d12_vulkan_device.cpp`. When the layer binds a title-written T#, it takes the layer range from the descriptor. The check "T# names layers the texture lacks" is skipped for a volume (`if (!volume && image.first_layer + image.layer_count > layers)`). `DeviceState::bind_image_locked` then sets `view_info.subresourceRange = {..., image.first_mip, image.mip_count, image.first_layer, image.layer_count}` whatever the image type. For a volume those T# fields are a depth (W) range, not array layers. The D3D12-description path (`image_descriptor`) already keeps a volume's range out of the view (`VolumeSlices`). - **Fix:** for a volume T#, create the view with `baseArrayLayer` 0 and `layerCount` 1, and carry the W range the way `image_descriptor` does (or refuse a partial W range, as that path does for a sampled view). Never pass `vkCreateImageView` a layer range the image doesn't have. - **Test with no game files:** write a T# for a Texture3D with a nonzero base field into a title heap, the same way the existing title-heap T# tests in `d3d12_vulkan_device_test` do for 2D arrays. Check that the created view's range is 0+1, and that `LEONIDA_VK_VALIDATION=1` reports no VUID-VkImageViewCreateInfo-image-06724. - On the real boot: 2-4 such views on a 33×33×33 `R16G16B16A16_SFLOAT` storage texture, mips 0+1, with base layer 368/1174/6784 depending on the boot. The only other rule reported up to the loss was VUID-VkSubmitInfo-pSignalSemaphores-03242, twice. Up for grabs; I'll test a fix on the 4070 SUPER under validation. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@usercristian commented on GitHub (Nov 25, 2026):

finding: TEST-ATOMIC-GUARD appears already fixed on main (0d80bc5df). python3 -I tests/semantic/test_image_atomics_guard.py passes 6/6 and the full semantic suite passes 6288/6288 (489 files, 366 s, 4 jobs). The helper at tests/semantic/test_image_atomics_guard.py:76 still references OpLoad %bool %active (lines 89–96, 291), so the real assertion is still present; the translator no longer folds the condition to %true in the cases exercised. Claim can be released; no PR needed unless a remaining case is known.

<!-- gh-comment-id:7163375644 --> @usercristian commented on GitHub (Nov 25, 2026): finding: TEST-ATOMIC-GUARD appears already fixed on main (0d80bc5df). `python3 -I tests/semantic/test_image_atomics_guard.py` passes 6/6 and the full semantic suite passes 6288/6288 (489 files, 366 s, 4 jobs). The helper at tests/semantic/test_image_atomics_guard.py:76 still references OpLoad %bool %active (lines 89–96, 291), so the real assertion is still present; the translator no longer folds the condition to %true in the cases exercised. Claim can be released; no PR needed unless a remaining case is known.
Author
Owner

@lixonik commented on GitHub (Nov 25, 2026):

claiming: D3D-3D-VIEW-ARRAY-RANGE -- keep Vulkan 3D image view array ranges at layer 0, count 1 for title-authored T#s. I will cover the title descriptor path with a synthetic regression and preserve the separate D3D12 UAV W-slice handling. Finding: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7163255196. AI-assisted.

<!-- gh-comment-id:7163394940 --> @lixonik commented on GitHub (Nov 25, 2026): claiming: D3D-3D-VIEW-ARRAY-RANGE -- keep Vulkan 3D image view array ranges at layer 0, count 1 for title-authored T#s. I will cover the title descriptor path with a synthetic regression and preserve the separate D3D12 UAV W-slice handling. Finding: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7163255196. AI-assisted.
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: AB-CONTROL-FLOW-CRLF-BOM-AND-ATOMIC-TSV -> #1853 (https://github.com/ubiquitarianism/leonida/pull/1853)

<!-- gh-comment-id:7163411133 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: AB-CONTROL-FLOW-CRLF-BOM-AND-ATOMIC-TSV -> #1853 (https://github.com/ubiquitarianism/leonida/pull/1853)
Author
Owner

@ambroseautomation commented on GitHub (Nov 25, 2026):

done: BUILD-FALLBACK-PSO-STREAM -> #1854

<!-- gh-comment-id:7163423347 --> @ambroseautomation commented on GitHub (Nov 25, 2026): done: BUILD-FALLBACK-PSO-STREAM -> #1854
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claiming: IMPORT-CALL-SITES-ORDINARY-IAT-BOUNDS-AND-SINGLE-PARSE - bounds-check ordinary import IAT/lookup RVAs and 8-byte slots in tools/import_call_sites.py, avoid parsing PeImage and import_entries twice in main(), and add regression tests in tests/test_import_call_sites.py

<!-- gh-comment-id:7163426538 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claiming: IMPORT-CALL-SITES-ORDINARY-IAT-BOUNDS-AND-SINGLE-PARSE - bounds-check ordinary import IAT/lookup RVAs and 8-byte slots in tools/import_call_sites.py, avoid parsing PeImage and import_entries twice in main(), and add regression tests in tests/test_import_call_sites.py
Author
Owner

@usercristian commented on GitHub (Nov 25, 2026):

finding: Both "No game files, no GPU" items in the Open work table appear already fixed on main (0d80bc5df).

  • TEST-ATOMIC-GUARD: tests/semantic/test_image_atomics_guard.py passes 6/6; full semantic suite passes 6288/6288 (489 files, 366 s, 4 jobs).
  • SHADER-1264: tests/semantic/test_exec_computed.py passes 2/2.
    The helper at tests/semantic/test_image_atomics_guard.py:76 still references OpLoad %bool %active (lines 89–96, 291), so the real assertion is present. Claim on TEST-ATOMIC-GUARD can be released; no PRs needed unless a remaining case is known. Should the Open work table be updated/closed?
<!-- gh-comment-id:7163458281 --> @usercristian commented on GitHub (Nov 25, 2026): finding: Both "No game files, no GPU" items in the Open work table appear already fixed on main (0d80bc5df). - TEST-ATOMIC-GUARD: `tests/semantic/test_image_atomics_guard.py` passes 6/6; full semantic suite passes 6288/6288 (489 files, 366 s, 4 jobs). - SHADER-1264: `tests/semantic/test_exec_computed.py` passes 2/2. The helper at tests/semantic/test_image_atomics_guard.py:76 still references OpLoad %bool %active (lines 89–96, 291), so the real assertion is present. Claim on TEST-ATOMIC-GUARD can be released; no PRs needed unless a remaining case is known. Should the Open work table be updated/closed?
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: IMPORT-CALL-SITES-ORDINARY-IAT-BOUNDS-AND-SINGLE-PARSE -> #1855 (https://github.com/ubiquitarianism/leonida/pull/1855)

<!-- gh-comment-id:7163469282 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: IMPORT-CALL-SITES-ORDINARY-IAT-BOUNDS-AND-SINGLE-PARSE -> #1855 (https://github.com/ubiquitarianism/leonida/pull/1855)
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claiming: CI-EXPECTED-FAILURES-WINDOWS-CRASH-AND-DEDUP - flag Windows NTSTATUS/unsigned crash exit codes (> 128) as abnormal exits in scripts/ci_expected_failures.py, deduplicate failed and expected test lists preserving order, avoid printing a trailing blank line when no annotations are emitted, and add unit tests in tests/test_ci_expected_failures.py

<!-- gh-comment-id:7163483985 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claiming: CI-EXPECTED-FAILURES-WINDOWS-CRASH-AND-DEDUP - flag Windows NTSTATUS/unsigned crash exit codes (> 128) as abnormal exits in scripts/ci_expected_failures.py, deduplicate failed and expected test lists preserving order, avoid printing a trailing blank line when no annotations are emitted, and add unit tests in tests/test_ci_expected_failures.py
Author
Owner

@thiefyzheng commented on GitHub (Nov 25, 2026):

claiming: BUILD-STAGES-EXCEPTION-DIAG, RT-D24-CPU-ROUNDEVEN — @cheltyi's two findings (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7163281819), both no-game-files:

BUILD-STAGES-EXCEPTION-DIAG: run_build_stages' wait/final-future handlers catch every Exception and assume fail() already printed, so a synthetic PermissionError from a stage gives exit 1 with empty stderr (both overlap modes). I will report the stage and the unexpected exception once per build, preserving fail() diagnostics, with a regression test that fails without the fix, CPU-only.

RT-D24-CPU-ROUNDEVEN: runtime/src/depth24.h's CPU clear conversion follows the calling thread's rounding mode (std::nearbyint), while the GPU path (depth24_convert.comp) rounds even — a directed-rounding thread quantizes 0x1p-23f to 1 instead of 2, ~1 ULP off. I will make the CPU conversion ties-to-even regardless of the thread rounding environment in both directions (matching the compute shader), with a CPU regression test under FE_DOWNWARD/FE_TOWARDZERO that fails without the fix.

AI-assisted.

<!-- gh-comment-id:7163485212 --> @thiefyzheng commented on GitHub (Nov 25, 2026): claiming: BUILD-STAGES-EXCEPTION-DIAG, RT-D24-CPU-ROUNDEVEN — @cheltyi's two findings (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7163281819), both no-game-files: BUILD-STAGES-EXCEPTION-DIAG: `run_build_stages`' wait/final-future handlers catch every Exception and assume `fail()` already printed, so a synthetic PermissionError from a stage gives exit 1 with empty stderr (both overlap modes). I will report the stage and the unexpected exception once per build, preserving `fail()` diagnostics, with a regression test that fails without the fix, CPU-only. RT-D24-CPU-ROUNDEVEN: `runtime/src/depth24.h`'s CPU clear conversion follows the calling thread's rounding mode (`std::nearbyint`), while the GPU path (`depth24_convert.comp`) rounds even — a directed-rounding thread quantizes 0x1p-23f to 1 instead of 2, ~1 ULP off. I will make the CPU conversion ties-to-even regardless of the thread rounding environment in both directions (matching the compute shader), with a CPU regression test under FE_DOWNWARD/FE_TOWARDZERO that fails without the fix. AI-assisted.
Author
Owner

@ambroseautomation commented on GitHub (Nov 25, 2026):

claiming: RT-DEPTH24-ROUNDING-INDEPENDENT - addresses @cheltyi's finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7163174085): runtime/src/depth24.h's depth24_quantize, depth24_to_float, and depth24_clear_value depend on the calling thread's FPU rounding mode (float multiply, std::nearbyint, double division) and can disagree with depth24_convert.comp's roundEven under directed rounding modes (e.g. 0x1p-23f quantizing to 1 instead of 2 under FE_DOWNWARD/FE_TOWARDZERO). Move the pure-C++ D24 math into runtime/src/depth24_math.h (included by depth24.h), implement depth24_quantize and depth24_to_float with exact integer IEEE 754 RNE arithmetic independent of MXCSR/fesetround, verify exhaustively against FE_TONEAREST across all 2^24 D24 words and all 2^32 float bit patterns, and add a portable zero-Vulkan CTest (depth24_math_test) checking all four fesetround modes. No game files or GPU required. AI-assisted.

<!-- gh-comment-id:7163491456 --> @ambroseautomation commented on GitHub (Nov 25, 2026): claiming: RT-DEPTH24-ROUNDING-INDEPENDENT - addresses @cheltyi's finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7163174085): runtime/src/depth24.h's depth24_quantize, depth24_to_float, and depth24_clear_value depend on the calling thread's FPU rounding mode (float multiply, std::nearbyint, double division) and can disagree with depth24_convert.comp's roundEven under directed rounding modes (e.g. 0x1p-23f quantizing to 1 instead of 2 under FE_DOWNWARD/FE_TOWARDZERO). Move the pure-C++ D24 math into runtime/src/depth24_math.h (included by depth24.h), implement depth24_quantize and depth24_to_float with exact integer IEEE 754 RNE arithmetic independent of MXCSR/fesetround, verify exhaustively against FE_TONEAREST across all 2^24 D24 words and all 2^32 float bit patterns, and add a portable zero-Vulkan CTest (depth24_math_test) checking all four fesetround modes. No game files or GPU required. AI-assisted.
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: CI-EXPECTED-FAILURES-WINDOWS-CRASH-AND-DEDUP -> #1856 (https://github.com/ubiquitarianism/leonida/pull/1856)

<!-- gh-comment-id:7163585024 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: CI-EXPECTED-FAILURES-WINDOWS-CRASH-AND-DEDUP -> #1856 (https://github.com/ubiquitarianism/leonida/pull/1856)
Author
Owner

@thiefyzheng commented on GitHub (Nov 25, 2026):

done: BUILD-STAGES-EXCEPTION-DIAG -> #1857
done: RT-D24-CPU-ROUNDEVEN -> #1858

Both from @cheltyi's findings (comment 7163281819), both no-game-files:

BUILD-STAGES-EXCEPTION-DIAG (#1857): run_build_stages now reports a stage whose exception never reached fail() — ERROR: stage '<name>' failed with an unexpected exception: {exc!r} + traceback to stderr, deduplicated across the three catch sites. Verified CPU-only: compileall, new UnexpectedStageExceptionTest (both overlap modes) inside test_leonida_tui.py 27/27, related suites 443 OK + 166 OK, and the revert guard check (2 tests fail without the fix).

RT-D24-CPU-ROUNDEVEN (#1858): both Depth24 CPU directions are now ties-to-even and environment-independent (exact double product + 24-bit round + integer round; the shader's integer formula on the way back). Verified with g++ -O2 across all four rounding modes — 1,858,324 checks including 0x1p-23f -> 2 and the 0.5 tie — plus -ffast-math clean, and the new depth24_cpu ctest built and passed under MSVC on Windows. Not GPU cross-checked (no device here); the two sides implement the same formula now.

AI-assisted.

<!-- gh-comment-id:7163601229 --> @thiefyzheng commented on GitHub (Nov 25, 2026): done: BUILD-STAGES-EXCEPTION-DIAG -> #1857 done: RT-D24-CPU-ROUNDEVEN -> #1858 Both from @cheltyi's findings (comment 7163281819), both no-game-files: BUILD-STAGES-EXCEPTION-DIAG (#1857): `run_build_stages` now reports a stage whose exception never reached `fail()` — `ERROR: stage '<name>' failed with an unexpected exception: {exc!r}` + traceback to stderr, deduplicated across the three catch sites. Verified CPU-only: compileall, new `UnexpectedStageExceptionTest` (both overlap modes) inside `test_leonida_tui.py` 27/27, related suites 443 OK + 166 OK, and the revert guard check (2 tests fail without the fix). RT-D24-CPU-ROUNDEVEN (#1858): both Depth24 CPU directions are now ties-to-even and environment-independent (exact double product + 24-bit round + integer round; the shader's integer formula on the way back). Verified with g++ -O2 across all four rounding modes — 1,858,324 checks including `0x1p-23f -> 2` and the 0.5 tie — plus `-ffast-math` clean, and the new `depth24_cpu` ctest built and passed under MSVC on Windows. Not GPU cross-checked (no device here); the two sides implement the same formula now. AI-assisted.
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claim: CF-DIFF-CLI-VALIDATION-STATE-ISOLATION-AND-ENCODING — validate --minimize/--program/--depth args, isolate global SPIRV_VAL state in main(), emit missing --spirv-val tool errors to stderr, set encoding="utf-8", errors="replace" in _spirv_val, and add stdlib unittest CLI coverage (tests/test_cf_diff_cli.py).

<!-- gh-comment-id:7163606026 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claim: CF-DIFF-CLI-VALIDATION-STATE-ISOLATION-AND-ENCODING — validate `--minimize`/`--program`/`--depth` args, isolate global `SPIRV_VAL` state in `main()`, emit missing `--spirv-val` tool errors to `stderr`, set `encoding="utf-8", errors="replace"` in `_spirv_val`, and add stdlib unittest CLI coverage (`tests/test_cf_diff_cli.py`).
Author
Owner

@ambroseautomation commented on GitHub (Nov 25, 2026):

releasing: RT-DEPTH24-ROUNDING-INDEPENDENT — @thiefyzheng claimed this as RT-D24-CPU-ROUNDEVEN 15 s earlier and opened #1858; not opening a duplicate PR.

<!-- gh-comment-id:7163644669 --> @ambroseautomation commented on GitHub (Nov 25, 2026): releasing: RT-DEPTH24-ROUNDING-INDEPENDENT — @thiefyzheng claimed this as RT-D24-CPU-ROUNDEVEN 15 s earlier and opened #1858; not opening a duplicate PR.
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: CF-DIFF-CLI-VALIDATION-STATE-ISOLATION-AND-ENCODING -> #1859 (https://github.com/ubiquitarianism/leonida/pull/1859)

<!-- gh-comment-id:7163646716 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: CF-DIFF-CLI-VALIDATION-STATE-ISOLATION-AND-ENCODING -> #1859 (https://github.com/ubiquitarianism/leonida/pull/1859)
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claim: BC-FEATURE-SMOOTHNESS-EDGE-AND-DTYPE-SAFETY — require uint8 blocks in bc1_average/block_average, validate dimensions/non-emptiness in smoothness(), handle 1-row/1-col/1x1 mip tails without RuntimeWarning or NaN, and cast integer inputs to float32 before diffing (tests/test_bc_feature_validation.py).

<!-- gh-comment-id:7163663715 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claim: BC-FEATURE-SMOOTHNESS-EDGE-AND-DTYPE-SAFETY — require uint8 blocks in bc1_average/block_average, validate dimensions/non-emptiness in smoothness(), handle 1-row/1-col/1x1 mip tails without RuntimeWarning or NaN, and cast integer inputs to float32 before diffing (tests/test_bc_feature_validation.py).
Author
Owner

@lixonik commented on GitHub (Nov 25, 2026):

done: D3D-3D-VIEW-ARRAY-RANGE -> #1860. The synthetic Vulkan check reproduced the invalid array range before the fix and created the 3D view with zero validation errors after it. AI-assisted.

<!-- gh-comment-id:7163664329 --> @lixonik commented on GitHub (Nov 25, 2026): done: D3D-3D-VIEW-ARRAY-RANGE -> #1860. The synthetic Vulkan check reproduced the invalid array range before the fix and created the 3D view with zero validation errors after it. AI-assisted.
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: BC-FEATURE-SMOOTHNESS-EDGE-AND-DTYPE-SAFETY -> #1861 (https://github.com/ubiquitarianism/leonida/pull/1861)

<!-- gh-comment-id:7163696336 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: BC-FEATURE-SMOOTHNESS-EDGE-AND-DTYPE-SAFETY -> #1861 (https://github.com/ubiquitarianism/leonida/pull/1861)
Author
Owner

@QemmHD commented on GitHub (Nov 25, 2026):

@MoonEyes @OreoFR thank you: a second NVIDIA card and driver (RTX 4070 Laptop, 621.40) with the same result, no loss over 33,281 submissions without host copies versus losses at about 3,800-5,500 with them. The switch is up as #1851. Note that ecox982745 found it depends on #1827: without host copies, title images aren't filled unless #1827 is in. Please include #1827 when you rerun with the branch, and watch for blank textures in runs that lacked it.

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

<!-- gh-comment-id:7163699397 --> @QemmHD commented on GitHub (Nov 25, 2026): @MoonEyes @OreoFR thank you: a second NVIDIA card and driver (RTX 4070 Laptop, 621.40) with the same result, no loss over 33,281 submissions without host copies versus losses at about 3,800-5,500 with them. The switch is up as #1851. Note that ecox982745 found it **depends on #1827**: without host copies, title images aren't filled unless #1827 is in. Please include #1827 when you rerun with the branch, and watch for blank textures in runs that lacked it. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@Coderlord commented on GitHub (Nov 25, 2026):

claiming: SHADER-FSPX-DOT4-EXACT - with llvm-mc 23.1.6 two of the 29 FSPX programs (FidelityFX DLL) do not translate: llvm-mc names every rejected word, so the listing takes the translator's exact re-anchoring branch, which never tries restore_dot4_inline_sel; the v_dot4_i32_i8 with an inline integer src1 is then 'normalized' and the program refused. The title later reads through the missing pipeline in amd_fidelityfx_upscaler_xbox.dll after the first-run setup (native Windows, RTX 5080). One-condition fix plus a decode test. PR follows.

<!-- gh-comment-id:7163717323 --> @Coderlord commented on GitHub (Nov 25, 2026): claiming: SHADER-FSPX-DOT4-EXACT - with llvm-mc 23.1.6 two of the 29 FSPX programs (FidelityFX DLL) do not translate: llvm-mc names every rejected word, so the listing takes the translator's exact re-anchoring branch, which never tries restore_dot4_inline_sel; the v_dot4_i32_i8 with an inline integer src1 is then 'normalized' and the program refused. The title later reads through the missing pipeline in amd_fidelityfx_upscaler_xbox.dll after the first-run setup (native Windows, RTX 5080). One-condition fix plus a decode test. PR follows.
Author
Owner

@Coderlord commented on GitHub (Nov 25, 2026):

done: SHADER-FSPX-DOT4-EXACT -> #1862

<!-- gh-comment-id:7163723331 --> @Coderlord commented on GitHub (Nov 25, 2026): done: SHADER-FSPX-DOT4-EXACT -> #1862
Author
Owner

@Diegobecker07 commented on GitHub (Nov 25, 2026):

finding: 12 runtime tests still use a scratch folder under a fixed name, so two copies running at once overwrite or delete each other's files; testfiles::process_temp_dir / ScratchDir (runtime/test/test_temp_dir.h) already avoids this and 23 sites use it

Where. runtime/test/ on main 384abe5b0, each temp_directory_path() / "<fixed name>":

  • bink_audio_test.cpp:426, bink_decode_test.cpp:248
  • d3d12_depth24_draw_test.cpp:231, d3d12_depth_resolve_test.cpp:391, d3d12_f16_halves_test.cpp:191, d3d12_geometry_test.cpp:56, d3d12_mesh_test.cpp:127, d3d12_shader_cache_test.cpp:289, d3d12_state_sweep_test.cpp:550, d3d12_stores_atomics_test.cpp:124
  • vk_aftermath_test.cpp:61, xgameruntime_gamesave_test.cpp:126

Found with git grep -nE 'temp_directory_path\(\) */ *L?"[^"]*" *;' -- runtime/test. The other temp sites in runtime/test use GetTempFileName, a pid, a time stamp or process_temp_dir.

Why it matters. The header of test_temp_dir.h already records this failure: with four copies of d3d12_compute at once, 6 of 40 runs failed. We hit it with d3d12_shader_cache. Three ctest runs from three worktrees at the same time (Windows 11, RTX 5070 Ti, driver 621.24) made it fail at line 318: s_a->StoreValue(&k, sizeof(k), &v, sizeof(v)) == S_OK, because its first step is remove_all on the shared folder. It passed 3/3 alone. Anyone who tests several PR branches side by side, or shares one TMP or Wine prefix between suites, gets red tests that are not real failures.

Overlap. #1600 (TEST-TEMPDIR-STRIPPED-ENV, open, needs rebase) rewrites these lines to testfiles::temp_dir() / "<fixed name>", which keeps the fixed names. A fix should build on it or be agreed with its author.

Needs. No game files. The d3d12_* and vk_* tests need a Vulkan GPU; the two bink tests skip without a movie.

AI-assisted.

<!-- gh-comment-id:7163742268 --> @Diegobecker07 commented on GitHub (Nov 25, 2026): finding: 12 runtime tests still use a scratch folder under a fixed name, so two copies running at once overwrite or delete each other's files; `testfiles::process_temp_dir` / `ScratchDir` (`runtime/test/test_temp_dir.h`) already avoids this and 23 sites use it **Where.** `runtime/test/` on main 384abe5b0, each `temp_directory_path() / "<fixed name>"`: - `bink_audio_test.cpp:426`, `bink_decode_test.cpp:248` - `d3d12_depth24_draw_test.cpp:231`, `d3d12_depth_resolve_test.cpp:391`, `d3d12_f16_halves_test.cpp:191`, `d3d12_geometry_test.cpp:56`, `d3d12_mesh_test.cpp:127`, `d3d12_shader_cache_test.cpp:289`, `d3d12_state_sweep_test.cpp:550`, `d3d12_stores_atomics_test.cpp:124` - `vk_aftermath_test.cpp:61`, `xgameruntime_gamesave_test.cpp:126` Found with `git grep -nE 'temp_directory_path\(\) */ *L?"[^"]*" *;' -- runtime/test`. The other temp sites in `runtime/test` use `GetTempFileName`, a pid, a time stamp or `process_temp_dir`. **Why it matters.** The header of `test_temp_dir.h` already records this failure: with four copies of `d3d12_compute` at once, 6 of 40 runs failed. We hit it with `d3d12_shader_cache`. Three ctest runs from three worktrees at the same time (Windows 11, RTX 5070 Ti, driver 621.24) made it fail at `line 318: s_a->StoreValue(&k, sizeof(k), &v, sizeof(v)) == S_OK`, because its first step is `remove_all` on the shared folder. It passed 3/3 alone. Anyone who tests several PR branches side by side, or shares one TMP or Wine prefix between suites, gets red tests that are not real failures. **Overlap.** #1600 (TEST-TEMPDIR-STRIPPED-ENV, open, needs rebase) rewrites these lines to `testfiles::temp_dir() / "<fixed name>"`, which keeps the fixed names. A fix should build on it or be agreed with its author. **Needs.** No game files. The `d3d12_*` and `vk_*` tests need a Vulkan GPU; the two bink tests skip without a movie. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-QUEUE-RECYCLE-AND-STATS-BOUNDS -> #1863

<!-- gh-comment-id:7163807482 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-QUEUE-RECYCLE-AND-STATS-BOUNDS -> #1863
Author
Owner

@cheltyi commented on GitHub (Nov 25, 2026):

claiming: D3D-REPLAY-DRAW-SCOPE-RUNS — keep one Vulkan dynamic-rendering scope across consecutive resolved direct draws with the same prepared graphics pipeline, attachment views/ranges/layouts, render area and layer count. Close before every other command, query/statistics endpoint or GPU helper. The current per-draw LOAD/STORE scopes and attachment dependencies cost 40,000 begin/end/barrier calls for 10,000 compatible draws; measure CPU replay and real-GPU frame time with hand-authored synthetic fixtures and verify pixels/depth ordering.

Checked all 1,268 open PRs and claims in #14/#1608. #1062 implements the D3D12 BeginRenderPass/EndRenderPass API in the COM shim; it does not batch the Vulkan replay. #1713/#1284 optimize the layout tracker/dependency bookkeeping, not scope lifetime. No game files needed. AI-assisted.

<!-- gh-comment-id:7163814583 --> @cheltyi commented on GitHub (Nov 25, 2026): claiming: D3D-REPLAY-DRAW-SCOPE-RUNS — keep one Vulkan dynamic-rendering scope across consecutive resolved direct draws with the same prepared graphics pipeline, attachment views/ranges/layouts, render area and layer count. Close before every other command, query/statistics endpoint or GPU helper. The current per-draw LOAD/STORE scopes and attachment dependencies cost 40,000 begin/end/barrier calls for 10,000 compatible draws; measure CPU replay and real-GPU frame time with hand-authored synthetic fixtures and verify pixels/depth ordering. Checked all 1,268 open PRs and claims in #14/#1608. #1062 implements the D3D12 BeginRenderPass/EndRenderPass API in the COM shim; it does not batch the Vulkan replay. #1713/#1284 optimize the layout tracker/dependency bookkeeping, not scope lifetime. No game files needed. AI-assisted.
Author
Owner

@thiefyzheng commented on GitHub (Nov 25, 2026):

claiming: TEST-SCRATCH-FIXED-AFTERMATH — the residual site of @Diegobecker07's 12-site scratch finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7163742268): the 11 d3d12/bink/xgameruntime files are already migrated by open #1579 (whoalin1; its runtime/test/test_temp_dir.h rewrite covers them — verified via its changed-file list), but #1579 does not touch vk_aftermath_test.cpp:61, which still does temp_directory_path() / "leonida_aftermath_test" for LEONIDA_AFTERMATH_DIR. I will migrate that one site to the test_temp_dir::process_temp_dir idiom (per-run unique path so two simultaneous runs' Aftermath dumps and markers stop sharing one directory), verify the translation unit compiles on MSVC, and note in the PR that the other 11 sites ride with #1578/#1579 and #1600. No game files; the aftermath path is device-independent for the compile check. AI-assisted.

<!-- gh-comment-id:7163890441 --> @thiefyzheng commented on GitHub (Nov 25, 2026): claiming: TEST-SCRATCH-FIXED-AFTERMATH — the residual site of @Diegobecker07's 12-site scratch finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7163742268): the 11 d3d12/bink/xgameruntime files are already migrated by open #1579 (whoalin1; its `runtime/test/test_temp_dir.h` rewrite covers them — verified via its changed-file list), but #1579 does not touch `vk_aftermath_test.cpp:61`, which still does `temp_directory_path() / "leonida_aftermath_test"` for `LEONIDA_AFTERMATH_DIR`. I will migrate that one site to the `test_temp_dir::process_temp_dir` idiom (per-run unique path so two simultaneous runs' Aftermath dumps and markers stop sharing one directory), verify the translation unit compiles on MSVC, and note in the PR that the other 11 sites ride with #1578/#1579 and #1600. No game files; the aftermath path is device-independent for the compile check. AI-assisted.
Author
Owner

@ambroseautomation commented on GitHub (Nov 25, 2026):

claiming: RT-LIST-VALUES-RELAY-LIFECYCLE - fix four safety and concurrency bugs in runtime/shims/d3d12_xs_list_values.h and runtime/shims/d3d12_xs_device.cpp: (1) use-after-free in Pump::relay() returning a raw ID3D12Fence* without retaining QueueValues across queue->Wait(); (2) stale/overwritten-value relay in Pump::relay() scanning forward instead of inspecting the last write overlapping [wait.address, wait.address+need) within a WriteGroup; (3) data race and post-stop thread leak between Pump::start(), Pump::stop(), and Pump::add_action() (unsynchronized thread_/releaser_ reads in stop(), start() spawning threads after stop(), and add_action() missing the exiting_ check under mutex_); (4) guard gate.waits.front() in Pump::note_outcome(). Verify with xs_proxy_mock_test (new regression cases for relay fence lifetime, overwritten/partial-overlap WriteGroup relay, and stop-before-start/post-stop add_action) + root_sig_test + device_proxy_test. No game files or GPU required. AI-assisted.

<!-- gh-comment-id:7163941870 --> @ambroseautomation commented on GitHub (Nov 25, 2026): claiming: RT-LIST-VALUES-RELAY-LIFECYCLE - fix four safety and concurrency bugs in runtime/shims/d3d12_xs_list_values.h and runtime/shims/d3d12_xs_device.cpp: (1) use-after-free in Pump::relay() returning a raw ID3D12Fence* without retaining QueueValues across queue->Wait(); (2) stale/overwritten-value relay in Pump::relay() scanning forward instead of inspecting the last write overlapping [wait.address, wait.address+need) within a WriteGroup; (3) data race and post-stop thread leak between Pump::start(), Pump::stop(), and Pump::add_action() (unsynchronized thread_/releaser_ reads in stop(), start() spawning threads after stop(), and add_action() missing the exiting_ check under mutex_); (4) guard gate.waits.front() in Pump::note_outcome(). Verify with xs_proxy_mock_test (new regression cases for relay fence lifetime, overwritten/partial-overlap WriteGroup relay, and stop-before-start/post-stop add_action) + root_sig_test + device_proxy_test. No game files or GPU required. AI-assisted.
Author
Owner

@thiefyzheng commented on GitHub (Nov 25, 2026):

done: TEST-SCRATCH-FIXED-AFTERMATH -> #1864

The one residual of @Diegobecker07's 12-site finding (comment 7163742268): vk_aftermath_test.cpp's LEONIDA_AFTERMATH_DIR now derives from testfiles::process_temp_dir (per-run <pid> path) instead of one fixed leonida_aftermath_test folder; pure path construction, dumps still survive runs. The other 11 files ride with open #1579.

Not compiled with MSVC here — the vk_aftermath_test target needs LEONIDA_AFTERMATH_SDK and our build host has no Aftermath SDK, so a reviewer with the SDK compiling the target once is the remaining check (also stated in the PR). Not run with the SDK/GPU either. AI-assisted.

<!-- gh-comment-id:7163959519 --> @thiefyzheng commented on GitHub (Nov 25, 2026): done: TEST-SCRATCH-FIXED-AFTERMATH -> #1864 The one residual of @Diegobecker07's 12-site finding (comment 7163742268): `vk_aftermath_test.cpp`'s `LEONIDA_AFTERMATH_DIR` now derives from `testfiles::process_temp_dir` (per-run `<pid>` path) instead of one fixed `leonida_aftermath_test` folder; pure path construction, dumps still survive runs. The other 11 files ride with open #1579. **Not compiled with MSVC here** — the `vk_aftermath_test` target needs `LEONIDA_AFTERMATH_SDK` and our build host has no Aftermath SDK, so a reviewer with the SDK compiling the target once is the remaining check (also stated in the PR). Not run with the SDK/GPU either. AI-assisted.
Author
Owner

@DadaCap commented on GitHub (Nov 25, 2026):

finding: the session pipeline cache stops being saved at 256 MiB, which the first world frames exceed, so every later build is thrown away and the next run pays it again.

Where: runtime/src/pipeline_cache_store.h, default_save_limit (256 MiB), and runtime/shims/d3d12_vulkan_device.cpp, save_session_pipeline_cache, which also caps a checkpoint at 512 MiB.

Measured (RTX 5080, NVIDIA 621.24, main + #1756, #1849, #1827): my pipeline_cache.session.bin stayed at 267,708,525 bytes over four runs; the log of the last one says pipeline cache is 350948938 bytes, over the 268435456-byte write limit at its checkpoints, and nothing was written. Those runs rebuilt the same programs each time, among them the six ShadowRenderTiledCascades* programs at 37, 49, 57, 79, 211 and 269 s. With LEONIDA_PIPELINE_CACHE_BYTES raised and the 512 MiB checkpoint cap lifted locally, the first world frame took 2.1 s in the next run (21 builds) against 8.7 s (40 builds), and the file was at 336 MB and growing within four minutes.

Also useful for anyone stuck behind those builds: they run one at a time (big_compile, TheGeogeo's RT-BIG-COMPUTE-BUDGET covers that). LEONIDA_SERIAL_BIG_COMPILES=0 runs about ten side by side here (25 GB private, 27 GB of RAM free of 62). Workaround for the limit until a fix is in: LEONIDA_PIPELINE_CACHE_BYTES=4294967296, which helps up to the 512 MiB checkpoint cap.

claiming: RT-SESSION-CACHE-LIMIT - the session cache's default save limit and the checkpoint's separate cap. AI-assisted (Claude Code).

<!-- gh-comment-id:7163972744 --> @DadaCap commented on GitHub (Nov 25, 2026): finding: the session pipeline cache stops being saved at 256 MiB, which the first world frames exceed, so every later build is thrown away and the next run pays it again. **Where:** `runtime/src/pipeline_cache_store.h`, `default_save_limit` (256 MiB), and `runtime/shims/d3d12_vulkan_device.cpp`, `save_session_pipeline_cache`, which also caps a checkpoint at 512 MiB. **Measured** (RTX 5080, NVIDIA 621.24, `main` + #1756, #1849, #1827): my `pipeline_cache.session.bin` stayed at 267,708,525 bytes over four runs; the log of the last one says `pipeline cache is 350948938 bytes, over the 268435456-byte write limit` at its checkpoints, and nothing was written. Those runs rebuilt the same programs each time, among them the six `ShadowRenderTiledCascades*` programs at 37, 49, 57, 79, 211 and 269 s. With `LEONIDA_PIPELINE_CACHE_BYTES` raised and the 512 MiB checkpoint cap lifted locally, the first world frame took 2.1 s in the next run (21 builds) against 8.7 s (40 builds), and the file was at 336 MB and growing within four minutes. Also useful for anyone stuck behind those builds: they run one at a time (`big_compile`, TheGeogeo's RT-BIG-COMPUTE-BUDGET covers that). `LEONIDA_SERIAL_BIG_COMPILES=0` runs about ten side by side here (25 GB private, 27 GB of RAM free of 62). Workaround for the limit until a fix is in: `LEONIDA_PIPELINE_CACHE_BYTES=4294967296`, which helps up to the 512 MiB checkpoint cap. claiming: RT-SESSION-CACHE-LIMIT - the session cache's default save limit and the checkpoint's separate cap. AI-assisted (Claude Code).
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claim: SHADER-META-SCALAR-PACK-SEXT-SIGNED-FOLD-AND-WIDTH-GUARD — add bit-exact constant folding for s_min_i32, s_max_i32, s_bfe_i32, s_pack_ll_b32_b16, s_pack_lh_b32_b16, s_pack_hh_b32_b16, s_sext_i32_i8, and s_sext_i32_i16 in tools/shader_meta.py, guard scalar write/stride branches to single SGPR (n==1) operands, and extend unit tests (tests/test_shader_meta.py, tests/test_shader_meta_operands.py).

<!-- gh-comment-id:7164029615 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claim: SHADER-META-SCALAR-PACK-SEXT-SIGNED-FOLD-AND-WIDTH-GUARD — add bit-exact constant folding for s_min_i32, s_max_i32, s_bfe_i32, s_pack_ll_b32_b16, s_pack_lh_b32_b16, s_pack_hh_b32_b16, s_sext_i32_i8, and s_sext_i32_i16 in tools/shader_meta.py, guard scalar write/stride branches to single SGPR (n==1) operands, and extend unit tests (tests/test_shader_meta.py, tests/test_shader_meta_operands.py).
Author
Owner

@usercristian commented on GitHub (Nov 25, 2026):

releasing: TEST-ATOMIC-GUARD — confirmed already resolved on current main (0d80bc5df), so no PR is needed.

Where:

  • tests/semantic/test_image_atomics_guard.py:88-114 (derived_from walks SSA defs to OpLoad %bool %active), :125 (accepts %true only when OpStore %active is absent), and :226-313 (three dynamic-EXEC tests with exec_static_true=False in tools/rdna2spirv.py:17937), landed via #20 (c1bcf15f8, cherry-pick of be65e0611), #460 (b3eaa3d7b, 891fb8f4e / merge f74304de5), and abbd7d9b2.
  • Also re-verified SHADER-1264 at tools/rdna2spirv.py:1645-1653,1680-1685 (PR #24, 1b15cd231 / merge 84347bbb6).

Verified on main 0d80bc5df (Fedora 43, Python 3.14.10, CPU only, spirv-as/spirv-val present, no game files):

  • cd tests/semantic && python3 -m unittest test_exec_computed -v -> 2/2 OK
  • cd tests/semantic && python3 -m unittest test_image_atomics_guard -v -> 6/6 OK
  • python3 scripts/run_semantic_tests.py tests/semantic -p test_exec_computed.py -v -> 1 files, 2 tests, 0 files failed
  • python3 scripts/run_semantic_tests.py tests/semantic -p test_image_atomics_guard.py -v -> 1 files, 6 tests, 0 files failed
  • python3 scripts/run_semantic_tests.py tests/semantic -> 489 files, 6288 tests, 0 files failed (445 s, 4 jobs)
  • python3 -m compileall -q make_game.py tools tests -> OK
<!-- gh-comment-id:7164066301 --> @usercristian commented on GitHub (Nov 25, 2026): releasing: TEST-ATOMIC-GUARD — confirmed already resolved on current main (0d80bc5df), so no PR is needed. Where: - tests/semantic/test_image_atomics_guard.py:88-114 (derived_from walks SSA defs to OpLoad %bool %active), :125 (accepts %true only when OpStore %active is absent), and :226-313 (three dynamic-EXEC tests with exec_static_true=False in tools/rdna2spirv.py:17937), landed via #20 (c1bcf15f8, cherry-pick of be65e0611), #460 (b3eaa3d7b, 891fb8f4e / merge f74304de5), and abbd7d9b2. - Also re-verified SHADER-1264 at tools/rdna2spirv.py:1645-1653,1680-1685 (PR #24, 1b15cd231 / merge 84347bbb6). Verified on main 0d80bc5df (Fedora 43, Python 3.14.10, CPU only, spirv-as/spirv-val present, no game files): - `cd tests/semantic && python3 -m unittest test_exec_computed -v` -> 2/2 OK - `cd tests/semantic && python3 -m unittest test_image_atomics_guard -v` -> 6/6 OK - `python3 scripts/run_semantic_tests.py tests/semantic -p test_exec_computed.py -v` -> 1 files, 2 tests, 0 files failed - `python3 scripts/run_semantic_tests.py tests/semantic -p test_image_atomics_guard.py -v` -> 1 files, 6 tests, 0 files failed - `python3 scripts/run_semantic_tests.py tests/semantic` -> 489 files, 6288 tests, 0 files failed (445 s, 4 jobs) - `python3 -m compileall -q make_game.py tools tests` -> OK
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: SHADER-META-SCALAR-PACK-SEXT-SIGNED-FOLD-AND-WIDTH-GUARD -> #1865 (https://github.com/ubiquitarianism/leonida/pull/1865)

<!-- gh-comment-id:7164089923 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: SHADER-META-SCALAR-PACK-SEXT-SIGNED-FOLD-AND-WIDTH-GUARD -> #1865 (https://github.com/ubiquitarianism/leonida/pull/1865)
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claim: COMPUTE-HEAP-LAYOUT-BOM-FSPX-AND-DISPATCH-LOG-SAFETY — strip UTF-8 BOM in captured_layouts(), safely validate UTF-8-SIG/JSON/type/range for fspx/.json user_sgprs fallback in program_loads(), extract testable main() error handling, and expand tests/test_compute_heap_layout_census.py.

<!-- gh-comment-id:7164101436 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claim: COMPUTE-HEAP-LAYOUT-BOM-FSPX-AND-DISPATCH-LOG-SAFETY — strip UTF-8 BOM in captured_layouts(), safely validate UTF-8-SIG/JSON/type/range for fspx/<name>.json user_sgprs fallback in program_loads(), extract testable main() error handling, and expand tests/test_compute_heap_layout_census.py.
Author
Owner

@fiestorra commented on GitHub (Nov 25, 2026):

claiming: D3D12-TEXTURE-TILES-ROWMAJOR-REPLAY — d3d12_texture_tiles fails deterministically on current main (3 of 3 runs, 98c2f77) at the row-major half of the 256x240 case: row-major alias tile 0 at (0,0): got 0x20000cc, expected 0xcc020000. The same numbers appear with the Vulkan side on an RTX 4090 (NVIDIA 32.0.16.2124) and on a Radeon gfx1036 iGPU (32.0.21045.29003), and the native D3D12 half of the same binary matches all 262,144 pixels in the same run, so no single GPU or driver explains it. The thread so far only records the teardown deadlock of this test (TEST-TILE-CTEST-TIMEOUT), not this value mismatch; no open pull request touches runtime/test/d3d12_texture_tiles_test.cpp or its row-major replay path.

Plan: first decide which half is wrong — the test's row_major_offset arithmetic for a 240-row image, or the layer's row-major CopyTiles replay — by computing the expected address and pattern word for texel (0,0) by hand and reading what each half wrote. Then fix that half with a synthetic regression; the pull request only lands if the case goes red to green with the revert as a negative control. No game files.

Written with an AI assistant.

<!-- gh-comment-id:7164108853 --> @fiestorra commented on GitHub (Nov 25, 2026): claiming: D3D12-TEXTURE-TILES-ROWMAJOR-REPLAY — `d3d12_texture_tiles` fails deterministically on current `main` (3 of 3 runs, `98c2f77`) at the row-major half of the 256x240 case: `row-major alias tile 0 at (0,0): got 0x20000cc, expected 0xcc020000`. The same numbers appear with the Vulkan side on an RTX 4090 (NVIDIA 32.0.16.2124) and on a Radeon gfx1036 iGPU (32.0.21045.29003), and the native D3D12 half of the same binary matches all 262,144 pixels in the same run, so no single GPU or driver explains it. The thread so far only records the teardown deadlock of this test (TEST-TILE-CTEST-TIMEOUT), not this value mismatch; no open pull request touches `runtime/test/d3d12_texture_tiles_test.cpp` or its row-major replay path. Plan: first decide which half is wrong — the test's `row_major_offset` arithmetic for a 240-row image, or the layer's row-major `CopyTiles` replay — by computing the expected address and pattern word for texel (0,0) by hand and reading what each half wrote. Then fix that half with a synthetic regression; the pull request only lands if the case goes red to green with the revert as a negative control. No game files. Written with an AI assistant.
Author
Owner

@fiestorra commented on GitHub (Nov 25, 2026):

releasing: D3D12-TEXTURE-TILES-ROWMAJOR-REPLAY — my claim is a duplicate of D3D-TILES-AMD-BYTE-OFFSET, which is #964, and there will be no pull request from me.

The two numbers, side by side. My run on main 98c2f77 (Windows 11, MSVC 14.44, RelWithDebInfo) fails 3 of 3 times with row-major alias tile 0 at (0,0): got 0x20000cc, expected 0xcc020000 — the same two values #964 reports on an RX 7900 XT. The claim I posted above was wrong about which half produces them.

Where my reading went wrong. I took the identical numbers on two different Vulkan devices (RTX 4090, NVIDIA 32.0.16.2124; Radeon gfx1036, 32.0.21045.29003) as evidence that the layer's row-major replay was at fault. The failing half is the native D3D12 one, and it runs on the same adapter in both of my runs: native_device() takes the first DXGI adapter at tiled-resources tier 2, which here is the AMD iGPU (tier 4) even when LEONIDA_VK_DEVICE pins the Vulkan side to the 4090. The Vulkan device was never part of the read that failed.

Two measurements point at the native half: the failing case is the 256x240 one at linear offset 1, and its Vulkan replay: 256 x 240, linear offset 1 ... line is printed — so that run returned successfully — before the failure comes from the native run that follows it; and the 256x256 case at offset 4 passes, which matches #964's model (offsets 1-3 and 5-7 diverge, 4 and 8 match, and 0x020000cc is the bytes at offset 0 instead of offset 1).

What this does not prove. I did not isolate the native half with a probe or an instrumented build, so the attribution rests on that print order and on #964's own measurement, not on a direct capture; I did not run WARP; and I have not re-run this on the newer main (5e95fa2f4). It is enough to withdraw the claim rather than duplicate #964, which is the change for this behaviour.

Written with an AI assistant.

<!-- gh-comment-id:7164136527 --> @fiestorra commented on GitHub (Nov 25, 2026): releasing: D3D12-TEXTURE-TILES-ROWMAJOR-REPLAY — my claim is a duplicate of D3D-TILES-AMD-BYTE-OFFSET, which is #964, and there will be no pull request from me. **The two numbers, side by side.** My run on `main` `98c2f77` (Windows 11, MSVC 14.44, RelWithDebInfo) fails 3 of 3 times with `row-major alias tile 0 at (0,0): got 0x20000cc, expected 0xcc020000` — the same two values #964 reports on an RX 7900 XT. The claim I posted above was wrong about which half produces them. **Where my reading went wrong.** I took the identical numbers on two different Vulkan devices (RTX 4090, NVIDIA 32.0.16.2124; Radeon gfx1036, 32.0.21045.29003) as evidence that the layer's row-major replay was at fault. The failing half is the **native D3D12** one, and it runs on the same adapter in both of my runs: `native_device()` takes the first DXGI adapter at tiled-resources tier 2, which here is the AMD iGPU (tier 4) even when `LEONIDA_VK_DEVICE` pins the Vulkan side to the 4090. The Vulkan device was never part of the read that failed. Two measurements point at the native half: the failing case is the 256x240 one at `linear offset 1`, and its `Vulkan replay: 256 x 240, linear offset 1 ...` line is printed — so that run returned successfully — before the failure comes from the native run that follows it; and the 256x256 case at offset 4 passes, which matches #964's model (offsets 1-3 and 5-7 diverge, 4 and 8 match, and `0x020000cc` is the bytes at offset 0 instead of offset 1). **What this does not prove.** I did not isolate the native half with a probe or an instrumented build, so the attribution rests on that print order and on #964's own measurement, not on a direct capture; I did not run WARP; and I have not re-run this on the newer `main` (`5e95fa2f4`). It is enough to withdraw the claim rather than duplicate #964, which is the change for this behaviour. Written with an AI assistant.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-VK-MEMORY-FALLBACK-AND-STAGE-POOL-CAPS — replace single-type vkAllocateMemory loops in PresentComposer::ensure_target (runtime/src/vulkan_present_compose.h), OcclusionResolve::initialize, and VulkanQueue::acquire_stage (runtime/src/vulkan_backend.h) with memory_type_order + BAR-aware ordering and OOM retry fallback across compatible memory types (plus guard zero-extent compose target), and cap/best-fit VulkanQueue::khr_stage_pool_ and khr_as_query_pool_ so growing TLAS/XDXR staging tables do not leak VkDeviceMemory/VkQueryPool allocations over sustained multi-frame streaming. Checked open PRs and #1608; no overlap with #1681/#1678/#1694/#1223/#524. CPU/mock Vulkan tests under ASan/UBSan/TSan + mutation verification.

<!-- gh-comment-id:7164142288 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-VK-MEMORY-FALLBACK-AND-STAGE-POOL-CAPS — replace single-type vkAllocateMemory loops in PresentComposer::ensure_target (runtime/src/vulkan_present_compose.h), OcclusionResolve::initialize, and VulkanQueue::acquire_stage (runtime/src/vulkan_backend.h) with memory_type_order + BAR-aware ordering and OOM retry fallback across compatible memory types (plus guard zero-extent compose target), and cap/best-fit VulkanQueue::khr_stage_pool_ and khr_as_query_pool_ so growing TLAS/XDXR staging tables do not leak VkDeviceMemory/VkQueryPool allocations over sustained multi-frame streaming. Checked open PRs and #1608; no overlap with #1681/#1678/#1694/#1223/#524. CPU/mock Vulkan tests under ASan/UBSan/TSan + mutation verification.
Author
Owner

@azsekazvamdimitar commented on GitHub (Nov 25, 2026):

claiming: RT-SHADOW-ALIAS-GUARD - the slot-133 shadows and title windows copy every page xmem maps at two addresses at every submission (ShadowPages in runtime/shims/d3d12_vulkan_device.cpp; LEONIDA_SHADOW_ALIAS_MS only throttles it). On my retail boot after the story load (main 0d80bc5df, RTX 3090, GE-Proton) the by-cause line reads about 987 MB aliased against 7 MB guarded and 2.4 MB pinned a submission, about 300 ms of each one. The fix guards those 64 KiB blocks at every address with the geometry watch's cells (runtime/src/title_geometry_watch.h, which the geometry views already use) and copies a block only when one of its cells saw a write. It does not touch the world-start device loss, which happens at the same point with and without it.

<!-- gh-comment-id:7164143777 --> @azsekazvamdimitar commented on GitHub (Nov 25, 2026): claiming: RT-SHADOW-ALIAS-GUARD - the slot-133 shadows and title windows copy every page xmem maps at two addresses at every submission (`ShadowPages` in `runtime/shims/d3d12_vulkan_device.cpp`; `LEONIDA_SHADOW_ALIAS_MS` only throttles it). On my retail boot after the story load (main 0d80bc5df, RTX 3090, GE-Proton) the by-cause line reads about 987 MB aliased against 7 MB guarded and 2.4 MB pinned a submission, about 300 ms of each one. The fix guards those 64 KiB blocks at every address with the geometry watch's cells (`runtime/src/title_geometry_watch.h`, which the geometry views already use) and copies a block only when one of its cells saw a write. It does not touch the world-start device loss, which happens at the same point with and without it.
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: COMPUTE-HEAP-LAYOUT-BOM-FSPX-AND-DISPATCH-LOG-SAFETY -> #1866 (https://github.com/ubiquitarianism/leonida/pull/1866)

<!-- gh-comment-id:7164144399 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: COMPUTE-HEAP-LAYOUT-BOM-FSPX-AND-DISPATCH-LOG-SAFETY -> #1866 (https://github.com/ubiquitarianism/leonida/pull/1866)
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claim: SHADER-CARVE-ACCEL-SAFETY-AND-UNIT-TESTS — check native DLL/SO/DYLIB existence before CDLL load, support false/off/no in LEONIDA_SHADER_CARVE_NATIVE, immediately release Py_buffer pin on non-readonly or empty buffers, guard double-release and boolean/negative pos + native exceptions, and add unit tests (tests/test_shader_carve_accel.py).

<!-- gh-comment-id:7164153026 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claim: SHADER-CARVE-ACCEL-SAFETY-AND-UNIT-TESTS — check native DLL/SO/DYLIB existence before CDLL load, support false/off/no in LEONIDA_SHADER_CARVE_NATIVE, immediately release Py_buffer pin on non-readonly or empty buffers, guard double-release and boolean/negative pos + native exceptions, and add unit tests (tests/test_shader_carve_accel.py).
Author
Owner

@azsekazvamdimitar commented on GitHub (Nov 25, 2026):

done: RT-SHADOW-ALIAS-GUARD -> #1867

<!-- gh-comment-id:7164161597 --> @azsekazvamdimitar commented on GitHub (Nov 25, 2026): done: RT-SHADOW-ALIAS-GUARD -> #1867
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: SHADER-CARVE-ACCEL-SAFETY-AND-UNIT-TESTS -> #1869 (https://github.com/ubiquitarianism/leonida/pull/1869)

<!-- gh-comment-id:7164195610 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: SHADER-CARVE-ACCEL-SAFETY-AND-UNIT-TESTS -> #1869 (https://github.com/ubiquitarianism/leonida/pull/1869)
Author
Owner

@Anzymanz commented on GitHub (Nov 25, 2026):

claiming: GPU-RX9070XT-RADV - GPU test results for the RX 9070 XT on RADV (Mesa 26.2.6, CachyOS) at main 5e95fa2: run_gpu_tests.py, build.py and check.py, native and LEONIDA_W64_EMULATE=1, plus hardware confirmation of #1518 and #1444. AI-assisted.

<!-- gh-comment-id:7164200538 --> @Anzymanz commented on GitHub (Nov 25, 2026): claiming: GPU-RX9070XT-RADV - GPU test results for the RX 9070 XT on RADV (Mesa 26.2.6, CachyOS) at main 5e95fa2: run_gpu_tests.py, build.py and check.py, native and LEONIDA_W64_EMULATE=1, plus hardware confirmation of #1518 and #1444. AI-assisted.
Author
Owner

@ambroseautomation commented on GitHub (Nov 25, 2026):

done: RT-LIST-VALUES-RELAY-LIFECYCLE -> #1868

<!-- gh-comment-id:7164202662 --> @ambroseautomation commented on GitHub (Nov 25, 2026): done: RT-LIST-VALUES-RELAY-LIFECYCLE -> #1868
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claim: BUILD-LLVM-MC-REL-TEMP-VS-AND-TOOL-FALLBACK-SAFETY — validate -Version, normalize -Temp against provider PWD before .NET writes, guard missing vswhere/vcvars64 cleanly, resolve VS and PATH cmake/ninja independently, write probe.txt BOM-free UTF-8, use Copy-Item -LiteralPath for bracketed -Dest paths, and add tests/test_build_llvm_mc_prereqs.py.

<!-- gh-comment-id:7164207060 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claim: BUILD-LLVM-MC-REL-TEMP-VS-AND-TOOL-FALLBACK-SAFETY — validate -Version, normalize -Temp against provider PWD before .NET writes, guard missing vswhere/vcvars64 cleanly, resolve VS and PATH cmake/ninja independently, write probe.txt BOM-free UTF-8, use Copy-Item -LiteralPath for bracketed -Dest paths, and add tests/test_build_llvm_mc_prereqs.py.
Author
Owner

@OreoFR commented on GitHub (Nov 25, 2026):

finding (caution for RT-HOST-IMAGE-COPY-SWITCH): on an 8 GB card the switch alone may only hide the loss. RTX 4070 Laptop 8 GB, NVIDIA 621.40, main + #1671/#1691/#1703, LEONIDA_ASYNC_PIPELINES=1, host image copy off:

  • without #1827: no device loss (a 600 s run, and a run stopped at ~1,130 s), but every title texture refresh line logs 0.0 MiB filled (changed count up to 43,889 in one report) and the load stalls from ~765 s (0 frames/s, window unresponsive);
  • with #1827 (textures filled again, 1,553 MiB by 193 s): the WRITE_INVALID is back at ~320 s (0x476a50000, lib_cs_01851/01468/01855/00906 in flight), with VRAM full (device-local allocations refused and moved to system memory) and 26.5 GB reserved in RAM.

So "host image copy off" may have avoided the fault by not uploading title textures, not by removing the cause.

VRAM exhaustion is a candidate (12 GB cards may not reach it). Over my 13 runs today, the first refused device-local allocation (vkAllocateMemory failed (-2) ... heap 0 of 7948 MiB) comes before every device loss, 37 to 193 s earlier (10 of 10). But it also happens in the 3 runs that don't lose the device, so it isn't sufficient on its own. The log stops at 16 such lines, and it doesn't give the address of the system-memory fallback, so I can't yet say whether the fault address lands in one.

@QemmHD @DadaCap what VRAM do your passing runs have, and do they log refused allocations?

AI-assisted.

<!-- gh-comment-id:7164223638 --> @OreoFR commented on GitHub (Nov 25, 2026): finding (caution for RT-HOST-IMAGE-COPY-SWITCH): on an 8 GB card the switch alone may only hide the loss. RTX 4070 Laptop 8 GB, NVIDIA 621.40, `main` + #1671/#1691/#1703, `LEONIDA_ASYNC_PIPELINES=1`, host image copy off: - **without #1827:** no device loss (a 600 s run, and a run stopped at ~1,130 s), but every `title texture refresh` line logs `0.0 MiB filled` (changed count up to 43,889 in one report) and the load stalls from ~765 s (0 frames/s, window unresponsive); - **with #1827** (textures filled again, 1,553 MiB by 193 s): the WRITE_INVALID is back at ~320 s (`0x476a50000`, `lib_cs_01851`/`01468`/`01855`/`00906` in flight), with VRAM full (device-local allocations refused and moved to system memory) and 26.5 GB reserved in RAM. So "host image copy off" may have avoided the fault by not uploading title textures, not by removing the cause. VRAM exhaustion is a candidate (12 GB cards may not reach it). Over my 13 runs today, the first refused device-local allocation (`vkAllocateMemory failed (-2) ... heap 0 of 7948 MiB`) comes before every device loss, 37 to 193 s earlier (10 of 10). But it also happens in the 3 runs that don't lose the device, so it isn't sufficient on its own. The log stops at 16 such lines, and it doesn't give the address of the system-memory fallback, so I can't yet say whether the fault address lands in one. @QemmHD @DadaCap what VRAM do your passing runs have, and do they log refused allocations? AI-assisted.
Author
Owner

@lixonik commented on GitHub (Nov 25, 2026):

claiming: RT-QUEUE31-CPU-SOURCE-ALIAS -- make CopyPageMappingsBatchX resolve a GPU-only source through its paired CPU view when the GPU address has no mapping, as the existing single-range copy already does. A synthetic xmem regression will check that a CPU-backed source copies its bytes instead of leaving the destination unmapped. No game files or GPU needed. AI-assisted.

<!-- gh-comment-id:7164244324 --> @lixonik commented on GitHub (Nov 25, 2026): claiming: RT-QUEUE31-CPU-SOURCE-ALIAS -- make CopyPageMappingsBatchX resolve a GPU-only source through its paired CPU view when the GPU address has no mapping, as the existing single-range copy already does. A synthetic xmem regression will check that a CPU-backed source copies its bytes instead of leaving the destination unmapped. No game files or GPU needed. AI-assisted.
Author
Owner

@Anzymanz commented on GitHub (Nov 25, 2026):

done: GPU-RX9070XT-RADV -> #1870

<!-- gh-comment-id:7164249946 --> @Anzymanz commented on GitHub (Nov 25, 2026): done: GPU-RX9070XT-RADV -> #1870
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: BUILD-LLVM-MC-REL-TEMP-VS-AND-TOOL-FALLBACK-SAFETY -> #1871 (https://github.com/ubiquitarianism/leonida/pull/1871)

<!-- gh-comment-id:7164266105 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: BUILD-LLVM-MC-REL-TEMP-VS-AND-TOOL-FALLBACK-SAFETY -> #1871 (https://github.com/ubiquitarianism/leonida/pull/1871)
Author
Owner

@ambroseautomation commented on GitHub (Nov 25, 2026):

claiming: RT-TITLE-PAGE-WATCH-RANGE-AND-PINS - fix five range/lifetime bugs in runtime/src/title_page_watch.h: (1) title_write_watch::mark(from, to) drops marks when from is before a watched reservation, pollutes/resets s.floor past a reservation's end, and wraps near UINTPTR_MAX (clip cleanly to overlapping watched reservations under journal->mutex order); (2) title_write_watch::ask() checks only born(from), missing partially split/replaced reservations covering the tail of [from, to); (3) title_write_watch::add() and title_page_aliases::for_each_in() wrap/infinite-loop near UINTPTR_MAX; (4) kernel_writes::read_file_scatter() leaks pins on synchronous completion (bool(ok) instead of !ok && error == ERROR_IO_PENDING) and can overflow DWORD page count; (5) overflow-safe end/overlap arithmetic and missing returned initializer in kernel_writes::hold() (-Wmissing-field-initializers). Verify with title_write_watch_test, kernel_writes_test, title_memory_map_test, and xmem_test. No game files or GPU required. AI-assisted.

<!-- gh-comment-id:7164267570 --> @ambroseautomation commented on GitHub (Nov 25, 2026): claiming: RT-TITLE-PAGE-WATCH-RANGE-AND-PINS - fix five range/lifetime bugs in runtime/src/title_page_watch.h: (1) title_write_watch::mark(from, to) drops marks when from is before a watched reservation, pollutes/resets s.floor past a reservation's end, and wraps near UINTPTR_MAX (clip cleanly to overlapping watched reservations under journal->mutex order); (2) title_write_watch::ask() checks only born(from), missing partially split/replaced reservations covering the tail of [from, to); (3) title_write_watch::add() and title_page_aliases::for_each_in() wrap/infinite-loop near UINTPTR_MAX; (4) kernel_writes::read_file_scatter() leaks pins on synchronous completion (bool(ok) instead of !ok && error == ERROR_IO_PENDING) and can overflow DWORD page count; (5) overflow-safe end/overlap arithmetic and missing returned initializer in kernel_writes::hold() (-Wmissing-field-initializers). Verify with title_write_watch_test, kernel_writes_test, title_memory_map_test, and xmem_test. No game files or GPU required. AI-assisted.
Author
Owner

@fiestorra commented on GitHub (Nov 25, 2026):

claiming: SHADER-VCC-BASE-GPU-VERIFIED — the s_load_dword* vcc 64-bit base row of docs/design.md (line 288) still ends in not GPU-verified, and the fixture that would verify it already exists. I ran it as it is, through the standard runner, on two devices:

  • AMD Radeon gfx1036 iGPU (Ryzen 7 7800X3D, Windows 11, driver 32.0.21045.29003): run_gpu_tests.py --filter cs_smem_vcc_base -> PASS cs_smem_vcc_base, the eight words 29200 29201 ... 29207 = 0x7210..0x7217, 1/1 passed.
  • NVIDIA GeForce RTX 4090 (Windows 11, driver 32.0.16.2124) with LEONIDA_W64_EMULATE=1 (without it the fixture skips: no 64-wide compute subgroup): same eight words, 1/1 passed.

So s_load_dwordx8 s[8:15], vcc, 0 reads the seeded words through the {vcc_lo, vcc_hi} pair on both a native 64-wide subgroup and the wave64 emulation. Change: the contract row only — record the devices, drivers and result, keep the CPU tests as the primary check, and say what is still not measured (one fixture's eight words; not the corpus count, and no 32-wide-native run outside the emulation). No game files.

Written with an AI assistant.

<!-- gh-comment-id:7164293029 --> @fiestorra commented on GitHub (Nov 25, 2026): claiming: SHADER-VCC-BASE-GPU-VERIFIED — the `s_load_dword*` `vcc` 64-bit base row of `docs/design.md` (line 288) still ends in **not GPU-verified**, and the fixture that would verify it already exists. I ran it as it is, through the standard runner, on two devices: - AMD Radeon gfx1036 iGPU (Ryzen 7 7800X3D, Windows 11, driver 32.0.21045.29003): `run_gpu_tests.py --filter cs_smem_vcc_base` -> `PASS cs_smem_vcc_base`, the eight words `29200 29201 ... 29207` = `0x7210..0x7217`, 1/1 passed. - NVIDIA GeForce RTX 4090 (Windows 11, driver 32.0.16.2124) with `LEONIDA_W64_EMULATE=1` (without it the fixture skips: no 64-wide compute subgroup): same eight words, 1/1 passed. So `s_load_dwordx8 s[8:15], vcc, 0` reads the seeded words through the `{vcc_lo, vcc_hi}` pair on both a native 64-wide subgroup and the wave64 emulation. Change: the contract row only — record the devices, drivers and result, keep the CPU tests as the primary check, and say what is still not measured (one fixture's eight words; not the corpus count, and no 32-wide-native run outside the emulation). No game files. Written with an AI assistant.
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

claim: RUN-CONSERVATIVE-TIER3-REF-PS1-SAFETY-AND-TESTS — check cmake/ctest on PATH up front in scripts/run_conservative_tier3_reference.ps1, guard native stderr under $ErrorActionPreference='Continue' while still failing on nonzero exit codes, pass --no-tests=error and anchored test filter to ctest, trim -Device cleanly preserving env state, and add tests/test_run_conservative_tier3_reference.py.

<!-- gh-comment-id:7164301040 --> @kirigayakazima commented on GitHub (Nov 25, 2026): claim: RUN-CONSERVATIVE-TIER3-REF-PS1-SAFETY-AND-TESTS — check cmake/ctest on PATH up front in scripts/run_conservative_tier3_reference.ps1, guard native stderr under $ErrorActionPreference='Continue' while still failing on nonzero exit codes, pass --no-tests=error and anchored test filter to ctest, trim -Device cleanly preserving env state, and add tests/test_run_conservative_tier3_reference.py.
Author
Owner

@fiestorra commented on GitHub (Nov 25, 2026):

done: SHADER-VCC-BASE-GPU-VERIFIED -> #1872

The s_load_dword* vcc base row now carries the measurement: the existing cs_smem_vcc_base.asm fixture passes with the same eight words (0x7210..0x7217) on an AMD Radeon gfx1036 iGPU (driver 32.0.21045.29003) and, under LEONIDA_W64_EMULATE=1, on an RTX 4090 (32.0.16.2124); without the emulation the fixture skips on the 4090. The row also says what the run does not cover (one fixture's eight words; the 79-program count stays a translation count; no native 32-wide-subgroup run outside the emulation). Docs only, no runtime or translator change.

Written with an AI assistant.

<!-- gh-comment-id:7164330428 --> @fiestorra commented on GitHub (Nov 25, 2026): done: SHADER-VCC-BASE-GPU-VERIFIED -> #1872 The `s_load_dword*` `vcc` base row now carries the measurement: the existing `cs_smem_vcc_base.asm` fixture passes with the same eight words (`0x7210..0x7217`) on an AMD Radeon gfx1036 iGPU (driver 32.0.21045.29003) and, under `LEONIDA_W64_EMULATE=1`, on an RTX 4090 (32.0.16.2124); without the emulation the fixture skips on the 4090. The row also says what the run does not cover (one fixture's eight words; the 79-program count stays a translation count; no native 32-wide-subgroup run outside the emulation). Docs only, no runtime or translator change. Written with an AI assistant.
Author
Owner

@Diegobecker07 commented on GitHub (Nov 25, 2026):

Correction to my finding above (comment 7163742268): I missed #1579 (whoalin1, TEST-TEMP-DIR-ROBUST), which was already open. #1579 gives 8 of the 12 sites a per-process folder (testfiles::scratch_dir("<name>_" + pid)): the eight d3d12_* tests, d3d12_shader_cache_test.cpp included. #1864 covers vk_aftermath_test.cpp.

That leaves three sites where #1579 keeps the fixed name and changes only the base folder (testfiles::writable_temp_dir() / "<name>"): bink_audio_test.cpp:426, bink_decode_test.cpp:248 and xgameruntime_gamesave_test.cpp:126. Two copies running at once still share those folders.

AI-assisted.

<!-- gh-comment-id:7164348116 --> @Diegobecker07 commented on GitHub (Nov 25, 2026): Correction to my finding above (comment 7163742268): I missed #1579 (whoalin1, TEST-TEMP-DIR-ROBUST), which was already open. #1579 gives 8 of the 12 sites a per-process folder (`testfiles::scratch_dir("<name>_" + pid)`): the eight `d3d12_*` tests, `d3d12_shader_cache_test.cpp` included. #1864 covers `vk_aftermath_test.cpp`. That leaves three sites where #1579 keeps the fixed name and changes only the base folder (`testfiles::writable_temp_dir() / "<name>"`): `bink_audio_test.cpp:426`, `bink_decode_test.cpp:248` and `xgameruntime_gamesave_test.cpp:126`. Two copies running at once still share those folders. AI-assisted.
Author
Owner

@kirigayakazima commented on GitHub (Nov 25, 2026):

done: RUN-CONSERVATIVE-TIER3-REF-PS1-SAFETY-AND-TESTS -> #1873 (https://github.com/ubiquitarianism/leonida/pull/1873)

<!-- gh-comment-id:7164351091 --> @kirigayakazima commented on GitHub (Nov 25, 2026): done: RUN-CONSERVATIVE-TIER3-REF-PS1-SAFETY-AND-TESTS -> #1873 (https://github.com/ubiquitarianism/leonida/pull/1873)
Author
Owner

@cheltyi commented on GitHub (Nov 25, 2026):

finding: specialize fixed-width element copies during Xbox texture refresh.

runtime/shims/xg_xs_layout.h:389, copy_elements: a runtime-sized memcpy is called for every texel/block. This path is used by TitleImageUpload::write during runtime texture refresh. A temporary dispatch-once prototype for 1/2/4/8/16-byte elements preserved every byte in 876 synthetic comparisons (40 layouts, 438 subresources, both directions, mip tails, arrays/volumes and unaligned pointers/pitches), with ASan/UBSan clean. For a synthetic 1024x1024 RGBA8 tiled texture, MinGW GCC 16.2 -O3 under Wine on Ryzen 5 5600 reduced the copy from 4.54 to 0.596 ms; total frame-time benefit has not been measured. No matching optimization found in open PRs: #1650/#146 change resource_detile.h, #1495 retains this dynamic-size copy loop. Needs only a CPU for correctness/microbenchmark; an actual streaming/dynamic-texture workload is needed to establish frame benefit. Deferred while working on D3D-REPLAY-DRAW-SCOPE-RUNS.

finding: evaluate a positive range cache for repeated title GPU-VA alias lookups.

runtime/src/title_va_alias.h:79, TitleVaAliases::shader_va/range_of: stable repeated root/descriptor addresses currently acquire a shared_mutex and search a map on each query. A temporary per-thread positive-cache experiment using invalidations() reduced hot-range CPU lookups but random-range lookups regressed by about 4%; real hit rate/frame benefit is unknown. A production design must preserve removal/overlap invalidation and instance lifetime identity (ABA). #1699 concerns bounds/OOM; no equivalent cache found in the checked PRs/claims. Synthetic tests need only a CPU; evaluating the real hit rate needs a runtime workload with game files. Deferred, not claimed.

AI-assisted; all prototypes and reported timings used synthetic inputs, no game data.

<!-- gh-comment-id:7164354183 --> @cheltyi commented on GitHub (Nov 25, 2026): finding: specialize fixed-width element copies during Xbox texture refresh. `runtime/shims/xg_xs_layout.h:389`, `copy_elements`: a runtime-sized memcpy is called for every texel/block. This path is used by TitleImageUpload::write during runtime texture refresh. A temporary dispatch-once prototype for 1/2/4/8/16-byte elements preserved every byte in 876 synthetic comparisons (40 layouts, 438 subresources, both directions, mip tails, arrays/volumes and unaligned pointers/pitches), with ASan/UBSan clean. For a synthetic 1024x1024 RGBA8 tiled texture, MinGW GCC 16.2 -O3 under Wine on Ryzen 5 5600 reduced the copy from 4.54 to 0.596 ms; total frame-time benefit has not been measured. No matching optimization found in open PRs: #1650/#146 change resource_detile.h, #1495 retains this dynamic-size copy loop. Needs only a CPU for correctness/microbenchmark; an actual streaming/dynamic-texture workload is needed to establish frame benefit. Deferred while working on D3D-REPLAY-DRAW-SCOPE-RUNS. finding: evaluate a positive range cache for repeated title GPU-VA alias lookups. `runtime/src/title_va_alias.h:79`, TitleVaAliases::shader_va/range_of: stable repeated root/descriptor addresses currently acquire a shared_mutex and search a map on each query. A temporary per-thread positive-cache experiment using invalidations() reduced hot-range CPU lookups but random-range lookups regressed by about 4%; real hit rate/frame benefit is unknown. A production design must preserve removal/overlap invalidation and instance lifetime identity (ABA). #1699 concerns bounds/OOM; no equivalent cache found in the checked PRs/claims. Synthetic tests need only a CPU; evaluating the real hit rate needs a runtime workload with game files. Deferred, not claimed. AI-assisted; all prototypes and reported timings used synthetic inputs, no game data.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-VK-MEMORY-FALLBACK-AND-STAGE-POOL-CAPS -> #1874

<!-- gh-comment-id:7164362138 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-VK-MEMORY-FALLBACK-AND-STAGE-POOL-CAPS -> #1874
Author
Owner

@Scipolah commented on GitHub (Nov 25, 2026):

Finding: Linux/Proton run — game loads but stalls at 0.38 fps during world load (title memory + dstorage)

Environment:

  • Linux, Proton-GE (Wine), AMD RX 7900 XTX (1002:744c)
  • GTA6.Xbox.v1.0.2.1-CYBERLEEK
  • Leonida @ 98c2f7777 (PR #1819 merged)
  • Shader lib: 29,147 SPIR-V, 17GB (Nov 24)

Runs:

Run Duration Presents Failed D3D12 Notes
14:02:41 217s 1,744 50,949 Baseline, clean exit
14:15:07 269s 5,172 30,967 LEONIDA_STUB_PIPELINES=1, stuck at splash
14:19:57 590s — — No stub, crawled through load, exited

Run 14:19:57 (no stub) — submit phases at t=589s:

0.38 frames/s; ms per submission (max):
wait 0.00 (0)
heaps 1521.67 (4562)      ← console descriptor heap: 5.5MB copied @ 1.5s/submission
shadows 173.90 (204)      ← slot-133: 2.5GB copied @ 174ms/submission
geometry 0.00 (0)
textures 63.78 (107)
replay 0.49 (1)

Additional observations:

  • 3,266 textures waiting for readable memory; 17,736 stale in all
  • Hundreds of dstorage_failure events, hr 0x89240030 (options 0x20000e)
  • Missing VS (FSSM 01ac7810...) — 1 of the 344 known untranslatable; causes ~50k CreatePipelineState failures per run
  • LEONIDA_STUB_PIPELINES=1 reduces pipeline failures but game doesn't progress past splash

Hypothesis:
The #1702 title memory residency issue is the primary bottleneck on Linux — the runtime copies console heaps and shadow buffers every submission because it can't keep GPU-read assets resident. The dstorage failures may be secondary (timeout from slow copies) or a separate Wine/Proton issue.

Questions:

  1. Is the 1.5s heap copy expected on Linux, or is there a residency path that's not being taken?
  2. What does dstorage hr 0x89240030 mean in this context?
  3. Should the missing VS block be reported separately, or is it covered by the 344-program census?

AI-assisted

<!-- gh-comment-id:7164363869 --> @Scipolah commented on GitHub (Nov 25, 2026): **Finding: Linux/Proton run — game loads but stalls at 0.38 fps during world load (title memory + dstorage)** **Environment:** - Linux, Proton-GE (Wine), AMD RX 7900 XTX (1002:744c) - GTA6.Xbox.v1.0.2.1-CYBERLEEK - Leonida @ `98c2f7777` (PR #1819 merged) - Shader lib: 29,147 SPIR-V, 17GB (Nov 24) **Runs:** | Run | Duration | Presents | Failed D3D12 | Notes | |-----|----------|----------|--------------|-------| | 14:02:41 | 217s | 1,744 | 50,949 | Baseline, clean exit | | 14:15:07 | 269s | 5,172 | 30,967 | `LEONIDA_STUB_PIPELINES=1`, stuck at splash | | 14:19:57 | 590s | — | — | No stub, crawled through load, exited | **Run 14:19:57 (no stub) — submit phases at t=589s:** ``` 0.38 frames/s; ms per submission (max): wait 0.00 (0) heaps 1521.67 (4562) ← console descriptor heap: 5.5MB copied @ 1.5s/submission shadows 173.90 (204) ← slot-133: 2.5GB copied @ 174ms/submission geometry 0.00 (0) textures 63.78 (107) replay 0.49 (1) ``` **Additional observations:** - 3,266 textures waiting for readable memory; 17,736 stale in all - Hundreds of `dstorage_failure` events, hr `0x89240030` (options `0x20000e`) - Missing VS (FSSM `01ac7810...`) — 1 of the 344 known untranslatable; causes ~50k `CreatePipelineState` failures per run - `LEONIDA_STUB_PIPELINES=1` reduces pipeline failures but game doesn't progress past splash **Hypothesis:** The #1702 title memory residency issue is the primary bottleneck on Linux — the runtime copies console heaps and shadow buffers every submission because it can't keep GPU-read assets resident. The dstorage failures may be secondary (timeout from slow copies) or a separate Wine/Proton issue. **Questions:** 1. Is the 1.5s heap copy expected on Linux, or is there a residency path that's not being taken? 2. What does dstorage hr `0x89240030` mean in this context? 3. Should the missing VS block be reported separately, or is it covered by the 344-program census? AI-assisted
Author
Owner

@Zalthor commented on GitHub (Nov 25, 2026):

Correction to my verification batches 1, 4, 5 and 6: some "already fails on main" baselines were Python 3.10 artifacts.

I ran those batches' python -I test files with CPython 3.10. CI's Windows job uses 3.12, and parts of main's test code need 3.11+ (enterContext, ntpath.isjunction; make_game.py refuses to start below 3.12). I have now re-run every PR from batches 1–6 against current main with CPython 3.12 for its standard-library test files, the files CI runs with python -I. Files that need numpy skip under that interpreter here, so for those the earlier numpy-enabled runs stand.

The per-PR verdicts do not change. Every PR reported as passing still passes on 3.12. One exception looked like a failure at first: #1439 failed only in a parallel run, through a 45 s PowerShell build timeout, and passes when run alone. The four Windows-incompatible PRs from batch 2 (#1667, #1668, #1669, #895) still fail on 3.12 for the same POSIX-only reasons.

What changes, the main baselines:

File What I said On 3.12
test_ci_registration.py (batch 1, every batch after) red on main, 2 subtests passes
test_run_semantic_tests.py (batch 4) 3 failures on main passes
test_shader_library.py (batches 5, 6) 4 errors on main passes
test_run_wine_tests.py (batch 4) 3 errors on main (2 after the batch-6 correction) 1 error, test_jobs_runs_that_many_tests_at_a_time. It has also passed in another run, so it's a timing-sensitive test, not a stable failure
test_runner_calls_all_tests.py, test_tool_stdout_encoding.py red on main still red (#1561 fixes both)
test_bink_names.py (batch 6) 1 failure on main still fails (test_unreadable_mount_directory_preserves_the_report)

So these batch-4 to batch-6 statements were wrong, and here is what holds instead:

  • #1437, #1406: I said they remove main failures in test_run_semantic_tests.py. On 3.12, main has none. Both pass, and their new tests fail on unpatched main, so they are confirmed fixes for what they claim.
  • #1051, #1442, #1749: same file. Each passes on 3.12, and its new tests fail on unpatched main.
  • #1722, #1384: I said they remove main errors in test_run_wine_tests.py. On 3.12 both pass. #1384's new tests fail on unpatched main (6 failures and 6 errors in test_malformed_dependency_lists_are_rejected_before_launch). #1722 only changes how the test logs timings, and it passes on both.
  • #1281, #1712: the "4 known errors" in test_shader_library.py don't exist on 3.12. Both pass, and their new tests fail on unpatched main.
  • #1385: test_ci_registration.py passes on 3.12 with and without it.

Sorry for the noise. From the next batch on, python -I files run on 3.12 and pytest files on 3.10 (the interpreter here that has pytest). AI-assisted (Claude Code).

<!-- gh-comment-id:7164380175 --> @Zalthor commented on GitHub (Nov 25, 2026): **Correction to my verification batches [1](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157070042), [4](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7160473031), [5](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7160802203) and [6](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7161188301): some "already fails on `main`" baselines were Python 3.10 artifacts.** I ran those batches' `python -I` test files with CPython 3.10. CI's Windows job uses 3.12, and parts of `main`'s test code need 3.11+ (`enterContext`, `ntpath.isjunction`; `make_game.py` refuses to start below 3.12). I have now re-run every PR from batches 1–6 against current `main` with **CPython 3.12** for its standard-library test files, the files CI runs with `python -I`. Files that need numpy skip under that interpreter here, so for those the earlier numpy-enabled runs stand. **The per-PR verdicts do not change.** Every PR reported as passing still passes on 3.12. One exception looked like a failure at first: #1439 failed only in a parallel run, through a 45 s PowerShell build timeout, and passes when run alone. The four Windows-incompatible PRs from batch 2 (#1667, #1668, #1669, #895) still fail on 3.12 for the same POSIX-only reasons. **What changes, the `main` baselines:** | File | What I said | On 3.12 | |---|---|---| | `test_ci_registration.py` (batch 1, every batch after) | red on `main`, 2 subtests | **passes** | | `test_run_semantic_tests.py` (batch 4) | 3 failures on `main` | **passes** | | `test_shader_library.py` (batches 5, 6) | 4 errors on `main` | **passes** | | `test_run_wine_tests.py` (batch 4) | 3 errors on `main` (2 after the batch-6 correction) | 1 error, `test_jobs_runs_that_many_tests_at_a_time`. It has also passed in another run, so it's a timing-sensitive test, not a stable failure | | `test_runner_calls_all_tests.py`, `test_tool_stdout_encoding.py` | red on `main` | **still red** (#1561 fixes both) | | `test_bink_names.py` (batch 6) | 1 failure on `main` | **still fails** (`test_unreadable_mount_directory_preserves_the_report`) | **So these batch-4 to batch-6 statements were wrong, and here is what holds instead:** - **#1437, #1406:** I said they remove `main` failures in `test_run_semantic_tests.py`. On 3.12, `main` has none. Both pass, and their new tests fail on unpatched `main`, so they are confirmed fixes for what they claim. - **#1051, #1442, #1749:** same file. Each passes on 3.12, and its new tests fail on unpatched `main`. - **#1722, #1384:** I said they remove `main` errors in `test_run_wine_tests.py`. On 3.12 both pass. #1384's new tests fail on unpatched `main` (6 failures and 6 errors in `test_malformed_dependency_lists_are_rejected_before_launch`). #1722 only changes how the test logs timings, and it passes on both. - **#1281, #1712:** the "4 known errors" in `test_shader_library.py` don't exist on 3.12. Both pass, and their new tests fail on unpatched `main`. - **#1385:** `test_ci_registration.py` passes on 3.12 with and without it. Sorry for the noise. From the next batch on, `python -I` files run on 3.12 and pytest files on 3.10 (the interpreter here that has pytest). AI-assisted (Claude Code).
Author
Owner

@fiestorra commented on GitHub (Nov 25, 2026):

claiming: TEST-RUN-GAME-WINE-WINDOWS-IMPORT — tests/test_run_game_wine.py cannot be imported on Windows: it runs import fcntl at module level (line 14), so the check job's python -I loop on windows-latest stops on that file with ModuleNotFoundError: No module named 'fcntl' before the class's own @unittest.skipIf(os.name == "nt" or not shutil.which("bash"), ...) can take effect. Measured on main 77baf9062 with Python 3.13: python -I tests/test_run_game_wine.py -> exit 1, ModuleNotFoundError: No module named 'fcntl'. No open pull request touches this file and no existing claim names it.

Fix: import fcntl in a try block and let the existing Windows skip stand, so the module imports everywhere and the one test that locks a file (line 155) still runs on POSIX unchanged. This is one of the eight files the Windows loop currently fails; the other seven are covered by #1792, #1561, #1837, #1789 or a standing claim (TEST-WINE-JOBS-TIMING-WINDOWS, CI-RUNTIME-PATHS-CONFORMANCE), so this does not turn the whole job green on its own.

Written with an AI assistant.

<!-- gh-comment-id:7164391310 --> @fiestorra commented on GitHub (Nov 25, 2026): claiming: TEST-RUN-GAME-WINE-WINDOWS-IMPORT — `tests/test_run_game_wine.py` cannot be imported on Windows: it runs `import fcntl` at module level (line 14), so the `check` job's `python -I` loop on `windows-latest` stops on that file with `ModuleNotFoundError: No module named 'fcntl'` before the class's own `@unittest.skipIf(os.name == "nt" or not shutil.which("bash"), ...)` can take effect. Measured on `main` `77baf9062` with Python 3.13: `python -I tests/test_run_game_wine.py` -> exit 1, `ModuleNotFoundError: No module named 'fcntl'`. No open pull request touches this file and no existing claim names it. Fix: import `fcntl` in a `try` block and let the existing Windows skip stand, so the module imports everywhere and the one test that locks a file (line 155) still runs on POSIX unchanged. This is one of the eight files the Windows loop currently fails; the other seven are covered by #1792, #1561, #1837, #1789 or a standing claim (TEST-WINE-JOBS-TIMING-WINDOWS, CI-RUNTIME-PATHS-CONFORMANCE), so this does not turn the whole job green on its own. Written with an AI assistant.
Author
Owner

@CLHelper commented on GitHub (Nov 25, 2026):

Data point for the order of world-start stops, on an RTX 4060 Laptop 8 GB (NVIDIA 576.80, Windows 11), counts only. Build: main 5e95fa2f4 + #1810 (with a local fix for its MSVC build error, see #1810) + #1827 + #1849; shaders translated by that translator (--wave64-emulate); LEONIDA_HOST_IMAGE_COPY=0 LEONIDA_ASYNC_PIPELINES=1 LEONIDA_DEVICE_TYPE=6 LEONIDA_ARENA_MB=2048 LEONIDA_TITLE_WATCHDOG=0, a person at the keyboard pad.

  • No device loss and no WRITE_INVALID in either boot (8 min, and 4.5 min): the world-start fix holds on this card and on an older driver too.
  • The second boot went through the intro movie and the story load and then stopped at 212 s with 0xc0000005 in amd_fidelityfx_upscaler_xbox.dll+0x65ff (read of 0x10; called from the title), before any indirect draw was emitted. The same site as @Snooozs's row 1 above; here too the FSPX set is 27 of 29, so it fits SHADER-FSPX-DOT4-EXACT (@Coderlord). I can rerun on this laptop with that change when it is up.

AI-assisted.

<!-- gh-comment-id:7164407689 --> @CLHelper commented on GitHub (Nov 25, 2026): Data point for the order of world-start stops, on an RTX 4060 Laptop 8 GB (NVIDIA 576.80, Windows 11), counts only. Build: `main` 5e95fa2f4 + #1810 (with a local fix for its MSVC build error, see #1810) + #1827 + #1849; shaders translated by that translator (`--wave64-emulate`); `LEONIDA_HOST_IMAGE_COPY=0 LEONIDA_ASYNC_PIPELINES=1 LEONIDA_DEVICE_TYPE=6 LEONIDA_ARENA_MB=2048 LEONIDA_TITLE_WATCHDOG=0`, a person at the keyboard pad. - No device loss and no WRITE_INVALID in either boot (8 min, and 4.5 min): the world-start fix holds on this card and on an older driver too. - The second boot went through the intro movie and the story load and then stopped at 212 s with `0xc0000005` in `amd_fidelityfx_upscaler_xbox.dll+0x65ff` (read of 0x10; called from the title), before any indirect draw was emitted. The same site as @Snooozs's row 1 above; here too the FSPX set is 27 of 29, so it fits SHADER-FSPX-DOT4-EXACT (@Coderlord). I can rerun on this laptop with that change when it is up. AI-assisted.
Author
Owner

@fiestorra commented on GitHub (Nov 25, 2026):

done: TEST-RUN-GAME-WINE-WINDOWS-IMPORT -> #1876

The import moved into the one test that locks a file, so the module loads on Windows and the class's existing POSIX skip takes effect: python -I tests/test_run_game_wine.py goes from exit 1 (ModuleNotFoundError: No module named 'fcntl' at line 14) to Ran 9 tests ... OK (skipped=9), exit 0, on main 77baf9062 with Python 3.13.14 on Windows 11. The other seven files the Windows loop fails stay with #1792, #1561, #1837, #1789 and the standing TEST-WINE-JOBS-TIMING-WINDOWS / CI-RUNTIME-PATHS-CONFORMANCE claims, so this is one of the eight and not the whole job.

Written with an AI assistant.

<!-- gh-comment-id:7164420406 --> @fiestorra commented on GitHub (Nov 25, 2026): done: TEST-RUN-GAME-WINE-WINDOWS-IMPORT -> #1876 The import moved into the one test that locks a file, so the module loads on Windows and the class's existing POSIX skip takes effect: `python -I tests/test_run_game_wine.py` goes from exit 1 (`ModuleNotFoundError: No module named 'fcntl'` at line 14) to `Ran 9 tests ... OK (skipped=9)`, exit 0, on `main` `77baf9062` with Python 3.13.14 on Windows 11. The other seven files the Windows loop fails stay with #1792, #1561, #1837, #1789 and the standing TEST-WINE-JOBS-TIMING-WINDOWS / CI-RUNTIME-PATHS-CONFORMANCE claims, so this is one of the eight and not the whole job. Written with an AI assistant.
Author
Owner

@ambroseautomation commented on GitHub (Nov 25, 2026):

done: RT-TITLE-PAGE-WATCH-RANGE-AND-PINS -> #1875

<!-- gh-comment-id:7164438381 --> @ambroseautomation commented on GitHub (Nov 25, 2026): done: RT-TITLE-PAGE-WATCH-RANGE-AND-PINS -> #1875
Author
Owner

@lixonik commented on GitHub (Nov 25, 2026):

done: RT-QUEUE31-CPU-SOURCE-ALIAS -> #1878. The new xmem regression reproduced the missing source bytes before the fix and verified them after it. AI-assisted.

<!-- gh-comment-id:7164449675 --> @lixonik commented on GitHub (Nov 25, 2026): done: RT-QUEUE31-CPU-SOURCE-ALIAS -> #1878. The new xmem regression reproduced the missing source bytes before the fix and verified them after it. AI-assisted.
Author
Owner

@cheltyi commented on GitHub (Nov 25, 2026):

done: D3D-REPLAY-DRAW-SCOPE-RUNS -> #1877

Consecutive compatible direct draws share dynamic rendering; all non-draw/helper/query boundaries close it first. RX 6700 XT/RADV synthetic 10,000-draw frame: 42.94 -> 8.10 ms for the full compatible run, 43.67 -> 20.12 ms for runs of four, with every pixel/depth checked. Singleton control +0.29% frame time in five quiet pinned-core pairs. Full portable build/CTest (94 passed, one expected corpus skip), 6,288 semantic tests and synthetic Vulkan validation passed. No retail FPS claim. Runtime independent; Depends on #1062 declared for the overlapping section 4.3 documentation paragraph only. AI-assisted.

<!-- gh-comment-id:7164452489 --> @cheltyi commented on GitHub (Nov 25, 2026): done: D3D-REPLAY-DRAW-SCOPE-RUNS -> #1877 Consecutive compatible direct draws share dynamic rendering; all non-draw/helper/query boundaries close it first. RX 6700 XT/RADV synthetic 10,000-draw frame: 42.94 -> 8.10 ms for the full compatible run, 43.67 -> 20.12 ms for runs of four, with every pixel/depth checked. Singleton control +0.29% frame time in five quiet pinned-core pairs. Full portable build/CTest (94 passed, one expected corpus skip), 6,288 semantic tests and synthetic Vulkan validation passed. No retail FPS claim. Runtime independent; Depends on #1062 declared for the overlapping section 4.3 documentation paragraph only. AI-assisted.
Author
Owner

@3L1A5-1 commented on GitHub (Nov 25, 2026):

claiming: RT-SHADOW-FOREIGN-RECOPY. Before the story load, the slot-133 pool buffer's tracker (ShadowPages, runtime/shims/d3d12_vulkan_device.cpp) re-copies 27,648 KiB at every submission.

  • Cause: these pages are the last 27 MiB of the console descriptor heap, which lies inside the pool buffer. The heap's own tracker keeps them read-only, so the buffer's tracker counts them as "read-only (not ours)" and can't tell whether they changed.
  • Cost here: about 10 ms of a 22 ms submission. Measured on native Windows, RTX 2060 SUPER, main 98c2f7777.
  • Fix: a page that another tracker keeps read-only is copied once, then skipped until that tracker's write fault, a file-shim reopen, that tracker ending, or a map change clears the mark.
  • Test: a GPU-free test with two trackers over overlapping pages. To make that possible, ShadowPages and its fault handler move unchanged into runtime/src/shadow_pages.h, as a separate commit.

This is a different cause from #1867 (RT-SHADOW-ALIAS-GUARD, aliased pages after the story load), but it touches the same class. I'll rebase onto whichever lands first.

AI-assisted: yes

<!-- gh-comment-id:7164455285 --> @3L1A5-1 commented on GitHub (Nov 25, 2026): claiming: RT-SHADOW-FOREIGN-RECOPY. Before the story load, the slot-133 pool buffer's tracker (`ShadowPages`, `runtime/shims/d3d12_vulkan_device.cpp`) re-copies 27,648 KiB at every submission. - **Cause:** these pages are the last 27 MiB of the console descriptor heap, which lies inside the pool buffer. The heap's own tracker keeps them read-only, so the buffer's tracker counts them as "read-only (not ours)" and can't tell whether they changed. - **Cost here:** about 10 ms of a 22 ms submission. Measured on native Windows, RTX 2060 SUPER, `main` `98c2f7777`. - **Fix:** a page that another tracker keeps read-only is copied once, then skipped until that tracker's write fault, a file-shim reopen, that tracker ending, or a map change clears the mark. - **Test:** a GPU-free test with two trackers over overlapping pages. To make that possible, `ShadowPages` and its fault handler move unchanged into `runtime/src/shadow_pages.h`, as a separate commit. This is a different cause from #1867 (RT-SHADOW-ALIAS-GUARD, aliased pages after the story load), but it touches the same class. I'll rebase onto whichever lands first. AI-assisted: yes
Author
Owner

@thiefyzheng commented on GitHub (Nov 25, 2026):

claiming: RT-TEXEL-COPY-FIXEDWIDTH — the first of @cheltyi's two findings above (comment 7164354183): specialize copy_elements (runtime/shims/xg_xs_layout.h:389) for fixed-width elements (1/2/4/8/16 bytes) instead of a runtime-sized memcpy per texel/block, the path TitleImageUpload::write uses during runtime texture refresh.

Scope: implement the dispatch with a correctness corpus matching the finder's method (layouts × subresources × both directions × mip tails × arrays/volumes × unaligned pointers/pitches — every byte preserved), not just the happy path; the finder's prototype measured 4.54 → 0.596 ms on a synthetic 1024x1024 RGBA8 tiled texture (MinGW GCC 16.2 -O3, Wine) — I will confirm no regression in correctness and leave frame-time benefit to a streaming workload owner, as the finding does.

The second finding there (VA-alias positive range cache) stays unclaimed by me — its prototype regressed random-range lookups and needs the finder's design iteration first.

AI-assisted.

<!-- gh-comment-id:7164508666 --> @thiefyzheng commented on GitHub (Nov 25, 2026): claiming: RT-TEXEL-COPY-FIXEDWIDTH — the first of @cheltyi's two findings above (comment 7164354183): specialize `copy_elements` (`runtime/shims/xg_xs_layout.h:389`) for fixed-width elements (1/2/4/8/16 bytes) instead of a runtime-sized memcpy per texel/block, the path `TitleImageUpload::write` uses during runtime texture refresh. Scope: implement the dispatch with a correctness corpus matching the finder's method (layouts × subresources × both directions × mip tails × arrays/volumes × unaligned pointers/pitches — every byte preserved), not just the happy path; the finder's prototype measured 4.54 → 0.596 ms on a synthetic 1024x1024 RGBA8 tiled texture (MinGW GCC 16.2 -O3, Wine) — I will confirm no regression in correctness and leave frame-time benefit to a streaming workload owner, as the finding does. The second finding there (VA-alias positive range cache) stays unclaimed by me — its prototype regressed random-range lookups and needs the finder's design iteration first. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-BINDLESS-MEMORY-FALLBACK-AND-BAR — BAR-aware memory-type selection, heap-size filtering (VUID-vkAllocateMemory-pAllocateInfo-01713), and multi-type OOM retry fallback in BindlessSet::create() and BindlessSet::create_fallbacks() (runtime/src/vulkan_bindless.h). Fixes the non-ReBAR BAR-first bug where a small DEVICE_LOCAL | HOST_VISIBLE | HOST_COHERENT BAR type at index 0 steals table/staging allocations and makes fallback == local skip both main VRAM and system RAM on OOM, degrading or failing bindless descriptor table flushes. No overlap with #425 or #1092. Testable CPU-only with synthetic Vulkan mocks; no game files or GPU required. AI-assisted.

<!-- gh-comment-id:7164522386 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-BINDLESS-MEMORY-FALLBACK-AND-BAR — BAR-aware memory-type selection, heap-size filtering (`VUID-vkAllocateMemory-pAllocateInfo-01713`), and multi-type OOM retry fallback in `BindlessSet::create()` and `BindlessSet::create_fallbacks()` (`runtime/src/vulkan_bindless.h`). Fixes the non-ReBAR BAR-first bug where a small `DEVICE_LOCAL | HOST_VISIBLE | HOST_COHERENT` BAR type at index 0 steals table/staging allocations and makes `fallback == local` skip both main VRAM and system RAM on OOM, degrading or failing bindless descriptor table flushes. No overlap with #425 or #1092. Testable CPU-only with synthetic Vulkan mocks; no game files or GPU required. AI-assisted.
Author
Owner

@MoonEyes commented on GitHub (Nov 25, 2026):

@QemmHD before I claim anything: I'd like to add an opt-in diagnostic (LEONIDA_ADDRESS_BINDINGS=1) that records every memory binding the driver reports through VK_EXT_device_address_binding_report — images and driver-attributed ranges included, not only buffers — and, on a device fault, prints the object whose binding contains the fault range (reportedAddress widened by addressPrecision) or the nearest one. @OreoFR's latest fault (0x479b50000) is outside the layer's arena and all 3,574 of its buffers, so the owner is likely an image. Is your owner diagnostic already in a PR, or would this overlap it? Supported here on an RTX 4060 / 610.88 (reportAddressBinding = true).

<!-- gh-comment-id:7164580074 --> @MoonEyes commented on GitHub (Nov 25, 2026): @QemmHD before I claim anything: I'd like to add an opt-in diagnostic (LEONIDA_ADDRESS_BINDINGS=1) that records every memory binding the driver reports through VK_EXT_device_address_binding_report — images and driver-attributed ranges included, not only buffers — and, on a device fault, prints the object whose binding contains the fault range (reportedAddress widened by addressPrecision) or the nearest one. @OreoFR's latest fault (0x479b50000) is outside the layer's arena and all 3,574 of its buffers, so the owner is likely an image. Is your owner diagnostic already in a PR, or would this overlap it? Supported here on an RTX 4060 / 610.88 (reportAddressBinding = true).
Author
Owner

@ambroseautomation commented on GitHub (Nov 25, 2026):

claiming: RT-PE-LOADER-DYNAMIC-ROLLBACK-AND-TLS - fix dynamic load, rollback, and TLS publication bugs in runtime/src/pe_loader.cpp: (1) load_runtime_module_w() omits RuntimeLoadScope so wide runtime LoadLibraryW/ExW DLLs receive dynamic_load=false and non-NULL DllMain lpvReserved; (2) failed runtime initialise() in load_runtime_candidate() leaves uninitialised modules in init_order_ and failed dependencies in by_name_, breaking subsequent runtime loads or running abandoned DllMains; (3) failed Loader::load() leaks newly mapped modules in order_, ranges_, and static TLS slots instead of rolling back; (4) initialize_tls() patches /GA reads and writes m.tls_ga_slot after releasing ExclusiveTlsLock and publishing g_tls_slot_owners[slot] (data race with DLL_THREAD_ATTACH), and patch_ga_tls_reads/CLZERO scan skip executable sections with VirtualSize==0; (5) forget_ended_thread_id() calls VirtualFree(nullptr) when ga_view is null; (6) resolve_forwarder() bypasses LEONIDA_COMPAT_DIR precedence over shims.

<!-- gh-comment-id:7164601003 --> @ambroseautomation commented on GitHub (Nov 25, 2026): claiming: RT-PE-LOADER-DYNAMIC-ROLLBACK-AND-TLS - fix dynamic load, rollback, and TLS publication bugs in runtime/src/pe_loader.cpp: (1) load_runtime_module_w() omits RuntimeLoadScope so wide runtime LoadLibraryW/ExW DLLs receive dynamic_load=false and non-NULL DllMain lpvReserved; (2) failed runtime initialise() in load_runtime_candidate() leaves uninitialised modules in init_order_ and failed dependencies in by_name_, breaking subsequent runtime loads or running abandoned DllMains; (3) failed Loader::load() leaks newly mapped modules in order_, ranges_, and static TLS slots instead of rolling back; (4) initialize_tls() patches /GA reads and writes m.tls_ga_slot after releasing ExclusiveTlsLock and publishing g_tls_slot_owners[slot] (data race with DLL_THREAD_ATTACH), and patch_ga_tls_reads/CLZERO scan skip executable sections with VirtualSize==0; (5) forget_ended_thread_id() calls VirtualFree(nullptr) when ga_view is null; (6) resolve_forwarder() bypasses LEONIDA_COMPAT_DIR precedence over shims.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-BINDLESS-MEMORY-FALLBACK-AND-BAR -> #1879

<!-- gh-comment-id:7164624874 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-BINDLESS-MEMORY-FALLBACK-AND-BAR -> #1879
Author
Owner

@thiefyzheng commented on GitHub (Nov 25, 2026):

done: RT-TEXEL-COPY-FIXEDWIDTH -> #1880

@cheltyi's first finding above, implemented: copy_elements now does one switch per row and dispatches widths 1/2/4/8/16 to a compile-time-sized copy loop, with Width=0 byte-for-byte the old loop for anything else. Verified with a whole-destination-buffer corpus (17 textures across all five widths tiled/linear/mip-tails/volumes, 3 misalignments x 3 pitch paddings, both directions, fallback widths 3/6/12 included): 306 checks 0 failures under g++ ASan+UBSan, guard-checked (27 failures with width-4 broken on purpose), and the texel_copy ctest built and passed under MSVC /W4 on Windows.

Timing/frames: not re-measured here — the finder's 4.54→0.596 ms prototype stands; a streaming-workload owner can establish the frame benefit. xg_xs_test/d3d12_existing_heap_test not run (no device here). AI-assisted.

<!-- gh-comment-id:7164638019 --> @thiefyzheng commented on GitHub (Nov 25, 2026): done: RT-TEXEL-COPY-FIXEDWIDTH -> #1880 @cheltyi's first finding above, implemented: `copy_elements` now does one `switch` per row and dispatches widths 1/2/4/8/16 to a compile-time-sized copy loop, with `Width=0` byte-for-byte the old loop for anything else. Verified with a whole-destination-buffer corpus (17 textures across all five widths tiled/linear/mip-tails/volumes, 3 misalignments x 3 pitch paddings, both directions, fallback widths 3/6/12 included): **306 checks 0 failures under g++ ASan+UBSan**, guard-checked (27 failures with width-4 broken on purpose), and the `texel_copy` ctest built **and passed under MSVC /W4** on Windows. Timing/frames: not re-measured here — the finder's 4.54→0.596 ms prototype stands; a streaming-workload owner can establish the frame benefit. `xg_xs_test`/`d3d12_existing_heap_test` not run (no device here). AI-assisted.
Author
Owner

@Zalthor commented on GitHub (Nov 25, 2026):

Verification batch 7: 52 open pull requests in the busiest files (tools/rdna2spirv.py, tools/x64_recomp.py, make_game.py), all with queued CI. Each diff (merge-base..head) was applied to its own clean worktree at main. Applicability was re-checked at main 71a769d7d. Environment: Windows 10, CPU only, no game files, TEMP on C:. The python -I test files ran on CPython 3.12, as in CI's Windows job; pytest-mode files ran on 3.10. AI-assisted (Claude Code). Same method as batches 1 to 6, plus a second pass for these busy files.

Summary: 37 apply cleanly and pass; none breaks a test. 14 no longer apply to main. #1337 was closed while this batch ran.

Translator (tools/rdna2spirv.py): full semantic suite with each PR applied

#858, #1261, #1265, #1415, #1477, #1529, #1652, #1662, #1683, #1697, #1729: each one ran the whole suite (scripts/run_semantic_tests.py tests/semantic, 489–490 files, about 6,290 tests) with 0 failed files. Their new tests pass with the PR, and where they can run on main, they fail there.

  • #1697 was force-pushed during the run. I re-tested it at f8cbebd72: 11 new tests fail on main, and the suite passes with the PR.
  • #858: on main, its new test does not finish within 300 s. With the PR, the 3 tests pass, with 462 subtests, in about 30 s.
  • #1477, #1652: a few semantic test files failed when I ran them one by one, outside the suite runner. With the runner CI uses, the whole suite passes. So treat that as a quirk of how I ran them, not a finding.

tools/x64_recomp.py: new tests fail on unpatched main and pass with the PR (3.12)

#1205, #1296, #1313, #1321, #1329, #1339, #1349, #1357, #1362, #1373, #1379, #1383, #1392, #1401, #1408, #1409, #1428, #1483, #1485, #1488.

Many of these add instruction forms next to each other, so later merges will conflict textually. I did not test them in combination.

make_game.py

  • #1013, #1407, #1446: the new tests fail on main and pass with the PR (3.12).
  • #1372: of its two test files, test_shader_stage_resume.py fails on main and passes with the PR.
  • #1529: all three of its test files fail on main and pass with the PR: test_make_game_empty_translation, test_rdna2spirv_cli and test_shader_stage_resume. It also passes the full semantic suite.
  • #1627: a case-alias change. Its tests pass both with it and without it, so they don't show a behaviour difference.
  • Other make_game tests: I also ran all 50 test files that mention make_game with each of these PRs applied. The failures were the same 11 files that fail on main, and no new ones. That run used 3.10, and make_game.py refuses to start below 3.12, so those 11 are interpreter artifacts. I did not finish a 3.12 run of those 50 files.

No longer apply to main (need a rebase)

#808, #1199, #1258, #1355, #1366, #1374, #1378, #1426, #1476, #1479, #1480, #1481, #1482, #1587: git apply fails at current main.

#1163 was rebased during the run and now applies. I tested it at the new head: its 2 test files pass, and its new tests fail on main (36 failures). The full semantic suite passes (490 files, 6,293 tests, 0 failed files).

Not covered: no Linux or macOS run, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.

<!-- gh-comment-id:7164645722 --> @Zalthor commented on GitHub (Nov 25, 2026): Verification batch 7: 52 open pull requests in the busiest files (`tools/rdna2spirv.py`, `tools/x64_recomp.py`, `make_game.py`), all with queued CI. Each diff (merge-base..head) was applied to its own clean worktree at `main`. Applicability was re-checked at `main` `71a769d7d`. Environment: Windows 10, CPU only, no game files, `TEMP` on `C:`. The `python -I` test files ran on CPython 3.12, as in CI's Windows job; pytest-mode files ran on 3.10. AI-assisted (Claude Code). Same method as batches [1](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157070042) to [6](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7161188301), plus a second pass for these busy files. **Summary: 37 apply cleanly and pass; none breaks a test. 14 no longer apply to `main`. #1337 was closed while this batch ran.** ### Translator (`tools/rdna2spirv.py`): full semantic suite with each PR applied #858, #1261, #1265, #1415, #1477, #1529, #1652, #1662, #1683, #1697, #1729: each one ran the whole suite (`scripts/run_semantic_tests.py tests/semantic`, 489–490 files, about 6,290 tests) with **0 failed files**. Their new tests pass with the PR, and where they can run on `main`, they fail there. - **#1697** was force-pushed during the run. I re-tested it at `f8cbebd72`: 11 new tests fail on `main`, and the suite passes with the PR. - **#858:** on `main`, its new test does not finish within 300 s. With the PR, the 3 tests pass, with 462 subtests, in about 30 s. - **#1477, #1652:** a few semantic test files failed when I ran them one by one, outside the suite runner. With the runner CI uses, the whole suite passes. So treat that as a quirk of how I ran them, not a finding. ### `tools/x64_recomp.py`: new tests fail on unpatched `main` and pass with the PR (3.12) #1205, #1296, #1313, #1321, #1329, #1339, #1349, #1357, #1362, #1373, #1379, #1383, #1392, #1401, #1408, #1409, #1428, #1483, #1485, #1488. Many of these add instruction forms next to each other, so later merges will conflict textually. I did not test them in combination. ### `make_game.py` - **#1013, #1407, #1446:** the new tests fail on `main` and pass with the PR (3.12). - **#1372:** of its two test files, `test_shader_stage_resume.py` fails on `main` and passes with the PR. - **#1529:** all three of its test files fail on `main` and pass with the PR: `test_make_game_empty_translation`, `test_rdna2spirv_cli` and `test_shader_stage_resume`. It also passes the full semantic suite. - **#1627:** a case-alias change. Its tests pass both with it and without it, so they don't show a behaviour difference. - **Other `make_game` tests:** I also ran all 50 test files that mention `make_game` with each of these PRs applied. The failures were the same 11 files that fail on `main`, and no new ones. That run used 3.10, and `make_game.py` refuses to start below 3.12, so those 11 are interpreter artifacts. I did not finish a 3.12 run of those 50 files. ### No longer apply to `main` (need a rebase) #808, #1199, #1258, #1355, #1366, #1374, #1378, #1426, #1476, #1479, #1480, #1481, #1482, #1587: `git apply` fails at current `main`. **#1163** was rebased during the run and now applies. I tested it at the new head: its 2 test files pass, and its new tests fail on `main` (36 failures). The full semantic suite passes (490 files, 6,293 tests, 0 failed files). Not covered: no Linux or macOS run, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-CONSOLE-HEAP-VSHARP-BITSET — track live console resource-heap V# slots in a host-RAM bitset (runtime/src/console_heap_vsharp_slots.h, wired in ConsoleHeap / refresh_console_heap in runtime/shims/d3d12_vulkan_device.cpp) instead of scanning all 32-byte slots of heap.copy (which is uncached write-combined GPU arena memory whenever the heap is not host-imported) on every released_backings or title_va_aliases().invalidations() bump. Eliminates 100% of WC PCIe reads from heap.copy during invalidation scans and skips empty/T# slots 64 at a time. No overlap with #1728 or #1867. Portable unit test runs CPU-only; no game files or GPU required. AI-assisted.

<!-- gh-comment-id:7164694343 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-CONSOLE-HEAP-VSHARP-BITSET — track live console resource-heap V# slots in a host-RAM bitset (`runtime/src/console_heap_vsharp_slots.h`, wired in `ConsoleHeap` / `refresh_console_heap` in `runtime/shims/d3d12_vulkan_device.cpp`) instead of scanning all 32-byte slots of `heap.copy` (which is uncached write-combined GPU arena memory whenever the heap is not host-imported) on every `released_backings` or `title_va_aliases().invalidations()` bump. Eliminates 100% of WC PCIe reads from `heap.copy` during invalidation scans and skips empty/T# slots 64 at a time. No overlap with #1728 or #1867. Portable unit test runs CPU-only; no game files or GPU required. AI-assisted.
Author
Owner

@QemmHD commented on GitHub (Nov 25, 2026):

@MoonEyes go ahead, it doesn't overlap anything in a PR. My owner check was a local diagnostic only, and it only knew the layer's own buffers (and a ring of freed ones). That's exactly why it came up empty: the fault was far from every buffer device address. VK_EXT_device_address_binding_report covers images and driver-internal ranges, which is the piece that was missing. One thing that would help when it lands: print the binding kind the driver reports (image vs buffer vs internal) and its flags, and keep a short history of unbinds, since a range released just before the fault is a prime suspect.

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

<!-- gh-comment-id:7164815013 --> @QemmHD commented on GitHub (Nov 25, 2026): @MoonEyes go ahead, it doesn't overlap anything in a PR. My owner check was a local diagnostic only, and it only knew the layer's own buffers (and a ring of freed ones). That's exactly why it came up empty: the fault was far from every buffer device address. `VK_EXT_device_address_binding_report` covers images and driver-internal ranges, which is the piece that was missing. One thing that would help when it lands: print the binding *kind* the driver reports (image vs buffer vs internal) and its flags, and keep a short history of unbinds, since a range released just before the fault is a prime suspect. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@kurrutako commented on GitHub (Nov 25, 2026):

Data point for @CLHelper's world-start result above, on a desktop RTX 5070 12 GB, NVIDIA 621.01 (Windows 11 build 26300, Ryzen 7 7800X3D, 64 GB, own 1.0.2.1), counts only. Build: main 71a769d7d + #1851 (in place of #1810, so no MSVC fix was needed) + #1827 + #1849, merged cleanly; runtime RelWithDebInfo with MSVC 2022. Shaders are the ones I translated at 3de22a190 (--wave64-emulate), so they do not have SHADER-VALU-LITERAL-SEXT (#1493) or #1862. Same switches: LEONIDA_HOST_IMAGE_COPY=0 LEONIDA_ASYNC_PIPELINES=1 LEONIDA_DEVICE_TYPE=6 LEONIDA_ARENA_MB=2048 LEONIDA_TITLE_WATCHDOG=0, plus LEONIDA_DEVICE_FAULT=1, keyboard pad and an Xbox One pad, a person at the keyboard, fresh overlay and save folder.

  • No device loss and no fault report. The device-fault reporter was on and logged nothing beyond its startup line. In #1537 the same card lost the device at 171 s on ed94fbef9 and at 426 s on bcaa13dad, both with default switches.
  • The 64 MiB title-window cap is still reached (MiB copied so far: 63), and the boot carries on past it.
  • The run stops at 210 s with 0xc0000005 in amd_fidelityfx_upscaler_xbox.dll+0x65ff (read of 0x10), called from the title. This is the same site and the same read as your second boot (212 s) and @Snooozs's row 1. Just before it, the runtime logs no translated compute shader for FSPX kind-6 and kind-0 twice, and slot 67 fails with 0x80070057. That fits SHADER-FSPX-DOT4-EXACT (#1862), which these shaders do not have.
  • Other counts: host image copy: off (LEONIDA_HOST_IMAGE_COPY=0) logged once. 34 pipeline builds logged took N s. The two earlier 0xc0000005 reads in the trace are in the runtime's hash_guarded (refresh_title_texture), which handles them.

So the world-start fix also holds on a desktop Blackwell card with a newer driver, and the next stop is again the FSR upscaler. I can rerun on this PC with #1862 once it is in, after retranslating the shaders (about an hour).

Counts, offsets and program names only, no game data. AI-assisted.

<!-- gh-comment-id:7164827382 --> @kurrutako commented on GitHub (Nov 25, 2026): Data point for @CLHelper's world-start result above, on a desktop **RTX 5070 12 GB, NVIDIA 621.01** (Windows 11 build 26300, Ryzen 7 7800X3D, 64 GB, own 1.0.2.1), counts only. Build: `main` 71a769d7d + #1851 (in place of #1810, so no MSVC fix was needed) + #1827 + #1849, merged cleanly; runtime RelWithDebInfo with MSVC 2022. Shaders are the ones I translated at `3de22a190` (`--wave64-emulate`), so they do not have SHADER-VALU-LITERAL-SEXT (#1493) or #1862. Same switches: `LEONIDA_HOST_IMAGE_COPY=0 LEONIDA_ASYNC_PIPELINES=1 LEONIDA_DEVICE_TYPE=6 LEONIDA_ARENA_MB=2048 LEONIDA_TITLE_WATCHDOG=0`, plus `LEONIDA_DEVICE_FAULT=1`, keyboard pad and an Xbox One pad, a person at the keyboard, fresh overlay and save folder. - **No device loss and no fault report.** The device-fault reporter was on and logged nothing beyond its startup line. In #1537 the same card lost the device at 171 s on `ed94fbef9` and at 426 s on `bcaa13dad`, both with default switches. - The 64 MiB title-window cap is still reached (`MiB copied so far: 63`), and the boot carries on past it. - **The run stops at 210 s with `0xc0000005` in `amd_fidelityfx_upscaler_xbox.dll+0x65ff` (read of 0x10)**, called from the title. This is the same site and the same read as your second boot (212 s) and @Snooozs's row 1. Just before it, the runtime logs `no translated compute shader for FSPX kind-6 and kind-0` twice, and slot 67 fails with `0x80070057`. That fits SHADER-FSPX-DOT4-EXACT (#1862), which these shaders do not have. - Other counts: `host image copy: off (LEONIDA_HOST_IMAGE_COPY=0)` logged once. 34 pipeline builds logged `took N s`. The two earlier `0xc0000005` reads in the trace are in the runtime's `hash_guarded` (`refresh_title_texture`), which handles them. So the world-start fix also holds on a desktop Blackwell card with a newer driver, and the next stop is again the FSR upscaler. I can rerun on this PC with #1862 once it is in, after retranslating the shaders (about an hour). Counts, offsets and program names only, no game data. AI-assisted.
Author
Owner

@ambroseautomation commented on GitHub (Nov 25, 2026):

done: RT-PE-LOADER-DYNAMIC-ROLLBACK-AND-TLS -> #1881

<!-- gh-comment-id:7164893277 --> @ambroseautomation commented on GitHub (Nov 25, 2026): done: RT-PE-LOADER-DYNAMIC-ROLLBACK-AND-TLS -> #1881
Author
Owner

@OreoFR commented on GitHub (Nov 25, 2026):

finding (crash A owner found): with VK_EXT_device_address_binding_report (a local diagnostic of mine, after @MoonEyes' suggestion: the driver reports every memory bind with its device address, images included, and the device-fault report looks the fault address up), the world-start WRITE_INVALID at 0x4770a0000 is the first byte after the end of a D32_SFLOAT 2560x1440 depth image:

  • the image: 1 mip, 1 layer, usage 0x27 (transfer src/dst, sampled, depth attachment), mutable format, bound at 0x4761a0000, size 0xF00000;
  • the next binding is an A2B10G10R10_UNORM 2560x1440 image starting 64 KiB later.

The layer's own buffer registry has nothing there either: the address is outside the 2 GiB arena and in none of its ~3,600 buffers.

Setup: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Windows 11. main 77baf9062 + #1691 + #1647 + #1827 + #1849 + #1698, host image copy off, LEONIDA_ASYNC_PIPELINES=1, LEONIDA_DEVICE_FAULT=1 (the lookup runs in the device-fault report). Device lost at ~236 s, with lib_cs_01851/01468/01855/00906 in flight, and the first refused device-local allocation at 111 s.

So something writes past the end of that depth image, which matches @QemmHD's "end of a block" offsets. The image has no storage usage, so a shader cannot write it directly; the candidates are a depth attachment write or a copy. I'm repeating the run to see if it is the same image each time, with LEONIDA_VK_VALIDATION=1 captured this time.

AI-assisted.

<!-- gh-comment-id:7164893397 --> @OreoFR commented on GitHub (Nov 25, 2026): finding (crash A owner found): with `VK_EXT_device_address_binding_report` (a local diagnostic of mine, after @MoonEyes' suggestion: the driver reports every memory bind with its device address, images included, and the device-fault report looks the fault address up), the world-start WRITE_INVALID at `0x4770a0000` is **the first byte after the end of a `D32_SFLOAT` 2560x1440 depth image**: - the image: 1 mip, 1 layer, usage `0x27` (transfer src/dst, sampled, depth attachment), mutable format, bound at `0x4761a0000`, size `0xF00000`; - the next binding is an `A2B10G10R10_UNORM` 2560x1440 image starting 64 KiB later. The layer's own buffer registry has nothing there either: the address is outside the 2 GiB arena and in none of its ~3,600 buffers. Setup: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Windows 11. `main` `77baf9062` + #1691 + #1647 + #1827 + #1849 + #1698, host image copy off, `LEONIDA_ASYNC_PIPELINES=1`, `LEONIDA_DEVICE_FAULT=1` (the lookup runs in the device-fault report). Device lost at ~236 s, with `lib_cs_01851`/`01468`/`01855`/`00906` in flight, and the first refused device-local allocation at 111 s. So something writes past the end of that depth image, which matches @QemmHD's "end of a block" offsets. The image has no storage usage, so a shader cannot write it directly; the candidates are a depth attachment write or a copy. I'm repeating the run to see if it is the same image each time, with `LEONIDA_VK_VALIDATION=1` captured this time. AI-assisted.
Author
Owner

@kurrutako commented on GitHub (Nov 25, 2026):

claiming: DOC-FIRST-RUN-UI-USAGE — gta6rt's usage line for --first-run-ui (runtime/src/main.cpp:223) lists only --game-dir, --overlay and --trace, but the mode goes through the same parser as --run and takes --mods, --archetype-lookup, --view-mode-getter, --trace-d3d12 and game arguments after --. While booting on an RTX 5070 I took the usage line at its word and ran without --trace-d3d12, so tools/boot_trace.py --d3d12 had nothing to read. The fix lists the same options as --run and adds one sentence to docs/first_run_ui.md. No behaviour change; no game files or GPU needed. No open PR changes that line (#1612 touches other parts of main.cpp). AI-assisted.

<!-- gh-comment-id:7164978816 --> @kurrutako commented on GitHub (Nov 25, 2026): claiming: DOC-FIRST-RUN-UI-USAGE — `gta6rt`'s usage line for `--first-run-ui` (`runtime/src/main.cpp:223`) lists only `--game-dir`, `--overlay` and `--trace`, but the mode goes through the same parser as `--run` and takes `--mods`, `--archetype-lookup`, `--view-mode-getter`, `--trace-d3d12` and game arguments after `--`. While booting on an RTX 5070 I took the usage line at its word and ran without `--trace-d3d12`, so `tools/boot_trace.py --d3d12` had nothing to read. The fix lists the same options as `--run` and adds one sentence to `docs/first_run_ui.md`. No behaviour change; no game files or GPU needed. No open PR changes that line (#1612 touches other parts of `main.cpp`). AI-assisted.
Author
Owner

@Miici0 commented on GitHub (Nov 25, 2026):

claiming: D3D-STREAMOUTPUT-RUNTIME - the capture path #1630 (D3D-302) explicitly left unclaimed ("StreamOutput PSOs are still refused and SOSetTargets is still not implemented; the capture path is not part of this PR"): accept StreamOutput PSOs (the common case, RasterizedStream 0), implement SOSetTargets the same way IASetVertexBuffers works, and wrap a draw in vkCmdBindTransformFeedbackBuffersEXT + vkCmdBeginTransformFeedbackEXT/EndTransformFeedbackEXT when its pipeline declares StreamOutput and every buffer slot is bound.

Stacked on #1236 (the device detect/enable), same as #1630. Touches the same few files as #1630 (d3d12_com.h, d3d12_vulkan_device.cpp, vulkan_backend.h, vulkan_replay.h) but a different part of each - the query heap code I touched is only a comment update, not the SO_STATISTICS pools themselves, which stay #1630's. A rebase against each other may be needed depending on merge order, same as any two PRs stacked on the same base.

Verified with a new test (runtime/test/d3d12_stream_output_test.cpp): a hand-written GLSL vertex shader with Xfb decorations already in place (not a translated one - matching a real translated shader's output semantics to StreamOutput buffer slots needs patching Xfb decorations into its SPIR-V at PSO-creation time, separate follow-up work) writes a fixed vec4, drawn 3 times, read back and checked byte for byte. 0 mismatches on real hardware. Full ctest: 307/308 pass, only the pre-existing d3d12_execute_indirect_validation failure (#1066, unrelated).

No game files; tested on an NVIDIA GeForce RTX 4070 SUPER. AI-assisted.

<!-- gh-comment-id:7164990951 --> @Miici0 commented on GitHub (Nov 25, 2026): claiming: D3D-STREAMOUTPUT-RUNTIME - the capture path #1630 (D3D-302) explicitly left unclaimed ("StreamOutput PSOs are still refused and SOSetTargets is still not implemented; the capture path is not part of this PR"): accept StreamOutput PSOs (the common case, RasterizedStream 0), implement SOSetTargets the same way IASetVertexBuffers works, and wrap a draw in vkCmdBindTransformFeedbackBuffersEXT + vkCmdBeginTransformFeedbackEXT/EndTransformFeedbackEXT when its pipeline declares StreamOutput and every buffer slot is bound. Stacked on #1236 (the device detect/enable), same as #1630. Touches the same few files as #1630 (d3d12_com.h, d3d12_vulkan_device.cpp, vulkan_backend.h, vulkan_replay.h) but a different part of each - the query heap code I touched is only a comment update, not the SO_STATISTICS pools themselves, which stay #1630's. A rebase against each other may be needed depending on merge order, same as any two PRs stacked on the same base. Verified with a new test (runtime/test/d3d12_stream_output_test.cpp): a hand-written GLSL vertex shader with Xfb decorations already in place (not a translated one - matching a real translated shader's output semantics to StreamOutput buffer slots needs patching Xfb decorations into its SPIR-V at PSO-creation time, separate follow-up work) writes a fixed vec4, drawn 3 times, read back and checked byte for byte. 0 mismatches on real hardware. Full ctest: 307/308 pass, only the pre-existing d3d12_execute_indirect_validation failure (#1066, unrelated). No game files; tested on an NVIDIA GeForce RTX 4070 SUPER. AI-assisted.
Author
Owner

@kurrutako commented on GitHub (Nov 25, 2026):

done: DOC-FIRST-RUN-UI-USAGE -> #1883

<!-- gh-comment-id:7165013494 --> @kurrutako commented on GitHub (Nov 25, 2026): done: DOC-FIRST-RUN-UI-USAGE -> #1883
Author
Owner

@t91a60 commented on GitHub (Nov 25, 2026):

done: RT-XG-XS-COPY-SPECIALIZATION -> #1882

Specialized the tiled copy_elements path for 1, 2, 4, 8 and 16-byte copies.

Synthetic 1024×1024 RGBA8 benchmark: ~7.6× faster. Byte-for-byte behavior preserved.

  • Only runtime/shims/xg_xs_layout.h changed
  • Existing XG and D3D12 tests cover the affected paths
  • No new dependencies or game data
  • AI-assisted

PR ready for review: https://github.com/ubiquitarianism/leonida/pull/1882

<!-- gh-comment-id:7165025603 --> @t91a60 commented on GitHub (Nov 25, 2026): done: RT-XG-XS-COPY-SPECIALIZATION -> #1882 Specialized the tiled `copy_elements` path for 1, 2, 4, 8 and 16-byte copies. Synthetic 1024×1024 RGBA8 benchmark: ~7.6× faster. Byte-for-byte behavior preserved. - Only `runtime/shims/xg_xs_layout.h` changed - Existing XG and D3D12 tests cover the affected paths - No new dependencies or game data - AI-assisted PR ready for review: https://github.com/ubiquitarianism/leonida/pull/1882
Author
Owner

@GeorgiyDemo commented on GitHub (Nov 25, 2026):

macOS full-suite status on main 71a769d7d (fresh build + matching scripts; Apple M5 Pro, macOS 26.7.3 (25G342), MoltenVK 1.4.2 loaded directly, Homebrew llvm-mc 23.1.4, SPIRV-Tools 1.4.363):

  • scripts/run_gpu_tests.py (no filter): 193/264 passed, 69 skipped, 2 failed
    • cs_fma_fused — the macOS CI's expected failure, still accurate.
    • cs_imgatomic_ext — not in EXPECTED_FAILURES: "6 of 64 sint words differ; first word 32: got 0x0badf00d, expected 0x00000101", exactly the failure #1518 fixes. Until #1518 lands (or the list changes), the macOS GPU job should be red on main.
  • ctest: 100% of 95 passed, 2 skipped (shader_library_corpus, vk_sync_validation). vk_overlapping_occlusion and vk_overlapping_occlusion_no_statistics both passed on this real M5 — the CI runner's paravirtual Metal is where the #2100 failure shows.
  • ps_ssharp passed in the full run here (real M5, macOS 26.7.3); it still fails on the CI runner's paravirtual device, as listed.

AI-assisted; no game data (the GPU suite is the repository's synthetic fixtures).

<!-- gh-comment-id:7165133975 --> @GeorgiyDemo commented on GitHub (Nov 25, 2026): macOS full-suite status on `main` `71a769d7d` (fresh build + matching scripts; Apple M5 Pro, macOS 26.7.3 (25G342), MoltenVK 1.4.2 loaded directly, Homebrew llvm-mc 23.1.4, SPIRV-Tools 1.4.363): - `scripts/run_gpu_tests.py` (no filter): **193/264 passed, 69 skipped, 2 failed** - `cs_fma_fused` — the macOS CI's expected failure, still accurate. - `cs_imgatomic_ext` — **not in `EXPECTED_FAILURES`**: "6 of 64 sint words differ; first word 32: got 0x0badf00d, expected 0x00000101", exactly the failure #1518 fixes. Until #1518 lands (or the list changes), the macOS GPU job should be red on `main`. - `ctest`: **100% of 95 passed**, 2 skipped (`shader_library_corpus`, `vk_sync_validation`). `vk_overlapping_occlusion` and `vk_overlapping_occlusion_no_statistics` both passed on this real M5 — the CI runner's paravirtual Metal is where the #2100 failure shows. - `ps_ssharp` passed in the full run here (real M5, macOS 26.7.3); it still fails on the CI runner's paravirtual device, as listed. AI-assisted; no game data (the GPU suite is the repository's synthetic fixtures).
Author
Owner

@Miici0 commented on GitHub (Nov 25, 2026):

claiming: D3D-STREAMOUTPUT-RASTERIZED-STREAM - the RasterizedStream != 0 case I left refused in D3D-STREAMOUTPUT-RUNTIME (#1884): an explicit non-default RasterizedStream (needs VkPipelineRasterizationStateStreamCreateInfoEXT + the geometryStreams feature, already detected/enabled by #1236) and D3D12_SO_NO_RASTERIZED_STREAM (capture-only, no rasterization: Vulkan's rasterizerDiscardEnable). Stacked on #1884. No game files; tested on an NVIDIA GeForce RTX 4070 SUPER.

<!-- gh-comment-id:7165139723 --> @Miici0 commented on GitHub (Nov 25, 2026): claiming: D3D-STREAMOUTPUT-RASTERIZED-STREAM - the RasterizedStream != 0 case I left refused in D3D-STREAMOUTPUT-RUNTIME (#1884): an explicit non-default RasterizedStream (needs VkPipelineRasterizationStateStreamCreateInfoEXT + the geometryStreams feature, already detected/enabled by #1236) and D3D12_SO_NO_RASTERIZED_STREAM (capture-only, no rasterization: Vulkan's rasterizerDiscardEnable). Stacked on #1884. No game files; tested on an NVIDIA GeForce RTX 4070 SUPER.
Author
Owner

@robot00f commented on GitHub (Nov 25, 2026):

done: MAKE-GAME-MESH-COMPUTE-NO-EXT -> #1885 (claimed in https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7152196533)

<!-- gh-comment-id:7165194072 --> @robot00f commented on GitHub (Nov 25, 2026): done: MAKE-GAME-MESH-COMPUTE-NO-EXT -> #1885 (claimed in https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7152196533)
Author
Owner

@DadaCap commented on GitHub (Nov 25, 2026):

done: RT-SESSION-CACHE-LIMIT -> #1886

Correction to my finding 7163972744: I wrote that the first world frame took 2.1 s instead of 8.7 s with the limit raised. That run loaded the same 267.7 MB file as the one before it, so the difference came from LEONIDA_SERIAL_BIG_COMPILES=0, not from the limit. What the limit does is in #1886: of 362 builds slow in one run, 353 came from the cache in the next. AI-assisted (Claude Code).

<!-- gh-comment-id:7165307423 --> @DadaCap commented on GitHub (Nov 25, 2026): done: RT-SESSION-CACHE-LIMIT -> #1886 Correction to my finding 7163972744: I wrote that the first world frame took 2.1 s instead of 8.7 s with the limit raised. That run loaded the same 267.7 MB file as the one before it, so the difference came from `LEONIDA_SERIAL_BIG_COMPILES=0`, not from the limit. What the limit does is in #1886: of 362 builds slow in one run, 353 came from the cache in the next. AI-assisted (Claude Code).
Author
Owner

@kotekompotek commented on GitHub (Nov 25, 2026):

claiming: TEST-CLOSE-PARITY-WARP-DRIFT - d3d12_close_parity_test fails on current main (71a769d7d) on Windows 11 24H2: three CopyTextureRegion upload rows (offset 16, offset 4, row pitch 260) are marked layer_stricter against the measured WARP column (warp_ok=true, recorded on d3d10warp.dll 10.0.26100.9818 / build 26200), but this box's newer WARP refuses the same calls, so every such row fails "now matches WARP". The layer itself did not change — same class as the CreateHeap host probe (#1721).

Fix: for layer_stricter/layer_looser rows, when the live WARP verdict differs from the measured column, keep the measured column as the reference — the mark verifies the recorded gap still exists; live-WARP drift is already counted in warp_changed. match rows keep the live WARP answer authoritative. Tested on GTX 1050 + WARP (d3d10warp 10.0.26100), Windows 11, MSVC 19.43 Debug. AI-assisted.

<!-- gh-comment-id:7165349767 --> @kotekompotek commented on GitHub (Nov 25, 2026): claiming: TEST-CLOSE-PARITY-WARP-DRIFT - `d3d12_close_parity_test` fails on current main (71a769d7d) on Windows 11 24H2: three `CopyTextureRegion upload` rows (offset 16, offset 4, row pitch 260) are marked `layer_stricter` against the measured WARP column (warp_ok=true, recorded on d3d10warp.dll 10.0.26100.9818 / build 26200), but this box's newer WARP refuses the same calls, so every such row fails "now matches WARP". The layer itself did not change — same class as the CreateHeap host probe (#1721). Fix: for `layer_stricter`/`layer_looser` rows, when the live WARP verdict differs from the measured column, keep the measured column as the reference — the mark verifies the recorded gap still exists; live-WARP drift is already counted in `warp_changed`. `match` rows keep the live WARP answer authoritative. Tested on GTX 1050 + WARP (d3d10warp 10.0.26100), Windows 11, MSVC 19.43 Debug. AI-assisted.
Author
Owner

@Snooozs commented on GitHub (Nov 25, 2026):

@OreoFR @QemmHD @MoonEyes on the write past the D32 2560x1440 image (crash A owner): I can't boot right now (no free RAM), so this is code reading of main 71a769d7d plus a count over my translated library. It narrows the list, it does not find the cause.

Ruled out

  • A shader picking a layer past the image. With 0xF00000 = 10,240 bytes x 1,536 rows, "the first byte after the end" is where row 1,536 or a second layer would start, so a stray gl_Layer was my first guess. Of 28,555 translated modules (main corpus, library, FSPX), 11,099 decorate Position, and none decorates Layer or ViewportIndex or declares ShaderLayer/ShaderViewportIndex. (Programs the translator refuses are not in that count; the library is from this morning's main with the mesh pos1 layer export, #1197.)
  • A render area or layer count larger than the depth image. The draw preparation takes the minimum over every bound attachment for both (vulkan_replay.h:2600-2657).
  • The registered image or its cached views going away under a list being recorded, by the paths I read. remove_resource takes resource_mutex_ uniquely and ends in tracker_mutex_; execute_now holds the first until the command buffer is recorded (vulkan_backend.h:3389) and the second until after vkQueueSubmit (:3454). So only one recorded-but-unsubmitted buffer can exist, which is what the submitted + 1 ticket of defer_destroy covers, and tickets retire only as a contiguous prefix over all queues. I did not check the sparse, pooled-title-image or early-return paths.

Hypothesis, cheap to check with the binding report: what decides whether this faults may be where the image lives, not only who writes. DeviceState::allocate falls back from a refused device-local type to whatever else the image allows (spilled_to_host, logged once only). If a driver backs VRAM with larger pages than system memory, the same small overshoot would land inside the page in VRAM and fault in system memory, which would fit your 10 of 10 losses coming after the first refusal (and not every refusal leading to one).

  • Please print for the owning image: its memory type index and property flags, and whether that VkDeviceMemory was bound after the first refusal.
  • Also whether anything was bound in the 64 KiB hole after it (0x4770a0000-0x4770b0000) earlier in the run. If so, the image may just be the neighbour of a freed object, and the unbind history MoonEyes plans would name it.

Separately, for anyone stuck at amd_fidelityfx_upscaler_xbox.dll+0x65ff (@CLHelper, @kurrutako): #1862 gives 29 of 29 FSPX programs here with llvm-mc 23.1.6, byte-identical to the set that got my boots past that stop. To get past that stop only the FSPX programs have to be redone, by hand in seconds (fspx_unpack.py <dll> --out <work>/shaders/fspx --disasm, then rdna2spirv.py <work>/shaders/fspx/disasm --out <work>/shaders/spirv/fspx --no-asm --wave64-emulate), not the hour-long library (numbers).

Counts and code references only, no game data. AI-assisted (Claude Code).

<!-- gh-comment-id:7165364828 --> @Snooozs commented on GitHub (Nov 25, 2026): @OreoFR @QemmHD @MoonEyes on the write past the D32 2560x1440 image ([crash A owner](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7164893397)): I can't boot right now (no free RAM), so this is code reading of `main` 71a769d7d plus a count over my translated library. It narrows the list, it does not find the cause. **Ruled out** - **A shader picking a layer past the image.** With `0xF00000` = 10,240 bytes x 1,536 rows, "the first byte after the end" is where row 1,536 or a second layer would start, so a stray `gl_Layer` was my first guess. Of 28,555 translated modules (main corpus, library, FSPX), 11,099 decorate `Position`, and **none** decorates `Layer` or `ViewportIndex` or declares `ShaderLayer`/`ShaderViewportIndex`. (Programs the translator refuses are not in that count; the library is from this morning's `main` with the mesh pos1 layer export, #1197.) - **A render area or layer count larger than the depth image.** The draw preparation takes the minimum over every bound attachment for both (`vulkan_replay.h:2600-2657`). - **The registered image or its cached views going away under a list being recorded**, by the paths I read. `remove_resource` takes `resource_mutex_` uniquely and ends in `tracker_mutex_`; `execute_now` holds the first until the command buffer is recorded (`vulkan_backend.h:3389`) and the second until after `vkQueueSubmit` (`:3454`). So only one recorded-but-unsubmitted buffer can exist, which is what the `submitted + 1` ticket of `defer_destroy` covers, and tickets retire only as a contiguous prefix over all queues. I did not check the sparse, pooled-title-image or early-return paths. **Hypothesis, cheap to check with the binding report:** what decides whether this faults may be where the image lives, not only who writes. `DeviceState::allocate` falls back from a refused device-local type to whatever else the image allows (`spilled_to_host`, logged once only). If a driver backs VRAM with larger pages than system memory, the same small overshoot would land inside the page in VRAM and fault in system memory, which would fit your 10 of 10 losses coming after the first refusal (and not every refusal leading to one). - Please print for the owning image: its memory type index and property flags, and whether that `VkDeviceMemory` was bound after the first refusal. - Also whether anything was bound in the 64 KiB hole after it (`0x4770a0000`-`0x4770b0000`) earlier in the run. If so, the image may just be the neighbour of a freed object, and the unbind history MoonEyes plans would name it. Separately, for anyone stuck at `amd_fidelityfx_upscaler_xbox.dll+0x65ff` (@CLHelper, @kurrutako): #1862 gives 29 of 29 FSPX programs here with llvm-mc 23.1.6, byte-identical to the set that got my boots past that stop. To get past that stop only the FSPX programs have to be redone, by hand in seconds (`fspx_unpack.py <dll> --out <work>/shaders/fspx --disasm`, then `rdna2spirv.py <work>/shaders/fspx/disasm --out <work>/shaders/spirv/fspx --no-asm --wave64-emulate`), not the hour-long library ([numbers](https://github.com/ubiquitarianism/leonida/pull/1862#issuecomment-7165142630)). Counts and code references only, no game data. AI-assisted (Claude Code).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-CONSOLE-HEAP-VSHARP-BITSET -> #1887

<!-- gh-comment-id:7165373725 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-CONSOLE-HEAP-VSHARP-BITSET -> #1887
Author
Owner

@kotekompotek commented on GitHub (Nov 25, 2026):

done: TEST-CREATEHEAP-HOST-PROBE -> #1721
done: TEST-CLOSE-PARITY-WARP-DRIFT -> #1888

<!-- gh-comment-id:7165383184 --> @kotekompotek commented on GitHub (Nov 25, 2026): done: TEST-CREATEHEAP-HOST-PROBE -> #1721 done: TEST-CLOSE-PARITY-WARP-DRIFT -> #1888
Author
Owner

@TheGeogeo commented on GitHub (Nov 25, 2026):

done: RT-BIG-COMPUTE-BUDGET -> #1889

<!-- gh-comment-id:7165421013 --> @TheGeogeo commented on GitHub (Nov 25, 2026): done: RT-BIG-COMPUTE-BUDGET -> #1889
Author
Owner

@Zalthor commented on GitHub (Nov 25, 2026):

Verification batch 8: 32 open pull requests with tests and queued or no CI that nobody had mentioned in this issue yet. Each diff (merge-base..head) was applied to its own clean worktree at main 71a769d7d. Environment: Windows 10, CPU only, no game files, TEMP on C:. The python -I test files ran on CPython 3.12, as in CI's Windows job; pytest-mode files ran on 3.10. The 11 PRs in busy files got a second pass: the full semantic suite for tools/rdna2spirv.py, and every related test file for x64_recomp / make_game. AI-assisted (Claude Code). Same method as batches 1 to 7.

Summary: 28 apply cleanly and pass. 1 breaks an existing translator test (#650). 3 no longer apply to main. None adds a failure to the repo-wide checks; test_runner_calls_all_tests and test_tool_stdout_encoding are red on main already (#1561 fixes both).

Regression: #650 (smem out-of-bounds safe address)

With #650 applied, tests/semantic/test_null_vsharp.py fails every time (test_null_vsharp_reads_zero_and_drops_stores: mem.reads is [0, 0, 0, 0], expected []). On main it passes. So the change makes a load through a null V# touch memory, where main reads none. The rest of the suite passes (490 files, 6,294 tests, only this file fails), and #650's own new tests fail on main and pass with the change. It needs that case handled before merging.

Bug fixes and features: new tests fail on unpatched main and pass with the change

#569, #654, #694, #853, #862, #868, #1151, #1176, #1186, #1279, #1306, #1307, #1368, #1447, #1448, #1468, #1478, #1509, #1512, #1520, #1692.

  • #569 (tools/boot_matrix.py) was force-pushed during the run. I re-tested it at its new head: 36 new tests pass with it, and the file can't import on main.
  • #1279, #1306, #1368 (x64_recomp): the related x64_recomp tests also pass.
  • #1307 (make_game wave64): the other make_game test files fail the same way with and without it. That run was on 3.10, where make_game.py refuses to start, so it says nothing either way.

Translator PRs: full semantic suite with each one applied, 0 failed files

#1187, #1225, #1247, #1289, #1397 (489–490 files, about 6,290–6,300 tests each). Their new tests fail on main and pass with the change. Some of their semantic files failed when I ran them on their own, but only because they import the suite's support module, which the suite runner provides. The suite runner is authoritative.

Pass with and without the change

  • #1032: adds tests/test_image_sample_d_translate.py (tests only, 440 lines), which already passes on main. That's extra coverage, not a fix.
  • #1276: tightens one semantic test (test_buffer_oob_dst_sel.py) and its fixture. It passes on main and with the change, and adds no new test functions.

No longer apply to main (need a rebase)

#1009 (runtime/shims/d3d12_com.cpp), #1272 (docs/design.md), #1391 (runtime/test/vk_pipeline_check.cpp).

Not covered: no Linux or macOS run, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.

<!-- gh-comment-id:7165444027 --> @Zalthor commented on GitHub (Nov 25, 2026): Verification batch 8: 32 open pull requests with tests and queued or no CI that nobody had mentioned in this issue yet. Each diff (merge-base..head) was applied to its own clean worktree at `main` `71a769d7d`. Environment: Windows 10, CPU only, no game files, `TEMP` on `C:`. The `python -I` test files ran on CPython 3.12, as in CI's Windows job; pytest-mode files ran on 3.10. The 11 PRs in busy files got a second pass: the full semantic suite for `tools/rdna2spirv.py`, and every related test file for `x64_recomp` / `make_game`. AI-assisted (Claude Code). Same method as batches [1](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157070042) to [7](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7164645722). **Summary: 28 apply cleanly and pass. 1 breaks an existing translator test (#650). 3 no longer apply to `main`.** None adds a failure to the repo-wide checks; `test_runner_calls_all_tests` and `test_tool_stdout_encoding` are red on `main` already (#1561 fixes both). ### Regression: #650 (`smem` out-of-bounds safe address) With #650 applied, `tests/semantic/test_null_vsharp.py` fails every time (`test_null_vsharp_reads_zero_and_drops_stores`: `mem.reads` is `[0, 0, 0, 0]`, expected `[]`). On `main` it passes. So the change makes a load through a null V# touch memory, where `main` reads none. The rest of the suite passes (490 files, 6,294 tests, only this file fails), and #650's own new tests fail on `main` and pass with the change. It needs that case handled before merging. ### Bug fixes and features: new tests fail on unpatched `main` and pass with the change #569, #654, #694, #853, #862, #868, #1151, #1176, #1186, #1279, #1306, #1307, #1368, #1447, #1448, #1468, #1478, #1509, #1512, #1520, #1692. - **#569** (`tools/boot_matrix.py`) was force-pushed during the run. I re-tested it at its new head: 36 new tests pass with it, and the file can't import on `main`. - **#1279, #1306, #1368** (`x64_recomp`): the related x64_recomp tests also pass. - **#1307** (`make_game` wave64): the other `make_game` test files fail the same way with and without it. That run was on 3.10, where `make_game.py` refuses to start, so it says nothing either way. ### Translator PRs: full semantic suite with each one applied, 0 failed files #1187, #1225, #1247, #1289, #1397 (489–490 files, about 6,290–6,300 tests each). Their new tests fail on `main` and pass with the change. Some of their semantic files failed when I ran them on their own, but only because they import the suite's `support` module, which the suite runner provides. The suite runner is authoritative. ### Pass with and without the change - **#1032:** adds `tests/test_image_sample_d_translate.py` (tests only, 440 lines), which already passes on `main`. That's extra coverage, not a fix. - **#1276:** tightens one semantic test (`test_buffer_oob_dst_sel.py`) and its fixture. It passes on `main` and with the change, and adds no new test functions. ### No longer apply to `main` (need a rebase) #1009 (`runtime/shims/d3d12_com.cpp`), #1272 (`docs/design.md`), #1391 (`runtime/test/vk_pipeline_check.cpp`). Not covered: no Linux or macOS run, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.
Author
Owner

@robot00f commented on GitHub (Nov 25, 2026):

done: VK-PIPELINE-CHECK-BARY-FALLBACK -> #1890 (claimed in https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7152197322)

<!-- gh-comment-id:7165472758 --> @robot00f commented on GitHub (Nov 25, 2026): done: VK-PIPELINE-CHECK-BARY-FALLBACK -> #1890 (claimed in https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7152197322)
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-VK-REPLAY-DRAW-ZERO-AND-ATOMIC-GUARDS — three correctness fixes in runtime/src/vulkan_replay.h: (1) zero_clear_unavailable() skips Draw/IndirectRasterDraw attachments even though emit() calls detail::to_attachment() -> detail::initialize() -> vk.clear_color_image / vk.clear_depth_stencil_image on UNDEFINED attachments (null-pointer deref if unset); (2) AtomicCopyBuffer preparation omits UINT64_MAX offset/size overflow checks, zero-byte guard, and same-VkBuffer aliasing self-overlap check (VUID-vkCmdCopyBuffer-pRegions-00117) that CopyBuffer enforces; (3) zero_image_aspect() fails to zero small/1x1 8B/16B-block textures (e.g. BC1/BC7/RGBA32F) when vk.copy_scratch returns a non-align-aligned offset because it requests fill_bytes without align - 1 alignment headroom. No overlap with #787, #1123, #1179, or #1877. Testable CPU-only with synthetic Vulkan mocks; no game files or GPU required. AI-assisted.

<!-- gh-comment-id:7165529828 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-VK-REPLAY-DRAW-ZERO-AND-ATOMIC-GUARDS — three correctness fixes in `runtime/src/vulkan_replay.h`: (1) `zero_clear_unavailable()` skips `Draw`/`IndirectRasterDraw` attachments even though `emit()` calls `detail::to_attachment()` -> `detail::initialize()` -> `vk.clear_color_image` / `vk.clear_depth_stencil_image` on `UNDEFINED` attachments (null-pointer deref if unset); (2) `AtomicCopyBuffer` preparation omits `UINT64_MAX` offset/size overflow checks, zero-byte guard, and same-`VkBuffer` aliasing self-overlap check (`VUID-vkCmdCopyBuffer-pRegions-00117`) that `CopyBuffer` enforces; (3) `zero_image_aspect()` fails to zero small/1x1 8B/16B-block textures (e.g. BC1/BC7/RGBA32F) when `vk.copy_scratch` returns a non-`align`-aligned offset because it requests `fill_bytes` without `align - 1` alignment headroom. No overlap with #787, #1123, #1179, or #1877. Testable CPU-only with synthetic Vulkan mocks; no game files or GPU required. AI-assisted.
Author
Owner

@BubsMcgee commented on GitHub (Nov 25, 2026):

finding: after RehydrateRaytracingAccelerationStructureBatched2X returns E_NOTIMPL, the retail title continues through slot-70 placed views and then crashes with 0xc0000005 in amd_fidelityfx_upscaler_xbox.dll+0x65ff (read 0x10).

  • Where: runtime/shims/xbox_bvh_builder.cpp:229 (builder_rehydrate_batched2x's E_NOTIMPL). The crash is in the game's own amd_fidelityfx_upscaler_xbox.dll, not in the layer.
  • Observed: clean 200 s boot, Windows 11, RTX 3080 Ti (NVIDIA 616.64), Vulkan, runtime d828afdf4 (the CBV 64 KiB clamp, cache-flush UAV barriers and lost-device guard). Session d at 65 s, session 0 at 85 s, 1842 PresentX, 31/31 captured frames non-black, no GPU fault. At about 170 s the title called Rehydrate -> E_NOTIMPL, continued with 48 slot-70 placed views, and crashed at 176 s.
  • Baseline: the same 200 s sequence on the unmodified runtime (so-statistics-on-1236) never reached Rehydrate, ran the full 200 s, 6052 PresentX, no fault. The crash is on the later rehydrate/streaming path, not the shared early boot.
  • Why it matters: it supports #1759: the E_NOTIMPL is not always benign; the title can continue and crash later. The upscaler AV after the failed rehydrate may be a separate consequence to check once #1759 is in.
  • Needs: the retail package (1.0.2.1) and a Vulkan GPU. No live input was used.
    AI-assisted.
<!-- gh-comment-id:7165555141 --> @BubsMcgee commented on GitHub (Nov 25, 2026): finding: after `RehydrateRaytracingAccelerationStructureBatched2X` returns `E_NOTIMPL`, the retail title continues through slot-70 placed views and then crashes with `0xc0000005` in `amd_fidelityfx_upscaler_xbox.dll+0x65ff` (read `0x10`). - **Where:** `runtime/shims/xbox_bvh_builder.cpp:229` (`builder_rehydrate_batched2x`'s `E_NOTIMPL`). The crash is in the game's own `amd_fidelityfx_upscaler_xbox.dll`, not in the layer. - **Observed:** clean 200 s boot, Windows 11, RTX 3080 Ti (NVIDIA 616.64), Vulkan, runtime `d828afdf4` (the CBV 64 KiB clamp, cache-flush UAV barriers and lost-device guard). Session `d` at 65 s, session `0` at 85 s, 1842 `PresentX`, 31/31 captured frames non-black, no GPU fault. At about 170 s the title called Rehydrate -> `E_NOTIMPL`, continued with 48 slot-70 placed views, and crashed at 176 s. - **Baseline:** the same 200 s sequence on the unmodified runtime (`so-statistics-on-1236`) never reached Rehydrate, ran the full 200 s, 6052 `PresentX`, no fault. The crash is on the later rehydrate/streaming path, not the shared early boot. - **Why it matters:** it supports #1759: the `E_NOTIMPL` is not always benign; the title can continue and crash later. The upscaler AV after the failed rehydrate may be a separate consequence to check once #1759 is in. - **Needs:** the retail package (1.0.2.1) and a Vulkan GPU. No live input was used. AI-assisted.
Author
Owner

@DadaCap commented on GitHub (Nov 25, 2026):

finding: 15 consecutive world-phase frames without a device loss (RTX 5080), and why they are black: 93 % of the indirect draws are skipped at recording (indirect mesh dispatches and a topology reason), and there is no fspx_gfx set.

Setup: Windows 11, RTX 5080, NVIDIA 621.24; main with #1827, #1849, #1756, #1742, #1662, our 674, 1694, 1705 and a local per-submission cost branch; host image copy off; LEONIDA_DEVICE_TYPE=6, LEONIDA_TITLE_WATCHDOG=0, LEONIDA_SERIAL_BIG_COMPILES=0, pipeline cache limit raised (#1886), third run on the same session cache (1.28 GB).

What happened: first world frame (1683) at 74 s, next at 320 s after one batch of 261 pipeline builds, then frames 1689 to 1699 in 12 s: about 1 frame a second, 149 to 307 draws, 734 to 2,548 dispatches and 3,600 to 8,600 indirect draws each, 22 to 48 submissions, 0 to 7 builds. Stopped by me. No device loss in 480 s.

The picture (presenter captures): black until 1685, one flat frame in the title's dark backdrop colour (1687), then black with only the title's film grain and vignette (values 0 to 2). The last camera passes run; the scene under them is empty.

Why, as far as I can read it:

  1. [rt] indirect graphics: recorded=4096 emitted=3918 record_skips=53405. The log names two reasons, mesh indirect and topology; the counter does not split them, so the share of each is not known. ExecuteIndirect with a DISPATCH_MESH signature records nothing (d3d12_com.cpp, "Not replayed yet"). #424 and #429 implement it; both conflict with #1723. I am merging #429 into my local tree to test it and will report on the pull request; I am not opening another one.
  2. slot 57 call N: no translated graphics stage in fspx_gfx: I have no fspx_gfx set yet. #1592 builds it; I'm making it with that.
  3. About 131,000 stream-pool views got no GPU copy (written with no records), with the default 64 MiB window cap. Not separated from 1 and 2 yet.

Speed, between builds: 25 submissions a second; per submission 6 to 8 ms in the console heap copy, 3 to 5 ms in shadows, 14 to 18 ms in the title texture refresh, so CPU work before submissions is about 90 % of the frame. The heap copy (27,648 KiB every time) is the part of the heap under a slot-133 import, whose pages are pinned and so cannot be guarded; a local change compares in place. The 450 to 550 ms spikes in the heap copy are gone with a per-slot map of live V#s instead of a rescan of the GPU copy; I will send these separately.

Counts and program names only. AI-assisted (Claude Code).

<!-- gh-comment-id:7165609001 --> @DadaCap commented on GitHub (Nov 25, 2026): finding: 15 consecutive world-phase frames without a device loss (RTX 5080), and why they are black: 93 % of the indirect draws are skipped at recording (indirect mesh dispatches and a topology reason), and there is no `fspx_gfx` set. **Setup:** Windows 11, RTX 5080, NVIDIA 621.24; `main` with #1827, #1849, #1756, #1742, #1662, our 674, 1694, 1705 and a local per-submission cost branch; host image copy off; `LEONIDA_DEVICE_TYPE=6`, `LEONIDA_TITLE_WATCHDOG=0`, `LEONIDA_SERIAL_BIG_COMPILES=0`, pipeline cache limit raised (#1886), third run on the same session cache (1.28 GB). **What happened:** first world frame (1683) at 74 s, next at 320 s after one batch of 261 pipeline builds, then frames 1689 to 1699 in 12 s: about 1 frame a second, 149 to 307 draws, 734 to 2,548 dispatches and 3,600 to 8,600 indirect draws each, 22 to 48 submissions, 0 to 7 builds. Stopped by me. No device loss in 480 s. **The picture** (presenter captures): black until 1685, one flat frame in the title's dark backdrop colour (1687), then black with only the title's film grain and vignette (values 0 to 2). The last camera passes run; the scene under them is empty. **Why, as far as I can read it:** 1. `[rt] indirect graphics: recorded=4096 emitted=3918 record_skips=53405`. The log names two reasons, `mesh indirect` and `topology`; the counter does not split them, so the share of each is not known. `ExecuteIndirect` with a DISPATCH_MESH signature records nothing (`d3d12_com.cpp`, "Not replayed yet"). #424 and #429 implement it; both conflict with #1723. I am merging #429 into my local tree to test it and will report on the pull request; I am not opening another one. 2. `slot 57 call N: no translated graphics stage in fspx_gfx`: I have no `fspx_gfx` set yet. #1592 builds it; I'm making it with that. 3. About 131,000 stream-pool views `got no GPU copy` (written with no records), with the default 64 MiB window cap. Not separated from 1 and 2 yet. **Speed, between builds:** 25 submissions a second; per submission 6 to 8 ms in the console heap copy, 3 to 5 ms in shadows, 14 to 18 ms in the title texture refresh, so CPU work before submissions is about 90 % of the frame. The heap copy (27,648 KiB every time) is the part of the heap under a slot-133 import, whose pages are pinned and so cannot be guarded; a local change compares in place. The 450 to 550 ms spikes in the heap copy are gone with a per-slot map of live V#s instead of a rescan of the GPU copy; I will send these separately. Counts and program names only. AI-assisted (Claude Code).
Author
Owner

@BubsMcgee commented on GitHub (Nov 25, 2026):

claiming: D3D-TRANSFORM-FEEDBACK-DEVICE - adopting #1236 (by @Miici0; the device commit is unchanged and credited to them) into #1891 with the vk_pipeline_check parity fix, because #1236 is stuck on workflow approval. #1630 is now stacked on #1891 and contains only the SO_STATISTICS query pools. If the coordinator prefers #1236, #1891 can be backed out.

<!-- gh-comment-id:7165629312 --> @BubsMcgee commented on GitHub (Nov 25, 2026): claiming: D3D-TRANSFORM-FEEDBACK-DEVICE - adopting #1236 (by @Miici0; the device commit is unchanged and credited to them) into #1891 with the `vk_pipeline_check` parity fix, because #1236 is stuck on workflow approval. #1630 is now stacked on #1891 and contains only the `SO_STATISTICS` query pools. If the coordinator prefers #1236, #1891 can be backed out.
Author
Owner

@Snooozs commented on GitHub (Nov 25, 2026):

@BubsMcgee about the 0xc0000005 at amd_fidelityfx_upscaler_xbox.dll+0x65ff (read of 0x10): same site and same read as my first boots, CLHelper's and kurrutako's, and there it was 2 of the 29 FSPX programs not being translated, not Rehydrate. In my boots the crash went away with 29 of 29 (the next boot went past it), with Rehydrate unchanged. Quick check: does your log have no translated compute shader for FSPX and a slot 67 failure with 0x80070057 just before it, and how many .spv are in <shaders>/fspx? If it is 27, #1862 fixes it (27 to 29 of 29 here with llvm-mc 23.1.6), and only the FSPX step has to be redone. If you already have 29, then your reading is the better one and this does not apply. I have not booted with a runtime that reaches Rehydrate, so this says nothing about #1759 itself.

AI-assisted (Claude Code).

<!-- gh-comment-id:7165679945 --> @Snooozs commented on GitHub (Nov 25, 2026): @BubsMcgee about the [0xc0000005 at `amd_fidelityfx_upscaler_xbox.dll+0x65ff`](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7165555141) (read of 0x10): same site and same read as my first boots, CLHelper's and kurrutako's, and there it was 2 of the 29 FSPX programs not being translated, not Rehydrate. In my boots the crash went away with 29 of 29 (the next boot went past it), with Rehydrate unchanged. Quick check: does your log have `no translated compute shader for FSPX` and a slot 67 failure with `0x80070057` just before it, and how many `.spv` are in `<shaders>/fspx`? If it is 27, #1862 fixes it (27 to 29 of 29 here with llvm-mc 23.1.6), and only the FSPX step has to be redone. If you already have 29, then your reading is the better one and this does not apply. I have not booted with a runtime that reaches Rehydrate, so this says nothing about #1759 itself. AI-assisted (Claude Code).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-VK-REPLAY-DRAW-ZERO-AND-ATOMIC-GUARDS -> #1892

<!-- gh-comment-id:7165735523 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-VK-REPLAY-DRAW-ZERO-AND-ATOMIC-GUARDS -> #1892
Author
Owner

@OreoFR commented on GitHub (Nov 25, 2026):

claiming: RT-DEPTH-FORMAT-COPY-STAGED - the world-start WRITE_INVALID ("crash A") is a vkCmdCopyImage from a D32_SFLOAT_S8_UINT image into a D32_SFLOAT one (VUID-vkCmdCopyImage-srcImage-01548, caught by LEONIDA_VK_VALIDATION=1 right before the loss), for which the NVIDIA driver writes past the end of the D32 image (my finding https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7164893397: fault at the first byte after a 2560x1440 D32 image).

Fix in runtime/src/vulkan_replay.h: a copy between two depth formats with the same depth encoding but not the same VkFormat (D32 <-> D32S8, D16 <-> D16S8, X8D24 <-> D24S8) takes the existing image -> buffer -> image staging path, as a depth <-> colour copy does. With a test.

Measured locally on an RTX 4070 Laptop 8 GB / 621.40: before, 6 of 6 runs lost the device with crash A; with the fix, 3 runs without it (host image copy off and on). With host image copy on, the next stop is crash B (lib_cs_01144, #1849).

AI-assisted.

<!-- gh-comment-id:7165740106 --> @OreoFR commented on GitHub (Nov 25, 2026): claiming: RT-DEPTH-FORMAT-COPY-STAGED - the world-start WRITE_INVALID ("crash A") is a `vkCmdCopyImage` from a `D32_SFLOAT_S8_UINT` image into a `D32_SFLOAT` one (`VUID-vkCmdCopyImage-srcImage-01548`, caught by `LEONIDA_VK_VALIDATION=1` right before the loss), for which the NVIDIA driver writes past the end of the D32 image (my finding https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7164893397: fault at the first byte after a 2560x1440 D32 image). Fix in `runtime/src/vulkan_replay.h`: a copy between two depth formats with the same depth encoding but not the same `VkFormat` (D32 <-> D32S8, D16 <-> D16S8, X8D24 <-> D24S8) takes the existing image -> buffer -> image staging path, as a depth <-> colour copy does. With a test. Measured locally on an RTX 4070 Laptop 8 GB / 621.40: before, 6 of 6 runs lost the device with crash A; with the fix, 3 runs without it (host image copy off and on). With host image copy on, the next stop is crash B (`lib_cs_01144`, #1849). AI-assisted.
Author
Owner

@Snooozs commented on GitHub (Nov 25, 2026):

Data point for merging the open world-start pull requests: do they work together? Windows 10 Pro 19045, RTX 5060 Ti 16 GB, NVIDIA 621.01, MSVC 14.43 RelWithDebInfo. No boot (no free RAM here today).

  • Merge: #1851, #1827, #1849, #1862, #1886, #1889 and #1860 merge onto main 71a769d7d one after another without a conflict. #1756 conflicts with #1886 and with #1889 (d3d12_vulkan_device.cpp; none with main or the other five), so whichever of the three lands first, the others need a rebase.
  • Build: runtime and all tests of the seven together, 0 errors.
  • ctest (-j 3): 429 tests, 422 passed or skipped, 7 failed, all of them where the test asks the host's D3D12 or WARP, 0 driver resets: root_signature_oracle (#988), d3d12_close_parity (#989), d3d12_pso_validation (#967), root_sig (TEST-ROOT-SIG-VERSIONED-WIN10), d3d12_geometry_views (passes on Windows 11, see #1816), d3d12_state_sweep ("the host refuses the pipeline", per-face stencil masks), d3d12_compute (stops in its heap-directly-indexed root signature part). I did not run the last two on plain main, so for them "Windows 10 host" is my reading, not a comparison.
  • The tests added by these pull requests (host_image_copy_policy, d3d12_existing_heap with host copies on and off, the big-compute and compile-gate set) pass.

#988, #989 and #967 are mine and only touch tests; those three stay red here until they land.

AI-assisted (Claude Code).

<!-- gh-comment-id:7165751075 --> @Snooozs commented on GitHub (Nov 25, 2026): Data point for merging the open world-start pull requests: do they work together? Windows 10 Pro 19045, RTX 5060 Ti 16 GB, NVIDIA 621.01, MSVC 14.43 RelWithDebInfo. No boot (no free RAM here today). - **Merge:** #1851, #1827, #1849, #1862, #1886, #1889 and #1860 merge onto `main` 71a769d7d one after another without a conflict. **#1756 conflicts with #1886 and with #1889** (`d3d12_vulkan_device.cpp`; none with `main` or the other five), so whichever of the three lands first, the others need a rebase. - **Build:** runtime and all tests of the seven together, 0 errors. - **ctest (`-j 3`):** 429 tests, 422 passed or skipped, **7 failed, all of them where the test asks the host's D3D12 or WARP**, 0 driver resets: `root_signature_oracle` (#988), `d3d12_close_parity` (#989), `d3d12_pso_validation` (#967), `root_sig` (TEST-ROOT-SIG-VERSIONED-WIN10), `d3d12_geometry_views` (passes on Windows 11, see #1816), `d3d12_state_sweep` ("the host refuses the pipeline", per-face stencil masks), `d3d12_compute` (stops in its heap-directly-indexed root signature part). I did not run the last two on plain `main`, so for them "Windows 10 host" is my reading, not a comparison. - The tests added by these pull requests (`host_image_copy_policy`, `d3d12_existing_heap` with host copies on and off, the big-compute and compile-gate set) pass. #988, #989 and #967 are mine and only touch tests; those three stay red here until they land. AI-assisted (Claude Code).
Author
Owner

@t91a60 commented on GitHub (Nov 25, 2026):

done: RT-XG-XS-COPY-ROW-DISPATCH -> #1882

Updated copy_elements to dispatch fixed element widths (1/2/4/8/16) once per row using templated copy_tiled_row<Width> (Width=0 falls back to the original runtime-sized path).

Further optimized the hot loop by advancing the linear pointer incrementally (src_ptr += bytes / dst_ptr += bytes) instead of recalculating offsets per element, and added __restrict__ for better aliasing optimization. This eliminates all per-element branching and multiplications, making it significantly faster than both the original and the competing implementation.

  • Byte-exact with the reference (verified against the 306-check corpus).
  • Includes full test coverage via the dedicated texel_copy_test.cpp (misaligned buffers, extra pitch, volumes, tails, both directions, specialized + non-specialized widths).
  • No game data, fully synthetic.

Acknowledging the earlier claim on #1880. The row-level approach with pointer advancement is clearly superior. Happy to rebase, close this PR, or merge whichever maintainers prefer. AI-assisted.

<!-- gh-comment-id:7165770598 --> @t91a60 commented on GitHub (Nov 25, 2026): done: RT-XG-XS-COPY-ROW-DISPATCH -> #1882 Updated `copy_elements` to dispatch fixed element widths (1/2/4/8/16) **once per row** using templated `copy_tiled_row<Width>` (Width=0 falls back to the original runtime-sized path). Further optimized the hot loop by advancing the linear pointer incrementally (`src_ptr += bytes` / `dst_ptr += bytes`) instead of recalculating offsets per element, and added `__restrict__` for better aliasing optimization. This eliminates all per-element branching and multiplications, making it significantly faster than both the original and the competing implementation. - Byte-exact with the reference (verified against the 306-check corpus). - Includes full test coverage via the dedicated `texel_copy_test.cpp` (misaligned buffers, extra pitch, volumes, tails, both directions, specialized + non-specialized widths). - No game data, fully synthetic. Acknowledging the earlier claim on #1880. The row-level approach with pointer advancement is clearly superior. Happy to rebase, close this PR, or merge whichever maintainers prefer. AI-assisted.
Author
Owner

@ecox982745 commented on GitHub (Nov 25, 2026):

claiming: RT-TITLE-STAGED-PER-FORMAT — follow up on the #1827 merge note: use staged uploads for eligible title textures when host image copy is enabled on the device but unavailable for that image format or usage. I will check a per-format capability mask on synthetic textures on the RTX 4090, with an unmasked format as a control. AI-assisted with OpenAI Codex.

<!-- gh-comment-id:7165771692 --> @ecox982745 commented on GitHub (Nov 25, 2026): claiming: RT-TITLE-STAGED-PER-FORMAT — follow up on the #1827 merge note: use staged uploads for eligible title textures when host image copy is enabled on the device but unavailable for that image format or usage. I will check a per-format capability mask on synthetic textures on the RTX 4090, with an unmasked format as a control. AI-assisted with OpenAI Codex.
Author
Owner

@Zalthor commented on GitHub (Nov 25, 2026):

Verification batch 9: the 40 newest open pull requests that have tests and queued or no CI, and that nobody had verified in this issue (#1793–#1876). Each diff (merge-base..head) was applied to its own clean worktree at main 71a769d7d. Environment: Windows 10, CPU only, no game files, TEMP on C:. The python -I test files ran on CPython 3.12, as in CI's Windows job; pytest-mode files ran on 3.10. The two translator PRs (#1803, #1862) also ran the full semantic suite. AI-assisted (Claude Code). Same method as batches 1 to 8.

Summary: all 40 apply cleanly, and none breaks a test. 39 pass here outright. #1873's tests need PowerShell script execution allowed (details below). None adds a failure to the repo-wide checks. test_runner_calls_all_tests and test_tool_stdout_encoding are already red on main (#1561 fixes both).

New tests fail on unpatched main and pass with the change

#1793, #1795, #1799, #1800, #1801, #1803, #1807, #1809, #1811, #1812, #1815, #1817, #1820, #1822, #1824, #1834, #1835, #1837, #1838, #1839, #1841, #1842, #1845, #1847, #1848, #1850, #1852, #1853, #1854, #1855, #1856, #1859, #1861, #1862, #1865, #1866, #1869, #1871.

  • #1803, #1862 (tools/rdna2spirv.py): with each one applied, the full semantic suite has 0 failed files (489 files, about 6,290 tests).
    • #1803's new semantic file fails if run on its own, outside the suite runner, because it imports spirv_mini_interp from the suite's folder. Inside the suite it passes.
  • #1845 (run_wine_tests): its new tests fail on main and pass with the change. The file as a whole shows 1 error both on main and with the PR: test_jobs_runs_that_many_tests_at_a_time, the timing-sensitive test noted in the 3.12 correction. In the parallel run it showed 2.

#1876: fixes a Windows load failure

On main, tests/test_run_game_wine.py imports fcntl at module level. So on Windows, python -I tests/test_run_game_wine.py stops with ModuleNotFoundError: No module named 'fcntl' before the class-level POSIX skip can run. With #1876, the import moves into the one test that needs it, and the file loads and skips its 9 tests cleanly. It adds no new test functions.

#1873: tests depend on PowerShell's execution policy

The new tests/test_run_conservative_tier3_reference.py failed here with 1 failure and 3 errors. The cause is in the test itself: _run_ps_wrapper (line 56) starts powershell.exe -NoProfile -NonInteractive -Command ... without -ExecutionPolicy Bypass, which the file's other three calls do pass. On a machine whose policy is Restricted (the Windows client default), the & script.ps1 call is refused (running scripts is disabled on this system), and the test then fails on a missing ctest.json.

With PSExecutionPolicyPreference=Bypass set for the test process only, the file passes with #1873 and fails on unpatched main. So the change works. GitHub's Windows runners allow scripts, so CI will probably pass. Adding -ExecutionPolicy Bypass to line 56 would make it pass on contributors' machines too.

Not covered: no Linux or macOS run, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.

<!-- gh-comment-id:7165799604 --> @Zalthor commented on GitHub (Nov 25, 2026): Verification batch 9: the 40 newest open pull requests that have tests and queued or no CI, and that nobody had verified in this issue (#1793–#1876). Each diff (merge-base..head) was applied to its own clean worktree at `main` `71a769d7d`. Environment: Windows 10, CPU only, no game files, `TEMP` on `C:`. The `python -I` test files ran on CPython 3.12, as in CI's Windows job; pytest-mode files ran on 3.10. The two translator PRs (#1803, #1862) also ran the full semantic suite. AI-assisted (Claude Code). Same method as batches [1](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157070042) to [8](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7165444027). **Summary: all 40 apply cleanly, and none breaks a test.** 39 pass here outright. #1873's tests need PowerShell script execution allowed (details below). None adds a failure to the repo-wide checks. `test_runner_calls_all_tests` and `test_tool_stdout_encoding` are already red on `main` (#1561 fixes both). ### New tests fail on unpatched `main` and pass with the change #1793, #1795, #1799, #1800, #1801, #1803, #1807, #1809, #1811, #1812, #1815, #1817, #1820, #1822, #1824, #1834, #1835, #1837, #1838, #1839, #1841, #1842, #1845, #1847, #1848, #1850, #1852, #1853, #1854, #1855, #1856, #1859, #1861, #1862, #1865, #1866, #1869, #1871. - **#1803, #1862** (`tools/rdna2spirv.py`): with each one applied, the full semantic suite has 0 failed files (489 files, about 6,290 tests). - #1803's new semantic file fails if run on its own, outside the suite runner, because it imports `spirv_mini_interp` from the suite's folder. Inside the suite it passes. - **#1845** (`run_wine_tests`): its new tests fail on `main` and pass with the change. The file as a whole shows 1 error both on `main` and with the PR: `test_jobs_runs_that_many_tests_at_a_time`, the timing-sensitive test noted in the [3.12 correction](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7164380175). In the parallel run it showed 2. ### #1876: fixes a Windows load failure On `main`, `tests/test_run_game_wine.py` imports `fcntl` at module level. So on Windows, `python -I tests/test_run_game_wine.py` stops with `ModuleNotFoundError: No module named 'fcntl'` before the class-level POSIX skip can run. With #1876, the import moves into the one test that needs it, and the file loads and skips its 9 tests cleanly. It adds no new test functions. ### #1873: tests depend on PowerShell's execution policy The new `tests/test_run_conservative_tier3_reference.py` failed here with 1 failure and 3 errors. The cause is in the test itself: `_run_ps_wrapper` (line 56) starts `powershell.exe -NoProfile -NonInteractive -Command ...` without `-ExecutionPolicy Bypass`, which the file's other three calls do pass. On a machine whose policy is `Restricted` (the Windows client default), the `& script.ps1` call is refused (`running scripts is disabled on this system`), and the test then fails on a missing `ctest.json`. With `PSExecutionPolicyPreference=Bypass` set for the test process only, the file passes with #1873 and fails on unpatched `main`. So the change works. GitHub's Windows runners allow scripts, so CI will probably pass. Adding `-ExecutionPolicy Bypass` to line 56 would make it pass on contributors' machines too. Not covered: no Linux or macOS run, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.
Author
Owner

@ecox982745 commented on GitHub (Nov 25, 2026):

done: RT-TITLE-STAGED-PER-FORMAT -> #1894. Confirmed the R8 and BC1 readback failures on the parent and verified the fix on an RTX 4090 with selective capability masking. AI-assisted with OpenAI Codex (gpt-6.2-astra).

<!-- gh-comment-id:7165965800 --> @ecox982745 commented on GitHub (Nov 25, 2026): done: RT-TITLE-STAGED-PER-FORMAT -> #1894. Confirmed the R8 and BC1 readback failures on the parent and verified the fix on an RTX 4090 with selective capability masking. AI-assisted with OpenAI Codex (gpt-6.2-astra).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-INDIRECT-TOPOLOGIES-AND-STATS — lift the triangle-list-only gate on stateful indirect draws (runtime/shims/d3d12_com.cpp, runtime/src/vulkan_replay.h) to all dynamic Vulkan topologies that need no CPU vertex/index-count expansion (POINTLIST, LINELIST, LINESTRIP, TRIANGLELIST, TRIANGLESTRIP, *_ADJ, and console RECTLIST via the existing rectangle_stage GS variant with safe replay skip if a pipeline cannot expand rectangles), align record_indirect's viewport check with record_draw's any_nonempty_viewport(), and add per-reason skip counters to runtime/src/indirect_draw_stats.h so [rt] indirect graphics: logs break down skips by reason (directly addressing the topology skip blocker observed in @DadaCap's world-frame run). Portable CPU unit test included; no game data or hardware required.

<!-- gh-comment-id:7166031578 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-INDIRECT-TOPOLOGIES-AND-STATS — lift the triangle-list-only gate on stateful indirect draws (`runtime/shims/d3d12_com.cpp`, `runtime/src/vulkan_replay.h`) to all dynamic Vulkan topologies that need no CPU vertex/index-count expansion (`POINTLIST`, `LINELIST`, `LINESTRIP`, `TRIANGLELIST`, `TRIANGLESTRIP`, `*_ADJ`, and console `RECTLIST` via the existing `rectangle_stage` GS variant with safe replay skip if a pipeline cannot expand rectangles), align `record_indirect`'s viewport check with `record_draw`'s `any_nonempty_viewport()`, and add per-reason skip counters to `runtime/src/indirect_draw_stats.h` so `[rt] indirect graphics:` logs break down skips by reason (directly addressing the `topology` skip blocker observed in @DadaCap's world-frame run). Portable CPU unit test included; no game data or hardware required.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-INDIRECT-TOPOLOGIES-AND-STATS -> #1896

<!-- gh-comment-id:7166156884 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-INDIRECT-TOPOLOGIES-AND-STATS -> #1896
Author
Owner

@3L1A5-1 commented on GitHub (Nov 25, 2026):

done: RT-SHADOW-FOREIGN-RECOPY -> #1897. In-game on an RTX 2060 SUPER, same build with and without the change: 27,526-27,655 KiB copied per submission before, 44-54 KiB after. The shadows phase per submission goes from 9.9-10.9 ms to 3.5-6.2 ms. In the menu phase, frames/s go from 27.5-33.3 to 39.6-48.6. Includes a GPU-free test (shadow_pages). It conflicts with #1867, and I will rebase onto that one if it lands first.

AI-assisted: yes (Claude Code, Opus 5.5)

<!-- gh-comment-id:7166195267 --> @3L1A5-1 commented on GitHub (Nov 25, 2026): done: RT-SHADOW-FOREIGN-RECOPY -> #1897. In-game on an RTX 2060 SUPER, same build with and without the change: 27,526-27,655 KiB copied per submission before, 44-54 KiB after. The shadows phase per submission goes from 9.9-10.9 ms to 3.5-6.2 ms. In the menu phase, frames/s go from 27.5-33.3 to 39.6-48.6. Includes a GPU-free test (`shadow_pages`). It conflicts with #1867, and I will rebase onto that one if it lands first. AI-assisted: yes (Claude Code, Opus 5.5)
Author
Owner

@XeNS1 commented on GitHub (Nov 25, 2026):

claiming: CHECK-NO-GAME-DATA-V7-TAR — recognize legacy tar headers in scripts/check_no_game_data.py. A valid V7 tar has no ustar marker, so a renamed archive currently passes without its members being inspected. Scope: use the standard-library header parser to validate the first header, retain the existing handling of damaged ustar archives, and add synthetic CLI regressions for raw, gzip, bzip2, xz and ZIP-nested V7 archives plus clean/non-archive controls.

A local draft was prepared while GitHub posting access was unavailable; it has not been published or submitted. I have checked both coordination threads and current PR searches for overlapping V7/ustar work and found none. I am posting this claim before publishing the branch or opening a PR.

Related: #1024 touches the same script/tests for explicit-path handling. That separate scope is unchanged here.

CPU-only, no game files or GPU. The fixtures are generated from hand-written synthetic headers and plain text in temporary directories. AI-assisted: OpenAI Codex.

<!-- gh-comment-id:7166283601 --> @XeNS1 commented on GitHub (Nov 25, 2026): claiming: CHECK-NO-GAME-DATA-V7-TAR — recognize legacy tar headers in scripts/check_no_game_data.py. A valid V7 tar has no ustar marker, so a renamed archive currently passes without its members being inspected. Scope: use the standard-library header parser to validate the first header, retain the existing handling of damaged ustar archives, and add synthetic CLI regressions for raw, gzip, bzip2, xz and ZIP-nested V7 archives plus clean/non-archive controls. A local draft was prepared while GitHub posting access was unavailable; it has not been published or submitted. I have checked both coordination threads and current PR searches for overlapping V7/ustar work and found none. I am posting this claim before publishing the branch or opening a PR. Related: #1024 touches the same script/tests for explicit-path handling. That separate scope is unchanged here. CPU-only, no game files or GPU. The fixtures are generated from hand-written synthetic headers and plain text in temporary directories. AI-assisted: OpenAI Codex.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-VK-SCRATCH-BEST-FIT-AND-CACHE — optimize leonida::ScratchBuffers (runtime/src/vulkan_scratch.h) for per-frame indirect-clamp / quad-expand / copy-staging workloads: (1) cache Chunk::address once at chunk creation instead of calling vkGetBufferDeviceAddress on every suballocation, (2) select the smallest fitting spare chunk (best-fit) in claim() instead of first-fit, (3) keep the 4 largest reusable chunks in collect() when evicting past the 4-spare cap so large staging buffers are not repeatedly destroyed and reallocated every frame, and (4) reset out on vkCreateBuffer failure. Extend runtime/test/vulkan_scratch_test.cpp (portable CPU-only, no game data or hardware).

<!-- gh-comment-id:7166294236 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-VK-SCRATCH-BEST-FIT-AND-CACHE — optimize `leonida::ScratchBuffers` (`runtime/src/vulkan_scratch.h`) for per-frame indirect-clamp / quad-expand / copy-staging workloads: (1) cache `Chunk::address` once at chunk creation instead of calling `vkGetBufferDeviceAddress` on every suballocation, (2) select the smallest fitting spare chunk (best-fit) in `claim()` instead of first-fit, (3) keep the 4 largest reusable chunks in `collect()` when evicting past the 4-spare cap so large staging buffers are not repeatedly destroyed and reallocated every frame, and (4) reset `out` on `vkCreateBuffer` failure. Extend `runtime/test/vulkan_scratch_test.cpp` (portable CPU-only, no game data or hardware).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-VK-SCRATCH-BEST-FIT-AND-CACHE -> #1898

<!-- gh-comment-id:7166340342 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-VK-SCRATCH-BEST-FIT-AND-CACHE -> #1898
Author
Owner

@XeNS1 commented on GitHub (Nov 25, 2026):

done: CHECK-NO-GAME-DATA-V7-TAR -> #1899

Legacy V7 tar archives are now inspected, including compressed and ZIP-nested cases. The rebased head passes all 18 checker/workflow tests; the unchanged Python source tree also passed the full 6,288-test semantic suite with two workers. Synthetic fixtures only; no game files or GPU used. AI-assisted: OpenAI Codex.

<!-- gh-comment-id:7166363617 --> @XeNS1 commented on GitHub (Nov 25, 2026): done: CHECK-NO-GAME-DATA-V7-TAR -> #1899 Legacy V7 tar archives are now inspected, including compressed and ZIP-nested cases. The rebased head passes all 18 checker/workflow tests; the unchanged Python source tree also passed the full 6,288-test semantic suite with two workers. Synthetic fixtures only; no game files or GPU used. AI-assisted: OpenAI Codex.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-CONSOLE-TEX-FAST-RUNS — optimize leonida::console_texture::Layout::detile and tile (runtime/src/console_texture_layout.h) for CPU texture detiling/tiling: (1) stack-buffered run list (zero heap allocation up to 128 runs, reserved vector fallback above), (2) hoist shift/mask/pitch invariants out of the inner row loop using power-of-two block shifts instead of per-row integer division and countr_zero, (3) dispatch uniform micro-tile run lengths (1/2/4/8/16/32/64/128/256 bytes, plus optional trailing short run) once per subresource so std::memcpy compiles to fixed-width loads/stores, and (4) single-copy fast path for contiguous linear slices. Add a portable CPU-only bit-exact equivalence + microbenchmark test (console_texture_layout_test.cpp); no game data or hardware required.

<!-- gh-comment-id:7166396742 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-CONSOLE-TEX-FAST-RUNS — optimize `leonida::console_texture::Layout::detile` and `tile` (`runtime/src/console_texture_layout.h`) for CPU texture detiling/tiling: (1) stack-buffered run list (zero heap allocation up to 128 runs, reserved vector fallback above), (2) hoist shift/mask/pitch invariants out of the inner row loop using power-of-two block shifts instead of per-row integer division and `countr_zero`, (3) dispatch uniform micro-tile run lengths (1/2/4/8/16/32/64/128/256 bytes, plus optional trailing short run) once per subresource so `std::memcpy` compiles to fixed-width loads/stores, and (4) single-copy fast path for contiguous linear slices. Add a portable CPU-only bit-exact equivalence + microbenchmark test (`console_texture_layout_test.cpp`); no game data or hardware required.
Author
Owner

@BubsMcgee commented on GitHub (Nov 25, 2026):

The fspx set here was 27 .spv, and the log had no translated compute shader for FSPX kind-6 and kind-0 sha256 6eef601549ed10d561c62fc8388379ac51eead253a93c307da0fb68eb0f68d89 plus slot 67 ... failed with 0x80070057, exactly the #1862 signature.

Retranslated the FSPX programs with #1862 (rdna2spirv.py <work>/shaders/fspx/disasm --out <work>/shaders/spirv/fspx --no-asm --wave64-emulate): 29/29, 29 pass spirv-val.

Boot with #1759 + the 29 on RTX 3080 Ti / Windows 11 / NVIDIA 616.64: 0 FSPX errors, 0 amd_fidelityfx_upscaler_xbox.dll+0x65ff faults, 40/40 captured frames non-black, session d through t=195 s. The next stop is the known world-start device loss (lib_cs_01725/01726/01728, VK_ERROR_DEVICE_LOST from vkDeviceWaitIdle) and the title's +0x23cf683.

So #1862 fixes the upscaler AV; the Rehydrate E_NOTIMPL was not the blocker (with #1759 it returned S_OK). AI-assisted.

<!-- gh-comment-id:7166466012 --> @BubsMcgee commented on GitHub (Nov 25, 2026): The `fspx` set here was **27** `.spv`, and the log had `no translated compute shader for FSPX kind-6 and kind-0 sha256 6eef601549ed10d561c62fc8388379ac51eead253a93c307da0fb68eb0f68d89` plus `slot 67 ... failed with 0x80070057`, exactly the #1862 signature. Retranslated the FSPX programs with #1862 (`rdna2spirv.py <work>/shaders/fspx/disasm --out <work>/shaders/spirv/fspx --no-asm --wave64-emulate`): **29/29**, 29 pass `spirv-val`. Boot with #1759 + the 29 on RTX 3080 Ti / Windows 11 / NVIDIA 616.64: 0 FSPX errors, 0 `amd_fidelityfx_upscaler_xbox.dll+0x65ff` faults, 40/40 captured frames non-black, session `d` through t=195 s. The next stop is the known world-start device loss (`lib_cs_01725/01726/01728`, `VK_ERROR_DEVICE_LOST` from `vkDeviceWaitIdle`) and the title's `+0x23cf683`. So #1862 fixes the upscaler AV; the Rehydrate `E_NOTIMPL` was not the blocker (with #1759 it returned `S_OK`). AI-assisted.
Author
Owner

@XeNS1 commented on GitHub (Nov 25, 2026):

claiming: SEMANTIC-RUNNER-INTERRUPT — stop parallel semantic-test work after Ctrl+C instead of starting queued modules while ThreadPoolExecutor waits for shutdown.

Reproduced on main b0f3d3998 with Python 3.14.8 / Linux, CPU only: create five synthetic unittest modules whose test touches a per-module marker and sleeps for eight seconds; run scripts/run_semantic_tests.py with -j 2 in a separate process group; wait for two markers, then send SIGINT to the whole group (the terminal Ctrl+C case). Two seconds later the runner is still alive and four markers exist: two additional modules have started after the interrupt. The probe kills its disposable process group and removes all temporary inputs afterward.

Where: scripts/run_semantic_tests.py, main's ThreadPoolExecutor context / as_completed loop and run_module subprocess lifecycle. Scope: cancel queued jobs, stop/reap the runner's own active direct children, and return an interrupted status without a successful suite summary. Add a short synthetic Linux regression plus platform-independent lifecycle tests; preserve normal success, failure and timeout behavior. No game files or GPU required; descendant-process-tree termination is outside this claim.

Related open PRs #1051 (exit diagnostics), #1437 / #1749 (trustworthy completed results), #1406 (package discovery), #863 (isolated workers), #1700 (job validation) and #1442 (wrong-folder validation) touch the runner for other behavior. No cancellation claim or matching PR found after checking both coordination threads and PR searches. Those scopes will not be reimplemented here; same-file overlaps will be recorded in the PR.

AI-assisted: OpenAI Codex. This claim selects the next task; the source change has not been written yet.

<!-- gh-comment-id:7166603265 --> @XeNS1 commented on GitHub (Nov 25, 2026): claiming: SEMANTIC-RUNNER-INTERRUPT — stop parallel semantic-test work after Ctrl+C instead of starting queued modules while ThreadPoolExecutor waits for shutdown. Reproduced on main b0f3d3998 with Python 3.14.8 / Linux, CPU only: create five synthetic unittest modules whose test touches a per-module marker and sleeps for eight seconds; run scripts/run_semantic_tests.py with -j 2 in a separate process group; wait for two markers, then send SIGINT to the whole group (the terminal Ctrl+C case). Two seconds later the runner is still alive and four markers exist: two additional modules have started after the interrupt. The probe kills its disposable process group and removes all temporary inputs afterward. Where: scripts/run_semantic_tests.py, main's ThreadPoolExecutor context / as_completed loop and run_module subprocess lifecycle. Scope: cancel queued jobs, stop/reap the runner's own active direct children, and return an interrupted status without a successful suite summary. Add a short synthetic Linux regression plus platform-independent lifecycle tests; preserve normal success, failure and timeout behavior. No game files or GPU required; descendant-process-tree termination is outside this claim. Related open PRs #1051 (exit diagnostics), #1437 / #1749 (trustworthy completed results), #1406 (package discovery), #863 (isolated workers), #1700 (job validation) and #1442 (wrong-folder validation) touch the runner for other behavior. No cancellation claim or matching PR found after checking both coordination threads and PR searches. Those scopes will not be reimplemented here; same-file overlaps will be recorded in the PR. AI-assisted: OpenAI Codex. This claim selects the next task; the source change has not been written yet.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-CONSOLE-TEX-FAST-RUNS -> #1901

<!-- gh-comment-id:7166608870 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-CONSOLE-TEX-FAST-RUNS -> #1901
Author
Owner

@BubsMcgee commented on GitHub (Nov 25, 2026):

claiming: BOOT-INPUT-STATE-RELATIVE - scripts/windows-boot/boot.ps1 input scripts are absolute-time, so the same a@45,a@60,a@75,a@90 lands presses in different game states when startup timing shifts (issue #1900). Plan: add a state-relative form (a@session=d+5, a@game=3+5) that watches the existing LEONIDA_PEEK values (0x7446510 game, low dword of 0x98f828c session), then injects the key into the focused window with SendInput and LEONIDA_KEYBOARD_PAD=1 (the focus mode of #1790); the absolute form stays. Parser/state matcher in a testable helper (tools/boot_input_script.py) with synthetic tests; no game files for those. A full boot test needs the package. AI-assisted.

<!-- gh-comment-id:7166666931 --> @BubsMcgee commented on GitHub (Nov 25, 2026): claiming: BOOT-INPUT-STATE-RELATIVE - `scripts/windows-boot/boot.ps1` input scripts are absolute-time, so the same `a@45,a@60,a@75,a@90` lands presses in different game states when startup timing shifts (issue #1900). Plan: add a state-relative form (`a@session=d+5`, `a@game=3+5`) that watches the existing `LEONIDA_PEEK` values (`0x7446510` game, low dword of `0x98f828c` session), then injects the key into the focused window with `SendInput` and `LEONIDA_KEYBOARD_PAD=1` (the focus mode of #1790); the absolute form stays. Parser/state matcher in a testable helper (`tools/boot_input_script.py`) with synthetic tests; no game files for those. A full boot test needs the package. AI-assisted.
Author
Owner

@efeekrb commented on GitHub (Nov 25, 2026):

claiming: GPU-RTX4060-LAPTOP-WIN - gpu-test-results/RTX4060-Laptop-Windows.txt: a full run on an NVIDIA GeForce RTX 4060 Laptop GPU (Ada, 8 GB, NVIDIA 610.78, Windows 11 build 26300): run_gpu_tests.py native and with LEONIDA_W64_EMULATE=1 at main 24a29f8, plus ctest. #1731 (RTX 4060, driver 621.14) and #1178 (disasm subset) cover the 4060 on Windows; this adds the Laptop part, on an older driver. The results are already collected and the branch is pushed. AI-assisted (Claude Code).

<!-- gh-comment-id:7166673111 --> @efeekrb commented on GitHub (Nov 25, 2026): claiming: GPU-RTX4060-LAPTOP-WIN - gpu-test-results/RTX4060-Laptop-Windows.txt: a full run on an NVIDIA GeForce RTX 4060 Laptop GPU (Ada, 8 GB, NVIDIA 610.78, Windows 11 build 26300): run_gpu_tests.py native and with LEONIDA_W64_EMULATE=1 at main 24a29f8, plus ctest. #1731 (RTX 4060, driver 621.14) and #1178 (disasm subset) cover the 4060 on Windows; this adds the Laptop part, on an older driver. The results are already collected and the branch is pushed. AI-assisted (Claude Code).
Author
Owner

@fiestorra commented on GitHub (Nov 25, 2026):

claiming: LIBRARY-TRANSLATION-GAP — pipeline library compute programs. On main 71a769d7d the shaders stage translates 1,844 of the 2,684 library programs; the 840 refusals all end in "fall-through into undecodable words", and the listings behind them carry 8,310 exp invalid_target_N words. scripts/build_llvm_mc.ps1 builds LLVM 21.1.8 by default while the corpus was measured with 23.1.5/23.1.6. Scope: re-disassemble the refused programs with LLVM 23.1.5 (the shared build in %USERPROFILE%\.leonida\llvm-mc-23), compare invalid words and targets against 21.1.8, and translate them to see whether the fix is the helper's default version plus its docs, or something else. Files I expect to touch: scripts/build_llvm_mc.ps1, README.md, docs/testing.md. This is distinct from #998 and #1712 (decoder-level workarounds in tools/).

Written with an AI assistant.

<!-- gh-comment-id:7166696189 --> @fiestorra commented on GitHub (Nov 25, 2026): claiming: LIBRARY-TRANSLATION-GAP — pipeline library compute programs. On main 71a769d7d the `shaders` stage translates 1,844 of the 2,684 library programs; the 840 refusals all end in "fall-through into undecodable words", and the listings behind them carry 8,310 `exp invalid_target_N` words. `scripts/build_llvm_mc.ps1` builds LLVM 21.1.8 by default while the corpus was measured with 23.1.5/23.1.6. Scope: re-disassemble the refused programs with LLVM 23.1.5 (the shared build in `%USERPROFILE%\.leonida\llvm-mc-23`), compare invalid words and targets against 21.1.8, and translate them to see whether the fix is the helper's default version plus its docs, or something else. Files I expect to touch: `scripts/build_llvm_mc.ps1`, `README.md`, `docs/testing.md`. This is distinct from #998 and #1712 (decoder-level workarounds in `tools/`). Written with an AI assistant.
Author
Owner

@efeekrb commented on GitHub (Nov 25, 2026):

done: GPU-RTX4060-LAPTOP-WIN -> #1902

<!-- gh-comment-id:7166706305 --> @efeekrb commented on GitHub (Nov 25, 2026): done: GPU-RTX4060-LAPTOP-WIN -> #1902
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-BUFFER-VA-INDEX-AUGMENTED-TREE — replace std::map + std::multiset in leonida::BufferVaIndex (runtime/src/buffer_va_index.h, hot path of VulkanContext::buffer_at() on every vertex/index buffer lookup and title-memory miss) with a self-balancing AVL interval tree augmented with per-subtree max_end_inclusive and max_size. This drops worst-case find() from O(N) to strict O(log N) even on misses under large arena/placed buffers, cuts per-insert allocations in half (no std::multiset), and preserves exact tie-breaking and UINT64_MAX overflow-safe semantics. Extend runtime/test/buffer_va_index_test.cpp with a randomized differential oracle against the reference model, UINT64_MAX edge cases, and a miss/alias microbenchmark; portable CPU-only, no game data or hardware.

<!-- gh-comment-id:7166718491 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-BUFFER-VA-INDEX-AUGMENTED-TREE — replace `std::map` + `std::multiset` in `leonida::BufferVaIndex` (`runtime/src/buffer_va_index.h`, hot path of `VulkanContext::buffer_at()` on every vertex/index buffer lookup and title-memory miss) with a self-balancing AVL interval tree augmented with per-subtree `max_end_inclusive` and `max_size`. This drops worst-case `find()` from O(N) to strict O(log N) even on misses under large arena/placed buffers, cuts per-insert allocations in half (no `std::multiset`), and preserves exact tie-breaking and `UINT64_MAX` overflow-safe semantics. Extend `runtime/test/buffer_va_index_test.cpp` with a randomized differential oracle against the reference model, `UINT64_MAX` edge cases, and a miss/alias microbenchmark; portable CPU-only, no game data or hardware.
Author
Owner

@Zalthor commented on GitHub (Nov 25, 2026):

Verification batch 10: the last 27 open pull requests that have tests and queued or no CI, and that nobody had verified in this issue. Each diff (merge-base..head) was applied to its own clean worktree at main 446574e76. Environment: Windows 10, CPU only, no game files, TEMP on C:. The python -I test files ran on CPython 3.12, as in CI's Windows job; pytest-mode files ran on 3.10. Translator PRs also ran the full semantic suite. AI-assisted (Claude Code). Same method as batches 1 to 9.

Summary: 26 apply cleanly, and none breaks a test. 1 no longer applies (#1660). None adds a failure to the repo-wide checks. test_runner_calls_all_tests and test_tool_stdout_encoding are already red on main; #1673 fixes one of them (below).

New tests fail on unpatched main and pass with the change

#1528, #1572, #1724, #1757, #1759, #1760, #1762, #1765, #1766, #1769, #1770, #1772, #1773, #1774, #1778, #1780, #1784, #1789.

  • #1528 and #1774 were force-pushed during the run, so I re-tested both at their new heads.
  • #1572, #1774, #1778 (tools/rdna2spirv.py): with each one applied, the full semantic suite has 0 failed files. For #1774 at its new head: 490 files, 6,295 tests.
    • The new semantic files of #1572 and #1774 fail if run on their own, outside the suite runner, because they import the suite's support module. Inside the suite they pass.
  • #1572: 10 new tests fail on main and pass with the change.
  • #1528, #1774 (make_game): the other 50 make_game test files fail the same way with and without them. That run was on 3.10, where make_game.py refuses to start, so it settles nothing either way.

Change existing tests (no new test functions)

The changed test file fails on main and passes with the change:

Tests that already pass on main (coverage or test-only fixes, no behaviour change to show)

  • #1166: adds test_descriptor_address_translation.py (53 tests) and docs. The tests pass on main too.
  • #1771: a test-ordering fix in test_ttpf_assets.py. It passes here with and without the change; the race it fixes didn't show up.
  • #1781, #1791: tests for docs/. They pass on main too, so current docs already satisfy them.

#1673: fixes test_runner_calls_all_tests on current main; test_tool_stdout_encoding stays red

With #1673, test_runner_calls_all_tests.py passes. test_tool_stdout_encoding.py still fails, but now on 2 tools instead of 3: tools/game_run_summary.py and tools/stage_timeline.py. Those reached main after the PR was opened, and #1673 only fixes compute_heap_layout_census.py. #1561 targets the same two checks, so whichever merges first, the other needs a rebase.

Could not exercise here

  • #1761 (geometry-shader LDS lowering in rdna2spirv.py): all 5 new tests skip without an llvm-mc that has the AMDGPU target, plus spirv-as / spirv-val, and there are none here. On main the test file doesn't load (its fixture is new). With the PR, the full semantic suite passes (0 failed files). The lowering itself needs a run with those tools.

No longer applies to main

#1660: conflicts in docs/linux_proton.md.

Not covered: no Linux or macOS run, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.

<!-- gh-comment-id:7166746289 --> @Zalthor commented on GitHub (Nov 25, 2026): Verification batch 10: the last 27 open pull requests that have tests and queued or no CI, and that nobody had verified in this issue. Each diff (merge-base..head) was applied to its own clean worktree at `main` `446574e76`. Environment: Windows 10, CPU only, no game files, `TEMP` on `C:`. The `python -I` test files ran on CPython 3.12, as in CI's Windows job; pytest-mode files ran on 3.10. Translator PRs also ran the full semantic suite. AI-assisted (Claude Code). Same method as batches [1](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157070042) to [9](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7165799604). **Summary: 26 apply cleanly, and none breaks a test. 1 no longer applies (#1660).** None adds a failure to the repo-wide checks. `test_runner_calls_all_tests` and `test_tool_stdout_encoding` are already red on `main`; #1673 fixes one of them (below). ### New tests fail on unpatched `main` and pass with the change #1528, #1572, #1724, #1757, #1759, #1760, #1762, #1765, #1766, #1769, #1770, #1772, #1773, #1774, #1778, #1780, #1784, #1789. - **#1528 and #1774** were force-pushed during the run, so I re-tested both at their new heads. - **#1572, #1774, #1778** (`tools/rdna2spirv.py`): with each one applied, the full semantic suite has 0 failed files. For #1774 at its new head: 490 files, 6,295 tests. - The new semantic files of #1572 and #1774 fail if run on their own, outside the suite runner, because they import the suite's `support` module. Inside the suite they pass. - **#1572:** 10 new tests fail on `main` and pass with the change. - **#1528, #1774** (`make_game`): the other 50 `make_game` test files fail the same way with and without them. That run was on 3.10, where `make_game.py` refuses to start, so it settles nothing either way. ### Change existing tests (no new test functions) The changed test file fails on `main` and passes with the change: - **#1763** (`navmesh_decode`) - **#1767** (`vs_input_survey`) ### Tests that already pass on `main` (coverage or test-only fixes, no behaviour change to show) - **#1166:** adds `test_descriptor_address_translation.py` (53 tests) and docs. The tests pass on `main` too. - **#1771:** a test-ordering fix in `test_ttpf_assets.py`. It passes here with and without the change; the race it fixes didn't show up. - **#1781, #1791:** tests for `docs/`. They pass on `main` too, so current docs already satisfy them. ### #1673: fixes `test_runner_calls_all_tests` on current `main`; `test_tool_stdout_encoding` stays red With #1673, `test_runner_calls_all_tests.py` passes. `test_tool_stdout_encoding.py` still fails, but now on 2 tools instead of 3: `tools/game_run_summary.py` and `tools/stage_timeline.py`. Those reached `main` after the PR was opened, and #1673 only fixes `compute_heap_layout_census.py`. #1561 targets the same two checks, so whichever merges first, the other needs a rebase. ### Could not exercise here - **#1761** (geometry-shader LDS lowering in `rdna2spirv.py`): all 5 new tests skip without an `llvm-mc` that has the AMDGPU target, plus `spirv-as` / `spirv-val`, and there are none here. On `main` the test file doesn't load (its fixture is new). With the PR, the full semantic suite passes (0 failed files). The lowering itself needs a run with those tools. ### No longer applies to `main` **#1660:** conflicts in `docs/linux_proton.md`. Not covered: no Linux or macOS run, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.
Author
Owner

@Snooozs commented on GitHub (Nov 25, 2026):

Retail boot data, native Windows 10 19045, RTX 5060 Ti 16 GB, NVIDIA 621.01, 32 GB RAM, own 1.0.2.1, counts only. Build: main b0f3d3998 + #1893 #1851 #1827 #1849 #1889 #1860 #1592 (merged with main, see there) #1887 #1886 #1882; FSPX 29 of 29, fspx_gfx 18,493; LEONIDA_HOST_IMAGE_COPY=0 LEONIDA_ASYNC_PIPELINES=1 LEONIDA_ARENA_MB=2048 LEONIDA_DEVICE_TYPE=6 LEONIDA_TITLE_WATCHDOG=0, default window cap, no offline pipeline cache.

  • 530 s, no device loss, no fault report, 0 driver resets from the game. On this card every earlier boot that got that far lost the device between 208 and 336 s. Stopped by my own free-RAM guard, not by the game. One run, and several fixes changed at once, so this does not say which one did it.
  • In the world phase the subtitles of the opening cutscene are on screen, the scene under them is black: recorded=16384 emitted=6469 record_skips=441516 (DadaCap's finding).
  • #1887 is a large win here: the console heap phase was 34 to 179 ms a submission (spikes of 2.2 to 2.7 s, every few submissions) in the run without it, and 10 to 14 ms (spikes to about 140 ms) with it; frames went from 0.2-0.4/s to 0.8-1.2/s. The run with it also had #1886 and #1882 and no 2 GB cache seed, so not a clean A/B.
  • What is left a submission: textures 11 to 26 ms, heaps 10 to 14, shadows 6 to 9, replay about 1. The GPU is at 3 to 15 %.

claiming: RT-MESH-INDIRECT-CLAMPED - indirect DISPATCH_MESH on main's stateful indirect path: recorded like the other single-operation signatures (draw_indirect, so #1896's reasons and the bundle deferral apply), arguments and count through indirect_clamp_mesh (which #1723 has but nothing uses), then vkCmdDrawMeshTasksIndirect(Count)EXT. It takes the place of the conflicting core of #424/#429 (@PyZikYG, credited; their pixel test is kept). @DadaCap you said you are merging #429 locally: if yours is further along, say so and I stop. Working here: d3d12_mesh pixel-exact, validation clean; next is a boot. Warning from testing it: without the clamp (LEONIDA_INDIRECT_CLAMP=0) the counted form ended in an NVIDIA graphics exception (MISSING_MACRO_DATA) and a driver reset, 2 of 2, so this path refuses mesh indirects when the clamp is off. Stacked on #1896.

@fiestorra on LIBRARY-TRANSLATION-GAP: same count here, 1,844 of 2,684 with llvm-mc 21.1.8 and 2,683 of 2,684 with 23.1.6 on the same package (Windows), so the decoder version alone closes it.

AI-assisted (Claude Code).

<!-- gh-comment-id:7166780916 --> @Snooozs commented on GitHub (Nov 25, 2026): Retail boot data, native Windows 10 19045, RTX 5060 Ti 16 GB, NVIDIA 621.01, 32 GB RAM, own 1.0.2.1, counts only. Build: `main` b0f3d3998 + #1893 #1851 #1827 #1849 #1889 #1860 #1592 (merged with main, see there) #1887 #1886 #1882; FSPX 29 of 29, `fspx_gfx` 18,493; `LEONIDA_HOST_IMAGE_COPY=0 LEONIDA_ASYNC_PIPELINES=1 LEONIDA_ARENA_MB=2048 LEONIDA_DEVICE_TYPE=6 LEONIDA_TITLE_WATCHDOG=0`, default window cap, no offline pipeline cache. - **530 s, no device loss, no fault report, 0 driver resets from the game.** On this card every earlier boot that got that far lost the device between 208 and 336 s. Stopped by my own free-RAM guard, not by the game. One run, and several fixes changed at once, so this does not say which one did it. - In the world phase the subtitles of the opening cutscene are on screen, the scene under them is black: `recorded=16384 emitted=6469 record_skips=441516` (DadaCap's finding). - **#1887 is a large win here:** the console heap phase was 34 to 179 ms a submission (spikes of 2.2 to 2.7 s, every few submissions) in the run without it, and 10 to 14 ms (spikes to about 140 ms) with it; frames went from 0.2-0.4/s to 0.8-1.2/s. The run with it also had #1886 and #1882 and no 2 GB cache seed, so not a clean A/B. - What is left a submission: textures 11 to 26 ms, heaps 10 to 14, shadows 6 to 9, replay about 1. The GPU is at 3 to 15 %. claiming: **RT-MESH-INDIRECT-CLAMPED** - indirect DISPATCH_MESH on main's stateful indirect path: recorded like the other single-operation signatures (`draw_indirect`, so #1896's reasons and the bundle deferral apply), arguments and count through `indirect_clamp_mesh` (which #1723 has but nothing uses), then `vkCmdDrawMeshTasksIndirect(Count)EXT`. It takes the place of the conflicting core of #424/#429 (@PyZikYG, credited; their pixel test is kept). @DadaCap you said you are merging #429 locally: if yours is further along, say so and I stop. Working here: `d3d12_mesh` pixel-exact, validation clean; next is a boot. **Warning from testing it:** without the clamp (`LEONIDA_INDIRECT_CLAMP=0`) the counted form ended in an NVIDIA graphics exception (MISSING_MACRO_DATA) and a driver reset, 2 of 2, so this path refuses mesh indirects when the clamp is off. Stacked on #1896. @fiestorra on LIBRARY-TRANSLATION-GAP: same count here, 1,844 of 2,684 with llvm-mc 21.1.8 and **2,683 of 2,684 with 23.1.6** on the same package (Windows), so the decoder version alone closes it. AI-assisted (Claude Code).
Author
Owner

@qhukz13 commented on GitHub (Nov 25, 2026):

On the d3d12_pipeline_library_host finding above: it does not reproduce on Windows 10. GeForce GTX 1050 Ti, NVIDIA 582.66, Windows 10 Pro 19045, MSVC RelWithDebInfo, main 3de22a190: ctest -R "^d3d12_pipeline_library_host$" passes 3 of 3 (~15 s), and the exe run directly exits 0 with 72 steps compared with the host (22 more not compared), 0 mismatches; no WER dump. Since the host steps run in child processes and the in-process steps are wrapped in __try, a 0xc0000409 (fail-fast, which __try does not catch) points at the main process, so it may depend on the newer D3D12 runtime of the hosts it fails on, or on something between 3f81d46ac and 3de22a190 (e.g. #1547's pipeline-compile workers). AI-assisted (Claude Code).

<!-- gh-comment-id:7166789075 --> @qhukz13 commented on GitHub (Nov 25, 2026): On the `d3d12_pipeline_library_host` finding above: it does not reproduce on Windows 10. GeForce GTX 1050 Ti, NVIDIA 582.66, Windows 10 Pro 19045, MSVC RelWithDebInfo, `main` `3de22a190`: `ctest -R "^d3d12_pipeline_library_host$"` passes 3 of 3 (~15 s), and the exe run directly exits 0 with `72 steps compared with the host (22 more not compared), 0 mismatches`; no WER dump. Since the host steps run in child processes and the in-process steps are wrapped in `__try`, a 0xc0000409 (fail-fast, which `__try` does not catch) points at the main process, so it may depend on the newer D3D12 runtime of the hosts it fails on, or on something between `3f81d46ac` and `3de22a190` (e.g. #1547's pipeline-compile workers). AI-assisted (Claude Code).
Author
Owner

@efeekrb commented on GitHub (Nov 25, 2026):

finding: d3d12_texture_tiles ignores LEONIDA_HOST_ADAPTER and picks its native D3D12 adapter itself - runtime/test/d3d12_texture_tiles_test.cpp:251 (native_device(), used at line 286); the other comparison tests (for example d3d12_buffer_tiles_test.cpp) go through test/host_adapter.h. docs/testing.md "Choosing the GPU" says LEONIDA_HOST_ADAPTER picks the D3D12 adapter for such tests. On a PC with an Intel iGPU next to an NVIDIA GPU (RTX 4060 Laptop + Intel UHD, Windows 11, NVIDIA 610.78) the test prints "Native D3D12: Intel(R) UHD Graphics" even with LEONIDA_HOST_ADAPTER=4060, and fails at the 256 x 240, linear offset 1 case ("alias tile 0 at (0,0): got 0x1cc0200, expected 0xcc020000"), which looks like the Intel CopyTiles offset rounding that #964 handles; the layer's own replay on the NVIDIA GPU had passed that case. Why it matters: on a two-GPU laptop the iGPU's native behaviour shows up as a failure of the tested GPU, and the variable that should choose the adapter does nothing here. Needs a PC with two GPUs to reproduce; the fix is small (use host_adapter.h as the other tests do). Seen in my RTX 4060 Laptop record, #1902.

<!-- gh-comment-id:7166810805 --> @efeekrb commented on GitHub (Nov 25, 2026): finding: d3d12_texture_tiles ignores LEONIDA_HOST_ADAPTER and picks its native D3D12 adapter itself - runtime/test/d3d12_texture_tiles_test.cpp:251 (`native_device()`, used at line 286); the other comparison tests (for example d3d12_buffer_tiles_test.cpp) go through test/host_adapter.h. docs/testing.md "Choosing the GPU" says LEONIDA_HOST_ADAPTER picks the D3D12 adapter for such tests. On a PC with an Intel iGPU next to an NVIDIA GPU (RTX 4060 Laptop + Intel UHD, Windows 11, NVIDIA 610.78) the test prints "Native D3D12: Intel(R) UHD Graphics" even with LEONIDA_HOST_ADAPTER=4060, and fails at the 256 x 240, linear offset 1 case ("alias tile 0 at (0,0): got 0x1cc0200, expected 0xcc020000"), which looks like the Intel CopyTiles offset rounding that #964 handles; the layer's own replay on the NVIDIA GPU had passed that case. Why it matters: on a two-GPU laptop the iGPU's native behaviour shows up as a failure of the tested GPU, and the variable that should choose the adapter does nothing here. Needs a PC with two GPUs to reproduce; the fix is small (use host_adapter.h as the other tests do). Seen in my RTX 4060 Laptop record, #1902.
Author
Owner

@Snooozs commented on GitHub (Nov 25, 2026):

claiming: RT-DEPTH-COPY-ENCODING-MISMATCH - the follow-up to #1893 that @OreoFR left to me (https://github.com/ubiquitarianism/leonida/pull/1893#issuecomment-7166065911): vkCmdCopyImage between two depth-stencil formats whose depth encodings differ (D24S8 to D16, D24S8 to D32, D32S8 to D16) is still recorded; that one copy is left out and logged once per pair, and a stencil plane copy between different depth-stencil formats (8 bits on both sides) is staged. Stacked on #1893, with cases in replay_copy_offset_test. No game files. AI-assisted (Claude Code).

<!-- gh-comment-id:7166819597 --> @Snooozs commented on GitHub (Nov 25, 2026): claiming: RT-DEPTH-COPY-ENCODING-MISMATCH - the follow-up to #1893 that @OreoFR left to me (https://github.com/ubiquitarianism/leonida/pull/1893#issuecomment-7166065911): `vkCmdCopyImage` between two depth-stencil formats whose depth encodings differ (D24S8 to D16, D24S8 to D32, D32S8 to D16) is still recorded; that one copy is left out and logged once per pair, and a stencil plane copy between different depth-stencil formats (8 bits on both sides) is staged. Stacked on #1893, with cases in `replay_copy_offset_test`. No game files. AI-assisted (Claude Code).
Author
Owner

@bobcatchris commented on GitHub (Nov 25, 2026):

Evidence (AI-assisted session, RX 7900 XTX, Windows 11, MSVC gta6rt build): retail title now boots through the previously fatal soft-assert and sustains its first-run/frontend rendering at a locked 80 FPS (title-paced), 0 exceptions over a 716 s run.

What changed on my boot-stack branch (fork bobcatchris/Leonida @15077f939): (1) build now fetches SDL 3.4.20 — without SDL3 the GameInput slot was E_NOTIMPL and scripted input never landed (a documented blank-picture cause); (2) merged current continuation/main (27 commits incl. #1547 compile workers, #1544, #1539, #1598) — the resource-create soft assert that killed every run at ~60-120 s is gone (fix not isolated); my earlier fspx_gfx build stage + slot-57 unfed-inputs rule are in and survived. Translator suite: 487 files, 6,288 tests, 0 failures.

Measured (untraced run; traced runs under-report at 40-57 FPS): game state reaches running, landing prompt accepted via scripted A, captures show 80.0 FPS in every 5 s window for 300+ s (frames 1-39,601 captured every 400), late frame mean rgb ~103/64/107 with 1,042 distinct colours at 256x140, 0 pipeline-creation failures. That clears the 30 FPS bar with margin (my M4).

Not yet (finding): the world phase does not start — after load prep (54,643 pipelines, 1,435-image texture registry) the title parks on a frontend page; slot-31 CopyPageMappingsBatchX is called exactly once and 26-40 placed views never become readable (the queue-order mapping gap in docs/linux_proton.md is my prime suspect); no BVH rehydration call observed yet. #1671 (slot-57 blend state) still relevant for a correct picture. Counts/RVAs only; no game data. Full log kept locally. Credits: upstream main authors, Moriz82, DadaCap (prototype studied, not ported), OreoFR.

<!-- gh-comment-id:7166854401 --> @bobcatchris commented on GitHub (Nov 25, 2026): Evidence (AI-assisted session, RX 7900 XTX, Windows 11, MSVC gta6rt build): retail title now boots through the previously fatal soft-assert and sustains its first-run/frontend rendering at a locked 80 FPS (title-paced), 0 exceptions over a 716 s run. What changed on my boot-stack branch (fork bobcatchris/Leonida @15077f939): (1) build now fetches SDL 3.4.20 — without SDL3 the GameInput slot was E_NOTIMPL and scripted input never landed (a documented blank-picture cause); (2) merged current continuation/main (27 commits incl. #1547 compile workers, #1544, #1539, #1598) — the resource-create soft assert that killed every run at ~60-120 s is gone (fix not isolated); my earlier fspx_gfx build stage + slot-57 unfed-inputs rule are in and survived. Translator suite: 487 files, 6,288 tests, 0 failures. Measured (untraced run; traced runs under-report at 40-57 FPS): game state reaches running, landing prompt accepted via scripted A, captures show 80.0 FPS in every 5 s window for 300+ s (frames 1-39,601 captured every 400), late frame mean rgb ~103/64/107 with 1,042 distinct colours at 256x140, 0 pipeline-creation failures. That clears the 30 FPS bar with margin (my M4). Not yet (finding): the world phase does not start — after load prep (54,643 pipelines, 1,435-image texture registry) the title parks on a frontend page; slot-31 CopyPageMappingsBatchX is called exactly once and 26-40 placed views never become readable (the queue-order mapping gap in docs/linux_proton.md is my prime suspect); no BVH rehydration call observed yet. #1671 (slot-57 blend state) still relevant for a correct picture. Counts/RVAs only; no game data. Full log kept locally. Credits: upstream main authors, Moriz82, DadaCap (prototype studied, not ported), OreoFR.
Author
Owner

@t91a60 commented on GitHub (Nov 25, 2026):

done: RT-XG-XS-COPY-ROW-DISPATCH -> #1882

Updated copy_elements to dispatch fixed element widths (1/2/4/8/16) once per row using templated copy_tiled_row<Width> (Width=0 falls back to the original runtime-sized path).

Further optimized the hot loop by:

  1. Advancing the linear pointer incrementally (src_ptr += bytes / dst_ptr += bytes) instead of recalculating offsets per element.
  2. Replacing std::memcpy with direct scalar/64-bit moves for common sizes, bypassing memcpy overhead on MSVC.
  3. Fixed __restrict__ to __restrict for native MSVC compilation (fixes C2146).

These changes eliminate all per-element branching and multiplications, making it significantly faster than both the original and the competing implementation (beating #1880 on RGBA8 and now BC7 as well).

  • Byte-exact with the reference (verified against the 306-check corpus).
  • Includes full test coverage via the dedicated texel_copy_test.cpp (misaligned buffers, extra pitch, volumes, tails, both directions, specialized + non-specialized widths).
  • No game data, fully synthetic.

Acknowledging the earlier claim on #1880. The row-level approach with pointer advancement and direct moves is clearly superior. Happy to rebase, close this PR, or merge whichever maintainers prefer. AI-assisted.

<!-- gh-comment-id:7166874172 --> @t91a60 commented on GitHub (Nov 25, 2026): done: RT-XG-XS-COPY-ROW-DISPATCH -> #1882 Updated `copy_elements` to dispatch fixed element widths (1/2/4/8/16) **once per row** using templated `copy_tiled_row<Width>` (Width=0 falls back to the original runtime-sized path). Further optimized the hot loop by: 1. Advancing the linear pointer incrementally (`src_ptr += bytes` / `dst_ptr += bytes`) instead of recalculating offsets per element. 2. Replacing `std::memcpy` with **direct scalar/64-bit moves** for common sizes, bypassing memcpy overhead on MSVC. 3. Fixed `__restrict__` to `__restrict` for native MSVC compilation (fixes C2146). These changes eliminate all per-element branching and multiplications, making it significantly faster than both the original and the competing implementation (beating #1880 on RGBA8 and now BC7 as well). - Byte-exact with the reference (verified against the 306-check corpus). - Includes full test coverage via the dedicated `texel_copy_test.cpp` (misaligned buffers, extra pitch, volumes, tails, both directions, specialized + non-specialized widths). - No game data, fully synthetic. Acknowledging the earlier claim on #1880. The row-level approach with pointer advancement and direct moves is clearly superior. Happy to rebase, close this PR, or merge whichever maintainers prefer. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-BUFFER-VA-INDEX-AUGMENTED-TREE -> #1904

<!-- gh-comment-id:7166900598 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-BUFFER-VA-INDEX-AUGMENTED-TREE -> #1904
Author
Owner

@Snooozs commented on GitHub (Nov 25, 2026):

done: RT-DEPTH-COPY-ENCODING-MISMATCH -> #1905 (stacked on #1893)

<!-- gh-comment-id:7166915779 --> @Snooozs commented on GitHub (Nov 25, 2026): done: RT-DEPTH-COPY-ENCODING-MISMATCH -> #1905 (stacked on #1893)
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-VK-HELPER-PROC-CACHE-AND-GUARDS — harden and speed up the four Vulkan replay compute helpers (runtime/src/vulkan_indirect_dispatch_count.h, runtime/src/vulkan_predicate.h, runtime/src/vulkan_predicated_copy.h, runtime/src/quad_index_expand.h): (1) fix GPU BDA fault in IndirectDispatchCounter::Batch::prepare() when count == VK_NULL_HANDLE and count_offset != 0 (previously produced non-zero out.count = count_offset, setting has_count = 1 in emit() and dereferencing count_offset as a device address), and destroy partial scratch allocations immediately on failure; (2) use memory_type_order() + OOM retry loop in PredicateReducer::batch() (fixing BAR-first / missing heap-size filtering on non-ReBAR GPUs) and destroy failed descriptor pools immediately in PredicatedBufferCopier::Batch::prepare(); (3) resolve and cache Vulkan device proc pointers once inside make_pipeline() in all four helpers instead of repeating vkGetDeviceProcAddr string lookups on every prepare/emit command. Portable CPU-only mock test included; no game data or hardware required.

<!-- gh-comment-id:7166919278 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-VK-HELPER-PROC-CACHE-AND-GUARDS — harden and speed up the four Vulkan replay compute helpers (`runtime/src/vulkan_indirect_dispatch_count.h`, `runtime/src/vulkan_predicate.h`, `runtime/src/vulkan_predicated_copy.h`, `runtime/src/quad_index_expand.h`): (1) fix GPU BDA fault in `IndirectDispatchCounter::Batch::prepare()` when `count == VK_NULL_HANDLE` and `count_offset != 0` (previously produced non-zero `out.count = count_offset`, setting `has_count = 1` in `emit()` and dereferencing `count_offset` as a device address), and destroy partial scratch allocations immediately on failure; (2) use `memory_type_order()` + OOM retry loop in `PredicateReducer::batch()` (fixing BAR-first / missing heap-size filtering on non-ReBAR GPUs) and destroy failed descriptor pools immediately in `PredicatedBufferCopier::Batch::prepare()`; (3) resolve and cache Vulkan device proc pointers once inside `make_pipeline()` in all four helpers instead of repeating `vkGetDeviceProcAddr` string lookups on every prepare/emit command. Portable CPU-only mock test included; no game data or hardware required.
Author
Owner

@JordanWebDev commented on GitHub (Nov 25, 2026):

claiming: SHADER-W64-EMU-BITSET-RMW - model s_bitset0/1_b32/b64 as read-modify-write and SCC-less in tools/wave64_emulate_opt.py so lane-local execz fold doesn't drop prior SGPR state or inject fake SCC writes

<!-- gh-comment-id:7166953735 --> @JordanWebDev commented on GitHub (Nov 25, 2026): claiming: SHADER-W64-EMU-BITSET-RMW - model s_bitset0/1_b32/b64 as read-modify-write and SCC-less in tools/wave64_emulate_opt.py so lane-local execz fold doesn't drop prior SGPR state or inject fake SCC writes
Author
Owner

@JordanWebDev commented on GitHub (Nov 25, 2026):

done: SHADER-W64-EMU-BITSET-RMW -> #1906

<!-- gh-comment-id:7166955412 --> @JordanWebDev commented on GitHub (Nov 25, 2026): done: SHADER-W64-EMU-BITSET-RMW -> #1906
Author
Owner

@JordanWebDev commented on GitHub (Nov 25, 2026):

claiming: SHADER-W64-HALVES-IMAGE-ATOMIC - model image_atomic_* as atomic memory sinks in tools/wave64_halves.py (glc-conditional dests, NSA vlist elected-lane checks, and stale_uses scalar descriptor reads)

<!-- gh-comment-id:7166955956 --> @JordanWebDev commented on GitHub (Nov 25, 2026): claiming: SHADER-W64-HALVES-IMAGE-ATOMIC - model image_atomic_* as atomic memory sinks in tools/wave64_halves.py (glc-conditional dests, NSA vlist elected-lane checks, and stale_uses scalar descriptor reads)
Author
Owner

@HasiKe commented on GitHub (Nov 25, 2026):

claiming: RT-NAME-COMPUTE-PIPELINES - when the instance has VK_EXT_debug_utils, every compute VkPipeline gets its shader's name (library/lib_cs_NNNNN, ..._Wrapped) through vkSetDebugUtilsObjectNameEXT. A VK_LAYER_LUNARG_crash_diagnostic dump (and RenderDoc) then names the pipeline of the dispatch in flight at a device loss, with no local handle log. One function in runtime/shims/d3d12_vulkan_device.cpp, no behaviour change otherwise.

Measured on an RTX 2070 SUPER (NVIDIA 616.56): the dump of the ~500 s loss I reported in #1537 now reads handle: 0x...[library/lib_cs_01144] for the last started vkCmdDispatch (128x64x1 groups). That is "crash B" from #1849 / #1893, not a new stop. AI-assisted (Claude Code).

<!-- gh-comment-id:7166956386 --> @HasiKe commented on GitHub (Nov 25, 2026): claiming: RT-NAME-COMPUTE-PIPELINES - when the instance has `VK_EXT_debug_utils`, every compute `VkPipeline` gets its shader's name (`library/lib_cs_NNNNN`, `..._Wrapped`) through `vkSetDebugUtilsObjectNameEXT`. A `VK_LAYER_LUNARG_crash_diagnostic` dump (and RenderDoc) then names the pipeline of the dispatch in flight at a device loss, with no local handle log. One function in `runtime/shims/d3d12_vulkan_device.cpp`, no behaviour change otherwise. Measured on an RTX 2070 SUPER (NVIDIA 616.56): the dump of the ~500 s loss I reported in #1537 now reads `handle: 0x...[library/lib_cs_01144]` for the last started `vkCmdDispatch` (128x64x1 groups). That is "crash B" from #1849 / #1893, not a new stop. AI-assisted (Claude Code).
Author
Owner

@JordanWebDev commented on GitHub (Nov 25, 2026):

done: SHADER-W64-HALVES-IMAGE-ATOMIC -> #1907

<!-- gh-comment-id:7166957668 --> @JordanWebDev commented on GitHub (Nov 25, 2026): done: SHADER-W64-HALVES-IMAGE-ATOMIC -> #1907
Author
Owner

@JordanWebDev commented on GitHub (Nov 25, 2026):

claiming: SHADER-RBW-ATOMIC-DATA - model buffer_atomic_, image_atomic_, flat_atomic_, ds_store, and non-_rtn DS atomic VGPR reads/writes uniformly across read_before_write_vgprs, interp_ij_analysis, and reg_reads_writes in tools/rdna2spirv.py

<!-- gh-comment-id:7166958208 --> @JordanWebDev commented on GitHub (Nov 25, 2026): claiming: SHADER-RBW-ATOMIC-DATA - model buffer_atomic_*, image_atomic_*, flat_atomic_*, ds_store*, and non-_rtn DS atomic VGPR reads/writes uniformly across read_before_write_vgprs, interp_ij_analysis, and reg_reads_writes in tools/rdna2spirv.py
Author
Owner

@JordanWebDev commented on GitHub (Nov 25, 2026):

done: SHADER-RBW-ATOMIC-DATA -> #1908

<!-- gh-comment-id:7166959717 --> @JordanWebDev commented on GitHub (Nov 25, 2026): done: SHADER-RBW-ATOMIC-DATA -> #1908
Author
Owner

@whoalin1 commented on GitHub (Nov 25, 2026):

claiming: whoalin1 PR maintenance pass — rebase/re-verify conflicting #1210 and #1449, address review comments on #1397/#808/#1507/#1519/#1181/#765, finish the #1397 narrowed-EXEC fuzz re-verify, and open the stacked mask-regs-wave64-fold PR after hardware verification. AI-assisted (SWE-2.1 Max / Devin).

<!-- gh-comment-id:7166979537 --> @whoalin1 commented on GitHub (Nov 25, 2026): claiming: whoalin1 PR maintenance pass — rebase/re-verify conflicting #1210 and #1449, address review comments on #1397/#808/#1507/#1519/#1181/#765, finish the #1397 narrowed-EXEC fuzz re-verify, and open the stacked mask-regs-wave64-fold PR after hardware verification. AI-assisted (SWE-2.1 Max / Devin).
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

claiming: SALU-DIFF-REF-VALIDATION -- validate branch skip offsets/bounds, SGPR/VGPR/pair operand kinds and widths, operand arity, comma-delimited instruction sizing, and SIMM16 ranges in tools/salu_diff.py so malformed inputs raise RefError instead of silently corrupting state or skipping past the program. Standard-library Python only, no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7167019096 --> @ShotTechOp commented on GitHub (Nov 25, 2026): claiming: SALU-DIFF-REF-VALIDATION -- validate branch skip offsets/bounds, SGPR/VGPR/pair operand kinds and widths, operand arity, comma-delimited instruction sizing, and SIMM16 ranges in tools/salu_diff.py so malformed inputs raise RefError instead of silently corrupting state or skipping past the program. Standard-library Python only, no game files, no GPU. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-VK-HELPER-PROC-CACHE-AND-GUARDS -> #1910

<!-- gh-comment-id:7167081096 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-VK-HELPER-PROC-CACHE-AND-GUARDS -> #1910
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

done: SALU-DIFF-REF-VALIDATION -> #1911

<!-- gh-comment-id:7167100136 --> @ShotTechOp commented on GitHub (Nov 25, 2026): done: SALU-DIFF-REF-VALIDATION -> #1911
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-PRESENT-COMPOSE-MEM-AND-GUARDS — harden leonida::PresentComposer (runtime/src/vulkan_present_compose.h, used by VulkanPresenter::present_planes() on PresentX): (1) use memory_type_order() + !resizable_bar() pure-VRAM preference + OOM retry loop in ensure_target() so the RGBA16F compose target (up to 64 MiB at 4K) stays off the 256 MiB BAR window on non-ReBAR GPUs, skips undersized heaps (VUID-vkAllocateMemory-pAllocateInfo-01713), and falls back cleanly on OOM; (2) validate all required Vulkan device procs (including vkGetImageMemoryRequirements, vkBindImageMemory, vkCmdPipelineBarrier, and destroy procs) in ready(), clean up partial handles on ready() failure, reject 0x0 extents before destroying an existing target, and clear failed handles on creation errors. Add portable CPU-only mock test vk_present_compose_test.cpp; no game data or hardware required.

<!-- gh-comment-id:7167109295 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-PRESENT-COMPOSE-MEM-AND-GUARDS — harden `leonida::PresentComposer` (`runtime/src/vulkan_present_compose.h`, used by `VulkanPresenter::present_planes()` on PresentX): (1) use `memory_type_order()` + `!resizable_bar()` pure-VRAM preference + OOM retry loop in `ensure_target()` so the RGBA16F compose target (up to 64 MiB at 4K) stays off the 256 MiB BAR window on non-ReBAR GPUs, skips undersized heaps (`VUID-vkAllocateMemory-pAllocateInfo-01713`), and falls back cleanly on OOM; (2) validate all required Vulkan device procs (including `vkGetImageMemoryRequirements`, `vkBindImageMemory`, `vkCmdPipelineBarrier`, and destroy procs) in `ready()`, clean up partial handles on `ready()` failure, reject `0x0` extents before destroying an existing target, and clear failed handles on creation errors. Add portable CPU-only mock test `vk_present_compose_test.cpp`; no game data or hardware required.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

claiming: WINT-DIFF-REF-VALIDATION -- implement full RDNA2 v_mbcnt_lo/hi_u32_b32 (dest/mask/addend/EXEC) and v_writelane_b32 (scalar src, lane wrap mod wave), and validate register kinds, VGPR/SGPR pairs, wave-sized masks, op_sel lengths, and operand arity in tools/wint_diff.py. Standard-library Python only, no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7167118909 --> @ShotTechOp commented on GitHub (Nov 25, 2026): claiming: WINT-DIFF-REF-VALIDATION -- implement full RDNA2 v_mbcnt_lo/hi_u32_b32 (dest/mask/addend/EXEC) and v_writelane_b32 (scalar src, lane wrap mod wave), and validate register kinds, VGPR/SGPR pairs, wave-sized masks, op_sel lengths, and operand arity in tools/wint_diff.py. Standard-library Python only, no game files, no GPU. AI-assisted.
Author
Owner

@fiestorra commented on GitHub (Nov 25, 2026):

finding: VIEWER-HUNT — no unclaimed reproducible defect in the map viewer, and the recommended path: collision check misses the four open PRs that already own these files. No PR from me.

What I probed (synthetic inputs only: no game files, no GPU):

  • Suites on main 71a769d7d: node --test tests/test_viewer_streaming.cjs tests/test_viewer_studio.cjs 69/69; python -I tests/test_viewer_serve.py 39 (1 skipped: SIGINT on Windows); python -I tests/test_viewer_cdn_integrity.py 10.
  • Streaming state machine: drove the real stream()/loadChunk() code through 80 randomised runs (2 world shapes × 40 seeds × 250 frames of random camera jumps, header/body/parse completions and failures, then a settle phase) and compared it with the documented rule (docs/world.md: band by cell distance, 32 m slack). Clean: no loaded object kept outside its keep range, no loading entry outside it, at most one visible chain tier per cell and it is an in-band one, orphan HD visible exactly in its band, no entry above three attempts, every in-band chunk loaded once the queue drains.
  • Chromium against a loopback serve.py (test terrain): page, terrain, HUD, F/T/G/R/P, and a #cam=300,150,-200,... link applied on a real load; the only console error is the expected /favicon.ico 404.
  • Pinning: recomputed SHA-384 of the three [email protected] files index.html pins and the three r128 files studio.html falls back to; all six match the integrity values in the pages.
  • viewer/serve.py read against its 531-line test file: Host/duplicate-Host/port guards, traversal, Windows device aliases, symlinks, --port, --world, port in use and Ctrl+C are covered. The only unexercised paths are the BrokenPipe catch in handle() and the stdout reconfiguration; I could not construct a failure for either.

Coordination note (this cost me a round): gh search prs --repo ubiquitarianism/leonida --state open 'path:viewer/' returns [] (also path:viewer), but four open PRs touch these files — #651 and #918 (viewer/index.html, tests/test_viewer_streaming.cjs: chunk idle timeout, world.json read-error message), #1138 and #1490 (viewer/studio.html, tests/test_viewer_studio.cjs: loading bar, reset-camera fit). gh pr list --search "viewer in:title" / "studio in:title" finds them; search by file name or title instead. Issue #14 also carries two Studio claims with no open PR yet (VIEWER-STALE-MODEL-DISPOSE, VIEWER-DISPOSE-RESOURCES), so studio.html is owned too. viewer/serve.py is the only unclaimed file there, and I found nothing in it after reading it against its tests.

Untested edges I did find, none of which I can defend as a defect: failed chunks keep their live entry (documented: the attempt budget survives an unload), the HUD's failed count is cumulative, G builds one Box3Helper per chunk (12,340 on the documented whole-city build — heavy, but it is a debug overlay), and a camera hash edited in the address bar of an already-open page does not move the camera (same-document navigation; a pasted link loaded in a tab works). Whoever wants one of those should claim it with this evidence rather than rediscover it.

Written with an AI assistant.

<!-- gh-comment-id:7167120333 --> @fiestorra commented on GitHub (Nov 25, 2026): finding: VIEWER-HUNT — no unclaimed reproducible defect in the map viewer, and the recommended `path:` collision check misses the four open PRs that already own these files. No PR from me. What I probed (synthetic inputs only: no game files, no GPU): - Suites on `main` 71a769d7d: `node --test tests/test_viewer_streaming.cjs tests/test_viewer_studio.cjs` 69/69; `python -I tests/test_viewer_serve.py` 39 (1 skipped: SIGINT on Windows); `python -I tests/test_viewer_cdn_integrity.py` 10. - Streaming state machine: drove the real `stream()`/`loadChunk()` code through 80 randomised runs (2 world shapes × 40 seeds × 250 frames of random camera jumps, header/body/parse completions and failures, then a settle phase) and compared it with the documented rule (docs/world.md: band by cell distance, 32 m slack). Clean: no loaded object kept outside its keep range, no loading entry outside it, at most one visible chain tier per cell and it is an in-band one, orphan HD visible exactly in its band, no entry above three attempts, every in-band chunk loaded once the queue drains. - Chromium against a loopback `serve.py` (test terrain): page, terrain, HUD, F/T/G/R/P, and a `#cam=300,150,-200,...` link applied on a real load; the only console error is the expected `/favicon.ico` 404. - Pinning: recomputed SHA-384 of the three [email protected] files `index.html` pins and the three r128 files `studio.html` falls back to; all six match the `integrity` values in the pages. - `viewer/serve.py` read against its 531-line test file: Host/duplicate-Host/port guards, traversal, Windows device aliases, symlinks, `--port`, `--world`, port in use and Ctrl+C are covered. The only unexercised paths are the BrokenPipe catch in `handle()` and the stdout reconfiguration; I could not construct a failure for either. Coordination note (this cost me a round): `gh search prs --repo ubiquitarianism/leonida --state open 'path:viewer/'` returns `[]` (also `path:viewer`), but four open PRs touch these files — #651 and #918 (`viewer/index.html`, `tests/test_viewer_streaming.cjs`: chunk idle timeout, world.json read-error message), #1138 and #1490 (`viewer/studio.html`, `tests/test_viewer_studio.cjs`: loading bar, reset-camera fit). `gh pr list --search "viewer in:title"` / `"studio in:title"` finds them; search by file name or title instead. Issue #14 also carries two Studio claims with no open PR yet (`VIEWER-STALE-MODEL-DISPOSE`, `VIEWER-DISPOSE-RESOURCES`), so `studio.html` is owned too. `viewer/serve.py` is the only unclaimed file there, and I found nothing in it after reading it against its tests. Untested edges I did find, none of which I can defend as a defect: failed chunks keep their `live` entry (documented: the attempt budget survives an unload), the HUD's `failed` count is cumulative, `G` builds one `Box3Helper` per chunk (12,340 on the documented whole-city build — heavy, but it is a debug overlay), and a camera hash edited in the address bar of an already-open page does not move the camera (same-document navigation; a pasted link loaded in a tab works). Whoever wants one of those should claim it with this evidence rather than rediscover it. Written with an AI assistant.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-PRESENT-COMPOSE-MEM-AND-GUARDS -> #1912

<!-- gh-comment-id:7167191028 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-PRESENT-COMPOSE-MEM-AND-GUARDS -> #1912
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

done: WINT-DIFF-REF-VALIDATION -> #1913

<!-- gh-comment-id:7167196926 --> @ShotTechOp commented on GitHub (Nov 25, 2026): done: WINT-DIFF-REF-VALIDATION -> #1913
Author
Owner

@kawaii-shakal commented on GitHub (Nov 25, 2026):

claiming: RT-HEAVY-PIPELINE-CACHE. A pipeline cache for the builds the offline pipeline_cache.bin misses, written to disk while the game runs, so a crashed boot keeps its slow compiles. Today pipeline_cache.session.bin is written at teardown only, and a cache seeded from the corpus is over its 256 MiB write limit, so the pipeline library's compute programs (3 to 7 s each here) are compiled again on every boot. This is what DadaCap saw in the watchdog finding above (the checkpoint folder still empty at 200 s). Design: every build first asks the corpus cache with FAIL_ON_PIPELINE_COMPILE_REQUIRED, and a miss is built against pipeline_cache.heavy.bin's own cache, which a background thread rewrites after slow builds. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7167207402 --> @kawaii-shakal commented on GitHub (Nov 25, 2026): claiming: RT-HEAVY-PIPELINE-CACHE. A pipeline cache for the builds the offline `pipeline_cache.bin` misses, written to disk while the game runs, so a crashed boot keeps its slow compiles. Today `pipeline_cache.session.bin` is written at teardown only, and a cache seeded from the corpus is over its 256 MiB write limit, so the pipeline library's compute programs (3 to 7 s each here) are compiled again on every boot. This is what DadaCap saw in the watchdog finding above (the checkpoint folder still empty at 200 s). Design: every build first asks the corpus cache with `FAIL_ON_PIPELINE_COMPILE_REQUIRED`, and a miss is built against `pipeline_cache.heavy.bin`'s own cache, which a background thread rewrites after slow builds. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@kawaii-shakal commented on GitHub (Nov 25, 2026):

done: RT-HEAVY-PIPELINE-CACHE -> #1914. Builds the offline cache misses go to pipeline_cache.heavy.bin's own cache, which a background thread writes after slow builds (3 s settle, 20 s at most), so a crashed boot keeps them. On the RTX 5070 Ti (617.42), a cache-only create of the library compute programs the corpus lacks returns VK_PIPELINE_COMPILE_REQUIRED in under 1 ms, so they take that path. 6/6 related CTest cases pass; no real boot yet. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7167224671 --> @kawaii-shakal commented on GitHub (Nov 25, 2026): done: RT-HEAVY-PIPELINE-CACHE -> #1914. Builds the offline cache misses go to `pipeline_cache.heavy.bin`'s own cache, which a background thread writes after slow builds (3 s settle, 20 s at most), so a crashed boot keeps them. On the RTX 5070 Ti (617.42), a cache-only create of the library compute programs the corpus lacks returns `VK_PIPELINE_COMPILE_REQUIRED` in under 1 ms, so they take that path. 6/6 related CTest cases pass; no real boot yet. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@fiestorra commented on GitHub (Nov 25, 2026):

claiming: D3D-INDIRECT-STATE-REPLAY — the unclaimed finding: above (2026-11-25T12:04:43Z): a compound indirect draw does not replay VERTEX_BUFFER_VIEW/INDEX_BUFFER_VIEW from the argument buffer.

  • Where: the compound branch of ExecuteIndirect in runtime/shims/d3d12_com.cpp, which resets the written bindings and records no draw. runtime/src/vulkan_replay.h cannot carry per-record bindings either (one Draw snapshot per command), so the fix expands each record in the command list into the state calls and the draw it stands for.
  • What it needs: a Vulkan GPU for the pixel test. No game files.
  • Touches: runtime/shims/d3d12_com.cpp, runtime/test/d3d12_stateful_indirect_pixels.cpp, runtime/test/d3d12_draw_test.cpp, runtime/CMakeLists.txt, docs/d3d12_vulkan.md. It does not touch runtime/src/vulkan_replay.h.
  • Overlaps with #1737 (D3D-INDIRECT-STATE-REFUSE): that pull request refuses multi-argument signatures at creation, so it removes exactly what this one replays. Whichever lands second takes the other's part for the vertex/index-buffer shapes.

Written with an AI assistant.

<!-- gh-comment-id:7167234491 --> @fiestorra commented on GitHub (Nov 25, 2026): claiming: `D3D-INDIRECT-STATE-REPLAY` — the unclaimed `finding:` above (2026-11-25T12:04:43Z): a compound indirect draw does not replay `VERTEX_BUFFER_VIEW`/`INDEX_BUFFER_VIEW` from the argument buffer. - Where: the compound branch of `ExecuteIndirect` in `runtime/shims/d3d12_com.cpp`, which resets the written bindings and records no draw. `runtime/src/vulkan_replay.h` cannot carry per-record bindings either (one `Draw` snapshot per command), so the fix expands each record in the command list into the state calls and the draw it stands for. - What it needs: a Vulkan GPU for the pixel test. No game files. - Touches: `runtime/shims/d3d12_com.cpp`, `runtime/test/d3d12_stateful_indirect_pixels.cpp`, `runtime/test/d3d12_draw_test.cpp`, `runtime/CMakeLists.txt`, `docs/d3d12_vulkan.md`. It does not touch `runtime/src/vulkan_replay.h`. - Overlaps with #1737 (`D3D-INDIRECT-STATE-REFUSE`): that pull request refuses multi-argument signatures at creation, so it removes exactly what this one replays. Whichever lands second takes the other's part for the vertex/index-buffer shapes. Written with an AI assistant.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

claiming: DOC-README-MERGE-DEDUP -- remove the duplicate modding.md row and fix the three merge-spliced summary rows (gameinput.md, pipeline_check.md, first_light.md) in docs/README.md. Docs-only, verified with tests/test_docs_*.py. AI-assisted.

<!-- gh-comment-id:7167241641 --> @ShotTechOp commented on GitHub (Nov 25, 2026): claiming: DOC-README-MERGE-DEDUP -- remove the duplicate modding.md row and fix the three merge-spliced summary rows (gameinput.md, pipeline_check.md, first_light.md) in docs/README.md. Docs-only, verified with tests/test_docs_*.py. AI-assisted.
Author
Owner

@AkiraKill333 commented on GitHub (Nov 25, 2026):

claiming: GPU-TEST-RTX3050-WIN11 GPU test results for NVIDIA GeForce RTX 3050 6GB (driver 621.14, Windows 11, LEONIDA_W64_EMULATE=1)

<!-- gh-comment-id:7167248007 --> @AkiraKill333 commented on GitHub (Nov 25, 2026): claiming: GPU-TEST-RTX3050-WIN11 GPU test results for NVIDIA GeForce RTX 3050 6GB (driver 621.14, Windows 11, LEONIDA_W64_EMULATE=1)
Author
Owner

@mrgenty commented on GitHub (Nov 25, 2026):

claiming: RT-BARY-FALLBACK-PER-VERTEX - the computed-I/J half of #1285 that #1497 leaves out (finding).

runtime/src/shader_library.h reads only bary_fallback_input.location, and build_bary_fallback_gs in runtime/src/spirv_bary_fallback.h refuses a PS input that is the per-vertex array #1426 emits (PS pass-through Input at Location 0 is not vec4<f32>), so a ps_ij_computed-class pixel shader built with --bary-fallback never gets its geometry stage.

Plan: parse the per_vertex map #1426 writes next to bary_fallback_input, and have the synthesized GS write each mapped attribute's three triangle-vertex values to its consecutive locations, matching the offline GS of tools/bary_fallback_gs.py. Tests: a pure-CPU spirv_bary_fallback case (plus spirv-val) and a d3d12_bary_fallback draw of the computed-I/J fixture compared against the expected RGBA.

Depends on: #1497, #1426. No game files. Testing on NVIDIA RTX 3060, Windows 11. AI-assisted.

<!-- gh-comment-id:7167254678 --> @mrgenty commented on GitHub (Nov 25, 2026): claiming: RT-BARY-FALLBACK-PER-VERTEX - the computed-I/J half of #1285 that #1497 leaves out ([finding](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7151723423)). `runtime/src/shader_library.h` reads only `bary_fallback_input.location`, and `build_bary_fallback_gs` in `runtime/src/spirv_bary_fallback.h` refuses a PS input that is the per-vertex array #1426 emits (`PS pass-through Input at Location 0 is not vec4<f32>`), so a `ps_ij_computed`-class pixel shader built with `--bary-fallback` never gets its geometry stage. Plan: parse the `per_vertex` map #1426 writes next to `bary_fallback_input`, and have the synthesized GS write each mapped attribute's three triangle-vertex values to its consecutive locations, matching the offline GS of `tools/bary_fallback_gs.py`. Tests: a pure-CPU `spirv_bary_fallback` case (plus `spirv-val`) and a `d3d12_bary_fallback` draw of the computed-I/J fixture compared against the expected RGBA. Depends on: #1497, #1426. No game files. Testing on NVIDIA RTX 3060, Windows 11. AI-assisted.
Author
Owner

@lixonik commented on GitHub (Nov 25, 2026):

claiming: RT-STREAM-POOL-KEEP-VA-ALIASES -- bound speculative stream-pool copies to the common free span of the CPU and GPU views, and preserve live VA mappings when installing the pair. resolve_pool_memory checks the start of the candidate extent today, so a live mapping later in that extent can be erased by add_twin. Related to the missing stream-pool backing in https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7165609001; the effect on a full retail boot is unverified. Synthetic range/alias tests, no game files. AI-assisted.

<!-- gh-comment-id:7167255312 --> @lixonik commented on GitHub (Nov 25, 2026): claiming: RT-STREAM-POOL-KEEP-VA-ALIASES -- bound speculative stream-pool copies to the common free span of the CPU and GPU views, and preserve live VA mappings when installing the pair. resolve_pool_memory checks the start of the candidate extent today, so a live mapping later in that extent can be erased by add_twin. Related to the missing stream-pool backing in https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7165609001; the effect on a full retail boot is unverified. Synthetic range/alias tests, no game files. AI-assisted.
Author
Owner

@Zalthor commented on GitHub (Nov 25, 2026):

Verification batch 11: 16 open pull requests that change Python code but add no tests, plus 3 opened since batch 10 that do have tests (#1885, #1890, #1899). All have queued or no CI, and nobody had verified them in this issue. Each diff (merge-base..head) was applied to its own clean worktree at main b0f3d3998. Environment: Windows 10, CPU only, no game files, TEMP on C:. The python -I test files ran on CPython 3.12, as in CI's Windows job.

Without tests, the checks I could run are:

  • the diff applies;
  • compileall;
  • check_no_game_data.py;
  • the four repo-wide checks;
  • for make_game.py changes, all 50 test files that mention make_game.

AI-assisted (Claude Code). Same method as batches 1 to 10.

Summary: 2 PRs break make_game.py (#1701, #1708). 1 no longer applies (#1504). The other 16 apply and pass every check I could run.

Do not merge as they stand: #1701 and #1708 (same author)

  • #1701 adds import pathlib import Path at make_game.py line 54. That's a SyntaxError, so make_game.py doesn't compile, and 41 of the 50 make_game-related test files fail with it applied. It also fails test_text_write_line_endings. The intended line is from pathlib import Path.
  • #1708 rewrites versions() to use Path(VERSIONS), but make_game.py never imports Path. On 3.12, tests/test_make_game_container.py passes on main but fails with #1708 (2 errors, NameError: name 'Path' is not defined). Every call to versions() would hit the same error.

#1708 looks like it was meant to depend on #1701, but #1701 as written can't supply the import. Fixing #1701's line, or adding from pathlib import Path to #1708, would resolve both.

Python changes without tests: apply, compile, no game data, repo-wide checks unchanged

#12, #857, #1086, #1302, #1310, #1325, #1333, #1348, #1350, #1395, #1498, #1792.

  • #1787 (make_game return annotations): the 50 make_game-related test files show the same results with and without it. That run was on 3.10, where make_game.py refuses to start, so it settles nothing either way.

None of these have tests, so this confirms only that they're safe to apply, not that they do what they say.

With tests

  • #1885 (make_game subgroup flags; same make_game-related results as main): its 4 test files pass with it, and 12 new tests fail on main.
  • #1899 (check_no_game_data): 5 new tests fail on main and pass with the change.
  • #1890 (vk_pipeline_check barycentric fallback, mostly C++): its Python test file passes with and without it, and its 2 new test functions skip here (they need the built runtime). The C++ side needs a runtime build, which I didn't do.

No longer applies to main

#1504: conflicts in .gitignore.

Not covered: no Linux or macOS run, no runtime (C++) build, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.

<!-- gh-comment-id:7167268539 --> @Zalthor commented on GitHub (Nov 25, 2026): Verification batch 11: 16 open pull requests that change Python code but add no tests, plus 3 opened since batch 10 that do have tests (#1885, #1890, #1899). All have queued or no CI, and nobody had verified them in this issue. Each diff (merge-base..head) was applied to its own clean worktree at `main` `b0f3d3998`. Environment: Windows 10, CPU only, no game files, `TEMP` on `C:`. The `python -I` test files ran on CPython 3.12, as in CI's Windows job. Without tests, the checks I could run are: - the diff applies; - `compileall`; - `check_no_game_data.py`; - the four repo-wide checks; - for `make_game.py` changes, all 50 test files that mention `make_game`. AI-assisted (Claude Code). Same method as batches [1](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157070042) to [10](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7166746289). **Summary: 2 PRs break `make_game.py` (#1701, #1708). 1 no longer applies (#1504). The other 16 apply and pass every check I could run.** ### Do not merge as they stand: #1701 and #1708 (same author) - **#1701** adds `import pathlib import Path` at `make_game.py` line 54. That's a `SyntaxError`, so `make_game.py` doesn't compile, and 41 of the 50 `make_game`-related test files fail with it applied. It also fails `test_text_write_line_endings`. The intended line is `from pathlib import Path`. - **#1708** rewrites `versions()` to use `Path(VERSIONS)`, but `make_game.py` never imports `Path`. On 3.12, `tests/test_make_game_container.py` passes on `main` but fails with #1708 (2 errors, `NameError: name 'Path' is not defined`). Every call to `versions()` would hit the same error. #1708 looks like it was meant to depend on #1701, but #1701 as written can't supply the import. Fixing #1701's line, or adding `from pathlib import Path` to #1708, would resolve both. ### Python changes without tests: apply, compile, no game data, repo-wide checks unchanged #12, #857, #1086, #1302, #1310, #1325, #1333, #1348, #1350, #1395, #1498, #1792. - **#1787** (`make_game` return annotations): the 50 `make_game`-related test files show the same results with and without it. That run was on 3.10, where `make_game.py` refuses to start, so it settles nothing either way. None of these have tests, so this confirms only that they're safe to apply, not that they do what they say. ### With tests - **#1885** (`make_game` subgroup flags; same `make_game`-related results as `main`): its 4 test files pass with it, and 12 new tests fail on `main`. - **#1899** (`check_no_game_data`): 5 new tests fail on `main` and pass with the change. - **#1890** (`vk_pipeline_check` barycentric fallback, mostly C++): its Python test file passes with and without it, and its 2 new test functions skip here (they need the built runtime). The C++ side needs a runtime build, which I didn't do. ### No longer applies to `main` **#1504:** conflicts in `.gitignore`. Not covered: no Linux or macOS run, no runtime (C++) build, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.
Author
Owner

@kawaii-shakal commented on GitHub (Nov 25, 2026):

claiming: RT-FAULT-ADDRESS-OWNER. Make the device-fault report name what the process and the driver had at each fault address: VirtualQuery of the number on Windows, and with LEONIDA_ADDRESS_BINDINGS=1 a VK_EXT_device_address_binding_report record of every bound and unbound GPU range (containing object, nearest below and above, recently unbound). I used it locally on the world-start WRITE_INVALID (boot20 here: no bound object had the address). AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7167314476 --> @kawaii-shakal commented on GitHub (Nov 25, 2026): claiming: RT-FAULT-ADDRESS-OWNER. Make the device-fault report name what the process and the driver had at each fault address: VirtualQuery of the number on Windows, and with `LEONIDA_ADDRESS_BINDINGS=1` a `VK_EXT_device_address_binding_report` record of every bound and unbound GPU range (containing object, nearest below and above, recently unbound). I used it locally on the world-start WRITE_INVALID (boot20 here: no bound object had the address). AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@XeNS1 commented on GitHub (Nov 25, 2026):

releasing: SEMANTIC-RUNNER-INTERRUPT

We are shelving further Leonida development and switching project focus. The original claim is https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7166603265. No source implementation, branch or PR was started for this task; it is available for another contributor.

The synthetic reproduction remains: five unittest modules each touch their own marker and sleep eight seconds; start run_semantic_tests.py with -j 2 in a new POSIX process group, wait for two markers, then send SIGINT to that group. On b0f3d3998 two more modules start after Ctrl+C and the runner remains alive after two seconds. Stop/reap the disposable process group afterward. CPU only, no game files. AI-assisted: OpenAI Codex.

<!-- gh-comment-id:7167321055 --> @XeNS1 commented on GitHub (Nov 25, 2026): releasing: SEMANTIC-RUNNER-INTERRUPT We are shelving further Leonida development and switching project focus. The original claim is https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7166603265. No source implementation, branch or PR was started for this task; it is available for another contributor. The synthetic reproduction remains: five unittest modules each touch their own marker and sleep eight seconds; start run_semantic_tests.py with -j 2 in a new POSIX process group, wait for two markers, then send SIGINT to that group. On b0f3d3998 two more modules start after Ctrl+C and the runner remains alive after two seconds. Stop/reap the disposable process group afterward. CPU only, no game files. AI-assisted: OpenAI Codex.
Author
Owner

@lixonik commented on GitHub (Nov 25, 2026):

done: RT-STREAM-POOL-KEEP-VA-ALIASES -> #1920. The synthetic resolver A/B reproduced eviction of a live neighbor on main and preserved it after the fix, including a mapping that arrived during allocation. AI-assisted.

<!-- gh-comment-id:7167333293 --> @lixonik commented on GitHub (Nov 25, 2026): done: RT-STREAM-POOL-KEEP-VA-ALIASES -> #1920. The synthetic resolver A/B reproduced eviction of a live neighbor on main and preserved it after the fix, including a mapping that arrived during allocation. AI-assisted.
Author
Owner

@Zalthor commented on GitHub (Nov 25, 2026):

Verification batch 12: 5 open pull requests opened in the last hour that have tests and queued or no CI, plus #690, which batch 2 reported as stale and which has since been rebased. Each diff (merge-base..head) was applied to its own clean worktree at main b0f3d3998. Environment: Windows 10, CPU only, no game files, TEMP on C:. The python -I test files ran on CPython 3.12, as in CI's Windows job. AI-assisted (Claude Code). Same method as batches 1 to 11.

All 6 apply cleanly and pass. Each one's new tests fail on unpatched main and pass with the change. None adds a failure to the repo-wide checks; test_runner_calls_all_tests and test_tool_stdout_encoding are already red on main.

PR Test file New tests failing on main
#690 (xdxr paired BLAS leaf) test_xdxr_bvh.py 2
#1906 (wave64_emulate_opt s_bitset) test_wave64_emulate_opt.py 1
#1907 (wave64_halves image atomics) test_wave64_halves.py 9
#1908 (rdna2spirv atomic VGPR liveness) test_rbw_atomic_data.py 20
#1911 (salu_diff validation) test_salu_diff.py 26
#1913 (wint_diff validation) test_wint_diff.py 33
  • #1908 touches tools/rdna2spirv.py. With it applied, the full semantic suite has 0 failed files (490 files, 6,293 tests).
  • #690 was stale in batch 2. It now applies, and it passes as listed above.

Of the PRs I've reported as stale since batch 2, #690 is the only one rebased so that it applies now. Besides it, #1163 and #1528 were rebased and re-tested in batches 7 and 10.

Not covered: no Linux or macOS run, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.

<!-- gh-comment-id:7167345184 --> @Zalthor commented on GitHub (Nov 25, 2026): Verification batch 12: 5 open pull requests opened in the last hour that have tests and queued or no CI, plus #690, which [batch 2](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7159493566) reported as stale and which has since been rebased. Each diff (merge-base..head) was applied to its own clean worktree at `main` `b0f3d3998`. Environment: Windows 10, CPU only, no game files, `TEMP` on `C:`. The `python -I` test files ran on CPython 3.12, as in CI's Windows job. AI-assisted (Claude Code). Same method as batches [1](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157070042) to [11](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7167268539). **All 6 apply cleanly and pass.** Each one's new tests fail on unpatched `main` and pass with the change. None adds a failure to the repo-wide checks; `test_runner_calls_all_tests` and `test_tool_stdout_encoding` are already red on `main`. | PR | Test file | New tests failing on `main` | |---|---|---| | #690 (xdxr paired BLAS leaf) | `test_xdxr_bvh.py` | 2 | | #1906 (wave64_emulate_opt `s_bitset`) | `test_wave64_emulate_opt.py` | 1 | | #1907 (wave64_halves image atomics) | `test_wave64_halves.py` | 9 | | #1908 (rdna2spirv atomic VGPR liveness) | `test_rbw_atomic_data.py` | 20 | | #1911 (salu_diff validation) | `test_salu_diff.py` | 26 | | #1913 (wint_diff validation) | `test_wint_diff.py` | 33 | - **#1908** touches `tools/rdna2spirv.py`. With it applied, the full semantic suite has 0 failed files (490 files, 6,293 tests). - **#690** was stale in batch 2. It now applies, and it passes as listed above. Of the PRs I've reported as stale since batch 2, #690 is the only one rebased so that it applies now. Besides it, #1163 and #1528 were rebased and re-tested in batches 7 and 10. Not covered: no Linux or macOS run, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.
Author
Owner

@t91a60 commented on GitHub (Nov 25, 2026):

done: RT-XG-XS-COPY-ROW-DISPATCH -> #1882

Updated copy_elements to dispatch fixed element widths (1/2/4/8/16) once per row using templated copy_tiled_row<Width> (Width=0 falls back to the original runtime-sized path).

Further optimized the hot loop by:

  1. Advancing the linear pointer incrementally (src_ptr += bytes / dst_ptr += bytes) instead of recalculating offsets per element.
  2. Using std::memcpy(dst_ptr, src_ptr, bytes) in both directions. MSVC /O2 inlines this to optimal instructions when bytes is a compile-time constant, while maintaining strict correctness for unaligned byte buffers and padded row pitches.

These changes eliminate all per-element branching and multiplications, making it significantly faster than both the original and the competing implementation (0.376 ms for RGBA8 into tiled, beating #1880).

  • Byte-exact with the reference (verified against the 306-check corpus, including misaligned and padded cases).
  • Includes full test coverage via the dedicated texel_copy_test.cpp.
  • No game data, fully synthetic.

Acknowledging the earlier claim on #1880. The row-level approach with pointer advancement and inlined memcpy is clearly superior. Happy to rebase, close this PR, or merge whichever maintainers prefer. AI-assisted.

<!-- gh-comment-id:7167363059 --> @t91a60 commented on GitHub (Nov 25, 2026): done: RT-XG-XS-COPY-ROW-DISPATCH -> #1882 Updated `copy_elements` to dispatch fixed element widths (1/2/4/8/16) **once per row** using templated `copy_tiled_row<Width>` (Width=0 falls back to the original runtime-sized path). Further optimized the hot loop by: 1. Advancing the linear pointer incrementally (`src_ptr += bytes` / `dst_ptr += bytes`) instead of recalculating offsets per element. 2. Using `std::memcpy(dst_ptr, src_ptr, bytes)` in both directions. MSVC /O2 inlines this to optimal instructions when `bytes` is a compile-time constant, while maintaining strict correctness for unaligned byte buffers and padded row pitches. These changes eliminate all per-element branching and multiplications, making it significantly faster than both the original and the competing implementation (0.376 ms for RGBA8 into tiled, beating #1880). - Byte-exact with the reference (verified against the 306-check corpus, including misaligned and padded cases). - Includes full test coverage via the dedicated `texel_copy_test.cpp`. - No game data, fully synthetic. Acknowledging the earlier claim on #1880. The row-level approach with pointer advancement and inlined memcpy is clearly superior. Happy to rebase, close this PR, or merge whichever maintainers prefer. AI-assisted.
Author
Owner

@kawaii-shakal commented on GitHub (Nov 25, 2026):

claiming: RT-TITLE-HUD. LEONIDA_TITLE_HUD=1: frame rate, frame time, process and GPU memory, and pipeline compile time per interval in the title bar of the window the title presents in, so a tester sees whether a slow boot is frame time, memory or inline compiles. Off by default. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7167379777 --> @kawaii-shakal commented on GitHub (Nov 25, 2026): claiming: RT-TITLE-HUD. `LEONIDA_TITLE_HUD=1`: frame rate, frame time, process and GPU memory, and pipeline compile time per interval in the title bar of the window the title presents in, so a tester sees whether a slow boot is frame time, memory or inline compiles. Off by default. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@kawaii-shakal commented on GitHub (Nov 25, 2026):

done: RT-FAULT-ADDRESS-OWNER -> #1918. Each device-fault address now also gets VirtualQuery of the number (Windows), and with LEONIDA_ADDRESS_BINDINGS=1 the VK_EXT_device_address_binding_report record of the containing, neighbouring and recently unbound GPU objects. Pure record and report under address_binding_test; checked in a retail boot on an RTX 5070 Ti (617.42), ~50,000 binds recorded. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7167394409 --> @kawaii-shakal commented on GitHub (Nov 25, 2026): done: RT-FAULT-ADDRESS-OWNER -> #1918. Each device-fault address now also gets VirtualQuery of the number (Windows), and with `LEONIDA_ADDRESS_BINDINGS=1` the `VK_EXT_device_address_binding_report` record of the containing, neighbouring and recently unbound GPU objects. Pure record and report under `address_binding_test`; checked in a retail boot on an RTX 5070 Ti (617.42), ~50,000 binds recorded. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@DadaCap commented on GitHub (Nov 25, 2026):

finding: a world picture. With indirect mesh dispatch, the native graphics catalog and fspx_gfx, frame 1417 of a run shows the scene: ground line, trees, a character from behind, street lamps and a lit skyline under a clouded sky. Seen by the machine's owner on screen and screenshotted (not posted). It is not right yet: surfaces are unlit silhouettes, trees have no leaves, silhouette edges are blocky, and other frames were black.

What made the difference (RTX 5080, NVIDIA 621.24, Windows 11; main d45848ba4-ish of 2026-11-25 afternoon plus the list; host image copy off, LEONIDA_DEVICE_TYPE=6, LEONIDA_TITLE_WATCHDOG=0):

run m50 (black) run m56 (picture)
indirect mesh dispatch not recorded #429 merged onto #1723's structure (local merge, described on #429)
fspx_gfx none 18,735 programs (#1592 plus a second decoder pass for 242 of its refusals)
native_hashes.txt missing 25,321 digests
indirect draws recorded / skipped 4,096 / 53,405 9,172 / 516 (16,384 / 1,096 later; the remaining skip reason logged is topology)
title-window cap 64 MiB 4,096 MiB (arena 4,095)
first world frames 1689 to 1699 at about 1/s 3 to 14 s each when nothing builds; 168 + 297 graphics pipelines in the first two frames

Correction to my finding 7165609001: my shader folder had no native_hashes.txt. That was my setup (I re-translated with a script of mine, not make_game.py), not a fault of main, and it is one of the three things that changed here, so I cannot say how much of the black picture it explains. If your log says slot 57 has no native_hashes.txt, make it: python -I tools/native_pso_hashes.py <shaders>/dxbc <shaders>/spirv (seconds, changes no shader). A run with fspx_gfx but without the catalog showed only the package splash here, with the title's frames black, from the intro on.

Costs seen next: with the 4 GiB window cap the shadow refresh copies 2.3 GB before every submission (124 to 170 ms, 4,242 title windows, 1.1 GB of it aliased), and a title texture pass took 14.5 s on average with a worst submission of 43.5 s while 0.8 MiB were filled and no pipeline was building: a wait, not a copy. I'm on both.

Clamp report of the run: 0 records clamped, 0 zeroed, 0 over budget. No device loss in 1,150 s. Counts and program names only. AI-assisted (Claude Code).

<!-- gh-comment-id:7167396852 --> @DadaCap commented on GitHub (Nov 25, 2026): finding: a world picture. With indirect mesh dispatch, the native graphics catalog and `fspx_gfx`, frame 1417 of a run shows the scene: ground line, trees, a character from behind, street lamps and a lit skyline under a clouded sky. Seen by the machine's owner on screen and screenshotted (not posted). It is not right yet: surfaces are unlit silhouettes, trees have no leaves, silhouette edges are blocky, and other frames were black. **What made the difference** (RTX 5080, NVIDIA 621.24, Windows 11; `main` d45848ba4-ish of 2026-11-25 afternoon plus the list; host image copy off, `LEONIDA_DEVICE_TYPE=6`, `LEONIDA_TITLE_WATCHDOG=0`): | | run m50 (black) | run m56 (picture) | |---|---|---| | indirect mesh dispatch | not recorded | **#429 merged onto #1723's structure** (local merge, described on #429) | | `fspx_gfx` | none | **18,735 programs** (#1592 plus a second decoder pass for 242 of its refusals) | | `native_hashes.txt` | **missing** | 25,321 digests | | indirect draws recorded / skipped | 4,096 / 53,405 | **9,172 / 516** (16,384 / 1,096 later; the remaining skip reason logged is `topology`) | | title-window cap | 64 MiB | 4,096 MiB (arena 4,095) | | first world frames | 1689 to 1699 at about 1/s | 3 to 14 s each when nothing builds; 168 + 297 graphics pipelines in the first two frames | **Correction to my finding 7165609001:** my shader folder had no `native_hashes.txt`. That was my setup (I re-translated with a script of mine, not `make_game.py`), not a fault of `main`, and it is one of the three things that changed here, so I cannot say how much of the black picture it explains. If your log says `slot 57 has no native_hashes.txt`, make it: `python -I tools/native_pso_hashes.py <shaders>/dxbc <shaders>/spirv` (seconds, changes no shader). A run with `fspx_gfx` but without the catalog showed only the package splash here, with the title's frames black, from the intro on. **Costs seen next:** with the 4 GiB window cap the shadow refresh copies 2.3 GB before every submission (124 to 170 ms, 4,242 title windows, 1.1 GB of it aliased), and a title texture pass took 14.5 s on average with a worst submission of 43.5 s while 0.8 MiB were filled and no pipeline was building: a wait, not a copy. I'm on both. Clamp report of the run: 0 records clamped, 0 zeroed, 0 over budget. No device loss in 1,150 s. Counts and program names only. AI-assisted (Claude Code).
Author
Owner

@DadaCap commented on GitHub (Nov 25, 2026):

@kawaii-shakal about RT-HEAVY-PIPELINE-CACHE: #1886 (mine, open) raises the limit you describe and #1756 (IlyassRS3) makes the checkpoints happen, so together they keep the slow compiles of a crashed boot on an RTX 5080 (353 of 362 slow builds came back from the file in the next run). Your design also covers the seeded case, which Snooozs raised on #1886 (a 2.1 GB seed makes the whole union be written at each checkpoint), and that #1886 does not solve. If you build yours, #1886 could shrink to only the checkpoint cap; tell me on the pull request which you prefer and I will follow. AI-assisted (Claude Code).

<!-- gh-comment-id:7167400380 --> @DadaCap commented on GitHub (Nov 25, 2026): @kawaii-shakal about RT-HEAVY-PIPELINE-CACHE: #1886 (mine, open) raises the limit you describe and #1756 (IlyassRS3) makes the checkpoints happen, so together they keep the slow compiles of a crashed boot on an RTX 5080 (353 of 362 slow builds came back from the file in the next run). Your design also covers the seeded case, which Snooozs raised on #1886 (a 2.1 GB seed makes the whole union be written at each checkpoint), and that #1886 does not solve. If you build yours, #1886 could shrink to only the checkpoint cap; tell me on the pull request which you prefer and I will follow. AI-assisted (Claude Code).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-TITLE-IMAGE-POOL-LOCK-AND-GUARDS -- harden and remove lock contention in leonida::TitleImagePool (runtime/src/vulkan_title_image_pool.h, runtime/test/vulkan_title_image_pool_test.cpp): release TitleImagePool::mutex_ across allocate() (vkAllocateMemory) and vkBindImageMemory, track free slots atomically on TitleImagePage so full pages are skipped without locking each page mutex, publish newly allocated pages only after vkBindImageMemory succeeds, and guard null handles/procs, non-power-of-two alignment, and out-of-range/incompatible memoryTypeIndex (preventing 1u << page->type shift UB and VRAM leaks on bad allocations). No game files, no CMakeLists changes; CPU-only unit + TSan/ASan+UBSan verification.

<!-- gh-comment-id:7167409068 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-TITLE-IMAGE-POOL-LOCK-AND-GUARDS -- harden and remove lock contention in `leonida::TitleImagePool` (`runtime/src/vulkan_title_image_pool.h`, `runtime/test/vulkan_title_image_pool_test.cpp`): release `TitleImagePool::mutex_` across `allocate()` (`vkAllocateMemory`) and `vkBindImageMemory`, track free slots atomically on `TitleImagePage` so full pages are skipped without locking each page mutex, publish newly allocated pages only after `vkBindImageMemory` succeeds, and guard null handles/procs, non-power-of-two alignment, and out-of-range/incompatible `memoryTypeIndex` (preventing `1u << page->type` shift UB and VRAM leaks on bad allocations). No game files, no CMakeLists changes; CPU-only unit + TSan/ASan+UBSan verification.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-TITLE-IMAGE-POOL-LOCK-AND-GUARDS -> #1926

<!-- gh-comment-id:7167423770 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-TITLE-IMAGE-POOL-LOCK-AND-GUARDS -> #1926
Author
Owner

@fiestorra commented on GitHub (Nov 25, 2026):

done: LIBRARY-TRANSLATION-GAP -> #1923

The 840 library programs that LLVM 21.1.8 could not decode are a toolchain-version problem, not a translator gap:
its gfx1013 listings of 840 of the 2,684 pipeline-library compute programs carry 79,490 undecodable words (and
8,310 exp invalid_target_N lines), and the translator refuses every one of them as fall-through into undecodable words. Re-disassembled with 23.1.5 those 840 have no rejected word; 839 translate and pass spirv-val, and the
840th wants s_sethalt, which the translator does not implement under either version. The 1,844 that already
translated were re-checked with 23.1.5 as well: 1,674 listings change and all 1,674 still translate, and the other
170 are byte-identical, so the stage goes from 1,844/2,684 to 2,683/2,684.

#1923 changes scripts/build_llvm_mc.ps1 to build 23.1.5 by default and updates the docs that name the minimum
version. Measured on 71a769d7d, -mcpu=gfx1013, --stages cs, 1.0.2.1; every module was checked with spirv-val
and none was run on a GPU, the helper itself was not rebuilt in this run (the 23.1.5 binary is a native build from
the llvmorg-23.1.5 tag), and the 26,503-shader corpus was not re-measured here.

Written with an AI assistant.

<!-- gh-comment-id:7167424881 --> @fiestorra commented on GitHub (Nov 25, 2026): done: LIBRARY-TRANSLATION-GAP -> #1923 The 840 library programs that LLVM 21.1.8 could not decode are a toolchain-version problem, not a translator gap: its `gfx1013` listings of 840 of the 2,684 pipeline-library compute programs carry 79,490 undecodable words (and 8,310 `exp invalid_target_N` lines), and the translator refuses every one of them as `fall-through into undecodable words`. Re-disassembled with 23.1.5 those 840 have no rejected word; 839 translate and pass `spirv-val`, and the 840th wants `s_sethalt`, which the translator does not implement under either version. The 1,844 that already translated were re-checked with 23.1.5 as well: 1,674 listings change and all 1,674 still translate, and the other 170 are byte-identical, so the stage goes from 1,844/2,684 to 2,683/2,684. #1923 changes `scripts/build_llvm_mc.ps1` to build 23.1.5 by default and updates the docs that name the minimum version. Measured on `71a769d7d`, `-mcpu=gfx1013`, `--stages cs`, 1.0.2.1; every module was checked with `spirv-val` and none was run on a GPU, the helper itself was not rebuilt in this run (the 23.1.5 binary is a native build from the `llvmorg-23.1.5` tag), and the 26,503-shader corpus was not re-measured here. Written with an AI assistant.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-CMDLIST-DRAW-MOVE-AND-INDIRECT-GUARDS -- fix two recording bugs in leonida::CommandList (runtime/src/command_list.h, runtime/test/command_list_test.cpp): (1) CommandList::draw(Draw&&) (called by DispatchMesh in d3d12_com.cpp:572) omits the (draw.mesh && !draw.first) check present in CommandList::draw(const Draw&), causing DispatchMesh(x, y, 0) to be recorded and replayed directly into vkCmdDrawMeshTasksEXT(cb, x, y, 0); (2) CommandList::draw_indirect() lacks the IndirectDrawArgs alignment and buffer checks enforced by CommandList::execute_indirect() (null argument_buffer, zero/misaligned stride, misaligned argument_offset, nonzero count_offset without count_buffer, misaligned count_offset). Zero overlap with #1107 (query recording) and no CMakeLists edits; CPU-only unit + ASan/UBSan/TSan verification.

<!-- gh-comment-id:7167438871 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-CMDLIST-DRAW-MOVE-AND-INDIRECT-GUARDS -- fix two recording bugs in `leonida::CommandList` (`runtime/src/command_list.h`, `runtime/test/command_list_test.cpp`): (1) `CommandList::draw(Draw&&)` (called by `DispatchMesh` in `d3d12_com.cpp:572`) omits the `(draw.mesh && !draw.first)` check present in `CommandList::draw(const Draw&)`, causing `DispatchMesh(x, y, 0)` to be recorded and replayed directly into `vkCmdDrawMeshTasksEXT(cb, x, y, 0)`; (2) `CommandList::draw_indirect()` lacks the `IndirectDrawArgs` alignment and buffer checks enforced by `CommandList::execute_indirect()` (null `argument_buffer`, zero/misaligned `stride`, misaligned `argument_offset`, nonzero `count_offset` without `count_buffer`, misaligned `count_offset`). Zero overlap with #1107 (query recording) and no CMakeLists edits; CPU-only unit + ASan/UBSan/TSan verification.
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

claiming: SEMANTIC-RUNNER-INTERRUPT -- cancel queued test modules and stop active subprocesses on SIGINT/KeyboardInterrupt

<!-- gh-comment-id:7167491486 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): claiming: SEMANTIC-RUNNER-INTERRUPT -- cancel queued test modules and stop active subprocesses on SIGINT/KeyboardInterrupt
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-CMDLIST-DRAW-MOVE-AND-INDIRECT-GUARDS -> #1929 (kept CommandList::draw_indirect unchanged since d3d12_state_map_test intentionally tests replay invalid_indirect_arguments via draw_indirect)

<!-- gh-comment-id:7167499113 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-CMDLIST-DRAW-MOVE-AND-INDIRECT-GUARDS -> #1929 (kept CommandList::draw_indirect unchanged since d3d12_state_map_test intentionally tests replay invalid_indirect_arguments via draw_indirect)
Author
Owner

@fiestorra commented on GitHub (Nov 25, 2026):

finding: Linux battery on main 71a769d7d — the standard-library loop fails only the three repo-wide checks that are already claimed, and the translator suite is green once SPIRV-Tools is 2026.1 or newer

Measured in WSL2 Ubuntu 24.04.4 (Linux 6.18.58.1, Python 3.12.3, 16 cores, no GPU, no Vulkan headers or loader, no llvm-mc, dotnet or cargo) on a checkout of main 71a769d7d, running the commands .github/workflows/ci.yml uses. Logs are kept locally.

Step (CI job it mirrors) Result
python3 -m compileall -q make_game.py tools tests (check) exit 0
python3 -I make_game.py --help (check) exit 0
standard-library loop, CI's PYTEST_FILE_MARKERS and python3 -I (check, stdlib-tests-linux), bare box 537 files: 500 run, 37 skipped by the markers, 3 failed
the same loop with Ubuntu 24.04's spirv-tools 2025.1 and numpy 2.5.5 on PATH (stdlib-tests-linux) the same 500 / 37 / 3
python3 -I scripts/run_semantic_tests.py tests/semantic -j 6 with LEONIDA_REQUIRE_SPIRV_TOOLS=1 and spirv-tools 2025.1 (semantic-tests) 489 files, 6 288 tests, 3 files failed, 214 s
the same suite with spirv-tools 2026.1 489 files, 6 288 tests, 0 files failed, 281 s
cmake -S runtime -B … && cmake --build … && ctest (runtime, CPU half) 31 tests: 30 passed, 1 skipped (shader_library_corpus), 0 failed
node --test tests/test_*.cjs, Node 24.11.0 (viewer-tests) 69 passed, 0 failed
python -m pytest on the pytest-mode files of translator-tests (pytest 9.2.0, numpy 2.5.5, Pillow 13.0.0; no llvm-mc) 1 168 passed, 762 skipped, 129 subtests passed, 0 failed, 3 min — identical with 2025.1 and 2026.1

The three standard-library failures are the claimed ones, on both platforms. Nothing new here.

  1. tests/test_runner_calls_all_tests.py: tests/test_feature_scan.py: test_out_named_like_the_optional_spirv_index() is not called by its __main__ runner — #1561.
  2. tests/test_tool_stdout_encoding.py: three __main__ blocks lack errors="replace" on stdout — tools/compute_heap_layout_census.py (#1561), tools/game_run_summary.py (#1837), tools/stage_timeline.py (#1789).
  3. tests/test_runtime_paths.py: tools/conformance/**: missing (named in runtime/CMakeLists.txt) from the runtime.yml path filters — CI-RUNTIME-PATHS-CONFORMANCE.

The three semantic failures are SPIRV-Tools 2025.1 being too old, not translator defects. All three pass with 2026.1:

  • test_fma_khr and test_fma_khr_f64: spirv-as 2025.1 stops at Invalid capability 'FMAKHR'. docs/multi_gpu_validation.md already names 2026.1 as the minimum for --fma khr. With LEONIDA_REQUIRE_SPIRV_TOOLS=1, which the Linux leg sets, the test does not skip for that, so the tool version is what fails.
  • test_int32_to_f64: spirv-opt -O 2025.1 dies with SIGSEGV (core dump) on the module. The module is valid SPIR-V: spirv-as and spirv-val 2025.1 accept it, 2026.1's accept it and 2026.1's spirv-opt -O optimizes it. Upstream optimizer bug in 2025.1.

semantic-tests runs on ubuntu-latest, which moved to Ubuntu 26.04 on 19 November 2026 (actions/runner-images#14748) and ships spirv-tools 2026.1, so CI does not hit this; ubuntu-24.04, whose spirv-tools is 2025.1, is only used by stdlib-tests-linux and translator-tests, and neither runs the semantic suite.

Five of the eight standard-library failures measured on Windows pass on Linux, so they are Windows-only rather than logic defects: test_bink_names, test_opus_tags and test_world_names (the failing case in test_bink_names.py is test_unreadable_mount_directory_preserves_the_report: it expects the plain path in an OSError message where the tool prints a repr, and the escaped backslashes that make that assertion fail exist only on Windows. #1792 fixes the three tools), test_run_game_wine (the POSIX class runs 9 tests here; the Windows module import is #1876) and test_run_wine_tests (72 tests, 0 failures; the Windows timing test is TEST-WINE-JOBS-TIMING-WINDOWS). Only the three repo-wide checks fail on both platforms, and all three are claimed, so I opened no pull request.

What this does not cover. The Windows-only gta6rt, the shims and the D3D12 tests. The Vulkan half of the Linux runtime: without Vulkan headers the configure step warns that ctest runs only the CPU tests, so the 31 above are the portable subset, and no Vulkan loader, llvmpipe or GPU test ran. Everything that needs llvm-mc — the 762 pytest skips are mostly those, and the per-test skips inside a standard-library file were not counted one by one. The dotnet rpf9dump build and its tests, the cargo BCPack reader, and the Wine and macOS jobs. third_party/rpf9-explorer was already modified in this checkout before the run (git status: M third_party/rpf9-explorer), so anything that reads it does so from that state.

Written with an AI assistant.

<!-- gh-comment-id:7167523834 --> @fiestorra commented on GitHub (Nov 25, 2026): finding: Linux battery on `main` 71a769d7d — the standard-library loop fails only the three repo-wide checks that are already claimed, and the translator suite is green once SPIRV-Tools is 2026.1 or newer Measured in WSL2 Ubuntu 24.04.4 (Linux 6.18.58.1, Python 3.12.3, 16 cores, no GPU, no Vulkan headers or loader, no `llvm-mc`, `dotnet` or `cargo`) on a checkout of `main` `71a769d7d`, running the commands `.github/workflows/ci.yml` uses. Logs are kept locally. | Step (CI job it mirrors) | Result | |---|---| | `python3 -m compileall -q make_game.py tools tests` (`check`) | exit 0 | | `python3 -I make_game.py --help` (`check`) | exit 0 | | standard-library loop, CI's `PYTEST_FILE_MARKERS` and `python3 -I` (`check`, `stdlib-tests-linux`), bare box | 537 files: **500 run, 37 skipped by the markers, 3 failed** | | the same loop with Ubuntu 24.04's `spirv-tools` 2025.1 and numpy 2.5.5 on `PATH` (`stdlib-tests-linux`) | the same **500 / 37 / 3** | | `python3 -I scripts/run_semantic_tests.py tests/semantic -j 6` with `LEONIDA_REQUIRE_SPIRV_TOOLS=1` and `spirv-tools` 2025.1 (`semantic-tests`) | 489 files, 6 288 tests, **3 files failed**, 214 s | | the same suite with `spirv-tools` 2026.1 | 489 files, 6 288 tests, **0 files failed**, 281 s | | `cmake -S runtime -B … && cmake --build … && ctest` (`runtime`, CPU half) | 31 tests: 30 passed, 1 skipped (`shader_library_corpus`), **0 failed** | | `node --test tests/test_*.cjs`, Node 24.11.0 (`viewer-tests`) | 69 passed, 0 failed | | `python -m pytest` on the pytest-mode files of `translator-tests` (pytest 9.2.0, numpy 2.5.5, Pillow 13.0.0; no `llvm-mc`) | 1 168 passed, 762 skipped, 129 subtests passed, **0 failed**, 3 min — identical with 2025.1 and 2026.1 | **The three standard-library failures are the claimed ones, on both platforms. Nothing new here.** 1. `tests/test_runner_calls_all_tests.py`: `tests/test_feature_scan.py: test_out_named_like_the_optional_spirv_index()` is not called by its `__main__` runner — #1561. 2. `tests/test_tool_stdout_encoding.py`: three `__main__` blocks lack `errors="replace"` on stdout — `tools/compute_heap_layout_census.py` (#1561), `tools/game_run_summary.py` (#1837), `tools/stage_timeline.py` (#1789). 3. `tests/test_runtime_paths.py`: `tools/conformance/**: missing (named in runtime/CMakeLists.txt)` from the `runtime.yml` path filters — CI-RUNTIME-PATHS-CONFORMANCE. **The three semantic failures are SPIRV-Tools 2025.1 being too old, not translator defects.** All three pass with 2026.1: - `test_fma_khr` and `test_fma_khr_f64`: `spirv-as` 2025.1 stops at `Invalid capability 'FMAKHR'`. `docs/multi_gpu_validation.md` already names 2026.1 as the minimum for `--fma khr`. With `LEONIDA_REQUIRE_SPIRV_TOOLS=1`, which the Linux leg sets, the test does not skip for that, so the tool version is what fails. - `test_int32_to_f64`: `spirv-opt -O` 2025.1 dies with SIGSEGV (core dump) on the module. The module is valid SPIR-V: `spirv-as` and `spirv-val` 2025.1 accept it, 2026.1's accept it and 2026.1's `spirv-opt -O` optimizes it. Upstream optimizer bug in 2025.1. `semantic-tests` runs on `ubuntu-latest`, which moved to Ubuntu 26.04 on 19 November 2026 (actions/runner-images#14748) and ships `spirv-tools` 2026.1, so CI does not hit this; `ubuntu-24.04`, whose `spirv-tools` is 2025.1, is only used by `stdlib-tests-linux` and `translator-tests`, and neither runs the semantic suite. **Five of the eight standard-library failures measured on Windows pass on Linux**, so they are Windows-only rather than logic defects: `test_bink_names`, `test_opus_tags` and `test_world_names` (the failing case in `test_bink_names.py` is `test_unreadable_mount_directory_preserves_the_report`: it expects the plain path in an `OSError` message where the tool prints a `repr`, and the escaped backslashes that make that assertion fail exist only on Windows. #1792 fixes the three tools), `test_run_game_wine` (the POSIX class runs 9 tests here; the Windows module import is #1876) and `test_run_wine_tests` (72 tests, 0 failures; the Windows timing test is TEST-WINE-JOBS-TIMING-WINDOWS). Only the three repo-wide checks fail on both platforms, and all three are claimed, so I opened no pull request. **What this does not cover.** The Windows-only `gta6rt`, the shims and the D3D12 tests. The Vulkan half of the Linux runtime: without Vulkan headers the configure step warns that `ctest` runs only the CPU tests, so the 31 above are the portable subset, and no Vulkan loader, llvmpipe or GPU test ran. Everything that needs `llvm-mc` — the 762 pytest skips are mostly those, and the per-test skips *inside* a standard-library file were not counted one by one. The `dotnet` `rpf9dump` build and its tests, the `cargo` BCPack reader, and the Wine and macOS jobs. `third_party/rpf9-explorer` was already modified in this checkout before the run (`git status`: ` M third_party/rpf9-explorer`), so anything that reads it does so from that state. Written with an AI assistant.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

done: DOC-README-MERGE-DEDUP -> #1916

<!-- gh-comment-id:7167526335 --> @ShotTechOp commented on GitHub (Nov 25, 2026): done: DOC-README-MERGE-DEDUP -> #1916
Author
Owner

@kawaii-shakal commented on GitHub (Nov 25, 2026):

claiming: RT-IO-TRACE. LEONIDA_IO_TRACE=<file>: one flushed line per DirectStorage request and per ReadFile/ReadFileEx/ReadFileScatter (file, offset, sizes, request name), readable while the game runs, so the last reads before a crash or device loss name what the title was loading. Off by default. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7167534627 --> @kawaii-shakal commented on GitHub (Nov 25, 2026): claiming: RT-IO-TRACE. `LEONIDA_IO_TRACE=<file>`: one flushed line per DirectStorage request and per ReadFile/ReadFileEx/ReadFileScatter (file, offset, sizes, request name), readable while the game runs, so the last reads before a crash or device loss name what the title was loading. Off by default. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@mrgenty commented on GitHub (Nov 25, 2026):

done: RT-BARY-FALLBACK-PER-VERTEX -> #1930 (claimed in https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7167254678). Depends on #1497 and #1426. Tested on an RTX 3060 (NVIDIA 621.24, Windows 11, validation on) with hand-built SPIR-V; not run on the game's shaders or on a GPU without fragmentShaderBarycentric. AI-assisted.

<!-- gh-comment-id:7167537189 --> @mrgenty commented on GitHub (Nov 25, 2026): done: RT-BARY-FALLBACK-PER-VERTEX -> #1930 (claimed in https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7167254678). Depends on #1497 and #1426. Tested on an RTX 3060 (NVIDIA 621.24, Windows 11, validation on) with hand-built SPIR-V; not run on the game's shaders or on a GPU without fragmentShaderBarycentric. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-GRAPHICS-SHADER-MODULES-LOCK-AND-GUARDS -- harden and reduce lock contention in leonida::GraphicsShaderModules (runtime/src/vulkan_graphics_shader_modules.h, runtime/test/vulkan_graphics_shader_modules_test.cpp, runtime/CMakeLists.txt): release the cache lock before destroying a losing duplicate VkShaderModule on concurrent races, use std::shared_mutex so parallel pipeline workers take shared read locks on cache hits, check live->device == device to prevent cross-device handle aliasing, prune expired entries in the target bucket on insert, and guard null create/destroy procs and null returned handles. No game files; CPU-only unit + concurrency + ASan/UBSan/TSan verification.

<!-- gh-comment-id:7167546476 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-GRAPHICS-SHADER-MODULES-LOCK-AND-GUARDS -- harden and reduce lock contention in `leonida::GraphicsShaderModules` (`runtime/src/vulkan_graphics_shader_modules.h`, `runtime/test/vulkan_graphics_shader_modules_test.cpp`, `runtime/CMakeLists.txt`): release the cache lock before destroying a losing duplicate `VkShaderModule` on concurrent races, use `std::shared_mutex` so parallel pipeline workers take shared read locks on cache hits, check `live->device == device` to prevent cross-device handle aliasing, prune expired entries in the target bucket on insert, and guard null create/destroy procs and null returned handles. No game files; CPU-only unit + concurrency + ASan/UBSan/TSan verification.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-GRAPHICS-SHADER-MODULES-LOCK-AND-GUARDS -> #1932

<!-- gh-comment-id:7167597189 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-GRAPHICS-SHADER-MODULES-LOCK-AND-GUARDS -> #1932
Author
Owner

@kawaii-shakal commented on GitHub (Nov 25, 2026):

claiming: RT-FAULT-CHECKPOINT-DISPATCH. With LEONIDA_DEVICE_FAULT_ROOTS=1 keep each recent submission's dispatches so a dispatch checkpoint prints its exact dispatch (groups or indirect args, root words), even after later submissions have pushed it out of the global 64-entry history (they did in every world-start loss here). Prototype by Codex; I'm porting it to current main with a test. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7167618613 --> @kawaii-shakal commented on GitHub (Nov 25, 2026): claiming: RT-FAULT-CHECKPOINT-DISPATCH. With `LEONIDA_DEVICE_FAULT_ROOTS=1` keep each recent submission's dispatches so a dispatch checkpoint prints its exact dispatch (groups or indirect args, root words), even after later submissions have pushed it out of the global 64-entry history (they did in every world-start loss here). Prototype by Codex; I'm porting it to current main with a test. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-BCPACK-STREAM-PERF-AND-GUARDS -- harden and accelerate the BCPack rANS block stream in runtime/src/bcpack_stream.h (+ portable unit/fuzz test runtime/test/bcpack_stream_test.cpp, runtime/CMakeLists.txt): (1) guard Lane::step header width width - (byte >> 6) in [1, 8] (preventing negative-index OOB reads into models[w - 1] for direct callers / malformed inputs), validate codec and block-aligned size in visit_blocks(), and guard decoded symbol range; (2) precompute flat per-symbol (freq, cdf) advance tables in Model::init() so Model::advance() avoids per-symbol bit_width, indirect frequency/base loads, and branching on every rANS symbol during DirectStorage texture decompression. Zero overlap with open BCPack PRs (#1044/#1103/#1660/#1715 touch bcpack.cpp/bcpack.h/dstorage.cpp, not bcpack_stream.h). No game files; CPU-only unit, Python encoder round-trip, A/B throughput benchmark, and ASan/UBSan/TSan verification.

<!-- gh-comment-id:7167621176 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-BCPACK-STREAM-PERF-AND-GUARDS -- harden and accelerate the BCPack rANS block stream in `runtime/src/bcpack_stream.h` (+ portable unit/fuzz test `runtime/test/bcpack_stream_test.cpp`, `runtime/CMakeLists.txt`): (1) guard `Lane::step` header width `width - (byte >> 6)` in `[1, 8]` (preventing negative-index OOB reads into `models[w - 1]` for direct callers / malformed inputs), validate `codec` and block-aligned `size` in `visit_blocks()`, and guard decoded symbol range; (2) precompute flat per-symbol `(freq, cdf)` advance tables in `Model::init()` so `Model::advance()` avoids per-symbol `bit_width`, indirect frequency/base loads, and branching on every rANS symbol during DirectStorage texture decompression. Zero overlap with open BCPack PRs (#1044/#1103/#1660/#1715 touch `bcpack.cpp`/`bcpack.h`/`dstorage.cpp`, not `bcpack_stream.h`). No game files; CPU-only unit, Python encoder round-trip, A/B throughput benchmark, and ASan/UBSan/TSan verification.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

claiming: DOC-GBUFFER-AND-RPF-TOOLS -- document tools/gbuffer_census.py in docs/gbuffer.md and tools/classify_carve.py in docs/rpf.md from their CLI flags, outputs, and unit tests. Docs-only, verified with tests/test_docs_*.py. AI-assisted.

<!-- gh-comment-id:7167637522 --> @ShotTechOp commented on GitHub (Nov 25, 2026): claiming: DOC-GBUFFER-AND-RPF-TOOLS -- document tools/gbuffer_census.py in docs/gbuffer.md and tools/classify_carve.py in docs/rpf.md from their CLI flags, outputs, and unit tests. Docs-only, verified with tests/test_docs_*.py. AI-assisted.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

done: DOC-GBUFFER-AND-RPF-TOOLS -> #1921

<!-- gh-comment-id:7167640942 --> @ShotTechOp commented on GitHub (Nov 25, 2026): done: DOC-GBUFFER-AND-RPF-TOOLS -> #1921
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

claiming: SHADER-F64-LITERAL-SOURCES -- route v_div_fixup_f64, v_div_fmas_f64, v_cmp(x)_*_f64, and v_cmp(x)_class_f64 through f64_source_words() and tag their binary64 literals in tools/shader_ir.py so 32-bit one-dword literals (including 0x1) occupy bits [63:32] and >8-hex-digit full-width literals decode as the whole 64-bit constant across all f64 ops. Standard-library Python only, no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7167645796 --> @ShotTechOp commented on GitHub (Nov 25, 2026): claiming: SHADER-F64-LITERAL-SOURCES -- route v_div_fixup_f64, v_div_fmas_f64, v_cmp(x)_*_f64, and v_cmp(x)_class_f64 through f64_source_words() and tag their binary64 literals in tools/shader_ir.py so 32-bit one-dword literals (including 0x1) occupy bits [63:32] and >8-hex-digit full-width literals decode as the whole 64-bit constant across all f64 ops. Standard-library Python only, no game files, no GPU. AI-assisted.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

done: SHADER-F64-LITERAL-SOURCES -> #1933

<!-- gh-comment-id:7167660115 --> @ShotTechOp commented on GitHub (Nov 25, 2026): done: SHADER-F64-LITERAL-SOURCES -> #1933
Author
Owner

@kawaii-shakal commented on GitHub (Nov 25, 2026):

done: RT-TITLE-HUD -> #1922. LEONIDA_TITLE_HUD=1 puts fps and frame time (or how long since the last frame, for a hang), process and GPU memory and per-interval pipeline compile time in the title bar; set from its own thread with SendMessageTimeout. title_hud CTest drives a real window. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7167666620 --> @kawaii-shakal commented on GitHub (Nov 25, 2026): done: RT-TITLE-HUD -> #1922. `LEONIDA_TITLE_HUD=1` puts fps and frame time (or how long since the last frame, for a hang), process and GPU memory and per-interval pipeline compile time in the title bar; set from its own thread with SendMessageTimeout. `title_hud` CTest drives a real window. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-BCPACK-STREAM-PERF-AND-GUARDS -> #1935 (+20-21% end-to-end decode throughput across all 6 codecs + OOB width/codec/size guards)

<!-- gh-comment-id:7167688235 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-BCPACK-STREAM-PERF-AND-GUARDS -> #1935 (+20-21% end-to-end decode throughput across all 6 codecs + OOB width/codec/size guards)
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-NATIVE-PSO-HASHMAP-AND-PLAN-PERF -- optimize slot-57 native graphics catalog parsing and PSO planning in runtime/src/native_pso.h (+ portable unit test runtime/test/native_pso_plan_test.cpp, runtime/CMakeLists.txt): replace HashMap's 25,321-node std::map<Digest, ShaderRef> with a pre-reserved std::unordered_map<Digest, ShaderRef, DigestHash> for O(1) catalog lookup and faster native_hashes.txt parsing without duplicate-entry string allocations; eliminate per-stage-block std::vector + std::set heap allocations in plan() and small-set allocations in record_digests(); pre-reserve hex() and decode_state_b() input elements with overflow-safe length bounds. No game files, zero overlap with open PRs; CPU-only unit, A/B benchmark on 25,321 synthetic digests, and ASan/UBSan/TSan verification.

<!-- gh-comment-id:7167689403 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-NATIVE-PSO-HASHMAP-AND-PLAN-PERF -- optimize slot-57 native graphics catalog parsing and PSO planning in `runtime/src/native_pso.h` (+ portable unit test `runtime/test/native_pso_plan_test.cpp`, `runtime/CMakeLists.txt`): replace `HashMap`'s 25,321-node `std::map<Digest, ShaderRef>` with a pre-reserved `std::unordered_map<Digest, ShaderRef, DigestHash>` for O(1) catalog lookup and faster `native_hashes.txt` parsing without duplicate-entry string allocations; eliminate per-stage-block `std::vector` + `std::set` heap allocations in `plan()` and small-set allocations in `record_digests()`; pre-reserve `hex()` and `decode_state_b()` input elements with overflow-safe length bounds. No game files, zero overlap with open PRs; CPU-only unit, A/B benchmark on 25,321 synthetic digests, and ASan/UBSan/TSan verification.
Author
Owner

@kawaii-shakal commented on GitHub (Nov 25, 2026):

done: RT-IO-TRACE -> #1931. One flushed line per DirectStorage request and per ReadFile/ReadFileEx/ReadFileScatter, in a file readable while the game runs; paths asked of the handle each time (handle values are reused). io_trace CTest. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7167696654 --> @kawaii-shakal commented on GitHub (Nov 25, 2026): done: RT-IO-TRACE -> #1931. One flushed line per DirectStorage request and per ReadFile/ReadFileEx/ReadFileScatter, in a file readable while the game runs; paths asked of the handle each time (handle values are reused). `io_trace` CTest. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@kawaii-shakal commented on GitHub (Nov 25, 2026):

done: RT-FAULT-CHECKPOINT-DISPATCH -> #1934. With LEONIDA_DEVICE_FAULT_ROOTS=1 each recent submission keeps its dispatches and a dispatch checkpoint prints its exact dispatch, even after later submissions pushed it out of the global history. Prototype by Codex; vulkan_device_fault_roots CTest, which fails with the old clearing. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7167697262 --> @kawaii-shakal commented on GitHub (Nov 25, 2026): done: RT-FAULT-CHECKPOINT-DISPATCH -> #1934. With `LEONIDA_DEVICE_FAULT_ROOTS=1` each recent submission keeps its dispatches and a dispatch checkpoint prints its exact dispatch, even after later submissions pushed it out of the global history. Prototype by Codex; `vulkan_device_fault_roots` CTest, which fails with the old clearing. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

done: SEMANTIC-RUNNER-INTERRUPT -> #1936

<!-- gh-comment-id:7167701176 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): done: SEMANTIC-RUNNER-INTERRUPT -> #1936
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

done: SEMANTIC-RUNNER-INTERRUPT -> #1936

<!-- gh-comment-id:7167702502 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): done: SEMANTIC-RUNNER-INTERRUPT -> #1936
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

claiming: RT-TEXTURE-TILES-HOST-ADAPTER -- respect LEONIDA_HOST_ADAPTER and layer LUID in d3d12_texture_tiles

<!-- gh-comment-id:7167704003 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): claiming: RT-TEXTURE-TILES-HOST-ADAPTER -- respect LEONIDA_HOST_ADAPTER and layer LUID in d3d12_texture_tiles
Author
Owner

@Christopher-Sundeby commented on GitHub (Nov 25, 2026):

Correction (later the same day): the claim below that the console heap reported 0 slots left to retries is wrong. I only read the last two heap reports; an earlier one in the same run reports 77. With four controlled runs, the hang follows the fix budget exactly as in DadaCap's finding: see the controlled runs.

finding: the lib_cs_01144 world-start hang (DadaCap's 7162983619 on an RTX 5080) also happens on an 8 GB Ampere card on unpatched main, but the console heap reports 0 slots "left to retries past the budget" before it, so the fix budget may not be the only way in.

Setup: Windows 11, RTX 3060 Ti 8 GB, NVIDIA 621.24, own 1.0.2.1. main b0f3d3998, no extra pull requests, so host image copy stays on (the switch is not on main). Runtime RelWithDebInfo, MSVC 2022. LEONIDA_ASYNC_PIPELINES=1 LEONIDA_DEVICE_TYPE=6 LEONIDA_ARENA_MB=2048 LEONIDA_TITLE_WATCHDOG=0 LEONIDA_DEVICE_FAULT=1, --first-run-ui. LEONIDA_CONSOLE_FIX_US not set (default).

What happened:

  • At about 134 s (5,429 submissions), VK_ERROR_DEVICE_LOST from vkDeviceWaitIdle (title texture upload). The process exits at 162 s.
  • The device-fault report has 104 address entries, all type 4 (instruction pointer unknown), precision 16, in one ~6 KiB range. There are no type 1 or 2 entries, so this is a hang, not a bad read or write.
  • The last list in the checkpoints (execute 5443, list 5, direct queue) ends lib_cs_01467 x2, lib_cs_01449 (one direct, two indirect), lib_cs_01144 64x32x1, lib_cs_01126, lib_cs_01123. That is the same dispatch shape as in that finding.
  • Before it: four 200 ms queue waits on memory 0x0, then the 4 ms short waits. The title-window cap was reached (MiB copied so far: 63).
  • Unlike that finding: the last two console heap reports before the loss say 0 left to retries past the budget (with 27,103 and 27,701 slots waiting). I have not run with LEONIDA_CONSOLE_FIX_US=0 yet, so I can't say whether it would help here.

An earlier run on the same machine with default switches (main 3d4f66123, validation on) lost the device at about 190 s after 8 gate waits timed out.

Counts, offsets and program names only, no game data. AI-assisted (Claude Code).

<!-- gh-comment-id:7167719574 --> @Christopher-Sundeby commented on GitHub (Nov 25, 2026): > **Correction (later the same day):** the claim below that the console heap reported 0 slots left to retries is wrong. I only read the last two heap reports; an earlier one in the same run reports 77. With four controlled runs, the hang follows the fix budget exactly as in DadaCap's finding: see [the controlled runs](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7169227767). finding: the `lib_cs_01144` world-start hang (DadaCap's [7162983619](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7162983619) on an RTX 5080) also happens on an 8 GB Ampere card on unpatched `main`, but the console heap reports 0 slots "left to retries past the budget" before it, so the fix budget may not be the only way in. **Setup:** Windows 11, RTX 3060 Ti 8 GB, NVIDIA 621.24, own 1.0.2.1. `main` b0f3d3998, no extra pull requests, so host image copy stays on (the switch is not on `main`). Runtime RelWithDebInfo, MSVC 2022. `LEONIDA_ASYNC_PIPELINES=1 LEONIDA_DEVICE_TYPE=6 LEONIDA_ARENA_MB=2048 LEONIDA_TITLE_WATCHDOG=0 LEONIDA_DEVICE_FAULT=1`, `--first-run-ui`. `LEONIDA_CONSOLE_FIX_US` not set (default). **What happened:** - At about 134 s (5,429 submissions), `VK_ERROR_DEVICE_LOST` from `vkDeviceWaitIdle` (title texture upload). The process exits at 162 s. - The device-fault report has 104 address entries, all type 4 (instruction pointer unknown), precision 16, in one ~6 KiB range. There are no type 1 or 2 entries, so this is a hang, not a bad read or write. - The last list in the checkpoints (execute 5443, list 5, direct queue) ends `lib_cs_01467` x2, `lib_cs_01449` (one direct, two indirect), **`lib_cs_01144` 64x32x1**, `lib_cs_01126`, `lib_cs_01123`. That is the same dispatch shape as in that finding. - Before it: four 200 ms queue waits on `memory 0x0`, then the 4 ms short waits. The title-window cap was reached (`MiB copied so far: 63`). - **Unlike that finding:** the last two console heap reports before the loss say `0 left to retries past the budget` (with 27,103 and 27,701 slots waiting). I have not run with `LEONIDA_CONSOLE_FIX_US=0` yet, so I can't say whether it would help here. An earlier run on the same machine with default switches (`main` 3d4f66123, validation on) lost the device at about 190 s after 8 gate waits timed out. Counts, offsets and program names only, no game data. AI-assisted (Claude Code).
Author
Owner

@levi2m commented on GitHub (Nov 25, 2026):

claiming: VK-MODEL-ORACLE - tools/vk_model_fuzz.py: run the programs pk16_diff.py, vint_diff.py or sdwa_diff.py generate for a seed through the translator and vk_compute_test on any Vulkan GPU, and judge them against the fuzzer's own reference model. Today the Vulkan run of those fuzzers (--oracle hw,vk) needs an AMD GPU to supply the expected words, so a contributor with an NVIDIA or Intel card cannot use it. New tool, a test that needs no GPU, and a short docs/testing.md section; no existing fuzzer is edited, so it does not touch #1653, #1654, #1656 or #1519. Run so far on an RTX 4050 Laptop (driver 621.01, Windows 11).

<!-- gh-comment-id:7167721110 --> @levi2m commented on GitHub (Nov 25, 2026): claiming: VK-MODEL-ORACLE - `tools/vk_model_fuzz.py`: run the programs `pk16_diff.py`, `vint_diff.py` or `sdwa_diff.py` generate for a seed through the translator and `vk_compute_test` on any Vulkan GPU, and judge them against the fuzzer's own reference model. Today the Vulkan run of those fuzzers (`--oracle hw,vk`) needs an AMD GPU to supply the expected words, so a contributor with an NVIDIA or Intel card cannot use it. New tool, a test that needs no GPU, and a short `docs/testing.md` section; no existing fuzzer is edited, so it does not touch #1653, #1654, #1656 or #1519. Run so far on an RTX 4050 Laptop (driver 621.01, Windows 11).
Author
Owner

@levi2m commented on GitHub (Nov 25, 2026):

done: VK-MODEL-ORACLE -> #1938

tools/vk_model_fuzz.py runs the programs pk16_diff.py, vint_diff.py or sdwa_diff.py generate for a seed on any Vulkan GPU and judges them against the fuzzer reference model, so no AMD GPU is needed. New tool, tests/test_vk_model_fuzz.py (10 tests, no GPU) and a docs/testing.md section; no existing fuzzer is edited. Run on an RTX 4050 Laptop.

<!-- gh-comment-id:7167731642 --> @levi2m commented on GitHub (Nov 25, 2026): done: VK-MODEL-ORACLE -> #1938 `tools/vk_model_fuzz.py` runs the programs `pk16_diff.py`, `vint_diff.py` or `sdwa_diff.py` generate for a seed on any Vulkan GPU and judges them against the fuzzer reference model, so no AMD GPU is needed. New tool, `tests/test_vk_model_fuzz.py` (10 tests, no GPU) and a `docs/testing.md` section; no existing fuzzer is edited. Run on an RTX 4050 Laptop.
Author
Owner

@levi2m commented on GitHub (Nov 25, 2026):

claiming: SHADER-SDWA-SEXT-SHIFTS - tools/rdna2spirv.py Gen.sdwa_src: sign-extend an SDWA source under sext() with two shifts instead of OpBitFieldSExtract. On an RTX 4050 Laptop (NVIDIA 621.01, Windows 11) a sext() source feeding v_cvt_f32_u32 was converted as signed: v1 = 0x4fbdc08a, src0_sel:BYTE_2 gave -67.0 where the reference model has 0x4f800000. 7 of 400 v_cvt_f32_u32 programs of sdwa_diff.py (seed 31) differ on the GPU; with the shifts all 400 match, and the CPU interpreter matches the model on those programs, before and after. Related to whoalin1's NVIDIA v_cvt_f32_u32_sdwa report above (a different symptom, BYTE_2 with UNUSED_PRESERVE, on an RTX 4070 SUPER). Tool, test and a design.md note; found with tools/vk_model_fuzz.py (VK-MODEL-ORACLE).

<!-- gh-comment-id:7167735058 --> @levi2m commented on GitHub (Nov 25, 2026): claiming: SHADER-SDWA-SEXT-SHIFTS - `tools/rdna2spirv.py` `Gen.sdwa_src`: sign-extend an SDWA source under `sext()` with two shifts instead of `OpBitFieldSExtract`. On an RTX 4050 Laptop (NVIDIA 621.01, Windows 11) a `sext()` source feeding `v_cvt_f32_u32` was converted as signed: `v1 = 0x4fbdc08a`, `src0_sel:BYTE_2` gave -67.0 where the reference model has `0x4f800000`. 7 of 400 `v_cvt_f32_u32` programs of `sdwa_diff.py` (seed 31) differ on the GPU; with the shifts all 400 match, and the CPU interpreter matches the model on those programs, before and after. Related to whoalin1's NVIDIA `v_cvt_f32_u32_sdwa` report above (a different symptom, `BYTE_2` with `UNUSED_PRESERVE`, on an RTX 4070 SUPER). Tool, test and a `design.md` note; found with `tools/vk_model_fuzz.py` (VK-MODEL-ORACLE).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-NATIVE-PSO-HASHMAP-AND-PLAN-PERF -> #1940

<!-- gh-comment-id:7167755938 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-NATIVE-PSO-HASHMAP-AND-PLAN-PERF -> #1940
Author
Owner

@fiestorra commented on GitHub (Nov 25, 2026):

done: D3D-INDIRECT-STATE-REPLAY -> #1937

The compound branch of ExecuteIndirect now expands each record of a compound graphics signature into the vertex buffer views, index buffer view, root constants and root CBV/SRV/UAV it names, then records the record's own DRAW/DRAW_INDEXED. It needs the record bytes on the CPU, so only a host-visible (upload or readback) argument and count buffer are replayed; a device-local one keeps the reset-only path. The D3D12 state-leakage reset after the call is unchanged.

Measured on main b0f3d3998, no game files: the new d3d12_compound_indirect_pixels test draws 1536 lit pixels with 0/4096 pixel mismatches against the same calls made by hand; with only the shim hunk reverted it lights 0 pixels. 9 of 9 tests in the affected set pass, 3 of them fail without the change.

Written with an AI assistant.

<!-- gh-comment-id:7167770877 --> @fiestorra commented on GitHub (Nov 25, 2026): done: `D3D-INDIRECT-STATE-REPLAY` -> #1937 The compound branch of `ExecuteIndirect` now expands each record of a compound graphics signature into the vertex buffer views, index buffer view, root constants and root CBV/SRV/UAV it names, then records the record's own `DRAW`/`DRAW_INDEXED`. It needs the record bytes on the CPU, so only a host-visible (upload or readback) argument and count buffer are replayed; a device-local one keeps the reset-only path. The D3D12 state-leakage reset after the call is unchanged. Measured on `main` `b0f3d3998`, no game files: the new `d3d12_compound_indirect_pixels` test draws 1536 lit pixels with 0/4096 pixel mismatches against the same calls made by hand; with only the shim hunk reverted it lights 0 pixels. 9 of 9 tests in the affected set pass, 3 of them fail without the change. Written with an AI assistant.
Author
Owner

@levi2m commented on GitHub (Nov 25, 2026):

done: SHADER-SDWA-SEXT-SHIFTS -> #1939

Gen.sdwa_src sign-extends a sext() SDWA source with two shifts instead of OpBitFieldSExtract. On an RTX 4050 Laptop (NVIDIA 621.01) the extract feeding v_cvt_f32_u32 was converted as signed: 7 of 400 v_cvt_f32_u32 programs differed, and all 400 match with the shifts. New tests/semantic/test_sdwa_sext_source.py, the two test_mutations anchors moved, a design.md note. Found with tools/vk_model_fuzz.py (#1938). Related to whoalin1 earlier NVIDIA v_cvt_f32_u32_sdwa report.

<!-- gh-comment-id:7167772558 --> @levi2m commented on GitHub (Nov 25, 2026): done: SHADER-SDWA-SEXT-SHIFTS -> #1939 `Gen.sdwa_src` sign-extends a `sext()` SDWA source with two shifts instead of `OpBitFieldSExtract`. On an RTX 4050 Laptop (NVIDIA 621.01) the extract feeding `v_cvt_f32_u32` was converted as signed: 7 of 400 `v_cvt_f32_u32` programs differed, and all 400 match with the shifts. New `tests/semantic/test_sdwa_sext_source.py`, the two `test_mutations` anchors moved, a `design.md` note. Found with `tools/vk_model_fuzz.py` (#1938). Related to whoalin1 earlier NVIDIA `v_cvt_f32_u32_sdwa` report.
Author
Owner

@fiestorra commented on GitHub (Nov 25, 2026):

finding: #1737 breaks d3d12_stateful_indirect_pixels when it lands. Its refusal in CreateCommandSignature answers E_NOTIMPL for any signature with more than one argument, and runtime/test/d3d12_stateful_indirect_pixels.cpp creates two of those and requires that they are created (a two-argument VERTEX_BUFFER_VIEW + DRAW signature, and the five-argument root/IA compound signature of its record-only block, both through CHECK(SUCCEEDED(...))). #1737's file list only reaches runtime/test/d3d12_execute_indirect_validation_test.cpp, so ctest -R d3d12_stateful_indirect_pixels would fail on main afterwards. Where: runtime/test/d3d12_stateful_indirect_pixels.cpp, the two CreateCommandSignature calls in the "Identical padded byte stride" and "Record-only" blocks. It needs no game files, only a Vulkan device. #1937 (D3D-INDIRECT-STATE-REPLAY) replays the vertex/index-buffer shapes and edits that file anyway, so the two pull requests have to be ordered: whichever lands second takes the other's part.

Written with an AI assistant.

<!-- gh-comment-id:7167788231 --> @fiestorra commented on GitHub (Nov 25, 2026): finding: #1737 breaks `d3d12_stateful_indirect_pixels` when it lands. Its refusal in `CreateCommandSignature` answers `E_NOTIMPL` for any signature with more than one argument, and `runtime/test/d3d12_stateful_indirect_pixels.cpp` creates two of those and requires that they are created (a two-argument `VERTEX_BUFFER_VIEW` + `DRAW` signature, and the five-argument root/IA compound signature of its record-only block, both through `CHECK(SUCCEEDED(...))`). #1737's file list only reaches `runtime/test/d3d12_execute_indirect_validation_test.cpp`, so `ctest -R d3d12_stateful_indirect_pixels` would fail on `main` afterwards. Where: `runtime/test/d3d12_stateful_indirect_pixels.cpp`, the two `CreateCommandSignature` calls in the "Identical padded byte stride" and "Record-only" blocks. It needs no game files, only a Vulkan device. #1937 (D3D-INDIRECT-STATE-REPLAY) replays the vertex/index-buffer shapes and edits that file anyway, so the two pull requests have to be ordered: whichever lands second takes the other's part. Written with an AI assistant.
Author
Owner

@lgr123 commented on GitHub (Nov 25, 2026):

claiming: WINE-RUNNER-FIXTURE-CLEANUP — preserve CTest fixture teardown ordering in scripts/run_wine_tests.py. On b0f3d399, a synthetic CTest manifest with one setup, two consumers and a cleanup test declared first ran cleanup → setup → consumer-1 → consumer-2 and exited 0 with both --jobs 1 and --jobs 2. I’ll add teardown ordering separately from setup-success gates so cleanup can still run after a test failure.

finding: concurrent Wine runners sharing a prefix can lose the borrowed server. In KeptServer, runner B can adopt the server after -p reports it already running and -w times out, then runner A, which started the server, calls -k while B is still using it. I reproduced the call ordering with stubbed processes. #1402 addresses warming an adopted server, while this is about ownership at teardown.

Both probes used synthetic inputs and no game files. AI-assisted.

<!-- gh-comment-id:7167793106 --> @lgr123 commented on GitHub (Nov 25, 2026): claiming: WINE-RUNNER-FIXTURE-CLEANUP — preserve CTest fixture teardown ordering in `scripts/run_wine_tests.py`. On `b0f3d399`, a synthetic CTest manifest with one setup, two consumers and a cleanup test declared first ran `cleanup → setup → consumer-1 → consumer-2` and exited 0 with both `--jobs 1` and `--jobs 2`. I’ll add teardown ordering separately from setup-success gates so cleanup can still run after a test failure. finding: concurrent Wine runners sharing a prefix can lose the borrowed server. In [`KeptServer`](https://github.com/ubiquitarianism/leonida/blob/b0f3d3998f0401eb7df8ddbb7a303d1e6bee9fb8/scripts/run_wine_tests.py#L172), runner B can adopt the server after `-p` reports it already running and `-w` times out, then runner A, which started the server, calls `-k` while B is still using it. I reproduced the call ordering with stubbed processes. #1402 addresses warming an adopted server, while this is about ownership at teardown. Both probes used synthetic inputs and no game files. AI-assisted.
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

done: RT-TEXTURE-TILES-HOST-ADAPTER -> #1941

untime/test/d3d12_texture_tiles_test.cpp now receives the layer's Vulkan device LUID ( ulkan->GetAdapterLuid()) and evaluates LEONIDA_HOST_ADAPTER (matching d3d12_buffer_tiles_test.cpp), resolving the unguided iGPU fallback on dual-GPU machines.

AI-assisted (Claude Code)

<!-- gh-comment-id:7167801446 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): done: RT-TEXTURE-TILES-HOST-ADAPTER -> #1941 untime/test/d3d12_texture_tiles_test.cpp now receives the layer's Vulkan device LUID ( ulkan->GetAdapterLuid()) and evaluates LEONIDA_HOST_ADAPTER (matching d3d12_buffer_tiles_test.cpp), resolving the unguided iGPU fallback on dual-GPU machines. AI-assisted (Claude Code)
Author
Owner

@d6ge-dev commented on GitHub (Nov 25, 2026):

claiming: BUILD-CROSSOVER-BOTTLE — add an opt-in CrossOver bottle path to the generated gta6rt.sh so it can launch the Windows runtime on Apple Silicon with CrossOver's bottle and executable arguments, retain plain Wine/Proton behavior, and cover it with synthetic launcher tests. No game files. AI-assisted.

<!-- gh-comment-id:7167825536 --> @d6ge-dev commented on GitHub (Nov 25, 2026): claiming: BUILD-CROSSOVER-BOTTLE — add an opt-in CrossOver bottle path to the generated gta6rt.sh so it can launch the Windows runtime on Apple Silicon with CrossOver's bottle and executable arguments, retain plain Wine/Proton behavior, and cover it with synthetic launcher tests. No game files. AI-assisted.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

claiming: SHADER-VCC-DATA-MASK-SRC -- extract per-lane bits in Gen.mask_src when VCC (vcc/vcc_lo/vcc_hi) holds plain scalar data in wave32 (removing the wave32_vcc_pointer gate) and wave64 (selecting %vcc/%vcc_hi by lane half and mirroring wave64 certified VCC mask writes into %vcc_hi for mixed-path joins). Standard-library Python only, no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7167900408 --> @ShotTechOp commented on GitHub (Nov 25, 2026): claiming: SHADER-VCC-DATA-MASK-SRC -- extract per-lane bits in Gen.mask_src when VCC (vcc/vcc_lo/vcc_hi) holds plain scalar data in wave32 (removing the wave32_vcc_pointer gate) and wave64 (selecting %vcc/%vcc_hi by lane half and mirroring wave64 certified VCC mask writes into %vcc_hi for mixed-path joins). Standard-library Python only, no game files, no GPU. AI-assisted.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

done: SHADER-VCC-DATA-MASK-SRC -> #1943

<!-- gh-comment-id:7167904453 --> @ShotTechOp commented on GitHub (Nov 25, 2026): done: SHADER-VCC-DATA-MASK-SRC -> #1943
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-SPIRV-F16-HALVES-FLAT-SCAN-PERF — eliminate per-instruction heap allocations in runtime/src/spirv_f16_halves.h (link_f16_halves) via direct flat word-stream preamble scan, in-place PS OpDecorate Location patching, conditional OpAccessChain scan, and single-buffer VS rebuild, plus add regression coverage in runtime/test/spirv_f16_halves_test.cpp.

finding: lazy graphics pipeline stage_words() drops device_.f16_half_top_location when re-linking --f16-interp-fallback halves — runtime/shims/d3d12_vulkan_device.cpp:9521 calls leonida::link_f16_halves(words[vs], ..., words[ps], ..., &why) using the default top_location = 29, unlike create_graphics at line 8482 which passes device_.f16_half_top_location. On devices with maxVertexOutputComponents < 124 (e.g. 64 -> top_location = 14), lazy pipeline compilation can relocate outputs past the device limit. No game files needed; reproducible in a synthetic GPU test with a capped f16_half_top_location.

<!-- gh-comment-id:7167909660 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-SPIRV-F16-HALVES-FLAT-SCAN-PERF — eliminate per-instruction heap allocations in `runtime/src/spirv_f16_halves.h` (`link_f16_halves`) via direct flat word-stream preamble scan, in-place PS `OpDecorate Location` patching, conditional `OpAccessChain` scan, and single-buffer VS rebuild, plus add regression coverage in `runtime/test/spirv_f16_halves_test.cpp`. finding: lazy graphics pipeline `stage_words()` drops `device_.f16_half_top_location` when re-linking `--f16-interp-fallback` halves — `runtime/shims/d3d12_vulkan_device.cpp:9521` calls `leonida::link_f16_halves(words[vs], ..., words[ps], ..., &why)` using the default `top_location = 29`, unlike `create_graphics` at line 8482 which passes `device_.f16_half_top_location`. On devices with `maxVertexOutputComponents < 124` (e.g. 64 -> `top_location = 14`), lazy pipeline compilation can relocate outputs past the device limit. No game files needed; reproducible in a synthetic GPU test with a capped `f16_half_top_location`.
Author
Owner

@Christopher-Sundeby commented on GitHub (Nov 25, 2026):

claiming: RT-RELEASER-STALL-WRAP - the list-value pump's releaser watchdog (watch_releaser, runtime/shims/d3d12_xs_list_values.h:605) subtracts a start time that the releaser stores as GetTickCount64() | 1 (line 636), which is 1 ms ahead on an even tick. Read in the same millisecond, the difference wraps to 2^64-1 ms (seen in my run in the finding above), so the watchdog logs a false stall, counts it in release_stalls, and then stays quiet about the real one. Fix: clamp the elapsed time at 0. No game files, no GPU.

<!-- gh-comment-id:7167934500 --> @Christopher-Sundeby commented on GitHub (Nov 25, 2026): claiming: RT-RELEASER-STALL-WRAP - the list-value pump's releaser watchdog (`watch_releaser`, runtime/shims/d3d12_xs_list_values.h:605) subtracts a start time that the releaser stores as `GetTickCount64() | 1` (line 636), which is 1 ms ahead on an even tick. Read in the same millisecond, the difference wraps to 2^64-1 ms (seen in my run in the finding above), so the watchdog logs a false stall, counts it in `release_stalls`, and then stays quiet about the real one. Fix: clamp the elapsed time at 0. No game files, no GPU.
Author
Owner

@Christopher-Sundeby commented on GitHub (Nov 25, 2026):

done: RT-RELEASER-STALL-WRAP -> #1944

<!-- gh-comment-id:7167941975 --> @Christopher-Sundeby commented on GitHub (Nov 25, 2026): done: RT-RELEASER-STALL-WRAP -> #1944
Author
Owner

@d6ge-dev commented on GitHub (Nov 25, 2026):

done: SHELL-LAUNCHERS-PYTHON315 -> #1942

done: BUILD-CROSSOVER-BOTTLE -> #1945

<!-- gh-comment-id:7167952040 --> @d6ge-dev commented on GitHub (Nov 25, 2026): done: SHELL-LAUNCHERS-PYTHON315 -> #1942 done: BUILD-CROSSOVER-BOTTLE -> #1945
Author
Owner

@lgr123 commented on GitHub (Nov 25, 2026):

done: WINE-RUNNER-FIXTURE-CLEANUP -> #1946

<!-- gh-comment-id:7167960621 --> @lgr123 commented on GitHub (Nov 25, 2026): done: WINE-RUNNER-FIXTURE-CLEANUP -> #1946
Author
Owner

@DadaCap commented on GitHub (Nov 25, 2026):

finding: in the world phase the command-list value waits are cut short before their producers finish, so queues run out of order. LEONIDA_VALUE_WAIT_TIMEOUT_MS=30000 restores the order here, and surfaces begin to be lit. Also worth setting: LEONIDA_MAP_READBACK=1.

Where: runtime/shims/d3d12_xs_list_values.h: a gate is signalled after LEONIDA_VALUE_WAIT_TIMEOUT_MS (200 ms by default), and after 4 ms for every wait once four in a row timed out.

RTX 5080, NVIDIA 621.24, the tree of 7167396852, LEONIDA_MAP_READBACK=1 default (m59) 30,000 ms (m60)
gates held 122 73 at the same point, 120 later
met 0 68, 82 later
timed out 122 (6 of them "met late") 3, 29 later (8 with the short limit; frames were 60 s by then)
what shows silhouettes under a lit sky a building with lit windows and a lit interior, a lit tree, lamp glow

One run each. The "6 met late" of the default run are the tell: the values do arrive, after the limit. At these frame times (10 to 60 s, from CPU-side copies before each submission) no 200 ms limit can hold, and a frame whose passes run before their producers reads empty inputs. I have not separated how much of the remaining black comes from that: of three consecutive world frames, two were still black (mean rgb 0.28) and one lit.

LEONIDA_MAP_READBACK=1 (off by default): the title reads its exposure statistics from a 1x1 target it maps each frame; without the switch the CPU reads zeros. With it the first texel reads 10,632 to 10,928 in black frames and 3.38 and 3.65 in lit ones, so the values are plausible. I can't say which frames it changes, I only ran with it on since.

Not a pull request: a longer default would freeze a frame for that long on a wait whose value never comes (the reason for the limit). A limit that only runs while no submitted or held work could still write the value seems right; not written. If someone wants it, take it, and tell me; otherwise I will look once the copy costs are down. No device loss in either run (430 s and 520 s; an earlier run with the same switches did lose it once, in the G-buffer pass). Counts only. AI-assisted (Claude Code).

<!-- gh-comment-id:7167966834 --> @DadaCap commented on GitHub (Nov 25, 2026): finding: in the world phase the command-list value waits are cut short before their producers finish, so queues run out of order. `LEONIDA_VALUE_WAIT_TIMEOUT_MS=30000` restores the order here, and surfaces begin to be lit. Also worth setting: `LEONIDA_MAP_READBACK=1`. **Where:** `runtime/shims/d3d12_xs_list_values.h`: a gate is signalled after `LEONIDA_VALUE_WAIT_TIMEOUT_MS` (200 ms by default), and after 4 ms for every wait once four in a row timed out. | RTX 5080, NVIDIA 621.24, the tree of [7167396852](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7167396852), `LEONIDA_MAP_READBACK=1` | default (m59) | 30,000 ms (m60) | |---|---|---| | gates held | 122 | 73 at the same point, 120 later | | met | **0** | **68**, 82 later | | timed out | 122 (6 of them "met late") | 3, 29 later (8 with the short limit; frames were 60 s by then) | | what shows | silhouettes under a lit sky | a building with lit windows and a lit interior, a lit tree, lamp glow | One run each. The "6 met late" of the default run are the tell: the values do arrive, after the limit. At these frame times (10 to 60 s, from CPU-side copies before each submission) no 200 ms limit can hold, and a frame whose passes run before their producers reads empty inputs. I have not separated how much of the remaining black comes from that: of three consecutive world frames, two were still black (mean rgb 0.28) and one lit. `LEONIDA_MAP_READBACK=1` (off by default): the title reads its exposure statistics from a 1x1 target it maps each frame; without the switch the CPU reads zeros. With it the first texel reads 10,632 to 10,928 in black frames and **3.38 and 3.65 in lit ones**, so the values are plausible. I can't say which frames it changes, I only ran with it on since. Not a pull request: a longer default would freeze a frame for that long on a wait whose value never comes (the reason for the limit). A limit that only runs while no submitted or held work could still write the value seems right; not written. If someone wants it, take it, and tell me; otherwise I will look once the copy costs are down. No device loss in either run (430 s and 520 s; an earlier run with the same switches did lose it once, in the G-buffer pass). Counts only. AI-assisted (Claude Code).
Author
Owner

@lgr123 commented on GitHub (Nov 25, 2026):

claiming: RT-ISOLATE-GAMESAVE-AND-BINK-SCRATCH — isolate the three fixed scratch names still listed in the correction: xgameruntime_gamesave_test, bink_audio_test, and bink_decode_test. A synthetic Windows probe showed that a second save-test initialization can erase the first run’s in-progress marker. I’ll use the existing per-process scratch helpers, keep Bink diagnostics available per run, and verify overlapping synthetic invocations. This is scoped to the three residual sites identified separately from #1579. AI-assisted.

<!-- gh-comment-id:7168028667 --> @lgr123 commented on GitHub (Nov 25, 2026): claiming: RT-ISOLATE-GAMESAVE-AND-BINK-SCRATCH — isolate the three fixed scratch names still listed in [the correction](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7164348116): `xgameruntime_gamesave_test`, `bink_audio_test`, and `bink_decode_test`. A synthetic Windows probe showed that a second save-test initialization can erase the first run’s in-progress marker. I’ll use the existing per-process scratch helpers, keep Bink diagnostics available per run, and verify overlapping synthetic invocations. This is scoped to the three residual sites identified separately from #1579. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-SPIRV-F16-HALVES-FLAT-SCAN-PERF -> #1947

<!-- gh-comment-id:7168041172 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-SPIRV-F16-HALVES-FLAT-SCAN-PERF -> #1947
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-SPIRV-STORES-PREAMBLE-AND-FLAT-PERF — stop spirv_declares_writable_storage() in runtime/src/spirv_stores.h at OpFunction, filter OpVariable to storage classes that can hold writable images/buffers, and replace the seven per-call hash containers with compact flat vectors/early exits, plus add regression coverage in runtime/test/spirv_stores_test.cpp.

<!-- gh-comment-id:7168043831 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-SPIRV-STORES-PREAMBLE-AND-FLAT-PERF — stop `spirv_declares_writable_storage()` in `runtime/src/spirv_stores.h` at `OpFunction`, filter `OpVariable` to storage classes that can hold writable images/buffers, and replace the seven per-call hash containers with compact flat vectors/early exits, plus add regression coverage in `runtime/test/spirv_stores_test.cpp`.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-SPIRV-STORES-PREAMBLE-AND-FLAT-PERF -> #1948

<!-- gh-comment-id:7168109369 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-SPIRV-STORES-PREAMBLE-AND-FLAT-PERF -> #1948
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-GFX10-TILING-FAST-RUNS — hoist direction/tile-row invariant work and copy contiguous 8/16-byte X micro-runs in TiledSurface2D::copy() (runtime/src/gfx10_tiling.h), plus add non-aligned run/tail coverage in runtime/test/gfx10_tiling_test.cpp.

<!-- gh-comment-id:7168111876 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-GFX10-TILING-FAST-RUNS — hoist direction/tile-row invariant work and copy contiguous 8/16-byte X micro-runs in `TiledSurface2D::copy()` (`runtime/src/gfx10_tiling.h`), plus add non-aligned run/tail coverage in `runtime/test/gfx10_tiling_test.cpp`.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

claiming: SHADER-SDWA-IMM-VAL -- make Gen.imm_val() return None for operands carrying a non-DWORD sdwa_sel or sext() so constant shift amounts (inline or seeded SGPR) on v_{lshlrev,lshrrev,ashrrev}_*_sdwa go through sdwa_src() instead of folding the unselected 32-bit word (sdwa_diff shift-const-sel). Standard-library Python only, no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7168127638 --> @ShotTechOp commented on GitHub (Nov 25, 2026): claiming: SHADER-SDWA-IMM-VAL -- make Gen.imm_val() return None for operands carrying a non-DWORD sdwa_sel or sext() so constant shift amounts (inline or seeded SGPR) on v_{lshlrev,lshrrev,ashrrev}_*_sdwa go through sdwa_src() instead of folding the unselected 32-bit word (sdwa_diff shift-const-sel). Standard-library Python only, no game files, no GPU. AI-assisted.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

done: SHADER-SDWA-IMM-VAL -> #1949

<!-- gh-comment-id:7168130938 --> @ShotTechOp commented on GitHub (Nov 25, 2026): done: SHADER-SDWA-IMM-VAL -> #1949
Author
Owner

@kurrutako commented on GitHub (Nov 25, 2026):

claiming: RT-SESSION-CACHE-AT-EXIT — pipeline_cache.session.bin is written only in ~Device (runtime/shims/d3d12_vulkan_device.cpp), and a title never releases its device, so a real boot keeps none of what it compiled: not after a normal exit, a console close or a crash. Follow-up to @DadaCap's finding https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7161936928 (point 1, a boot that ends in a crash never writes the cache). Measured on an RTX 5070 (NVIDIA 621.01): after a dozen retail boots there is no session file next to gta6rt.exe.

Plan: save_pipeline_caches_at_exit in shims/d3d12_compile_exit.h writes every live device's session cache once per process. gta6rt calls it at the run's exit, at a console close, and from an unhandled-exception filter (the title's own SetUnhandledExceptionFilter is served by the runtime, so the runtime's filter stays first and passes the exception on). Plus a check in d3d12_compile_teardown_test. Complements #1756 (checkpoint race) and #1886 (size limit), and touches neither. AI-assisted.

<!-- gh-comment-id:7168160338 --> @kurrutako commented on GitHub (Nov 25, 2026): claiming: RT-SESSION-CACHE-AT-EXIT — `pipeline_cache.session.bin` is written only in `~Device` (`runtime/shims/d3d12_vulkan_device.cpp`), and a title never releases its device, so a real boot keeps none of what it compiled: not after a normal exit, a console close or a crash. Follow-up to @DadaCap's finding https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7161936928 (point 1, a boot that ends in a crash never writes the cache). Measured on an RTX 5070 (NVIDIA 621.01): after a dozen retail boots there is no session file next to `gta6rt.exe`. Plan: `save_pipeline_caches_at_exit` in `shims/d3d12_compile_exit.h` writes every live device's session cache once per process. `gta6rt` calls it at the run's exit, at a console close, and from an unhandled-exception filter (the title's own `SetUnhandledExceptionFilter` is served by the runtime, so the runtime's filter stays first and passes the exception on). Plus a check in `d3d12_compile_teardown_test`. Complements #1756 (checkpoint race) and #1886 (size limit), and touches neither. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-GFX10-TILING-FAST-RUNS -> #1951

<!-- gh-comment-id:7168193362 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-GFX10-TILING-FAST-RUNS -> #1951
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

claiming: RT-LAZY-PIPELINE-F16-TOP-LOCATION -- pass device_.f16_half_top_location in lazy graphics pipeline stage_words()

<!-- gh-comment-id:7168201125 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): claiming: RT-LAZY-PIPELINE-F16-TOP-LOCATION -- pass device_.f16_half_top_location in lazy graphics pipeline stage_words()
Author
Owner

@lgr123 commented on GitHub (Nov 25, 2026):

done: RT-ISOLATE-GAMESAVE-AND-BINK-SCRATCH -> #1952

<!-- gh-comment-id:7168213260 --> @lgr123 commented on GitHub (Nov 25, 2026): done: RT-ISOLATE-GAMESAVE-AND-BINK-SCRATCH -> #1952
Author
Owner

@kurrutako commented on GitHub (Nov 25, 2026):

done: RT-SESSION-CACHE-AT-EXIT -> #1950

<!-- gh-comment-id:7168218134 --> @kurrutako commented on GitHub (Nov 25, 2026): done: RT-SESSION-CACHE-AT-EXIT -> #1950
Author
Owner

@MSedgeMC commented on GitHub (Nov 25, 2026):

finding: issue #14's Open work table still lists SHADER-1264 and TEST-ATOMIC-GUARD as open/red; both are fixed and green on current main.

Where: tools/rdna2spirv.py (computed EXEC write handling, landed via PR #24); tests/semantic/test_image_atomics_guard.py (guard helper, landed via PR #20 and #460).

Why it matters: contributors reading the coordination index claim work that is already done.

Repro (no game files, no GPU; Linux, Python 3, main @ 9e7720c9e):

  • cd tests/semantic && python3 -m unittest test_exec_computed -v -> 2/2 OK
  • cd tests/semantic && python3 -m unittest test_image_atomics_guard -v -> 6/6 OK
  • python3 -m unittest discover -s tests -p 'test_docs_*.py' -> 47 OK

Needs game files/GPU: no.

Claiming: DOC-STALE-OPEN-WORK-TABLE -- update issue #14's Open work table (or add a correction note in #1608) to mark SHADER-1264 and TEST-ATOMIC-GUARD as closed, with the test evidence above. Docs/coordination only, no code.

<!-- gh-comment-id:7168282595 --> @MSedgeMC commented on GitHub (Nov 25, 2026): finding: issue #14's Open work table still lists SHADER-1264 and TEST-ATOMIC-GUARD as open/red; both are fixed and green on current main. Where: tools/rdna2spirv.py (computed EXEC write handling, landed via PR #24); tests/semantic/test_image_atomics_guard.py (guard helper, landed via PR #20 and #460). Why it matters: contributors reading the coordination index claim work that is already done. Repro (no game files, no GPU; Linux, Python 3, main @ 9e7720c9e): - cd tests/semantic && python3 -m unittest test_exec_computed -v -> 2/2 OK - cd tests/semantic && python3 -m unittest test_image_atomics_guard -v -> 6/6 OK - python3 -m unittest discover -s tests -p 'test_docs_*.py' -> 47 OK Needs game files/GPU: no. Claiming: DOC-STALE-OPEN-WORK-TABLE -- update issue #14's Open work table (or add a correction note in #1608) to mark SHADER-1264 and TEST-ATOMIC-GUARD as closed, with the test evidence above. Docs/coordination only, no code.
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

done: RT-LAZY-PIPELINE-F16-TOP-LOCATION -> #1953

<!-- gh-comment-id:7168283394 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): done: RT-LAZY-PIPELINE-F16-TOP-LOCATION -> #1953
Author
Owner

@j-weiner commented on GitHub (Nov 25, 2026):

claiming: DOC-EDITORCONFIG-BASELINE — add conservative EditorConfig charset/final-newline defaults aligned with .gitattributes, without reformatting existing files.

<!-- gh-comment-id:7168323004 --> @j-weiner commented on GitHub (Nov 25, 2026): claiming: DOC-EDITORCONFIG-BASELINE — add conservative EditorConfig charset/final-newline defaults aligned with .gitattributes, without reformatting existing files.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-LIST-VALUE-WAIT-WORK-AWARE-TIMEOUT — taking @DadaCap's finding (#7167966834): make d3d12_xs_list_values.h command-list value wait timeouts work-aware via a portable pausable-clock & cycle-safe producer dependency helper (runtime/src/list_value_wait_budget.h), pausing a gate's timeout while the releaser is executing held work, while an acyclic matching producer write is in flight, or (bounded) while unrelated unblocked submitted work is still running, so world-phase queues stay ordered without raising the idle timeout or deadlocking on unmodelled/cyclic waits.

<!-- gh-comment-id:7168326837 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-LIST-VALUE-WAIT-WORK-AWARE-TIMEOUT — taking @DadaCap's finding (#7167966834): make `d3d12_xs_list_values.h` command-list value wait timeouts work-aware via a portable pausable-clock & cycle-safe producer dependency helper (`runtime/src/list_value_wait_budget.h`), pausing a gate's timeout while the releaser is executing held work, while an acyclic matching producer write is in flight, or (bounded) while unrelated unblocked submitted work is still running, so world-phase queues stay ordered without raising the idle timeout or deadlocking on unmodelled/cyclic waits.
Author
Owner

@BubsMcgee commented on GitHub (Nov 25, 2026):

claiming: XDXR-TITLE-CALL-ARGS — measure and document what the retail executable passes to the seven XboxBvhBuilder.dll imports, and what the shipped DLL's rehydrate path requires. Static analysis of the file only; docs-only PR #1954 (docs/xdxr.md §6/§7, plus docs/selective_re.md for the RE setup). No game data. AI-assisted (opencode).

finding: the title passes ScratchAccelerationStructureData = 0 to RehydrateRaytracingAccelerationStructureBatched2X (measured; Dest, Inputs and Source are set). On #1759 that reaches the address check in runtime/shims/d3d12_com.cpp and the layer rejects the build, so that command list's Close returns E_INVALIDARG and ExecuteCommandLists refuses it. The diagnostic appears once per boot in three runs of a #1759 tree (state-rel4, fspx-1862, rehydrate-1759) and not on main; #1759's synthetic test sets scratch, so it cannot see it. Details are posted on #1759.

finding: tools/import_call_sites.py reports 0 call sites for XboxBvhBuilder.dll on 1.0.2.1 because the title calls the imports as call qword [rip+disp32] directly (FF 15), not through a jmp qword [rip+disp32] thunk. All 27 sites are found by scanning for rip-relative references to the seven IAT slots at 0x6793f78..0x6793fa8; recorded in docs/xdxr.md §6.

<!-- gh-comment-id:7168367395 --> @BubsMcgee commented on GitHub (Nov 25, 2026): claiming: XDXR-TITLE-CALL-ARGS — measure and document what the retail executable passes to the seven `XboxBvhBuilder.dll` imports, and what the shipped DLL's rehydrate path requires. Static analysis of the file only; docs-only PR #1954 (`docs/xdxr.md` §6/§7, plus `docs/selective_re.md` for the RE setup). No game data. AI-assisted (opencode). finding: the title passes `ScratchAccelerationStructureData = 0` to `RehydrateRaytracingAccelerationStructureBatched2X` (measured; `Dest`, `Inputs` and `Source` are set). On #1759 that reaches the address check in `runtime/shims/d3d12_com.cpp` and the layer rejects the build, so that command list's `Close` returns `E_INVALIDARG` and `ExecuteCommandLists` refuses it. The diagnostic appears once per boot in three runs of a #1759 tree (state-rel4, fspx-1862, rehydrate-1759) and not on main; #1759's synthetic test sets scratch, so it cannot see it. Details are posted on #1759. finding: `tools/import_call_sites.py` reports 0 call sites for `XboxBvhBuilder.dll` on 1.0.2.1 because the title calls the imports as `call qword [rip+disp32]` directly (FF 15), not through a `jmp qword [rip+disp32]` thunk. All 27 sites are found by scanning for rip-relative references to the seven IAT slots at `0x6793f78`..`0x6793fa8`; recorded in `docs/xdxr.md` §6.
Author
Owner

@j-weiner commented on GitHub (Nov 25, 2026):

done: DOC-EDITORCONFIG-BASELINE -> #1955

<!-- gh-comment-id:7168377567 --> @j-weiner commented on GitHub (Nov 25, 2026): done: DOC-EDITORCONFIG-BASELINE -> #1955
Author
Owner

@HasiKe commented on GitHub (Nov 25, 2026):

finding: the compute pipeline the queues wait behind after the first world frame (DadaCap's correction, "not yet named the program") is Hindirect_diffuse_lighting_CS_ScreenProbes_ActivateRays_d60186e6_Wrapped, 15,931,212 bytes of SPIR-V, about 32 times the mean of the 26,503 translated modules (497 KB; the largest is 25.6 MB). The source program is large in its own right too: about 77,000 lines of disassembly with about 11,900 branches, so the size is not only translator overhead.

  • Run: RTX 2070 SUPER, NVIDIA 616.56, Windows 11, main 71a769d7d, LEONIDA_TITLE_WINDOWS_MB=4096 LEONIDA_ARENA_MB=4096 LEONIDA_TITLE_WATCHDOG=0 LEONIDA_CONSOLE_FIX_US=0 LEONIDA_TRACE_PIPELINE_COMPILE=1. Its pipeline-compile-begin (trigger dispatch) comes at +291 s and has no matching end when the run is stopped at 900 s. It is the only build left open. The slowest one that does finish is library/lib_cs_01213 (25 s, 2.3 MB).
  • Alone: vk_pipeline_check <work>/shaders/spirv <empty cache> --jobs 1 --start 20767 --count 1 is still in vkCreateComputePipelines after 545 s, so the driver itself takes that long; the runtime's locking does not cause it. A full make_game.py pipelines stage looks fast only because the seeded cache already holds it. The runtime's key differs, so that cache entry does not help.
  • Where to look: what in the translated control flow costs NVIDIA's compiler that long (tools/rdna2spirv.py). A smaller lowering of its branches would fix the stall at the source; that is a hypothesis until measured. Until then, LEONIDA_ASYNC_PIPELINES=1 should let the queues go on while it builds (testing that now), and a run long enough for the build to finish should leave it in the session cache.

Program names and sizes only. AI-assisted (Claude Code).

<!-- gh-comment-id:7168381352 --> @HasiKe commented on GitHub (Nov 25, 2026): finding: the compute pipeline the queues wait behind after the first world frame (DadaCap's [correction](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7163127774), "not yet named the program") is `Hindirect_diffuse_lighting_CS_ScreenProbes_ActivateRays_d60186e6_Wrapped`, **15,931,212 bytes of SPIR-V**, about 32 times the mean of the 26,503 translated modules (497 KB; the largest is 25.6 MB). The source program is large in its own right too: about 77,000 lines of disassembly with about 11,900 branches, so the size is not only translator overhead. - **Run:** RTX 2070 SUPER, NVIDIA 616.56, Windows 11, `main` 71a769d7d, `LEONIDA_TITLE_WINDOWS_MB=4096 LEONIDA_ARENA_MB=4096 LEONIDA_TITLE_WATCHDOG=0 LEONIDA_CONSOLE_FIX_US=0 LEONIDA_TRACE_PIPELINE_COMPILE=1`. Its `pipeline-compile-begin` (trigger `dispatch`) comes at +291 s and has no matching end when the run is stopped at 900 s. It is the only build left open. The slowest one that does finish is `library/lib_cs_01213` (25 s, 2.3 MB). - **Alone:** `vk_pipeline_check <work>/shaders/spirv <empty cache> --jobs 1 --start 20767 --count 1` is still in `vkCreateComputePipelines` after 545 s, so the driver itself takes that long; the runtime's locking does not cause it. A full `make_game.py` pipelines stage looks fast only because the seeded cache already holds it. The runtime's key differs, so that cache entry does not help. - **Where to look:** what in the translated control flow costs NVIDIA's compiler that long (`tools/rdna2spirv.py`). A smaller lowering of its branches would fix the stall at the source; that is a hypothesis until measured. Until then, `LEONIDA_ASYNC_PIPELINES=1` should let the queues go on while it builds (testing that now), and a run long enough for the build to finish should leave it in the session cache. Program names and sizes only. AI-assisted (Claude Code).
Author
Owner

@Zalthor commented on GitHub (Nov 25, 2026):

Verification batch 13: 7 open pull requests opened in the last hour or so that have tests and queued or no CI (#1917–#1939). Each diff (merge-base..head) was applied to its own clean worktree at main 9e7720c9e. Environment: Windows 10, CPU only, no game files, TEMP on C:. The python -I test files ran on CPython 3.12, as in CI's Windows job. Translator PRs also ran the full semantic suite. AI-assisted (Claude Code). Same method as batches 1 to 12.

Summary: all 7 apply cleanly. 6 pass. #1936's new interrupt test fails on Windows most of the time (below). None adds a failure to the repo-wide checks; test_runner_calls_all_tests and test_tool_stdout_encoding are already red on main.

New tests fail on unpatched main and pass with the change

  • #1917 (windows-boot state-relative input): 12 new tests; on main the test file errors out before running them.
  • #1930 (--bary-fallback computed I/J): 22 new tests fail on main. The full semantic suite passes with it (0 failed files). Its new semantic file fails only when run outside the suite runner (support import).
  • #1933 (f64 literal sources): 12 new tests fail on main. Full semantic suite: 0 failed files.
  • #1938 (vk_model_fuzz oracle): 10 new tests; on main the test file errors out before running them.
  • #1939 (SDWA sign-extend with shifts): 1 new test fails on main. Full semantic suite: 0 failed files.

#1923 (build llvm-mc 23.1.5 by default) changes existing tests and adds no new test functions. Its 3 changed test files fail on main and pass with it. The other make_game test files show the same results with and without it (that run was on 3.10, so it settles nothing either way).

#1936: test_serial_interrupt_returns_130_and_prints_interrupted is flaky or failing on Windows

This new test interrupts a serial run whose child module sleeps for 5 s, then asserts the runner returns in under 4 s. With #1936 applied on CPython 3.12, I ran tests/test_run_semantic_tests.py alone three times. It failed twice (elapsed 5.19 s and 5.16 s) and passed once. It also failed in the parallel run (5.25 s).

The failing times are just over the child's 5 s sleep. So on Windows, the serial path sometimes doesn't stop the active subprocess, and the runner waits for the child to finish. That's the behaviour the PR sets out to fix, so this looks like a real gap on Windows rather than only a tight bound. The file's other new tests pass.

Not covered: no Linux or macOS run, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.

<!-- gh-comment-id:7168422381 --> @Zalthor commented on GitHub (Nov 25, 2026): Verification batch 13: 7 open pull requests opened in the last hour or so that have tests and queued or no CI (#1917–#1939). Each diff (merge-base..head) was applied to its own clean worktree at `main` `9e7720c9e`. Environment: Windows 10, CPU only, no game files, `TEMP` on `C:`. The `python -I` test files ran on CPython 3.12, as in CI's Windows job. Translator PRs also ran the full semantic suite. AI-assisted (Claude Code). Same method as batches [1](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157070042) to [12](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7167345184). **Summary: all 7 apply cleanly. 6 pass. #1936's new interrupt test fails on Windows most of the time (below).** None adds a failure to the repo-wide checks; `test_runner_calls_all_tests` and `test_tool_stdout_encoding` are already red on `main`. ### New tests fail on unpatched `main` and pass with the change - **#1917** (`windows-boot` state-relative input): 12 new tests; on `main` the test file errors out before running them. - **#1930** (`--bary-fallback` computed I/J): 22 new tests fail on `main`. The full semantic suite passes with it (0 failed files). Its new semantic file fails only when run outside the suite runner (`support` import). - **#1933** (f64 literal sources): 12 new tests fail on `main`. Full semantic suite: 0 failed files. - **#1938** (`vk_model_fuzz` oracle): 10 new tests; on `main` the test file errors out before running them. - **#1939** (SDWA sign-extend with shifts): 1 new test fails on `main`. Full semantic suite: 0 failed files. **#1923** (build `llvm-mc` 23.1.5 by default) changes existing tests and adds no new test functions. Its 3 changed test files fail on `main` and pass with it. The other `make_game` test files show the same results with and without it (that run was on 3.10, so it settles nothing either way). ### #1936: `test_serial_interrupt_returns_130_and_prints_interrupted` is flaky or failing on Windows This new test interrupts a serial run whose child module sleeps for 5 s, then asserts the runner returns in under 4 s. With #1936 applied on CPython 3.12, I ran `tests/test_run_semantic_tests.py` alone three times. It failed twice (`elapsed` 5.19 s and 5.16 s) and passed once. It also failed in the parallel run (5.25 s). The failing times are just over the child's 5 s sleep. So on Windows, the serial path sometimes doesn't stop the active subprocess, and the runner waits for the child to finish. That's the behaviour the PR sets out to fix, so this looks like a real gap on Windows rather than only a tight bound. The file's other new tests pass. Not covered: no Linux or macOS run, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

claiming: GUEST-SCENE-OUTPUT-OWNERSHIP - Two synthetic guest-scene runs that pass the empty-directory check for the same --out can race. The late runner sees the first run's logs directory, but writes its own failure report into the shared target before the active run can publish. I will claim the logs directory before any report handling and add a deterministic synthetic regression. No game files or GPU. AI-assisted with Codex.

<!-- gh-comment-id:7168448353 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): claiming: GUEST-SCENE-OUTPUT-OWNERSHIP - Two synthetic guest-scene runs that pass the empty-directory check for the same --out can race. The late runner sees the first run's logs directory, but writes its own failure report into the shared target before the active run can publish. I will claim the logs directory before any report handling and add a deterministic synthetic regression. No game files or GPU. AI-assisted with Codex.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-LIST-VALUE-WAIT-WORK-AWARE-TIMEOUT -> #1957 (cc @DadaCap re #7167966834 — work-aware pausable timeout clock + cycle-safe producer dependency graph in runtime/src/list_value_wait_budget.h wired into runtime/shims/d3d12_xs_list_values.h; 10 portable sanitizer-verified test groups in list_value_wait_budget_test)

<!-- gh-comment-id:7168494351 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-LIST-VALUE-WAIT-WORK-AWARE-TIMEOUT -> #1957 (cc @DadaCap re #7167966834 — work-aware pausable timeout clock + cycle-safe producer dependency graph in `runtime/src/list_value_wait_budget.h` wired into `runtime/shims/d3d12_xs_list_values.h`; 10 portable sanitizer-verified test groups in `list_value_wait_budget_test`)
Author
Owner

@j-weiner commented on GitHub (Nov 25, 2026):

claiming: GPU-IMGSTORE-CUBE-VOLTA — investigate and fix the synthetic cs_imgstore_cube failure on Tesla V100/Volta (r32 sint cube storage writes), with a focused regression check. No game files; hardware-specific validation if available.

<!-- gh-comment-id:7168496444 --> @j-weiner commented on GitHub (Nov 25, 2026): claiming: GPU-IMGSTORE-CUBE-VOLTA — investigate and fix the synthetic `cs_imgstore_cube` failure on Tesla V100/Volta (`r32 sint` cube storage writes), with a focused regression check. No game files; hardware-specific validation if available.
Author
Owner

@lgr123 commented on GitHub (Nov 25, 2026):

claiming: WINE-PREFIX-RUNNER-OWNERSHIP — protect the Wine test runner's temporary drive mapping and persistent-server teardown from overlapping runners on the same prefix. On public main 9e7720c9, two real run_wine_tests.py processes used one disposable Linux prefix and synthetic Python children. Both initially read the same mapped fixture. The first runner then passed and released its D: link; the second failed while still active because the link disappeared. This also guards the server ownership race I reported above. I’ll add a data-free subprocess regression, including reuse of the prefix after teardown. AI-assisted.

<!-- gh-comment-id:7168516497 --> @lgr123 commented on GitHub (Nov 25, 2026): claiming: WINE-PREFIX-RUNNER-OWNERSHIP — protect the Wine test runner's temporary drive mapping and persistent-server teardown from overlapping runners on the same prefix. On public main `9e7720c9`, two real `run_wine_tests.py` processes used one disposable Linux prefix and synthetic Python children. Both initially read the same mapped fixture. The first runner then passed and released its `D:` link; the second failed while still active because the link disappeared. This also guards the server ownership race I reported above. I’ll add a data-free subprocess regression, including reuse of the prefix after teardown. AI-assisted.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

done: GUEST-SCENE-OUTPUT-OWNERSHIP -> #1958

<!-- gh-comment-id:7168517210 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): done: GUEST-SCENE-OUTPUT-OWNERSHIP -> #1958
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

claim: DECODE-F64-LIT-AND-SPECIAL-SRCS — decode GFX10 special source operands 235..239 (src_shared_base..src_pops_exiting_wave_id) and tag/format binary64 (f64) 32-bit literal sources (code == 255) with f64_literal/literal_hex_digits in tools/rdna2_decode.py so both decode_bytes() and disasm_bytes() match shader_ir.parse_line() and translate accurately through tools/rdna2spirv.py.

<!-- gh-comment-id:7168521437 --> @ShotTechOp commented on GitHub (Nov 25, 2026): claim: `DECODE-F64-LIT-AND-SPECIAL-SRCS` — decode GFX10 special source operands `235..239` (`src_shared_base`..`src_pops_exiting_wave_id`) and tag/format binary64 (`f64`) 32-bit literal sources (`code == 255`) with `f64_literal`/`literal_hex_digits` in `tools/rdna2_decode.py` so both `decode_bytes()` and `disasm_bytes()` match `shader_ir.parse_line()` and translate accurately through `tools/rdna2spirv.py`.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-DUAL-SOURCE-FRAGMENT-PERF-AND-DUP-LOC — fix duplicate Location 1 output handling (refuse instead of silently overwriting second) and duplicate Location decoration handling in runtime/src/dual_source_fragment.h, stop scanning at OpFunction (preamble-only), drop dead output_pointers tracking, and replace 5 std::map/std::set trees + temporary std::vector insertion with flat preamble tables + stack array; expand runtime/test/dual_source_fragment_test.cpp (0 CMakeLists.txt changes, no game files).

<!-- gh-comment-id:7168523390 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-DUAL-SOURCE-FRAGMENT-PERF-AND-DUP-LOC — fix duplicate Location 1 output handling (refuse instead of silently overwriting `second`) and duplicate Location decoration handling in `runtime/src/dual_source_fragment.h`, stop scanning at `OpFunction` (preamble-only), drop dead `output_pointers` tracking, and replace 5 `std::map`/`std::set` trees + temporary `std::vector` insertion with flat preamble tables + stack array; expand `runtime/test/dual_source_fragment_test.cpp` (0 `CMakeLists.txt` changes, no game files).
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

done: DECODE-F64-LIT-AND-SPECIAL-SRCS -> #1959 (https://github.com/ubiquitarianism/leonida/pull/1959)

<!-- gh-comment-id:7168525549 --> @ShotTechOp commented on GitHub (Nov 25, 2026): done: `DECODE-F64-LIT-AND-SPECIAL-SRCS` -> #1959 (https://github.com/ubiquitarianism/leonida/pull/1959)
Author
Owner

@Christopher-Sundeby commented on GitHub (Nov 25, 2026):

Superseded by the controlled runs. The "0 slots left to retries" statement below is wrong (an earlier report in run 2 shows 77), and run 3A waited at a first-run page until 314 s, so it is not comparable.

Follow-up to my lib_cs_01144 finding (RTX 3060 Ti 8 GB, NVIDIA 621.24, main b0f3d3998, the same switches as there). LEONIDA_CONSOLE_FIX_US=0 removes the hang here too, although the heap reports showed 0 slots "left to retries past the budget". So DadaCap's fix-budget explanation (7162983619) also holds on 8 GB Ampere. Either the budget nulls slots that counter doesn't count, or it does so in an interval that no report covered.

run extra switches device loss ran submissions gates held / met / timed out how it ended
run 2 (in the finding) none yes, ~134 s, 104 type-4 entries, lib_cs_01144 162 s 5,429 8 / 0 / 8 (earlier run) device lost
3A LEONIDA_CONSOLE_FIX_US=0 no 460 s 20,337 (10.6 frames/s at 430 s) 15 / 14 / 1 0xc0000005, address ending 0x65ff
3B 3A + LEONIDA_VALUE_WAIT_TIMEOUT_MS=30000 LEONIDA_MAP_READBACK=1 no 146 s 5,291+ 0 / 0 / 0 at the last summary 0xc0000005, address ending 0x65ff
  • Both 3A and 3B end in the known FSR stop: an access violation whose address ends in 0x65ff, after amd_fidelityfx_upscaler_xbox.dll is mapped at run time. The DLL is mapped by the loader, so Windows names the module "unknown". Each run logged 845 no translated compute shader for FSPX lines, so this is the #1862 gap (my shaders were translated before it), the same stop as kurrutako's and Snooozs's runs.
  • No VK_EXT_device_fault entries in either run.
  • Both runs (and run 2) also logged the false inside one gate Signal ... for 18446744073709551615 ms line, fixed by #1944.

Correction (how far each run got): the time and submission counts above don't measure progress. All three runs reach the same stage, the first RehydrateRaytracingAccelerationStructureBatched2X call after the story-load texture streaming: run 2 at about 134 s / 5,429 submissions (its device loss is logged just before that call), 3B at about 117 s / 5,291, and 3A only at about 425 s / 20,200, most likely because it waited at a first-run page for input. So the comparison is that 3A and 3B pass the point where run 2 hung without a loss. 3B reaches it at nearly the same time as run 2, but it also changes two other switches, and each is a single run, so this is suggestive, not conclusive.

One run each, counts and offsets only, no game data. AI-assisted (Claude Code).

<!-- gh-comment-id:7168540607 --> @Christopher-Sundeby commented on GitHub (Nov 25, 2026): > **Superseded by [the controlled runs](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7169227767).** The "0 slots left to retries" statement below is wrong (an earlier report in run 2 shows 77), and run 3A waited at a first-run page until 314 s, so it is not comparable. Follow-up to my [`lib_cs_01144` finding](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7167719574) (RTX 3060 Ti 8 GB, NVIDIA 621.24, `main` b0f3d3998, the same switches as there). **`LEONIDA_CONSOLE_FIX_US=0` removes the hang here too**, although the heap reports showed 0 slots "left to retries past the budget". So DadaCap's fix-budget explanation ([7162983619](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7162983619)) also holds on 8 GB Ampere. Either the budget nulls slots that counter doesn't count, or it does so in an interval that no report covered. | run | extra switches | device loss | ran | submissions | gates held / met / timed out | how it ended | |---|---|---|---|---|---|---| | run 2 (in the finding) | none | **yes**, ~134 s, 104 type-4 entries, `lib_cs_01144` | 162 s | 5,429 | 8 / 0 / 8 (earlier run) | device lost | | 3A | `LEONIDA_CONSOLE_FIX_US=0` | no | 460 s | 20,337 (10.6 frames/s at 430 s) | 15 / 14 / 1 | `0xc0000005`, address ending `0x65ff` | | 3B | 3A + `LEONIDA_VALUE_WAIT_TIMEOUT_MS=30000 LEONIDA_MAP_READBACK=1` | no | 146 s | 5,291+ | 0 / 0 / 0 at the last summary | `0xc0000005`, address ending `0x65ff` | - Both 3A and 3B end in the known FSR stop: an access violation whose address ends in `0x65ff`, after `amd_fidelityfx_upscaler_xbox.dll` is mapped at run time. The DLL is mapped by the loader, so Windows names the module "unknown". Each run logged 845 `no translated compute shader for FSPX` lines, so this is the #1862 gap (my shaders were translated before it), the same stop as kurrutako's and Snooozs's runs. - No `VK_EXT_device_fault` entries in either run. - Both runs (and run 2) also logged the false `inside one gate Signal ... for 18446744073709551615 ms` line, fixed by #1944. **Correction (how far each run got):** the time and submission counts above don't measure progress. All three runs reach the same stage, the first `RehydrateRaytracingAccelerationStructureBatched2X` call after the story-load texture streaming: run 2 at about 134 s / 5,429 submissions (its device loss is logged just before that call), 3B at about 117 s / 5,291, and 3A only at about 425 s / 20,200, most likely because it waited at a first-run page for input. So the comparison is that 3A and 3B pass the point where run 2 hung without a loss. 3B reaches it at nearly the same time as run 2, but it also changes two other switches, and each is a single run, so this is suggestive, not conclusive. One run each, counts and offsets only, no game data. AI-assisted (Claude Code).
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

claiming: BOOT-TRACE-MAP-NAME - The default text summary in tools/boot_trace.py crashes when a map event has no string module name, so later events and the exit code never print. I will render an unknown-module placeholder while preserving valid names, relocation markers and the JSON data. Reproduced with synthetic JSONL on main. No game files or GPU. AI-assisted with Codex.

<!-- gh-comment-id:7168564771 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): claiming: BOOT-TRACE-MAP-NAME - The default text summary in tools/boot_trace.py crashes when a map event has no string module name, so later events and the exit code never print. I will render an unknown-module placeholder while preserving valid names, relocation markers and the JSON data. Reproduced with synthetic JSONL on main. No game files or GPU. AI-assisted with Codex.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-DUAL-SOURCE-FRAGMENT-PERF-AND-DUP-LOC -> #1961 (refuses duplicate Location 1 outputs / duplicate Location decorations instead of silent overwrite; preamble-only flat scan 2.59x-4.27x faster on rewrites, 54.32x on misses)

<!-- gh-comment-id:7168582179 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-DUAL-SOURCE-FRAGMENT-PERF-AND-DUP-LOC -> #1961 (refuses duplicate Location 1 outputs / duplicate Location decorations instead of silent overwrite; preamble-only flat scan 2.59x-4.27x faster on rewrites, 54.32x on misses)
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-VULKAN13-FEATURES-ENUM-AND-PROC-SAFETY — harden runtime/src/vulkan13_features.h for Vulkan 1.2/MoltenVK and 1.3 devices: check VkResult on both vkEnumerateDeviceExtensionProperties calls, handle VK_INCOMPLETE retry and count == 0/short-fill resize safely, guard device_proc_or_khr against null callback/name and avoid per-call heap std::string allocations via a stack buffer, and keep compute_full_subgroups consistent with subgroup_size_control on 1.3; expand runtime/test/vulkan13_features_test.cpp (0 CMakeLists.txt changes, no game files).

<!-- gh-comment-id:7168584905 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-VULKAN13-FEATURES-ENUM-AND-PROC-SAFETY — harden `runtime/src/vulkan13_features.h` for Vulkan 1.2/MoltenVK and 1.3 devices: check `VkResult` on both `vkEnumerateDeviceExtensionProperties` calls, handle `VK_INCOMPLETE` retry and `count == 0`/short-fill resize safely, guard `device_proc_or_khr` against null callback/name and avoid per-call heap `std::string` allocations via a stack buffer, and keep `compute_full_subgroups` consistent with `subgroup_size_control` on 1.3; expand `runtime/test/vulkan13_features_test.cpp` (0 `CMakeLists.txt` changes, no game files).
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

done: BOOT-TRACE-MAP-NAME -> #1962

<!-- gh-comment-id:7168598701 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): done: BOOT-TRACE-MAP-NAME -> #1962
Author
Owner

@lgr123 commented on GitHub (Nov 25, 2026):

claiming: GPU-TEST-WORK-OWNERSHIP — overlapping scripts/run_gpu_tests.py --work <same-directory> runs can validate the other run’s shader. Reproduced on 9e7720c9 with two Linux processes and synthetic translator/GPU stand-ins. The bad cs_lds module fails when run alone. If a second run writes a good module into the same spirv/cs_lds.spv before the first reads it, the first incorrectly reports 1/1 passed. I’ll prevent simultaneous use of one work directory while preserving sequential replay and distinct directories. No game files or GPU required. AI-assisted.

<!-- gh-comment-id:7168627544 --> @lgr123 commented on GitHub (Nov 25, 2026): claiming: GPU-TEST-WORK-OWNERSHIP — overlapping `scripts/run_gpu_tests.py --work <same-directory>` runs can validate the other run’s shader. Reproduced on `9e7720c9` with two Linux processes and synthetic translator/GPU stand-ins. The bad `cs_lds` module fails when run alone. If a second run writes a good module into the same `spirv/cs_lds.spv` before the first reads it, the first incorrectly reports `1/1 passed`. I’ll prevent simultaneous use of one work directory while preserving sequential replay and distinct directories. No game files or GPU required. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-VULKAN13-FEATURES-ENUM-AND-PROC-SAFETY -> #1963 (checks VkResult on both vkEnumerateDeviceExtensionProperties calls with VK_INCOMPLETE retry & short-fill resize, guards device_proc_or_khr with stack buffer, consistent 1.3 compute_full_subgroups gating)

<!-- gh-comment-id:7168645438 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-VULKAN13-FEATURES-ENUM-AND-PROC-SAFETY -> #1963 (checks VkResult on both vkEnumerateDeviceExtensionProperties calls with VK_INCOMPLETE retry & short-fill resize, guards device_proc_or_khr with stack buffer, consistent 1.3 compute_full_subgroups gating)
Author
Owner

@DadaCap commented on GitHub (Nov 25, 2026):

@Christopher-Sundeby thank you, that is an important case for #1849: 0 slots left to the budget means something else can leave that program's inputs empty, and I should not read my two cards as the only way in. The hang needs one thing: lib_cs_01144 divides by two sizes it reads from the buffer at descriptor s5/0 (and takes the source size from s4/0); if they read 0 its loop bounds are infinite. So the question is why s5/0 or its contents are zero in your run. The probe that answered it here, no build needed:

LEONIDA_DEVICE_FAULT=1 LEONIDA_COMPUTE_INPUTS=lib_cs_01144 LEONIDA_COMPUTE_INPUT_SLOTS=4/0,4/1,5/0,5/1

and then the compute-input lines of the last execute. Three outcomes: words=[0 ...] title-words=[...] with a null is a descriptor the copy lost (the budget, or another path); a good descriptor whose cpu-sample is zero is a buffer nobody has filled yet; no GPU-visible bytes is a table without backing. With LEONIDA_ASYNC_PIPELINES=1 the second is possible without any bug in the descriptors, since a dispatch whose pipeline is not built yet is skipped and whatever it should have written stays as it was. I have not checked whether the size buffer is written by a dispatch. A run without that switch, or with the probe, would tell them apart. Counts only. AI-assisted (Claude Code).

<!-- gh-comment-id:7168668167 --> @DadaCap commented on GitHub (Nov 25, 2026): @Christopher-Sundeby thank you, that is an important case for #1849: 0 slots left to the budget means something else can leave that program's inputs empty, and I should not read my two cards as the only way in. The hang needs one thing: `lib_cs_01144` divides by two sizes it reads from the buffer at descriptor `s5/0` (and takes the source size from `s4/0`); if they read 0 its loop bounds are infinite. So the question is why `s5/0` or its contents are zero in your run. The probe that answered it here, no build needed: `LEONIDA_DEVICE_FAULT=1 LEONIDA_COMPUTE_INPUTS=lib_cs_01144 LEONIDA_COMPUTE_INPUT_SLOTS=4/0,4/1,5/0,5/1` and then the `compute-input` lines of the last execute. Three outcomes: `words=[0 ...] title-words=[...]` with a null is a descriptor the copy lost (the budget, or another path); a good descriptor whose `cpu-sample` is zero is a buffer nobody has filled yet; `no GPU-visible bytes` is a table without backing. With `LEONIDA_ASYNC_PIPELINES=1` the second is possible without any bug in the descriptors, since a dispatch whose pipeline is not built yet is skipped and whatever it should have written stays as it was. I have not checked whether the size buffer is written by a dispatch. A run without that switch, or with the probe, would tell them apart. Counts only. AI-assisted (Claude Code).
Author
Owner

@kotekompotek commented on GitHub (Nov 25, 2026):

finding: on this machine the retail-package tests run for the first time; two DLL-driven results diverge from the behaviour recorded in the test docs.

Setup: partial Xbox 1.0.2.1 package (game exe, shaders/data/script/textures/common RPFs, gameos.xvd, all 16 package DLLs; world/ttdb/movies absent), LEONIDA_GAME_DIR pointed at it. Windows 11 24H2, GTX 1050, driver 582.28, Debug build of main e0fd14407.

  • pe_loader_test optional package section: all 16 DLLs map at 0x180000000, 0 unimplemented imports, every exception-directory entry resolves (111 checks, 0 failures). Baseline confirmed on a second host.
  • bvh_builder_test with LEONIDA_BVH_DEVICE=vulkan (host runtime has no ID3D12Device11 here): XboxBvhBuilder.dll initialises, the Xbox-ABI proxy wraps the Vulkan device as ID3D12Device11, the constructor calls CreateRootSignature and CreateComputePipelineState, then throws E_FAIL — FAIL "constructor returns or gives up through TerminateProcess". The layer logs "root parameter 2 does not fit in the user SGPRs from s16 (spill array not modelled)" on the root signature first.
  • fsr_dispatch_test: steps 1-5 pass (ffxConfigure, CPU queries, GET_VERSIONS 4.1.1). ffxCreateContext(backend 0x1000002) stops at the DLL's own HRESULT check with E_INVALIDARG on both the GTX 1050 hardware adapter and WARP; the R32_UINT PC stand-in for the R9G9B9E5_SHAREDEXP UAV texture does not change it — FAIL "ffxCreateContext succeeds with the PC stand-in". The header records WARP creating the context as-is, so the E_INVALIDARG here is a different stop: either this newer WARP build (same drift as the close-parity finding) now refuses earlier, or a proxied slot answers differently on this machine. Device slots hit: 14x5 15x9 18x3 19x6 76x4 (with stand-in also 27x1, 38x1); no [rt] error line, so the rejected argument is checked inside the DLL.

Repro: build the three tests, set LEONIDA_GAME_DIR to the package root, run. No game data in any output; counts only.

<!-- gh-comment-id:7168668241 --> @kotekompotek commented on GitHub (Nov 25, 2026): finding: on this machine the retail-package tests run for the first time; two DLL-driven results diverge from the behaviour recorded in the test docs. Setup: partial Xbox 1.0.2.1 package (game exe, shaders/data/script/textures/common RPFs, gameos.xvd, all 16 package DLLs; world/ttdb/movies absent), LEONIDA_GAME_DIR pointed at it. Windows 11 24H2, GTX 1050, driver 582.28, Debug build of main e0fd14407. - pe_loader_test optional package section: all 16 DLLs map at 0x180000000, 0 unimplemented imports, every exception-directory entry resolves (111 checks, 0 failures). Baseline confirmed on a second host. - bvh_builder_test with LEONIDA_BVH_DEVICE=vulkan (host runtime has no ID3D12Device11 here): XboxBvhBuilder.dll initialises, the Xbox-ABI proxy wraps the Vulkan device as ID3D12Device11, the constructor calls CreateRootSignature and CreateComputePipelineState, then throws E_FAIL — FAIL "constructor returns or gives up through TerminateProcess". The layer logs "root parameter 2 does not fit in the user SGPRs from s16 (spill array not modelled)" on the root signature first. - fsr_dispatch_test: steps 1-5 pass (ffxConfigure, CPU queries, GET_VERSIONS 4.1.1). ffxCreateContext(backend 0x1000002) stops at the DLL's own HRESULT check with E_INVALIDARG on both the GTX 1050 hardware adapter and WARP; the R32_UINT PC stand-in for the R9G9B9E5_SHAREDEXP UAV texture does not change it — FAIL "ffxCreateContext succeeds with the PC stand-in". The header records WARP creating the context as-is, so the E_INVALIDARG here is a different stop: either this newer WARP build (same drift as the close-parity finding) now refuses earlier, or a proxied slot answers differently on this machine. Device slots hit: 14x5 15x9 18x3 19x6 76x4 (with stand-in also 27x1, 38x1); no [rt] error line, so the rejected argument is checked inside the DLL. Repro: build the three tests, set LEONIDA_GAME_DIR to the package root, run. No game data in any output; counts only.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-RESOURCE-DETILE-FAST-RUNS — accelerate detile_surface_64k and tile_surface_64k in runtime/src/resource_detile.h using compile-time contiguous X micro-runs (8/16/16/16/32-byte copies per Bpe), macro-tile inner loops without per-element division/modulo, and exact-length contiguous tail copies; add bit-exact edge-width coverage to runtime/test/resource_detile_test.cpp (0 CMakeLists.txt changes, no game files).

<!-- gh-comment-id:7168674568 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-RESOURCE-DETILE-FAST-RUNS — accelerate `detile_surface_64k` and `tile_surface_64k` in `runtime/src/resource_detile.h` using compile-time contiguous X micro-runs (8/16/16/16/32-byte copies per `Bpe`), macro-tile inner loops without per-element division/modulo, and exact-length contiguous tail copies; add bit-exact edge-width coverage to `runtime/test/resource_detile_test.cpp` (0 `CMakeLists.txt` changes, no game files).
Author
Owner

@j-weiner commented on GitHub (Nov 25, 2026):

releasing: GPU-IMGSTORE-CUBE-VOLTA — the synthetic cube-store fixture passes on this machine (RTX 5090, NVIDIA 621.14, Windows 11 Pro 26200), so the V100-only failure is not reproduced and I cannot validate a hardware-specific fix here. I posted the test result to #1492. No code change.

<!-- gh-comment-id:7168676787 --> @j-weiner commented on GitHub (Nov 25, 2026): releasing: GPU-IMGSTORE-CUBE-VOLTA — the synthetic cube-store fixture passes on this machine (RTX 5090, NVIDIA 621.14, Windows 11 Pro 26200), so the V100-only failure is not reproduced and I cannot validate a hardware-specific fix here. I posted the test result to #1492. No code change.
Author
Owner

@lgr123 commented on GitHub (Nov 25, 2026):

done: WINE-PREFIX-RUNNER-OWNERSHIP -> #1964

<!-- gh-comment-id:7168711877 --> @lgr123 commented on GitHub (Nov 25, 2026): done: WINE-PREFIX-RUNNER-OWNERSHIP -> #1964
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-RESOURCE-DETILE-FAST-RUNS -> #1965 (compile-time contiguous X micro-runs + macro-tile blocking in runtime/src/resource_detile.h; bit-exact A/B -O2: 1.56x-12.41x faster tile, 1.24x-12.46x faster detile)

<!-- gh-comment-id:7168737078 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-RESOURCE-DETILE-FAST-RUNS -> #1965 (compile-time contiguous X micro-runs + macro-tile blocking in `runtime/src/resource_detile.h`; bit-exact A/B -O2: 1.56x-12.41x faster tile, 1.24x-12.46x faster detile)
Author
Owner

@j-weiner commented on GitHub (Nov 25, 2026):

claiming: DOC-V100-CUBE-STORE-STATUS — document the reported Tesla V100 failure of the synthetic cs_imgstore_cube GPU test in docs/testing.md, link #1492, and state that the cause/workaround is unconfirmed. Docs-only; no game data.

<!-- gh-comment-id:7168739156 --> @j-weiner commented on GitHub (Nov 25, 2026): claiming: DOC-V100-CUBE-STORE-STATUS — document the reported Tesla V100 failure of the synthetic `cs_imgstore_cube` GPU test in `docs/testing.md`, link #1492, and state that the cause/workaround is unconfirmed. Docs-only; no game data.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-DESCRIPTOR-TABLE-BULK-COPY-AND-DIRTY-CAP — optimize runtime/src/descriptor_table.h on the per-frame GPU descriptor table flush hot path: bulk memcpy contiguous DescriptorEntry arrays in write_to_buffer(), build_gpu_buffer(), and read_slots() (guarded by layout static_asserts), stop accumulating unbounded changed_slots_ once all_changed_ is already true (and promote to all_changed_ once dirty slots exceed half the table capacity), and skip redundant hash_descriptor_key recomputation inside insert_locked() when retrying after grow_locked(); expand runtime/test/descriptor_table_test.cpp (0 CMakeLists.txt changes, no game files).

<!-- gh-comment-id:7168739564 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-DESCRIPTOR-TABLE-BULK-COPY-AND-DIRTY-CAP — optimize `runtime/src/descriptor_table.h` on the per-frame GPU descriptor table flush hot path: bulk `memcpy` contiguous `DescriptorEntry` arrays in `write_to_buffer()`, `build_gpu_buffer()`, and `read_slots()` (guarded by layout `static_assert`s), stop accumulating unbounded `changed_slots_` once `all_changed_` is already true (and promote to `all_changed_` once dirty slots exceed half the table capacity), and skip redundant `hash_descriptor_key` recomputation inside `insert_locked()` when retrying after `grow_locked()`; expand `runtime/test/descriptor_table_test.cpp` (0 `CMakeLists.txt` changes, no game files).
Author
Owner

@lgr123 commented on GitHub (Nov 25, 2026):

done: GPU-TEST-WORK-OWNERSHIP -> #1966

<!-- gh-comment-id:7168784452 --> @lgr123 commented on GitHub (Nov 25, 2026): done: GPU-TEST-WORK-OWNERSHIP -> #1966
Author
Owner

@qhukz13 commented on GitHub (Nov 25, 2026):

claiming: RT-GEOMETRY-VIEW-EVICTION - runtime/shims/d3d12_geometry_views.h: once LEONIDA_GEOMETRY_MB is full, resolve() marks a range refused for good and nothing is freed before teardown. Free the views whose title range was released, and let refused ranges retry; extend runtime/test/geometry_views_test.cpp with a small cap. No game files. AI-assisted (Claude Code).

<!-- gh-comment-id:7168808172 --> @qhukz13 commented on GitHub (Nov 25, 2026): claiming: RT-GEOMETRY-VIEW-EVICTION - runtime/shims/d3d12_geometry_views.h: once LEONIDA_GEOMETRY_MB is full, resolve() marks a range refused for good and nothing is freed before teardown. Free the views whose title range was released, and let refused ranges retry; extend runtime/test/geometry_views_test.cpp with a small cap. No game files. AI-assisted (Claude Code).
Author
Owner

@qhukz13 commented on GitHub (Nov 25, 2026):

claiming: VERIFY-1887-1957-PASCAL - independent Windows test runs of #1887 (console-heap V# bitset) and #1957 (list-value wait timeout) on a GeForce GTX 1050 Ti (Pascal, 4 GB), NVIDIA 582.66, Windows 10 19045: full runtime ctest on main and with each PR, results posted on the PRs. AI-assisted (Claude Code).

<!-- gh-comment-id:7168808686 --> @qhukz13 commented on GitHub (Nov 25, 2026): claiming: VERIFY-1887-1957-PASCAL - independent Windows test runs of #1887 (console-heap V# bitset) and #1957 (list-value wait timeout) on a GeForce GTX 1050 Ti (Pascal, 4 GB), NVIDIA 582.66, Windows 10 19045: full runtime ctest on main and with each PR, results posted on the PRs. AI-assisted (Claude Code).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-DESCRIPTOR-TABLE-BULK-COPY-AND-DIRTY-CAP -> #1967 (bulk memcpy in write_to_buffer, build_gpu_buffer, read_slots — 1.23x-2.11x faster on 64k-slot table — plus bounded changed_slots_ compaction and hoisted insert hash)

<!-- gh-comment-id:7168814190 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-DESCRIPTOR-TABLE-BULK-COPY-AND-DIRTY-CAP -> #1967 (bulk memcpy in `write_to_buffer`, `build_gpu_buffer`, `read_slots` — 1.23x-2.11x faster on 64k-slot table — plus bounded `changed_slots_` compaction and hoisted insert hash)
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-RECT-LIST-GEOMETRY-PREAMBLE-AND-TESTS — optimize and harden runtime/src/rect_list_geometry.h (stop scanning the vertex shader at OpFunction, use overflow-safe n > size - i framing check, replace 5 std::map/std::set RB-trees and silent operator[] lookups with flat sorted preamble tables, remove unused head vector, pre-reserve output buffers) and add portable CPU-only unit test runtime/test/rect_list_geometry_test.cpp (no GPU, no game files).

<!-- gh-comment-id:7168816576 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-RECT-LIST-GEOMETRY-PREAMBLE-AND-TESTS — optimize and harden `runtime/src/rect_list_geometry.h` (stop scanning the vertex shader at `OpFunction`, use overflow-safe `n > size - i` framing check, replace 5 `std::map`/`std::set` RB-trees and silent `operator[]` lookups with flat sorted preamble tables, remove unused `head` vector, pre-reserve output buffers) and add portable CPU-only unit test `runtime/test/rect_list_geometry_test.cpp` (no GPU, no game files).
Author
Owner

@AkiraKill333 commented on GitHub (Nov 25, 2026):

done: GPU-TEST-RTX3050-WIN11 -> #1968

<!-- gh-comment-id:7168821838 --> @AkiraKill333 commented on GitHub (Nov 25, 2026): done: GPU-TEST-RTX3050-WIN11 -> #1968
Author
Owner

@j-weiner commented on GitHub (Nov 25, 2026):

done: DOC-V100-CUBE-STORE-STATUS -> #1969

<!-- gh-comment-id:7168844725 --> @j-weiner commented on GitHub (Nov 25, 2026): done: DOC-V100-CUBE-STORE-STATUS -> #1969
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

claiming: RT-UNBOUND-TSHARP-REASONS -- track per-reason refusal counts for unbound T# descriptor bindings (type/samples, layers, format, cube) in runtime/shims/d3d12_vulkan_device.cpp and add synthetic regression tests for 1D, array, cube, and MSAA rules. No game files. AI-assisted (Claude Code).

<!-- gh-comment-id:7168844897 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): claiming: RT-UNBOUND-TSHARP-REASONS -- track per-reason refusal counts for unbound T# descriptor bindings (type/samples, layers, format, cube) in runtime/shims/d3d12_vulkan_device.cpp and add synthetic regression tests for 1D, array, cube, and MSAA rules. No game files. AI-assisted (Claude Code).
Author
Owner

@kotekompotek commented on GitHub (Nov 25, 2026):

finding: two CI failures on current main that are not PR regressions — every open PR rebased after ~15:00 UTC today shows them, with identical signatures.

  • linux-gpu-tools: cs_imgatomic_ext — "6 of 64 sint words differ; first word 32: got 0x0badf00d, expected 0x00000101" (llvmpipe). Seen on the head jobs of #806, #732, #820 and on merged #808's own checks; PRs merged before ~14:52 (#1631, #1732, #1785, #1192, #1827) have clean linux-gpu-tools. A main commit between those windows introduced it.
  • windows: vk_xdxr_postbuild_readback prints "skipped (no Vulkan device with bufferDeviceAddress)" but exits nonzero instead of the ctest skip code, so the job fails on a skip. Same on #806/#820.

Where: linux job 139028491341 / 139095583470 / 139101090181; windows job 139028491215 / 139095582960 / 139101090544. Needs no game files — the first looks like a llvmpipe behaviour change vs an earlier runner image or a real regression in a merged change; the second is a wrong exit code in the test's skip path.

<!-- gh-comment-id:7168864422 --> @kotekompotek commented on GitHub (Nov 25, 2026): finding: two CI failures on current main that are not PR regressions — every open PR rebased after ~15:00 UTC today shows them, with identical signatures. - `linux-gpu-tools`: `cs_imgatomic_ext` — "6 of 64 sint words differ; first word 32: got 0x0badf00d, expected 0x00000101" (llvmpipe). Seen on the head jobs of #806, #732, #820 and on merged #808's own checks; PRs merged before ~14:52 (#1631, #1732, #1785, #1192, #1827) have clean linux-gpu-tools. A main commit between those windows introduced it. - `windows`: `vk_xdxr_postbuild_readback` prints "skipped (no Vulkan device with bufferDeviceAddress)" but exits nonzero instead of the ctest skip code, so the job fails on a skip. Same on #806/#820. Where: linux job 139028491341 / 139095583470 / 139101090181; windows job 139028491215 / 139095582960 / 139101090544. Needs no game files — the first looks like a llvmpipe behaviour change vs an earlier runner image or a real regression in a merged change; the second is a wrong exit code in the test's skip path.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-RECT-LIST-GEOMETRY-PREAMBLE-AND-TESTS -> #1970 (preamble-only scan, overflow-safe framing, flat sorted tables replacing 5 RB-trees + silent map insertions, 1.73x-6.24x faster + new portable CTest rect_list_geometry)

<!-- gh-comment-id:7168896848 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-RECT-LIST-GEOMETRY-PREAMBLE-AND-TESTS -> #1970 (preamble-only scan, overflow-safe framing, flat sorted tables replacing 5 RB-trees + silent map insertions, 1.73x-6.24x faster + new portable CTest `rect_list_geometry`)
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-FRAME-PACER-UNCAP-WAKE-AND-OVERFLOW — fix three concurrency/overflow bugs in runtime/src/frame_pacer.h: notify blocked waiters in set_uncapped() so switching to uncapped mode wakes threads blocked on vblank/latency immediately, saturate give_up timeout deadline computation in wait_locked() against uint64_t wraparound, and avoid signed int64_t/time_point overflow in SteadyFrameClock::wait() via bounded relative wait_for(); expand runtime/test/frame_pacer_test.cpp (0 CMakeLists.txt changes, no game files).

<!-- gh-comment-id:7168928060 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-FRAME-PACER-UNCAP-WAKE-AND-OVERFLOW — fix three concurrency/overflow bugs in `runtime/src/frame_pacer.h`: notify blocked waiters in `set_uncapped()` so switching to uncapped mode wakes threads blocked on vblank/latency immediately, saturate `give_up` timeout deadline computation in `wait_locked()` against `uint64_t` wraparound, and avoid signed `int64_t`/`time_point` overflow in `SteadyFrameClock::wait()` via bounded relative `wait_for()`; expand `runtime/test/frame_pacer_test.cpp` (0 `CMakeLists.txt` changes, no game files).
Author
Owner

@vinceychu commented on GitHub (Nov 25, 2026):

claiming: TEST-RUN-GPU-TESTS-VERSIONED-LLVM-MC, GPU-RTX5090-LINUX, GPU-GB10, GPU-APPLE-M6

<!-- gh-comment-id:7168942812 --> @vinceychu commented on GitHub (Nov 25, 2026): claiming: TEST-RUN-GPU-TESTS-VERSIONED-LLVM-MC, GPU-RTX5090-LINUX, GPU-GB10, GPU-APPLE-M6
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-FRAME-PACER-UNCAP-WAKE-AND-OVERFLOW -> #1971 (notifies blocked waiters in set_uncapped(), saturates give_up timeout arithmetic against uint64 wrap, avoids signed int64 wrap in SteadyFrameClock::wait())

<!-- gh-comment-id:7168970423 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-FRAME-PACER-UNCAP-WAKE-AND-OVERFLOW -> #1971 (notifies blocked waiters in `set_uncapped()`, saturates `give_up` timeout arithmetic against uint64 wrap, avoids signed int64 wrap in `SteadyFrameClock::wait()`)
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-BCPACK-DECODE-FAST-BITWRITER-AND-BPTC — optimize runtime/src/bcpack.cpp (independent of #1935 which only touches bcpack_stream.h): replace per-bit memory-RMW BitWriter with a 128-bit register accumulator (lo/hi) flushing in two 64-bit stores, skip 232-byte BptcState zero stack initialization when neither endpoint nor index uses the zero/history fallback (the >99% steady-state path for i >= 256), use a 256-entry LUT for index_row bit uninterleaving, and add portable CPU-only runtime/test/bcpack_decode_test.cpp verifying bit-exact decode across BC1/BC3/BC4/BC5/BC6H/BC7 (no game files).

<!-- gh-comment-id:7168983247 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-BCPACK-DECODE-FAST-BITWRITER-AND-BPTC — optimize `runtime/src/bcpack.cpp` (independent of #1935 which only touches `bcpack_stream.h`): replace per-bit memory-RMW `BitWriter` with a 128-bit register accumulator (`lo`/`hi`) flushing in two 64-bit stores, skip 232-byte `BptcState zero` stack initialization when neither endpoint nor index uses the zero/history fallback (the >99% steady-state path for `i >= 256`), use a 256-entry LUT for `index_row` bit uninterleaving, and add portable CPU-only `runtime/test/bcpack_decode_test.cpp` verifying bit-exact decode across BC1/BC3/BC4/BC5/BC6H/BC7 (no game files).
Author
Owner

@kurrutako commented on GitHub (Nov 25, 2026):

claiming: RT-SLOT31-CPU-TWIN-TITLE-PAGES — copy_page_mappings (queue slot 31, runtime/shims/xmem.cpp) mirrors every map and unmap at a GPU-only destination onto the paired CPU range, including CPU pages the title mapped there itself with XMemMapPhysicalPagesScatter. An unmap (kind 2) then leaves the title's CPU page reserved and the title's next read of it faults. Fix: leave CPU pages holding a mapping of the title's as they are; the mirror keeps following only its own pages. With an xmem_test regression.

AI-assisted.

<!-- gh-comment-id:7169000776 --> @kurrutako commented on GitHub (Nov 25, 2026): claiming: RT-SLOT31-CPU-TWIN-TITLE-PAGES — `copy_page_mappings` (queue slot 31, `runtime/shims/xmem.cpp`) mirrors every map and unmap at a GPU-only destination onto the paired CPU range, including CPU pages the title mapped there itself with `XMemMapPhysicalPagesScatter`. An unmap (kind 2) then leaves the title's CPU page reserved and the title's next read of it faults. Fix: leave CPU pages holding a mapping of the title's as they are; the mirror keeps following only its own pages. With an `xmem_test` regression. AI-assisted.
Author
Owner

@kurrutako commented on GitHub (Nov 25, 2026):

done: RT-SLOT31-CPU-TWIN-TITLE-PAGES -> #1972

<!-- gh-comment-id:7169028227 --> @kurrutako commented on GitHub (Nov 25, 2026): done: RT-SLOT31-CPU-TWIN-TITLE-PAGES -> #1972
Author
Owner

@j-weiner commented on GitHub (Nov 25, 2026):

finding: report_paths.same_report_path() can miss case-only output collisions under a not-yet-created parent on Linux case-folding mounts.

Where: tools/report_paths.py:67-80 probes with TemporaryDirectory(dir=first_dir) and returns false when first_dir does not exist; callers can perform this check before the writer creates the output parent. For example, tools/character_census.py:885-901 checks --csv/--json paths before its writers call _make_parent() (:849-873).

Why it matters: --csv /mount/new/Report.json --json /mount/new/report.json passes the guard while /mount/new is absent. On a case-folding CIFS/exFAT mount, once the writer creates that parent the names alias; the second write can replace the first report. A synthetic check using Windows’ case-folding filesystem with POSIX path normalization produced guard=false, then samefile=true after parent creation, and the second write replaced the first. The helper explicitly supports Linux case-folding mounts, so the missing-parent case is within its stated contract.

Fix direction: probe case-folding in a temporary directory under a nearest existing ancestor while modeling unresolved parent components, and add a regression for case-only output paths with a missing parent. No game files or GPU; native reproduction needs a Linux case-folding mount. PR #1543 touches character_census.py writers but not the shared helper, so coordinate before implementing the helper change.

<!-- gh-comment-id:7169033175 --> @j-weiner commented on GitHub (Nov 25, 2026): finding: `report_paths.same_report_path()` can miss case-only output collisions under a not-yet-created parent on Linux case-folding mounts. Where: `tools/report_paths.py:67-80` probes with `TemporaryDirectory(dir=first_dir)` and returns false when `first_dir` does not exist; callers can perform this check before the writer creates the output parent. For example, `tools/character_census.py:885-901` checks `--csv`/`--json` paths before its writers call `_make_parent()` (`:849-873`). Why it matters: `--csv /mount/new/Report.json --json /mount/new/report.json` passes the guard while `/mount/new` is absent. On a case-folding CIFS/exFAT mount, once the writer creates that parent the names alias; the second write can replace the first report. A synthetic check using Windows’ case-folding filesystem with POSIX path normalization produced `guard=false`, then `samefile=true` after parent creation, and the second write replaced the first. The helper explicitly supports Linux case-folding mounts, so the missing-parent case is within its stated contract. Fix direction: probe case-folding in a temporary directory under a nearest existing ancestor while modeling unresolved parent components, and add a regression for case-only output paths with a missing parent. No game files or GPU; native reproduction needs a Linux case-folding mount. PR #1543 touches `character_census.py` writers but not the shared helper, so coordinate before implementing the helper change.
Author
Owner

@j-weiner commented on GitHub (Nov 25, 2026):

claiming: REPORT-PATHS-MISSING-PARENT-CASEFOLD — fix same_report_path for case-folding Linux volumes when case-only output paths share a parent that does not exist yet, with a synthetic regression in tests/test_report_paths.py. Follows the finding above; PR #1543 touches a caller but not the shared helper/tests. No game files or GPU.

<!-- gh-comment-id:7169049444 --> @j-weiner commented on GitHub (Nov 25, 2026): claiming: REPORT-PATHS-MISSING-PARENT-CASEFOLD — fix `same_report_path` for case-folding Linux volumes when case-only output paths share a parent that does not exist yet, with a synthetic regression in `tests/test_report_paths.py`. Follows the finding above; PR #1543 touches a caller but not the shared helper/tests. No game files or GPU.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

claim: SHADER-B64-BITOPS-VCC-DATA — read both %vcc and %vcc_hi (and (0, 0) for null) when vcc holds plain 64-bit scalar data rather than a lane mask in s_bcnt1_i32_b64, s_bcnt0_i32_b64, s_ff1_i32_b64, s_ff0_i32_b64, s_flbit_i32_b64, and s_flbit_i32_i64 in tools/rdna2spirv.py.

<!-- gh-comment-id:7169054566 --> @ShotTechOp commented on GitHub (Nov 25, 2026): claim: `SHADER-B64-BITOPS-VCC-DATA` — read both `%vcc` and `%vcc_hi` (and `(0, 0)` for `null`) when `vcc` holds plain 64-bit scalar data rather than a lane mask in `s_bcnt1_i32_b64`, `s_bcnt0_i32_b64`, `s_ff1_i32_b64`, `s_ff0_i32_b64`, `s_flbit_i32_b64`, and `s_flbit_i32_i64` in `tools/rdna2spirv.py`.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

done: SHADER-B64-BITOPS-VCC-DATA -> #1973 (https://github.com/ubiquitarianism/leonida/pull/1973)

<!-- gh-comment-id:7169058113 --> @ShotTechOp commented on GitHub (Nov 25, 2026): done: `SHADER-B64-BITOPS-VCC-DATA` -> #1973 (https://github.com/ubiquitarianism/leonida/pull/1973)
Author
Owner

@j-weiner commented on GitHub (Nov 25, 2026):

claiming: REPORT-PATHS-MISSING-PARENT-CASEFOLD — fix same_report_path for case-only output paths beneath a not-yet-created parent on Linux case-folding volumes, with a synthetic regression in tests/test_report_paths.py. Follows the finding above; no game files or GPU.

<!-- gh-comment-id:7169072132 --> @j-weiner commented on GitHub (Nov 25, 2026): claiming: REPORT-PATHS-MISSING-PARENT-CASEFOLD — fix `same_report_path` for case-only output paths beneath a not-yet-created parent on Linux case-folding volumes, with a synthetic regression in `tests/test_report_paths.py`. Follows the finding above; no game files or GPU.
Author
Owner

@MoonEyes commented on GitHub (Nov 25, 2026):

claiming: RT-ASYNC-COMPILE-POOL - PipelineCompiler (runtime/shims/d3d12_pipeline_compile.h) runs every LEONIDA_ASYNC_PIPELINES=1 build, the compute warm-up and the cache checkpoint on one below-normal thread, so one long driver compile holds every pipeline a submission asked for behind it, and their draws and dispatches are skipped meanwhile (seen by OreoFR: 5,533 mesh draws waiting on pipelines at world start). Plan: N workers (half the logical processors, at most 8; LEONIDA_COMPILE_THREADS=1 keeps today's behaviour), at most N-1 on large or speculative builds so one worker is always free for a small demanded build, one job per PSO at a time (keeps after_running and #1723's lifetime rules), checkpoint only when no worker compiles. Large builds go through #1889's memory gate (builds on #1889); continues the idea of #1577 (closed by its author) on the current lifetime model. Touches has_compile_waiter like #1756: whichever lands second rebases. Tests: a CPU test of the pool rules with mutants, d3d12_compile_teardown with 1 and N workers, a synthetic GPU run. No game files.
AI-assisted: yes (Claude Code).

<!-- gh-comment-id:7169077699 --> @MoonEyes commented on GitHub (Nov 25, 2026): claiming: RT-ASYNC-COMPILE-POOL - `PipelineCompiler` (`runtime/shims/d3d12_pipeline_compile.h`) runs every `LEONIDA_ASYNC_PIPELINES=1` build, the compute warm-up and the cache checkpoint on one below-normal thread, so one long driver compile holds every pipeline a submission asked for behind it, and their draws and dispatches are skipped meanwhile (seen by OreoFR: 5,533 mesh draws waiting on pipelines at world start). Plan: N workers (half the logical processors, at most 8; `LEONIDA_COMPILE_THREADS=1` keeps today's behaviour), at most N-1 on large or speculative builds so one worker is always free for a small demanded build, one job per PSO at a time (keeps `after_running` and #1723's lifetime rules), checkpoint only when no worker compiles. Large builds go through #1889's memory gate (builds on #1889); continues the idea of #1577 (closed by its author) on the current lifetime model. Touches `has_compile_waiter` like #1756: whichever lands second rebases. Tests: a CPU test of the pool rules with mutants, `d3d12_compile_teardown` with 1 and N workers, a synthetic GPU run. No game files. AI-assisted: yes (Claude Code).
Author
Owner

@j-weiner commented on GitHub (Nov 25, 2026):

releasing: REPORT-PATHS-MISSING-PARENT-CASEFOLD — after claiming, I found an existing clean worktree/branch with the same task name at current main, which may belong to another active fork. I did not modify it; the finding above records the issue.

<!-- gh-comment-id:7169086621 --> @j-weiner commented on GitHub (Nov 25, 2026): releasing: REPORT-PATHS-MISSING-PARENT-CASEFOLD — after claiming, I found an existing clean worktree/branch with the same task name at current main, which may belong to another active fork. I did not modify it; the finding above records the issue.
Author
Owner

@kawaii-shakal commented on GitHub (Nov 25, 2026):

claiming: VERIFY-1887-1957-BLACKWELL - independent Windows test runs of #1887 (console-heap V# bitset) and #1957 (list-value wait timeout) on an RTX 5070 Ti (Blackwell, 16 GB), NVIDIA 617.42, Windows 11 Pro 26300, VS 2026; full CTest on each head against main as the baseline, results posted on both PRs. Complements qhukz13's Pascal runs. No game files. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7169130080 --> @kawaii-shakal commented on GitHub (Nov 25, 2026): claiming: VERIFY-1887-1957-BLACKWELL - independent Windows test runs of #1887 (console-heap V# bitset) and #1957 (list-value wait timeout) on an RTX 5070 Ti (Blackwell, 16 GB), NVIDIA 617.42, Windows 11 Pro 26300, VS 2026; full CTest on each head against `main` as the baseline, results posted on both PRs. Complements qhukz13's Pascal runs. No game files. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-BCPACK-DECODE-FAST-BITWRITER-AND-BPTC -> #1974 (128-bit register BitWriter, zero-init elimination of 67 KiB stack rings, lazy BPTC fallback, index_row LUT — 1.06x-1.39x end-to-end speedup including rANS — + portable CTest bcpack_decode)

<!-- gh-comment-id:7169134080 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-BCPACK-DECODE-FAST-BITWRITER-AND-BPTC -> #1974 (128-bit register BitWriter, zero-init elimination of 67 KiB stack rings, lazy BPTC fallback, index_row LUT — 1.06x-1.39x end-to-end speedup including rANS — + portable CTest `bcpack_decode`)
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-IMAGE-MEMORY-UNLOCK-ALLOC-AND-OVERFLOW — fix lock contention, lock-order inversion, and alignment overflow in runtime/src/image_memory.h: unlock mutex_ across allocate_(type, block_bytes) and failure-path free_(memory) in ImageMemoryPool::allocate() (matching release()'s lock discipline, with a re-check after re-locking so concurrent threads do not stall or double-allocate blocks), fix uint64_t wraparound in BlockRanges::allocate() alignment math, and coalesce BlockRanges::release() with a single by_offset_ lookup; expand runtime/test/image_memory_test.cpp (0 CMakeLists.txt changes, no game files).

<!-- gh-comment-id:7169137144 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-IMAGE-MEMORY-UNLOCK-ALLOC-AND-OVERFLOW — fix lock contention, lock-order inversion, and alignment overflow in `runtime/src/image_memory.h`: unlock `mutex_` across `allocate_(type, block_bytes)` and failure-path `free_(memory)` in `ImageMemoryPool::allocate()` (matching `release()`'s lock discipline, with a re-check after re-locking so concurrent threads do not stall or double-allocate blocks), fix `uint64_t` wraparound in `BlockRanges::allocate()` alignment math, and coalesce `BlockRanges::release()` with a single `by_offset_` lookup; expand `runtime/test/image_memory_test.cpp` (0 `CMakeLists.txt` changes, no game files).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-IMAGE-MEMORY-UNLOCK-ALLOC-AND-OVERFLOW -> #1975 (unlocks ImageMemoryPool::mutex_ across allocate_() and failure-path free_(), fixes BlockRanges::allocate() alignment uint64_t wraparound, single-lookup BlockRanges::release() coalescing)

<!-- gh-comment-id:7169187313 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-IMAGE-MEMORY-UNLOCK-ALLOC-AND-OVERFLOW -> #1975 (unlocks `ImageMemoryPool::mutex_` across `allocate_()` and failure-path `free_()`, fixes `BlockRanges::allocate()` alignment `uint64_t` wraparound, single-lookup `BlockRanges::release()` coalescing)
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-RGBA4-FRAGMENT-FLAT-SCAN-AND-TESTS — optimize and harden runtime/src/rgba4_fragment.h: eliminate per-instruction std::vector<uint32_t> allocations and 7 std::map RB-trees with a flat preamble+body word scan (immediate O(preamble) return when no masked output exists), reuse shared scalar OpConstants across scalar/vector output types instead of emitting duplicate constants, single pre-reserved output build, and add portable CPU-only CTest runtime/test/rgba4_fragment_test.cpp (no GPU, no game files).

<!-- gh-comment-id:7169189780 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-RGBA4-FRAGMENT-FLAT-SCAN-AND-TESTS — optimize and harden `runtime/src/rgba4_fragment.h`: eliminate per-instruction `std::vector<uint32_t>` allocations and 7 `std::map` RB-trees with a flat preamble+body word scan (immediate O(preamble) return when no masked output exists), reuse shared scalar `OpConstant`s across scalar/vector output types instead of emitting duplicate constants, single pre-reserved output build, and add portable CPU-only CTest `runtime/test/rgba4_fragment_test.cpp` (no GPU, no game files).
Author
Owner

@j-weiner commented on GitHub (Nov 25, 2026):

finding: the local world viewer does not constrain chunk or GLB resource URLs to the loopback world server.

Where: viewer/index.html:77-80 checks only that chunk.url is a nonempty string; :355 passes it directly to fetch, and :363-365 uses the response URL as the GLTFLoader resource base. There is no URL-origin/path validation or loader URL modifier for external glTF resources. Normal output from tools/world_build.py:518,1755 uses local world/chunks/*.glb paths, so this is not needed for generated worlds.

Why it matters: a user-supplied or modified world.json can make the browser issue off-origin requests while displaying the local viewer; a GLB may also reference external resources. The loopback server's Host/path checks do not constrain browser requests sent to other origins. The viewer is intended to render a local export, so validate chunk URLs as same-origin /world/ paths and prevent external GLB resource resolution.

Needs game files/GPU: no. This is a source-only finding; no external request was made. Add synthetic manifest/loader tests for rejected non-local URLs before changing the loader behavior.

<!-- gh-comment-id:7169189998 --> @j-weiner commented on GitHub (Nov 25, 2026): finding: the local world viewer does not constrain chunk or GLB resource URLs to the loopback world server. Where: `viewer/index.html:77-80` checks only that `chunk.url` is a nonempty string; `:355` passes it directly to `fetch`, and `:363-365` uses the response URL as the `GLTFLoader` resource base. There is no URL-origin/path validation or loader URL modifier for external glTF resources. Normal output from `tools/world_build.py:518,1755` uses local `world/chunks/*.glb` paths, so this is not needed for generated worlds. Why it matters: a user-supplied or modified `world.json` can make the browser issue off-origin requests while displaying the local viewer; a GLB may also reference external resources. The loopback server's Host/path checks do not constrain browser requests sent to other origins. The viewer is intended to render a local export, so validate chunk URLs as same-origin `/world/` paths and prevent external GLB resource resolution. Needs game files/GPU: no. This is a source-only finding; no external request was made. Add synthetic manifest/loader tests for rejected non-local URLs before changing the loader behavior.
Author
Owner

@j-weiner commented on GitHub (Nov 25, 2026):

claiming: VIEWER-LOCAL-RESOURCE-URL-GUARD — restrict world-manifest chunk URLs and GLTF secondary resource loads to same-origin /world/ paths in viewer/index.html, with synthetic Node regression tests. Follows the finding above; no game files or GPU.

<!-- gh-comment-id:7169198976 --> @j-weiner commented on GitHub (Nov 25, 2026): claiming: VIEWER-LOCAL-RESOURCE-URL-GUARD — restrict world-manifest chunk URLs and GLTF secondary resource loads to same-origin `/world/` paths in `viewer/index.html`, with synthetic Node regression tests. Follows the finding above; no game files or GPU.
Author
Owner

@azsekazvamdimitar commented on GitHub (Nov 25, 2026):

@DadaCap about the 1.1 GB of aliased pages in your shadow refresh (7167396852): #1867 (RT-SHADOW-ALIAS-GUARD, open, mergeable on main) stops copying those at every submission. It guards each aliased 64 KiB block at every address it is mapped at with the geometry watch's cells, and copies a block only after a write reached it.

On an RTX 3090 (Debian 13, GE-Proton 11, NVIDIA 590.48.01), after the story load the aliased part went from about 987 MB to 2-5 MB a submission and the shadow phase from about 300 ms to 23-150 ms. One boot each. The other causes (guarded, pinned, title windows with no alias) are unchanged. Timon360SB ran its tests on an RTX 5070 and an RTX 2060 SUPER on the pull request.

If you are on the copy costs, that part may already be covered. Counts only. AI-assisted.

<!-- gh-comment-id:7169200937 --> @azsekazvamdimitar commented on GitHub (Nov 25, 2026): @DadaCap about the 1.1 GB of aliased pages in your shadow refresh ([7167396852](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7167396852)): #1867 (`RT-SHADOW-ALIAS-GUARD`, open, mergeable on `main`) stops copying those at every submission. It guards each aliased 64 KiB block at every address it is mapped at with the geometry watch's cells, and copies a block only after a write reached it. On an RTX 3090 (Debian 13, GE-Proton 11, NVIDIA 590.48.01), after the story load the aliased part went from about 987 MB to 2-5 MB a submission and the shadow phase from about 300 ms to 23-150 ms. One boot each. The other causes (guarded, pinned, title windows with no alias) are unchanged. Timon360SB ran its tests on an RTX 5070 and an RTX 2060 SUPER on the pull request. If you are on the copy costs, that part may already be covered. Counts only. AI-assisted.
Author
Owner

@j-weiner commented on GitHub (Nov 25, 2026):

Correction/retraction of my viewer URL finding: I missed existing intentional redirect-to-CDN coverage in tests/test_viewer_streaming.cjs (the “redirected chunk” case). That shows cross-origin chunk redirects are supported behavior, so I cannot classify the missing origin restriction as a bug without a clearer product requirement. Please do not treat my preceding viewer finding as actionable. No code change was made.

<!-- gh-comment-id:7169221279 --> @j-weiner commented on GitHub (Nov 25, 2026): Correction/retraction of my viewer URL finding: I missed existing intentional redirect-to-CDN coverage in `tests/test_viewer_streaming.cjs` (the “redirected chunk” case). That shows cross-origin chunk redirects are supported behavior, so I cannot classify the missing origin restriction as a bug without a clearer product requirement. Please do not treat my preceding viewer finding as actionable. No code change was made.
Author
Owner

@Christopher-Sundeby commented on GitHub (Nov 25, 2026):

Controlled runs for the lib_cs_01144 hang on an 8 GB card, supporting DadaCap's fix-budget explanation (7162983619, claimed as RT-CONSOLE-FIX-BUDGET-NULL). This also corrects my finding and follow-up, whose 3A run was not comparable: it waited at a first-run page until a manual A at 314 s.

Setup: RTX 3060 Ti 8 GB, NVIDIA 621.24, Windows 11, main b0f3d3998, LEONIDA_ASYNC_PIPELINES=1 LEONIDA_DEVICE_TYPE=6 LEONIDA_ARENA_MB=2048 LEONIDA_TITLE_WATCHDOG=0 LEONIDA_DEVICE_FAULT=1. To make the runs comparable, the only input was LEONIDA_INPUT_SCRIPT=a@72,a@74,a@76,a@90. The runs alternated baseline and LEONIDA_CONSOLE_FIX_US=0.

run LEONIDA_CONSOLE_FIX_US most slots "left to retries past the budget" in one report device loss first RehydrateRaytracing...Batched2X end
r4 default 64 yes, ~148 s / 6,355 submissions, 106 type-4 entries; last dispatches lib_cs_01144, _01126, _01123 ~155 s FSR +0x65ff
r5 0 0 no ~112 s / 5,274 FSR +0x65ff
r6 default 3,381 yes, ~129 s / 4,764, 107 type-4 entries; last dispatches lib_cs_01462, _01457, _01468 ~129 s FSR +0x65ff
r7 0 0 no ~136 s / 4,597 FSR +0x65ff
  • 2 of 2 baseline runs lose the device and 0 of 2 with LEONIDA_CONSOLE_FIX_US=0 do. All four reach the same stage at a similar time.
  • Every run that lost the device had a nonzero "left to retries" count before the loss. The run in my finding did too: 77 in one of its 13 reports, which I had missed. So the correction to my finding: nothing here points to a second way in.
  • r6 ends in a different dispatch (lib_cs_01462/_01457/_01468, still all type 4), so the shader that hangs varies with which slots were nulled. That fits a nulled descriptor feeding a loop bound rather than one bad shader.
  • After the loss (or without one), all four end at the known FSR stop: an access violation reading 0x10 at an address ending in 65ff. These shaders predate #1862 (845 no translated compute shader for FSPX lines in each run).
  • One manual-input caveat: r4 has stray keyboard and controller presses from 239 s on, after its device loss. r5 to r7 have none.

Counts, offsets and program names only, no game data. AI-assisted (Claude Code).

<!-- gh-comment-id:7169227767 --> @Christopher-Sundeby commented on GitHub (Nov 25, 2026): Controlled runs for the `lib_cs_01144` hang on an 8 GB card, supporting DadaCap's fix-budget explanation ([7162983619](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7162983619), claimed as RT-CONSOLE-FIX-BUDGET-NULL). This also corrects my [finding](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7167719574) and [follow-up](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7168540607), whose 3A run was not comparable: it waited at a first-run page until a manual A at 314 s. **Setup:** RTX 3060 Ti 8 GB, NVIDIA 621.24, Windows 11, `main` b0f3d3998, `LEONIDA_ASYNC_PIPELINES=1 LEONIDA_DEVICE_TYPE=6 LEONIDA_ARENA_MB=2048 LEONIDA_TITLE_WATCHDOG=0 LEONIDA_DEVICE_FAULT=1`. To make the runs comparable, the only input was `LEONIDA_INPUT_SCRIPT=a@72,a@74,a@76,a@90`. The runs alternated baseline and `LEONIDA_CONSOLE_FIX_US=0`. | run | `LEONIDA_CONSOLE_FIX_US` | most slots "left to retries past the budget" in one report | device loss | first `RehydrateRaytracing...Batched2X` | end | |---|---|---|---|---|---| | r4 | default | 64 | **yes**, ~148 s / 6,355 submissions, 106 type-4 entries; last dispatches `lib_cs_01144`, `_01126`, `_01123` | ~155 s | FSR `+0x65ff` | | r5 | 0 | 0 | no | ~112 s / 5,274 | FSR `+0x65ff` | | r6 | default | 3,381 | **yes**, ~129 s / 4,764, 107 type-4 entries; last dispatches `lib_cs_01462`, `_01457`, `_01468` | ~129 s | FSR `+0x65ff` | | r7 | 0 | 0 | no | ~136 s / 4,597 | FSR `+0x65ff` | - 2 of 2 baseline runs lose the device and 0 of 2 with `LEONIDA_CONSOLE_FIX_US=0` do. All four reach the same stage at a similar time. - Every run that lost the device had a nonzero "left to retries" count before the loss. The run in my finding did too: 77 in one of its 13 reports, which I had missed. So the correction to my finding: nothing here points to a second way in. - r6 ends in a different dispatch (`lib_cs_01462`/`_01457`/`_01468`, still all type 4), so the shader that hangs varies with which slots were nulled. That fits a nulled descriptor feeding a loop bound rather than one bad shader. - After the loss (or without one), all four end at the known FSR stop: an access violation reading `0x10` at an address ending in `65ff`. These shaders predate #1862 (845 `no translated compute shader for FSPX` lines in each run). - One manual-input caveat: r4 has stray keyboard and controller presses from 239 s on, after its device loss. r5 to r7 have none. Counts, offsets and program names only, no game data. AI-assisted (Claude Code).
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

claim: SHADER-WQM-DATA-VCC-AND-DST — fix Gen.wqm() in tools/rdna2spirv.py on the plain-data path: read both %vcc and %vcc_hi for s_wqm_b64 of plain-data vcc, store full 32/64-bit WQM words for non-mask destinations (m0, null, and plain-data vcc/vcc_lo/vcc_hi), and use _scalar_word_lane_bit for mask-valued destinations.

<!-- gh-comment-id:7169252401 --> @ShotTechOp commented on GitHub (Nov 25, 2026): claim: `SHADER-WQM-DATA-VCC-AND-DST` — fix `Gen.wqm()` in `tools/rdna2spirv.py` on the plain-data path: read both `%vcc` and `%vcc_hi` for `s_wqm_b64` of plain-data `vcc`, store full 32/64-bit WQM words for non-mask destinations (`m0`, `null`, and plain-data `vcc`/`vcc_lo`/`vcc_hi`), and use `_scalar_word_lane_bit` for mask-valued destinations.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

done: SHADER-WQM-DATA-VCC-AND-DST -> #1977 (https://github.com/ubiquitarianism/leonida/pull/1977)

<!-- gh-comment-id:7169255572 --> @ShotTechOp commented on GitHub (Nov 25, 2026): done: `SHADER-WQM-DATA-VCC-AND-DST` -> #1977 (https://github.com/ubiquitarianism/leonida/pull/1977)
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-RGBA4-FRAGMENT-FLAT-SCAN-AND-TESTS -> #1976 (flat preamble/body scan eliminating per-instruction vectors & 7 RB-trees — 5.65x-16.41x faster on rewrites, 1268x faster on mask misses — shared scalar OpConstants, + portable CTest rgba4_fragment)

<!-- gh-comment-id:7169260130 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-RGBA4-FRAGMENT-FLAT-SCAN-AND-TESTS -> #1976 (flat preamble/body scan eliminating per-instruction vectors & 7 RB-trees — 5.65x-16.41x faster on rewrites, 1268x faster on mask misses — shared scalar OpConstants, + portable CTest `rgba4_fragment`)
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-CONSERVATIVE-RASTER-PREAMBLE-STOP — stop inner_coverage_requirements() in runtime/src/conservative_raster.h (called on every fragment shader during PSO creation) once SPIR-V leaves the capability/execution-mode preamble (at OpDecorate/OpType*/OpVariable/OpFunction, SPIR-V logical layout §2.4) instead of walking tens of thousands of body words; expand runtime/test/conservative_raster_test.cpp (0 CMakeLists.txt changes, no game files).

<!-- gh-comment-id:7169262419 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-CONSERVATIVE-RASTER-PREAMBLE-STOP — stop `inner_coverage_requirements()` in `runtime/src/conservative_raster.h` (called on every fragment shader during PSO creation) once SPIR-V leaves the capability/execution-mode preamble (at `OpDecorate`/`OpType*`/`OpVariable`/`OpFunction`, SPIR-V logical layout §2.4) instead of walking tens of thousands of body words; expand `runtime/test/conservative_raster_test.cpp` (0 `CMakeLists.txt` changes, no game files).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-CONSERVATIVE-RASTER-PREAMBLE-STOP -> #1982 (https://github.com/ubiquitarianism/leonida/pull/1982) — stop inner_coverage_requirements() at the SPIR-V §2.4 post-execution-mode section boundary (553×–1,189× faster on 12k–50k-word shaders, bit-exact, expanded unit tests under ASan+UBSan/TSan/-O2).

<!-- gh-comment-id:7169362919 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: `RT-CONSERVATIVE-RASTER-PREAMBLE-STOP` -> #1982 (https://github.com/ubiquitarianism/leonida/pull/1982) — stop `inner_coverage_requirements()` at the SPIR-V §2.4 post-execution-mode section boundary (553×–1,189× faster on 12k–50k-word shaders, bit-exact, expanded unit tests under ASan+UBSan/TSan/`-O2`).
Author
Owner

@j-weiner commented on GitHub (Nov 25, 2026):

done: ANIM-CLIPS-SHARED-REPORT-PATH -> #1084 (rebased to current main; updated the missed anim_glb.py caller and added a regression for identical not-yet-created GLB/report outputs)

<!-- gh-comment-id:7169427022 --> @j-weiner commented on GitHub (Nov 25, 2026): done: ANIM-CLIPS-SHARED-REPORT-PATH -> #1084 (rebased to current `main`; updated the missed `anim_glb.py` caller and added a regression for identical not-yet-created GLB/report outputs)
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

claim: SHADER-MOV64-VCC-DATA-AND-NULL — preserve both %vcc and %vcc_hi in Gen.mov64 (tools/rdna2spirv.py) when copying plain 64-bit scalar data from vcc into an SGPR pair (holds_lane_mask(s) is False), and support null as a source ((0, 0)) or discard destination on s_mov_b64.

<!-- gh-comment-id:7169432434 --> @ShotTechOp commented on GitHub (Nov 25, 2026): claim: `SHADER-MOV64-VCC-DATA-AND-NULL` — preserve both `%vcc` and `%vcc_hi` in `Gen.mov64` (`tools/rdna2spirv.py`) when copying plain 64-bit scalar data from `vcc` into an SGPR pair (`holds_lane_mask(s)` is `False`), and support `null` as a source (`(0, 0)`) or discard destination on `s_mov_b64`.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

done: SHADER-MOV64-VCC-DATA-AND-NULL -> #1983 (https://github.com/ubiquitarianism/leonida/pull/1983)

<!-- gh-comment-id:7169436066 --> @ShotTechOp commented on GitHub (Nov 25, 2026): done: `SHADER-MOV64-VCC-DATA-AND-NULL` -> #1983 (https://github.com/ubiquitarianism/leonida/pull/1983)
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-ARENA-BLOCKS-PERF-AND-REUSE — optimize ArenaBlocks (runtime/src/arena_blocks.h) with power-of-two align_up(), O(1) bytes > free_bytes_ reject, O(1) linear iterator advance across undersized blocks before keep_out() runs, zero-allocation RB-tree node reuse in cut()/release(), and reset()-safe walk mutation tracking; expand runtime/test/arena_blocks_test.cpp.

<!-- gh-comment-id:7169440155 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-ARENA-BLOCKS-PERF-AND-REUSE — optimize `ArenaBlocks` (`runtime/src/arena_blocks.h`) with power-of-two `align_up()`, O(1) `bytes > free_bytes_` reject, O(1) linear iterator advance across undersized blocks before `keep_out()` runs, zero-allocation RB-tree node reuse in `cut()`/`release()`, and `reset()`-safe walk mutation tracking; expand `runtime/test/arena_blocks_test.cpp`.
Author
Owner

@kotekompotek commented on GitHub (Nov 25, 2026):

Addendum to the retail-package note above: the loader dry run also works on this package.

gta6rt.exe --dry-run game_scarlett_master.exe --game-dir <package> (same Debug build): the exe maps at 0x140000000 (185 MiB image), 53,246 index-0 TLS reads repointed to its own TLS slot, 10 CLZERO loops get stubs (this CPU lacks SSE4a). Import binding: shim=116, host=406, module=65, unimplemented=0 across the exe and the three package DLLs it pulls (fidelityfx loader, libHttpClient.GDK, Bink2Scarlett). pe_inspect counts 299,257 pdata functions, no high-entropy sections, 37 console imports in seven DLLs (xmem 12, AcpHal 9, chad 5, xapu 5, d3d12_xs 3, xg_xs 2, XCRDAPI 1) — all already covered by the shims.

So on this machine the blockers for a real boot are only the missing world/streaming files and untranslated shaders, not the import surface. Shader carve: 26,503 programs out of shaders.rpf (vs 2,236 / ms 9,282 / ps 12,101 / gs 195 / cs 2,689); disasm+translate next once llvm-mc finishes building.

<!-- gh-comment-id:7169457244 --> @kotekompotek commented on GitHub (Nov 25, 2026): Addendum to the retail-package note above: the loader dry run also works on this package. `gta6rt.exe --dry-run game_scarlett_master.exe --game-dir <package>` (same Debug build): the exe maps at 0x140000000 (185 MiB image), 53,246 index-0 TLS reads repointed to its own TLS slot, 10 CLZERO loops get stubs (this CPU lacks SSE4a). Import binding: shim=116, host=406, module=65, **unimplemented=0** across the exe and the three package DLLs it pulls (fidelityfx loader, libHttpClient.GDK, Bink2Scarlett). `pe_inspect` counts 299,257 pdata functions, no high-entropy sections, 37 console imports in seven DLLs (xmem 12, AcpHal 9, chad 5, xapu 5, d3d12_xs 3, xg_xs 2, XCRDAPI 1) — all already covered by the shims. So on this machine the blockers for a real boot are only the missing world/streaming files and untranslated shaders, not the import surface. Shader carve: 26,503 programs out of shaders.rpf (vs 2,236 / ms 9,282 / ps 12,101 / gs 195 / cs 2,689); disasm+translate next once llvm-mc finishes building.
Author
Owner

@ImLele69 commented on GitHub (Nov 25, 2026):

claiming: FSPX-UNPACK-AUTO-BACKEND - tools/fspx_unpack.py --backend auto, and the FSPX stage of make_game.py uses it. With llvm-mc 21 or 22, five of the 29 FidelityFX programs keep invalid words (05, 06, 08, 09, 28) and are not translated; the upscaler then faults at amd_fidelityfx_upscaler_xbox.dll+0x65ff (read of 0x10). shader_disasm.py's auto backend (#1712) decodes all five with 0 invalid words, and 29 of 29 translate and pass spirv-val with llvm-mc 22.1.8. Stacked on #1712. AI-assisted (Claude Code).

<!-- gh-comment-id:7169483079 --> @ImLele69 commented on GitHub (Nov 25, 2026): claiming: FSPX-UNPACK-AUTO-BACKEND - `tools/fspx_unpack.py --backend auto`, and the FSPX stage of `make_game.py` uses it. With llvm-mc 21 or 22, five of the 29 FidelityFX programs keep invalid words (05, 06, 08, 09, 28) and are not translated; the upscaler then faults at `amd_fidelityfx_upscaler_xbox.dll+0x65ff` (read of 0x10). `shader_disasm.py`'s `auto` backend (#1712) decodes all five with 0 invalid words, and 29 of 29 translate and pass spirv-val with llvm-mc 22.1.8. Stacked on #1712. AI-assisted (Claude Code).
Author
Owner

@Zalthor commented on GitHub (Nov 25, 2026):

Verification batch 14 (last one in this run): 11 open pull requests opened in the last hour that have tests and queued or no CI (#1942–#1973). Each diff (merge-base..head) was applied to its own clean worktree at main fe1553456. Environment: Windows 10, CPU only, no game files, TEMP on C:. The python -I test files ran on CPython 3.12. AI-assisted (Claude Code). Same per-PR method as batches 1 to 13. I did not have time for the full semantic suite this round, so the three tools/rdna2spirv.py PRs (#1943, #1949, #1973) and #1945 (make_game.py) have only their own test files checked.

All 11 apply cleanly, compile, pass check_no_game_data, and pass their test files. None adds a failure to the repo-wide checks.

New tests fail on unpatched main and pass with the change: #1943 (9 fail on main), #1946 (8), #1949 (5), #1958 (1), #1959 (14), #1962 (1), #1966 (1), #1973 (9).

New tests skip here, so I couldn't check behaviour: #1942, #1945, #1964. Their test files pass with and without the change, and the new functions skip for missing optional tools.

Not covered: no full semantic suite for this batch, no Linux or macOS run, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.

<!-- gh-comment-id:7169488091 --> @Zalthor commented on GitHub (Nov 25, 2026): Verification batch 14 (last one in this run): 11 open pull requests opened in the last hour that have tests and queued or no CI (#1942–#1973). Each diff (merge-base..head) was applied to its own clean worktree at `main` `fe1553456`. Environment: Windows 10, CPU only, no game files, `TEMP` on `C:`. The `python -I` test files ran on CPython 3.12. AI-assisted (Claude Code). Same per-PR method as batches [1](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157070042) to [13](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7168422381). **I did not have time for the full semantic suite this round**, so the three `tools/rdna2spirv.py` PRs (#1943, #1949, #1973) and #1945 (`make_game.py`) have only their own test files checked. **All 11 apply cleanly, compile, pass `check_no_game_data`, and pass their test files.** None adds a failure to the repo-wide checks. **New tests fail on unpatched `main` and pass with the change:** #1943 (9 fail on `main`), #1946 (8), #1949 (5), #1958 (1), #1959 (14), #1962 (1), #1966 (1), #1973 (9). **New tests skip here, so I couldn't check behaviour:** #1942, #1945, #1964. Their test files pass with and without the change, and the new functions skip for missing optional tools. Not covered: no full semantic suite for this batch, no Linux or macOS run, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.
Author
Owner

@ImLele69 commented on GitHub (Nov 25, 2026):

done: FSPX-UNPACK-AUTO-BACKEND -> #1984 (stacked on #1712)

<!-- gh-comment-id:7169492321 --> @ImLele69 commented on GitHub (Nov 25, 2026): done: FSPX-UNPACK-AUTO-BACKEND -> #1984 (stacked on #1712)
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-ARENA-BLOCKS-PERF-AND-REUSE -> #1985 (https://github.com/ubiquitarianism/leonida/pull/1985) — sequential walk, zero-alloc node reuse in cut()/release(), power-of-two align_up(), O(1) bytes > free_bytes_ reject, and reset()-safe walk mutation counter (1.74×–5.66× faster bit-exact, verified under ASan+UBSan/TSan/-O2).

<!-- gh-comment-id:7169499497 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: `RT-ARENA-BLOCKS-PERF-AND-REUSE` -> #1985 (https://github.com/ubiquitarianism/leonida/pull/1985) — sequential walk, zero-alloc node reuse in `cut()`/`release()`, power-of-two `align_up()`, O(1) `bytes > free_bytes_` reject, and `reset()`-safe walk mutation counter (1.74×–5.66× faster bit-exact, verified under ASan+UBSan/TSan/`-O2`).
Author
Owner

@BubsMcgee commented on GitHub (Nov 25, 2026):

claiming: RT-EXE-WATCHDOG-TRAP — from #1915: game+0x2215c35 is the retail executable's own hang-watchdog trap (movl $0, 0), already recorded in runtime/src/main.cpp (kWatchdogTrapRva; the trap bytes were checked at that RVA in the file). So the 54 s AMD/RADV exit is the title killing itself after 30 ticks without its kick byte, not a runtime null write. Recording the path and the stall candidates (the ~107,700 CreateShaderResourceView burst and the 4 failed CreatePipelineState calls) for the reporter. No game data; the reporter keeps the logs.

<!-- gh-comment-id:7169518193 --> @BubsMcgee commented on GitHub (Nov 25, 2026): claiming: RT-EXE-WATCHDOG-TRAP — from #1915: `game+0x2215c35` is the retail executable's own hang-watchdog trap (`movl $0, 0`), already recorded in `runtime/src/main.cpp` (`kWatchdogTrapRva`; the trap bytes were checked at that RVA in the file). So the 54 s AMD/RADV exit is the title killing itself after 30 ticks without its kick byte, not a runtime null write. Recording the path and the stall candidates (the ~107,700 `CreateShaderResourceView` burst and the 4 failed `CreatePipelineState` calls) for the reporter. No game data; the reporter keeps the logs.
Author
Owner

@j-weiner commented on GitHub (Nov 25, 2026):

done: TEST-TILE-CTEST-TIMEOUT -> #1156 (rebased onto fe1553456; verified the two CTest registrations retain skip/validation checks and use TIMEOUT=300)

<!-- gh-comment-id:7169533101 --> @j-weiner commented on GitHub (Nov 25, 2026): done: TEST-TILE-CTEST-TIMEOUT -> #1156 (rebased onto `fe1553456`; verified the two CTest registrations retain skip/validation checks and use TIMEOUT=300)
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-VK-DEPTH24-CONVERTER-OVERFLOW-AND-COLLECT — harden Depth24Converter (runtime/src/vulkan_depth24.h): null get/device guard in load(), overflow-free 64-bit bounds and O(1) slice/row partitioning in prepare()/make_part()/scratch()/run(), atomic parts/whole rollback on partial failure, per-semaphore cached counter queries and O(N) compaction in collect()/forget(), plus portable pure-CPU unit test vulkan_depth24_unit_test.

<!-- gh-comment-id:7169533968 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-VK-DEPTH24-CONVERTER-OVERFLOW-AND-COLLECT — harden `Depth24Converter` (`runtime/src/vulkan_depth24.h`): null `get`/`device` guard in `load()`, overflow-free 64-bit bounds and O(1) slice/row partitioning in `prepare()`/`make_part()`/`scratch()`/`run()`, atomic `parts`/`whole` rollback on partial failure, per-semaphore cached counter queries and O(N) compaction in `collect()`/`forget()`, plus portable pure-CPU unit test `vulkan_depth24_unit_test`.
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

done: RT-UNBOUND-TSHARP-REASONS -> #1987

<!-- gh-comment-id:7169542651 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): done: RT-UNBOUND-TSHARP-REASONS -> #1987
Author
Owner

@aslan2142 commented on GitHub (Nov 25, 2026):

claiming: RT-TITLE-WATCHDOG-SECOND-CHECK. LEONIDA_TITLE_WATCHDOG=0 keeps one trap of the title's hang watchdog from firing (runtime/src/main.cpp), but a second check on the same watchdog thread still ends slow runs (seen twice at about 22 minutes on an RX 7900 XTX at 0.1–0.4 fps). Extend the switch to cover it, in the same build-checked way.

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

<!-- gh-comment-id:7169544364 --> @aslan2142 commented on GitHub (Nov 25, 2026): claiming: RT-TITLE-WATCHDOG-SECOND-CHECK. `LEONIDA_TITLE_WATCHDOG=0` keeps one trap of the title's hang watchdog from firing (`runtime/src/main.cpp`), but a second check on the same watchdog thread still ends slow runs (seen twice at about 22 minutes on an RX 7900 XTX at 0.1–0.4 fps). Extend the switch to cover it, in the same build-checked way. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@iker445 commented on GitHub (Nov 25, 2026):

claiming: RT-BCPACK-STORAGE-DECODE — implementar la etapa BCPack de DirectStorage con vectores sintéticos y pruebas; dejar swizzle y páginas físicas fuera de alcance

<!-- gh-comment-id:7169559855 --> @iker445 commented on GitHub (Nov 25, 2026): claiming: RT-BCPACK-STORAGE-DECODE — implementar la etapa BCPack de DirectStorage con vectores sintéticos y pruebas; dejar swizzle y páginas físicas fuera de alcance
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-VK-DEPTH24-CONVERTER-OVERFLOW-AND-COLLECT -> #1988 (https://github.com/ubiquitarianism/leonida/pull/1988) — null get/device guard, overflow-proof 64-bit sizing & O(1) partitioning, atomic failure rollback, per-semaphore cached collect() & O(N) compaction, and new portable vulkan_depth24_unit_test (ASan+UBSan/TSan/-O2).

<!-- gh-comment-id:7169609322 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: `RT-VK-DEPTH24-CONVERTER-OVERFLOW-AND-COLLECT` -> #1988 (https://github.com/ubiquitarianism/leonida/pull/1988) — null `get`/`device` guard, overflow-proof 64-bit sizing & O(1) partitioning, atomic failure rollback, per-semaphore cached `collect()` & O(N) compaction, and new portable `vulkan_depth24_unit_test` (ASan+UBSan/TSan/`-O2`).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-DSTORAGE-SWIZZLE-LINEAR-WRITE-AND-TESTS — invert leonida::dstorage::unshuffle() (runtime/src/dstorage_swizzle.h) from strided multi-pass writes into a single sequential write pass per group (2.6×–4.8× faster on 32 MiB textures in modes 1/3/4, bit-exact), guard overlapping input/out spans against memcpy UB, and add a portable pure-CPU unit test dstorage_swizzle_test.

<!-- gh-comment-id:7169625413 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-DSTORAGE-SWIZZLE-LINEAR-WRITE-AND-TESTS — invert `leonida::dstorage::unshuffle()` (`runtime/src/dstorage_swizzle.h`) from strided multi-pass writes into a single sequential write pass per group (2.6×–4.8× faster on 32 MiB textures in modes 1/3/4, bit-exact), guard overlapping `input`/`out` spans against `memcpy` UB, and add a portable pure-CPU unit test `dstorage_swizzle_test`.
Author
Owner

@lgr123 commented on GitHub (Nov 25, 2026):

claiming: RT-XMA-LOOP-END-SUBFRAME — honor the XMA loop end subframe in runtime/shims/acphal.cpp. On public main fe155345, the native synthetic HAL/worker test produced 12 ring blocks for each end subframe 0–3. The expected counts were 9, 10, 11, and 12 with one repeat. Subframe 0 adds 384 sample periods, or 8 ms at 48 kHz, to the loop. CPU-only generated input, AI-assisted.

finding: an interrupted multi-blob XGameSave submit can reopen as mixed generations. In runtime/shims/xgameruntime_gamesave.cpp at commit(), each file is replaced independently, and normal open/read has no interrupted-transaction recovery. A synthetic Windows fixture on fe155345 exited immediately after the first successful replacement. Reopening via the normal shim read reported success and returned inventory generation 2 with player generation 1. The completed control returned 2/2. This is the process-exit case, separate from the returned-error rollback in 34e6b29. No game files. AI-assisted.

<!-- gh-comment-id:7169629800 --> @lgr123 commented on GitHub (Nov 25, 2026): claiming: RT-XMA-LOOP-END-SUBFRAME — honor the XMA loop end subframe in `runtime/shims/acphal.cpp`. On public main `fe155345`, the native synthetic HAL/worker test produced 12 ring blocks for each end subframe 0–3. The expected counts were 9, 10, 11, and 12 with one repeat. Subframe 0 adds 384 sample periods, or 8 ms at 48 kHz, to the loop. CPU-only generated input, AI-assisted. finding: an interrupted multi-blob XGameSave submit can reopen as mixed generations. In `runtime/shims/xgameruntime_gamesave.cpp` at `commit()`, each file is replaced independently, and normal open/read has no interrupted-transaction recovery. A synthetic Windows fixture on `fe155345` exited immediately after the first successful replacement. Reopening via the normal shim read reported success and returned inventory generation 2 with player generation 1. The completed control returned 2/2. This is the process-exit case, separate from the returned-error rollback in `34e6b29`. No game files. AI-assisted.
Author
Owner

@lgr123 commented on GitHub (Nov 25, 2026):

claiming: RT-FRAME-INTERVAL-PENDING-VBLANK — keep pending frame flips on the active vblank grid when SetFrameIntervalX changes the frame interval. On public main fe155345, a synthetic 30-to-60 FPS switch with one old frame queued scheduled the next display at 83,333 µs. New vblanks occur at 56,667, 73,334 and 90,001 µs. The no-pending control displayed at 73,334 µs. The same focused test fails with #671's mailbox patch alone. I'll keep this change in interval rebasing and preserve the separate mailbox work. Native Windows CPU-only, AI-assisted.

<!-- gh-comment-id:7169639524 --> @lgr123 commented on GitHub (Nov 25, 2026): claiming: RT-FRAME-INTERVAL-PENDING-VBLANK — keep pending frame flips on the active vblank grid when `SetFrameIntervalX` changes the frame interval. On public main `fe155345`, a synthetic 30-to-60 FPS switch with one old frame queued scheduled the next display at 83,333 µs. New vblanks occur at 56,667, 73,334 and 90,001 µs. The no-pending control displayed at 73,334 µs. The same focused test fails with #671's mailbox patch alone. I'll keep this change in interval rebasing and preserve the separate mailbox work. Native Windows CPU-only, AI-assisted.
Author
Owner

@lgr123 commented on GitHub (Nov 25, 2026):

claiming: RT-PRESENT-SRGB-UNORM-FALLBACK — preserve sRGB color when the plain Vulkan presenter falls back to an SDR UNORM swapchain. On public main fe155345, I ran the production presenter on Windows with a native RTX 5070 (621.24). A synthetic gray pattern of encoded bytes 128/188 stayed 128/188 on the default sRGB swapchain. Exposing only the real supported UNORM formats made the plain blit produce 55/128 with the same sRGB nonlinear color space. The composed control still produced 128/188. No game data. AI-assisted.

<!-- gh-comment-id:7169658698 --> @lgr123 commented on GitHub (Nov 25, 2026): claiming: RT-PRESENT-SRGB-UNORM-FALLBACK — preserve sRGB color when the plain Vulkan presenter falls back to an SDR UNORM swapchain. On public main `fe155345`, I ran the production presenter on Windows with a native RTX 5070 (621.24). A synthetic gray pattern of encoded bytes 128/188 stayed 128/188 on the default sRGB swapchain. Exposing only the real supported UNORM formats made the plain blit produce 55/128 with the same sRGB nonlinear color space. The composed control still produced 128/188. No game data. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-DSTORAGE-SWIZZLE-LINEAR-WRITE-AND-TESTS -> #1989 (https://github.com/ubiquitarianism/leonida/pull/1989) — single-pass sequential output write in dstorage::unshuffle() (2.52×–5.06× faster on 32 MiB textures in modes 1/3/4, parity on mode 2, bit-exact), overlap guard, and new portable dstorage_swizzle_test (ASan+UBSan/TSan/-O2).

<!-- gh-comment-id:7169660508 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: `RT-DSTORAGE-SWIZZLE-LINEAR-WRITE-AND-TESTS` -> #1989 (https://github.com/ubiquitarianism/leonida/pull/1989) — single-pass sequential output write in `dstorage::unshuffle()` (2.52×–5.06× faster on 32 MiB textures in modes 1/3/4, parity on mode 2, bit-exact), overlap guard, and new portable `dstorage_swizzle_test` (ASan+UBSan/TSan/`-O2`).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-VULKAN-MESH-LIMITS-OVERFLOW — guard local_size[0] * local_size[1] * local_size[2] > maxMeshWorkGroupInvocations in mesh_limit_refusal() (runtime/src/vulkan_mesh_limits.h) against 64-bit multiplication wrap when workgroup axes are large, and add overflow/boundary coverage to runtime/test/vulkan_mesh_limits_test.cpp.

<!-- gh-comment-id:7169674409 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-VULKAN-MESH-LIMITS-OVERFLOW — guard `local_size[0] * local_size[1] * local_size[2] > maxMeshWorkGroupInvocations` in `mesh_limit_refusal()` (`runtime/src/vulkan_mesh_limits.h`) against 64-bit multiplication wrap when workgroup axes are large, and add overflow/boundary coverage to `runtime/test/vulkan_mesh_limits_test.cpp`.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

claiming: SHADER-SALU64-VCC-DATA-SRC — fix Gen.is_mask_op and Gen.src64_data in tools/rdna2spirv.py so plain-data vcc sources (written as ordinary scalar data rather than a lane mask) stay on the 64-bit data path and load both %vcc and %vcc_hi instead of falling into the per-lane mask path or raising Unsupported.

<!-- gh-comment-id:7169687689 --> @ShotTechOp commented on GitHub (Nov 25, 2026): claiming: SHADER-SALU64-VCC-DATA-SRC — fix `Gen.is_mask_op` and `Gen.src64_data` in `tools/rdna2spirv.py` so plain-data `vcc` sources (written as ordinary scalar data rather than a lane mask) stay on the 64-bit data path and load both `%vcc` and `%vcc_hi` instead of falling into the per-lane mask path or raising `Unsupported`.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

done: SHADER-SALU64-VCC-DATA-SRC -> #1990

<!-- gh-comment-id:7169689560 --> @ShotTechOp commented on GitHub (Nov 25, 2026): done: SHADER-SALU64-VCC-DATA-SRC -> #1990
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-VULKAN-MESH-LIMITS-OVERFLOW -> #1991 (https://github.com/ubiquitarianism/leonida/pull/1991) — overflow-free 3D workgroup invocation check in mesh_limit_refusal() (runtime/src/vulkan_mesh_limits.h) with expanded boundary/overflow tests (ASan+UBSan/TSan/-O2).

<!-- gh-comment-id:7169705981 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: `RT-VULKAN-MESH-LIMITS-OVERFLOW` -> #1991 (https://github.com/ubiquitarianism/leonida/pull/1991) — overflow-free 3D workgroup invocation check in `mesh_limit_refusal()` (`runtime/src/vulkan_mesh_limits.h`) with expanded boundary/overflow tests (ASan+UBSan/TSan/`-O2`).
Author
Owner

@aslan2142 commented on GitHub (Nov 25, 2026):

releasing: RT-TITLE-WATCHDOG-SECOND-CHECK. It isn't a watchdog.

finding: the two ~22-minute ends with LEONIDA_TITLE_WATCHDOG=0 (RX 7900 XTX, RADV, Wine, about 0.1–0.4 fps) are on the title's job worker threads, not its watchdog:

  • one is a fixed-size object pool running out (its "empty" breakpoint fired on 7 workers within 1 ms);
  • the other is a read of decommitted memory in a budget check.

Quieting either would hide a fault. Needs game files. Next: why the pool fills (late release at low frame rates?), and who decommitted the second run's record (the runtime's own earlier reads past committed pages are a lead; we're looking into it).

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

<!-- gh-comment-id:7169715733 --> @aslan2142 commented on GitHub (Nov 25, 2026): releasing: RT-TITLE-WATCHDOG-SECOND-CHECK. It isn't a watchdog. finding: the two ~22-minute ends with `LEONIDA_TITLE_WATCHDOG=0` (RX 7900 XTX, RADV, Wine, about 0.1–0.4 fps) are on the title's job worker threads, not its watchdog: - one is a fixed-size object pool running out (its "empty" breakpoint fired on 7 workers within 1 ms); - the other is a read of decommitted memory in a budget check. Quieting either would hide a fault. Needs game files. Next: why the pool fills (late release at low frame rates?), and who decommitted the second run's record (the runtime's own earlier reads past committed pages are a lead; we're looking into it). AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@kawaii-shakal commented on GitHub (Nov 25, 2026):

done: VERIFY-1887-1957-BLACKWELL. RTX 5070 Ti, driver 617.42, MSVC RelWithDebInfo: full CTest green on base 9e7720c9e (423/423) and on both heads, #1887 3233b9857 and #1957 ec95c3c0b (424/424 each, same skips as base); new and related tests 20/20 repeats. Reports: https://github.com/ubiquitarianism/leonida/pull/1887#issuecomment-7169727141 and https://github.com/ubiquitarianism/leonida/pull/1957#issuecomment-7169727551. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7169730429 --> @kawaii-shakal commented on GitHub (Nov 25, 2026): done: VERIFY-1887-1957-BLACKWELL. RTX 5070 Ti, driver 617.42, MSVC RelWithDebInfo: full CTest green on base 9e7720c9e (423/423) and on both heads, #1887 3233b9857 and #1957 ec95c3c0b (424/424 each, same skips as base); new and related tests 20/20 repeats. Reports: https://github.com/ubiquitarianism/leonida/pull/1887#issuecomment-7169727141 and https://github.com/ubiquitarianism/leonida/pull/1957#issuecomment-7169727551. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@lgr123 commented on GitHub (Nov 25, 2026):

claiming: RT-GAMESAVE-INTERRUPTED-UPDATE-RECOVERY — the process-exit case from my synthetic reproduction. A checkpoint reopen mixed inventory generation 2 with player generation 1 after the first blob replacement. I’ll test an on-disk recovery record within the existing offline save layout, preserve returned-error rollback, and check repeated recovery using disposable synthetic files. Scope is process interruption and ordinary I/O errors. No game data. AI-assisted.

<!-- gh-comment-id:7169739872 --> @lgr123 commented on GitHub (Nov 25, 2026): claiming: RT-GAMESAVE-INTERRUPTED-UPDATE-RECOVERY — the process-exit case from my [synthetic reproduction](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7169629800). A checkpoint reopen mixed inventory generation 2 with player generation 1 after the first blob replacement. I’ll test an on-disk recovery record within the existing offline save layout, preserve returned-error rollback, and check repeated recovery using disposable synthetic files. Scope is process interruption and ordinary I/O errors. No game data. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-TITLE-BUFFER-WINDOWS-BOUNDS-AND-INDEX — harden and speed up TitleBufferWindows (runtime/shims/d3d12_title_buffer_windows.h): fix cap - reserved_ underflow when reserved_ > cap, require b.address >= d.arena.address to prevent unsigned bias wrap, guard b.used + alignment - 1 wrap, add O(log B) binary-search lookup() and O(1) tracked tail reuse across slabs, and add portable pure-CPU unit test title_buffer_windows_test.

<!-- gh-comment-id:7169743204 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-TITLE-BUFFER-WINDOWS-BOUNDS-AND-INDEX — harden and speed up `TitleBufferWindows` (`runtime/shims/d3d12_title_buffer_windows.h`): fix `cap - reserved_` underflow when `reserved_ > cap`, require `b.address >= d.arena.address` to prevent unsigned bias wrap, guard `b.used + alignment - 1` wrap, add O(log B) binary-search `lookup()` and O(1) tracked tail reuse across slabs, and add portable pure-CPU unit test `title_buffer_windows_test`.
Author
Owner

@xophsy commented on GitHub (Nov 25, 2026):

claiming: GPU-RTX4080SUPER-WIN - a gpu-test-results/ record for NVIDIA GeForce RTX 4080 SUPER on Windows 11 (NVIDIA 617.14): run_gpu_tests.py native and with LEONIDA_W64_EMULATE=1 on current main. No game files. AI-assisted (Claude Code).

<!-- gh-comment-id:7169749631 --> @xophsy commented on GitHub (Nov 25, 2026): claiming: GPU-RTX4080SUPER-WIN - a gpu-test-results/ record for NVIDIA GeForce RTX 4080 SUPER on Windows 11 (NVIDIA 617.14): run_gpu_tests.py native and with LEONIDA_W64_EMULATE=1 on current main. No game files. AI-assisted (Claude Code).
Author
Owner

@lgr123 commented on GitHub (Nov 25, 2026):

done: RT-FRAME-INTERVAL-PENDING-VBLANK -> #1992

<!-- gh-comment-id:7169792182 --> @lgr123 commented on GitHub (Nov 25, 2026): done: RT-FRAME-INTERVAL-PENDING-VBLANK -> #1992
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-TITLE-BUFFER-WINDOWS-BOUNDS-AND-INDEX -> #1993 (https://github.com/ubiquitarianism/leonida/pull/1993) — cap underflow, BDA bias wrap, and alignment overflow guards + O(log B) lookup() (6.65× faster) & O(1) tail tracking (28.88× faster at cap) with new portable title_buffer_windows_test (ASan+UBSan/TSan/-O2).

<!-- gh-comment-id:7169801854 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: `RT-TITLE-BUFFER-WINDOWS-BOUNDS-AND-INDEX` -> #1993 (https://github.com/ubiquitarianism/leonida/pull/1993) — cap underflow, BDA bias wrap, and alignment overflow guards + O(log B) `lookup()` (6.65× faster) & O(1) tail tracking (28.88× faster at cap) with new portable `title_buffer_windows_test` (ASan+UBSan/TSan/`-O2`).
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

claiming: SHADER-EXEC-HI-SPECIAL-SRC — extract per-lane bits via Gen.exec_bit for non-mask special sources (m0, scc/src_scc, plain-data vcc_lo/vcc_hi) in s_mov_b32 exec_hi, <src> in tools/rdna2spirv.py.

<!-- gh-comment-id:7169902807 --> @ShotTechOp commented on GitHub (Nov 25, 2026): claiming: SHADER-EXEC-HI-SPECIAL-SRC — extract per-lane bits via `Gen.exec_bit` for non-mask special sources (`m0`, `scc`/`src_scc`, plain-data `vcc_lo`/`vcc_hi`) in `s_mov_b32 exec_hi, <src>` in `tools/rdna2spirv.py`.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

done: SHADER-EXEC-HI-SPECIAL-SRC -> #1994

<!-- gh-comment-id:7169904741 --> @ShotTechOp commented on GitHub (Nov 25, 2026): done: SHADER-EXEC-HI-SPECIAL-SRC -> #1994
Author
Owner

@kotekompotek commented on GitHub (Nov 25, 2026):

claiming: RT-TLS-INDEX0-DYNINIT - in a Debug (MSVC /Od) build, gta6rt --init/--run refuses any executable that needs module TLS index 0 with "reserve_tls_index0 was not called at process start", although the .CRT$XCT reservation ran. Cause: Index0Move g_index0 in runtime/src/pe_loader.cpp carries non-zero initializers (TlsHostModule::index = TLS_OUT_OF_INDEXES via home, why[160] = "..."), so /Od emits a .CRT$XCU dynamic initializer that re-runs them and wipes moved/why/owner written at .CRT$XCT. Confirmed with a minimal repro: same struct shape keeps the early writes under /O2 but loses them under /Od; with all-zero initializers they survive under /Od too. Found while exercising the loader on a real 1.0.2.1 package (--init refused after a clean 0-unimplemented-imports dry run). Fix: zero-initialize Index0Move (raw home module/index fields, lazy why default text). No game data needed for the regression test. AI-assisted.

<!-- gh-comment-id:7169911493 --> @kotekompotek commented on GitHub (Nov 25, 2026): claiming: RT-TLS-INDEX0-DYNINIT - in a Debug (MSVC /Od) build, `gta6rt --init`/`--run` refuses any executable that needs module TLS index 0 with "reserve_tls_index0 was not called at process start", although the .CRT$XCT reservation ran. Cause: `Index0Move g_index0` in `runtime/src/pe_loader.cpp` carries non-zero initializers (`TlsHostModule::index = TLS_OUT_OF_INDEXES` via `home`, `why[160] = "..."`), so /Od emits a .CRT$XCU dynamic initializer that re-runs them and wipes `moved`/`why`/`owner` written at .CRT$XCT. Confirmed with a minimal repro: same struct shape keeps the early writes under /O2 but loses them under /Od; with all-zero initializers they survive under /Od too. Found while exercising the loader on a real 1.0.2.1 package (--init refused after a clean 0-unimplemented-imports dry run). Fix: zero-initialize `Index0Move` (raw home module/index fields, lazy `why` default text). No game data needed for the regression test. AI-assisted.
Author
Owner

@JoeY54 commented on GitHub (Nov 25, 2026):

claiming: GPU-RADEON860M-WIN11 — documented synthetic Vulkan GPU suite
on Radeon 860M, native Windows 11.
claiming: GPU-RTX5060L-WIN11 — full synthetic GPU suite on RTX 5060
Laptop under native Windows 11, separate from Linux #663 and targeted
tests.
claiming: GPU-STEAMDECK-WIN11 — synthetic GPU suite on Steam Deck
under Windows 11, subject to actual driver support.
claiming: GPU-STEAMDECK-STEAMOS — synthetic GPU suite on the same
Steam Deck under SteamOS/RADV, for matched cross-OS comparison.
claiming: TEST-JOEY54-PARALLEL-SEMANTIC — independent CPU-only
semantic-suite scaling and consistency measurements on Ryzen 9 9950X3D
(16C/32T, 192 GB RAM), using the documented runner and isolated
scratch paths; compare worker counts, test totals, wall time and peak
memory. Measurement only, not ownership of existing runner fixes or PR
#54.

These supplement my previous #1608 claims. Record exact revisions,
selected adapters, toolchains, commands, native/emulated wave profiles
where supported, real failures and explicit skips. Only licensed
synthetic fixtures, no game files or game-derived data. AI-assisted
(ChatGPT/Codex and Claude Code). No completion claimed.

On Wed, 25 Nov 2026 09:37:13 -0800, xophsy @.***> wrote:

xophsy left a comment (ubiquitarianism/leonida#1608)

claiming: GPU-RTX4080SUPER-WIN - a gpu-test-results/ record for NVIDIA GeForce RTX 4080 SUPER on Windows 11 (NVIDIA 617.14): run_gpu_tests.py native and with LEONIDA_W64_EMULATE=1 on current main. No game files. AI-assisted (Claude Code).

—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.

<!-- gh-comment-id:7169912441 --> @JoeY54 commented on GitHub (Nov 25, 2026): claiming: GPU-RADEON860M-WIN11 — documented synthetic Vulkan GPU suite on Radeon 860M, native Windows 11. claiming: GPU-RTX5060L-WIN11 — full synthetic GPU suite on RTX 5060 Laptop under native Windows 11, separate from Linux #663 and targeted tests. claiming: GPU-STEAMDECK-WIN11 — synthetic GPU suite on Steam Deck under Windows 11, subject to actual driver support. claiming: GPU-STEAMDECK-STEAMOS — synthetic GPU suite on the same Steam Deck under SteamOS/RADV, for matched cross-OS comparison. claiming: TEST-JOEY54-PARALLEL-SEMANTIC — independent CPU-only semantic-suite scaling and consistency measurements on Ryzen 9 9950X3D (16C/32T, 192 GB RAM), using the documented runner and isolated scratch paths; compare worker counts, test totals, wall time and peak memory. Measurement only, not ownership of existing runner fixes or PR #54. These supplement my previous #1608 claims. Record exact revisions, selected adapters, toolchains, commands, native/emulated wave profiles where supported, real failures and explicit skips. Only licensed synthetic fixtures, no game files or game-derived data. AI-assisted (ChatGPT/Codex and Claude Code). No completion claimed. On Wed, 25 Nov 2026 09:37:13 -0800, xophsy ***@***.***> wrote: > xophsy left a comment [(ubiquitarianism/leonida#1608)](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7169749631) > > claiming: GPU-RTX4080SUPER-WIN - a gpu-test-results/ record for NVIDIA GeForce RTX 4080 SUPER on Windows 11 (NVIDIA 617.14): run_gpu_tests.py native and with LEONIDA_W64_EMULATE=1 on current main. No game files. AI-assisted (Claude Code). > > — > Reply to this email directly, [view it on GitHub](https://github.com/ubiquitarianism/leonida/issues/1608?email_source=notifications&email_token=AQ6HHHHRLGZ357APON6S4HD524KETA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTOMJWHE3TIOJWGMY2M4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-7169749631), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AQ6HHHFCCQHAP7QH3U5SYK3524KETAVCNFSNUABGKJSXA33TNF2G64TZHMYTINRZGQ2DCNRXGU5US43TOVSTWNRVHE4DCNBZGY3DTILWAI). > You are receiving this because you commented.
Author
Owner

@j-weiner commented on GitHub (Nov 25, 2026):

releasing: DOC-EDITORCONFIG-BASELINE — closed #1955 as a duplicate of #1956 after handing the two verified BOM exceptions to that PR; its broader editorconfig rules are more complete.

<!-- gh-comment-id:7169927221 --> @j-weiner commented on GitHub (Nov 25, 2026): releasing: DOC-EDITORCONFIG-BASELINE — closed #1955 as a duplicate of #1956 after handing the two verified BOM exceptions to that PR; its broader editorconfig rules are more complete.
Author
Owner

@fitzypopper commented on GitHub (Nov 25, 2026):

claiming: BVH-REHYDRATE-MODE-FOLLOWUP — follow-up to the maintainer's note on merged #915: add tests that tools/bvh_rehydrate.py _publish preserves an existing 0640 mode, replaces a read-only destination and keeps it read-only, and keeps the real error when a replace over a read-only destination fails. Synthetic bytes only, no game files or GPU. AI-assisted.

<!-- gh-comment-id:7169971735 --> @fitzypopper commented on GitHub (Nov 25, 2026): claiming: BVH-REHYDRATE-MODE-FOLLOWUP — follow-up to the maintainer's note on merged #915: add tests that tools/bvh_rehydrate.py _publish preserves an existing 0640 mode, replaces a read-only destination and keeps it read-only, and keeps the real error when a replace over a read-only destination fails. Synthetic bytes only, no game files or GPU. AI-assisted.
Author
Owner

@fitzypopper commented on GitHub (Nov 25, 2026):

done: BVH-REHYDRATE-MODE-FOLLOWUP -> #1995

<!-- gh-comment-id:7169983486 --> @fitzypopper commented on GitHub (Nov 25, 2026): done: BVH-REHYDRATE-MODE-FOLLOWUP -> #1995
Author
Owner

@ImLele69 commented on GitHub (Nov 25, 2026):

finding: a Linux/Wine retail boot on an 8 GB card without Resizable BAR now presents game-rendered frames after the world start on 16 GB of RAM: the opening cinematic's title card, letterboxed with subtitles, held on screen for over 30 s (p52). Counts, offsets and timings only. What it took, in the order the stops came:

Setup: Fedora 44, Wine 11.21, RTX 2070 SUPER 8 GB (no ReBAR), NVIDIA 620.70, 16 GB RAM, own 1.0.2.1, --wave64-emulate, llvm-mc 22.1.8. Runtime: main (98c2f7777, later fe1553456) + #1827 + #1810 (built with std::size_t host_copy_len, see my comment there) + #1798 + #429 (merged onto #1723's indirect rework locally) + Snooozs's merge-main-into-1592 + #1712 + #1862 + #1905. Switches: LEONIDA_HOST_IMAGE_COPY=0 LEONIDA_CONSOLE_FIX_US=0 LEONIDA_DEVICE_FAULT=1 LEONIDA_TITLE_WATCHDOG=0.

1. Title windows after #1723: LEONIDA_GEOMETRY_MB keeps them small. On 0d80bc5df this machine hit the 1024 MiB cap halfway through the story load. The cause is fix_vsharp on console heap slots: each V# into title memory gets a window as large as its buffer, so there were 1,024 windows averaging about 600 KiB, and 870 MiB was copied per submission. On the older base the windows were mostly 64 KiB.

With LEONIDA_GEOMETRY_MB those V#s take persistent geometry copies, since fix_vsharp tries those first:

geometry off LEONIDA_GEOMETRY_MB=1024/2048
windows, middle of the story load 1,024+, cap hit 13-19
copied per submission, end of the story load 870 MiB 0.4-6.5 MiB
geometry refresh — 60-300 KiB per refresh, 1-2 ms

At the world start 1024 MiB of geometry is not enough. In one boot geometry buffer cap refused ... 1070449872 bytes already reserved came right before a READ_INVALID in a mesh-shader draw, so I use 2048 now. #1537's alternative, a 4 GiB window cap, means about 1.7 GB copied every submission.

2. Host image copies off: the WRITE_INVALID of p30-p35 does not come back. With #1827 and #1810 it is gone in every boot here that had the 2048 MiB arena: 0 device losses up to the world start (p41-p44). @OreoFR, for your 8 GB caution: this card is also 8 GB, with device-local allocations refused (vkAllocateMemory failed ... heap 0 of 8192 MiB) and VRAM full. No type 2 write since then. A similar signature, type 6 at a constant address with no type 2, came only in the two boots where I lowered LEONIDA_ARENA_MB to 512 (item 6).

3. Memory on 16 GB under Linux (LEONIDA_MEM_PROBE=60). Title memory grows from 2.6 to 9-10 GB in the two minutes before the world start, and LEONIDA_TITLE_MEMORY_MB (8192, 12288 or unset) barely changes that. What made the boots survive:

  • MALLOC_ARENA_MAX=2
  • LEONIDA_ARENA_MB=1024: arena use is 60-130 MiB with geometry copies on.
  • LEONIDA_DEVICE_TYPE=6
  • Swap on disk ahead of zram. Fedora's zram keeps about 40% of what it receives in RAM, so the kernel OOM-killed the title with 29 GB of swap free.

Also: systemd-oomd kills a boot past 80% memory pressure on its slice or on [email protected].

4. Missing shaders: the black world and the exe+0x248c30d crash. My runtime reported 0 fspx_gfx. The graphics programs of the pipeline library are only built with #1592, and llvm-mc 22 left 840 library compute programs undecodable.

  • Without them: 4 of 4 boots reached the world's first screen (UI drawn, scene black), then crashed in title code at exe+0x248c30d, a vmovaps xmm0,[rdx+0x10] with rdx = [[rcx+0x10]+0x120] null.
  • With Snooozs's #1592 merge plus #1712: 18,562 of 18,837 graphics programs and 2,683 of 2,684 library compute programs. That crash is gone.

5. FidelityFX with llvm-mc 21/22: 24 of 29. With LEONIDA_DEVICE_TYPE=6 the boot then died at amd_fidelityfx_upscaler_xbox.dll+0x65ff (read of 0x10), the stop CLHelper, kurrutako and Snooozs saw. Programs 05, 06, 08, 09 and 28 keep invalid words under llvm-mc 22. #1712's auto backend decodes all five, and #1984 makes the FSPX stage use it: 29 of 29.

6. Where it stops now.

  • p49 (Series S, arena 1024, geometry 1024): the direct queue was drawing the world when the device was lost. Checkpoint at draw 288-290 of list 11, pipeline MS_VS_Transform + PS_DeferredTextured, READ_INVALID at 0x3cc0c1000, right where the geometry cap was hit.
  • p50, p51 (arena 512, geometry 2048, then main with #1893 and #1631, plus #1905): a crash-A-like signature, two type 6 at 0xdf7dfedcf0/0xdf7dfedbe0 and a type 0. The direct queue is at a clear, command 0 of a list, with lib_cs_00928 on a compute queue. Found by vkDeviceWaitIdle (title staging). - p52 (arena back at 1024, geometry 2048): the title card above is presented, then the device is lost when the cinematic cuts to its first 3D shot. The signature is the same as p50 and p51: type 6 at 0xdf7dfec800, type 1 (READ_INVALID) at 0x4ec116000, the direct queue at a clear (command 0 of list 2) and lib_cs_00928 on a compute queue. So the 512 MiB arena was not the cause.
  • A note for anyone reading checkpoints: library/lib_cs_01468, command 16, is in flight on two or three compute queues at every stop I have, and at every stop posted here that names it. It looks like a long-running job, not a culprit.

Next here: what that clear targets, and whether the READ_INVALID address is a refused geometry copy or a title window.

AI-assisted (Claude Code).

<!-- gh-comment-id:7169991767 --> @ImLele69 commented on GitHub (Nov 25, 2026): finding: a Linux/Wine retail boot on an 8 GB card without Resizable BAR now **presents game-rendered frames after the world start** on 16 GB of RAM: the opening cinematic's title card, letterboxed with subtitles, held on screen for over 30 s (p52). Counts, offsets and timings only. What it took, in the order the stops came: **Setup:** Fedora 44, Wine 11.21, RTX 2070 SUPER 8 GB (no ReBAR), NVIDIA 620.70, 16 GB RAM, own 1.0.2.1, `--wave64-emulate`, llvm-mc 22.1.8. Runtime: `main` (98c2f7777, later fe1553456) + #1827 + #1810 (built with `std::size_t host_copy_len`, see [my comment there](https://github.com/ubiquitarianism/leonida/pull/1810#issuecomment-7163673931)) + #1798 + #429 (merged onto #1723's indirect rework locally) + Snooozs's `merge-main-into-1592` + #1712 + #1862 + #1905. Switches: `LEONIDA_HOST_IMAGE_COPY=0 LEONIDA_CONSOLE_FIX_US=0 LEONIDA_DEVICE_FAULT=1 LEONIDA_TITLE_WATCHDOG=0`. **1. Title windows after #1723: `LEONIDA_GEOMETRY_MB` keeps them small.** On `0d80bc5df` this machine hit the 1024 MiB cap halfway through the story load. The cause is `fix_vsharp` on console heap slots: each V# into title memory gets a window as large as its buffer, so there were 1,024 windows averaging about 600 KiB, and 870 MiB was copied per submission. On the older base the windows were mostly 64 KiB. With `LEONIDA_GEOMETRY_MB` those V#s take persistent geometry copies, since `fix_vsharp` tries those first: | | geometry off | `LEONIDA_GEOMETRY_MB=1024`/`2048` | |---|---|---| | windows, middle of the story load | 1,024+, cap hit | 13-19 | | copied per submission, end of the story load | 870 MiB | 0.4-6.5 MiB | | geometry refresh | — | 60-300 KiB per refresh, 1-2 ms | At the world start 1024 MiB of geometry is not enough. In one boot `geometry buffer cap refused ... 1070449872 bytes already reserved` came right before a READ_INVALID in a mesh-shader draw, so I use 2048 now. #1537's alternative, a 4 GiB window cap, means about 1.7 GB copied every submission. **2. Host image copies off: the WRITE_INVALID of p30-p35 does not come back.** With #1827 and #1810 it is gone in every boot here that had the 2048 MiB arena: 0 device losses up to the world start (p41-p44). @OreoFR, for your 8 GB caution: this card is also 8 GB, with device-local allocations refused (`vkAllocateMemory failed ... heap 0 of 8192 MiB`) and VRAM full. No type 2 write since then. A similar signature, type 6 at a constant address with no type 2, came only in the two boots where I lowered `LEONIDA_ARENA_MB` to 512 (item 6). **3. Memory on 16 GB under Linux** (`LEONIDA_MEM_PROBE=60`). Title memory grows from 2.6 to 9-10 GB in the two minutes before the world start, and `LEONIDA_TITLE_MEMORY_MB` (8192, 12288 or unset) barely changes that. What made the boots survive: - `MALLOC_ARENA_MAX=2` - `LEONIDA_ARENA_MB=1024`: arena use is 60-130 MiB with geometry copies on. - `LEONIDA_DEVICE_TYPE=6` - Swap on disk ahead of zram. Fedora's zram keeps about 40% of what it receives in RAM, so the kernel OOM-killed the title with 29 GB of swap free. Also: systemd-oomd kills a boot past 80% memory pressure on its slice or on `[email protected]`. **4. Missing shaders: the black world and the `exe+0x248c30d` crash.** My runtime reported `0 fspx_gfx`. The graphics programs of the pipeline library are only built with #1592, and llvm-mc 22 left 840 library compute programs undecodable. - Without them: 4 of 4 boots reached the world's first screen (UI drawn, scene black), then crashed in title code at `exe+0x248c30d`, a `vmovaps xmm0,[rdx+0x10]` with `rdx = [[rcx+0x10]+0x120]` null. - With Snooozs's #1592 merge plus #1712: 18,562 of 18,837 graphics programs and 2,683 of 2,684 library compute programs. That crash is gone. **5. FidelityFX with llvm-mc 21/22: 24 of 29.** With `LEONIDA_DEVICE_TYPE=6` the boot then died at `amd_fidelityfx_upscaler_xbox.dll+0x65ff` (read of 0x10), the stop CLHelper, kurrutako and Snooozs saw. Programs 05, 06, 08, 09 and 28 keep invalid words under llvm-mc 22. #1712's `auto` backend decodes all five, and **#1984** makes the FSPX stage use it: 29 of 29. **6. Where it stops now.** - **p49** (Series S, arena 1024, geometry 1024): the direct queue was drawing the world when the device was lost. Checkpoint at draw 288-290 of list 11, pipeline `MS_VS_Transform` + `PS_DeferredTextured`, READ_INVALID at `0x3cc0c1000`, right where the geometry cap was hit. - **p50, p51** (arena 512, geometry 2048, then `main` with #1893 and #1631, plus #1905): a crash-A-like signature, two type 6 at `0xdf7dfedcf0`/`0xdf7dfedbe0` and a type 0. The direct queue is at a `clear`, command 0 of a list, with `lib_cs_00928` on a compute queue. Found by `vkDeviceWaitIdle (title staging)`. - **p52** (arena back at 1024, geometry 2048): the title card above is presented, then the device is lost when the cinematic cuts to its first 3D shot. The signature is the same as p50 and p51: type 6 at `0xdf7dfec800`, type 1 (READ_INVALID) at `0x4ec116000`, the direct queue at a `clear` (command 0 of list 2) and `lib_cs_00928` on a compute queue. So the 512 MiB arena was not the cause. - **A note for anyone reading checkpoints:** `library/lib_cs_01468`, command 16, is in flight on two or three compute queues at every stop I have, and at every stop posted here that names it. It looks like a long-running job, not a culprit. Next here: what that `clear` targets, and whether the READ_INVALID address is a refused geometry copy or a title window. AI-assisted (Claude Code).
Author
Owner

@MSedgeMC commented on GitHub (Nov 25, 2026):

DOC-STALE-OPEN-WORK-TABLE — corrected rows (re-run just now on main, Linux/Python 3, no game files or GPU):

  • SHADER-1264 — CLOSED/FIXED. python3 -I scripts/run_semantic_tests.py tests/semantic -p test_exec_computed.py -> 1 files, 2 tests, 0 files failed. Fixed by PR #24 (Gen.exec_bit / computed EXEC writes), documented in docs/design.md:476.
  • TEST-ATOMIC-GUARD — CLOSED/FIXED. python3 -I scripts/run_semantic_tests.py tests/semantic -p test_image_atomics_guard.py -> 1 files, 6 tests, 0 files failed. Fixed by PR #20 and #460.

These two rows in the #14 open-work table should be marked done; contributors are otherwise claiming solved work.

Claim ID: DOC-STALE-OPEN-WORK-TABLE (posted earlier in this thread). No code changes; this is the completed deliverable for the claim.

<!-- gh-comment-id:7170058771 --> @MSedgeMC commented on GitHub (Nov 25, 2026): DOC-STALE-OPEN-WORK-TABLE — corrected rows (re-run just now on main, Linux/Python 3, no game files or GPU): - SHADER-1264 — CLOSED/FIXED. python3 -I scripts/run_semantic_tests.py tests/semantic -p test_exec_computed.py -> 1 files, 2 tests, 0 files failed. Fixed by PR #24 (Gen.exec_bit / computed EXEC writes), documented in docs/design.md:476. - TEST-ATOMIC-GUARD — CLOSED/FIXED. python3 -I scripts/run_semantic_tests.py tests/semantic -p test_image_atomics_guard.py -> 1 files, 6 tests, 0 files failed. Fixed by PR #20 and #460. These two rows in the #14 open-work table should be marked done; contributors are otherwise claiming solved work. Claim ID: DOC-STALE-OPEN-WORK-TABLE (posted earlier in this thread). No code changes; this is the completed deliverable for the claim.
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

claiming: PS-HELPER-PROBE-ATOMIC-JSON - validate --json upfront and write JSON reports atomically in tools/ps_helper_probe.py, with regression tests in tests/test_ps_helper_probe.py. CPU-only, no game files. AI-assisted.

<!-- gh-comment-id:7170082835 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): claiming: PS-HELPER-PROBE-ATOMIC-JSON - validate --json upfront and write JSON reports atomically in tools/ps_helper_probe.py, with regression tests in tests/test_ps_helper_probe.py. CPU-only, no game files. AI-assisted.
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

claiming: BUFFER-STORE-PROBE-ATOMIC-JSON - write --json report atomically in tools/buffer_store_probe.py via NamedTemporaryFile + os.replace with temp cleanup, plus regression tests in tests/test_buffer_store_probe.py. CPU-only, no game files. AI-assisted.

<!-- gh-comment-id:7170105485 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): claiming: BUFFER-STORE-PROBE-ATOMIC-JSON - write --json report atomically in tools/buffer_store_probe.py via NamedTemporaryFile + os.replace with temp cleanup, plus regression tests in tests/test_buffer_store_probe.py. CPU-only, no game files. AI-assisted.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

claiming: SHADER-MASK-SRC-M0-SCC — include m0 and scc/src_scc in _maskable_b32 (tools/lane_masks.py, tools/rdna2spirv.py) and Gen.mask_src (tools/rdna2spirv.py) so 32-bit/64-bit mask ops (s_and/or/xor/andn2/orn2/nand/nor/xnor/not/cselect_b32 into exec/vcc, s_*_saveexec_b*, s_*_wrexec_b*) extract per-lane bits instead of corrupting vcc and SCC.

<!-- gh-comment-id:7170112353 --> @ShotTechOp commented on GitHub (Nov 25, 2026): claiming: SHADER-MASK-SRC-M0-SCC — include `m0` and `scc`/`src_scc` in `_maskable_b32` (`tools/lane_masks.py`, `tools/rdna2spirv.py`) and `Gen.mask_src` (`tools/rdna2spirv.py`) so 32-bit/64-bit mask ops (`s_and/or/xor/andn2/orn2/nand/nor/xnor/not/cselect_b32` into `exec`/`vcc`, `s_*_saveexec_b*`, `s_*_wrexec_b*`) extract per-lane bits instead of corrupting `vcc` and `SCC`.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

done: SHADER-MASK-SRC-M0-SCC -> #1996

<!-- gh-comment-id:7170114457 --> @ShotTechOp commented on GitHub (Nov 25, 2026): done: SHADER-MASK-SRC-M0-SCC -> #1996
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

done: PS-HELPER-PROBE-ATOMIC-JSON -> #1997

<!-- gh-comment-id:7170116418 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): done: PS-HELPER-PROBE-ATOMIC-JSON -> #1997
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-XDXR-BUILD-LAYOUT-EMPTY-AND-DISPATCH-GUARDS — harden XdxrLayout and XdxrBuilder (runtime/src/xdxr_build.h, runtime/test/xdxr_builder_validation_test.cpp): reset XdxrLayout on overflow failure, make tiles()/kept_tiles() overflow-free, skip zero-workgroup mode_morton dispatch+barrier on empty BLAS/TLAS, dispatch exact group counts without 64 * tiles overflow, guard null VkCommandBuffer, and destroy VkPipelineLayout immediately on partial make_pipeline() failure.

<!-- gh-comment-id:7170142282 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-XDXR-BUILD-LAYOUT-EMPTY-AND-DISPATCH-GUARDS — harden `XdxrLayout` and `XdxrBuilder` (`runtime/src/xdxr_build.h`, `runtime/test/xdxr_builder_validation_test.cpp`): reset `XdxrLayout` on overflow failure, make `tiles()`/`kept_tiles()` overflow-free, skip zero-workgroup `mode_morton` dispatch+barrier on empty BLAS/TLAS, dispatch exact group counts without `64 * tiles` overflow, guard null `VkCommandBuffer`, and destroy `VkPipelineLayout` immediately on partial `make_pipeline()` failure.
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

done: BUFFER-STORE-PROBE-ATOMIC-JSON -> #1998

<!-- gh-comment-id:7170143638 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): done: BUFFER-STORE-PROBE-ATOMIC-JSON -> #1998
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

claiming: DS-PERMUTE-PROBE-ATOMIC-JSON - write --json report atomically in tools/ds_permute_probe.py via NamedTemporaryFile + os.replace with temp cleanup, plus regression tests in tests/test_ds_permute_probe.py. CPU-only, no game files. AI-assisted.

<!-- gh-comment-id:7170145014 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): claiming: DS-PERMUTE-PROBE-ATOMIC-JSON - write --json report atomically in tools/ds_permute_probe.py via NamedTemporaryFile + os.replace with temp cleanup, plus regression tests in tests/test_ds_permute_probe.py. CPU-only, no game files. AI-assisted.
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

claiming: IMPORT-CALL-SITES-DIRECT-FF15-CALLS — scan direct call qword [rip+disp32] (FF 15) import call sites in tools/import_call_sites.py alongside thunks, and add tests in tests/test_import_call_sites.py

<!-- gh-comment-id:7170156749 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): claiming: IMPORT-CALL-SITES-DIRECT-FF15-CALLS — scan direct call qword [rip+disp32] (FF 15) import call sites in tools/import_call_sites.py alongside thunks, and add tests in tests/test_import_call_sites.py
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

done: DS-PERMUTE-PROBE-ATOMIC-JSON -> #2000

<!-- gh-comment-id:7170179683 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): done: DS-PERMUTE-PROBE-ATOMIC-JSON -> #2000
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

claiming: F16-WIDEN-PROBE-ATOMIC-JSON - write --json report atomically in tools/f16_widen_probe.py via NamedTemporaryFile + os.replace with temp cleanup, plus regression tests in tests/test_f16_widen_probe.py. CPU-only, no game files. AI-assisted.

<!-- gh-comment-id:7170181036 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): claiming: F16-WIDEN-PROBE-ATOMIC-JSON - write --json report atomically in tools/f16_widen_probe.py via NamedTemporaryFile + os.replace with temp cleanup, plus regression tests in tests/test_f16_widen_probe.py. CPU-only, no game files. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-XDXR-BUILD-LAYOUT-EMPTY-AND-DISPATCH-GUARDS -> #2002 (https://github.com/ubiquitarianism/leonida/pull/2002) — clean XdxrLayout overflow reset, overflow-free tiles()/kept_tiles(), zero-workgroup mode_morton skip + exact dispatch_groups(), null VkCommandBuffer guards, and immediate VkPipelineLayout cleanup on partial make_pipeline() failure.

<!-- gh-comment-id:7170192368 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: `RT-XDXR-BUILD-LAYOUT-EMPTY-AND-DISPATCH-GUARDS` -> #2002 (https://github.com/ubiquitarianism/leonida/pull/2002) — clean `XdxrLayout` overflow reset, overflow-free `tiles()`/`kept_tiles()`, zero-workgroup `mode_morton` skip + exact `dispatch_groups()`, null `VkCommandBuffer` guards, and immediate `VkPipelineLayout` cleanup on partial `make_pipeline()` failure.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-ROOT-SIGNATURE-RTS0-OFFSET-WRAP-AND-RESERVE — harden runtime/src/root_signature.cpp against 32-bit poff + 4/poff + 8 and DXBC chunk offset/size wraps, make Reader::u32() and parse_rts0() bounds checks subtraction-based (removing the duplicate check), pre-size encode_canonical() to eliminate repeated vector reallocations, and add regression tests in runtime/test/root_signature_test.cpp.

<!-- gh-comment-id:7170207565 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-ROOT-SIGNATURE-RTS0-OFFSET-WRAP-AND-RESERVE — harden `runtime/src/root_signature.cpp` against 32-bit `poff + 4`/`poff + 8` and DXBC chunk offset/size wraps, make `Reader::u32()` and `parse_rts0()` bounds checks subtraction-based (removing the duplicate check), pre-size `encode_canonical()` to eliminate repeated vector reallocations, and add regression tests in `runtime/test/root_signature_test.cpp`.
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

done: F16-WIDEN-PROBE-ATOMIC-JSON -> #2004

<!-- gh-comment-id:7170213737 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): done: F16-WIDEN-PROBE-ATOMIC-JSON -> #2004
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

claiming: SCRIPT-QTABLE-ATOMIC-JSON - reject empty --json and write JSON reports atomically in tools/script_qtable.py via NamedTemporaryFile + os.replace with temp cleanup, plus regression tests in tests/test_script_qtable.py. CPU-only, no game files. AI-assisted.

<!-- gh-comment-id:7170215117 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): claiming: SCRIPT-QTABLE-ATOMIC-JSON - reject empty --json and write JSON reports atomically in tools/script_qtable.py via NamedTemporaryFile + os.replace with temp cleanup, plus regression tests in tests/test_script_qtable.py. CPU-only, no game files. AI-assisted.
Author
Owner

@lgr123 commented on GitHub (Nov 25, 2026):

done: RT-XMA-LOOP-END-SUBFRAME -> #1999

done: RT-PRESENT-SRGB-UNORM-FALLBACK -> #2001

done: RT-GAMESAVE-INTERRUPTED-UPDATE-RECOVERY -> #2003

<!-- gh-comment-id:7170217738 --> @lgr123 commented on GitHub (Nov 25, 2026): done: RT-XMA-LOOP-END-SUBFRAME -> #1999 done: RT-PRESENT-SRGB-UNORM-FALLBACK -> #2001 done: RT-GAMESAVE-INTERRUPTED-UPDATE-RECOVERY -> #2003
Author
Owner

@Ch1mpleo commented on GitHub (Nov 25, 2026):

done: SCRIPT-QTABLE-ATOMIC-JSON -> #2005

<!-- gh-comment-id:7170234612 --> @Ch1mpleo commented on GitHub (Nov 25, 2026): done: SCRIPT-QTABLE-ATOMIC-JSON -> #2005
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

done: IMPORT-CALL-SITES-DIRECT-FF15-CALLS -> #2006

<!-- gh-comment-id:7170238512 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): done: IMPORT-CALL-SITES-DIRECT-FF15-CALLS -> #2006
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-ROOT-SIGNATURE-RTS0-OFFSET-WRAP-AND-RESERVE -> #2007 (https://github.com/ubiquitarianism/leonida/pull/2007) — subtraction-based RTS0/DXBC bounds checks without uint32_t poff + 4/+ 8 wraps, plus pre-sized single-allocation encode_canonical() (29.52x faster bit-exact at -O2).

<!-- gh-comment-id:7170257642 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: `RT-ROOT-SIGNATURE-RTS0-OFFSET-WRAP-AND-RESERVE` -> #2007 (https://github.com/ubiquitarianism/leonida/pull/2007) — subtraction-based RTS0/DXBC bounds checks without `uint32_t` `poff + 4`/`+ 8` wraps, plus pre-sized single-allocation `encode_canonical()` (**29.52x** faster bit-exact at `-O2`).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-UAV-CLEAR-FAST-PACK-AND-UNIT-TESTS — optimize runtime/src/uav_clear.h (O(1) switch lookup in layout() with compile-time completeness static_assert, word/byte-level bitfield put()/get() with bounds checks replacing bit-by-bit loops) and add a portable CPU-only CTest uav_clear_unit_test covering all 45 typed-UAV formats.

<!-- gh-comment-id:7170281757 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-UAV-CLEAR-FAST-PACK-AND-UNIT-TESTS — optimize `runtime/src/uav_clear.h` (`O(1)` `switch` lookup in `layout()` with compile-time completeness `static_assert`, word/byte-level bitfield `put()`/`get()` with bounds checks replacing bit-by-bit loops) and add a portable CPU-only CTest `uav_clear_unit_test` covering all 45 typed-UAV formats.
Author
Owner

@xophsy commented on GitHub (Nov 25, 2026):

done: GPU-RTX4080SUPER-WIN -> #2008 RTX 4080 SUPER, NVIDIA 617.14, Windows 11, main 360c728bd: 274/274 shaders translated and valid; native 209/264 passed, 54 skipped, 1 failed; emulated 243/264, 20 skipped, 1 failed (cs_imgatomic_ext, which passes here with #1518 applied). AI-assisted (Claude Code).

<!-- gh-comment-id:7170311660 --> @xophsy commented on GitHub (Nov 25, 2026): done: GPU-RTX4080SUPER-WIN -> #2008 RTX 4080 SUPER, NVIDIA 617.14, Windows 11, main 360c728bd: 274/274 shaders translated and valid; native 209/264 passed, 54 skipped, 1 failed; emulated 243/264, 20 skipped, 1 failed (cs_imgatomic_ext, which passes here with #1518 applied). AI-assisted (Claude Code).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-UAV-CLEAR-FAST-PACK-AND-UNIT-TESTS -> #2009 (https://github.com/ubiquitarianism/leonida/pull/2009) — constexpr switch format lookup + bounds-checked word/byte bitfield put()/get() (2.53x–2.85x faster bit-exact across all 45 formats at -O2) and portable CTest uav_clear_unit.

<!-- gh-comment-id:7170328777 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: `RT-UAV-CLEAR-FAST-PACK-AND-UNIT-TESTS` -> #2009 (https://github.com/ubiquitarianism/leonida/pull/2009) — `constexpr switch` format lookup + bounds-checked word/byte bitfield `put()`/`get()` (**2.53x–2.85x** faster bit-exact across all 45 formats at `-O2`) and portable CTest `uav_clear_unit`.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-CACHED-PSO-ZERO-ALLOC-CHECK-AND-ENCODE — eliminate per-call 64-byte std::string heap allocations in cached_pso::check() and cached_pso::encode() (runtime/src/cached_pso.h), guard null pointers in KeyBuilder::tag()/bytes(), and add a portable CPU-only CTest cached_pso_test.

<!-- gh-comment-id:7170341146 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-CACHED-PSO-ZERO-ALLOC-CHECK-AND-ENCODE — eliminate per-call 64-byte `std::string` heap allocations in `cached_pso::check()` and `cached_pso::encode()` (`runtime/src/cached_pso.h`), guard null pointers in `KeyBuilder::tag()`/`bytes()`, and add a portable CPU-only CTest `cached_pso_test`.
Author
Owner

@lgr123 commented on GitHub (Nov 25, 2026):

claiming: RT-PRESENT-BGRX-OPAQUE-PLANE — preserve opaque BGRX inputs in PresentX composition. On public main b9320a1, a synthetic green overlay on RTX 5070 disappears when the unused X byte is 0 and is opaque when X is 255. The genuine BGRA controls correctly distinguish alpha 0 and 255. The normal compositor samples the backing alpha even though a BGRX SRV already treats it as one. A Windows xbox_present regression reproduced the difference. No game data. AI-assisted.

<!-- gh-comment-id:7170365624 --> @lgr123 commented on GitHub (Nov 25, 2026): claiming: RT-PRESENT-BGRX-OPAQUE-PLANE — preserve opaque BGRX inputs in `PresentX` composition. On public main `b9320a1`, a synthetic green overlay on RTX 5070 disappears when the unused X byte is 0 and is opaque when X is 255. The genuine BGRA controls correctly distinguish alpha 0 and 255. The normal compositor samples the backing alpha even though a BGRX SRV already treats it as one. A Windows `xbox_present` regression reproduced the difference. No game data. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-CACHED-PSO-ZERO-ALLOC-CHECK-AND-ENCODE -> #2010 (https://github.com/ubiquitarianism/leonida/pull/2010) — zero-allocation cached_pso::check() (1.30x), single-allocation encode() (1.98x), KeyBuilder null guards, and portable CTest cached_pso.

<!-- gh-comment-id:7170383690 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: `RT-CACHED-PSO-ZERO-ALLOC-CHECK-AND-ENCODE` -> #2010 (https://github.com/ubiquitarianism/leonida/pull/2010) — zero-allocation `cached_pso::check()` (**1.30x**), single-allocation `encode()` (**1.98x**), `KeyBuilder` null guards, and portable CTest `cached_pso`.
Author
Owner

@j-weiner commented on GitHub (Nov 25, 2026):

claiming: DUALSENSE-TRIGGER-GAIN — add a validated LEONIDA_DS_TRIGGER_GAIN setting to scale DualSense trigger rumble and resistance effects on the existing SDL3 GameInput path, with synthetic regression tests and docs. Scoped follow-up to #1903; CPU-only, no game files. AI-assisted.

<!-- gh-comment-id:7170406934 --> @j-weiner commented on GitHub (Nov 25, 2026): claiming: DUALSENSE-TRIGGER-GAIN — add a validated `LEONIDA_DS_TRIGGER_GAIN` setting to scale DualSense trigger rumble and resistance effects on the existing SDL3 GameInput path, with synthetic regression tests and docs. Scoped follow-up to #1903; CPU-only, no game files. AI-assisted.
Author
Owner

@j-weiner commented on GitHub (Nov 25, 2026):

releasing: DUALSENSE-TRIGGER-GAIN — LEONIDA_DS_TRIGGER_GAIN is already implemented, parsed, tested for DualSense rumble/resistance effects, and documented on current main (runtime/shims/gameinput.cpp, runtime/test/gameinput_test.cpp, docs/gameinput.md). No changes made.

<!-- gh-comment-id:7170412654 --> @j-weiner commented on GitHub (Nov 25, 2026): releasing: DUALSENSE-TRIGGER-GAIN — `LEONIDA_DS_TRIGGER_GAIN` is already implemented, parsed, tested for DualSense rumble/resistance effects, and documented on current main (`runtime/shims/gameinput.cpp`, `runtime/test/gameinput_test.cpp`, `docs/gameinput.md`). No changes made.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-TITLE-TEXTURE-REFRESH-ENVELOPE-AND-WRAP — optimize title_write_overlaps() with an O(1) envelope/single-range fast path and merge_title_writes() with sorted/trivial fast paths in runtime/src/title_texture_refresh.h, make poll_title_textures() UINT64_MAX cursor wrap explicit, and add a portable CPU-only CTest title_texture_refresh_test.

<!-- gh-comment-id:7170422103 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-TITLE-TEXTURE-REFRESH-ENVELOPE-AND-WRAP — optimize `title_write_overlaps()` with an O(1) envelope/single-range fast path and `merge_title_writes()` with sorted/trivial fast paths in `runtime/src/title_texture_refresh.h`, make `poll_title_textures()` `UINT64_MAX` cursor wrap explicit, and add a portable CPU-only CTest `title_texture_refresh_test`.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

claiming: SHADER-CMOV32-MASK-AND-DST — support exec_lo/exec_hi, vcc_lo/vcc_hi, m0, null, and lane-mask SGPRs in s_cmov_b32 / s_cmovk_i32 (tools/rdna2spirv.py, tools/lane_masks.py) and preserve EITHER/half-mask state for s_movk_i32 0/-1 writes in tools/lane_masks.py.

<!-- gh-comment-id:7170428364 --> @ShotTechOp commented on GitHub (Nov 25, 2026): claiming: SHADER-CMOV32-MASK-AND-DST — support `exec_lo`/`exec_hi`, `vcc_lo`/`vcc_hi`, `m0`, `null`, and lane-mask SGPRs in `s_cmov_b32` / `s_cmovk_i32` (`tools/rdna2spirv.py`, `tools/lane_masks.py`) and preserve `EITHER`/half-mask state for `s_movk_i32` `0`/`-1` writes in `tools/lane_masks.py`.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

done: SHADER-CMOV32-MASK-AND-DST -> #2011

<!-- gh-comment-id:7170431074 --> @ShotTechOp commented on GitHub (Nov 25, 2026): done: SHADER-CMOV32-MASK-AND-DST -> #2011
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-TITLE-TEXTURE-REFRESH-ENVELOPE-AND-WRAP -> #2012 (https://github.com/ubiquitarianism/leonida/pull/2012) — O(1) envelope/single-range fast path in title_write_overlaps() (8.26x on 64-range / 2.01x on 1-range 20k-texture scans), sorted fast path in merge_title_writes() (1.42x), explicit UINT64_MAX cursor wrap, and portable CTest title_texture_refresh.

<!-- gh-comment-id:7170458402 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: `RT-TITLE-TEXTURE-REFRESH-ENVELOPE-AND-WRAP` -> #2012 (https://github.com/ubiquitarianism/leonida/pull/2012) — O(1) envelope/single-range fast path in `title_write_overlaps()` (**8.26x** on 64-range / **2.01x** on 1-range 20k-texture scans), sorted fast path in `merge_title_writes()` (**1.42x**), explicit `UINT64_MAX` cursor wrap, and portable CTest `title_texture_refresh`.
Author
Owner

@fiestorra commented on GitHub (Nov 25, 2026):

finding: vk_pipeline_check accepts the whole 1,844-program shader library and 13,500 corpus modules on an RTX 4090 (0 failures), the gfx1036 iGPU cannot check 35% of the corpus at all (no VK_EXT_mesh_shader), and one library program takes about 10 minutes to compile while the same program once took 0.37 s.

Measured on 2026-11-25 from the 1.0.2.1 work folder with runtime/build/RelWithDebInfo/vk_pipeline_check.exe, built in this tree on 2026-11-25 14:05 (HEAD 71a769d7d). Counts, stages, sizes and program names only; no shader bytes, disassembly or cache files are published. Reproducing it needs the local work folder and the two GPUs below (no game files in the repository).

Devices:

  • NVIDIA GeForce RTX 4090, Windows driver 32.0.16.2124, subgroup 32 only.
  • AMD Radeon(TM) Graphics (RDNA2, gfx1036), Windows driver 32.0.21045.29003, subgroup 32..64, no VK_EXT_mesh_shader.

Shader library (work/shaders/spirv/library, 1,844 compute programs)

Complete run on the RTX 4090: 1,844/1,844 modules accepted and 1,844/1,844 compute pipelines created, 0 MODULE FAIL, 0 PIPELINE FAIL, 0 skipped, nothing over --max-bytes. docs/pipeline_check.md and the "Full-corpus pipeline build" row of docs/design.md cover the 26,503-entry root index only, so these library figures are new.

Per-program compile time, fresh run with an empty __GL_SHADER_DISK_CACHE_PATH and --jobs 8 --slow 0, no pipeline cache file, over the 1,823 programs up to 4 MiB: median 0.50 s, p90 8.0 s, p99 40.6 s, max 86.5 s (5,603 s of CPU, mean 3.07 s; 25 programs at or above 30 s, 6 at or above 60 s). Slowest five: lib_cs_00963 86.5 s, lib_cs_00962 86.0 s, lib_cs_02325 80.5 s, lib_cs_21486 77.4 s, lib_cs_21508 76.4 s.

The 21 programs over 4 MiB (4.0-13.1 MB) were skipped there by size and their bulk-run times were 30-574 s each: lib_cs_21514 574.0 s, lib_cs_21478 555.4 s, lib_cs_21506 485.9 s, lib_cs_21501 283.9 s, lib_cs_21515 255.5 s.

Compile time is not stable between runs

  • lib_cs_21514: 574.0 s in the bulk run; 620.0 s alone with no pipeline cache file. Reproducible, 8% apart.
  • One earlier isolated run of the same program returned 0.37 s. That was the only run that did; the driver's own cache is the likely explanation, and it is also why a repeat of the whole library returns in 13.7 s (mean 0.011 s) even with __GL_SHADER_DISK_CACHE=0. Per-program times need an empty __GL_SHADER_DISK_CACHE_PATH, as used above.
  • Both slow programs are structured native wave32 compute with 2,048 bytes of LDS, so stage, subgroup size and translation form do not separate them from the fast ones.

Corpus (work/shaders/spirv, 26,503 programs)

  • Index [0, 9000), complete run: 9,000/9,000 modules accepted and 9,000/9,000 pipelines created, 0 failed (cs 53, gs 195, ms 2,675, ps 5,339, vs 738). All five stages.
  • Index [13251, 17819): 4,500/4,500 modules accepted and 4,500/4,500 pipelines created, 0 failed (cs 443, ms 2,145, ps 1,363, vs 549), with 68 programs over 4 MiB skipped by size (the *_CS_RaytracingResolve_* family).
  • No MODULE FAIL, PIPELINE FAIL or MODULE CRASH line exists in any corpus log. Slowest single compiles seen: 105.2 s (5PS_MirrorReflectionDeferredTextured_5cbcacdf_Wrapped~46), 74.0 s (!PS_PuddleDetect_cf03bbb3_Wrapped~15), 70.8 s (7hair_bvh_resolve_CS_RaytracingResolve_bfd1648e_Wrapped), 47.6 s (mesh).
  • The run was stopped at 13,500 of 26,503. The reason is the 540 programs over 4 MiB (2.47 GB of SPIR-V), 513 of them *_CS_RaytracingResolve_*: at 30-620 s each they need many hours on this driver. The full 26,503 set with 0 failures is already published from an RTX 4060 Ti (driver 595) in the "Full-corpus pipeline build" row of docs/design.md; this run adds the driver 32.0.16.2124 confirmation for the half it reached.

Corpus sample on the gfx1036 iGPU

Eight bins of 30 over the sorted index, one process per bin, --jobs 2: 240 modules (141 ps, 4 cs, 95 ms), 0 rejections; 141/141 ps and 4/4 cs pipelines created. A second sample over the library index (6 bins of 20, 120 cs) added no rejection: 340 sampled modules, 245/245 creatable pipelines, 0 failed.

The device exposes no VK_EXT_mesh_shader, so all 95 mesh modules in that sample were skipped, and with them 9,282 of the 26,503 corpus modules (35.0%) can never be pipeline-checked on this iGPU. One process died once without a summary while library entry lib_cs_01159 was in flight; repeating it alone and beside a second checker process created 20/20 pipelines in 0.4 s, so it is not reproducible and I am not calling it a rejection.

What this proves and what it does not

  • It proves the real driver accepts these modules and creates the pipelines under the runtime's descriptor and push-constant contract on the devices named.
  • It does not prove the runtime can compile them in time. "The driver accepts the module" and "the pipeline is ready within the world-start budget" are different claims; the 500-620 s programs put the second one at risk, and what is measured here is single-process CPU compile time, not a boot.
  • It does not prove these are the pipelines the game asks for: descriptors, root signature and push constants come from the missing executable.
  • It does not prove any shader computes the right values (docs/shader_validation.md); the graphics pipelines are created but never drawn with.
  • On the gfx1036 nothing is claimed about mesh programs, because the device cannot compile them at all.

Written with an AI assistant.

<!-- gh-comment-id:7170490849 --> @fiestorra commented on GitHub (Nov 25, 2026): finding: `vk_pipeline_check` accepts the whole 1,844-program shader library and 13,500 corpus modules on an RTX 4090 (0 failures), the gfx1036 iGPU cannot check 35% of the corpus at all (no `VK_EXT_mesh_shader`), and one library program takes about 10 minutes to compile while the same program once took 0.37 s. Measured on 2026-11-25 from the 1.0.2.1 work folder with `runtime/build/RelWithDebInfo/vk_pipeline_check.exe`, built in this tree on 2026-11-25 14:05 (HEAD `71a769d7d`). Counts, stages, sizes and program names only; no shader bytes, disassembly or cache files are published. Reproducing it needs the local work folder and the two GPUs below (no game files in the repository). Devices: - NVIDIA GeForce RTX 4090, Windows driver 32.0.16.2124, subgroup 32 only. - AMD Radeon(TM) Graphics (RDNA2, gfx1036), Windows driver 32.0.21045.29003, subgroup 32..64, **no `VK_EXT_mesh_shader`**. ### Shader library (`work/shaders/spirv/library`, 1,844 compute programs) Complete run on the RTX 4090: **1,844/1,844 modules accepted and 1,844/1,844 compute pipelines created**, 0 `MODULE FAIL`, 0 `PIPELINE FAIL`, 0 skipped, nothing over `--max-bytes`. `docs/pipeline_check.md` and the "Full-corpus pipeline build" row of `docs/design.md` cover the 26,503-entry root index only, so these library figures are new. Per-program compile time, fresh run with an empty `__GL_SHADER_DISK_CACHE_PATH` and `--jobs 8 --slow 0`, no pipeline cache file, over the **1,823 programs up to 4 MiB**: **median 0.50 s, p90 8.0 s, p99 40.6 s, max 86.5 s** (5,603 s of CPU, mean 3.07 s; 25 programs at or above 30 s, 6 at or above 60 s). Slowest five: `lib_cs_00963` 86.5 s, `lib_cs_00962` 86.0 s, `lib_cs_02325` 80.5 s, `lib_cs_21486` 77.4 s, `lib_cs_21508` 76.4 s. The 21 programs over 4 MiB (4.0-13.1 MB) were skipped there by size and their bulk-run times were **30-574 s each**: `lib_cs_21514` 574.0 s, `lib_cs_21478` 555.4 s, `lib_cs_21506` 485.9 s, `lib_cs_21501` 283.9 s, `lib_cs_21515` 255.5 s. ### Compile time is not stable between runs - `lib_cs_21514`: 574.0 s in the bulk run; **620.0 s** alone with no pipeline cache file. Reproducible, 8% apart. - One earlier isolated run of the same program returned **0.37 s**. That was the only run that did; the driver's own cache is the likely explanation, and it is also why a repeat of the whole library returns in **13.7 s** (mean 0.011 s) even with `__GL_SHADER_DISK_CACHE=0`. Per-program times need an empty `__GL_SHADER_DISK_CACHE_PATH`, as used above. - Both slow programs are `structured` native wave32 compute with 2,048 bytes of LDS, so stage, subgroup size and translation form do not separate them from the fast ones. ### Corpus (`work/shaders/spirv`, 26,503 programs) - Index `[0, 9000)`, complete run: **9,000/9,000 modules accepted and 9,000/9,000 pipelines created, 0 failed** (cs 53, gs 195, ms 2,675, ps 5,339, vs 738). All five stages. - Index `[13251, 17819)`: **4,500/4,500 modules accepted and 4,500/4,500 pipelines created, 0 failed** (cs 443, ms 2,145, ps 1,363, vs 549), with 68 programs over 4 MiB skipped by size (the `*_CS_RaytracingResolve_*` family). - No `MODULE FAIL`, `PIPELINE FAIL` or `MODULE CRASH` line exists in any corpus log. Slowest single compiles seen: 105.2 s (`5PS_MirrorReflectionDeferredTextured_5cbcacdf_Wrapped~46`), 74.0 s (`!PS_PuddleDetect_cf03bbb3_Wrapped~15`), 70.8 s (`7hair_bvh_resolve_CS_RaytracingResolve_bfd1648e_Wrapped`), 47.6 s (mesh). - The run was stopped at 13,500 of 26,503. The reason is the **540 programs over 4 MiB (2.47 GB of SPIR-V)**, 513 of them `*_CS_RaytracingResolve_*`: at 30-620 s each they need many hours on this driver. The full 26,503 set with 0 failures is already published from an RTX 4060 Ti (driver 595) in the "Full-corpus pipeline build" row of `docs/design.md`; this run adds the driver 32.0.16.2124 confirmation for the half it reached. ### Corpus sample on the gfx1036 iGPU Eight bins of 30 over the sorted index, one process per bin, `--jobs 2`: **240 modules (141 ps, 4 cs, 95 ms), 0 rejections**; 141/141 ps and 4/4 cs pipelines created. A second sample over the library index (6 bins of 20, 120 cs) added no rejection: **340 sampled modules, 245/245 creatable pipelines, 0 failed**. The device exposes **no `VK_EXT_mesh_shader`**, so all 95 mesh modules in that sample were skipped, and with them **9,282 of the 26,503 corpus modules (35.0%) can never be pipeline-checked on this iGPU**. One process died once without a summary while library entry `lib_cs_01159` was in flight; repeating it alone and beside a second checker process created 20/20 pipelines in 0.4 s, so it is not reproducible and I am not calling it a rejection. ### What this proves and what it does not - It proves the real driver accepts these modules and creates the pipelines under the runtime's descriptor and push-constant contract on the devices named. - It does **not** prove the runtime can compile them in time. "The driver accepts the module" and "the pipeline is ready within the world-start budget" are different claims; the 500-620 s programs put the second one at risk, and what is measured here is single-process CPU compile time, not a boot. - It does **not** prove these are the pipelines the game asks for: descriptors, root signature and push constants come from the missing executable. - It does **not** prove any shader computes the right values (`docs/shader_validation.md`); the graphics pipelines are created but never drawn with. - On the gfx1036 nothing is claimed about mesh programs, because the device cannot compile them at all. Written with an AI assistant.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-DSTORAGE-STAGING-OVERFLOW-AND-REUSE — harden runtime/shims/dstorage_staging.h against 64-bit unsigned overflow in staging_bytes() (pages() and input + output), prevent StagingPool::Lease accounting leaks on re-acquire/try_pair, notify waiters outside mutex_, fix %llu format casts, and add regression tests in runtime/test/dstorage_test.cpp.

<!-- gh-comment-id:7170510712 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-DSTORAGE-STAGING-OVERFLOW-AND-REUSE — harden `runtime/shims/dstorage_staging.h` against 64-bit unsigned overflow in `staging_bytes()` (`pages()` and `input + output`), prevent `StagingPool::Lease` accounting leaks on re-acquire/`try_pair`, notify waiters outside `mutex_`, fix `%llu` format casts, and add regression tests in `runtime/test/dstorage_test.cpp`.
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

claiming: RT-VALUE-WRITE-SINK-GUARDS-AND-TESTS — guard null/zero writes in runtime/src/value_write_sink.h, add state reset helpers, and add portable CPU-only CTest runtime/test/value_write_sink_test.cpp

<!-- gh-comment-id:7170514927 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): claiming: RT-VALUE-WRITE-SINK-GUARDS-AND-TESTS — guard null/zero writes in runtime/src/value_write_sink.h, add state reset helpers, and add portable CPU-only CTest runtime/test/value_write_sink_test.cpp
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

claiming: SHADER-IR-LIT-NEGATIVE-SIGN — check leading - before unwrapping lit(V) in tools/shader_ir.py::operand so negative literals like lit(-1) / lit(-0x10) / lit(-1.5) keep their negative value instead of being rewritten to VOP3 neg(V) (bit-31 flip).

<!-- gh-comment-id:7170534057 --> @ShotTechOp commented on GitHub (Nov 25, 2026): claiming: SHADER-IR-LIT-NEGATIVE-SIGN — check leading `-` before unwrapping `lit(V)` in `tools/shader_ir.py::operand` so negative literals like `lit(-1)` / `lit(-0x10)` / `lit(-1.5)` keep their negative value instead of being rewritten to VOP3 `neg(V)` (bit-31 flip).
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

done: SHADER-IR-LIT-NEGATIVE-SIGN -> #2013

<!-- gh-comment-id:7170550958 --> @ShotTechOp commented on GitHub (Nov 25, 2026): done: SHADER-IR-LIT-NEGATIVE-SIGN -> #2013
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-DSTORAGE-STAGING-OVERFLOW-AND-REUSE -> #2015 (https://github.com/ubiquitarianism/leonida/pull/2015) — saturating staging_bytes() arithmetic, leak-free StagingPool::Lease reuse/release(), unlock-before-notify_all(), %llu format casts, and dstorage_test.cpp coverage.

<!-- gh-comment-id:7170561228 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: `RT-DSTORAGE-STAGING-OVERFLOW-AND-REUSE` -> #2015 (https://github.com/ubiquitarianism/leonida/pull/2015) — saturating `staging_bytes()` arithmetic, leak-free `StagingPool::Lease` reuse/`release()`, unlock-before-`notify_all()`, `%llu` format casts, and `dstorage_test.cpp` coverage.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-TITLE-IMAGE-UPLOAD-FAST-SCAN-AND-GUARDS — optimize and harden TitleImageUpload (runtime/shims/d3d12_title_image_upload.h): replace byte-by-byte std::any_of over mapped staging memory with a 64-byte unrolled uint64_t OR-reduction nonzero scanner, guard !tiled/!block.block, prevent 64-bit alignment/slice overflow before UINT32_MAX check, guard null vkWaitSemaphores in wait_slot(), and reset slot.value/next_/value_/consumers_/regions_ in release().

<!-- gh-comment-id:7170576832 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-TITLE-IMAGE-UPLOAD-FAST-SCAN-AND-GUARDS — optimize and harden `TitleImageUpload` (`runtime/shims/d3d12_title_image_upload.h`): replace byte-by-byte `std::any_of` over mapped staging memory with a 64-byte unrolled `uint64_t` OR-reduction nonzero scanner, guard `!tiled`/`!block.block`, prevent 64-bit alignment/slice overflow before `UINT32_MAX` check, guard null `vkWaitSemaphores` in `wait_slot()`, and reset `slot.value`/`next_`/`value_`/`consumers_`/`regions_` in `release()`.
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

done: RT-VALUE-WRITE-SINK-GUARDS-AND-TESTS -> #2016

<!-- gh-comment-id:7170589857 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): done: RT-VALUE-WRITE-SINK-GUARDS-AND-TESTS -> #2016
Author
Owner

@BubsMcgee commented on GitHub (Nov 25, 2026):

claiming: FIDELITYFX-ENTRY-CONTRACT — document the two shipped FidelityFX modules' ffx_api entry points from the files: the five exports, which four the executable imports (all from the loader), the loader's descriptor list walk and module mask, the 16-byte context, the backend vtables ffxQuery/ffxDispatch use, the upscaler's two-backend table, and the function that holds the pre-#1862 AV at +0x65ff. Measured with Ghidra 12.2 through REA on 1.0.2.1; docs-only (docs/fspx.md), no game data, no GPU needed. Separate from #1862, which fixes the missing FSPX programs themselves.

<!-- gh-comment-id:7170600569 --> @BubsMcgee commented on GitHub (Nov 25, 2026): claiming: FIDELITYFX-ENTRY-CONTRACT — document the two shipped FidelityFX modules' `ffx_api` entry points from the files: the five exports, which four the executable imports (all from the loader), the loader's descriptor list walk and module mask, the 16-byte context, the backend vtables `ffxQuery`/`ffxDispatch` use, the upscaler's two-backend table, and the function that holds the pre-#1862 AV at `+0x65ff`. Measured with Ghidra 12.2 through REA on 1.0.2.1; docs-only (`docs/fspx.md`), no game data, no GPU needed. Separate from #1862, which fixes the missing FSPX programs themselves.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

claiming: SHADER-META-OPERANDS-AND-LDS — fix tools/shader_meta.py operand splitting and descriptor tracking for 3-operand v_*_co_ci_u32 short forms, s_atomic_*/s_buffer_atomic_* (RMW + ptr64/vsharp), buffer_load*/tbuffer_load* with lds (srsrc at a[1]), and v_swap_b32/v_*rel*_b32 vscale tracking.

<!-- gh-comment-id:7170635175 --> @ShotTechOp commented on GitHub (Nov 25, 2026): claiming: SHADER-META-OPERANDS-AND-LDS — fix `tools/shader_meta.py` operand splitting and descriptor tracking for 3-operand `v_*_co_ci_u32` short forms, `s_atomic_*`/`s_buffer_atomic_*` (RMW + ptr64/vsharp), `buffer_load*`/`tbuffer_load*` with `lds` (`srsrc` at `a[1]`), and `v_swap_b32`/`v_*rel*_b32` `vscale` tracking.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

done: SHADER-META-OPERANDS-AND-LDS -> #2018

<!-- gh-comment-id:7170637751 --> @ShotTechOp commented on GitHub (Nov 25, 2026): done: SHADER-META-OPERANDS-AND-LDS -> #2018
Author
Owner

@azsekazvamdimitar commented on GitHub (Nov 25, 2026):

claiming: VERIFY-1887-1957-LINUX-WINE - independent Linux runs of #1887 (console-heap V# bitset, head 3233b9857) and #1957 (list-value wait timeout, post-review head 9520db518), each merged onto current main: the full runtime CTest natively and of the clang-cl cross build under WineHQ 11.22 and GE-Proton11-14, against main as the baseline, on an RTX 3090 (Ampere, NVIDIA 590.48.01, Debian 13), plus one retail boot per PR under Proton (counts only). Complements the Pascal and Blackwell Windows runs. Results posted on both PRs. AI-assisted (Claude Code).

<!-- gh-comment-id:7170642187 --> @azsekazvamdimitar commented on GitHub (Nov 25, 2026): claiming: VERIFY-1887-1957-LINUX-WINE - independent Linux runs of #1887 (console-heap V# bitset, head 3233b9857) and #1957 (list-value wait timeout, post-review head 9520db518), each merged onto current `main`: the full runtime CTest natively and of the clang-cl cross build under WineHQ 11.22 and GE-Proton11-14, against `main` as the baseline, on an RTX 3090 (Ampere, NVIDIA 590.48.01, Debian 13), plus one retail boot per PR under Proton (counts only). Complements the Pascal and Blackwell Windows runs. Results posted on both PRs. AI-assisted (Claude Code).
Author
Owner

@lgr123 commented on GitHub (Nov 25, 2026):

done: RT-PRESENT-BGRX-OPAQUE-PLANE -> #2014

<!-- gh-comment-id:7170668301 --> @lgr123 commented on GitHub (Nov 25, 2026): done: RT-PRESENT-BGRX-OPAQUE-PLANE -> #2014
Author
Owner

@DadaCap commented on GitHub (Nov 25, 2026):

claim: RT-PLACED-DEFER-STAGED. Follow-up of my #1827: on a device without host image copies a CPU-fillable placed (slot-133) BC image is backed as soon as it is made, because the deferral behind a shared zero image needs host copies. In my world run the memory probe counted 3,952.8 MiB "CPU-fillable without a fill" (RTX 5080, host copy off). The fix is written and tested; pull request follows. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7170677286 --> @DadaCap commented on GitHub (Nov 25, 2026): claim: RT-PLACED-DEFER-STAGED. Follow-up of my #1827: on a device without host image copies a CPU-fillable placed (slot-133) BC image is backed as soon as it is made, because the deferral behind a shared zero image needs host copies. In my world run the memory probe counted 3,952.8 MiB "CPU-fillable without a fill" (RTX 5080, host copy off). The fix is written and tested; pull request follows. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-TITLE-IMAGE-UPLOAD-FAST-SCAN-AND-GUARDS -> #2021 (https://github.com/ubiquitarianism/leonida/pull/2021) — 64-byte unrolled has_nonzero_bytes() (25.35x faster 16 MiB zero-texture scan), overflow/null guards, vkWaitSemaphores check, full release() reset, and title_image_upload CTest.

<!-- gh-comment-id:7170680567 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: `RT-TITLE-IMAGE-UPLOAD-FAST-SCAN-AND-GUARDS` -> #2021 (https://github.com/ubiquitarianism/leonida/pull/2021) — 64-byte unrolled `has_nonzero_bytes()` (**25.35x** faster 16 MiB zero-texture scan), overflow/null guards, `vkWaitSemaphores` check, full `release()` reset, and `title_image_upload` CTest.
Author
Owner

@BubsMcgee commented on GitHub (Nov 25, 2026):

claiming: RT-XAPU-OPUS-DECODE -- implement the console audio decoder's Opus path in runtime/shims/xapu.cpp.

Today the shim accepts and drops every XApuEnqueueCommand, so the title's Opus audio stays silent. The title connects with process = 1 (Opus, 48 kHz), 256 streams, 2 commands per stream, a 0x104000-byte shared buffer and an optional result event, then queues activate/deactivate/process/reset commands and dequeues one result each.

Plan:

  • runtime/opus_decoder: a Rust C-ABI crate over the BSD-3 opus-pure package, like runtime/xma_decoder: create/reset/destroy, decode one packet to f32 PCM, and a test-only encoder so the C++ test builds its own tone (no game data).
  • xapu.cpp: the XAPU command protocol (connect input/output, per-stream command budget, result order, activate/channels, process with first_frame/frame_count/output_length and the deinterleaved option), keeping the current silent behavior when cargo/the decoder is absent.
  • CMake wiring mirroring the XMA decoder, a LEONIDA_REQUIRE_OPUS_DECODER option, and an updated xapu_test (synthetic packets only).
  • Docs: the XAPU row in docs/runtime_imports.md and the call-shape note.

Source of the facts: Marvisak/VIctory crates/victory-hle/src/modules/apu.rs (GPL-3.0-or-later), which this repository already credits for other modules. No game data.
AI-assisted.

<!-- gh-comment-id:7170709281 --> @BubsMcgee commented on GitHub (Nov 25, 2026): claiming: RT-XAPU-OPUS-DECODE -- implement the console audio decoder's Opus path in `runtime/shims/xapu.cpp`. Today the shim accepts and drops every `XApuEnqueueCommand`, so the title's Opus audio stays silent. The title connects with `process = 1` (Opus, 48 kHz), 256 streams, 2 commands per stream, a 0x104000-byte shared buffer and an optional result event, then queues activate/deactivate/process/reset commands and dequeues one result each. Plan: - `runtime/opus_decoder`: a Rust C-ABI crate over the BSD-3 `opus-pure` package, like `runtime/xma_decoder`: create/reset/destroy, decode one packet to f32 PCM, and a test-only encoder so the C++ test builds its own tone (no game data). - `xapu.cpp`: the XAPU command protocol (connect input/output, per-stream command budget, result order, activate/channels, process with first_frame/frame_count/output_length and the deinterleaved option), keeping the current silent behavior when cargo/the decoder is absent. - CMake wiring mirroring the XMA decoder, a `LEONIDA_REQUIRE_OPUS_DECODER` option, and an updated `xapu_test` (synthetic packets only). - Docs: the XAPU row in `docs/runtime_imports.md` and the call-shape note. Source of the facts: Marvisak/VIctory `crates/victory-hle/src/modules/apu.rs` (GPL-3.0-or-later), which this repository already credits for other modules. No game data. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-TITLE-GPU-PLACEMENTS-HASH-AND-OVERFLOW — replace std::multimap with an O(1) hash map + inline-1 LIFO bucket in TitleGpuPlacements (runtime/shims/title_gpu_placements.h), skip duplicate lookup when alias == va, fix 32-bit first_mip + mip_count and first_layer + layer_count wraps in matches(), and add regression tests in runtime/test/d3d12_existing_heap_test.cpp.

<!-- gh-comment-id:7170709644 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-TITLE-GPU-PLACEMENTS-HASH-AND-OVERFLOW — replace `std::multimap` with an O(1) hash map + inline-1 LIFO bucket in `TitleGpuPlacements` (`runtime/shims/title_gpu_placements.h`), skip duplicate lookup when `alias == va`, fix 32-bit `first_mip + mip_count` and `first_layer + layer_count` wraps in `matches()`, and add regression tests in `runtime/test/d3d12_existing_heap_test.cpp`.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-TITLE-GPU-PLACEMENTS-HASH-AND-OVERFLOW -> #2022 (https://github.com/ubiquitarianism/leonida/pull/2022) — O(1) unordered_map + inline-1 LIFO bucket (28.54x faster 16k-placement find() at -O2), alias == va dedup, and overflow-free mip/layer matches() checks.

<!-- gh-comment-id:7170760452 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: `RT-TITLE-GPU-PLACEMENTS-HASH-AND-OVERFLOW` -> #2022 (https://github.com/ubiquitarianism/leonida/pull/2022) — O(1) `unordered_map` + inline-1 LIFO bucket (**28.54x** faster 16k-placement `find()` at `-O2`), `alias == va` dedup, and overflow-free mip/layer `matches()` checks.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claiming: RT-XS-ROOTSIG-ATOMIC-BLOB-REFCOUNT — fix non-atomic COM AddRef/Release data race on RewrittenBlob::refs_ in runtime/shims/d3d12_xs_rootsig.cpp (std::atomic<ULONG> with acq_rel release ordering) and add a multithreaded AddRef/Release stress test in runtime/test/root_sig_test.cpp.

<!-- gh-comment-id:7170769660 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claiming: RT-XS-ROOTSIG-ATOMIC-BLOB-REFCOUNT — fix non-atomic COM `AddRef`/`Release` data race on `RewrittenBlob::refs_` in `runtime/shims/d3d12_xs_rootsig.cpp` (`std::atomic<ULONG>` with `acq_rel` release ordering) and add a multithreaded `AddRef`/`Release` stress test in `runtime/test/root_sig_test.cpp`.
Author
Owner

@BubsMcgee commented on GitHub (Nov 25, 2026):

claiming: D3D-INTEGER-TARGET-BLEND-BYPASS — ported from DexNom/VIctory ddb7332 (GPL-3.0-or-later): the console's native state leaves blending enabled on integer render targets; PC D3D12 rejects that state and Vulkan requires blendEnable = VK_FALSE. The layer now clears the enable for an integer target, keeps its write mask, and excludes it from dual-source detection. Layer-only test in d3d12_pso_validation_test §3b (PC D3D12 rejects the same state), passes with LEONIDA_VK_VALIDATION=1 on RTX 3080 Ti / driver 616.64. First item of the VIctory gap port. AI-assisted.

<!-- gh-comment-id:7170810747 --> @BubsMcgee commented on GitHub (Nov 25, 2026): claiming: D3D-INTEGER-TARGET-BLEND-BYPASS — ported from DexNom/VIctory `ddb7332` (GPL-3.0-or-later): the console's native state leaves blending enabled on integer render targets; PC D3D12 rejects that state and Vulkan requires `blendEnable = VK_FALSE`. The layer now clears the enable for an integer target, keeps its write mask, and excludes it from dual-source detection. Layer-only test in `d3d12_pso_validation_test` §3b (PC D3D12 rejects the same state), passes with `LEONIDA_VK_VALIDATION=1` on RTX 3080 Ti / driver 616.64. First item of the VIctory gap port. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-XS-ROOTSIG-ATOMIC-BLOB-REFCOUNT -> #2024

<!-- gh-comment-id:7170867314 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-XS-ROOTSIG-ATOMIC-BLOB-REFCOUNT -> #2024
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

claiming: RT-XS-ALLOC-SIZE-GUARDS-AND-TESTS -- guard align_up_saturating against zero alignment in runtime/shims/d3d12_xs_alloc_size.h and add unit tests

<!-- gh-comment-id:7170907254 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): claiming: RT-XS-ALLOC-SIZE-GUARDS-AND-TESTS -- guard align_up_saturating against zero alignment in runtime/shims/d3d12_xs_alloc_size.h and add unit tests
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claim: RT-RETIRE-TICKETS-EARLY-BREAK-AND-SEM-CACHE (runtime/src/retire_tickets.h, runtime/test/retire_tickets_test.cpp): track monotonic ticket recording for O(k) early exit in pending_through(), cache confirmed (semaphore, value) pairs within completed() to skip redundant semaphore queries, and expand regression + benchmark coverage.

<!-- gh-comment-id:7170922860 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claim: RT-RETIRE-TICKETS-EARLY-BREAK-AND-SEM-CACHE (`runtime/src/retire_tickets.h`, `runtime/test/retire_tickets_test.cpp`): track monotonic ticket recording for O(k) early exit in `pending_through()`, cache confirmed `(semaphore, value)` pairs within `completed()` to skip redundant semaphore queries, and expand regression + benchmark coverage.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

claiming: GPU-RUNNER-REPLAY-NO-CASES - scripts/run_gpu_tests.py exits 0 and prints 0/0 passed when --disasm-dir contains only a benchmark input and no --filter is supplied. Extend the existing no-runnable-cases diagnostic to replay selection. Reproduced on b9320a1 with a synthetic listing and mocked tools. No game files or GPU. AI-assisted with Codex.

<!-- gh-comment-id:7170959711 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): claiming: GPU-RUNNER-REPLAY-NO-CASES - scripts/run_gpu_tests.py exits 0 and prints 0/0 passed when --disasm-dir contains only a benchmark input and no --filter is supplied. Extend the existing no-runnable-cases diagnostic to replay selection. Reproduced on b9320a1 with a synthetic listing and mocked tools. No game files or GPU. AI-assisted with Codex.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-RETIRE-TICKETS-EARLY-BREAK-AND-SEM-CACHE -> #2025

<!-- gh-comment-id:7170964414 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-RETIRE-TICKETS-EARLY-BREAK-AND-SEM-CACHE -> #2025
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claim: RT-XS-ALLOC-SIZE-OVERFLOW-AND-SINGLE-PASS (runtime/shims/d3d12_xs_alloc_size.h, new CPU-only test): fix align_up_saturating divide-by-zero when to == 0, fix uint64 mip-shift/slice accumulation overflow in console_render_target_size and console_depth_stencil_size, eliminate redundant 2x-3x pc_one/XG layout passes in console_placement, and add standalone unit test + A/B benchmark.

<!-- gh-comment-id:7170982884 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claim: RT-XS-ALLOC-SIZE-OVERFLOW-AND-SINGLE-PASS (`runtime/shims/d3d12_xs_alloc_size.h`, new CPU-only test): fix `align_up_saturating` divide-by-zero when `to == 0`, fix uint64 mip-shift/slice accumulation overflow in `console_render_target_size` and `console_depth_stencil_size`, eliminate redundant 2x-3x `pc_one`/XG layout passes in `console_placement`, and add standalone unit test + A/B benchmark.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

done: GPU-RUNNER-REPLAY-NO-CASES -> #2026

<!-- gh-comment-id:7170993223 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): done: GPU-RUNNER-REPLAY-NO-CASES -> #2026
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

done: RT-XS-ALLOC-SIZE-GUARDS-AND-TESTS -> #2027

<!-- gh-comment-id:7170995484 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): done: RT-XS-ALLOC-SIZE-GUARDS-AND-TESTS -> #2027
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

claiming: GAME-RUN-SUMMARY-EARLY-EXIT - game_run_summary labels any process status 124 or 137 as a timeout, even when the recorded duration is shorter than the configured limit. I will use the recorded seconds and preserve timeout reporting at or beyond the limit and for older incomplete run folders. Reproduced with synthetic run records. Separate from #1837. AI-assisted with Codex.

<!-- gh-comment-id:7171018307 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): claiming: GAME-RUN-SUMMARY-EARLY-EXIT - game_run_summary labels any process status 124 or 137 as a timeout, even when the recorded duration is shorter than the configured limit. I will use the recorded seconds and preserve timeout reporting at or beyond the limit and for older incomplete run folders. Reproduced with synthetic run records. Separate from #1837. AI-assisted with Codex.
Author
Owner

@BubsMcgee commented on GitHub (Nov 25, 2026):

Addendum to RT-XAPU-OPUS-DECODE: the runtime serves xapu.dll from runtime/shims/xapu_chad.cpp (xapu.cpp is the legacy test-only shim, which gta6rt no longer links), so the change lands there. runtime/opus_decoder is a Rust C-ABI crate over BSD-3 opus-pure, built by cargo like runtime/xma_decoder; without cargo the same command/result shapes report zero frames and the path stays silent. xapu_chad_test passes 41/41, including a generated 440 Hz stereo packet decoded to 960 frames / 0x1E00 bytes with nonzero energy; acphal, acphal_noncached_only, xapu_chad and xapu pass under CTest. No game data.

<!-- gh-comment-id:7171050722 --> @BubsMcgee commented on GitHub (Nov 25, 2026): Addendum to RT-XAPU-OPUS-DECODE: the runtime serves `xapu.dll` from `runtime/shims/xapu_chad.cpp` (`xapu.cpp` is the legacy test-only shim, which `gta6rt` no longer links), so the change lands there. `runtime/opus_decoder` is a Rust C-ABI crate over BSD-3 `opus-pure`, built by cargo like `runtime/xma_decoder`; without cargo the same command/result shapes report zero frames and the path stays silent. `xapu_chad_test` passes 41/41, including a generated 440 Hz stereo packet decoded to 960 frames / 0x1E00 bytes with nonzero energy; `acphal`, `acphal_noncached_only`, `xapu_chad` and `xapu` pass under CTest. No game data.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

done: GAME-RUN-SUMMARY-EARLY-EXIT -> #2028

<!-- gh-comment-id:7171052789 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): done: GAME-RUN-SUMMARY-EARLY-EXIT -> #2028
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-XS-ALLOC-SIZE-OVERFLOW-AND-SINGLE-PASS -> #2029

<!-- gh-comment-id:7171057328 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-XS-ALLOC-SIZE-OVERFLOW-AND-SINGLE-PASS -> #2029
Author
Owner

@aslan2142 commented on GitHub (Nov 25, 2026):

claiming: DOC-CONTRIBUTING-MAINTAINER-GUIDE. A short guide for maintainers (how to review and merge a pull request), as a new section at the end of CONTRIBUTING.md. The contributor rules stay unchanged.

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

<!-- gh-comment-id:7171064070 --> @aslan2142 commented on GitHub (Nov 25, 2026): claiming: DOC-CONTRIBUTING-MAINTAINER-GUIDE. A short guide for maintainers (how to review and merge a pull request), as a new section at the end of `CONTRIBUTING.md`. The contributor rules stay unchanged. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claim: RT-SUBMIT-PHASES-PERIOD-PARSE-AND-ZERO-OVERHEAD-SCOPE (runtime/src/submit_phases.h, new portable CTest runtime/test/submit_phases_test.cpp): fix signed overflow UB / negative-period log storm on LEONIDA_SUBMIT_PHASES_SECONDS, guard negative delta wrap in Scope::~Scope(), skip steady_clock::now() + atomic RMWs in Scope when period is 0, and add portable unit test + benchmark.

<!-- gh-comment-id:7171069227 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claim: RT-SUBMIT-PHASES-PERIOD-PARSE-AND-ZERO-OVERHEAD-SCOPE (`runtime/src/submit_phases.h`, new portable CTest `runtime/test/submit_phases_test.cpp`): fix signed overflow UB / negative-period log storm on `LEONIDA_SUBMIT_PHASES_SECONDS`, guard negative delta wrap in `Scope::~Scope()`, skip `steady_clock::now()` + atomic RMWs in `Scope` when period is 0, and add portable unit test + benchmark.
Author
Owner

@KushGene commented on GitHub (Nov 25, 2026):

claiming: VERIFY-1887-1957-RADV-NAVI22

done: VERIFY-1887-1957-RADV-NAVI22 — independently cross-built and ran both PR heads and their respective merge bases under Wine Staging 11.21 on an RX 6700 XT (Fedora 45, Mesa RADV 26.2.7). All 448 shared tests matched each base. Each PR added one passing test, also passing 20/20 additional runs. Synthetic tests only. AI-assisted (Codex).

<!-- gh-comment-id:7171070453 --> @KushGene commented on GitHub (Nov 25, 2026): claiming: VERIFY-1887-1957-RADV-NAVI22 done: VERIFY-1887-1957-RADV-NAVI22 — independently cross-built and ran both PR heads and their respective merge bases under Wine Staging 11.21 on an RX 6700 XT (Fedora 45, Mesa RADV 26.2.7). All 448 shared tests matched each base. Each PR added one passing test, also passing 20/20 additional runs. Synthetic tests only. AI-assisted (Codex). - [Report for #1887](https://github.com/ubiquitarianism/leonida/pull/1887#issuecomment-7171342262) - [Report for #1957](https://github.com/ubiquitarianism/leonida/pull/1957#issuecomment-7171513456)
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

claiming: RT-CONSOLE-IDENTITY-COVERAGE -- runtime/shims/console_identity.h: verify configured_device_type and console_mode_for with unit tests

<!-- gh-comment-id:7171091676 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): claiming: RT-CONSOLE-IDENTITY-COVERAGE -- runtime/shims/console_identity.h: verify configured_device_type and console_mode_for with unit tests
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

claiming: DASH-TEST-DURATION-VALIDATION - progress_dashboard emits invalid JSON for non-finite JUnit durations and aborts on malformed decimal times in CTest LastTest.log. Preserve the test verdict, record an unknown duration in either case, and keep valid durations. Reproduced both with synthetic reports. Separate from #1256's nested output handling and #625's CLI and history handling. AI-assisted with Codex.

<!-- gh-comment-id:7171105542 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): claiming: DASH-TEST-DURATION-VALIDATION - progress_dashboard emits invalid JSON for non-finite JUnit durations and aborts on malformed decimal times in CTest LastTest.log. Preserve the test verdict, record an unknown duration in either case, and keep valid durations. Reproduced both with synthetic reports. Separate from #1256's nested output handling and #625's CLI and history handling. AI-assisted with Codex.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-SUBMIT-PHASES-PERIOD-PARSE-AND-ZERO-OVERHEAD-SCOPE -> #2031

<!-- gh-comment-id:7171125418 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-SUBMIT-PHASES-PERIOD-PARSE-AND-ZERO-OVERHEAD-SCOPE -> #2031
Author
Owner

@BubsMcgee commented on GitHub (Nov 25, 2026):

claiming: TITLE-GPU-WRITE-BACK — ported from DexNom/VIctory cd94d35 + 940d32f (GPL-3.0-or-later), reworked for this layer. A GPU write through a buffer view that names a title window is marked, and after the submission the shadow refresh has already put the title's own newer pages into the same copies, so the marked range is copied back to the title's pages (device idle first, unreadable pages skipped). First stage is title windows only; slot-133 copies are not registered yet. New files are ours (runtime/src/title_write_back.h, runtime/test/title_write_back_test.cpp). Gated by LEONIDA_TITLE_WRITE_BACK=1 until a retail A/B. Unit test passes; the shim builds. AI-assisted.

<!-- gh-comment-id:7171127705 --> @BubsMcgee commented on GitHub (Nov 25, 2026): claiming: TITLE-GPU-WRITE-BACK — ported from DexNom/VIctory `cd94d35` + `940d32f` (GPL-3.0-or-later), reworked for this layer. A GPU write through a buffer view that names a title window is marked, and after the submission the shadow refresh has already put the title's own newer pages into the same copies, so the marked range is copied back to the title's pages (device idle first, unreadable pages skipped). First stage is title windows only; slot-133 copies are not registered yet. New files are ours (`runtime/src/title_write_back.h`, `runtime/test/title_write_back_test.cpp`). Gated by `LEONIDA_TITLE_WRITE_BACK=1` until a retail A/B. Unit test passes; the shim builds. AI-assisted.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

done: DASH-TEST-DURATION-VALIDATION -> #2033

<!-- gh-comment-id:7171151610 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): done: DASH-TEST-DURATION-VALIDATION -> #2033
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

done: RT-CONSOLE-IDENTITY-COVERAGE -> #2034

<!-- gh-comment-id:7171154186 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): done: RT-CONSOLE-IDENTITY-COVERAGE -> #2034
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claim: RT-CPU-EMULATION-CLZERO-REGION-AND-BOUNDS (runtime/src/cpu_emulation.h, runtime/test/cpu_emulation_test.cpp): advance try_clzero_loop by full VirtualQuery contiguous writable regions instead of per-4KiB page queries (avoiding up to 16,384 syscalls per 64 MiB zero loop), fix start + 64 / limit - start + 63 / next_page wraparound bugs in try_clzero_loop and readable(), guard null code in decode(), and add regression + syscall-count/benchmark verification.

<!-- gh-comment-id:7171168092 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claim: RT-CPU-EMULATION-CLZERO-REGION-AND-BOUNDS (`runtime/src/cpu_emulation.h`, `runtime/test/cpu_emulation_test.cpp`): advance `try_clzero_loop` by full `VirtualQuery` contiguous writable regions instead of per-4KiB page queries (avoiding up to 16,384 syscalls per 64 MiB zero loop), fix `start + 64` / `limit - start + 63` / `next_page` wraparound bugs in `try_clzero_loop` and `readable()`, guard null `code` in `decode()`, and add regression + syscall-count/benchmark verification.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

claiming: FRAME-PACER-REPEATED-TOKEN-STATS - Returning a previously presented token to FramePacer overwrites its present timestamp while keeping the old display timestamp, which can make the display appear to precede its present. Keep the first present/display pair for an issued token while continuing to pace and count repeat frames. CPU-only fake-clock regression. Overlaps the record lookup in #1198. AI-assisted with Codex.

<!-- gh-comment-id:7171216222 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): claiming: FRAME-PACER-REPEATED-TOKEN-STATS - Returning a previously presented token to FramePacer overwrites its present timestamp while keeping the old display timestamp, which can make the display appear to precede its present. Keep the first present/display pair for an issued token while continuing to pace and count repeat frames. CPU-only fake-clock regression. Overlaps the record lookup in #1198. AI-assisted with Codex.
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

claiming: RT-XS-COMMAND-LIST-IID-COVERAGE -- support ID3D12GraphicsCommandList8 in is_pc_command_list_iid and add unit tests for d3d12_xs_command_list_iid.h

<!-- gh-comment-id:7171221106 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): claiming: RT-XS-COMMAND-LIST-IID-COVERAGE -- support ID3D12GraphicsCommandList8 in is_pc_command_list_iid and add unit tests for d3d12_xs_command_list_iid.h
Author
Owner

@msallier commented on GitHub (Nov 25, 2026):

finding: scripts/build_llvm_mc.ps1 does not find a prerelease (Insiders/Preview) Visual Studio and stops with "Visual Studio with the C++ x64 tools wasn't found".

  • Where: scripts/build_llvm_mc.ps1:43, vswhere.exe -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64. vswhere skips prerelease instances unless -prerelease is passed. #1871 rewrites this line but keeps the same flags, so it does not fix it.
  • Why it matters: a machine whose only C++ toolchain is a Visual Studio 18 Insiders install cannot build llvm-mc with the documented helper, although that VS builds runtime/ fine (its bundled CMake configures and ctest passes 423/423 with the Vulkan SDK).
  • Fix tested: adding -prerelease to that call finds the Insiders instance, and the script then builds LLVM 21.1.8 and its gfx1013 s_endpgm probe passes. Since -latest picks the newest by version, -prerelease alone would make a newer Preview win over an installed stable VS; querying without -prerelease first and falling back to it keeps the current behaviour on stable installs.
  • Needs: no game files; a Windows machine with only a prerelease VS to reproduce.

AI-assisted (Claude Code).

<!-- gh-comment-id:7171221172 --> @msallier commented on GitHub (Nov 25, 2026): finding: `scripts/build_llvm_mc.ps1` does not find a prerelease (Insiders/Preview) Visual Studio and stops with "Visual Studio with the C++ x64 tools wasn't found". - Where: `scripts/build_llvm_mc.ps1:43`, `vswhere.exe -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64`. vswhere skips prerelease instances unless `-prerelease` is passed. #1871 rewrites this line but keeps the same flags, so it does not fix it. - Why it matters: a machine whose only C++ toolchain is a Visual Studio 18 Insiders install cannot build `llvm-mc` with the documented helper, although that VS builds `runtime/` fine (its bundled CMake configures and ctest passes 423/423 with the Vulkan SDK). - Fix tested: adding `-prerelease` to that call finds the Insiders instance, and the script then builds LLVM 21.1.8 and its `gfx1013` `s_endpgm` probe passes. Since `-latest` picks the newest by version, `-prerelease` alone would make a newer Preview win over an installed stable VS; querying without `-prerelease` first and falling back to it keeps the current behaviour on stable installs. - Needs: no game files; a Windows machine with only a prerelease VS to reproduce. AI-assisted (Claude Code).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-CPU-EMULATION-CLZERO-REGION-AND-BOUNDS -> #2035

<!-- gh-comment-id:7171229601 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-CPU-EMULATION-CLZERO-REGION-AND-BOUNDS -> #2035
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claim: RT-CLZERO-PATCH-REL32-AND-PROTECT-GUARDS (runtime/src/clzero_patch.h, runtime/test/clzero_patch_test.cpp): guard null code in find(), fix uint64 underflow/overflow in stub_page(), verify rel32 fits signed 32-bit before patching loops and return failure cleanly if VirtualProtect on the stub page fails, plus regression tests.

<!-- gh-comment-id:7171231933 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claim: RT-CLZERO-PATCH-REL32-AND-PROTECT-GUARDS (`runtime/src/clzero_patch.h`, `runtime/test/clzero_patch_test.cpp`): guard null `code` in `find()`, fix uint64 underflow/overflow in `stub_page()`, verify `rel32` fits signed 32-bit before patching loops and return failure cleanly if `VirtualProtect` on the stub page fails, plus regression tests.
Author
Owner

@lgr123 commented on GitHub (Nov 25, 2026):

claiming: RT-TITLE-LARGE-MAPPED-SAMPLE-MISS — I reproduced a persistent CPU write being missed indefinitely by the fixed texture hash samples when the mapped footprint exceeds 4 MiB. Synthetic 8 MiB tiled RGBA8 updated an unsampled texel. Sampled and explicitly notified controls refreshed. I will test a bounded fallback with synthetic data. This is independent of #1705, which accelerates existing full comparisons.

<!-- gh-comment-id:7171272177 --> @lgr123 commented on GitHub (Nov 25, 2026): claiming: RT-TITLE-LARGE-MAPPED-SAMPLE-MISS — I reproduced a persistent CPU write being missed indefinitely by the fixed texture hash samples when the mapped footprint exceeds 4 MiB. Synthetic 8 MiB tiled RGBA8 updated an unsampled texel. Sampled and explicitly notified controls refreshed. I will test a bounded fallback with synthetic data. This is independent of #1705, which accelerates existing full comparisons.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-CLZERO-PATCH-REL32-AND-PROTECT-GUARDS -> #2036

<!-- gh-comment-id:7171289864 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-CLZERO-PATCH-REL32-AND-PROTECT-GUARDS -> #2036
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

done: FRAME-PACER-REPEATED-TOKEN-STATS -> #2037

<!-- gh-comment-id:7171294337 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): done: FRAME-PACER-REPEATED-TOKEN-STATS -> #2037
Author
Owner

@qhukz13 commented on GitHub (Nov 25, 2026):

done: VERIFY-1887-1957-PASCAL -> results in #1887 and #1957 (Win10 19045, GTX 1050 Ti, NVIDIA 582.66: no new failures vs main b0f3d3998)

<!-- gh-comment-id:7171318087 --> @qhukz13 commented on GitHub (Nov 25, 2026): done: VERIFY-1887-1957-PASCAL -> results in #1887 and #1957 (Win10 19045, GTX 1050 Ti, NVIDIA 582.66: no new failures vs main b0f3d3998)
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claim: RT-NATIVE-PSO-FALLBACK-INDEPENDENT-BLEND (runtime/shims/d3d12_xs_native_pso_fallback.h, runtime/test/native_pso_fallback_test.cpp): respect D3D12 IndependentBlendEnable == FALSE semantics in without_stand_in_blend() by checking RenderTarget[0] and replicating RenderTarget[0] to RenderTarget[1..7] before flipping IndependentBlendEnable = TRUE (prevents missed retries on RT1..7 B4G4R4A4 targets, false retries on stale RT1..7 slots, and zeroed RenderTargetWriteMask/blend on non-B4G4R4A4 targets).

<!-- gh-comment-id:7171318209 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claim: RT-NATIVE-PSO-FALLBACK-INDEPENDENT-BLEND (`runtime/shims/d3d12_xs_native_pso_fallback.h`, `runtime/test/native_pso_fallback_test.cpp`): respect D3D12 `IndependentBlendEnable == FALSE` semantics in `without_stand_in_blend()` by checking `RenderTarget[0]` and replicating `RenderTarget[0]` to `RenderTarget[1..7]` before flipping `IndependentBlendEnable = TRUE` (prevents missed retries on RT1..7 B4G4R4A4 targets, false retries on stale RT1..7 slots, and zeroed `RenderTargetWriteMask`/blend on non-B4G4R4A4 targets).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-NATIVE-PSO-FALLBACK-INDEPENDENT-BLEND -> #2038

<!-- gh-comment-id:7171353045 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-NATIVE-PSO-FALLBACK-INDEPENDENT-BLEND -> #2038
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claim: RT-BASE-RESERVATION-OVERFLOW-AND-PARSE-GUARDS (runtime/src/base_reservation.h, runtime/test/pe_loader_test.cpp): guard uint64 wraparound and zero-progress VirtualQuery infinite loop in needed(), reject trailing garbage and base + size overflow in inherited(), and verify commit_reserved range fits without wrap.

<!-- gh-comment-id:7171355676 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claim: RT-BASE-RESERVATION-OVERFLOW-AND-PARSE-GUARDS (`runtime/src/base_reservation.h`, `runtime/test/pe_loader_test.cpp`): guard uint64 wraparound and zero-progress `VirtualQuery` infinite loop in `needed()`, reject trailing garbage and `base + size` overflow in `inherited()`, and verify `commit_reserved` range fits without wrap.
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

done: RT-XS-COMMAND-LIST-IID-COVERAGE -> #2039

<!-- gh-comment-id:7171358215 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): done: RT-XS-COMMAND-LIST-IID-COVERAGE -> #2039
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

claiming: FIRST-LIGHT-FINITE-READBACK - first_light.check_image can pass raw RGBA32F output with NaN/Inf outside the selected probes, even in a covered pixel. Reject nonfinite channels before judging coverage and probes. Reproduced on 9f9a7c5 with a four-pixel synthetic readback. No GPU or game data. AI-assisted with Codex.

<!-- gh-comment-id:7171370282 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): claiming: FIRST-LIGHT-FINITE-READBACK - first_light.check_image can pass raw RGBA32F output with NaN/Inf outside the selected probes, even in a covered pixel. Reject nonfinite channels before judging coverage and probes. Reproduced on 9f9a7c5 with a four-pixel synthetic readback. No GPU or game data. AI-assisted with Codex.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

done: FIRST-LIGHT-FINITE-READBACK -> #2040

<!-- gh-comment-id:7171407394 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): done: FIRST-LIGHT-FINITE-READBACK -> #2040
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-BASE-RESERVATION-OVERFLOW-AND-PARSE-GUARDS -> #2041

<!-- gh-comment-id:7171427112 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-BASE-RESERVATION-OVERFLOW-AND-PARSE-GUARDS -> #2041
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

claiming: PIPELINE-INDEX-TOP-LEVEL-OBJECT - make_game.require_translated_shaders treats any truthy JSON (array, string, number) as a usable shader index. The native checker requires an object; the pipelines stage otherwise removes earlier crash diagnostics before that failure. Reject the wrong top-level shape before starting the checker or touching the prior report. Synthetic regression only. AI-assisted with Codex.

<!-- gh-comment-id:7171444495 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): claiming: PIPELINE-INDEX-TOP-LEVEL-OBJECT - make_game.require_translated_shaders treats any truthy JSON (array, string, number) as a usable shader index. The native checker requires an object; the pipelines stage otherwise removes earlier crash diagnostics before that failure. Reject the wrong top-level shape before starting the checker or touching the prior report. Synthetic regression only. AI-assisted with Codex.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

done: PIPELINE-INDEX-TOP-LEVEL-OBJECT -> #2042

<!-- gh-comment-id:7171480363 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): done: PIPELINE-INDEX-TOP-LEVEL-OBJECT -> #2042
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

claiming: SHADER-LIBRARY-UTF8-MODULE-PATHS - ShaderLibrary decodes index names to UTF-8, but its module-size and read paths concatenate narrow strings. On Windows with a non-UTF-8 code page, valid non-ASCII filenames cannot be opened. Construct both the default and explicit SPIR-V paths as UTF-8 and test synthetic modules. Separate from #1218's index read. AI-assisted with Codex.

<!-- gh-comment-id:7171516110 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): claiming: SHADER-LIBRARY-UTF8-MODULE-PATHS - ShaderLibrary decodes index names to UTF-8, but its module-size and read paths concatenate narrow strings. On Windows with a non-UTF-8 code page, valid non-ASCII filenames cannot be opened. Construct both the default and explicit SPIR-V paths as UTF-8 and test synthetic modules. Separate from #1218's index read. AI-assisted with Codex.
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

claiming: RT-XS-PLACED-DEPTH-GUARDS-AND-TESTS -- add null out pointer guards and unit test suite for PlacedDepthTextures

<!-- gh-comment-id:7171516197 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): claiming: RT-XS-PLACED-DEPTH-GUARDS-AND-TESTS -- add null out pointer guards and unit test suite for PlacedDepthTextures
Author
Owner

@star41905453-coder commented on GitHub (Nov 25, 2026):

claiming: RT-TITLE-WINDOW-WRITE-BACK - from #1537 (QemmHD, WRITE_INVALID about 160 s into the load): a title window is a read-side mirror refreshed before every submission, so a UAV or raw write into one lands in the copy and never reaches the title's pages. Copy back the ranges a submission bound, after that submission, and let the next refresh's forward copy see the title's own bytes again.

Plan: record the title ranges whose V#s the layer rebases for a submission (rebase_title_vsharp / fix_vsharp call sites in runtime/shims/d3d12_vulkan_device.cpp), copy them shadow -> title pages at the start of the next refresh_shadows (writable through the tracker's own write fault), and drop the range if its window is gone. Test: a write-back mode in runtime/test/d3d12_title_va_test.cpp - bind a window through a UAV V#, write through the shader, and check the bytes in the title's pages; a second case proves the next forward copy does not undo it. No game files.

<!-- gh-comment-id:7171537801 --> @star41905453-coder commented on GitHub (Nov 25, 2026): claiming: RT-TITLE-WINDOW-WRITE-BACK - from #1537 (QemmHD, WRITE_INVALID about 160 s into the load): a title window is a read-side mirror refreshed before every submission, so a UAV or raw write into one lands in the copy and never reaches the title's pages. Copy back the ranges a submission bound, after that submission, and let the next refresh's forward copy see the title's own bytes again. Plan: record the title ranges whose V#s the layer rebases for a submission (`rebase_title_vsharp` / `fix_vsharp` call sites in `runtime/shims/d3d12_vulkan_device.cpp`), copy them shadow -> title pages at the start of the next `refresh_shadows` (writable through the tracker's own write fault), and drop the range if its window is gone. Test: a write-back mode in `runtime/test/d3d12_title_va_test.cpp` - bind a window through a UAV V#, write through the shader, and check the bytes in the title's pages; a second case proves the next forward copy does not undo it. No game files.
Author
Owner

@KushGene commented on GitHub (Nov 25, 2026):

done: VERIFY-1887-1957-RADV-NAVI22

Tested both PRs against their respective merge bases on an RX 6700 XT with Mesa RADV 26.2.7 and Wine Staging 11.21. All 448 shared tests matched on each comparison, including the same 15 failures in serial reruns. Each PR added one passing test that also passed 20/20 standalone repeats. No game files used. AI-assisted (Codex).

<!-- gh-comment-id:7171557169 --> @KushGene commented on GitHub (Nov 25, 2026): done: VERIFY-1887-1957-RADV-NAVI22 Tested both PRs against their respective merge bases on an RX 6700 XT with Mesa RADV 26.2.7 and Wine Staging 11.21. All 448 shared tests matched on each comparison, including the same 15 failures in serial reruns. Each PR added one passing test that also passed 20/20 standalone repeats. No game files used. AI-assisted (Codex). - [#1887 test report](https://github.com/ubiquitarianism/leonida/pull/1887#issuecomment-7171342262) - [#1957 test report](https://github.com/ubiquitarianism/leonida/pull/1957#issuecomment-7171513456)
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claim: RT-D3D12-COM-OBJECT-ATOMIC-AND-PRIVATE-DATA-SAFETY (runtime/shims/d3d12_com_object.h, runtime/test/d3d12_private_data_test.cpp): relax AddRef/try_add_ref to relaxed and Release to acq_rel, overwrite private-data entries in place with strong E_OUTOFMEMORY exception safety, guard SetName UINT length truncation, guard null hand_out, and make attach_device/~Child/~Object reentrancy-safe.

<!-- gh-comment-id:7171560868 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claim: RT-D3D12-COM-OBJECT-ATOMIC-AND-PRIVATE-DATA-SAFETY (`runtime/shims/d3d12_com_object.h`, `runtime/test/d3d12_private_data_test.cpp`): relax `AddRef`/`try_add_ref` to relaxed and `Release` to `acq_rel`, overwrite private-data entries in place with strong `E_OUTOFMEMORY` exception safety, guard `SetName` `UINT` length truncation, guard null `hand_out`, and make `attach_device`/`~Child`/`~Object` reentrancy-safe.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

done: SHADER-LIBRARY-UTF8-MODULE-PATHS -> #2043

<!-- gh-comment-id:7171570768 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): done: SHADER-LIBRARY-UTF8-MODULE-PATHS -> #2043
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

claiming: SHADER-INDEX-SURROGATE-PAIRS - ShaderLibrary's JSON reader turns a valid escaped non-BMP character into two invalid UTF-8 sequences. Decode the pair as one character and reject unpaired surrogates. Separate from #2043's filesystem conversion. CPU-only JSON regression, no game data. AI-assisted with Codex.

<!-- gh-comment-id:7171580986 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): claiming: SHADER-INDEX-SURROGATE-PAIRS - ShaderLibrary's JSON reader turns a valid escaped non-BMP character into two invalid UTF-8 sequences. Decode the pair as one character and reject unpaired surrogates. Separate from #2043's filesystem conversion. CPU-only JSON regression, no game data. AI-assisted with Codex.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

done: SHADER-INDEX-SURROGATE-PAIRS -> #2045

<!-- gh-comment-id:7171620005 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): done: SHADER-INDEX-SURROGATE-PAIRS -> #2045
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

done: RT-XS-PLACED-DEPTH-GUARDS-AND-TESTS -> #2046

<!-- gh-comment-id:7171620713 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): done: RT-XS-PLACED-DEPTH-GUARDS-AND-TESTS -> #2046
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-D3D12-COM-OBJECT-ATOMIC-AND-PRIVATE-DATA-SAFETY -> #2047

<!-- gh-comment-id:7171627211 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-D3D12-COM-OBJECT-ATOMIC-AND-PRIVATE-DATA-SAFETY -> #2047
Author
Owner

@KushGene commented on GitHub (Nov 25, 2026):

claiming: TEST-RADV-NAVI22-MESH-STATISTICS — investigate the mixed pipeline statistics assertion in d3d12_mesh on RX 6700 XT (Wine/RADV). Compare synthetic vertex-only, mesh-only and mixed queries against llvmpipe, and narrow down the failing field(s). No game files. AI-assisted (Codex).

<!-- gh-comment-id:7171632806 --> @KushGene commented on GitHub (Nov 25, 2026): claiming: TEST-RADV-NAVI22-MESH-STATISTICS — investigate the mixed pipeline statistics assertion in d3d12_mesh on RX 6700 XT (Wine/RADV). Compare synthetic vertex-only, mesh-only and mixed queries against llvmpipe, and narrow down the failing field(s). No game files. AI-assisted (Codex).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claim: RT-PLACED-DEPTH-NULL-OUT-AND-EXPIRED-RACE (runtime/shims/d3d12_xs_placed_depth.h, runtime/test/d3d12_placed_depth_test.h): validate out and clear *out before allocating GPU backing, guard null resource from create_backing, and skip concurrently expired weak entries during overlap checks.

<!-- gh-comment-id:7171639410 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claim: RT-PLACED-DEPTH-NULL-OUT-AND-EXPIRED-RACE (`runtime/shims/d3d12_xs_placed_depth.h`, `runtime/test/d3d12_placed_depth_test.h`): validate `out` and clear `*out` before allocating GPU backing, guard null `resource` from `create_backing`, and skip concurrently expired weak entries during overlap checks.
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

claiming: RT-XS-DESC-CLEAN-COVERAGE -- unit test suite and layout helpers for D3D12 Xbox resource description cleaning

<!-- gh-comment-id:7171677935 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): claiming: RT-XS-DESC-CLEAN-COVERAGE -- unit test suite and layout helpers for D3D12 Xbox resource description cleaning
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-PLACED-DEPTH-NULL-OUT-AND-EXPIRED-RACE -> #2048

<!-- gh-comment-id:7171686795 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-PLACED-DEPTH-NULL-OUT-AND-EXPIRED-RACE -> #2048
Author
Owner

@KushGene commented on GitHub (Nov 25, 2026):

finding: RX 6700 XT / Mesa RADV 26.2.7 reports GSInvocations for vertex-only draws in the synthetic d3d12_mesh pipeline-statistics test. Reproduced independently with native Vulkan.

At 9f9a7c5f3, runtime/test/d3d12_mesh_test.cpp:687 expects all five unused shader counters to be zero. Using the same Windows executable under Wine Staging 11.21, RADV gave GSInvocations = 2 (mixed), 0 (mesh only), 2 (vertex only). The other four fields were zero. On llvmpipe all five were zero for all three queries; the unmodified test passed there.

Native control on Fedora 45: a graphics pipeline with a vertex shader only, triangle list, rasterizer discard, and a query for IA primitives + GS invocations. Record 0, 1 and 2 draws of one triangle each. Read back with vkGetQueryPoolResults after queue idle. IA primitives were 0/1/2 everywhere. GS invocations were 0/1/2 on RADV and 0/0/0 on llvmpipe (five runs each). On the same Radeon, RADV_DEBUG=nongg gave 0/0/0 in the native control. This isolates the discrepant count to the RADV NGG path on this setup. It reproduces without Wine, Leonida, or mesh draws. No game files or retail rendering measurements. The D3D12 assertion was preserved.

done: TEST-RADV-NAVI22-MESH-STATISTICS (investigation only; no runtime patch). AI-assisted (Codex).

<!-- gh-comment-id:7171688140 --> @KushGene commented on GitHub (Nov 25, 2026): finding: RX 6700 XT / Mesa RADV 26.2.7 reports GSInvocations for vertex-only draws in the synthetic d3d12_mesh pipeline-statistics test. Reproduced independently with native Vulkan. At 9f9a7c5f3, runtime/test/d3d12_mesh_test.cpp:687 expects all five unused shader counters to be zero. Using the same Windows executable under Wine Staging 11.21, RADV gave GSInvocations = 2 (mixed), 0 (mesh only), 2 (vertex only). The other four fields were zero. On llvmpipe all five were zero for all three queries; the unmodified test passed there. Native control on Fedora 45: a graphics pipeline with a vertex shader only, triangle list, rasterizer discard, and a query for IA primitives + GS invocations. Record 0, 1 and 2 draws of one triangle each. Read back with vkGetQueryPoolResults after queue idle. IA primitives were 0/1/2 everywhere. GS invocations were 0/1/2 on RADV and 0/0/0 on llvmpipe (five runs each). On the same Radeon, RADV_DEBUG=nongg gave 0/0/0 in the native control. This isolates the discrepant count to the RADV NGG path on this setup. It reproduces without Wine, Leonida, or mesh draws. No game files or retail rendering measurements. The D3D12 assertion was preserved. done: TEST-RADV-NAVI22-MESH-STATISTICS (investigation only; no runtime patch). AI-assisted (Codex).
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

claiming: SPIRV-WORDS-ENDIAN — The shared C++ shader reader rejects otherwise valid SPIR-V files encoded in the byte order opposite the host. Normalize words before passing them to Vulkan, matching the Python reflector, with a CPU-only regression using synthetic bytes.

<!-- gh-comment-id:7171693644 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): claiming: SPIRV-WORDS-ENDIAN — The shared C++ shader reader rejects otherwise valid SPIR-V files encoded in the byte order opposite the host. Normalize words before passing them to Vulkan, matching the Python reflector, with a CPU-only regression using synthetic bytes.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claim: RT-XG-XS-COPY-SCRATCH-AND-PORT-VALIDATION (runtime/shims/xg_xs.cpp, runtime/test/xg_xs_test.cpp): reuse a thread-local columns scratch buffer in copy_subresource to eliminate per-copy heap allocations, and bring port::copy_args/copy_into/copy_from/element_offset validation into parity with the primary model (3D depth_pitch bounds, buffer overlap rejection, and sample == 0 checks).

<!-- gh-comment-id:7171697956 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claim: RT-XG-XS-COPY-SCRATCH-AND-PORT-VALIDATION (`runtime/shims/xg_xs.cpp`, `runtime/test/xg_xs_test.cpp`): reuse a thread-local `columns` scratch buffer in `copy_subresource` to eliminate per-copy heap allocations, and bring `port::copy_args`/`copy_into`/`copy_from`/`element_offset` validation into parity with the primary model (3D `depth_pitch` bounds, buffer overlap rejection, and `sample == 0` checks).
Author
Owner

@KushGene commented on GitHub (Nov 25, 2026):

claiming: VERIFY-1896-RADV-NAVI22 — independent synthetic GPU readback comparison of direct and indirect triangle strips on RX 6700 XT, Wine/RADV. Comparing PR #1896 at 79a76a7 with its parent. AI-assisted (Codex).

<!-- gh-comment-id:7171725245 --> @KushGene commented on GitHub (Nov 25, 2026): claiming: VERIFY-1896-RADV-NAVI22 — independent synthetic GPU readback comparison of direct and indirect triangle strips on RX 6700 XT, Wine/RADV. Comparing PR #1896 at 79a76a7 with its parent. AI-assisted (Codex).
Author
Owner

@thegalaxydev commented on GitHub (Nov 25, 2026):

finding: on NVIDIA the Vulkan pipeline cache stops keeping new pipelines once it is large, so a big seed (pipeline_cache.bin, or a session file that has grown past that point) makes the same pipelines compile again on every run, and nothing says so.

  • Setup: RTX 5060 Ti 16 GB, NVIDIA 610.88, Windows 11 23H2. vk_pipeline_check copied as gta6rt.exe (NVIDIA keys its cache by executable name), one 435-685 KiB library compute module per test.
  • Empty cache: ~2 s to compile, the file grows (~210 KiB), and the next process gets the pipeline from the file in 0.01 s, also with __GL_SHADER_DISK_CACHE=0. 48 modules built with --jobs 12 are all kept as well.
  • 1.23 GB and 1.35 GB caches (library and main-set compute pipelines from vk_pipeline_check, then what the game added): the same compile takes ~2 s and the cache file comes back the same size to the byte. With the 1.35 GB one the next process compiles it again; with the 1.23 GB one it hit, from the driver's own disk cache (%LOCALAPPDATA%\NVIDIA\GLCache, 0.99 GB here), not from the file.
  • In the game (main fe1553456 + #1886): seeded with the 1.23 GB file, 68 of the ~110 builds that took over 200 ms in one run took over 200 ms again in the next. Started with no seed, the first world-phase run wrote a 94 MB session, and in the run after it 5 of 164 did.
  • Not a fixed size: an older cache made mostly of main-set graphics pipelines stopped growing at 4.9 GB.
  • Why it matters: #1886 measured a 1,285 MB session on an RTX 5080, still growing. Past this point a session file stops helping without any message, and a multi-GB corpus seed starts there.
  • Needs an NVIDIA GPU; the checker test needs the translated library from a work folder.
<!-- gh-comment-id:7171729435 --> @thegalaxydev commented on GitHub (Nov 25, 2026): finding: on NVIDIA the Vulkan pipeline cache stops keeping new pipelines once it is large, so a big seed (`pipeline_cache.bin`, or a session file that has grown past that point) makes the same pipelines compile again on every run, and nothing says so. - **Setup:** RTX 5060 Ti 16 GB, NVIDIA 610.88, Windows 11 23H2. `vk_pipeline_check` copied as `gta6rt.exe` (NVIDIA keys its cache by executable name), one 435-685 KiB library compute module per test. - **Empty cache:** ~2 s to compile, the file grows (~210 KiB), and the next process gets the pipeline from the file in 0.01 s, also with `__GL_SHADER_DISK_CACHE=0`. 48 modules built with `--jobs 12` are all kept as well. - **1.23 GB and 1.35 GB caches** (library and main-set compute pipelines from `vk_pipeline_check`, then what the game added): the same compile takes ~2 s and the cache file comes back the same size to the byte. With the 1.35 GB one the next process compiles it again; with the 1.23 GB one it hit, from the driver's own disk cache (`%LOCALAPPDATA%\NVIDIA\GLCache`, 0.99 GB here), not from the file. - **In the game** (main fe1553456 + #1886): seeded with the 1.23 GB file, 68 of the ~110 builds that took over 200 ms in one run took over 200 ms again in the next. Started with no seed, the first world-phase run wrote a 94 MB session, and in the run after it 5 of 164 did. - **Not a fixed size:** an older cache made mostly of main-set graphics pipelines stopped growing at 4.9 GB. - **Why it matters:** #1886 measured a 1,285 MB session on an RTX 5080, still growing. Past this point a session file stops helping without any message, and a multi-GB corpus seed starts there. - Needs an NVIDIA GPU; the checker test needs the translated library from a work folder.
Author
Owner

@thegalaxydev commented on GitHub (Nov 25, 2026):

claim: RT-PIPELINE-CACHE-GROWTH-STALL (runtime/src/pipeline_cache_store.h, runtime/src/pipeline_profile.h, runtime/shims/d3d12_vulkan_device.cpp, docs/d3d12_vulkan.md, a new CPU-only test): say once, when the session cache is saved, that builds kept compiling but the driver's cache did not grow (the finding above), and document the NVIDIA behaviour.

<!-- gh-comment-id:7171729880 --> @thegalaxydev commented on GitHub (Nov 25, 2026): claim: RT-PIPELINE-CACHE-GROWTH-STALL (`runtime/src/pipeline_cache_store.h`, `runtime/src/pipeline_profile.h`, `runtime/shims/d3d12_vulkan_device.cpp`, `docs/d3d12_vulkan.md`, a new CPU-only test): say once, when the session cache is saved, that builds kept compiling but the driver's cache did not grow (the finding above), and document the NVIDIA behaviour.
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

done: RT-XS-DESC-CLEAN-COVERAGE -> #2049

<!-- gh-comment-id:7171733370 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): done: RT-XS-DESC-CLEAN-COVERAGE -> #2049
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

done: SPIRV-WORDS-ENDIAN -> #2051. The opposite-endian synthetic module failed on main and passed with the fix in the native Windows shader_library CTest. AI-assisted.

<!-- gh-comment-id:7171743998 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): done: SPIRV-WORDS-ENDIAN -> #2051. The opposite-endian synthetic module failed on main and passed with the fix in the native Windows shader_library CTest. AI-assisted.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

claiming: BUILD-LLVM-MC-PREVIEW-FALLBACK — address the finding about Preview-only Visual Studio in scripts/build_llvm_mc.ps1. Keep the stable vswhere lookup first and retry with -prerelease only when it finds nothing. Test stable-only, stable and Preview, Preview-only, and neither with a Windows command stub. Overlaps the vswhere block in #1871 (which retains the stable-only flags). No GPU or game files.

<!-- gh-comment-id:7171767396 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): claiming: BUILD-LLVM-MC-PREVIEW-FALLBACK — address the finding about Preview-only Visual Studio in scripts/build_llvm_mc.ps1. Keep the stable vswhere lookup first and retry with -prerelease only when it finds nothing. Test stable-only, stable and Preview, Preview-only, and neither with a Windows command stub. Overlaps the vswhere block in #1871 (which retains the stable-only flags). No GPU or game files.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-XG-XS-COPY-SCRATCH-AND-PORT-VALIDATION -> #2052

<!-- gh-comment-id:7171768041 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-XG-XS-COPY-SCRATCH-AND-PORT-VALIDATION -> #2052
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claim: RT-LIFECYCLE-FIT-WINDOW-BOUNDS-AND-OVERFLOW (runtime/shims/lifecycle.cpp, runtime/test/lifecycle_test.cpp): prevent zero-dimension truncation and signed int overflow in fit_window_to_area() and prepare_title_window(), guard non-zero registration IDs, and handle std::bad_alloc cleanly in register_app_state_change().

<!-- gh-comment-id:7171781610 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claim: RT-LIFECYCLE-FIT-WINDOW-BOUNDS-AND-OVERFLOW (`runtime/shims/lifecycle.cpp`, `runtime/test/lifecycle_test.cpp`): prevent zero-dimension truncation and signed int overflow in `fit_window_to_area()` and `prepare_title_window()`, guard non-zero registration IDs, and handle `std::bad_alloc` cleanly in `register_app_state_change()`.
Author
Owner

@KushGene commented on GitHub (Nov 25, 2026):

done: VERIFY-1896-RADV-NAVI22 -> #1896

All six synthetic triangle-strip readback variants passed on the PR (two runs); all six failed on its parent. Original triangle-list controls passed on both. RX 6700 XT / Wine-RADV report. AI-assisted (Codex).

<!-- gh-comment-id:7171792101 --> @KushGene commented on GitHub (Nov 25, 2026): done: VERIFY-1896-RADV-NAVI22 -> #1896 All six synthetic triangle-strip readback variants passed on the PR (two runs); all six failed on its parent. Original triangle-list controls passed on both. [RX 6700 XT / Wine-RADV report](https://github.com/ubiquitarianism/leonida/pull/1896#issuecomment-7171791467). AI-assisted (Codex).
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

done: BUILD-LLVM-MC-PREVIEW-FALLBACK -> #2053. Four Windows discovery scenarios passed with the fix, and five existing build-script tests passed. The Preview-only case fails on main; it was exercised with a controlled discovery stub. AI-assisted.

<!-- gh-comment-id:7171804765 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): done: BUILD-LLVM-MC-PREVIEW-FALLBACK -> #2053. Four Windows discovery scenarios passed with the fix, and five existing build-script tests passed. The Preview-only case fails on main; it was exercised with a controlled discovery stub. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-LIFECYCLE-FIT-WINDOW-BOUNDS-AND-OVERFLOW -> #2054

<!-- gh-comment-id:7171823790 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-LIFECYCLE-FIT-WINDOW-BOUNDS-AND-OVERFLOW -> #2054
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claim: RT-CODE-HOOKS-THUNK-LEAK-AND-GRANULARITY-GUARDS (runtime/src/code_hooks.h, runtime/test/code_hooks_test.cpp): free unused thunk and function table when redirect_image_calls redirects zero branches, guard zero/non-power-of-two allocation granularity in alloc_near, validate thunk/unwind bounds in finish_thunk, and use overflow-free rel32 distance checks.

<!-- gh-comment-id:7171836048 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claim: RT-CODE-HOOKS-THUNK-LEAK-AND-GRANULARITY-GUARDS (`runtime/src/code_hooks.h`, `runtime/test/code_hooks_test.cpp`): free unused thunk and function table when `redirect_image_calls` redirects zero branches, guard zero/non-power-of-two allocation granularity in `alloc_near`, validate thunk/unwind bounds in `finish_thunk`, and use overflow-free `rel32` distance checks.
Author
Owner

@xel1uz commented on GitHub (Nov 25, 2026):

claiming: TEST-NULL-DESCRIPTOR-NO-GLSLANG - runtime/test/vk_null_descriptor_test.cpp (from ba626820) does not compile without glslangValidator: CMake then leaves LEONIDA_TEST_NULL_DESCRIPTORS_SPV undefined (main() guards it), but run() names it at line 97. runtime.yml's linux-gpu-tools job installs no glslang, so its build stops there and none of its ctest or llvmpipe GPU steps run. Guard the helpers with the same macro. No game files, no GPU needed.

<!-- gh-comment-id:7171848684 --> @xel1uz commented on GitHub (Nov 25, 2026): claiming: TEST-NULL-DESCRIPTOR-NO-GLSLANG - runtime/test/vk_null_descriptor_test.cpp (from ba626820) does not compile without glslangValidator: CMake then leaves LEONIDA_TEST_NULL_DESCRIPTORS_SPV undefined (main() guards it), but run() names it at line 97. runtime.yml's linux-gpu-tools job installs no glslang, so its build stops there and none of its ctest or llvmpipe GPU steps run. Guard the helpers with the same macro. No game files, no GPU needed.
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

claiming: RT-DEFERRED-IMAGE-BINDING-GUARDS-AND-TESTS -- add null callback guard, concurrency and unit test suite for DeferredImageBinding

<!-- gh-comment-id:7171856623 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): claiming: RT-DEFERRED-IMAGE-BINDING-GUARDS-AND-TESTS -- add null callback guard, concurrency and unit test suite for DeferredImageBinding
Author
Owner

@xel1uz commented on GitHub (Nov 25, 2026):

done: TEST-NULL-DESCRIPTOR-NO-GLSLANG -> #2055

<!-- gh-comment-id:7171881509 --> @xel1uz commented on GitHub (Nov 25, 2026): done: TEST-NULL-DESCRIPTOR-NO-GLSLANG -> #2055
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

claiming: RT-TITLE-VA-POSITIVE-LOOKUP-CACHE — evaluate the positive range cache from comment 7164354183 on native Windows. Keep removal, overlap replacement, range bounds, and instance lifetime intact. I will compare hot, mixed, and random synthetic access before considering a PR. #1699 changes mutation guards and will be checked for overlap. No game files or GPU.

<!-- gh-comment-id:7171881642 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): claiming: RT-TITLE-VA-POSITIVE-LOOKUP-CACHE — evaluate the positive range cache from comment 7164354183 on native Windows. Keep removal, overlap replacement, range bounds, and instance lifetime intact. I will compare hot, mixed, and random synthetic access before considering a PR. #1699 changes mutation guards and will be checked for overlap. No game files or GPU.
Author
Owner

@mrgenty commented on GitHub (Nov 25, 2026):

claiming: RT-ASAN-WINDOWS - the Windows runtime test suite under AddressSanitizer (MSVC /fsanitize=address). #34 covers the portable subset on Linux; the shims and the D3D12 layer are Windows-only and have not been run sanitized.

Measured on main b9320a11 (RTX 3060, NVIDIA 621.24, Windows 11, MSVC 19.44, RelWithDebInfo, the flag passed by hand): 78 of 449 tests stop, 66 of them at one place - proxy_create_descriptor_heap (runtime/shims/d3d12_xs_device.cpp) reads the 16 bytes after the caller's D3D12_DESCRIPTOR_HEAP_DESC to recognise the console layout. That read is deliberate and guarded by accessible_range, so it is not a bug, but it hides everything after it. One more is a test bug: check_slot70 in runtime/test/xs_proxy_mock_test.cpp passes 32-byte arrays where slot 70 reads a 56-byte resource description and a 48-byte view.

With those two changed locally, 427 pass and 4 fail (pe_loader, loader_tls_index0, run_tiny_tls_ga, run_tiny_tls_clone_cleanup: the mapped fixture images are built sanitized too), 7 are not built (/bigobj, and three fixtures whose link cannot infer the ASan libraries). No other report, so no memory error in the code the suite reaches.

Plan:

  • an uninstrumented helper for the slot-14 probe, and the two test arrays at the size slot 70 reads;
  • a CMake option (LEONIDA_ASAN, off by default) that builds the Windows runtime tests sanitized, leaves the mapped loader fixtures uninstrumented, and adds /bigobj where needed;
  • the tests that cannot run sanitized named in one place, with the reason;
  • docs/testing.md: how to run it, and the counts.

No game files. Testing on an RTX 3060, Windows 11. AI-assisted.

<!-- gh-comment-id:7171891286 --> @mrgenty commented on GitHub (Nov 25, 2026): claiming: RT-ASAN-WINDOWS - the Windows runtime test suite under AddressSanitizer (MSVC `/fsanitize=address`). #34 covers the portable subset on Linux; the shims and the D3D12 layer are Windows-only and have not been run sanitized. Measured on main `b9320a11` (RTX 3060, NVIDIA 621.24, Windows 11, MSVC 19.44, RelWithDebInfo, the flag passed by hand): 78 of 449 tests stop, 66 of them at one place - `proxy_create_descriptor_heap` (`runtime/shims/d3d12_xs_device.cpp`) reads the 16 bytes after the caller's `D3D12_DESCRIPTOR_HEAP_DESC` to recognise the console layout. That read is deliberate and guarded by `accessible_range`, so it is not a bug, but it hides everything after it. One more is a test bug: `check_slot70` in `runtime/test/xs_proxy_mock_test.cpp` passes 32-byte arrays where slot 70 reads a 56-byte resource description and a 48-byte view. With those two changed locally, 427 pass and 4 fail (`pe_loader`, `loader_tls_index0`, `run_tiny_tls_ga`, `run_tiny_tls_clone_cleanup`: the mapped fixture images are built sanitized too), 7 are not built (`/bigobj`, and three fixtures whose link cannot infer the ASan libraries). No other report, so no memory error in the code the suite reaches. Plan: - an uninstrumented helper for the slot-14 probe, and the two test arrays at the size slot 70 reads; - a CMake option (`LEONIDA_ASAN`, off by default) that builds the Windows runtime tests sanitized, leaves the mapped loader fixtures uninstrumented, and adds `/bigobj` where needed; - the tests that cannot run sanitized named in one place, with the reason; - `docs/testing.md`: how to run it, and the counts. No game files. Testing on an RTX 3060, Windows 11. AI-assisted.
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-CODE-HOOKS-THUNK-LEAK-AND-GRANULARITY-GUARDS -> #2056

<!-- gh-comment-id:7171893656 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-CODE-HOOKS-THUNK-LEAK-AND-GRANULARITY-GUARDS -> #2056
Author
Owner

@ImLele69 commented on GitHub (Nov 25, 2026):

finding: on Turing/Wine the world-start loss after the opening title card goes away with LEONIDA_RT_AS=off.

Setup: RTX 2070 SUPER 8 GB (no ReBAR), NVIDIA 620.70, 16 GB RAM, Wine 11.21, 1.0.2.1. Runtime: main b9320a118 + #1851 #1798 #1712 #1862 #1905 #1918 #1957 #1756 #429 (local merge) + Snooozs's merge-main-into-1592. Switches: LEONIDA_HOST_IMAGE_COPY=0 LEONIDA_DEVICE_FAULT=1 LEONIDA_ADDRESS_BINDINGS=1 LEONIDA_VALUE_WAIT_TIMEOUT_MS=30000 LEONIDA_MAP_READBACK=1 LEONIDA_GEOMETRY_MB=2048.

p53 p54 (LEONIDA_RT_AS=off)
title card at 10.5 min yes
device lost ~11 min, at the first 3D cut none in 50 min (stopped by hand)

p53's loss: type 6 at the same 0xdf7dfec800 as in every earlier run here, plus a READ_INVALID at 0x4e4a92000 that #1918's address bindings place in no object, live or recently unbound (45,887 binds, 4,674 unbinds; the nearest are 3 GB away). The direct queue's top and bottom checkpoints both sit on a finished dispatch (lib_cs_01449, indirect), so the faulting work is something recorded without a checkpoint. Acceleration-structure builds have none, and the log shows 215 resolved and 64 refused right before the loss.

p54 still shows no 3D picture. Frames come every 50-100 s (staged texture uploads up to 63 s a submission). About 35 minutes into the world the geometry cap (2048 MiB) fills, with 24,000 refusals, and title windows then pass 1 GiB (1,800 windows), so the run says nothing reliable after that. I have not yet separated the build from the traversal side.

AI-assisted (Claude Code).

<!-- gh-comment-id:7171895966 --> @ImLele69 commented on GitHub (Nov 25, 2026): finding: on Turing/Wine the world-start loss after the opening title card goes away with `LEONIDA_RT_AS=off`. Setup: RTX 2070 SUPER 8 GB (no ReBAR), NVIDIA 620.70, 16 GB RAM, Wine 11.21, 1.0.2.1. Runtime: `main` `b9320a118` + #1851 #1798 #1712 #1862 #1905 #1918 #1957 #1756 #429 (local merge) + Snooozs's `merge-main-into-1592`. Switches: `LEONIDA_HOST_IMAGE_COPY=0 LEONIDA_DEVICE_FAULT=1 LEONIDA_ADDRESS_BINDINGS=1 LEONIDA_VALUE_WAIT_TIMEOUT_MS=30000 LEONIDA_MAP_READBACK=1 LEONIDA_GEOMETRY_MB=2048`. | | p53 | p54 (`LEONIDA_RT_AS=off`) | |---|---|---| | title card | at 10.5 min | yes | | device lost | ~11 min, at the first 3D cut | none in 50 min (stopped by hand) | p53's loss: type 6 at the same `0xdf7dfec800` as in every earlier run here, plus a READ_INVALID at `0x4e4a92000` that #1918's address bindings place in no object, live or recently unbound (45,887 binds, 4,674 unbinds; the nearest are 3 GB away). The direct queue's top and bottom checkpoints both sit on a finished dispatch (`lib_cs_01449`, indirect), so the faulting work is something recorded without a checkpoint. Acceleration-structure builds have none, and the log shows 215 resolved and 64 refused right before the loss. p54 still shows no 3D picture. Frames come every 50-100 s (staged texture uploads up to 63 s a submission). About 35 minutes into the world the geometry cap (2048 MiB) fills, with 24,000 refusals, and title windows then pass 1 GiB (1,800 windows), so the run says nothing reliable after that. I have not yet separated the build from the traversal side. AI-assisted (Claude Code).
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

claim: RT-THREAD-STACKS-BOUNDS-AND-WRAP-GUARDS (runtime/src/thread_stacks.cpp, runtime/test/thread_stacks_test.cpp): guard region wrap/underflow in copy_context_and_stack(), fix uint64_t wraparound in walk_copy()'s in_copy() bounds check, and guard null arguments/module handles in StackSampler::sample() and start_thread_stacks().

<!-- gh-comment-id:7171907015 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): claim: RT-THREAD-STACKS-BOUNDS-AND-WRAP-GUARDS (`runtime/src/thread_stacks.cpp`, `runtime/test/thread_stacks_test.cpp`): guard region wrap/underflow in `copy_context_and_stack()`, fix `uint64_t` wraparound in `walk_copy()`'s `in_copy()` bounds check, and guard null arguments/module handles in `StackSampler::sample()` and `start_thread_stacks()`.
Author
Owner

@c0pperlane commented on GitHub (Nov 25, 2026):

claiming:

No game files needed. AI-assisted.

<!-- gh-comment-id:7171910784 --> @c0pperlane commented on GitHub (Nov 25, 2026): claiming: - BUILD-VSWHERE-PRERELEASE — fall back to `vswhere -prerelease` when no stable Visual Studio has the C++ tools, at the four `-latest` lookups (scripts/build_llvm_mc.ps1, scripts/build_runtime.ps1, make_game.py visual_cpp_tools_ok, tools/hw_oracle/runner.py find_vcvars), as .github/workflows/runtime.yml already does. From https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7171221172 - WINE-KEPT-SERVER-OWNERSHIP — a runner must not `-k` a persistent wineserver another runner on the same prefix is still using (scripts/run_wine_tests.py), tested with stubbed wineserver calls; will rebase on #1402 if it lands first. From https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7167793106 - VK-PIPELINE-CHECK-LARGE-ADMISSION — admit a large module under the memory budget before taking its index (runtime/test/vk_pipeline_check.cpp, large_module_gate.h), with a CPU test in large_module_gate_test.cpp. From https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7148018607 - RT-CAPTURE-LAST-FRAME — with LEONIDA_CAPTURE, write the pending capture on exit so N presents give N files (runtime/src/vulkan_present.h), plus the stale "gta6rt creates no XboxPresentation" comment in runtime/shims/xbox_present.h. From the notes in https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7150863045 No game files needed. AI-assisted.
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

done: RT-DEFERRED-IMAGE-BINDING-GUARDS-AND-TESTS -> #2057

<!-- gh-comment-id:7171911107 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): done: RT-DEFERRED-IMAGE-BINDING-GUARDS-AND-TESTS -> #2057
Author
Owner

@IlyassRS3 commented on GitHub (Nov 25, 2026):

done: RT-THREAD-STACKS-BOUNDS-AND-WRAP-GUARDS -> #2058

<!-- gh-comment-id:7171961991 --> @IlyassRS3 commented on GitHub (Nov 25, 2026): done: RT-THREAD-STACKS-BOUNDS-AND-WRAP-GUARDS -> #2058
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

claiming: RT-PIPELINE-CACHE-FILE-GUARDS-AND-TESTS -- guard empty destination and null buffers in write_pipeline_cache_file and add test coverage

<!-- gh-comment-id:7171974710 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): claiming: RT-PIPELINE-CACHE-FILE-GUARDS-AND-TESTS -- guard empty destination and null buffers in write_pipeline_cache_file and add test coverage
Author
Owner

@qhukz13 commented on GitHub (Nov 25, 2026):

claiming: TEST-SERIALIZE-HEAP-DIRECT-WIN10 - d3d12_title_va_test.cpp:109 and d3d12_compute_test.cpp:106 keep their own serialize(), which calls the in-box D3D12SerializeVersionedRootSignature without the retry of d3d12test::serialize_root_signature (runtime/test/d3d12_test_shaders.h, a330747f2). Windows 10's d3d12.dll (10.0.19041.7291) refuses CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED at root signature 1.0 and 1.1 (0x80070057, "Unsupported bit-flag set (root signature flags 400)", measured with a probe), so d3d12_geometry_views stops at d3d12_title_va_test.cpp:1067 and d3d12_compute fails before reaching what they test. Fix: both use the shared helper. Different cause from RT-GEOMETRY-VIEWS-NO-REBAR (#1678).

<!-- gh-comment-id:7172006247 --> @qhukz13 commented on GitHub (Nov 25, 2026): claiming: TEST-SERIALIZE-HEAP-DIRECT-WIN10 - `d3d12_title_va_test.cpp:109` and `d3d12_compute_test.cpp:106` keep their own `serialize()`, which calls the in-box `D3D12SerializeVersionedRootSignature` without the retry of `d3d12test::serialize_root_signature` (`runtime/test/d3d12_test_shaders.h`, a330747f2). Windows 10's d3d12.dll (10.0.19041.7291) refuses `CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED` at root signature 1.0 and 1.1 (`0x80070057`, "Unsupported bit-flag set (root signature flags 400)", measured with a probe), so `d3d12_geometry_views` stops at `d3d12_title_va_test.cpp:1067` and `d3d12_compute` fails before reaching what they test. Fix: both use the shared helper. Different cause from RT-GEOMETRY-VIEWS-NO-REBAR (#1678).
Author
Owner

@qhukz13 commented on GitHub (Nov 25, 2026):

done: TEST-SERIALIZE-HEAP-DIRECT-WIN10 -> #2059

<!-- gh-comment-id:7172015751 --> @qhukz13 commented on GitHub (Nov 25, 2026): done: TEST-SERIALIZE-HEAP-DIRECT-WIN10 -> #2059
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

done: RT-PIPELINE-CACHE-FILE-GUARDS-AND-TESTS -> #2061

<!-- gh-comment-id:7172034603 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): done: RT-PIPELINE-CACHE-FILE-GUARDS-AND-TESTS -> #2061
Author
Owner

@thegalaxydev commented on GitHub (Nov 25, 2026):

done: RT-PIPELINE-CACHE-GROWTH-STALL -> #2062 (logs once when builds keep compiling but the driver's pipeline cache stops growing; NVIDIA measurements in docs/d3d12_vulkan.md)

<!-- gh-comment-id:7172042574 --> @thegalaxydev commented on GitHub (Nov 25, 2026): done: RT-PIPELINE-CACHE-GROWTH-STALL -> #2062 (logs once when builds keep compiling but the driver's pipeline cache stops growing; NVIDIA measurements in docs/d3d12_vulkan.md)
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

claiming: BUILD-GLSLANG-DISCOVERY — runtime CMake looks only for glslangValidator, but Khronos glslang 16.6.0 ships glslang.exe on Windows. Accept both names while keeping explicit CMake paths and the old name working. Test with the official release on PATH. Separate from #2055, which fixes the no-compiler skip.

<!-- gh-comment-id:7172077501 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): claiming: BUILD-GLSLANG-DISCOVERY — runtime CMake looks only for glslangValidator, but Khronos glslang 16.6.0 ships glslang.exe on Windows. Accept both names while keeping explicit CMake paths and the old name working. Test with the official release on PATH. Separate from #2055, which fixes the no-compiler skip.
Author
Owner

@klikso commented on GitHub (Nov 25, 2026):

finding: on an 8 GB card the boot runs unattended from a fresh save folder through every first-run page into the opening cutscene, then stops at a "Couldn't autosave" prompt about 1,000 s in. The save provider makes no save call for that autosave, so the cause is before XGameSave.

Setup: Windows 11 26200, RTX 3060 Ti 8 GB, NVIDIA 621.14, Ryzen 5 5600X, 32 GB, own 1.0.2.1. scripts/windows-boot/boot.ps1 defaults plus LEONIDA_TITLE_WATCHDOG=0 LEONIDA_ASYNC_PIPELINES=1 LEONIDA_KEYBOARD_PAD=1.

run build start how far device loss end
r3 main fresh save the terms/privacy consent page (my script ticked one box) none time limit, 900 s
r5 main fresh save consent passed, story load, opening cutscene from ~420 s (credits drawn, scene black), "Couldn't autosave" from ~1,100 s none time limit, 1,800 s
r6 stack r5's save folder (first-run pages skipped) story load, cutscene, the same prompt from ~1,000 s none time limit, 1,800 s

The save trace (r6):

  • The provider opens and the title reads its two containers. It writes one update of two blobs (2,308 bytes) early in the session, and that succeeds.
  • After that there is no CreateUpdate, SubmitBlobWrite, SubmitUpdate*, quota or XGameSaveFiles call at all, before or after the prompt appears. Every call that was made returned S_OK.
  • So none of the provider's limits (the 1 GiB quota, 16 MB update, 256-byte names that xgameruntime_gamesave.cpp marks as assumptions) is what refuses this autosave. The title gives up before asking.
  • My guess, not checked: a step of the autosave that waits on frames or a GPU readback times out at these frame rates (a few seconds per frame in the cutscene here). I haven't run LEONIDA_MAP_READBACK=1.

A press sequence that gets through the first-run pages on its own, for anyone running unattended. Once the landing A is accepted, every page after it came at the same times in r3, r4 and r5 (the consent page 205 s after that press in all three). Pressing A only after initialisation is done makes it repeat:

a@150,a@185,a@200,a@215,a@230,a@245,down@265,a@275,down@285,a@295,right@305,a@315,down@325,a@335,down@345,a@355,a@375,down@390,a@405,down@420,a@435

This walks Navigation Experience, UI Text Size, Subtitles, Brightness, Finish Setup, both Legal Notices tabs and Next. On the consent page it ticks privacy, moves down, ticks terms, moves down and presses Confirm. That page starts focused on the privacy box, and each A toggles a box. With LEONIDA_KEYBOARD_PAD=1 the scripted presses still arrive, and typing in other windows no longer reaches the game. With always, the owner's typing in another window was read as pad presses in my run r2, the problem Coderlord's BOOT-PAD-FOCUS claim describes.

Other counts:

  • No device loss in any of the five runs: 900 to 1,800 s, both builds. Christopher-Sundeby's 3060 Ti lost it at 129 to 190 s with main's defaults.
  • 4 failed and 1 unsupported CreatePipelineState in every run.
  • 8 dstorage_failure with 0x89240030 (r5), always at the same two offsets.
  • An implicit Overwolf Vulkan layer is loaded into the process here; it is not covered by DISABLE_VULKAN_OBS_CAPTURE.

Counts, page names and switches only, no game data. AI-assisted (Claude Code).

<!-- gh-comment-id:7172103888 --> @klikso commented on GitHub (Nov 25, 2026): finding: on an 8 GB card the boot runs unattended from a fresh save folder through every first-run page into the opening cutscene, then stops at a "Couldn't autosave" prompt about 1,000 s in. The save provider makes **no** save call for that autosave, so the cause is before `XGameSave`. **Setup:** Windows 11 26200, RTX 3060 Ti 8 GB, NVIDIA 621.14, Ryzen 5 5600X, 32 GB, own 1.0.2.1. `scripts/windows-boot/boot.ps1` defaults plus `LEONIDA_TITLE_WATCHDOG=0 LEONIDA_ASYNC_PIPELINES=1 LEONIDA_KEYBOARD_PAD=1`. - Runs r3 to r5: `main` 3d4f66123 with `LEONIDA_CONSOLE_FIX_US=0`, and the 29 FSPX programs translated with #1862. - Run r6: `main` fe1553456 + #1851 #1849 #1862 #1886 #1889 #1860 #1887 #1882 #1905 #1950 #1944 (all merge cleanly), default switches otherwise, plus a local trace of every `XGameSave*` call. | run | build | start | how far | device loss | end | |---|---|---|---|---|---| | r3 | `main` | fresh save | the terms/privacy consent page (my script ticked one box) | none | time limit, 900 s | | r5 | `main` | fresh save | consent passed, story load, opening cutscene from ~420 s (credits drawn, scene black), "Couldn't autosave" from ~1,100 s | none | time limit, 1,800 s | | r6 | stack | r5's save folder (first-run pages skipped) | story load, cutscene, the same prompt from ~1,000 s | none | time limit, 1,800 s | **The save trace (r6):** - The provider opens and the title reads its two containers. It writes one update of two blobs (2,308 bytes) early in the session, and that succeeds. - After that there is no `CreateUpdate`, `SubmitBlobWrite`, `SubmitUpdate*`, quota or `XGameSaveFiles` call at all, before or after the prompt appears. Every call that was made returned `S_OK`. - So none of the provider's limits (the 1 GiB quota, 16 MB update, 256-byte names that `xgameruntime_gamesave.cpp` marks as assumptions) is what refuses this autosave. The title gives up before asking. - My guess, not checked: a step of the autosave that waits on frames or a GPU readback times out at these frame rates (a few seconds per frame in the cutscene here). I haven't run `LEONIDA_MAP_READBACK=1`. **A press sequence that gets through the first-run pages on its own,** for anyone running unattended. Once the landing A is accepted, every page after it came at the same times in r3, r4 and r5 (the consent page 205 s after that press in all three). Pressing A only after initialisation is done makes it repeat: `a@150,a@185,a@200,a@215,a@230,a@245,down@265,a@275,down@285,a@295,right@305,a@315,down@325,a@335,down@345,a@355,a@375,down@390,a@405,down@420,a@435` This walks Navigation Experience, UI Text Size, Subtitles, Brightness, Finish Setup, both Legal Notices tabs and Next. On the consent page it ticks privacy, moves down, ticks terms, moves down and presses Confirm. That page starts focused on the privacy box, and each A toggles a box. With `LEONIDA_KEYBOARD_PAD=1` the scripted presses still arrive, and typing in other windows no longer reaches the game. With `always`, the owner's typing in another window was read as pad presses in my run r2, the problem Coderlord's BOOT-PAD-FOCUS claim describes. **Other counts:** - No device loss in any of the five runs: 900 to 1,800 s, both builds. Christopher-Sundeby's 3060 Ti lost it at 129 to 190 s with `main`'s defaults. - 4 failed and 1 unsupported `CreatePipelineState` in every run. - 8 `dstorage_failure` with `0x89240030` (r5), always at the same two offsets. - An implicit Overwolf Vulkan layer is loaded into the process here; it is not covered by `DISABLE_VULKAN_OBS_CAPTURE`. Counts, page names and switches only, no game data. AI-assisted (Claude Code).
Author
Owner

@amine23012004 commented on GitHub (Nov 25, 2026):

claiming: TEST-CVT-NORM-SWEEP-CACHE - tests/test_cvt_norm_mods_probe.py: FakeOracle recomputes expected_sweep_words (exact Fraction arithmetic over 65,536 f16 inputs, 1.2-1.6 s a call) for every sweep kernel; compute it once per op. Test-only, no change to tools/cvt_norm_mods_probe.py. Touches the same test file as #1638, in a different place (merges cleanly with it). No game files, no GPU. AI-assisted.

<!-- gh-comment-id:7172137715 --> @amine23012004 commented on GitHub (Nov 25, 2026): claiming: TEST-CVT-NORM-SWEEP-CACHE - `tests/test_cvt_norm_mods_probe.py`: FakeOracle recomputes `expected_sweep_words` (exact `Fraction` arithmetic over 65,536 f16 inputs, 1.2-1.6 s a call) for every sweep kernel; compute it once per op. Test-only, no change to `tools/cvt_norm_mods_probe.py`. Touches the same test file as #1638, in a different place (merges cleanly with it). No game files, no GPU. AI-assisted.
Author
Owner

@KushGene commented on GitHub (Nov 25, 2026):

claiming: GPU-RX6700XT-RADV — independent synthetic GPU test baseline on AMD Radeon RX 6700 XT (RDNA2 / NAVI22, Mesa RADV 26.2.7, Fedora 45): run_gpu_tests.py (native and LEONIDA_W64_EMULATE=1), build.py / check.py, w64_graphics.py, and runtime ctest; adding gpu-test-results/RX6700XT-RADV.txt (and docs/gpu_test_results.md if appropriate). Synthetic tests only; no game files. AI-assisted.

<!-- gh-comment-id:7172139606 --> @KushGene commented on GitHub (Nov 25, 2026): claiming: GPU-RX6700XT-RADV — independent synthetic GPU test baseline on AMD Radeon RX 6700 XT (RDNA2 / NAVI22, Mesa RADV 26.2.7, Fedora 45): run_gpu_tests.py (native and LEONIDA_W64_EMULATE=1), build.py / check.py, w64_graphics.py, and runtime ctest; adding gpu-test-results/RX6700XT-RADV.txt (and docs/gpu_test_results.md if appropriate). Synthetic tests only; no game files. AI-assisted.
Author
Owner

@hcentral07 commented on GitHub (Nov 25, 2026):

done: BUILD-VSWHERE-PRERELEASE -> #2060 (adds Visual Studio Preview/Insiders discovery when no suitable stable installation has the required C++ tools; preserves stable-first selection. AI-assisted.)

<!-- gh-comment-id:7172143847 --> @hcentral07 commented on GitHub (Nov 25, 2026): done: BUILD-VSWHERE-PRERELEASE -> #2060 (adds Visual Studio Preview/Insiders discovery when no suitable stable installation has the required C++ tools; preserves stable-first selection. AI-assisted.)
Author
Owner

@kurrutako commented on GitHub (Nov 25, 2026):

done: RT-SESSION-CACHE-AT-EXIT -> #1950

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

<!-- gh-comment-id:7172164054 --> @kurrutako commented on GitHub (Nov 25, 2026): done: RT-SESSION-CACHE-AT-EXIT -> #1950 AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

claiming: RT-D3D12-FEATURE-COMPAT-COVERAGE -- add feature size validation helpers and unit test suite for d3d12_feature_compat

<!-- gh-comment-id:7172172238 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): claiming: RT-D3D12-FEATURE-COMPAT-COVERAGE -- add feature size validation helpers and unit test suite for d3d12_feature_compat
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

done: BUILD-GLSLANG-DISCOVERY -> #2063. Current-name discovery failed on main and passed with the fix. Legacy-name and custom-path configurations passed, as did 10 CMake/CTest registration tests and the RTX 4080 null-descriptor CTest. AI-assisted.

<!-- gh-comment-id:7172181008 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): done: BUILD-GLSLANG-DISCOVERY -> #2063. Current-name discovery failed on main and passed with the fix. Legacy-name and custom-path configurations passed, as did 10 CMake/CTest registration tests and the RTX 4080 null-descriptor CTest. AI-assisted.
Author
Owner

@GGandCo commented on GitHub (Nov 25, 2026):

claiming: RT-COMPUTE-GPUAV-SELECTION — stable Vulkan debug names for compute shader modules, allowing exact selection through the validation layer's existing GPUAV selectors. This uses the standard debug-name selection route rather than adding a runtime-only environment variable or a validation-specific pNext hook. Shader code and execution remain unchanged; naming is available only when VK_EXT_debug_utils is enabled. Will compare selected/unselected synthetic modules and instrumented shader dumps, plus Intel compute regressions. Checked current coordination tables, GPUAV-related comments in #14/#1608 and open PRs; the existing related claims concern fixture races, TLAS addresses or documentation. AI-assisted: OpenAI Codex.

<!-- gh-comment-id:7172186259 --> @GGandCo commented on GitHub (Nov 25, 2026): claiming: RT-COMPUTE-GPUAV-SELECTION — stable Vulkan debug names for compute shader modules, allowing exact selection through the validation layer's existing GPUAV selectors. This uses the standard debug-name selection route rather than adding a runtime-only environment variable or a validation-specific pNext hook. Shader code and execution remain unchanged; naming is available only when VK_EXT_debug_utils is enabled. Will compare selected/unselected synthetic modules and instrumented shader dumps, plus Intel compute regressions. Checked current coordination tables, GPUAV-related comments in #14/#1608 and open PRs; the existing related claims concern fixture races, TLAS addresses or documentation. AI-assisted: OpenAI Codex.
Author
Owner

@robot00f commented on GitHub (Nov 25, 2026):

claiming:

AI-assisted: yes (Antigravity, Gemini 4 Carbon)

<!-- gh-comment-id:7172190888 --> @robot00f commented on GitHub (Nov 25, 2026): claiming: - `D3D12-COMMAND-OBJECT-CREATOR-SLOTS` — follow the retail executable's `.rdata` IID references and device-global call sites for `CreateCommandQueue`, `CreateCommandAllocator`, `CreateCommandList` and `CreateFence` to resolve the remaining `Open` creator slots (8, 9, 12 and 36) in `docs/d3d12_command_objects.md` §2.1 (stacked on #1006; static Capstone disassembly only, no game data). - `RE-ARENA-RESOLVER-131A2AD` — static Capstone disassembly of `0x14131a270`, `0x14193de10` (`0x980`-branch callee) and caller `0x1424740d5` for the `exe+0x131a2ad` (`r8=0x80070057`, `rcx=0x981`) stop reported in https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157824629 (static only, no game data). - `SHADER-W64-XROUND-BARRIERS` — coalesce/reduce `OpControlBarrier` wave-wide exchange overhead in `Gen.x_round` (`emulate_inline` in `tools/rdna2spirv.py`) for `--wave64-emulate` on 32-wide NVIDIA GPUs, verified with synthetic wave64 GPU fixtures and `vkCreateComputePipelines` compile-time measurements on Windows 10 / GTX 1050 Ti. Follow-up to https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7159151871 and https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7159367489. AI-assisted: yes (Antigravity, Gemini 4 Carbon)
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

done: RT-TITLE-VA-POSITIVE-LOOKUP-CACHE -> #2065 (draft). Ten native Windows CTests passed, including the RTX 4080 title-VA cases, and both guard mutations failed. Synthetic hot and mixed lookups improved; random controls cost about 1–2 ns more per query in the final run. The draft records the tradeoff and the missing retail workload measurement. AI-assisted.

<!-- gh-comment-id:7172207921 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): done: RT-TITLE-VA-POSITIVE-LOOKUP-CACHE -> #2065 (draft). Ten native Windows CTests passed, including the RTX 4080 title-VA cases, and both guard mutations failed. Synthetic hot and mixed lookups improved; random controls cost about 1–2 ns more per query in the final run. The draft records the tradeoff and the missing retail workload measurement. AI-assisted.
Author
Owner

@amine23012004 commented on GitHub (Nov 25, 2026):

done: TEST-CVT-NORM-SWEEP-CACHE -> #2064

tests/test_cvt_norm_mods_probe.py now computes the expected f16 sweep once per op in FakeOracle: 98 s -> 22-24 s busy, 28 s -> 6 s idle on an i7-8650U (Linux, Python 3.14), 14/14 OK. Test-only. AI-assisted.

<!-- gh-comment-id:7172232412 --> @amine23012004 commented on GitHub (Nov 25, 2026): done: TEST-CVT-NORM-SWEEP-CACHE -> #2064 `tests/test_cvt_norm_mods_probe.py` now computes the expected f16 sweep once per op in FakeOracle: 98 s -> 22-24 s busy, 28 s -> 6 s idle on an i7-8650U (Linux, Python 3.14), 14/14 OK. Test-only. AI-assisted.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

claiming: TEST-SHADER-FIXTURE-UTF8 — decode the UTF-8 paths embedded by CMake when locating generated GPU test shaders on Windows. Exercise both the original path and the packaged fallback using a source-generated fixture under non-ASCII paths. CPU-testable, independent of runtime shader-library path fixes.

<!-- gh-comment-id:7172241015 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): claiming: TEST-SHADER-FIXTURE-UTF8 — decode the UTF-8 paths embedded by CMake when locating generated GPU test shaders on Windows. Exercise both the original path and the packaged fallback using a source-generated fixture under non-ASCII paths. CPU-testable, independent of runtime shader-library path fixes.
Author
Owner

@c0pperlane commented on GitHub (Nov 25, 2026):

done: BUILD-VSWHERE-PRERELEASE -> #2066

<!-- gh-comment-id:7172244259 --> @c0pperlane commented on GitHub (Nov 25, 2026): done: BUILD-VSWHERE-PRERELEASE -> #2066
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

done: RT-D3D12-FEATURE-COMPAT-COVERAGE -> #2067

<!-- gh-comment-id:7172317322 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): done: RT-D3D12-FEATURE-COMPAT-COVERAGE -> #2067
Author
Owner

@KushGene commented on GitHub (Nov 25, 2026):

done: GPU-RX6700XT-RADV -> #2068 (https://github.com/ubiquitarianism/leonida/pull/2068) — synthetic GPU test baseline on RX 6700 XT (RADV Mesa 26.2.7, Fedora 45): run_gpu_tests.py 243/264 passed, 20 skipped, 1 failed (cs_imgatomic_ext, #1518) natively and under LEONIDA_W64_EMULATE=1; w64_graphics.py 30/30 ok; vk_pipeline_check 274/274 ok; ctest 95/97 passed (2 skipped). No game files. AI-assisted.

<!-- gh-comment-id:7172331936 --> @KushGene commented on GitHub (Nov 25, 2026): done: GPU-RX6700XT-RADV -> #2068 (https://github.com/ubiquitarianism/leonida/pull/2068) — synthetic GPU test baseline on RX 6700 XT (RADV Mesa 26.2.7, Fedora 45): run_gpu_tests.py 243/264 passed, 20 skipped, 1 failed (cs_imgatomic_ext, #1518) natively and under LEONIDA_W64_EMULATE=1; w64_graphics.py 30/30 ok; vk_pipeline_check 274/274 ok; ctest 95/97 passed (2 skipped). No game files. AI-assisted.
Author
Owner

@c0pperlane commented on GitHub (Nov 25, 2026):

releasing: WINE-KEPT-SERVER-OWNERSHIP - already covered by #1964 (WINE-PREFIX-RUNNER-OWNERSHIP, lgr123), which refuses a second runner on the same prefix, so the starter's -k can no longer hit another runner's tests. I missed it because the ID differs; no code was written for this claim.

<!-- gh-comment-id:7172348465 --> @c0pperlane commented on GitHub (Nov 25, 2026): releasing: WINE-KEPT-SERVER-OWNERSHIP - already covered by #1964 (WINE-PREFIX-RUNNER-OWNERSHIP, lgr123), which refuses a second runner on the same prefix, so the starter's -k can no longer hit another runner's tests. I missed it because the ID differs; no code was written for this claim.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

claiming: SEMANTIC-RUNNER-WINDOWS-CHILD-CANCEL — follow-up to merged #1936. On Windows, terminating the test parent before invoking taskkill /T leaves its child running and keeps inherited output pipes open. I reproduced it with a bounded Python child on e48ff03. Ask Windows to end the tree before killing the root directly, with a Windows regression. No game files or GPU.

<!-- gh-comment-id:7172350113 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): claiming: SEMANTIC-RUNNER-WINDOWS-CHILD-CANCEL — follow-up to merged #1936. On Windows, terminating the test parent before invoking taskkill /T leaves its child running and keeps inherited output pipes open. I reproduced it with a bounded Python child on e48ff03. Ask Windows to end the tree before killing the root directly, with a Windows regression. No game files or GPU.
Author
Owner

@robot00f commented on GitHub (Nov 25, 2026):

done: D3D12-COMMAND-OBJECT-CREATOR-SLOTS -> #2070 (claim: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7172190888, stacked on #1006).

AI-assisted: yes (Antigravity, Gemini 4 Carbon)

<!-- gh-comment-id:7172363624 --> @robot00f commented on GitHub (Nov 25, 2026): done: `D3D12-COMMAND-OBJECT-CREATOR-SLOTS` -> #2070 (claim: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7172190888, stacked on #1006). AI-assisted: yes (Antigravity, Gemini 4 Carbon)
Author
Owner

@robot00f commented on GitHub (Nov 25, 2026):

done: RE-ARENA-RESOLVER-131A2AD (measured statically; no pull request needed — the stop is the deterministic slot-133 CreatePlacedResourceX E_INVALIDARG path, not a wild branch or arena corruption).

Claim: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7172190888
Answers the open Next: 0x14193de10 question in @tengotengo's finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157824629) and ties it directly to @slauko's finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7156293568).

Static Capstone trace (0x1424740d0 -> 0x14131a270 -> 0x14193de10 -> 0x14131a2ad)

  1. Why a .text E8/E9 scan found 0 references to +0x131a2ad:
    0x14131a270 checks ([rcx + 0x10] & 0x1f80) == 0x980 (0x14131a275–0x14131a281), calls 0x14193de10 (0x14131a288), tests al (0x14131a28d: test al, al), and jumps to 0x14131a2ad: int3 via a 2-byte Jcc rel8 (0x14131a28f: 74 1c, je 0x14131a2ad), not a 5-byte E8/E9. Control flow reaches +0x131a2ad normally whenever 0x14193de10 returns al == 0.
  2. What 0x14193de10 does and why rax = 0, rcx = 0x981, r8 = 0x80070057 at the int3:
    • 0x14193de10(rcx = resource_record, rdx = placement_req) is the title's texture/resource placement routine. When ([rsi + 0x44] & 8) == 0 (placed path, 0x14193e11d), it builds a D3D12_RESOURCE_DESC at [rsp + 0x90] (0x140c4b030), populates an optional D3D12_CLEAR_VALUE at [rsp + 0x58] (r12, depth/stencil when bpl & 0x40 at 0x14193e0be), queries allocation info via 0x140abfad0 (device slot 108), loads the caller-supplied VA r15 = [rdi + 0x10], and calls Xbox device slot 133 (0x14193e2d4: call qword ptr [r10 + 0x428], CreatePlacedResourceX on [0x1475df048]).
    • When slot 133 returns eax = 0x80070057 (E_INVALIDARG, leaving volatile r8 = 0x80070057 from the shim's return path), 0x14193e2db–0x14193e2df passes ecx = 0x80070057 to 0x144e9b660. In 0x144e9b660, lea eax, [rsi + 0x7785fffb]; cmp eax, 0x1b; ja 0x144e9b66b returns immediately without touching r8 or rdx.
    • 0x14193e2e4: test edi, edi / js 0x14193e2fc takes the failure exit:
      • 0x14193e2fc: movzx ecx, word ptr [rsi + 0x10] loads the object's header word 0x981 into ecx (0x981 & 0x1f80 == 0x980).
      • 0x14193e300: test cl, 4 / je 0x14193e310 is taken because bit 2 (0x04, internal allocation flag) is clear for a caller-supplied page VA, leaving rcx = 0x981.
      • 0x14193e310: xor eax, eax sets rax = 0 (al = 0) and returns to 0x14131a28d, which jumps via je 0x14131a2ad into int3 with rax = 0, rcx = 0x981, r8 = 0x80070057.

Conclusion

Both runs (@tengotengo on 1cfc29af7 without #1558, and @slauko on 42537e7b6) stopped at the exact same clean CreatePlacedResourceX (slot 133, 0x14193e2d4) E_INVALIDARG refusal on a placed depth texture (#1558, merged in bcaa13dad), with no arena state corruption or wild indirect jump.

AI-assisted: yes (Antigravity, Gemini 4 Carbon)

<!-- gh-comment-id:7172364080 --> @robot00f commented on GitHub (Nov 25, 2026): done: `RE-ARENA-RESOLVER-131A2AD` (measured statically; no pull request needed — the stop is the deterministic slot-133 `CreatePlacedResourceX` `E_INVALIDARG` path, not a wild branch or arena corruption). Claim: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7172190888 Answers the open `Next: 0x14193de10` question in @tengotengo's finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157824629) and ties it directly to @slauko's finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7156293568). ### Static Capstone trace (`0x1424740d0` -> `0x14131a270` -> `0x14193de10` -> `0x14131a2ad`) 1. **Why a `.text` `E8`/`E9` scan found 0 references to `+0x131a2ad`:** `0x14131a270` checks `([rcx + 0x10] & 0x1f80) == 0x980` (`0x14131a275`–`0x14131a281`), calls `0x14193de10` (`0x14131a288`), tests `al` (`0x14131a28d: test al, al`), and jumps to `0x14131a2ad: int3` via a **2-byte `Jcc rel8` (`0x14131a28f: 74 1c`, `je 0x14131a2ad`)**, not a 5-byte `E8`/`E9`. Control flow reaches `+0x131a2ad` normally whenever `0x14193de10` returns `al == 0`. 2. **What `0x14193de10` does and why `rax = 0`, `rcx = 0x981`, `r8 = 0x80070057` at the `int3`:** - `0x14193de10(rcx = resource_record, rdx = placement_req)` is the title's texture/resource placement routine. When `([rsi + 0x44] & 8) == 0` (placed path, `0x14193e11d`), it builds a `D3D12_RESOURCE_DESC` at `[rsp + 0x90]` (`0x140c4b030`), populates an optional `D3D12_CLEAR_VALUE` at `[rsp + 0x58]` (`r12`, depth/stencil when `bpl & 0x40` at `0x14193e0be`), queries allocation info via `0x140abfad0` (device slot 108), loads the caller-supplied VA `r15 = [rdi + 0x10]`, and calls **Xbox device slot 133 (`0x14193e2d4: call qword ptr [r10 + 0x428]`, `CreatePlacedResourceX` on `[0x1475df048]`)**. - When slot 133 returns `eax = 0x80070057` (`E_INVALIDARG`, leaving volatile `r8 = 0x80070057` from the shim's return path), `0x14193e2db`–`0x14193e2df` passes `ecx = 0x80070057` to `0x144e9b660`. In `0x144e9b660`, `lea eax, [rsi + 0x7785fffb]; cmp eax, 0x1b; ja 0x144e9b66b` returns immediately without touching `r8` or `rdx`. - `0x14193e2e4: test edi, edi` / `js 0x14193e2fc` takes the failure exit: - `0x14193e2fc: movzx ecx, word ptr [rsi + 0x10]` loads the object's header word **`0x981`** into **`ecx`** (`0x981 & 0x1f80 == 0x980`). - `0x14193e300: test cl, 4` / `je 0x14193e310` is taken because bit 2 (`0x04`, internal allocation flag) is clear for a caller-supplied page VA, leaving **`rcx = 0x981`**. - `0x14193e310: xor eax, eax` sets **`rax = 0`** (`al = 0`) and returns to `0x14131a28d`, which jumps via `je 0x14131a2ad` into `int3` with **`rax = 0`, `rcx = 0x981`, `r8 = 0x80070057`**. ### Conclusion Both runs (@tengotengo on `1cfc29af7` without `#1558`, and @slauko on `42537e7b6`) stopped at the exact same clean `CreatePlacedResourceX` (slot 133, `0x14193e2d4`) `E_INVALIDARG` refusal on a placed depth texture (`#1558`, merged in `bcaa13dad`), with no arena state corruption or wild indirect jump. AI-assisted: yes (Antigravity, Gemini 4 Carbon)
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

done: TEST-SHADER-FIXTURE-UTF8 -> #2069. Native Windows CPU regression failed on main and passed in CTest. The RTX 4080 null-descriptor fixture also loaded from an absolute non-ASCII build path, using the synthetic shader generated from identical source in an ASCII directory. AI-assisted.

<!-- gh-comment-id:7172374134 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): done: TEST-SHADER-FIXTURE-UTF8 -> #2069. Native Windows CPU regression failed on main and passed in CTest. The RTX 4080 null-descriptor fixture also loaded from an absolute non-ASCII build path, using the synthetic shader generated from identical source in an ASCII directory. AI-assisted.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

done: SEMANTIC-RUNNER-WINDOWS-CHILD-CANCEL -> #2071. On main the synthetic descendant survived and wrote its completion marker. With the fix the regression passed, along with the full Windows runner unit suite and a 12-test CLI smoke. AI-assisted.

<!-- gh-comment-id:7172426528 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): done: SEMANTIC-RUNNER-WINDOWS-CHILD-CANCEL -> #2071. On main the synthetic descendant survived and wrote its completion marker. With the fix the regression passed, along with the full Windows runner unit suite and a 12-test CLI smoke. AI-assisted.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

claiming: SEMANTIC-RUNNER-REGISTER-CANCEL — a parallel test child launched just before cancellation can miss the active-process snapshot if its Popen call has not yet returned to register it. Reproduced on e48ff03 with an event-controlled handoff, where main reports 130 but the child finishes. Scope is this launch/registration race, separate from the Windows process-tree order in #2071. No GPU or game files.

<!-- gh-comment-id:7172445639 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): claiming: SEMANTIC-RUNNER-REGISTER-CANCEL — a parallel test child launched just before cancellation can miss the active-process snapshot if its Popen call has not yet returned to register it. Reproduced on e48ff03 with an event-controlled handoff, where main reports 130 but the child finishes. Scope is this launch/registration race, separate from the Windows process-tree order in #2071. No GPU or game files.
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

claiming: RT-INDIRECT-DRAW-POLICY-COVERAGE -- add parse helpers and unit test suite for d3d12_indirect_draw_policy

<!-- gh-comment-id:7172469043 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): claiming: RT-INDIRECT-DRAW-POLICY-COVERAGE -- add parse helpers and unit test suite for d3d12_indirect_draw_policy
Author
Owner

@GGandCo commented on GitHub (Nov 25, 2026):

done: RT-COMPUTE-GPUAV-SELECTION -> #2072. Compute-module debug names enable the validation layer's existing exact-name selection. Intel UHD / 32.0.101.6314: matching synthetic selector instruments four module instances, unmatched selector zero; compute readback checks remain exact. Clean contribution build and ordinary/default compute checks passed. AI-assisted: OpenAI Codex. No title data.

<!-- gh-comment-id:7172489823 --> @GGandCo commented on GitHub (Nov 25, 2026): done: RT-COMPUTE-GPUAV-SELECTION -> #2072. Compute-module debug names enable the validation layer's existing exact-name selection. Intel UHD / 32.0.101.6314: matching synthetic selector instruments four module instances, unmatched selector zero; compute readback checks remain exact. Clean contribution build and ordinary/default compute checks passed. AI-assisted: OpenAI Codex. No title data.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

finding: standalone Windows glslang 16.6.0 aborts when building the synthetic Vulkan fixture from a non-ASCII CMake build directory. In runtime/CMakeLists.txt the vk_null_descriptor_test custom command failed with exit -1073740791 on Windows 11. The standalone command also failed when run from the Unicode output directory with a relative -o. The identical GLSL succeeded from an ASCII build path, and #2069 passed on an RTX 4080 after I staged that synthetic output at the Unicode path. Needs Windows glslang 16.6.0; no game files or GPU are needed for the compiler reproduction. AI-assisted.

<!-- gh-comment-id:7172499920 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): finding: standalone Windows glslang 16.6.0 aborts when building the synthetic Vulkan fixture from a non-ASCII CMake build directory. In runtime/CMakeLists.txt the vk_null_descriptor_test custom command failed with exit -1073740791 on Windows 11. The standalone command also failed when run from the Unicode output directory with a relative -o. The identical GLSL succeeded from an ASCII build path, and #2069 passed on an RTX 4080 after I staged that synthetic output at the Unicode path. Needs Windows glslang 16.6.0; no game files or GPU are needed for the compiler reproduction. AI-assisted.
Author
Owner

@KushGene commented on GitHub (Nov 25, 2026):

claiming: HASHDICT-ATOMIC-JSON-AND-PATH-GUARD — make tools/hashdict.py --out JSON writes atomic via temp file + published_mode + replace_retry, reject empty/directory --out paths before harvesting, use tools/report_paths.same_report_path for the --out vs input guard, and accept UTF-8 BOM in --lookup (matching its index.json reader). Add regression tests in tests/test_hashdict.py that fail on main. No game files. AI-assisted.

<!-- gh-comment-id:7172506299 --> @KushGene commented on GitHub (Nov 25, 2026): claiming: HASHDICT-ATOMIC-JSON-AND-PATH-GUARD — make tools/hashdict.py --out JSON writes atomic via temp file + published_mode + replace_retry, reject empty/directory --out paths before harvesting, use tools/report_paths.same_report_path for the --out vs input guard, and accept UTF-8 BOM in --lookup (matching its index.json reader). Add regression tests in tests/test_hashdict.py that fail on main. No game files. AI-assisted.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

done: SEMANTIC-RUNNER-REGISTER-CANCEL -> #2073. The event-controlled launch race failed on main and passed with the fix; 27 runner cases and a 12-case semantic CLI smoke ran with no failures. A merge-tree check with #2071 passed. AI-assisted.

<!-- gh-comment-id:7172519118 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): done: SEMANTIC-RUNNER-REGISTER-CANCEL -> #2073. The event-controlled launch race failed on main and passed with the fix; 27 runner cases and a 12-case semantic CLI smoke ran with no failures. A merge-tree check with #2071 passed. AI-assisted.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

claiming: SEMANTIC-RUNNER-SERIAL-DEADLINE — the new serial interrupt polling waits as long as 200 ms without considering --timeout. A synthetic 90 ms test is reported as successful with a 30 ms deadline on e18b59a. Bound the serial wait by the actual remaining budget and add a deterministic regression. Separate from the process-tree and parallel launch fixes. AI-assisted.

<!-- gh-comment-id:7172519361 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): claiming: SEMANTIC-RUNNER-SERIAL-DEADLINE — the new serial interrupt polling waits as long as 200 ms without considering --timeout. A synthetic 90 ms test is reported as successful with a 30 ms deadline on e18b59a. Bound the serial wait by the actual remaining budget and add a deterministic regression. Separate from the process-tree and parallel launch fixes. AI-assisted.
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

done: RT-INDIRECT-DRAW-POLICY-COVERAGE -> #2074

<!-- gh-comment-id:7172526877 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): done: RT-INDIRECT-DRAW-POLICY-COVERAGE -> #2074
Author
Owner

@KushGene commented on GitHub (Nov 25, 2026):

done: HASHDICT-ATOMIC-JSON-AND-PATH-GUARD -> #2075 (https://github.com/ubiquitarianism/leonida/pull/2075) — tools/hashdict.py now writes --out atomically (sibling temp file + published_mode + replace_retry), rejects empty/directory --out paths before harvesting, checks inputs with report_paths.same_report_path, and reads --lookup JSON with utf-8-sig. 4 new regression tests failed on main and pass in tests/test_hashdict.py (47/47). No game files. AI-assisted.

<!-- gh-comment-id:7172537838 --> @KushGene commented on GitHub (Nov 25, 2026): done: HASHDICT-ATOMIC-JSON-AND-PATH-GUARD -> #2075 (https://github.com/ubiquitarianism/leonida/pull/2075) — tools/hashdict.py now writes --out atomically (sibling temp file + published_mode + replace_retry), rejects empty/directory --out paths before harvesting, checks inputs with report_paths.same_report_path, and reads --lookup JSON with utf-8-sig. 4 new regression tests failed on main and pass in tests/test_hashdict.py (47/47). No game files. AI-assisted.
Author
Owner

@whoalin1 commented on GitHub (Nov 25, 2026):

claiming: REPORT-PATHS-MISSING-PARENT-CASEFOLD — fix same_report_path for case-only output paths beneath a not-yet-created parent on Linux case-folding volumes, with a synthetic regression in tests/test_report_paths.py. The earlier claim was explicitly released; no open PR duplicates the shared-helper fix. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7172553128 --> @whoalin1 commented on GitHub (Nov 25, 2026): claiming: REPORT-PATHS-MISSING-PARENT-CASEFOLD — fix `same_report_path` for case-only output paths beneath a not-yet-created parent on Linux case-folding volumes, with a synthetic regression in `tests/test_report_paths.py`. The earlier claim was explicitly released; no open PR duplicates the shared-helper fix. No game files or GPU. AI-assisted with Devin.
Author
Owner

@j-weiner commented on GitHub (Nov 25, 2026):

claiming: DOC-README-DEAD-EVIDENCE-LINKS — replace stale README links to evidence in the now-private original repo with current public documentation, keeping the open BVH-row edit in #626 untouched. AI-assisted.

<!-- gh-comment-id:7172555987 --> @j-weiner commented on GitHub (Nov 25, 2026): claiming: DOC-README-DEAD-EVIDENCE-LINKS — replace stale README links to evidence in the now-private original repo with current public documentation, keeping the open BVH-row edit in #626 untouched. AI-assisted.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

done: SEMANTIC-RUNNER-SERIAL-DEADLINE -> #2076. The 30 ms fixture was reported as a normal pass on main and as a timeout with the fix; it still passes with a 1 s limit. The clock-controlled regression and full Windows runner tests passed. AI-assisted.

<!-- gh-comment-id:7172577526 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): done: SEMANTIC-RUNNER-SERIAL-DEADLINE -> #2076. The 30 ms fixture was reported as a normal pass on main and as a timeout with the fix; it still passes with a 1 s limit. The clock-controlled regression and full Windows runner tests passed. AI-assisted.
Author
Owner

@KushGene commented on GitHub (Nov 25, 2026):

claiming: AWC-MARKERS-ATOMIC-OUT-AND-PATH-GUARD — guard tools/awc_markers.py --out against empty/directory paths and input overwrites using tools/report_paths.same_report_path, write --out JSON atomically (sibling temp file + published_mode + replace_retry), and report write OSError cleanly instead of raising a traceback. Does not touch iter_banks/_read (#1159). Add regression tests in tests/test_awc_markers.py that fail on main. No game files. AI-assisted.

<!-- gh-comment-id:7172599721 --> @KushGene commented on GitHub (Nov 25, 2026): claiming: AWC-MARKERS-ATOMIC-OUT-AND-PATH-GUARD — guard tools/awc_markers.py --out against empty/directory paths and input overwrites using tools/report_paths.same_report_path, write --out JSON atomically (sibling temp file + published_mode + replace_retry), and report write OSError cleanly instead of raising a traceback. Does not touch iter_banks/_read (#1159). Add regression tests in tests/test_awc_markers.py that fail on main. No game files. AI-assisted.
Author
Owner

@MoonEyes commented on GitHub (Nov 25, 2026):

done: RT-ASYNC-COMPILE-POOL -> #2077. Pool of compile workers for the async pipeline compiler (LEONIDA_COMPILE_THREADS, default half the logical processors, 2..8; LEONIDA_COMPILE_HEAVY_MAX, default 1 build of 1 MiB or more at a time). Depends on #1889; conflicts with #1756 on has_compile_waiter. Tested on RTX 4060 / 610.88 (31/31 ctest, 17 mutants killed).
AI-assisted: yes (Claude Code).

<!-- gh-comment-id:7172603351 --> @MoonEyes commented on GitHub (Nov 25, 2026): done: RT-ASYNC-COMPILE-POOL -> #2077. Pool of compile workers for the async pipeline compiler (LEONIDA_COMPILE_THREADS, default half the logical processors, 2..8; LEONIDA_COMPILE_HEAVY_MAX, default 1 build of 1 MiB or more at a time). Depends on #1889; conflicts with #1756 on has_compile_waiter. Tested on RTX 4060 / 610.88 (31/31 ctest, 17 mutants killed). AI-assisted: yes (Claude Code).
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

claiming: RT-PIPELINE-CHECKPOINT-GUARDS-AND-TESTS -- add input validation guards and unit test suite for d3d12_pipeline_checkpoint

<!-- gh-comment-id:7172605451 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): claiming: RT-PIPELINE-CHECKPOINT-GUARDS-AND-TESTS -- add input validation guards and unit test suite for d3d12_pipeline_checkpoint
Author
Owner

@fiestorra commented on GitHub (Nov 25, 2026):

Completing my finding from earlier today (comment 7170490849): the corpus check now covers 25,963 of the 26,503 modules of 1.0.2.1 on an NVIDIA GeForce RTX 4090 (Windows 11, driver 32.0.16.2124), with 0 MODULE FAIL, 0 PIPELINE FAIL and 0 MODULE CRASH in every process. This supersedes the 13,500 figure.

Coverage, by stage, counting the four runs (the two halves I ran today plus the two from the finding):

Stage Checked Corpus total Notes
gs 195 195 all
ms 9,282 9,282 all
ps 12,101 12,101 all
vs 2,236 2,236 all
cs 2,149 2,689 540 not attempted

So every graphics module in the corpus created its pipeline on this driver, and so did 2,149 of the 2,689 compute ones. The 540 that were not attempted are exactly the compute programs over --max-bytes 4194304 (2.47 GB of SPIR-V, 513 of them *_CS_RaytracingResolve_*), which need 30-620 s each and are named in the logs; they are the only gap.

The two halves I added today: [9000,13251) checked 4,241 (cs 136, ms 2,507, ps 1,244, vs 354) and [17819,26503) checked 8,222 (cs 1,517, ms 1,955, ps 4,155, vs 595), both seeded from the existing pipeline_cache.bin files so they resume rather than restart.

What this does not prove, unchanged and worth repeating: that the driver accepts a module says nothing about the runtime having the pipeline ready inside the world-start budget — the 500-620 s isolated compiles I measured for lib_cs_21514 and lib_cs_21478 are exactly that risk, and they are in the library, not in this corpus. It also does not prove that these are the pipelines the title asks for (that needs its descriptors, root signatures and push constants) nor that any shader computes the right values.

Written with an AI assistant.

<!-- gh-comment-id:7172608839 --> @fiestorra commented on GitHub (Nov 25, 2026): Completing my finding from earlier today (comment 7170490849): the corpus check now covers **25,963 of the 26,503 modules** of 1.0.2.1 on an NVIDIA GeForce RTX 4090 (Windows 11, driver 32.0.16.2124), with **0 MODULE FAIL, 0 PIPELINE FAIL and 0 MODULE CRASH** in every process. This supersedes the 13,500 figure. Coverage, by stage, counting the four runs (the two halves I ran today plus the two from the finding): | Stage | Checked | Corpus total | Notes | |---|---|---|---| | `gs` | 195 | 195 | all | | `ms` | 9,282 | 9,282 | all | | `ps` | 12,101 | 12,101 | all | | `vs` | 2,236 | 2,236 | all | | `cs` | 2,149 | 2,689 | 540 not attempted | So every graphics module in the corpus created its pipeline on this driver, and so did 2,149 of the 2,689 compute ones. The 540 that were not attempted are exactly the compute programs over `--max-bytes 4194304` (2.47 GB of SPIR-V, 513 of them `*_CS_RaytracingResolve_*`), which need 30-620 s each and are named in the logs; they are the only gap. The two halves I added today: `[9000,13251)` checked 4,241 (cs 136, ms 2,507, ps 1,244, vs 354) and `[17819,26503)` checked 8,222 (cs 1,517, ms 1,955, ps 4,155, vs 595), both seeded from the existing `pipeline_cache.bin` files so they resume rather than restart. What this does not prove, unchanged and worth repeating: that the driver accepts a module says nothing about the runtime having the pipeline ready inside the world-start budget — the 500-620 s isolated compiles I measured for `lib_cs_21514` and `lib_cs_21478` are exactly that risk, and they are in the library, not in this corpus. It also does not prove that these are the pipelines the title asks for (that needs its descriptors, root signatures and push constants) nor that any shader computes the right values. Written with an AI assistant.
Author
Owner

@KushGene commented on GitHub (Nov 25, 2026):

done: AWC-MARKERS-ATOMIC-OUT-AND-PATH-GUARD -> #2078 (https://github.com/ubiquitarianism/leonida/pull/2078) — tools/awc_markers.py now rejects empty/directory --out paths, guards input overwrites via report_paths.same_report_path, writes JSON atomically (sibling temp file + published_mode + replace_retry), and reports write OSError cleanly without touching iter_banks/_read (#1159). 4 new regression tests failed on main and pass in tests/test_awc_markers.py (15/15). No game files. AI-assisted.

<!-- gh-comment-id:7172628327 --> @KushGene commented on GitHub (Nov 25, 2026): done: AWC-MARKERS-ATOMIC-OUT-AND-PATH-GUARD -> #2078 (https://github.com/ubiquitarianism/leonida/pull/2078) — tools/awc_markers.py now rejects empty/directory --out paths, guards input overwrites via report_paths.same_report_path, writes JSON atomically (sibling temp file + published_mode + replace_retry), and reports write OSError cleanly without touching iter_banks/_read (#1159). 4 new regression tests failed on main and pass in tests/test_awc_markers.py (15/15). No game files. AI-assisted.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

claiming: RT-KEYBOARD-PAD-MOUSE-DELTA — keep right-stick direction when a large cursor jump exceeds the Windows long range, and compute the raw counter difference across 32-bit wrap without signed overflow. Test both directions and counter rollover through the existing fake cursor in gameinput_test. No game files, no GPU.

<!-- gh-comment-id:7172630557 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): claiming: RT-KEYBOARD-PAD-MOUSE-DELTA — keep right-stick direction when a large cursor jump exceeds the Windows long range, and compute the raw counter difference across 32-bit wrap without signed overflow. Test both directions and counter rollover through the existing fake cursor in gameinput_test. No game files, no GPU.
Author
Owner

@j-weiner commented on GitHub (Nov 25, 2026):

done: DOC-README-DEAD-EVIDENCE-LINKS -> #2079

<!-- gh-comment-id:7172632812 --> @j-weiner commented on GitHub (Nov 25, 2026): done: DOC-README-DEAD-EVIDENCE-LINKS -> #2079
Author
Owner

@whoalin1 commented on GitHub (Nov 25, 2026):

done: REPORT-PATHS-MISSING-PARENT-CASEFOLD -> #2080

<!-- gh-comment-id:7172638488 --> @whoalin1 commented on GitHub (Nov 25, 2026): done: REPORT-PATHS-MISSING-PARENT-CASEFOLD -> #2080
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

done: RT-PIPELINE-CHECKPOINT-GUARDS-AND-TESTS -> #2081

<!-- gh-comment-id:7172667483 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): done: RT-PIPELINE-CHECKPOINT-GUARDS-AND-TESTS -> #2081
Author
Owner

@aslan2142 commented on GitHub (Nov 25, 2026):

claiming: RT-TITLE-HUD-VRAM-BUDGET (title HUD: VRAM in use and budget from VK_EXT_memory_budget, so the figure is real under Wine)

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

<!-- gh-comment-id:7172679484 --> @aslan2142 commented on GitHub (Nov 25, 2026): claiming: RT-TITLE-HUD-VRAM-BUDGET (title HUD: VRAM in use and budget from VK_EXT_memory_budget, so the figure is real under Wine) AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

claiming: CMAKE-TITLE-HUD-OPTIONAL-VULKAN — after #1922, a Windows configure without Vulkan headers fails because title_hud_test unconditionally links Vulkan::Headers. Its mem_probe include requires the headers. Place just this test in the existing Vulkan headers block and verify both configurations. No game files or GPU.

<!-- gh-comment-id:7172696433 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): claiming: CMAKE-TITLE-HUD-OPTIONAL-VULKAN — after #1922, a Windows configure without Vulkan headers fails because title_hud_test unconditionally links Vulkan::Headers. Its mem_probe include requires the headers. Place just this test in the existing Vulkan headers block and verify both configurations. No game files or GPU.
Author
Owner

@ecox982745 commented on GitHub (Nov 25, 2026):

finding: A scalar read from the first active lane can lose high bits after another lane writes a mask into the same vector register.

Following the #1397 author's reply, I reduced this to a CPU-only check using the repository's translator and SPIR-V interpreter. Lane 7 writes a mask into its own copy of v3. With full EXEC restored, v_readfirstlane_b32 should broadcast lane 0's original 0xd4718f66 to every lane.

Correct outputs with the lane-7 move 8 threads 20 threads 32 threads
Main 5da72d19f 1/8 1/20 1/32
#1397 52fb23042 0/8 0/20 32/32
Move removed, either revision 8/8 20/20 32/32

The PR head broadcasts 0x00000066 and 0x00018f66 in the two partial groups, matching the RTX 4090 readbacks. On main, only lane 0 gets the expected value. A fix should preserve the full scalar word even when the selected lane kept ordinary data and another lane received a mask. Translator location on the PR head

Runnable regression check using only Python and the repository

Save this as check_readfirstlane.py and run python -I check_readfirstlane.py from the repo root. It checks every lane and exits with an assertion on either affected revision. No GPU, game files or external shader tools required.

"""Run from the Leonida repository root with python -I check_readfirstlane.py."""
from pathlib import Path
import struct
import sys

sys.path.insert(0, str(Path("tests/semantic").resolve()))
from support import translate_lines
from spirv_mini_interp import run_workgroup

def read_back(size, with_move):
    lines = [
        "v_add_nc_u32_e32 v3, 0xd4718f66, v0",
        "v_cmp_eq_u32_e64 s20, s4, v0",
        "s_and_saveexec_b32 s24, s20",
    ]
    if with_move:
        lines.append("v_mov_b32_e32 v3, s20")
    lines += [
        "s_mov_b32 exec_lo, s5",
        "v_readfirstlane_b32 s14, v3",
        "s_mov_b32 exec_lo, -1",
        "v_mov_b32_e32 v4, s14",
        "v_lshlrev_b32_e32 v2, 2, v0",
        "buffer_store_dword v4, v2, s[0:3], 0 offen",
        "s_endpgm",
    ]
    header = bytes(0x138) + struct.pack("<4I", 0x8090, size, 1, 1)
    module = translate_lines("cs_partial_read", lines, fssm=header)
    memory = run_workgroup(module, size, 32,
        inputs_for=lambda i: {"%wg_id": (0,0,0), "%local_id": (i,0,0), "%sg_lane": i},
        push_constants=[0, 0, 0xffffffff, 0x31016fac, 7, 0xffffffff] + [0]*26,
        memory={})
    return [memory[4*i] for i in range(size)]

expected = 0xd4718f66
failed = []
for size in (8, 20, 32):
    for with_move in (False, True):
        words = read_back(size, with_move)
        correct = words.count(expected)
        print(f"{size:2} lanes, move={with_move}: {correct}/{size} correct, first={words[0]:#010x}")
        if correct != size:
            failed.append((size, with_move))
assert not failed, f"incorrect broadcasts: {failed}"

AI-assisted verification with OpenAI Codex.

<!-- gh-comment-id:7172733803 --> @ecox982745 commented on GitHub (Nov 25, 2026): finding: A scalar read from the first active lane can lose high bits after another lane writes a mask into the same vector register. Following [the #1397 author's reply](https://github.com/ubiquitarianism/leonida/pull/1397#issuecomment-7172465267), I reduced this to a CPU-only check using the repository's translator and SPIR-V interpreter. Lane 7 writes a mask into its own copy of `v3`. With full EXEC restored, `v_readfirstlane_b32` should broadcast lane 0's original `0xd4718f66` to every lane. | Correct outputs with the lane-7 move | 8 threads | 20 threads | 32 threads | | --- | ---: | ---: | ---: | | Main `5da72d19f` | 1/8 | 1/20 | 1/32 | | #1397 `52fb23042` | 0/8 | 0/20 | 32/32 | | Move removed, either revision | 8/8 | 20/20 | 32/32 | The PR head broadcasts `0x00000066` and `0x00018f66` in the two partial groups, matching the [RTX 4090 readbacks](https://github.com/ubiquitarianism/leonida/pull/1397#issuecomment-7170685090). On main, only lane 0 gets the expected value. A fix should preserve the full scalar word even when the selected lane kept ordinary data and another lane received a mask. [Translator location on the PR head](https://github.com/ubiquitarianism/leonida/blob/52fb230420be4efeac9778a361b3c6e0882f52f4/tools/rdna2spirv.py#L7940) <details><summary>Runnable regression check using only Python and the repository</summary> Save this as `check_readfirstlane.py` and run `python -I check_readfirstlane.py` from the repo root. It checks every lane and exits with an assertion on either affected revision. No GPU, game files or external shader tools required. ```python """Run from the Leonida repository root with python -I check_readfirstlane.py.""" from pathlib import Path import struct import sys sys.path.insert(0, str(Path("tests/semantic").resolve())) from support import translate_lines from spirv_mini_interp import run_workgroup def read_back(size, with_move): lines = [ "v_add_nc_u32_e32 v3, 0xd4718f66, v0", "v_cmp_eq_u32_e64 s20, s4, v0", "s_and_saveexec_b32 s24, s20", ] if with_move: lines.append("v_mov_b32_e32 v3, s20") lines += [ "s_mov_b32 exec_lo, s5", "v_readfirstlane_b32 s14, v3", "s_mov_b32 exec_lo, -1", "v_mov_b32_e32 v4, s14", "v_lshlrev_b32_e32 v2, 2, v0", "buffer_store_dword v4, v2, s[0:3], 0 offen", "s_endpgm", ] header = bytes(0x138) + struct.pack("<4I", 0x8090, size, 1, 1) module = translate_lines("cs_partial_read", lines, fssm=header) memory = run_workgroup(module, size, 32, inputs_for=lambda i: {"%wg_id": (0,0,0), "%local_id": (i,0,0), "%sg_lane": i}, push_constants=[0, 0, 0xffffffff, 0x31016fac, 7, 0xffffffff] + [0]*26, memory={}) return [memory[4*i] for i in range(size)] expected = 0xd4718f66 failed = [] for size in (8, 20, 32): for with_move in (False, True): words = read_back(size, with_move) correct = words.count(expected) print(f"{size:2} lanes, move={with_move}: {correct}/{size} correct, first={words[0]:#010x}") if correct != size: failed.append((size, with_move)) assert not failed, f"incorrect broadcasts: {failed}" ``` </details> AI-assisted verification with OpenAI Codex.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

done: RT-KEYBOARD-PAD-MOUSE-DELTA -> #2082. On Windows both large-delta cases failed on main and passed with the fix. The GameInput targets passed all 377 virtual-input checks, including raw counter rollover. AI-assisted.

<!-- gh-comment-id:7172751423 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): done: RT-KEYBOARD-PAD-MOUSE-DELTA -> #2082. On Windows both large-delta cases failed on main and passed with the fix. The GameInput targets passed all 377 virtual-input checks, including raw counter rollover. AI-assisted.
Author
Owner

@whoalin1 commented on GitHub (Nov 25, 2026):

claiming: SHADER-READFIRSTLANE-MIXED-PROVENANCE — follow-up to ecox982745's finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7172733803): preserve the full scalar word when v_readfirstlane_b32 selects a lane that kept ordinary data while another lane received a mask in the same VGPR. I authored #1397 and already triaged the provenance hole, so I will first reproduce with the CPU-only interpreter fixture, then look for the smallest sound translator/model fix with semantic regression coverage. No game files; GPU only if needed for confirmation. AI-assisted with Devin.

<!-- gh-comment-id:7172761531 --> @whoalin1 commented on GitHub (Nov 25, 2026): claiming: SHADER-READFIRSTLANE-MIXED-PROVENANCE — follow-up to ecox982745's finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7172733803): preserve the full scalar word when `v_readfirstlane_b32` selects a lane that kept ordinary data while another lane received a mask in the same VGPR. I authored #1397 and already triaged the provenance hole, so I will first reproduce with the CPU-only interpreter fixture, then look for the smallest sound translator/model fix with semantic regression coverage. No game files; GPU only if needed for confirmation. AI-assisted with Devin.
Author
Owner

@syfyra commented on GitHub (Nov 25, 2026):

claiming: DDS-PNG-SNORM-MODE - tools/dds_png.py _bc_interp_lut_snorm clamps a -128 endpoint to -127 before the red_0 > red_1 test, so the BC4_SNORM/BC5_SNORM endpoint pair 0x81, 0x80 (-127 > -128, an eight-value block) takes the six-value ramp and index 7 decodes to +1.0 (255) instead of -1.0 (0). Compare the stored int8 endpoints and clamp only the values, as D3D's BC4_SNORM rule, DirectXTex and Pillow do. Test with synthetic blocks; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7172770290 --> @syfyra commented on GitHub (Nov 25, 2026): claiming: DDS-PNG-SNORM-MODE - tools/dds_png.py `_bc_interp_lut_snorm` clamps a -128 endpoint to -127 before the red_0 > red_1 test, so the BC4_SNORM/BC5_SNORM endpoint pair 0x81, 0x80 (-127 > -128, an eight-value block) takes the six-value ramp and index 7 decodes to +1.0 (255) instead of -1.0 (0). Compare the stored int8 endpoints and clamp only the values, as D3D's BC4_SNORM rule, DirectXTex and Pillow do. Test with synthetic blocks; no game files, no GPU. AI-assisted.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

claiming: RT-KEYBOARD-PAD-CURSOR-SOURCE — when the asynchronous raw input thread becomes ready, the next poll can subtract a screen cursor coordinate from the new raw-motion counter. Track the source of the previous sample and establish a baseline when the source changes. Exercise a controlled source switch through the virtual pad test. Related #2082 edits delta arithmetic in the same function. No game files or GPU.

<!-- gh-comment-id:7172790613 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): claiming: RT-KEYBOARD-PAD-CURSOR-SOURCE — when the asynchronous raw input thread becomes ready, the next poll can subtract a screen cursor coordinate from the new raw-motion counter. Track the source of the previous sample and establish a baseline when the source changes. Exercise a controlled source switch through the virtual pad test. Related #2082 edits delta arithmetic in the same function. No game files or GPU.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

done: CMAKE-TITLE-HUD-OPTIONAL-VULKAN -> #2083. Main failed CMake generation without Vulkan headers. The patched headers-free configure and title_window CTest passed, and title_hud CTest passed with the pinned headers. AI-assisted.

<!-- gh-comment-id:7172790664 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): done: CMAKE-TITLE-HUD-OPTIONAL-VULKAN -> #2083. Main failed CMake generation without Vulkan headers. The patched headers-free configure and title_window CTest passed, and title_hud CTest passed with the pinned headers. AI-assisted.
Author
Owner

@djrolfes commented on GitHub (Nov 25, 2026):

Owner maintenance update (AI-assisted): #1009 same branch is now tested head 0cc10a1ec on 490f5b9ec, clean merge-tree against 5da72d19f before lease-push. Full native/Windows builds, native validation 99 pass + 1 corpus skip, Wine overlap 62 pass + 1 explicit host-comparison skip / 63, semantic 6,310 tests, contract/line-ending 68 pass. Retains stateful indirect recording, clamp/root-block retention and worker compile tickets. No retail/world claim; RT-PROTON-3070TI-VALIDATION remains separate.

#1024 rebased/pushed as 4895588a9: scanner 17/17 and workflow 3/3; main Git-error handling retained, reviewer reassessment requested. #771 replacement 325ce06eb withdraws the per-push runner expansion, adds only two staggered nightly workflow invocations/day, and corrects the historical completion claim; tests/limitations are in its body. #782/#789/#794 were rebuilt as genuinely independent single-topic commits on e18b59a5b, removing inherited CI/sibling commits; focused tests 10/34/22 pass. Existing watcher owns status reporting. No label check is being counted as full CI.

<!-- gh-comment-id:7172822354 --> @djrolfes commented on GitHub (Nov 25, 2026): Owner maintenance update (AI-assisted): #1009 same branch is now tested head 0cc10a1ec on 490f5b9ec, clean merge-tree against 5da72d19f before lease-push. Full native/Windows builds, native validation 99 pass + 1 corpus skip, Wine overlap 62 pass + 1 explicit host-comparison skip / 63, semantic 6,310 tests, contract/line-ending 68 pass. Retains stateful indirect recording, clamp/root-block retention and worker compile tickets. No retail/world claim; RT-PROTON-3070TI-VALIDATION remains separate. #1024 rebased/pushed as 4895588a9: scanner 17/17 and workflow 3/3; main Git-error handling retained, reviewer reassessment requested. #771 replacement 325ce06eb withdraws the per-push runner expansion, adds only two staggered nightly workflow invocations/day, and corrects the historical completion claim; tests/limitations are in its body. #782/#789/#794 were rebuilt as genuinely independent single-topic commits on e18b59a5b, removing inherited CI/sibling commits; focused tests 10/34/22 pass. Existing watcher owns status reporting. No label check is being counted as full CI.
Author
Owner

@BubsMcgee commented on GitHub (Nov 25, 2026):

claiming: RT-GEOMETRY-READBACK-RUN-MERGE — a geometry view refresh reads every written 64 KiB tile with its own readability probe and guarded copy, even when the title wrote a run of tiles across tile boundaries. Merge address-adjacent written tiles into one guarded copy, the copy_fetch_runs behaviour in DexNom/VIctory crates/victory-gpu/src/host.rs (GPL-3.0-or-later, commit 570a941), and fall back to per-tile reads when a run is not readable whole. New portable case in geometry_views_test (two adjacent written tiles -> one 128 KiB copy). Synthetic only: no game files or GPU. Independent of #1678 (which touches only d3d12_title_buffer_windows.h). AI-assisted (opencode).

<!-- gh-comment-id:7172830014 --> @BubsMcgee commented on GitHub (Nov 25, 2026): claiming: RT-GEOMETRY-READBACK-RUN-MERGE — a geometry view refresh reads every written 64 KiB tile with its own readability probe and guarded copy, even when the title wrote a run of tiles across tile boundaries. Merge address-adjacent written tiles into one guarded copy, the `copy_fetch_runs` behaviour in DexNom/VIctory `crates/victory-gpu/src/host.rs` (GPL-3.0-or-later, commit `570a941`), and fall back to per-tile reads when a run is not readable whole. New portable case in `geometry_views_test` (two adjacent written tiles -> one 128 KiB copy). Synthetic only: no game files or GPU. Independent of #1678 (which touches only `d3d12_title_buffer_windows.h`). AI-assisted (opencode).
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

claiming: RT-D3D12-TRACE-COVERAGE -- add outcome mapping helpers and unit test suite for d3d12_trace

<!-- gh-comment-id:7172842927 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): claiming: RT-D3D12-TRACE-COVERAGE -- add outcome mapping helpers and unit test suite for d3d12_trace
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

claiming: FRAME-PACER-EARLY-ORIGIN — current-token polling before the first configured origin offset records a frame event in the future. Use the poll timestamp until an origin on that grid has passed, preserving the token due time. CPU-only fake clock regression, separate from repeated-token statistics and timeout/overflow changes.

<!-- gh-comment-id:7172851224 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): claiming: FRAME-PACER-EARLY-ORIGIN — current-token polling before the first configured origin offset records a frame event in the future. Use the poll timestamp until an origin on that grid has passed, preserving the token due time. CPU-only fake clock regression, separate from repeated-token statistics and timeout/overflow changes.
Author
Owner

@syfyra commented on GitHub (Nov 25, 2026):

done: DDS-PNG-SNORM-MODE -> #2084

<!-- gh-comment-id:7172860914 --> @syfyra commented on GitHub (Nov 25, 2026): done: DDS-PNG-SNORM-MODE -> #2084
Author
Owner

@KushGene commented on GitHub (Nov 25, 2026):

claiming: VK-SAMPLER-LOD-ORDER-AND-DERIV-ADJUST — fix gfx10::vulkan_sampler() and gfx10::decode(SamplerWords) in runtime/src/gfx10_descriptors.h: clamp maxLod >= minLod (VUID-VkSamplerCreateInfo-maxLod-01973), guard NaN LODs/bias and negative max_lod_bias (VUID-VkSamplerCreateInfo-mipLodBias-01069), and guard kIntegerBorderPtr with !deriv_adjust when DERIV_ADJUST_EN repurposes WORD3. Add regression tests in runtime/test/gfx10_descriptors_test.cpp that fail on main. No game files. AI-assisted.

<!-- gh-comment-id:7172871387 --> @KushGene commented on GitHub (Nov 25, 2026): claiming: VK-SAMPLER-LOD-ORDER-AND-DERIV-ADJUST — fix `gfx10::vulkan_sampler()` and `gfx10::decode(SamplerWords)` in `runtime/src/gfx10_descriptors.h`: clamp `maxLod >= minLod` (`VUID-VkSamplerCreateInfo-maxLod-01973`), guard NaN LODs/bias and negative `max_lod_bias` (`VUID-VkSamplerCreateInfo-mipLodBias-01069`), and guard `kIntegerBorderPtr` with `!deriv_adjust` when `DERIV_ADJUST_EN` repurposes WORD3. Add regression tests in `runtime/test/gfx10_descriptors_test.cpp` that fail on main. No game files. AI-assisted.
Author
Owner

@GGandCo commented on GitHub (Nov 25, 2026):

claiming: RT-BC-VIEW-COMPATIBILITY — enforce Vulkan BC format compatibility classes in view resolution and castable image lists; keep streamed texture views in their requested BC family instead of creating incompatible BC6H/BC7 image lists. Includes synthetic CPU/GPU regression checks. Runtime validation exposed incompatible compressed format views; no game data will be included. AI-assisted with OpenAI Codex.

<!-- gh-comment-id:7172872105 --> @GGandCo commented on GitHub (Nov 25, 2026): claiming: RT-BC-VIEW-COMPATIBILITY — enforce Vulkan BC format compatibility classes in view resolution and castable image lists; keep streamed texture views in their requested BC family instead of creating incompatible BC6H/BC7 image lists. Includes synthetic CPU/GPU regression checks. Runtime validation exposed incompatible compressed format views; no game data will be included. AI-assisted with OpenAI Codex.
Author
Owner

@Snooozs commented on GitHub (Nov 25, 2026):

finding: with LEONIDA_GEOMETRY_MB the world-start READ_INVALID is a read past the end of a geometry copy, into the unmapped gap between two 4 MiB blocks; host image copies and LEONIDA_RT_AS=off don't change it. Counts, addresses and sizes only.

Setup: RTX 5060 Ti 16 GB, NVIDIA 621.01, Windows 10 19045, 32 GB RAM, own 1.0.2.1. main b9320a118 (from n31 on: 490f5b9ec) + DadaCap's mesh-indirect-on-main + #1592 + #1896 + #1889 + #1914 + #1887 + #1867 + #1705, from n23b also #1851, from n24 #2020, from n31 #1957. LEONIDA_GEOMETRY_MB=2048 LEONIDA_TITLE_WINDOWS_MB=1024 LEONIDA_ARENA_MB=2048 LEONIDA_MAP_READBACK=1, device type 6.

run change result
n22 host image copies on READ_INVALID at the world start (driver error about 104 s), lib_cs_01468 on two compute queues
n25 host image copies off READ_INVALID about 90 s, mesh draw on the direct queue
n31 + #1957, wait timeout back to the default, + a local report of the layer's own ranges READ_INVALID about 94 s
n32 + LEONIDA_RT_AS=off READ_INVALID about 90 s
n33 geometry blocks 256 MiB instead of 4 MiB, RT_AS back no driver error in 455 s, stopped by me
n27, n28, n29, n30 4 MiB blocks, LEONIDA_VALUE_WAIT_TIMEOUT_MS=30000 no driver error in 129, 335, 198 and 180 s (ended by me or the RAM guard)

One run each, except the last row. The RAM guard stopped n23b, n24 and n26 before that point.

Correction (edited): the first version left out n27-n30. They reached the world start too (5,190-5,639 submissions, 9,700-9,800 indirect calls recorded, 4,096 emitted) with 4 MiB blocks and did not fault, so the loss is not certain at 4 MiB and n33 is no proof that the block size matters. These runs stopped submitting at about that point, so they may not have reached the read. (An earlier wording here said their work stood behind held gates. That was wrong: gates held is a running total, and n28 ended with none outstanding.)

What the address is (n31, n32: a local registry of the blocks of TitleBufferWindows and the copies in them, printed with the fault):

  • n31: 0x5cac63000 is 0x3000 bytes past the end of a 4 MiB geometry block and 0xd000 bytes before the next one; the last copy below it is exactly 1 MiB and ended 0x23000 earlier.
  • n32: 0x5bef30000 is 0x0 bytes past the end of a 4 MiB geometry block, 0x10000 before the next; the last copy below it is exactly 1 MiB and ends at that same byte.

Both are the 64 KiB hole between two blocks, so the reader ran off the end of a copy. 1 MiB is kPoolExtentMax (d3d12_vulkan_device.cpp:2548), so this looks like a stream-pool extent. resolve_pool_memory returns shader + (source - extent.start) without comparing the request's bytes to the extent's end: the extent is anchored at the request's page and cut at 1 MiB, and extents next to each other in the title's pool get unrelated places in GPU memory. A V# is bounds-checked against it (vsharp_address wants room >= bytes), but a root view or a raw pointer carries no length, so a shader that walks the pool can read on past it.

What is and is not shown: the address is in a hole next to a 1 MiB copy in two runs with the report; runs with and without 256 MiB blocks exist that did not fault, so n33 proves nothing about the block size. I have not shown which instruction reads it. If it is an over-read, large blocks only hide it: past the extent the shader reads whatever copy lies behind it, so the geometry it makes from there is wrong. The fix I would make is a pool mapped as one contiguous range (sparse buffer, unbound pages read zero), so neighbouring extents are neighbours on the GPU too.

It would also fit that runs with title windows instead of geometry copies don't show it: those mostly sit in the arena, so what follows is mapped. I have not tested that.

I can write the pool mapping unless someone already has it. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7172872857 --> @Snooozs commented on GitHub (Nov 25, 2026): finding: with `LEONIDA_GEOMETRY_MB` the world-start READ_INVALID is a read past the end of a geometry copy, into the unmapped gap between two 4 MiB blocks; host image copies and `LEONIDA_RT_AS=off` don't change it. Counts, addresses and sizes only. **Setup:** RTX 5060 Ti 16 GB, NVIDIA 621.01, Windows 10 19045, 32 GB RAM, own 1.0.2.1. `main` b9320a118 (from n31 on: 490f5b9ec) + DadaCap's `mesh-indirect-on-main` + #1592 + #1896 + #1889 + #1914 + #1887 + #1867 + #1705, from n23b also #1851, from n24 #2020, from n31 #1957. `LEONIDA_GEOMETRY_MB=2048 LEONIDA_TITLE_WINDOWS_MB=1024 LEONIDA_ARENA_MB=2048 LEONIDA_MAP_READBACK=1`, device type 6. | run | change | result | |---|---|---| | n22 | host image copies on | READ_INVALID at the world start (driver error about 104 s), `lib_cs_01468` on two compute queues | | n25 | host image copies off | READ_INVALID about 90 s, mesh draw on the direct queue | | n31 | + #1957, wait timeout back to the default, + a local report of the layer's own ranges | READ_INVALID about 94 s | | n32 | + `LEONIDA_RT_AS=off` | READ_INVALID about 90 s | | n33 | geometry blocks 256 MiB instead of 4 MiB, RT_AS back | no driver error in 455 s, stopped by me | | n27, n28, n29, n30 | 4 MiB blocks, `LEONIDA_VALUE_WAIT_TIMEOUT_MS=30000` | no driver error in 129, 335, 198 and 180 s (ended by me or the RAM guard) | One run each, except the last row. The RAM guard stopped n23b, n24 and n26 before that point. Correction (edited): the first version left out n27-n30. They reached the world start too (5,190-5,639 submissions, 9,700-9,800 indirect calls recorded, 4,096 emitted) with 4 MiB blocks and did not fault, so the loss is not certain at 4 MiB and n33 is no proof that the block size matters. These runs stopped submitting at about that point, so they may not have reached the read. (An earlier wording here said their work stood behind held gates. That was wrong: `gates held` is a running total, and n28 ended with none outstanding.) **What the address is** (n31, n32: a local registry of the blocks of `TitleBufferWindows` and the copies in them, printed with the fault): - n31: `0x5cac63000` is `0x3000` bytes past the end of a 4 MiB geometry block and `0xd000` bytes before the next one; the last copy below it is exactly 1 MiB and ended `0x23000` earlier. - n32: `0x5bef30000` is `0x0` bytes past the end of a 4 MiB geometry block, `0x10000` before the next; the last copy below it is exactly 1 MiB and ends at that same byte. Both are the 64 KiB hole between two blocks, so the reader ran off the end of a copy. 1 MiB is `kPoolExtentMax` (`d3d12_vulkan_device.cpp:2548`), so this looks like a stream-pool extent. `resolve_pool_memory` returns `shader + (source - extent.start)` without comparing the request's bytes to the extent's end: the extent is anchored at the request's page and cut at 1 MiB, and extents next to each other in the title's pool get unrelated places in GPU memory. A V# is bounds-checked against it (`vsharp_address` wants `room >= bytes`), but a root view or a raw pointer carries no length, so a shader that walks the pool can read on past it. **What is and is not shown:** the address is in a hole next to a 1 MiB copy in two runs with the report; runs with and without 256 MiB blocks exist that did not fault, so n33 proves nothing about the block size. I have not shown which instruction reads it. If it is an over-read, large blocks only hide it: past the extent the shader reads whatever copy lies behind it, so the geometry it makes from there is wrong. The fix I would make is a pool mapped as one contiguous range (sparse buffer, unbound pages read zero), so neighbouring extents are neighbours on the GPU too. It would also fit that runs with title windows instead of geometry copies don't show it: those mostly sit in the arena, so what follows is mapped. I have not tested that. I can write the pool mapping unless someone already has it. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@whoalin1 commented on GitHub (Nov 25, 2026):

releasing: SHADER-READFIRSTLANE-MIXED-PROVENANCE — I reproduced ecox982745's CPU-only case exactly on 52fb23042 (8/20 lanes truncate to 0x00000066/0x00018f66; 32 lanes pass). A small stopgap is not sound: simply treating the readfirstlane result as data fixes the data read but regresses scalar bitwise combinations with ordinary internally-per-lane mask SGPRs; keeping the existing conversion fixes mask combinations but loses the scalar word. The correct fix needs a representation-aware follow-up (full scalar word vs per-lane mask bits, or a shadow word) carried through lane_masks.copies/bitwise/control-flow merges. I do not want to land a knowingly regressing partial fix, so I am releasing the claim for a larger careful piece of work. Experimental uncommitted edits are local only in .scratch-session/wt-rflprov; no PR opened. AI-assisted analysis with Devin.

<!-- gh-comment-id:7172874854 --> @whoalin1 commented on GitHub (Nov 25, 2026): releasing: SHADER-READFIRSTLANE-MIXED-PROVENANCE — I reproduced ecox982745's CPU-only case exactly on `52fb23042` (8/20 lanes truncate to `0x00000066`/`0x00018f66`; 32 lanes pass). A small stopgap is not sound: simply treating the readfirstlane result as data fixes the data read but regresses scalar bitwise combinations with ordinary internally-per-lane mask SGPRs; keeping the existing conversion fixes mask combinations but loses the scalar word. The correct fix needs a representation-aware follow-up (full scalar word vs per-lane mask bits, or a shadow word) carried through lane_masks.copies/bitwise/control-flow merges. I do not want to land a knowingly regressing partial fix, so I am releasing the claim for a larger careful piece of work. Experimental uncommitted edits are local only in `.scratch-session/wt-rflprov`; no PR opened. AI-assisted analysis with Devin.
Author
Owner

@lixonik commented on GitHub (Nov 25, 2026):

claiming: RT-MAP-READBACK-RANGE -- respect an empty D3D12 Map read range for title-placed textures. With LEONIDA_MAP_READBACK=1 the placed-texture Map branch currently queues a blocking GPU readback for a write-only range. I will keep readback for null and nonempty ranges and cover the three cases with synthetic inputs. Related exposure report: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7167966834. AI-assisted.

<!-- gh-comment-id:7172880286 --> @lixonik commented on GitHub (Nov 25, 2026): claiming: RT-MAP-READBACK-RANGE -- respect an empty D3D12 Map read range for title-placed textures. With LEONIDA_MAP_READBACK=1 the placed-texture Map branch currently queues a blocking GPU readback for a write-only range. I will keep readback for null and nonempty ranges and cover the three cases with synthetic inputs. Related exposure report: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7167966834. AI-assisted.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

done: RT-KEYBOARD-PAD-CURSOR-SOURCE -> #2086. All three source-switch checks failed on main and passed with the patch. Both GameInput CTests passed all 377 virtual-input checks, and a merge-tree check with #2082 passed. AI-assisted.

<!-- gh-comment-id:7172884469 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): done: RT-KEYBOARD-PAD-CURSOR-SOURCE -> #2086. All three source-switch checks failed on main and passed with the patch. Both GameInput CTests passed all 377 virtual-input checks, and a merge-tree check with #2082 passed. AI-assisted.
Author
Owner

@c0pperlane commented on GitHub (Nov 25, 2026):

done: VK-PIPELINE-CHECK-LARGE-ADMISSION -> #2088

<!-- gh-comment-id:7172945659 --> @c0pperlane commented on GitHub (Nov 25, 2026): done: VK-PIPELINE-CHECK-LARGE-ADMISSION -> #2088
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

claiming: SHADER-READFIRSTLANE-MIXED-PROVENANCE — picking up the released CPU-reproducible follow-up. I will verify both selected-lane full words and subsequent scalar combinations with per-lane mask registers, including partial workgroups. I will check overlap with #1397 and leave a finding if the representation change cannot preserve the existing mask semantics. No game files. AI-assisted.

<!-- gh-comment-id:7172955488 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): claiming: SHADER-READFIRSTLANE-MIXED-PROVENANCE — picking up the released CPU-reproducible follow-up. I will verify both selected-lane full words and subsequent scalar combinations with per-lane mask registers, including partial workgroups. I will check overlap with #1397 and leave a finding if the representation change cannot preserve the existing mask semantics. No game files. AI-assisted.
Author
Owner

@BubsMcgee commented on GitHub (Nov 25, 2026):

claiming: IMAGE-GET-LOD-CUBE - rdna2spirv: translate image_get_lod for dim:SQ_RSRC_IMG_CUBE. tools/rdna2spirv.py:3249 refuses every dimension but 2D/2D_ARRAY. A cube is the same 6-layer 2D-array view image_sample uses (cube_coords, tools/rdna2spirv.py:13441): the hardware s and t are the projected coordinates in [1, 2] and the third word is 8 * slice + face; the LOD comes from the s/t derivatives, so it queries OpImageQueryLod on %simg2da at (s - 1, t - 1) and does not read the face word. a16 cube stays refused (it packs the three coordinates differently). Adds a semantic test (SPIR-V shape + spirv-val) next to the existing 2D_ARRAY case in tests/semantic/test_sampled_dynamic_index.py; the GPU fixtures ps_get_lod.asm / ps_get_lod_array.asm have no cube form. No game data, no GPU needed. AI-assisted.

<!-- gh-comment-id:7172964381 --> @BubsMcgee commented on GitHub (Nov 25, 2026): claiming: IMAGE-GET-LOD-CUBE - rdna2spirv: translate `image_get_lod` for `dim:SQ_RSRC_IMG_CUBE`. `tools/rdna2spirv.py:3249` refuses every dimension but 2D/2D_ARRAY. A cube is the same 6-layer 2D-array view `image_sample` uses (`cube_coords`, `tools/rdna2spirv.py:13441`): the hardware s and t are the projected coordinates in [1, 2] and the third word is 8 * slice + face; the LOD comes from the s/t derivatives, so it queries `OpImageQueryLod` on `%simg2da` at (s - 1, t - 1) and does not read the face word. `a16` cube stays refused (it packs the three coordinates differently). Adds a semantic test (SPIR-V shape + spirv-val) next to the existing 2D_ARRAY case in `tests/semantic/test_sampled_dynamic_index.py`; the GPU fixtures `ps_get_lod.asm` / `ps_get_lod_array.asm` have no cube form. No game data, no GPU needed. AI-assisted.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

done: FRAME-PACER-EARLY-ORIGIN -> #2087. The fake-clock case failed on main and passed in frame_pacer CTest with the fix, including the display on the original vblank. AI-assisted.

<!-- gh-comment-id:7172965506 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): done: FRAME-PACER-EARLY-ORIGIN -> #2087. The fake-clock case failed on main and passed in frame_pacer CTest with the fix, including the display on the original vblank. AI-assisted.
Author
Owner

@KushGene commented on GitHub (Nov 25, 2026):

done: VK-SAMPLER-LOD-ORDER-AND-DERIV-ADJUST -> #2089 (https://github.com/ubiquitarianism/leonida/pull/2089) — runtime/src/gfx10_descriptors.h now clamps maxLod >= minLod (VUID-VkSamplerCreateInfo-maxLod-01973), guards NaN LODs/bias and non-positive max_lod_bias (VUID-VkSamplerCreateInfo-mipLodBias-01069), and guards kIntegerBorderPtr with !deriv_adjust when DERIV_ADJUST_EN repurposes WORD3. New regression tests in runtime/test/gfx10_descriptors_test.cpp failed on main and pass; 97/97 active Linux ctest targets and ps_ssharp + inverted-LOD vk_sampler_test pass on RX 6700 XT (RADV, Mesa 26.2.7). No game files. AI-assisted.

<!-- gh-comment-id:7172973113 --> @KushGene commented on GitHub (Nov 25, 2026): done: VK-SAMPLER-LOD-ORDER-AND-DERIV-ADJUST -> #2089 (https://github.com/ubiquitarianism/leonida/pull/2089) — `runtime/src/gfx10_descriptors.h` now clamps `maxLod >= minLod` (`VUID-VkSamplerCreateInfo-maxLod-01973`), guards NaN LODs/bias and non-positive `max_lod_bias` (`VUID-VkSamplerCreateInfo-mipLodBias-01069`), and guards `kIntegerBorderPtr` with `!deriv_adjust` when `DERIV_ADJUST_EN` repurposes WORD3. New regression tests in `runtime/test/gfx10_descriptors_test.cpp` failed on `main` and pass; 97/97 active Linux `ctest` targets and `ps_ssharp` + inverted-LOD `vk_sampler_test` pass on RX 6700 XT (RADV, Mesa 26.2.7). No game files. AI-assisted.
Author
Owner

@c0pperlane commented on GitHub (Nov 25, 2026):

done: RT-CAPTURE-LAST-FRAME -> #2090

<!-- gh-comment-id:7172981620 --> @c0pperlane commented on GitHub (Nov 25, 2026): done: RT-CAPTURE-LAST-FRAME -> #2090
Author
Owner

@thiefyzheng commented on GitHub (Nov 25, 2026):

finding: the #14 Open work rows SHADER-1264 and TEST-ATOMIC-GUARD look stale. On main db1a22d29 (CPU only, Linux, Python 3, no game files, no GPU) tests/semantic/test_exec_computed.py passes (2 tests OK) and tests/semantic/test_image_atomics_guard.py passes (6 tests OK), run from tests/semantic as python3 test_<name>.py. The rows describe both as red (2 cases / 47 subtests). Needs a maintainer to confirm against their CI and close the rows, or to say what environment still fails. Not measured here: SPIRV-Tools-dependent paths, GPU words.

AI-assisted (Claude Code).

<!-- gh-comment-id:7173008171 --> @thiefyzheng commented on GitHub (Nov 25, 2026): finding: the #14 Open work rows `SHADER-1264` and `TEST-ATOMIC-GUARD` look stale. On `main` `db1a22d29` (CPU only, Linux, Python 3, no game files, no GPU) `tests/semantic/test_exec_computed.py` passes (2 tests OK) and `tests/semantic/test_image_atomics_guard.py` passes (6 tests OK), run from `tests/semantic` as `python3 test_<name>.py`. The rows describe both as red (2 cases / 47 subtests). Needs a maintainer to confirm against their CI and close the rows, or to say what environment still fails. Not measured here: SPIRV-Tools-dependent paths, GPU words. AI-assisted (Claude Code).
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

claiming: SHADER-SOP2-MIXED-DATA-MASK — while reducing the readfirstlane case, I reproduced a separate failure on db1a22d with no VGPR mask copy. s_or_b32 combines an ordinary scalar word and only the current lane bit of a compare-produced mask when writing a data SGPR. Materialize the mask operand for scalar data results and test the result and SCC in synthetic workgroups. Preserve the existing optimized path for per-lane mask output. No game files. AI-assisted.

<!-- gh-comment-id:7173030094 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): claiming: SHADER-SOP2-MIXED-DATA-MASK — while reducing the readfirstlane case, I reproduced a separate failure on db1a22d with no VGPR mask copy. s_or_b32 combines an ordinary scalar word and only the current lane bit of a compare-produced mask when writing a data SGPR. Materialize the mask operand for scalar data results and test the result and SCC in synthetic workgroups. Preserve the existing optimized path for per-lane mask output. No game files. AI-assisted.
Author
Owner

@lixonik commented on GitHub (Nov 25, 2026):

done: RT-MAP-READBACK-RANGE -> #2091. The same synthetic Vulkan regression failed with the original empty-range readback and passed with the fix. The null and nonempty read ranges still copy the GPU texel. AI-assisted.

<!-- gh-comment-id:7173084095 --> @lixonik commented on GitHub (Nov 25, 2026): done: RT-MAP-READBACK-RANGE -> #2091. The same synthetic Vulkan regression failed with the original empty-range readback and passed with the fix. The null and nonempty read ranges still copy the GPU texel. AI-assisted.
Author
Owner

@OguzSoykan commented on GitHub (Nov 25, 2026):

claiming: TEST-FIRST-LOOK-NON-ASCII - tests/test_first_look_paths.py fails on native Windows when the user name is not ASCII: tempfile gives the 8.3 alias (C:\Users\OUZ~1\...) and Windows PowerShell 5.1 refuses Set-Location -LiteralPath into the short alias of a folder whose long name is not ASCII ("An object at the specified path C:\Users\OUZ1 does not exist"), while C:\PROGRA~1 works. Test-only fix: use the long name when it is not ASCII, keep the ASCII short alias (CI's RUNNER1) so the dry-run canonical-path check stays exercised. No game files, no GPU. AI-assisted (Claude Code).

<!-- gh-comment-id:7173090712 --> @OguzSoykan commented on GitHub (Nov 25, 2026): claiming: TEST-FIRST-LOOK-NON-ASCII - `tests/test_first_look_paths.py` fails on native Windows when the user name is not ASCII: `tempfile` gives the 8.3 alias (`C:\Users\OUZ~1\...`) and Windows PowerShell 5.1 refuses `Set-Location -LiteralPath` into the short alias of a folder whose long name is not ASCII ("An object at the specified path C:\Users\OUZ~1 does not exist"), while `C:\PROGRA~1` works. Test-only fix: use the long name when it is not ASCII, keep the ASCII short alias (CI's RUNNER~1) so the dry-run canonical-path check stays exercised. No game files, no GPU. AI-assisted (Claude Code).
Author
Owner

@OguzSoykan commented on GitHub (Nov 25, 2026):

done: TEST-FIRST-LOOK-NON-ASCII -> #2092

AI-assisted (Claude Code).

<!-- gh-comment-id:7173107698 --> @OguzSoykan commented on GitHub (Nov 25, 2026): done: TEST-FIRST-LOOK-NON-ASCII -> #2092 AI-assisted (Claude Code).
Author
Owner

@tiguan26 commented on GitHub (Nov 25, 2026):

claiming: RT-LIST-VALUES-STALL-SNAPSHOT - a one-time diagnostic for the post-story-load stall @OreoFR reported on #1723 (list-value counters frozen from ~240 s, 107 writes never land, the title polling fence mirrors). When the counters in d3d12_xs_list_values.h stop moving for 30 s with writes still unlanded, log once: each unlanded write group (queue, the written value it needs, the fence's completed value, how long it has waited), each open gate (address, memory now, reference), and, from QueueHolds, what each held queue's oldest operation waits for (fence, value, highest Signal submitted). That names the fence the stall is stuck on in the next boot log. Logging only, no behaviour change; it re-arms once the counters move. Tested with xs_proxy_mock_test (Windows cross-build under Wine) and the portable queue_holds test. No game files. AI-assisted (Claude).

<!-- gh-comment-id:7173123984 --> @tiguan26 commented on GitHub (Nov 25, 2026): claiming: RT-LIST-VALUES-STALL-SNAPSHOT - a one-time diagnostic for the post-story-load stall @OreoFR reported on #1723 (list-value counters frozen from ~240 s, 107 writes never land, the title polling fence mirrors). When the counters in d3d12_xs_list_values.h stop moving for 30 s with writes still unlanded, log once: each unlanded write group (queue, the `written` value it needs, the fence's completed value, how long it has waited), each open gate (address, memory now, reference), and, from QueueHolds, what each held queue's oldest operation waits for (fence, value, highest Signal submitted). That names the fence the stall is stuck on in the next boot log. Logging only, no behaviour change; it re-arms once the counters move. Tested with xs_proxy_mock_test (Windows cross-build under Wine) and the portable queue_holds test. No game files. AI-assisted (Claude).
Author
Owner

@Undefined3301 commented on GitHub (Nov 25, 2026):

claiming: FSPX-LIBRARY-STATE-FILL — fill fspx_state_sha256 in library/index.json from the .state sidecars, so pipeline-library compute PSOs are not stubbed.

On the retail boot (RTX 4080, NVIDIA 621.24) 934 distinct FSPX compute programs reached slot 67 with a kind-0 state and were refused (no translated compute shader ... entries 1). 923 of them have a translation and a <name>.state sidecar in library/index.json but no fspx_state_sha256 key, so program_candidates() filters every entry out by the state key. Adding the key from the sidecar (the state the translation was made with) drops the missing count to 11 and makes those 923 pipelines real; the first world-load submission then reaches the story transition instead of stalling one scene earlier.

The 923 entries are translations the current translator no longer reproduces (fall-through into undecodable words), so re-running library_shaders drops them instead of recording the key; the tool fills an existing index in place and is idempotent.

PR: tools/fill_fspx_library_states.py + tests/test_fill_fspx_library_states.py (standard library only, synthetic state files, no game data).

<!-- gh-comment-id:7173132672 --> @Undefined3301 commented on GitHub (Nov 25, 2026): claiming: FSPX-LIBRARY-STATE-FILL — fill `fspx_state_sha256` in `library/index.json` from the `.state` sidecars, so pipeline-library compute PSOs are not stubbed. On the retail boot (RTX 4080, NVIDIA 621.24) 934 distinct FSPX compute programs reached slot 67 with a kind-0 state and were refused (`no translated compute shader ... entries 1`). 923 of them have a translation and a `<name>.state` sidecar in `library/index.json` but no `fspx_state_sha256` key, so `program_candidates()` filters every entry out by the state key. Adding the key from the sidecar (the state the translation was made with) drops the missing count to 11 and makes those 923 pipelines real; the first world-load submission then reaches the story transition instead of stalling one scene earlier. The 923 entries are translations the current translator no longer reproduces (`fall-through into undecodable words`), so re-running `library_shaders` drops them instead of recording the key; the tool fills an existing index in place and is idempotent. PR: `tools/fill_fspx_library_states.py` + `tests/test_fill_fspx_library_states.py` (standard library only, synthetic state files, no game data).
Author
Owner

@jarvixaiassistant-glitch commented on GitHub (Nov 25, 2026):

claiming: SHADER-SPIRV-OPT-SROA — scalar-replace surviving non-escaped, statically indexed 1D Function-scope arrays (%vgpr[256], %sgpr[128]) into per-slot scalar OpVariables in tools/spirv_opt.py (tests/test_spirv_opt.py, docs/design.md). AI-assisted: yes (JARVIX).

<!-- gh-comment-id:7173149042 --> @jarvixaiassistant-glitch commented on GitHub (Nov 25, 2026): claiming: SHADER-SPIRV-OPT-SROA — scalar-replace surviving non-escaped, statically indexed 1D Function-scope arrays (`%vgpr[256]`, `%sgpr[128]`) into per-slot scalar `OpVariable`s in `tools/spirv_opt.py` (`tests/test_spirv_opt.py`, `docs/design.md`). AI-assisted: yes (JARVIX).
Author
Owner

@jarvixaiassistant-glitch commented on GitHub (Nov 25, 2026):

done: SHADER-SPIRV-OPT-SROA -> #2093

<!-- gh-comment-id:7173149628 --> @jarvixaiassistant-glitch commented on GitHub (Nov 25, 2026): done: SHADER-SPIRV-OPT-SROA -> #2093
Author
Owner

@Snooozs commented on GitHub (Nov 25, 2026):

@tiguan26 data for RT-LIST-VALUES-STALL-SNAPSHOT: the stall you are after is in my runs too, and the number of unlanded writes is the same in six of them: 113, whatever else I changed. RTX 5060 Ti 16 GB, NVIDIA 621.01, Windows 10, story load to world start, my builds on main b9320a118 (n33: 490f5b9ec). Last list values so far line of each run:

run recorded / landed pending gates held / met / timed out build or switch that differs
n18 10,664 / 10,551 113 40 / 0 / 40 older tree, host copies on, default wait
n27 17,531 / 17,418 113 40 / 19 / 1 VALUE_WAIT_TIMEOUT_MS=30000
n28 18,572 / 18,459 113 40 / 19 / 21 same, small compile budget
n29 17,820 / 17,707 113 40 / 19 / 12 same
n30 17,053 / 16,940 113 31 / 19 / 8 same
n33 18,194 / 18,081 113 40 / 18 / 5 #1957, default wait

Runs that ended in a device loss or early have other numbers (n16 136, n17 135, n22 144, n25 172, n31 171, n32 153). OreoFR's 107 was one machine and tree earlier, so the count may belong to a fixed set of writes rather than to timing. Two thread snapshots of a stalled run (n30) show the submit thread idle and the pump and the releaser waiting, so nothing is being submitted; the counters don't move although the game still presents no frame. I am glad to run your diagnostic build in this state as soon as it is up and send you the counts, and to run a second one with any switch you want. I have no need to claim anything around it.

@Undefined3301 a counter-example for FSPX-LIBRARY-STATE-FILL: my library has fspx_state_sha256 on all 2,683 entries and no .state sidecars, and the same runs log no no translated compute shader line at all (0 in n19, n25 and n33), yet they stop at the stall above. So a filled state key is not what separates these runs; it may still be what yours need.

@ImLele69 the hole behind the 1 MiB pool copies is in my finding above. Your p53 fault has the same two parts (type 6 and a READ_INVALID no object holds), but mine also came with LEONIDA_RT_AS=off, so please check yours against a 1 MiB extent end before taking the two as one. If one of us goes for a pool mapped as one range, @lixonik's #1920 edits the same function; I would build on it rather than beside it.

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

<!-- gh-comment-id:7173157386 --> @Snooozs commented on GitHub (Nov 25, 2026): @tiguan26 data for RT-LIST-VALUES-STALL-SNAPSHOT: the stall you are after is in my runs too, and **the number of unlanded writes is the same in six of them: 113**, whatever else I changed. RTX 5060 Ti 16 GB, NVIDIA 621.01, Windows 10, story load to world start, my builds on main b9320a118 (n33: 490f5b9ec). Last `list values so far` line of each run: | run | recorded / landed | pending | gates held / met / timed out | build or switch that differs | |---|---|---|---|---| | n18 | 10,664 / 10,551 | **113** | 40 / 0 / 40 | older tree, host copies on, default wait | | n27 | 17,531 / 17,418 | **113** | 40 / 19 / 1 | `VALUE_WAIT_TIMEOUT_MS=30000` | | n28 | 18,572 / 18,459 | **113** | 40 / 19 / 21 | same, small compile budget | | n29 | 17,820 / 17,707 | **113** | 40 / 19 / 12 | same | | n30 | 17,053 / 16,940 | **113** | 31 / 19 / 8 | same | | n33 | 18,194 / 18,081 | **113** | 40 / 18 / 5 | #1957, default wait | Runs that ended in a device loss or early have other numbers (n16 136, n17 135, n22 144, n25 172, n31 171, n32 153). OreoFR's 107 was one machine and tree earlier, so the count may belong to a fixed set of writes rather than to timing. Two thread snapshots of a stalled run (n30) show the submit thread idle and the pump and the releaser waiting, so nothing is being submitted; the counters don't move although the game still presents no frame. I am glad to run your diagnostic build in this state as soon as it is up and send you the counts, and to run a second one with any switch you want. I have no need to claim anything around it. @Undefined3301 a counter-example for FSPX-LIBRARY-STATE-FILL: my library has `fspx_state_sha256` on all 2,683 entries and no `.state` sidecars, and the same runs log no `no translated compute shader` line at all (0 in n19, n25 and n33), yet they stop at the stall above. So a filled state key is not what separates these runs; it may still be what yours need. @ImLele69 the hole behind the 1 MiB pool copies is in my finding above. Your p53 fault has the same two parts (type 6 and a READ_INVALID no object holds), but mine also came with `LEONIDA_RT_AS=off`, so please check yours against a 1 MiB extent end before taking the two as one. If one of us goes for a pool mapped as one range, @lixonik's #1920 edits the same function; I would build on it rather than beside it. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@qhukz13 commented on GitHub (Nov 25, 2026):

done: RT-GEOMETRY-VIEW-EVICTION -> #2094

<!-- gh-comment-id:7173164145 --> @qhukz13 commented on GitHub (Nov 25, 2026): done: RT-GEOMETRY-VIEW-EVICTION -> #2094
Author
Owner

@KushGene commented on GitHub (Nov 25, 2026):

claiming: RT-INDIRECT-CLAMP-DIRECT-STATS-AND-BARRIERS — optimize IndirectArgumentClamp::emit() in runtime/src/vulkan_indirect_clamp.h: write p.stats directly into BDA-enabled HostArea slots (eliminating per-call stats fills, the COMPUTE -> TRANSFER barrier, and 16-byte vkCmdCopyBuffer readbacks), zero the shared list_budget only once per list (owns_list_budget), and narrow the pre/post barriers (dropping VK_ACCESS_MEMORY_WRITE_BIT and replacing ALL_COMMANDS -> ALL_COMMANDS with COMPUTE_SHADER -> DRAW_INDIRECT | TRANSFER). Add mock-Vulkan barrier/command regression tests in runtime/test/indirect_clamp_safety_test.cpp that fail on main, and verify with GPU indirect_clamp_test + synthetic 3,533-call benchmark on RX 6700 XT (RADV). No game files. AI-assisted.

<!-- gh-comment-id:7173195231 --> @KushGene commented on GitHub (Nov 25, 2026): claiming: RT-INDIRECT-CLAMP-DIRECT-STATS-AND-BARRIERS — optimize `IndirectArgumentClamp::emit()` in `runtime/src/vulkan_indirect_clamp.h`: write `p.stats` directly into BDA-enabled `HostArea` slots (eliminating per-call stats fills, the `COMPUTE -> TRANSFER` barrier, and 16-byte `vkCmdCopyBuffer` readbacks), zero the shared `list_budget` only once per list (`owns_list_budget`), and narrow the pre/post barriers (dropping `VK_ACCESS_MEMORY_WRITE_BIT` and replacing `ALL_COMMANDS -> ALL_COMMANDS` with `COMPUTE_SHADER -> DRAW_INDIRECT | TRANSFER`). Add mock-Vulkan barrier/command regression tests in `runtime/test/indirect_clamp_safety_test.cpp` that fail on main, and verify with GPU `indirect_clamp_test` + synthetic 3,533-call benchmark on RX 6700 XT (RADV). No game files. AI-assisted.
Author
Owner

@Undefined3301 commented on GitHub (Nov 25, 2026):

claiming: SHADER-VSHARP-47-BOUND — a runtime V# offset must stay in [-2^47, 2^47), matching the translator's sign extension from bit 47.

\ sharp_address\ accepted a positive base below 2^48, but every translated shader reads the 48-bit base sign-extended from bit 47, so a base in [2^47, 2^48) becomes a device address 2^48 lower (a wild read). The patch adds
untime/src/vsharp_range.h\ (portable predicate), refuses that range in \encodable, and makes a slot-133 import that would need bit 47 above the arena take the arena shadow instead. CPU test
untime/test/vsharp_range_test.cpp; measured on RTX 4080 / NVIDIA 621.24: the related ctests pass and the retail boot with below-arena imports is unchanged.

PR: runtime V# range guard + test (small, no game files needed).

<!-- gh-comment-id:7173207581 --> @Undefined3301 commented on GitHub (Nov 25, 2026): claiming: SHADER-VSHARP-47-BOUND — a runtime V# offset must stay in [-2^47, 2^47), matching the translator's sign extension from bit 47. \ sharp_address\ accepted a positive base below 2^48, but every translated shader reads the 48-bit base sign-extended from bit 47, so a base in [2^47, 2^48) becomes a device address 2^48 lower (a wild read). The patch adds \ untime/src/vsharp_range.h\ (portable predicate), refuses that range in \encodable\, and makes a slot-133 import that would need bit 47 above the arena take the arena shadow instead. CPU test \ untime/test/vsharp_range_test.cpp\; measured on RTX 4080 / NVIDIA 621.24: the related ctests pass and the retail boot with below-arena imports is unchanged. PR: runtime V# range guard + test (small, no game files needed).
Author
Owner

@whoalin1 commented on GitHub (Nov 25, 2026):

claiming: BUILD-GLSLANG-NONASCII-RELATIVE-FIXTURE — alexandersato0830's still-unclaimed finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7172499920): standalone Windows glslang aborts compiling cs_null_descriptors.comp when the CMake build path is non-ASCII. I will first reproduce locally in a Unicode build directory, then test the smallest robust CMake fix (copy the fixture beside the output and invoke glslang with ASCII relative paths from the build directory, so no non-ASCII argv reaches glslang). No game files; CPU-only. AI-assisted with Devin.

<!-- gh-comment-id:7173272902 --> @whoalin1 commented on GitHub (Nov 25, 2026): claiming: BUILD-GLSLANG-NONASCII-RELATIVE-FIXTURE — alexandersato0830's still-unclaimed finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7172499920): standalone Windows glslang aborts compiling `cs_null_descriptors.comp` when the CMake build path is non-ASCII. I will first reproduce locally in a Unicode build directory, then test the smallest robust CMake fix (copy the fixture beside the output and invoke glslang with ASCII relative paths from the build directory, so no non-ASCII argv reaches glslang). No game files; CPU-only. AI-assisted with Devin.
Author
Owner

@CrazyThiago commented on GitHub (Nov 25, 2026):

finding: boot_trace crashes in text mode when a map event has no module name

Save these three lines as synthetic.jsonl and run python -I tools/boot_trace.py synthetic.jsonl.

{"kind":"map","module":"synthetic.dll","relocated":true}
{"kind":"map"}
{"kind":"exit","code":0}

The text formatter raises TypeError at tools/boot_trace.py:337. With --counts-only, the same input succeeds but counts the incomplete record as a second mapped module. Expected: count the incomplete record as a bad line and preserve the valid events.

Reproduced on Windows 11 with Python 3.12 using synthetic data. No game files or GPU required.AI-assisted.

<!-- gh-comment-id:7173307170 --> @CrazyThiago commented on GitHub (Nov 25, 2026): finding: `boot_trace` crashes in text mode when a map event has no module name Save these three lines as `synthetic.jsonl` and run `python -I tools/boot_trace.py synthetic.jsonl`. ```jsonl {"kind":"map","module":"synthetic.dll","relocated":true} {"kind":"map"} {"kind":"exit","code":0} ``` The text formatter raises `TypeError` at `tools/boot_trace.py:337`. With `--counts-only`, the same input succeeds but counts the incomplete record as a second mapped module. Expected: count the incomplete record as a bad line and preserve the valid events. Reproduced on Windows 11 with Python 3.12 using synthetic data. No game files or GPU required.AI-assisted.
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

claiming: RT-GAMESAVE-INTERRUPTED-COMMIT — pick up the synthetic XGameSave finding where exiting after one blob replacement reopens mixed generations. I will implement interruption recovery for offline saves and check repeatable Windows process-exit cases, preserving existing save folders and returned-error rollback. No game files. AI-assisted.

<!-- gh-comment-id:7173316071 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): claiming: RT-GAMESAVE-INTERRUPTED-COMMIT — pick up the synthetic XGameSave finding where exiting after one blob replacement reopens mixed generations. I will implement interruption recovery for offline saves and check repeatable Windows process-exit cases, preserving existing save folders and returned-error rollback. No game files. AI-assisted.
Author
Owner

@Undefined3301 commented on GitHub (Nov 25, 2026):

finding: 14 of the 15 silent ID3D12Device2::CreatePipelineState \E_INVALIDARG\ refusals in a retail boot are mesh PSOs with conservative rasterization on. \d3d12_vulkan_device.cpp:8869\ (main) requires \PRIMITIVE_TOPOLOGY == TRIANGLE, but a mesh pipeline has no input assembly and its stream need not set the subobject (topology reads 0). Allowing the mesh case creates all 14; the 15th is \E_NOTIMPL\ with topo 0, fill solid, RTV 41. Measured on RTX 4080 / NVIDIA 621.24 with the retail package; needs game files. (No separate PR while the open-PR limit applies.)

finding: the 4 ms console-fix budget is only safe with buffer V#s never deferred (\ ix_console_slots,
untime/shims/d3d12_vulkan_device.cpp). With #1849's budget nulling buffer slots, the first world frame's \lib_cs_01144\ read its loop bound from a nulled V# and lost the device. Fixing every buffer V# even past the budget and deferring only image T#s changed a 604 s boot from a device loss to 0 faults, 18 fps and 5,090 presents at t=186, and removed the 190 s world-load freeze (the 2.4 s/submission heap fixing became 10-70 ms). Needs the retail package.

finding: two FidelityFX FSPX programs, \md_fidelityfx_upscaler_xbox_03\ and _18, are the only 2 of 29 the translator refuses (\ all-through into undecodable words\ at 0x205c / 0x200c, gfx1030). The instruction before the gap is a \ _dot4c_i32_i8\ at 0x2054 / 0x2004; the next decoded instruction starts at 0x2060 / 0x2010, and the word between is skipped by the re-anchoring pass. The other 27 translate and pass \spirv-val. With 27/29 in the work folder the boot reaches the story transition (934 -> 2 missing compute PSOs); the title then waits on Xbox fence slot 12 (\d3d12_xs: fence slot 12 mirrors: 5 live; 0 waits ended on an event). Needs the retail DLL.

<!-- gh-comment-id:7173346254 --> @Undefined3301 commented on GitHub (Nov 25, 2026): finding: 14 of the 15 silent `ID3D12Device2::CreatePipelineState` \E_INVALIDARG\ refusals in a retail boot are **mesh PSOs with conservative rasterization on**. \d3d12_vulkan_device.cpp:8869\ (main) requires \PRIMITIVE_TOPOLOGY == TRIANGLE\, but a mesh pipeline has no input assembly and its stream need not set the subobject (topology reads 0). Allowing the mesh case creates all 14; the 15th is \E_NOTIMPL\ with topo 0, fill solid, RTV 41. Measured on RTX 4080 / NVIDIA 621.24 with the retail package; needs game files. (No separate PR while the open-PR limit applies.) finding: the 4 ms console-fix budget is only safe with **buffer V#s never deferred** (\ ix_console_slots\, \ untime/shims/d3d12_vulkan_device.cpp\). With #1849's budget nulling buffer slots, the first world frame's \lib_cs_01144\ read its loop bound from a nulled V# and lost the device. Fixing every buffer V# even past the budget and deferring only image T#s changed a 604 s boot from a device loss to 0 faults, 18 fps and 5,090 presents at t=186, and removed the 190 s world-load freeze (the 2.4 s/submission heap fixing became 10-70 ms). Needs the retail package. finding: two FidelityFX FSPX programs, \md_fidelityfx_upscaler_xbox_03\ and \_18\, are the only 2 of 29 the translator refuses (\ all-through into undecodable words\ at 0x205c / 0x200c, gfx1030). The instruction before the gap is a \ _dot4c_i32_i8\ at 0x2054 / 0x2004; the next decoded instruction starts at 0x2060 / 0x2010, and the word between is skipped by the re-anchoring pass. The other 27 translate and pass \spirv-val\. With 27/29 in the work folder the boot reaches the story transition (934 -> 2 missing compute PSOs); the title then waits on Xbox fence slot 12 (\d3d12_xs: fence slot 12 mirrors: 5 live; 0 waits ended on an event\). Needs the retail DLL.
Author
Owner

@Snooozs commented on GitHub (Nov 25, 2026):

claiming: RT-MESH-PSO-CONSERVATIVE-TOPOLOGY - @Undefined3301's finding above (7173346254): a mesh PSO with conservative rasterization on is refused because PrimitiveTopologyType must be TRIANGLE, which a mesh pipeline need not set. Taken because you say the open-PR limit keeps you from sending one; the finding is yours and the pull request will say so. If you would rather send it yourself, say so and I drop the claim. I see the same 15 CreatePipelineState refusals in my boots (n19 and n22, RTX 5060 Ti); I have not checked which PSOs they are. Plan: the topology rule only for pipelines with an input assembler, a mesh shader with line or point output still refused where the device can't rasterize those conservatively, and a test in d3d12_mesh_test.

Two more questions to your second finding: is the branch that gives 18 fps and 5,090 presents public (or could you push it)? I'd like to run it on the 5060 Ti as a second card, and the value-wait stall of these runs (113 unlanded writes) may be different in it.

For the two refused upscaler programs: #1662 (SHADER-DOT4-SEL-EXACT-ANCHOR) fixes the op_sel_hi of signed-byte dot products in the exact re-anchor and #1862 is about the same 29 programs; with #1862 my work folder has all 29. Worth a look before you dig into it.

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

<!-- gh-comment-id:7173391300 --> @Snooozs commented on GitHub (Nov 25, 2026): claiming: RT-MESH-PSO-CONSERVATIVE-TOPOLOGY - @Undefined3301's finding above ([7173346254](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7173346254)): a mesh PSO with conservative rasterization on is refused because `PrimitiveTopologyType` must be `TRIANGLE`, which a mesh pipeline need not set. Taken because you say the open-PR limit keeps you from sending one; the finding is yours and the pull request will say so. If you would rather send it yourself, say so and I drop the claim. I see the same 15 `CreatePipelineState` refusals in my boots (n19 and n22, RTX 5060 Ti); I have not checked which PSOs they are. Plan: the topology rule only for pipelines with an input assembler, a mesh shader with line or point output still refused where the device can't rasterize those conservatively, and a test in `d3d12_mesh_test`. Two more questions to your second finding: is the branch that gives 18 fps and 5,090 presents public (or could you push it)? I'd like to run it on the 5060 Ti as a second card, and the value-wait stall of these runs (113 unlanded writes) may be different in it. For the two refused upscaler programs: #1662 (SHADER-DOT4-SEL-EXACT-ANCHOR) fixes the `op_sel_hi` of signed-byte dot products in the exact re-anchor and #1862 is about the same 29 programs; with #1862 my work folder has all 29. Worth a look before you dig into it. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@azsekazvamdimitar commented on GitHub (Nov 25, 2026):

done: VERIFY-1887-1957-LINUX-WINE -> #1957 (report: https://github.com/ubiquitarianism/leonida/pull/1957#issuecomment-7172843083)

#1887 was merged before my report was ready, so its numbers go here instead of on the pull request. RTX 3090, NVIDIA 590.48.01, Debian 13, WineHQ 11.22 and GE-Proton11-14.

  • Suites on main b9320a118 with #1887 merged: native 97/97, console_heap_vsharp_slots passes natively, under WineHQ and under GE-Proton. The WineHQ and Proton failures are the same set as main's (a serial rerun clears the -j4 timeouts).
  • Retail boots under GE-Proton, same tree and settings for all five runs (main 71a769d7d with #1827, #1849, #1851, #1867, #1918, #429 and local logging, default value-wait timeout except where noted), ms per submission in the heaps phase from 120 s to 330 s:
run #1887 heaps, average (max)
1 no 151.5 (6,093)
2, LEONIDA_VALUE_WAIT_TIMEOUT_MS=30000 no 112.1 (5,281)
3, with #1957 no 117.3 (2,911)
4 yes 85.5 (3,339)
5 yes 67.7 (5,192)

What is left of the heap time with #1887 is almost all in fixing copied slots (81.7 of 83.0 ms in the last heap line of run 4, 567 slots a submission). Both runs with #1887 lost the device at about 330 and 344 s on a READ_INVALID at an address no object holds; runs of the same tree without it lost the device the same way at other times, so I do not count that against it.

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

<!-- gh-comment-id:7173403393 --> @azsekazvamdimitar commented on GitHub (Nov 25, 2026): done: VERIFY-1887-1957-LINUX-WINE -> #1957 (report: https://github.com/ubiquitarianism/leonida/pull/1957#issuecomment-7172843083) #1887 was merged before my report was ready, so its numbers go here instead of on the pull request. RTX 3090, NVIDIA 590.48.01, Debian 13, WineHQ 11.22 and GE-Proton11-14. - Suites on main b9320a118 with #1887 merged: native 97/97, `console_heap_vsharp_slots` passes natively, under WineHQ and under GE-Proton. The WineHQ and Proton failures are the same set as main's (a serial rerun clears the `-j4` timeouts). - Retail boots under GE-Proton, same tree and settings for all five runs (main 71a769d7d with #1827, #1849, #1851, #1867, #1918, #429 and local logging, default value-wait timeout except where noted), ms per submission in the `heaps` phase from 120 s to 330 s: | run | #1887 | heaps, average (max) | |---|---|---| | 1 | no | 151.5 (6,093) | | 2, `LEONIDA_VALUE_WAIT_TIMEOUT_MS=30000` | no | 112.1 (5,281) | | 3, with #1957 | no | 117.3 (2,911) | | 4 | yes | 85.5 (3,339) | | 5 | yes | 67.7 (5,192) | What is left of the heap time with #1887 is almost all in `fixing copied slots` (81.7 of 83.0 ms in the last heap line of run 4, 567 slots a submission). Both runs with #1887 lost the device at about 330 and 344 s on a READ_INVALID at an address no object holds; runs of the same tree without it lost the device the same way at other times, so I do not count that against it. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@Tauwni commented on GitHub (Nov 25, 2026):

claiming: BUILD-NULL-DESCRIPTOR-GENERATED-DIR - since ba626820e a fresh macOS/Linux build fails at vk_null_descriptor_test: its add_custom_command (runtime/CMakeLists.txt) writes generated/cs_null_descriptors.spv without creating generated/ ("Failed to open file"). I will add ${CMAKE_COMMAND} -E make_directory before glslangValidator. Build only, no game files. AI-assisted.

<!-- gh-comment-id:7173420976 --> @Tauwni commented on GitHub (Nov 25, 2026): claiming: BUILD-NULL-DESCRIPTOR-GENERATED-DIR - since `ba626820e` a fresh macOS/Linux build fails at `vk_null_descriptor_test`: its `add_custom_command` (runtime/CMakeLists.txt) writes `generated/cs_null_descriptors.spv` without creating `generated/` ("Failed to open file"). I will add `${CMAKE_COMMAND} -E make_directory` before `glslangValidator`. Build only, no game files. AI-assisted.
Author
Owner

@j-weiner commented on GitHub (Nov 25, 2026):

claiming: BOOT-TRACE-MISSING-MODULE-NAME — validate map events with missing or invalid module names as malformed records, so text formatting cannot crash and counts-only does not count them; add synthetic regressions in tests/test_boot_trace.py. No game files or GPU.

<!-- gh-comment-id:7173435832 --> @j-weiner commented on GitHub (Nov 25, 2026): claiming: BOOT-TRACE-MISSING-MODULE-NAME — validate map events with missing or invalid module names as malformed records, so text formatting cannot crash and counts-only does not count them; add synthetic regressions in tests/test_boot_trace.py. No game files or GPU.
Author
Owner

@Tauwni commented on GitHub (Nov 25, 2026):

done: BUILD-NULL-DESCRIPTOR-GENERATED-DIR -> #2096

<!-- gh-comment-id:7173437668 --> @Tauwni commented on GitHub (Nov 25, 2026): done: BUILD-NULL-DESCRIPTOR-GENERATED-DIR -> #2096
Author
Owner

@Tauwni commented on GitHub (Nov 25, 2026):

claiming: TOOL-STAGE-TIMELINE-STDOUT - tests/test_tool_stdout_encoding.py lists tools/stage_timeline.py (from ba626820e); #1673 and #1837 cover the other two tools it lists. I will add the guarded sys.stdout.reconfigure(errors="replace") the other tools use. No game files. AI-assisted.

<!-- gh-comment-id:7173443163 --> @Tauwni commented on GitHub (Nov 25, 2026): claiming: TOOL-STAGE-TIMELINE-STDOUT - `tests/test_tool_stdout_encoding.py` lists `tools/stage_timeline.py` (from `ba626820e`); #1673 and #1837 cover the other two tools it lists. I will add the guarded `sys.stdout.reconfigure(errors="replace")` the other tools use. No game files. AI-assisted.
Author
Owner

@j-weiner commented on GitHub (Nov 25, 2026):

releasing: BOOT-TRACE-MISSING-MODULE-NAME — implementation and synthetic regression are complete and pushed to j-weiner/leonida:fix/boot-trace-missing-module-name (commit 997480f9a), but GitHub denied CreatePullRequest for this account on the upstream repo. No PR was opened. The change remains on the fork branch; the claim is released until PR creation is available. Tests passed: 35 boot_trace tests, compileall, and check_no_game_data. AI-assisted.

<!-- gh-comment-id:7173476887 --> @j-weiner commented on GitHub (Nov 25, 2026): releasing: BOOT-TRACE-MISSING-MODULE-NAME — implementation and synthetic regression are complete and pushed to `j-weiner/leonida:fix/boot-trace-missing-module-name` (commit `997480f9a`), but GitHub denied `CreatePullRequest` for this account on the upstream repo. No PR was opened. The change remains on the fork branch; the claim is released until PR creation is available. Tests passed: 35 boot_trace tests, compileall, and check_no_game_data. AI-assisted.
Author
Owner

@c0pperlane commented on GitHub (Nov 25, 2026):

claiming:

  • OLD-5076 — carry old-pr/5076 (draft #39, ray3242) onto current main: gameinput Next/Previous/CurrentReading return only readings that carry the requested kind (RT-370)
  • OLD-9852 — carry old-pr/9852 (draft #118, haayden): CheckFeatureSupport refuses shader models past 6.9 and sets CAST_WITHIN_BIT_LAYOUT on the TYPELESS-family formats as the host does, with a host parity test
  • OLD-9869 — carry old-pr/9869 (draft #138, Amitoxx): a failed present names its VkResult, and a run of the same failure is logged at its 1st, 10th, 100th, ... with a closing count
  • OLD-9772 — carry old-pr/9772 (draft #50, tcurtsinger): vk_sandbox leaves oversized sheets out of the ground-grid bounds (BUILD-3983)
  • OLD-9844 — carry old-pr/9844 (draft #111, imranakki): d3d12_method_variants reports the castable-list cases as not comparable on a host without RelaxedFormatCasting
  • OLD-9780 — carry old-pr/9780 (draft #58, pes7): replay_cpu_bench reuses one views block per steady-state draw, as the layer does
  • OLD-9984 — carry old-pr/9984 (draft #250, AbhiMa09): remove the verbatim duplicate "material → effect records" subsection in docs/models.md
  • OLD-9785 — carry old-pr/9785 (draft #62, Voltingg): vk_xdxr_build_test prints the postbuild and header sizes when the compacted-size check fails (TEST-2033)
  • DOC-D3D12-VULKAN-STALE-STATUS — docs/d3d12_vulkan.md still lists buffer SRVs, pipeline streams and mesh shaders as missing, says WriteBufferImmediate is refused for lack of buffer VAs, and §4.6 contradicts the D3D-399 paragraph above it; bring those lines in line with the code (stays clear of #381's lines)
  • RT-BINDLESS-DEPTH-READ-SRV-LAYOUT — a depth texture in DEPTH_READ|*_SHADER_RESOURCE stays in DEPTH_STENCIL_READ_ONLY_OPTIMAL while its bindless descriptor says GENERAL (runtime/src/vulkan_replay.h image_layout(), d3d12_vulkan_device.cpp sampled_in_general); docs/d3d12_vulkan.md §3.4 lists it as not handled
  • RT-D16S8-UAV-D24-STORAGE — teach enable_depth_stencil_uav the D24S8-made form of console D16S8 (format 118), so NVIDIA keeps those UAVs (the follow-up noted in docs/d3d12_vulkan.md after RT-D16S8-UAV-NVIDIA-FALLBACK); round trip in xbox_depth_storage_test

The OLD- carries keep the original authors' commits. No game files needed. AI-assisted.

<!-- gh-comment-id:7173484529 --> @c0pperlane commented on GitHub (Nov 25, 2026): claiming: - OLD-5076 — carry old-pr/5076 (draft #39, ray3242) onto current main: gameinput Next/Previous/CurrentReading return only readings that carry the requested kind (RT-370) - OLD-9852 — carry old-pr/9852 (draft #118, haayden): CheckFeatureSupport refuses shader models past 6.9 and sets CAST_WITHIN_BIT_LAYOUT on the TYPELESS-family formats as the host does, with a host parity test - OLD-9869 — carry old-pr/9869 (draft #138, Amitoxx): a failed present names its VkResult, and a run of the same failure is logged at its 1st, 10th, 100th, ... with a closing count - OLD-9772 — carry old-pr/9772 (draft #50, tcurtsinger): vk_sandbox leaves oversized sheets out of the ground-grid bounds (BUILD-3983) - OLD-9844 — carry old-pr/9844 (draft #111, imranakki): d3d12_method_variants reports the castable-list cases as not comparable on a host without RelaxedFormatCasting - OLD-9780 — carry old-pr/9780 (draft #58, pes7): replay_cpu_bench reuses one views block per steady-state draw, as the layer does - OLD-9984 — carry old-pr/9984 (draft #250, AbhiMa09): remove the verbatim duplicate "material → effect records" subsection in docs/models.md - OLD-9785 — carry old-pr/9785 (draft #62, Voltingg): vk_xdxr_build_test prints the postbuild and header sizes when the compacted-size check fails (TEST-2033) - DOC-D3D12-VULKAN-STALE-STATUS — docs/d3d12_vulkan.md still lists buffer SRVs, pipeline streams and mesh shaders as missing, says WriteBufferImmediate is refused for lack of buffer VAs, and §4.6 contradicts the D3D-399 paragraph above it; bring those lines in line with the code (stays clear of #381's lines) - RT-BINDLESS-DEPTH-READ-SRV-LAYOUT — a depth texture in DEPTH_READ|*_SHADER_RESOURCE stays in DEPTH_STENCIL_READ_ONLY_OPTIMAL while its bindless descriptor says GENERAL (runtime/src/vulkan_replay.h image_layout(), d3d12_vulkan_device.cpp sampled_in_general); docs/d3d12_vulkan.md §3.4 lists it as not handled - RT-D16S8-UAV-D24-STORAGE — teach enable_depth_stencil_uav the D24S8-made form of console D16S8 (format 118), so NVIDIA keeps those UAVs (the follow-up noted in docs/d3d12_vulkan.md after RT-D16S8-UAV-NVIDIA-FALLBACK); round trip in xbox_depth_storage_test The OLD- carries keep the original authors' commits. No game files needed. AI-assisted.
Author
Owner

@vinceychu commented on GitHub (Nov 25, 2026):

done: TEST-RUN-GPU-TESTS-VERSIONED-LLVM-MC -> #1978
done: GPU-RTX5090-LINUX -> #1979
done: GPU-GB10 -> #1980
done: GPU-APPLE-M6 -> #1981

<!-- gh-comment-id:7173512812 --> @vinceychu commented on GitHub (Nov 25, 2026): done: TEST-RUN-GPU-TESTS-VERSIONED-LLVM-MC -> #1978 done: GPU-RTX5090-LINUX -> #1979 done: GPU-GB10 -> #1980 done: GPU-APPLE-M6 -> #1981
Author
Owner

@Snooozs commented on GitHub (Nov 25, 2026):

done: RT-MESH-PSO-CONSERVATIVE-TOPOLOGY -> #2097, @Undefined3301's finding. Test fails without the change and passes with it on an RTX 5060 Ti; the retail boot is not shown. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7173514313 --> @Snooozs commented on GitHub (Nov 25, 2026): done: RT-MESH-PSO-CONSERVATIVE-TOPOLOGY -> #2097, @Undefined3301's finding. Test fails without the change and passes with it on an RTX 5060 Ti; the retail boot is not shown. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@Undefined3301 commented on GitHub (Nov 25, 2026):

finding: the world-transition device loss reads a constant title VA, heap_base + 0x34ab42000, in every run (fault addresses 0x69e168000/0x67939f000/0x65d572000/0x5... minus that run's arena base; type=1, precision=4096). It is not in any title_memory_ranges entry (all 0x25... here), not in the one stream-pool pair (gpu 0x254ddb80000, cpu 0x250ddb80000), not an image key (next_image_address starts at 2^32 and steps 256 per image; hundreds of thousands of images reach only ~0x11...), and not an XMem physical page number (page numbers are slot*16, 0x34ab42 is not a multiple of 16). The same value survives 923 filled library PSOs, 27/29 FidelityFX PSOs, a 4 ms fix budget, per-submission mesh waits and stream-pool V# mapping, so it is title data, not a race. Likely the title's own 16 GiB GPU VA (placed-resource GPU address) that the layer does not track: CreatePlacedResourceX imports list CPU addresses 0x20b5..., while the V# names 0x34ab42000. Needs the retail package and a memory dump of the title's GPU VA map to confirm. In fence1 a device loss at t=203 follows it; afterwards three fence mirrors sit at completed=1 while the title waits for 2 (fence slot 12 (value 2 ...)) - the fence wait is a symptom of the loss, not its cause.

<!-- gh-comment-id:7173563317 --> @Undefined3301 commented on GitHub (Nov 25, 2026): finding: the world-transition device loss reads a **constant title VA, `heap_base + 0x34ab42000`**, in every run (fault addresses 0x69e168000/0x67939f000/0x65d572000/0x5... minus that run's arena base; type=1, precision=4096). It is not in any `title_memory_ranges` entry (all 0x25... here), not in the one stream-pool pair (gpu 0x254ddb80000, cpu 0x250ddb80000), not an image key (`next_image_address` starts at 2^32 and steps 256 per image; hundreds of thousands of images reach only ~0x11...), and not an XMem physical page number (page numbers are slot*16, 0x34ab42 is not a multiple of 16). The same value survives 923 filled library PSOs, 27/29 FidelityFX PSOs, a 4 ms fix budget, per-submission mesh waits and stream-pool V# mapping, so it is title data, not a race. Likely the title's own 16 GiB GPU VA (placed-resource GPU address) that the layer does not track: `CreatePlacedResourceX` imports list CPU addresses 0x20b5..., while the V# names 0x34ab42000. Needs the retail package and a memory dump of the title's GPU VA map to confirm. In fence1 a device loss at t=203 follows it; afterwards three fence mirrors sit at completed=1 while the title waits for 2 (`fence slot 12 (value 2 ...)`) - the fence wait is a symptom of the loss, not its cause.
Author
Owner

@Snooozs commented on GitHub (Nov 25, 2026):

@Undefined3301 a data point to your constant heap_base + 0x34ab42000: on my card it is not constant, so I think these are two different reads. RTX 5060 Ti 16 GB, NVIDIA 621.01, LEONIDA_GEOMETRY_MB=2048, arena at 0x2fedd0000 in all four:

run READ_INVALID (type 1, precision 4096) minus the arena base
n22 0x2b9711000
n25 0x2cdf76000
n31 0x2cbe93000
n32 0x2c0160000

For n31 and n32 my local block report put the address in the 64 KiB hole behind a 4 MiB geometry block, 0x23000 and 0x0 bytes past a 1 MiB copy (7172872857; corrected there, since other runs with the same settings did not fault). So with geometry copies on, the hole is the candidate, and it moves with the allocations. Did your runs have LEONIDA_GEOMETRY_MB set? If it was off, your constant is what is left without the copies, and it would fit your title-VA reading.

The other half of my runs (n27 to n30, n33) end in the value stall without a fault, with 113 unlanded writes each, so a fence mirror that never reaches its value also shows up here without any loss before it. That is one data point against reading the fence wait only as a symptom, on this machine. Your one-word description of the three mirrors (completed=1, title waits for 2) is what I'd like to compare: which fences, if you can name them from the diagnostic? I will run tiguan26's build as soon as it is up and post the same.

#2097 is your mesh PSO finding; say if anything in it should read differently. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7173572356 --> @Snooozs commented on GitHub (Nov 25, 2026): @Undefined3301 a data point to your constant `heap_base + 0x34ab42000`: on my card it is **not constant**, so I think these are two different reads. RTX 5060 Ti 16 GB, NVIDIA 621.01, `LEONIDA_GEOMETRY_MB=2048`, arena at 0x2fedd0000 in all four: | run | READ_INVALID (type 1, precision 4096) minus the arena base | |---|---| | n22 | 0x2b9711000 | | n25 | 0x2cdf76000 | | n31 | 0x2cbe93000 | | n32 | 0x2c0160000 | For n31 and n32 my local block report put the address in the 64 KiB hole behind a 4 MiB geometry block, 0x23000 and 0x0 bytes past a 1 MiB copy ([7172872857](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7172872857); corrected there, since other runs with the same settings did not fault). So with geometry copies on, the hole is the candidate, and it moves with the allocations. Did your runs have `LEONIDA_GEOMETRY_MB` set? If it was off, your constant is what is left without the copies, and it would fit your title-VA reading. The other half of my runs (n27 to n30, n33) end in the value stall without a fault, with 113 unlanded writes each, so a fence mirror that never reaches its value also shows up here without any loss before it. That is one data point against reading the fence wait only as a symptom, on this machine. Your one-word description of the three mirrors (completed=1, title waits for 2) is what I'd like to compare: which fences, if you can name them from the diagnostic? I will run tiguan26's build as soon as it is up and post the same. #2097 is your mesh PSO finding; say if anything in it should read differently. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@alexandersato0830 commented on GitHub (Nov 25, 2026):

status: SHADER-SOP2-MIXED-DATA-MASK — tested branch 5d14a75. The full semantic suite passed 6,315 tests. An RTX 4080 returned the expected result and SCC on all 100 lanes across four synthetic dispatches. The upstream PR form reports that this account has reached the repository's open-PR limit.

status: RT-GAMESAVE-INTERRUPTED-COMMIT — tested branch c067eb9. On Windows, five of the 91 save checks failed on main with the same synthetic process-exit points. All 91 and all eight XGameRuntime CTests passed with the fix. The branch overlaps the quota hunk in #1141. Upstream submission is blocked by the same open-PR limit.

releasing: SHADER-READFIRSTLANE-MIXED-PROVENANCE — reproduced the loss of high bits in partial workgroups on #1397. The independent SOP2 patch above fixes combining a full scalar with a mask word. The vector case still needs provenance or a full-word representation through EXEC-masked VGPR writes and scalar control-flow joins. No patch submitted for that claim.

AI-assisted. Synthetic source and fixtures only.

<!-- gh-comment-id:7173580935 --> @alexandersato0830 commented on GitHub (Nov 25, 2026): status: SHADER-SOP2-MIXED-DATA-MASK — tested branch [5d14a75](https://github.com/ubiquitarianism/leonida/compare/main...alexandersato0830:codex/sop2-mixed-data-mask). The full semantic suite passed 6,315 tests. An RTX 4080 returned the expected result and SCC on all 100 lanes across four synthetic dispatches. The upstream PR form reports that this account has reached the repository's open-PR limit. status: RT-GAMESAVE-INTERRUPTED-COMMIT — tested branch [c067eb9](https://github.com/ubiquitarianism/leonida/compare/main...alexandersato0830:codex/gamesave-interrupted-commit). On Windows, five of the 91 save checks failed on main with the same synthetic process-exit points. All 91 and all eight XGameRuntime CTests passed with the fix. The branch overlaps the quota hunk in #1141. Upstream submission is blocked by the same open-PR limit. releasing: SHADER-READFIRSTLANE-MIXED-PROVENANCE — reproduced the loss of high bits in partial workgroups on #1397. The independent SOP2 patch above fixes combining a full scalar with a mask word. The vector case still needs provenance or a full-word representation through EXEC-masked VGPR writes and scalar control-flow joins. No patch submitted for that claim. AI-assisted. Synthetic source and fixtures only.
Author
Owner

@CrazyThiago commented on GitHub (Nov 25, 2026):

finding: Gallery thumbnails for uppercase .DDS files return 404 on case-sensitive filesystems

Add a valid upper.DDS to the texture catalog without a matching PNG. The catalog lists the texture, but /textures/upper.png returns 404 because the fallback looks for upper.dds. The direct preview at /api/dds/upper.DDS returns a valid PNG with status 200. Expected: the thumbnail also renders.

Reproduced with a synthetic 1×1 DDS and case-sensitive file lookup simulated on Windows. The lowercase control returns 200. No game files or GPU required. AI-assisted.

<!-- gh-comment-id:7173600759 --> @CrazyThiago commented on GitHub (Nov 25, 2026): finding: Gallery thumbnails for uppercase `.DDS` files return 404 on case-sensitive filesystems Add a valid `upper.DDS` to the texture catalog without a matching PNG. The catalog lists the texture, but `/textures/upper.png` returns 404 because the fallback looks for `upper.dds`. The direct preview at `/api/dds/upper.DDS` returns a valid PNG with status 200. Expected: the thumbnail also renders. Reproduced with a synthetic 1×1 DDS and case-sensitive file lookup simulated on Windows. The lowercase control returns 200. No game files or GPU required. AI-assisted.
Author
Owner

@CrazyThiago commented on GitHub (Nov 25, 2026):

finding: Studio keeps the failed model selected while displaying the previous model

Load model A successfully. Select model B and make its download fail. After the error, B remains highlighted while the viewport and statistics still show A. Redrawing the list preserves the mismatch. Expected: the selected row reflects the model shown after the error.

Reproduced with two synthetic models in the Studio test harness. No game files or GPU required. AI-assisted. [Selection code](github.com/ubiquitarianism/leonida@747809e70e/viewer/studio.html (L905-L914)) · [Error handler](github.com/ubiquitarianism/leonida@747809e70e/viewer/studio.html (L784-L789))

<!-- gh-comment-id:7173608370 --> @CrazyThiago commented on GitHub (Nov 25, 2026): finding: Studio keeps the failed model selected while displaying the previous model Load model A successfully. Select model B and make its download fail. After the error, B remains highlighted while the viewport and statistics still show A. Redrawing the list preserves the mismatch. Expected: the selected row reflects the model shown after the error. Reproduced with two synthetic models in the Studio test harness. No game files or GPU required. AI-assisted. [[Selection code](https://github.com/ubiquitarianism/leonida/blob/747809e70e783ae4bf12b7087ab5274c4e1a7bf6/viewer/studio.html#L905-L914)](https://github.com/ubiquitarianism/leonida/blob/747809e70e783ae4bf12b7087ab5274c4e1a7bf6/viewer/studio.html#L905-L914) · [[Error handler](https://github.com/ubiquitarianism/leonida/blob/747809e70e783ae4bf12b7087ab5274c4e1a7bf6/viewer/studio.html#L784-L789)](https://github.com/ubiquitarianism/leonida/blob/747809e70e783ae4bf12b7087ab5274c4e1a7bf6/viewer/studio.html#L784-L789)
Author
Owner

@Moriz82 commented on GitHub (Nov 25, 2026):

claiming: RT-POST-LOAD-GPU-MEMORY — follow-up to #1723 for the post-load runtime. The draft integrates the dedicated buffer fallback when the arena fills, console descriptor updates, and pipeline cache journaling on current main. It will distinguish tests on the public commit from earlier Proton boot results.

<!-- gh-comment-id:7173693934 --> @Moriz82 commented on GitHub (Nov 25, 2026): claiming: RT-POST-LOAD-GPU-MEMORY — follow-up to #1723 for the post-load runtime. The draft integrates the dedicated buffer fallback when the arena fills, console descriptor updates, and pipeline cache journaling on current main. It will distinguish tests on the public commit from earlier Proton boot results.
Author
Owner

@qhukz13 commented on GitHub (Nov 25, 2026):

@Snooozs on your geometry over-read finding (7172872857): heads-up so the two changes don't collide. #2094 (RT-GEOMETRY-VIEW-EVICTION) changes the same storage: TitleBufferWindows now keeps coalesced free ranges per block, destroys a block when its last range is freed, and keeps one empty 4 MiB block as a spare; GeometryViews retires a view when its title range is released and reuses the freed range after the GPU is done with it.

Two things that touch your analysis:

  • Copies are packed one after another inside a block (on main as well), so a read that runs off the end of a 1 MiB pool copy mostly lands in the next copy and reads wrong geometry without a fault; only a copy that ends at a block's end faults. So the READ_INVALIDs are probably the visible part of more over-reads, which fits your point that larger blocks only hide it. #2094 does not change that: it only reuses freed ranges inside the same blocks. A contiguous pool mapping fixes it either way.
  • LEONIDA_GEOMETRY_MB=0 (default) is unchanged by #2094, and so is placement while under the cap, so your n22-n33 numbers still describe main.

Whichever lands first, I'll rebase the other side if you like. I can also run your pool mapping on a GTX 1050 Ti (Pascal, 4 GB, no Resizable BAR, Windows 10, NVIDIA 582.66) against geometry_views_test and d3d12_geometry_views; the latter now reaches the geometry code on Windows 10 with #2059.

AI-assisted (Claude Code).

<!-- gh-comment-id:7173694404 --> @qhukz13 commented on GitHub (Nov 25, 2026): @Snooozs on your geometry over-read finding ([7172872857](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7172872857)): heads-up so the two changes don't collide. #2094 (RT-GEOMETRY-VIEW-EVICTION) changes the same storage: `TitleBufferWindows` now keeps coalesced free ranges per block, destroys a block when its last range is freed, and keeps one empty 4 MiB block as a spare; `GeometryViews` retires a view when its title range is released and reuses the freed range after the GPU is done with it. Two things that touch your analysis: - Copies are packed one after another inside a block (on main as well), so a read that runs off the end of a 1 MiB pool copy mostly lands in the next copy and reads wrong geometry without a fault; only a copy that ends at a block's end faults. So the READ_INVALIDs are probably the visible part of more over-reads, which fits your point that larger blocks only hide it. #2094 does not change that: it only reuses freed ranges inside the same blocks. A contiguous pool mapping fixes it either way. - `LEONIDA_GEOMETRY_MB=0` (default) is unchanged by #2094, and so is placement while under the cap, so your n22-n33 numbers still describe main. Whichever lands first, I'll rebase the other side if you like. I can also run your pool mapping on a GTX 1050 Ti (Pascal, 4 GB, no Resizable BAR, Windows 10, NVIDIA 582.66) against `geometry_views_test` and `d3d12_geometry_views`; the latter now reaches the geometry code on Windows 10 with #2059. AI-assisted (Claude Code).
Author
Owner

@c0pperlane commented on GitHub (Nov 25, 2026):

note: OLD-9984 has no pull request yet (this done line was posted by mistake before the PR existed); the branch is c0pperlane:old-9984.

<!-- gh-comment-id:7173696530 --> @c0pperlane commented on GitHub (Nov 25, 2026): note: OLD-9984 has no pull request yet (this done line was posted by mistake before the PR existed); the branch is c0pperlane:old-9984.
Author
Owner

@ImLele69 commented on GitHub (Nov 25, 2026):

releasing: BOOT-TURING-WINE (claimed in #14). I am pausing my Leonida work, so the Turing/Wine boot without Resizable BAR is free for anyone. Where it stands:

  • p55 = the p54 stack and switches (#1608 comment 7171895966) with LEONIDA_GEOMETRY_MB=3072, stopped by hand at 33 min. No device loss. Geometry 2,850 of 3,072 MiB with no refusals, title windows steady at 25-28 (in p54 they went to 1,800 once its 2048 MiB cap filled). About 30 min in, the opening credits are on screen over a black background: the cinematic advances, the 3D scene under it stays black. 2.8 submissions/s, 0 complete frames/s. On 16 GB of RAM: about 400 MB free, 16 GB of swap in use.
  • Still open from p54: whether the loss with acceleration structures on comes from the builds or from the traversal.
  • Not run: the same stack rebased on main e48ff0374 (with #1950) plus #2032, shader writes reported back into title memory.

My open PRs stay open as they are: #646, #1472, #1681, #1984.

AI-assisted (Claude Code).

<!-- gh-comment-id:7173700589 --> @ImLele69 commented on GitHub (Nov 25, 2026): releasing: BOOT-TURING-WINE (claimed in #14). I am pausing my Leonida work, so the Turing/Wine boot without Resizable BAR is free for anyone. Where it stands: - **p55** = the p54 stack and switches (#1608 comment 7171895966) with `LEONIDA_GEOMETRY_MB=3072`, stopped by hand at 33 min. No device loss. Geometry 2,850 of 3,072 MiB with no refusals, title windows steady at 25-28 (in p54 they went to 1,800 once its 2048 MiB cap filled). About 30 min in, the opening credits are on screen over a black background: the cinematic advances, the 3D scene under it stays black. 2.8 submissions/s, 0 complete frames/s. On 16 GB of RAM: about 400 MB free, 16 GB of swap in use. - Still open from p54: whether the loss with acceleration structures on comes from the builds or from the traversal. - Not run: the same stack rebased on main `e48ff0374` (with #1950) plus #2032, shader writes reported back into title memory. My open PRs stay open as they are: #646, #1472, #1681, #1984. AI-assisted (Claude Code).
Author
Owner

@Snooozs commented on GitHub (Nov 25, 2026):

claiming: RT-STREAM-POOL-CONTIGUOUS - the stream-pool half of my finding 7172872857: with LEONIDA_GEOMETRY_MB a pool's extents (1 MiB at most) get unrelated places in GPU memory, so a root view or raw pointer that runs past one reads another copy or a hole.

@qhukz13 thank you, that is exactly the correction my text needed: copies are packed one after another, so most over-reads land in the next copy and only one at a block's end faults. I have put it into the claim: the faults are the visible part, and what I have to show is the wrong data, not only the missing fault. I take your offer for the 1050 Ti test, and I'd rather fit around #2094 than the other way round.

Plan, so it stays out of your storage:

  • a separate allocator in its own header (runtime/shims/d3d12_pool_sparse.h): per stream pool one sparse buffer with a device address, the size of the pool; an extent binds 64 KiB pages of host-visible memory at its own offset, so neighbouring extents are neighbours on the GPU. Unbound pages read zero instead of faulting (residencyNonResidentStrict where the device has it; else the extent path of today). Nothing in TitleBufferWindows changes.
  • GeometryViews only learns to take a place from a caller, so the views, the refresh and #2094's retire path work on it as on any copy. I'll build it on top of #2094 if it lands first, otherwise rebase.
  • resolve_pool_memory keeps its rule B and the alias pair; @lixonik's #1920 edits it (gaps on both sides), so I'll stack on that too.
  • Not for devices without sparse binding on host-visible memory, or without a Resizable BAR where the pages would not be visible: there the code of today runs (your 1050 Ti is the case to check). Off by default until a boot shows it.
  • Tests: two extents requested in either order are contiguous and hold the title's bytes across the boundary; unbound neighbours read zero; the pool's copy follows writes.

Stop me if this collides with something you already have. ImLele69 released BOOT-TURING-WINE; I can't run Wine here, so someone with a Linux/Wine machine might take it.

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

<!-- gh-comment-id:7173729117 --> @Snooozs commented on GitHub (Nov 25, 2026): claiming: RT-STREAM-POOL-CONTIGUOUS - the stream-pool half of my finding [7172872857](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7172872857): with `LEONIDA_GEOMETRY_MB` a pool's extents (1 MiB at most) get unrelated places in GPU memory, so a root view or raw pointer that runs past one reads another copy or a hole. @qhukz13 thank you, that is exactly the correction my text needed: copies are packed one after another, so most over-reads land in the next copy and only one at a block's end faults. I have put it into the claim: the faults are the visible part, and what I have to show is the wrong data, not only the missing fault. I take your offer for the 1050 Ti test, and I'd rather fit around #2094 than the other way round. Plan, so it stays out of your storage: - a separate allocator in its own header (`runtime/shims/d3d12_pool_sparse.h`): per stream pool one sparse buffer with a device address, the size of the pool; an extent binds 64 KiB pages of host-visible memory at its own offset, so neighbouring extents are neighbours on the GPU. Unbound pages read zero instead of faulting (`residencyNonResidentStrict` where the device has it; else the extent path of today). Nothing in `TitleBufferWindows` changes. - `GeometryViews` only learns to take a place from a caller, so the views, the refresh and #2094's retire path work on it as on any copy. I'll build it on top of #2094 if it lands first, otherwise rebase. - `resolve_pool_memory` keeps its rule B and the alias pair; @lixonik's #1920 edits it (gaps on both sides), so I'll stack on that too. - Not for devices without sparse binding on host-visible memory, or without a Resizable BAR where the pages would not be visible: there the code of today runs (your 1050 Ti is the case to check). Off by default until a boot shows it. - Tests: two extents requested in either order are contiguous and hold the title's bytes across the boundary; unbound neighbours read zero; the pool's copy follows writes. Stop me if this collides with something you already have. ImLele69 released BOOT-TURING-WINE; I can't run Wine here, so someone with a Linux/Wine machine might take it. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@azsekazvamdimitar commented on GitHub (Nov 25, 2026):

finding: on Linux/Proton (RTX 3090, NVIDIA 590.48.01, GE-Proton11-14) our world-start READ_INVALIDs are not the read past a 1 MiB stream-pool copy that Snooozs measured (issuecomment-7172872857). Four device losses with LEONIDA_DEVICE_FAULT=1 LEONIDA_ADDRESS_BINDINGS=1 (#1918), LEONIDA_TITLE_WINDOWS_MB=4096 LEONIDA_ARENA_MB=4096, on main 71a769d7d with #1827, #1849, #1851, #1867 and a local merge of #429 (two of them also with #1887):

  • Three fault 2 to 4 GiB away from any memory the device ever bound: the report says "nothing live or recently unbound there", and the nearest bind ends 0x7ef3c000, 0xb8a8f000 and 0xf7cd6000 below the address. The faulting draw was the octahedral imposter pair VS_OctaVsplitWindOrtho_e9795e82 / PS_OctaOrthoVSplit_e9795e82 twice and the mesh G-buffer draw _MS_VS_TransformD_c5fd36bb / PS_DeferredTextured_c5fd36bb once. The address minus the arena base falls in the stream pool's CPU reservation (0x300200000..0x900200000) each time, so it is either a raw title address that reached the shader or a translated base plus a very large offset; the report can't tell which. In a run without a loss, a local probe of the root views the octa draws were given found all of them translated, and no title address kept raw because a layer buffer owned it.
  • One is a read of a freed bindless table generation: READ_INVALID 0x620c000 into a 160 MiB buffer (4 + 4,194,304 x 40 bytes, the descriptor table at 4M slots) that was bound at 253.3 s and freed at 310.1 s, when the table grew to 8M slots. The log then reads "1 retired, 0 spare", so I take it the freed one was the 4M spare that make_generation drops when it is too small (inferred, not logged). The read came at about 344 s; the only checkpointed work was on compute queues (lib_cs_00906, lib_cs_01468, lib_cs_01457, lib_cs_00949). I have not found what still bound that generation: execute_now binds bindless_current_() after the flush, under tracker_mutex_ until the submit, and generations are released through the retire tickets. Seen once in twelve runs, so I am not chasing it further now.

Not run on Windows. AI-assisted.

<!-- gh-comment-id:7173734360 --> @azsekazvamdimitar commented on GitHub (Nov 25, 2026): finding: on Linux/Proton (RTX 3090, NVIDIA 590.48.01, GE-Proton11-14) our world-start READ_INVALIDs are not the read past a 1 MiB stream-pool copy that Snooozs measured (issuecomment-7172872857). Four device losses with `LEONIDA_DEVICE_FAULT=1 LEONIDA_ADDRESS_BINDINGS=1` (#1918), `LEONIDA_TITLE_WINDOWS_MB=4096 LEONIDA_ARENA_MB=4096`, on main 71a769d7d with #1827, #1849, #1851, #1867 and a local merge of #429 (two of them also with #1887): - Three fault 2 to 4 GiB away from any memory the device ever bound: the report says "nothing live or recently unbound there", and the nearest bind ends 0x7ef3c000, 0xb8a8f000 and 0xf7cd6000 below the address. The faulting draw was the octahedral imposter pair `VS_OctaVsplitWindOrtho_e9795e82` / `PS_OctaOrthoVSplit_e9795e82` twice and the mesh G-buffer draw `_MS_VS_TransformD_c5fd36bb` / `PS_DeferredTextured_c5fd36bb` once. The address minus the arena base falls in the stream pool's CPU reservation (0x300200000..0x900200000) each time, so it is either a raw title address that reached the shader or a translated base plus a very large offset; the report can't tell which. In a run without a loss, a local probe of the root views the octa draws were given found all of them translated, and no title address kept raw because a layer buffer owned it. - One is a read of a freed bindless table generation: READ_INVALID 0x620c000 into a 160 MiB buffer (4 + 4,194,304 x 40 bytes, the descriptor table at 4M slots) that was bound at 253.3 s and freed at 310.1 s, when the table grew to 8M slots. The log then reads "1 retired, 0 spare", so I take it the freed one was the 4M spare that `make_generation` drops when it is too small (inferred, not logged). The read came at about 344 s; the only checkpointed work was on compute queues (`lib_cs_00906`, `lib_cs_01468`, `lib_cs_01457`, `lib_cs_00949`). I have not found what still bound that generation: `execute_now` binds `bindless_current_()` after the flush, under `tracker_mutex_` until the submit, and generations are released through the retire tickets. Seen once in twelve runs, so I am not chasing it further now. Not run on Windows. AI-assisted.
Author
Owner

@Sangonapou commented on GitHub (Nov 25, 2026):

finding: (re #14, whoalin1, 2026-11-25 02:25) the NVIDIA v_add_nc_i16/v_sub_nc_i16 op_sel + clamp high-half corruption does not reproduce on Ampere. RTX 3080 Ti Laptop (GA103), NVIDIA 621.24, Windows 11 build 26300, wave32, main db1a22d2 translator through tools/vk_fuzz_run.run_programs (opaque operands): v_{add,sub}_nc_{i,u}16 x all 8 op_sel combinations x clamp on/off x 6 operand pairs (saturating, sign-crossing, 0xAAA8 low result), destination preset to 0x0002BEEF: 384/384 match the RDNA2 result, high half always kept. So it is either Ada-only or needs the surrounding instructions of the fuzz program, not the single op. Synthetic operands only, no game files. AI-assisted.

<!-- gh-comment-id:7173742613 --> @Sangonapou commented on GitHub (Nov 25, 2026): finding: (re #14, whoalin1, 2026-11-25 02:25) the NVIDIA `v_add_nc_i16`/`v_sub_nc_i16` op_sel + clamp high-half corruption does **not** reproduce on Ampere. RTX 3080 Ti Laptop (GA103), NVIDIA 621.24, Windows 11 build 26300, wave32, `main` `db1a22d2` translator through `tools/vk_fuzz_run.run_programs` (opaque operands): `v_{add,sub}_nc_{i,u}16` x all 8 `op_sel` combinations x clamp on/off x 6 operand pairs (saturating, sign-crossing, `0xAAA8` low result), destination preset to `0x0002BEEF`: **384/384** match the RDNA2 result, high half always kept. So it is either Ada-only or needs the surrounding instructions of the fuzz program, not the single op. Synthetic operands only, no game files. AI-assisted.
Author
Owner

@azsekazvamdimitar commented on GitHub (Nov 25, 2026):

@Undefined3301 @Snooozs another data point, without LEONIDA_GEOMETRY_MB: on Linux/Proton (RTX 3090, NVIDIA 590.48.01) the READ_INVALID minus the arena base is not constant either. The arena was at 0x139a00000 in all three runs (LEONIDA_ARENA_MB=4096):

run faulting draw READ_INVALID minus arena base
F8 VS_OctaVsplitWindOrtho_e9795e82 / PS_OctaOrthoVSplit_e9795e82 0x59ce06000
F11 _MS_VS_TransformD_c5fd36bb / PS_DeferredTextured_c5fd36bb 0x574e2f000
m1887 VS_OctaVsplitWindOrtho_e9795e82 / PS_OctaOrthoVSplit_e9795e82 0x516e2c000

All three lie in this machine's stream-pool CPU reservation (0x300200000..0x900200000, paired with the GPU-only view at 0x900200000), and #1918 reports nothing ever bound within 2 GiB of them. Details in 7173734360. AI-assisted.

<!-- gh-comment-id:7173760680 --> @azsekazvamdimitar commented on GitHub (Nov 25, 2026): @Undefined3301 @Snooozs another data point, without `LEONIDA_GEOMETRY_MB`: on Linux/Proton (RTX 3090, NVIDIA 590.48.01) the READ_INVALID minus the arena base is not constant either. The arena was at 0x139a00000 in all three runs (`LEONIDA_ARENA_MB=4096`): | run | faulting draw | READ_INVALID minus arena base | |---|---|---| | F8 | `VS_OctaVsplitWindOrtho_e9795e82` / `PS_OctaOrthoVSplit_e9795e82` | 0x59ce06000 | | F11 | `_MS_VS_TransformD_c5fd36bb` / `PS_DeferredTextured_c5fd36bb` | 0x574e2f000 | | m1887 | `VS_OctaVsplitWindOrtho_e9795e82` / `PS_OctaOrthoVSplit_e9795e82` | 0x516e2c000 | All three lie in this machine's stream-pool CPU reservation (0x300200000..0x900200000, paired with the GPU-only view at 0x900200000), and #1918 reports nothing ever bound within 2 GiB of them. Details in [7173734360](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7173734360). AI-assisted.
Author
Owner

@Sangonapou commented on GitHub (Nov 25, 2026):

claiming: SHADER-F16-SPECIAL-RESULTS — tools/rdna2spirv.py: select the measured hardware words for the f16 inputs docs/design.md (f16 transcendentals row, "Not modelled yet") still leaves to the driver: v_log_f16(±0) = -inf, v_log_f16 of a negative (-inf included) = 0xfe00, v_sin_f16/v_cos_f16(±inf) = 0xfe00 (SPIR-V Log2 of ≤0 and Sin/Cos of a NaN are undefined / sign-unspecified). The f16 follow-up of SHADER-F32-SPECIAL-RESULTS (#1231), done the same way as v_rcp/rsq/sqrt_f16 already are. Semantic tests + GPU check on NVIDIA.

<!-- gh-comment-id:7173780509 --> @Sangonapou commented on GitHub (Nov 25, 2026): claiming: SHADER-F16-SPECIAL-RESULTS — `tools/rdna2spirv.py`: select the measured hardware words for the f16 inputs `docs/design.md` (f16 transcendentals row, "Not modelled yet") still leaves to the driver: `v_log_f16(±0)` = -inf, `v_log_f16` of a negative (-inf included) = `0xfe00`, `v_sin_f16`/`v_cos_f16(±inf)` = `0xfe00` (SPIR-V `Log2` of ≤0 and `Sin`/`Cos` of a NaN are undefined / sign-unspecified). The f16 follow-up of SHADER-F32-SPECIAL-RESULTS (#1231), done the same way as `v_rcp/rsq/sqrt_f16` already are. Semantic tests + GPU check on NVIDIA.
Author
Owner

@Moriz82 commented on GitHub (Nov 25, 2026):

done: RT-POST-LOAD-GPU-MEMORY -> #2098 (draft).

<!-- gh-comment-id:7173801126 --> @Moriz82 commented on GitHub (Nov 25, 2026): done: RT-POST-LOAD-GPU-MEMORY -> #2098 (draft).
Author
Owner

@BubsMcgee commented on GitHub (Nov 25, 2026):

claiming: RT-PRESENT-FPS-CAP — LEONIDA_FPS_CAP as a present-rate ceiling on top of the existing FramePacer: SetFrameIntervalX lengthens a shorter requested interval on the console path, and the DXGI swapchain waits before Present, so the GPU is given idle time between frames instead of every frame the CPU can produce. Also caches the decoded intro-splash pixels so the GDI paint (ShowWindow) and the D3D12 splash texture share one WIC decode instead of two. New portable fps_cap_test (period/clamp/env); gta6rt_d3d12_com builds. LEONIDA_PRESENT_UNCAP still wins on the console path; the splash is a single present and is not capped. AI-assisted (opencode).

<!-- gh-comment-id:7173889228 --> @BubsMcgee commented on GitHub (Nov 25, 2026): claiming: RT-PRESENT-FPS-CAP — LEONIDA_FPS_CAP as a present-rate ceiling on top of the existing FramePacer: SetFrameIntervalX lengthens a shorter requested interval on the console path, and the DXGI swapchain waits before Present, so the GPU is given idle time between frames instead of every frame the CPU can produce. Also caches the decoded intro-splash pixels so the GDI paint (ShowWindow) and the D3D12 splash texture share one WIC decode instead of two. New portable `fps_cap_test` (period/clamp/env); `gta6rt_d3d12_com` builds. LEONIDA_PRESENT_UNCAP still wins on the console path; the splash is a single present and is not capped. AI-assisted (opencode).
Author
Owner

@Snooozs commented on GitHub (Nov 25, 2026):

releasing: RT-STREAM-POOL-CONTIGUOUS (claimed an hour ago). The design I announced does not work on NVIDIA, and I'd rather say so than sit on it. @qhukz13 please don't plan around it.

Measured with a small Vulkan program (vkGetBufferMemoryRequirements on 8 MiB buffers, four usages each):

device not sparse SPARSE_BINDING with or without SPARSE_RESIDENCY and SPARSE_ALIASED
RTX 5060 Ti (NVIDIA 621.01, Windows 10) memory types 0x1f, host-visible 2, 3, 4 0x2: device-local only, no host-visible type, in all 12 combinations
AMD Radeon(TM) Graphics (the CPU's, same machine) 0xf 0xf, host-visible 1, 2, 3

A sparse buffer here cannot be filled by memcpy through a Resizable BAR, and that is how GeometryViews writes its copies. (Sparse binding to a small buffer, the device address, the 64 KiB granularity and residencyNonResidentStrict are all there; so are 6 queue families with SPARSE_BINDING, one of them free for the binds.) I had the allocator working up to that point: two extents asked for in either order got contiguous addresses, and the allocation of the slab behind them then failed.

What is left, none of it built, for whoever takes it:

  • Device-local sparse buffer plus staging: the host copy stays as it is, the changed ranges go to the sparse buffer with vkCmdCopyBuffer at the next submission's start. Correct and contiguous everywhere; costs twice the memory of the copies and a copy pass per submission.
  • Longer extents: kPoolExtentMax is 1 MiB. A longer one (a test switch would do) makes a read past the end rarer and each extent dearer. It does not remove the hole.
  • Report the pool's end to the shader: the V# and the root view carry no length, so nothing to clamp against without the translator.

Two corrections I also owe the thread. @azsekazvamdimitar's runs (7173734360, 7173760680) show READ_INVALIDs that are not this hole: they lie in the title's stream-pool CPU reservation, 2 to 4 GiB from anything bound, with no geometry copies. So my finding explains a part of the world-start losses at most (only runs with LEONIDA_GEOMETRY_MB). My n25 faulted in the same mesh G-buffer pair (_MS_VS_TransformD_c5fd36bb / PS_DeferredTextured_c5fd36bb), so the same draw may have both.

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

<!-- gh-comment-id:7173892023 --> @Snooozs commented on GitHub (Nov 25, 2026): releasing: RT-STREAM-POOL-CONTIGUOUS (claimed an hour ago). **The design I announced does not work on NVIDIA, and I'd rather say so than sit on it.** @qhukz13 please don't plan around it. Measured with a small Vulkan program (`vkGetBufferMemoryRequirements` on 8 MiB buffers, four usages each): | device | not sparse | `SPARSE_BINDING` with or without `SPARSE_RESIDENCY` and `SPARSE_ALIASED` | |---|---|---| | RTX 5060 Ti (NVIDIA 621.01, Windows 10) | memory types 0x1f, host-visible 2, 3, 4 | **0x2: device-local only, no host-visible type**, in all 12 combinations | | AMD Radeon(TM) Graphics (the CPU's, same machine) | 0xf | 0xf, host-visible 1, 2, 3 | A sparse buffer here cannot be filled by `memcpy` through a Resizable BAR, and that is how `GeometryViews` writes its copies. (Sparse binding to a small buffer, the device address, the 64 KiB granularity and `residencyNonResidentStrict` are all there; so are 6 queue families with `SPARSE_BINDING`, one of them free for the binds.) I had the allocator working up to that point: two extents asked for in either order got contiguous addresses, and the allocation of the slab behind them then failed. What is left, none of it built, for whoever takes it: - **Device-local sparse buffer plus staging:** the host copy stays as it is, the changed ranges go to the sparse buffer with `vkCmdCopyBuffer` at the next submission's start. Correct and contiguous everywhere; costs twice the memory of the copies and a copy pass per submission. - **Longer extents:** `kPoolExtentMax` is 1 MiB. A longer one (a test switch would do) makes a read past the end rarer and each extent dearer. It does not remove the hole. - **Report the pool's end to the shader:** the V# and the root view carry no length, so nothing to clamp against without the translator. Two corrections I also owe the thread. @azsekazvamdimitar's runs (7173734360, 7173760680) show READ_INVALIDs that are not this hole: they lie in the title's stream-pool CPU reservation, 2 to 4 GiB from anything bound, with no geometry copies. So my finding explains a part of the world-start losses at most (only runs with `LEONIDA_GEOMETRY_MB`). My n25 faulted in the same mesh G-buffer pair (`_MS_VS_TransformD_c5fd36bb` / `PS_DeferredTextured_c5fd36bb`), so the same draw may have both. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@syfyra commented on GitHub (Nov 25, 2026):

claiming: FOG-VOLUMES-SCAN-BOUNDARY - tools/fog_volumes.py _scan_rpf_chunk searches for the 2-byte zlib header only up to its range's end, so a header starting at end - 1 is found by neither range (the next starts at end) and that fog-volume resource is lost for some --jobs values and not others (reproduced: 8 MiB + 2 byte synthetic RPF, resource at 4 MiB, --jobs 1 finds it, --jobs 2 does not). Search one byte past the end and keep only matches that start before it, as world_census.scan_shard does. Synthetic test; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7173922396 --> @syfyra commented on GitHub (Nov 25, 2026): claiming: FOG-VOLUMES-SCAN-BOUNDARY - tools/fog_volumes.py `_scan_rpf_chunk` searches for the 2-byte zlib header only up to its range's end, so a header starting at end - 1 is found by neither range (the next starts at end) and that fog-volume resource is lost for some --jobs values and not others (reproduced: 8 MiB + 2 byte synthetic RPF, resource at 4 MiB, --jobs 1 finds it, --jobs 2 does not). Search one byte past the end and keep only matches that start before it, as world_census.scan_shard does. Synthetic test; no game files, no GPU. AI-assisted.
Author
Owner

@mojomast commented on GitHub (Nov 25, 2026):

claiming: DOC-AGENTS-SEMANTIC-COUNTS — AGENTS.md still says the translator suite is 465 files and 6 108 tests; update that sentence to the measured counts on current main (491 files under tests/semantic/test_*.py and 6,266 def test_ methods). No game files or GPU needed. AI-assisted.

<!-- gh-comment-id:7173929267 --> @mojomast commented on GitHub (Nov 25, 2026): claiming: DOC-AGENTS-SEMANTIC-COUNTS — AGENTS.md still says the translator suite is 465 files and 6 108 tests; update that sentence to the measured counts on current main (491 files under tests/semantic/test_*.py and 6,266 def test_ methods). No game files or GPU needed. AI-assisted.
Author
Owner

@mojomast commented on GitHub (Nov 25, 2026):

claiming: DOC-SANDBOX-OLD-ISSUE-2519 — docs/sandbox.md cites bare #2519, which 404s in this repository; label it as an old number from the original repository that does not resolve here (same style as #313 in CONTRIBUTING.md). No game files or GPU needed. AI-assisted.

<!-- gh-comment-id:7173929849 --> @mojomast commented on GitHub (Nov 25, 2026): claiming: DOC-SANDBOX-OLD-ISSUE-2519 — docs/sandbox.md cites bare #2519, which 404s in this repository; label it as an old number from the original repository that does not resolve here (same style as #313 in CONTRIBUTING.md). No game files or GPU needed. AI-assisted.
Author
Owner

@Undefined3301 commented on GitHub (Nov 25, 2026):

note: SHADER-VSHARP-47-BOUND is ready on branch Undefined3301:rt-vsharp-47-bound (338a32b8, based on main db1a22d29; adds runtime/src/vsharp_range.h, the refusal in encodable, the slot-133 shadow fallback and runtime/test/vsharp_range_test.cpp). PR creation from this account is refused with does not have the correct permissions to execute CreatePullRequest even after I closed #2095 to free the single open-PR slot, so the new 1-open-PR / 2-merged rule appears to hold the account. Could a maintainer open the PR from that branch, or say which of the two changes is preferred as the one slot? I will not retry until the slot is cleared. The FSPX state-fill tool stays on Undefined3301:fspx-library-state-fill (#2095, closed) for later.

<!-- gh-comment-id:7173957114 --> @Undefined3301 commented on GitHub (Nov 25, 2026): note: `SHADER-VSHARP-47-BOUND` is ready on branch `Undefined3301:rt-vsharp-47-bound` (338a32b8, based on main db1a22d29; adds `runtime/src/vsharp_range.h`, the refusal in `encodable`, the slot-133 shadow fallback and `runtime/test/vsharp_range_test.cpp`). PR creation from this account is refused with `does not have the correct permissions to execute CreatePullRequest` even after I closed #2095 to free the single open-PR slot, so the new 1-open-PR / 2-merged rule appears to hold the account. Could a maintainer open the PR from that branch, or say which of the two changes is preferred as the one slot? I will not retry until the slot is cleared. The FSPX state-fill tool stays on `Undefined3301:fspx-library-state-fill` (#2095, closed) for later.
Author
Owner

@Saauf commented on GitHub (Nov 25, 2026):

claiming: STUDIO-FAILED-LOAD-SELECTION — after a failed model download, select the row of the model still shown (CrazyThiago's finding). AI-assisted.

<!-- gh-comment-id:7174039782 --> @Saauf commented on GitHub (Nov 25, 2026): claiming: STUDIO-FAILED-LOAD-SELECTION — after a failed model download, select the row of the model still shown (CrazyThiago's finding). AI-assisted.
Author
Owner

@DadaCap commented on GitHub (Nov 25, 2026):

claiming: SHADER-W64-STRUCTURED-SBARRIER-TAIL — plan_structured_emulation (tools/wave64_emulate_opt.py) returns no plan for any multi-wave program with an s_barrier under a guard or in a loop, so all 9,282 mesh programs of 1.0.2.1 (the NGG epilogue has one) run whole in the round scheduler. Keep only the part from the first guarded s_barrier on in the existing tail_scheduler and emit the rest structured. Same exe, two shader folders, RTX 5080: the GPU-timer samples of the 17 mesh programs compared at the same group count take 0.13 to 0.78 of the time. Translator only, with semantic tests and the design.md row. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7174042486 --> @DadaCap commented on GitHub (Nov 25, 2026): claiming: SHADER-W64-STRUCTURED-SBARRIER-TAIL — `plan_structured_emulation` (`tools/wave64_emulate_opt.py`) returns no plan for any multi-wave program with an `s_barrier` under a guard or in a loop, so all 9,282 mesh programs of 1.0.2.1 (the NGG epilogue has one) run whole in the round scheduler. Keep only the part from the first guarded `s_barrier` on in the existing `tail_scheduler` and emit the rest structured. Same exe, two shader folders, RTX 5080: the GPU-timer samples of the 17 mesh programs compared at the same group count take 0.13 to 0.78 of the time. Translator only, with semantic tests and the design.md row. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@Saauf commented on GitHub (Nov 25, 2026):

done: STUDIO-FAILED-LOAD-SELECTION -> #2100. AI-assisted.

<!-- gh-comment-id:7174061856 --> @Saauf commented on GitHub (Nov 25, 2026): done: STUDIO-FAILED-LOAD-SELECTION -> #2100. AI-assisted.
Author
Owner

@Tyrannys commented on GitHub (Nov 25, 2026):

claiming: PIPELINES-STAGE-SHARDS-AND-DONE-LIST - the pipelines stage writes one small cache shard per checker process and merges them into pipeline_cache.bin once (vkMergePipelineCaches), and keeps a done-list keyed by SPIR-V hash + driver identity + checker version so a rerun only builds the modules that changed.

AI-assisted (Claude Code)

<!-- gh-comment-id:7174076789 --> @Tyrannys commented on GitHub (Nov 25, 2026): claiming: PIPELINES-STAGE-SHARDS-AND-DONE-LIST - the pipelines stage writes one small cache shard per checker process and merges them into pipeline_cache.bin once (vkMergePipelineCaches), and keeps a done-list keyed by SPIR-V hash + driver identity + checker version so a rerun only builds the modules that changed. AI-assisted (Claude Code)
Author
Owner

@Boost9898 commented on GitHub (Nov 25, 2026):

claiming: new item: tests/test_calibrated_texture_extra.py (test_export_file_replacement_failure_cleans_temporary_file) fails on main db1a22d29, new since 9e7720c9e (#570 merged at 19:47 UTC). Fix and PR follow shortly.

<!-- gh-comment-id:7174081616 --> @Boost9898 commented on GitHub (Nov 25, 2026): claiming: new item: `tests/test_calibrated_texture_extra.py` (`test_export_file_replacement_failure_cleans_temporary_file`) fails on main `db1a22d29`, new since `9e7720c9e` (#570 merged at 19:47 UTC). Fix and PR follow shortly.
Author
Owner

@Boost9898 commented on GitHub (Nov 25, 2026):

done: new item (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7174081616) -> #2101

<!-- gh-comment-id:7174125752 --> @Boost9898 commented on GitHub (Nov 25, 2026): done: new item (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7174081616) -> #2101
Author
Owner

@DadaCap commented on GitHub (Nov 25, 2026):

done: SHADER-W64-STRUCTURED-SBARRIER-TAIL -> #2102. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7174150029 --> @DadaCap commented on GitHub (Nov 25, 2026): done: SHADER-W64-STRUCTURED-SBARRIER-TAIL -> #2102. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@Tyrannys commented on GitHub (Nov 25, 2026):

claiming: GALLERY-THUMB-UPPERCASE-DDS - CrazyThiago's finding above: tools/gallery.py's PNG-to-DDS thumbnail fallback (around line 213) only tries <stem>.dds, so an upper.DDS texture's /textures/upper.png thumbnail returns 404 on a case-sensitive filesystem. Fix: find the DDS sibling case-insensitively within the same folder, keeping safe_subpath, and add a synthetic regression test (1x1 DDS, no game files). AI-assisted.

<!-- gh-comment-id:7174150654 --> @Tyrannys commented on GitHub (Nov 25, 2026): claiming: GALLERY-THUMB-UPPERCASE-DDS - CrazyThiago's finding above: `tools/gallery.py`'s PNG-to-DDS thumbnail fallback (around line 213) only tries `<stem>.dds`, so an `upper.DDS` texture's `/textures/upper.png` thumbnail returns 404 on a case-sensitive filesystem. Fix: find the DDS sibling case-insensitively within the same folder, keeping `safe_subpath`, and add a synthetic regression test (1x1 DDS, no game files). AI-assisted.
Author
Owner

@mojomast commented on GitHub (Nov 25, 2026):

done: DOC-AGENTS-SEMANTIC-COUNTS -> #2103

<!-- gh-comment-id:7174198856 --> @mojomast commented on GitHub (Nov 25, 2026): done: DOC-AGENTS-SEMANTIC-COUNTS -> #2103
Author
Owner

@sodove commented on GitHub (Nov 25, 2026):

claiming: RT-NATIVE-COMPUTE-WARMUP — extend #1308 with opt-in offline warm-up for native compute code/state pairs from the local pipeline library, plus a separate cache-hit verification pass. Depends on #1308. AI-assisted.

<!-- gh-comment-id:7174210891 --> @sodove commented on GitHub (Nov 25, 2026): claiming: RT-NATIVE-COMPUTE-WARMUP — extend #1308 with opt-in offline warm-up for native compute code/state pairs from the local pipeline library, plus a separate cache-hit verification pass. Depends on #1308. AI-assisted.
Author
Owner

@cheltyi commented on GitHub (Nov 25, 2026):

claiming: D3D-REPLAY-SCOPE-METRICS — follow-up to my #1877: opt-in aggregate counters for rendering-scope reuse (draw/run counts, run-length histogram, boundary reasons) and synthetic mixed-workload benchmarks with short runs, pipeline/target switches and indirect draws. No shader identities, addresses, game data or title text in the counters. Default path keeps diagnostics off. Based on current main and #1877; separate PR per CONTRIBUTING. Checked the coordination threads and open rendering/scope PRs; existing indirect-topology counters and submit-phase timing work are separate. AI-assisted.

<!-- gh-comment-id:7174267235 --> @cheltyi commented on GitHub (Nov 25, 2026): claiming: D3D-REPLAY-SCOPE-METRICS — follow-up to my #1877: opt-in aggregate counters for rendering-scope reuse (draw/run counts, run-length histogram, boundary reasons) and synthetic mixed-workload benchmarks with short runs, pipeline/target switches and indirect draws. No shader identities, addresses, game data or title text in the counters. Default path keeps diagnostics off. Based on current main and #1877; separate PR per CONTRIBUTING. Checked the coordination threads and open rendering/scope PRs; existing indirect-topology counters and submit-phase timing work are separate. AI-assisted.
Author
Owner

@Tyrannys commented on GitHub (Nov 25, 2026):

done: GALLERY-THUMB-UPPERCASE-DDS -> #2105

<!-- gh-comment-id:7174267839 --> @Tyrannys commented on GitHub (Nov 25, 2026): done: GALLERY-THUMB-UPPERCASE-DDS -> #2105
Author
Owner

@c0pperlane commented on GitHub (Nov 25, 2026):

claiming:

  • TEST-NULL-DESCRIPTOR-AMD-ALPHA — vk_null_descriptor fails on AMD (Radeon 610M, gfx1036, Windows driver 32.0.21030.34003): the uint and sint null storage-image reads return (0,0,0,1) where the test expects all zeros (runtime/test/vk_null_descriptor_test.cpp:270), for 2D, 2D array, 3D and 1D; float views read zeros, and the RTX 5080 passes. Settle it against Vulkan's nullDescriptor rules and D3D12's null UAV, then fix the side that is wrong. Not the build claims on this test (#2055, #2096, BUILD-GLSLANG-NONASCII-RELATIVE-FIXTURE).
  • RT-PIPESTATS-NGG-GS-ZERO — d3d12_mesh's pipeline-statistics check (runtime/test/d3d12_mesh_test.cpp:676-687) fails on RDNA2: AMD's NGG path counts GS invocations for draws that have no geometry shader (KushGene's investigation, DominusMayo's finding). D3D12 reports 0 there, so the query resolve should too.

Under the new open-PR limit my pull requests will open one at a time. The items claimed in https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7173484529 are finished on c0pperlane/leonida branches named after them (old-<n>, doc-d3d12-vulkan-stale-status, rt-bindless-depth-read-srv-layout) and will be opened in turn. No game files needed. AI-assisted.

<!-- gh-comment-id:7174283790 --> @c0pperlane commented on GitHub (Nov 25, 2026): claiming: - TEST-NULL-DESCRIPTOR-AMD-ALPHA — `vk_null_descriptor` fails on AMD (Radeon 610M, gfx1036, Windows driver 32.0.21030.34003): the uint and sint null storage-image reads return (0,0,0,1) where the test expects all zeros (`runtime/test/vk_null_descriptor_test.cpp:270`), for 2D, 2D array, 3D and 1D; float views read zeros, and the RTX 5080 passes. Settle it against Vulkan's nullDescriptor rules and D3D12's null UAV, then fix the side that is wrong. Not the build claims on this test (#2055, #2096, BUILD-GLSLANG-NONASCII-RELATIVE-FIXTURE). - RT-PIPESTATS-NGG-GS-ZERO — `d3d12_mesh`'s pipeline-statistics check (`runtime/test/d3d12_mesh_test.cpp:676-687`) fails on RDNA2: AMD's NGG path counts GS invocations for draws that have no geometry shader ([KushGene's investigation](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7171688140), [DominusMayo's finding](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7142466246)). D3D12 reports 0 there, so the query resolve should too. Under the new open-PR limit my pull requests will open one at a time. The items claimed in https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7173484529 are finished on c0pperlane/leonida branches named after them (`old-<n>`, `doc-d3d12-vulkan-stale-status`, `rt-bindless-depth-read-srv-layout`) and will be opened in turn. No game files needed. AI-assisted.
Author
Owner

@Undefined3301 commented on GitHub (Nov 25, 2026):

finding: the missing-endpoint DirectStorage failures are a profile-fitting gap, not only a decode-limit problem. ools/build_dstorage_history.py::fit_slices skipped a packed depth-1 mip whose first block lies inside the chunk's first 256 blocks, and decoded a packed sibling without the local history; the affected BC7 endpoint rows were then recorded with ep_bits=0, which
untime/src/bcpack.cpp treats as an unknown predictor entry and counts against the lost-block budget. Accepting

<!-- gh-comment-id:7174297222 --> @Undefined3301 commented on GitHub (Nov 25, 2026): finding: the missing-endpoint DirectStorage failures are a **profile-fitting gap**, not only a decode-limit problem. ools/build_dstorage_history.py::fit_slices skipped a packed depth-1 mip whose first block lies inside the chunk's first 256 blocks, and decoded a packed sibling without the local history; the affected BC7 endpoint rows were then recorded with ep_bits=0, which untime/src/bcpack.cpp treats as an unknown predictor entry and counts against the lost-block budget. Accepting
Author
Owner

@mojomast commented on GitHub (Nov 25, 2026):

done: DOC-SANDBOX-OLD-ISSUE-2519 -> #2107

<!-- gh-comment-id:7174324657 --> @mojomast commented on GitHub (Nov 25, 2026): done: DOC-SANDBOX-OLD-ISSUE-2519 -> #2107
Author
Owner

@GGandCo commented on GitHub (Nov 25, 2026):

Update for RT-BC-VIEW-COMPATIBILITY: implementation and synthetic regressions are pushed to https://github.com/GGandCo/leonida/tree/fix/bc-image-view-classes (based on main db1a22d29). Current-main negative control fails, fixed CPU descriptor and native Intel Vulkan view-registration tests pass with validation enabled. Documentation and no-game-data checks included.

PR creation is currently blocked by the account/API permission response (REST 404; GraphQL explicitly reports missing permission for CreatePullRequest). The contribution is ready at that branch; no duplicate PR has been created. The existing #2072 is a separate shader-module diagnostic-name change.

<!-- gh-comment-id:7174328741 --> @GGandCo commented on GitHub (Nov 25, 2026): Update for RT-BC-VIEW-COMPATIBILITY: implementation and synthetic regressions are pushed to https://github.com/GGandCo/leonida/tree/fix/bc-image-view-classes (based on main db1a22d29). Current-main negative control fails, fixed CPU descriptor and native Intel Vulkan view-registration tests pass with validation enabled. Documentation and no-game-data checks included. PR creation is currently blocked by the account/API permission response (REST 404; GraphQL explicitly reports missing permission for CreatePullRequest). The contribution is ready at that branch; no duplicate PR has been created. The existing #2072 is a separate shader-module diagnostic-name change.
Author
Owner

@HasiKe commented on GitHub (Nov 25, 2026):

finding: with #1756 + #1886 + #1950 the session cache persists, but ScreenProbes_ActivateRays (15.9 MB SPIR-V, ~1,600–1,925 s per build on NVIDIA) misses it on the next boot. The driver itself caches it fine. AI-assisted.

Where: runtime/shims/d3d12_vulkan_device.cpp, compute builds through the session cache (build_compute). Needs the game files and an NVIDIA GPU. Measured on an RTX 2070 SUPER, driver 616.56: main 490f5b9ec + #1756 + #1886 + #1950 + #1909, LEONIDA_STARTUP_CACHE_CHECKPOINTS=1, LEONIDA_CONSOLE_FIX_US=0, no offline seed.

  • Boot 1: ActivateRays built in 1,925 s. The next checkpoint grew the file from 98.7 to 106.9 MB, so an entry of about the size the checker writes for it went in.
  • Boot 2: 817 of 1,075 builds hit. ActivateRays wasn't reached before a device loss at ~203 s, and #1950's op=exit then wrote 119 MB.
  • Boot 3 on that file: 826 hits, but ActivateRays was built again with the same runtime key (9e58308a…). It was still open when the run ended at 900 s.
  • vk_pipeline_check --start <its index> --count 1 <cache>: 1,590 s with an empty cache, then 0.20 s with a cache hit on the 9.0 MB file it wrote. So NVIDIA keeps this pipeline in a VkPipelineCache, and what differs is what the runtime gives the driver between boots.

Why it matters: this one miss holds the submitting thread for about 30 minutes on every boot, and the window stops responding, even once every other pipeline comes from the session cache.

Next, still unverified: whether the miss happens on load (an entry dropped when boot 2 re-saved what it loaded), or because ActivateRays' create info varies between boots (layout, flags, subgroup size). Comparing the create info that build_compute hashes against what it passes to vkCreateComputePipelines across two boots would tell.

<!-- gh-comment-id:7174346466 --> @HasiKe commented on GitHub (Nov 25, 2026): finding: with #1756 + #1886 + #1950 the session cache persists, but `ScreenProbes_ActivateRays` (15.9 MB SPIR-V, ~1,600–1,925 s per build on NVIDIA) misses it on the next boot. The driver itself caches it fine. AI-assisted. Where: `runtime/shims/d3d12_vulkan_device.cpp`, compute builds through the session cache (`build_compute`). Needs the game files and an NVIDIA GPU. Measured on an RTX 2070 SUPER, driver 616.56: `main` 490f5b9ec + #1756 + #1886 + #1950 + #1909, `LEONIDA_STARTUP_CACHE_CHECKPOINTS=1`, `LEONIDA_CONSOLE_FIX_US=0`, no offline seed. - Boot 1: ActivateRays built in 1,925 s. The next checkpoint grew the file from 98.7 to 106.9 MB, so an entry of about the size the checker writes for it went in. - Boot 2: 817 of 1,075 builds hit. ActivateRays wasn't reached before a device loss at ~203 s, and #1950's `op=exit` then wrote 119 MB. - Boot 3 on that file: 826 hits, but ActivateRays was built again with the same runtime key (`9e58308a…`). It was still open when the run ended at 900 s. - `vk_pipeline_check --start <its index> --count 1 <cache>`: 1,590 s with an empty cache, then **0.20 s with a cache hit** on the 9.0 MB file it wrote. So NVIDIA keeps this pipeline in a `VkPipelineCache`, and what differs is what the runtime gives the driver between boots. Why it matters: this one miss holds the submitting thread for about 30 minutes on every boot, and the window stops responding, even once every other pipeline comes from the session cache. Next, still unverified: whether the miss happens on load (an entry dropped when boot 2 re-saved what it loaded), or because ActivateRays' create info varies between boots (layout, flags, subgroup size). Comparing the create info that `build_compute` hashes against what it passes to `vkCreateComputePipelines` across two boots would tell.
Author
Owner

@syfyra commented on GitHub (Nov 25, 2026):

done: FOG-VOLUMES-SCAN-BOUNDARY -> #2108 (a draft for now: accounts without write access can have one open pull request, and #2084 is open; it goes to ready for review once that one lands)

<!-- gh-comment-id:7174450388 --> @syfyra commented on GitHub (Nov 25, 2026): done: FOG-VOLUMES-SCAN-BOUNDARY -> #2108 (a draft for now: accounts without write access can have one open pull request, and #2084 is open; it goes to ready for review once that one lands)
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

done: RT-UNBOUND-TSHARP-REASONS -> #1987

Addressed maintainer feedback: moved UnboundTsharpTracker to namespace scope, added non-const Device::state() overload, removed non-existent resource_proxy_real_resource, corrected cube layer verification for textures with < 6 layers, and added ALLOW_RENDER_TARGET to test MSAA desc. Built gta6rt_d3d12_com.lib with MSVC 19.51 / SDK 10.0.26100; all 35 checks in d3d12_unbound_tsharp_rules_test pass cleanly.

AI-assisted (Claude Code)

<!-- gh-comment-id:7174459840 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): done: RT-UNBOUND-TSHARP-REASONS -> #1987 Addressed maintainer feedback: moved UnboundTsharpTracker to namespace scope, added non-const Device::state() overload, removed non-existent resource_proxy_real_resource, corrected cube layer verification for textures with < 6 layers, and added ALLOW_RENDER_TARGET to test MSAA desc. Built gta6rt_d3d12_com.lib with MSVC 19.51 / SDK 10.0.26100; all 35 checks in d3d12_unbound_tsharp_rules_test pass cleanly. AI-assisted (Claude Code)
Author
Owner

@Snooozs commented on GitHub (Nov 25, 2026):

@tiguan26 a correction to my data in 7173157386, which makes it more useful for your snapshot. gates held is a running total, not the gates held now, and I read it as the latter when I wrote that work stands behind held gates. Outstanding = held - met - timed out, from the last line of each stalled run:

run unlanded writes gates held / met / timed out outstanding at the end
n18 113 40 / 0 / 40 0
n28 113 40 / 19 / 21 0
n27 113 40 / 19 / 1 20 (stopped early, at t=129 s)
n29 113 40 / 19 / 12 9 (stopped at 198 s)
n30 113 31 / 19 / 8 4 (stopped at 180 s)
n33 113 40 / 18 / 5 17 (with #1957, 455 s)
n35 157 14 / 0 / 14 0 (#2098)
n36 162 15 / 0 / 15 0 (#2098 + #1592, 252 s)

So in n18, n28, n35 and n36 no memory gate was outstanding and the writes were still unlanded. A write lands when its queue's written fence reaches the group's value (take_landed), so in those runs the wait is for a queue fence, not for a gate: a queue whose work has not completed or was never submitted. That is the half of your snapshot I'd look at first (the written value each group needs against the fence's completed value, and what each held queue waits for). The Windows event log has no driver error (4101, 153) during n27 to n30, n33, n35 and n36, so no lost device explains those; n22, n25, n31 and n32 had one and are the READ_INVALID runs.

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

<!-- gh-comment-id:7174481026 --> @Snooozs commented on GitHub (Nov 25, 2026): @tiguan26 a correction to my data in [7173157386](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7173157386), which makes it more useful for your snapshot. `gates held` is a running total, not the gates held now, and I read it as the latter when I wrote that work stands behind held gates. Outstanding = held - met - timed out, from the last line of each stalled run: | run | unlanded writes | gates held / met / timed out | **outstanding at the end** | |---|---|---|---| | n18 | 113 | 40 / 0 / 40 | **0** | | n28 | 113 | 40 / 19 / 21 | **0** | | n27 | 113 | 40 / 19 / 1 | 20 (stopped early, at t=129 s) | | n29 | 113 | 40 / 19 / 12 | 9 (stopped at 198 s) | | n30 | 113 | 31 / 19 / 8 | 4 (stopped at 180 s) | | n33 | 113 | 40 / 18 / 5 | 17 (with #1957, 455 s) | | n35 | 157 | 14 / 0 / 14 | **0** (#2098) | | n36 | 162 | 15 / 0 / 15 | **0** (#2098 + #1592, 252 s) | So in n18, n28, n35 and n36 no memory gate was outstanding and the writes were still unlanded. A write lands when its queue's `written` fence reaches the group's value (`take_landed`), so in those runs the wait is for a queue fence, not for a gate: a queue whose work has not completed or was never submitted. That is the half of your snapshot I'd look at first (the `written` value each group needs against the fence's completed value, and what each held queue waits for). The Windows event log has no driver error (4101, 153) during n27 to n30, n33, n35 and n36, so no lost device explains those; n22, n25, n31 and n32 had one and are the READ_INVALID runs. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@Undefined3301 commented on GitHub (Nov 25, 2026):

Thanks @Snooozs — answers to the three questions:

  1. State fill: a freshly rebuilt library having spx_state_sha256 on all 2,683 entries is consistent; our work folder was stale (18/29 FidelityFX programs, 923 entries from an older translator that the current decoder no longer reproduces). The fill repairs an existing folder; a fresh library_shaders run should not need it. The 934 -> 11 -> 2 counts were measured on that stale folder and are why the tool exists.

  2. Mesh finding: thanks for taking it into #2097. Our counts: 14 of 15 refusals are mesh PSOs with conservative rasterization and no PRIMITIVE_TOPOLOGY subobject (d3d12_vulkan_device.cpp check at the conservative-raster branch); the 15th is E_NOTIMPL, topo 0, fill solid, RTV 41. All 14 are created with the mesh exception; the native slot-57 twins already existed.

  3. Constant VA and fences: yes, every run had LEONIDA_GEOMETRY_MB=2048 (also LEONIDA_IMPORT_BELOW_ARENA=1, LEONIDA_REFRESH_PER_FRAME=1, a 4 ms fix budget, per-submission mesh waits, 923 then 27/29 FSPX). The loss is at t≈203 in lib_cs_01405/01410/01455/00863/00867 and the address is heap_base + 0x34ab42000 in every run. The mirrors are five live fences: before the loss one advances (completed=4180); after the loss three sit at completed=1 and one at 0 while the title calls slot 12 with value 2 — the fence wait is a consequence of the loss, not its cause.

New data point that may matter: with LEONIDA_COMPUTE_DIRECT_HEAPS=0 a boot passed t=291 with 0 device faults (runs with direct heaps on lose the device at ~200), then stopped presenting during the world load. That points at the compute directly-indexed heap placement as a factor, not at the V# value itself. @azsekazvamdimitar's non-constant VA without geometry copies is a useful counter-example; I will follow up with the direct-heaps A/B.

<!-- gh-comment-id:7174503112 --> @Undefined3301 commented on GitHub (Nov 25, 2026): Thanks @Snooozs — answers to the three questions: 1. **State fill:** a freshly rebuilt library having spx_state_sha256 on all 2,683 entries is consistent; our work folder was stale (18/29 FidelityFX programs, 923 entries from an older translator that the current decoder no longer reproduces). The fill repairs an existing folder; a fresh library_shaders run should not need it. The 934 -> 11 -> 2 counts were measured on that stale folder and are why the tool exists. 2. **Mesh finding:** thanks for taking it into #2097. Our counts: 14 of 15 refusals are mesh PSOs with conservative rasterization and no PRIMITIVE_TOPOLOGY subobject (d3d12_vulkan_device.cpp check at the conservative-raster branch); the 15th is E_NOTIMPL, topo 0, fill solid, RTV 41. All 14 are created with the mesh exception; the native slot-57 twins already existed. 3. **Constant VA and fences:** yes, every run had LEONIDA_GEOMETRY_MB=2048 (also LEONIDA_IMPORT_BELOW_ARENA=1, LEONIDA_REFRESH_PER_FRAME=1, a 4 ms fix budget, per-submission mesh waits, 923 then 27/29 FSPX). The loss is at t≈203 in lib_cs_01405/01410/01455/00863/00867 and the address is heap_base + 0x34ab42000 in every run. The mirrors are **five live fences**: before the loss one advances (completed=4180); after the loss three sit at **completed=1** and one at 0 while the title calls slot 12 with value 2 — the fence wait is a consequence of the loss, not its cause. New data point that may matter: with **LEONIDA_COMPUTE_DIRECT_HEAPS=0** a boot passed t=291 with **0 device faults** (runs with direct heaps on lose the device at ~200), then stopped presenting during the world load. That points at the compute directly-indexed heap placement as a factor, not at the V# value itself. @azsekazvamdimitar's non-constant VA without geometry copies is a useful counter-example; I will follow up with the direct-heaps A/B.
Author
Owner

@tengotengo commented on GitHub (Nov 25, 2026):

Corroborating 7172364080 (robot00f, RE-ARENA-RESOLVER-131A2AD) — independently, from the other direction (runtime trace + raw-chunk disassembly of the same verified 1.0.2.1 exe, sha256 e95020b2…a08993) — and adding the runtime register match plus static facts the trace pins down:

  1. Runtime confirmation (our launch-3 run-3: post-#984 main 1cfc29af7, RTX 5060 Ti / Proton 11 SLR, watchdog defused — issue #1602): the exception record at the trap (0x80000003 @ +0x131a2ad) carries rax=0x0, rcx=0x981, rdx=0xffffff01, r8=0x80070057, rsi=0x76c5d10 (O), r13=0x1197fe0000 (64 KiB page VA), r15=0x282, stack +0x131a2ad←+0x24740d5←+0x2473903←+0x3239287←+0x221c29c←+0x2215eca. I.e. the je (74 1c) after test %al,%al was taken with al=0 — the C3 failure tail: rcx=0x981 = movzwl 0x10(%rsi),%ecx @ 0x14193e2fc (u16@O+0x10; 0x981&0x1f80=0x980 = the dispatch tag; tag byte 0x81 skips the free path), rax=0 = xor %eax,%eax @ 0x14193e310, and r8/rdx are the slot-133 method's own leftovers — the hr wrapper 0x144e9b660 is a pure pass-through for E_INVALIDARG (it special-cases only device-removed 0x8007009A → handler 0x142474500).
  2. Why C3 and not C1/C2: C1 (slot 133, new-desc path, 0x14193dff8) traps at its OWN CC @ 0x14193e00f on hr<0 — a different byte; C2 (slot 127, 0x14193e1b4) leaves rcx=hr — contradicted by the traced rcx=0x981. C3 (call *0x428(%r10) @ 0x14193e2d4) is the unique path matching every traced register.
  3. The device object: D3D12XboxCreateDevice (d3d12_xs.dll; thunk 0x145f3fd80 → IAT 0x146793c18) result, stored in 11 globals (0x1475df048, 0x1475df040, 0x1475df038, 0x1475df030, 0x1475df028, 0x1475df020, 0x1475df018, 0x1475df010, 0x1475df008, 0x1475df000, 0x1475deff8, 0x148759d00 — writers 0x1424785d4–0x142478621 in the "nableSharedPools" hidden-window bootstrap 0x1424784xx).
  4. The rdx page VA passed to slot 133 can be remapped through the va-map triple 0x149e1dac0/c8/d0 (in-span: if r15 ∈ [base, base+size) then rdx = r15 − base + map[2], else the raw VA); the triple's writers sit at 0x141e6c17a–0x141e6c456 — the pool-commit fn family, the same fn whose XMemAllocatePhysicalPages caller (exe+0x1e6c232) mapped the 6.09 GiB pool at the run's first stall.
  5. On resource-type framing: the static span cannot distinguish a placed D16S8 depth texture from a buffer on page-mapped memory — both reach slot 133 (also from the 0x1600/default size-computer sibling 0x14006dd85, which loads the same object at 0x14006dd20). Our next run (post-#1558/#1723 main, so the D16S8 fallback is in-tree) will distinguish: if the E_INVALIDARG persists post-#1558, the attribution narrows to the VA/descriptor arguments.
  6. Next static sites: 0x142474690 (the slot/mode lookup producing C3's r9 — names the slot-133 variant for tag 0x981; table base 0x14a943ac0, max 0x14a943ab8, writer 0x141f76882), then 0x142473e20 / 0x142474660 (arena family).
    Method: raw-chunk objdump -D -b binary -m i386:x86-64 --adjust-vma over the verified exe + the run-3 --trace exception record; all addresses exe-relative; no runtime memory involved beyond the trace.
<!-- gh-comment-id:7174524646 --> @tengotengo commented on GitHub (Nov 25, 2026): Corroborating 7172364080 (robot00f, RE-ARENA-RESOLVER-131A2AD) — independently, from the other direction (runtime trace + raw-chunk disassembly of the same verified 1.0.2.1 exe, sha256 e95020b2…a08993) — and adding the runtime register match plus static facts the trace pins down: 1. Runtime confirmation (our launch-3 run-3: post-#984 main 1cfc29af7, RTX 5060 Ti / Proton 11 SLR, watchdog defused — issue #1602): the exception record at the trap (0x80000003 @ +0x131a2ad) carries rax=0x0, rcx=0x981, rdx=0xffffff01, r8=0x80070057, rsi=0x76c5d10 (O), r13=0x1197fe0000 (64 KiB page VA), r15=0x282, stack +0x131a2ad←+0x24740d5←+0x2473903←+0x3239287←+0x221c29c←+0x2215eca. I.e. the `je` (74 1c) after `test %al,%al` was taken with al=0 — the C3 failure tail: rcx=0x981 = `movzwl 0x10(%rsi),%ecx` @ 0x14193e2fc (u16@O+0x10; 0x981&0x1f80=0x980 = the dispatch tag; tag byte 0x81 skips the free path), rax=0 = `xor %eax,%eax` @ 0x14193e310, and r8/rdx are the slot-133 method's own leftovers — the hr wrapper 0x144e9b660 is a pure pass-through for E_INVALIDARG (it special-cases only device-removed 0x8007009A → handler 0x142474500). 2. Why C3 and not C1/C2: C1 (slot 133, new-desc path, 0x14193dff8) traps at its OWN CC @ 0x14193e00f on hr<0 — a different byte; C2 (slot 127, 0x14193e1b4) leaves rcx=hr — contradicted by the traced rcx=0x981. C3 (`call *0x428(%r10)` @ 0x14193e2d4) is the unique path matching every traced register. 3. The device object: D3D12XboxCreateDevice (d3d12_xs.dll; thunk 0x145f3fd80 → IAT 0x146793c18) result, stored in 11 globals (0x1475df048, 0x1475df040, 0x1475df038, 0x1475df030, 0x1475df028, 0x1475df020, 0x1475df018, 0x1475df010, 0x1475df008, 0x1475df000, 0x1475deff8, 0x148759d00 — writers 0x1424785d4–0x142478621 in the "nableSharedPools" hidden-window bootstrap 0x1424784xx). 4. The rdx page VA passed to slot 133 can be remapped through the va-map triple 0x149e1dac0/c8/d0 (in-span: if r15 ∈ [base, base+size) then rdx = r15 − base + map[2], else the raw VA); the triple's writers sit at 0x141e6c17a–0x141e6c456 — the pool-commit fn family, the same fn whose XMemAllocatePhysicalPages caller (exe+0x1e6c232) mapped the 6.09 GiB pool at the run's first stall. 5. On resource-type framing: the static span cannot distinguish a placed D16S8 depth texture from a buffer on page-mapped memory — both reach slot 133 (also from the 0x1600/default size-computer sibling 0x14006dd85, which loads the same object at 0x14006dd20). Our next run (post-#1558/#1723 main, so the D16S8 fallback is in-tree) will distinguish: if the E_INVALIDARG persists post-#1558, the attribution narrows to the VA/descriptor arguments. 6. Next static sites: 0x142474690 (the slot/mode lookup producing C3's r9 — names the slot-133 variant for tag 0x981; table base 0x14a943ac0, max 0x14a943ab8, writer 0x141f76882), then 0x142473e20 / 0x142474660 (arena family). Method: raw-chunk `objdump -D -b binary -m i386:x86-64 --adjust-vma` over the verified exe + the run-3 --trace exception record; all addresses exe-relative; no runtime memory involved beyond the trace.
Author
Owner

@tengotengo commented on GitHub (Nov 25, 2026):

claiming: RT-HANG-DUMP-THREAD-STACKS — port the boot-branch-only LEONIDA_HANG_DUMP= knob to main (runtime/shims/startup_trace.h: the log_thread_stack / dump_thread_stacks / start_hang_dump block + the one-line open() hook; single file, +62 lines, env-gated, off by default, stdlib-only): it dumps every thread's stack into the run so a Linux/Proton stall is diagnosable without eu-stack (the knob is a silent no-op on post-#984 main — launch-3's LEONIDA_HANG_DUMP=30 never fired). Verified compiling on current main. AI-assisted.

<!-- gh-comment-id:7174559848 --> @tengotengo commented on GitHub (Nov 25, 2026): claiming: RT-HANG-DUMP-THREAD-STACKS — port the boot-branch-only LEONIDA_HANG_DUMP=<seconds> knob to main (runtime/shims/startup_trace.h: the log_thread_stack / dump_thread_stacks / start_hang_dump block + the one-line open() hook; single file, +62 lines, env-gated, off by default, stdlib-only): it dumps every thread's stack <seconds> into the run so a Linux/Proton stall is diagnosable without eu-stack (the knob is a silent no-op on post-#984 main — launch-3's LEONIDA_HANG_DUMP=30 never fired). Verified compiling on current main. AI-assisted.
Author
Owner

@iker445 commented on GitHub (Nov 25, 2026):

claiming: RT-SLOT133-MOCK-NULLARGS — update xs_proxy_mock_test to expect E_POINTER for the slot 133 null-argument probe (the implemented CreatePlacedResourceX returns E_POINTER when out is null), while retaining the assertion that no PC vtable slot 127 call occurs. Add/adjust only contract assertions; no game files. AI-assisted.

<!-- gh-comment-id:7174582851 --> @iker445 commented on GitHub (Nov 25, 2026): claiming: RT-SLOT133-MOCK-NULLARGS — update xs_proxy_mock_test to expect E_POINTER for the slot 133 null-argument probe (the implemented CreatePlacedResourceX returns E_POINTER when out is null), while retaining the assertion that no PC vtable slot 127 call occurs. Add/adjust only contract assertions; no game files. AI-assisted.
Author
Owner

@Tauwni commented on GitHub (Nov 25, 2026):

claiming: TEST-KOSMICKRISP-CANONICAL-NAN - on KosmicKrisp ps_cndmask_sign_mods and ps_valu16_mad_sel fail every pixel because the driver writes any f32 NaN to RGBA32F as 0x7fc00000 (the measured row in docs/testing.md; my finding above). I will extend the tolerance ps_nan_payload already has to every exact-word pixel test, in check.py and run_gpu_tests.py, on KosmicKrisp only and only in NaN channels. No game files. AI-assisted.

<!-- gh-comment-id:7174641023 --> @Tauwni commented on GitHub (Nov 25, 2026): claiming: TEST-KOSMICKRISP-CANONICAL-NAN - on KosmicKrisp `ps_cndmask_sign_mods` and `ps_valu16_mad_sel` fail every pixel because the driver writes any f32 NaN to RGBA32F as 0x7fc00000 (the measured row in docs/testing.md; my finding above). I will extend the tolerance ps_nan_payload already has to every exact-word pixel test, in check.py and run_gpu_tests.py, on KosmicKrisp only and only in NaN channels. No game files. AI-assisted.
Author
Owner

@Tauwni commented on GitHub (Nov 25, 2026):

done: TEST-KOSMICKRISP-CANONICAL-NAN -> #2110

<!-- gh-comment-id:7174642744 --> @Tauwni commented on GitHub (Nov 25, 2026): done: TEST-KOSMICKRISP-CANONICAL-NAN -> #2110
Author
Owner

@Tauwni commented on GitHub (Nov 25, 2026):

done: TOOL-STAGE-TIMELINE-STDOUT -> #2111

<!-- gh-comment-id:7174647078 --> @Tauwni commented on GitHub (Nov 25, 2026): done: TOOL-STAGE-TIMELINE-STDOUT -> #2111
Author
Owner

@MoonEyes commented on GitHub (Nov 25, 2026):

claiming: TEST-WINDOWS-ANSI-STDERR - tests/test_run_gpu_tests_paths.py::WorkDirectory::test_file_blocking_work_directory_is_a_cli_error fails on a non-English Windows when PYTHONUTF8=1: the child runs with -I (which ignores PYTHONUTF8) and writes the localized OS error in the ANSI code page, the parent decodes it as UTF-8, stderr comes back None and the test dies with a TypeError. Run the child with -X utf8 and decode with encoding="utf-8". Test-only change, reproduced on Windows 11 (French, cp1252). No game files or GPU.
AI-assisted: yes (Claude Code).

<!-- gh-comment-id:7174699096 --> @MoonEyes commented on GitHub (Nov 25, 2026): claiming: TEST-WINDOWS-ANSI-STDERR - tests/test_run_gpu_tests_paths.py::WorkDirectory::test_file_blocking_work_directory_is_a_cli_error fails on a non-English Windows when PYTHONUTF8=1: the child runs with -I (which ignores PYTHONUTF8) and writes the localized OS error in the ANSI code page, the parent decodes it as UTF-8, stderr comes back None and the test dies with a TypeError. Run the child with -X utf8 and decode with encoding="utf-8". Test-only change, reproduced on Windows 11 (French, cp1252). No game files or GPU. AI-assisted: yes (Claude Code).
Author
Owner

@cheltyi commented on GitHub (Nov 25, 2026):

status: D3D-REPLAY-SCOPE-METRICS — implementation and validation complete on cheltyi:perf/replay-scope-metrics (head 12b33866e, diagnostics/test commit 03552636d): https://github.com/cheltyi/leonida/tree/perf/replay-scope-metrics . Based on current main plus #1877. Full portable CTest: 100 passed, 0 failed, 2 conditional skips; explicit scope/sync validation and stats tests pass. Semantic suite: 491 files, 6312 tests, no failures. Synthetic mixed benchmarks pass; no retail FPS claim.

Upstream PR creation is blocked for this authenticated account: GraphQL CreatePullRequest reports insufficient permissions; REST pull creation returns 404, while the repository is readable and the branch is pushed. No upstream PR was created, so this is a status update rather than done -> #PR. The prepared description and measurements are ready. #1877 now records the unsuccessful retail FPS comparison and baseline GPU reset. AI-assisted.

<!-- gh-comment-id:7174701634 --> @cheltyi commented on GitHub (Nov 25, 2026): status: D3D-REPLAY-SCOPE-METRICS — implementation and validation complete on `cheltyi:perf/replay-scope-metrics` (head `12b33866e`, diagnostics/test commit `03552636d`): https://github.com/cheltyi/leonida/tree/perf/replay-scope-metrics . Based on current main plus #1877. Full portable CTest: 100 passed, 0 failed, 2 conditional skips; explicit scope/sync validation and stats tests pass. Semantic suite: 491 files, 6312 tests, no failures. Synthetic mixed benchmarks pass; no retail FPS claim. Upstream PR creation is blocked for this authenticated account: GraphQL `CreatePullRequest` reports insufficient permissions; REST pull creation returns 404, while the repository is readable and the branch is pushed. No upstream PR was created, so this is a status update rather than `done -> #PR`. The prepared description and measurements are ready. #1877 now records the unsuccessful retail FPS comparison and baseline GPU reset. AI-assisted.
Author
Owner

@MoonEyes commented on GitHub (Nov 25, 2026):

done: TEST-WINDOWS-ANSI-STDERR -> #2112. Test-only: the child runs with -X utf8 and the parent decodes UTF-8, so the work-directory CLI test no longer dies on a localized OS error when PYTHONUTF8=1 (reproduced on Windows 11 French, cp1252).
AI-assisted: yes (Claude Code).

<!-- gh-comment-id:7174713358 --> @MoonEyes commented on GitHub (Nov 25, 2026): done: TEST-WINDOWS-ANSI-STDERR -> #2112. Test-only: the child runs with -X utf8 and the parent decodes UTF-8, so the work-directory CLI test no longer dies on a localized OS error when PYTHONUTF8=1 (reproduced on Windows 11 French, cp1252). AI-assisted: yes (Claude Code).
Author
Owner

@syfyra commented on GitHub (Nov 25, 2026):

claiming: SEMANTIC-RUNNER-SHARED-BYTECODE - scripts/run_semantic_tests.py: the processes of a parallel run share the modules they compile through a temporary folder, so tools/rdna2spirv.py is compiled once per run instead of once per test file. Importing it from source takes 7.2 s on Python 3.14.7 and 7.5 s on 3.13.13 (Windows 11), 0.1 s of it code generation: since 3.12 CPython's tokenizer copies the rest of a source string at every f-string { (update_fstring_expr in 3.12's Parser/tokenizer.c) and the file has about 4,800 f-strings; run as a script it starts in 0.4 s. Most files of tests/semantic set sys.dont_write_bytecode before they import it, so with PYTHONDONTWRITEBYTECODE=1 every file compiled it: on 8 cores the 478 files other than test_m*.py take 533 s, and 93 s with the change (the whole suite 577 s and 254 s; with bytecode allowed nothing measurable changes). Nothing is written into the tree. Not touching tests/semantic/test_mutations.py (#1516). No game files, no GPU. AI-assisted.

<!-- gh-comment-id:7174783375 --> @syfyra commented on GitHub (Nov 25, 2026): claiming: SEMANTIC-RUNNER-SHARED-BYTECODE - `scripts/run_semantic_tests.py`: the processes of a parallel run share the modules they compile through a temporary folder, so `tools/rdna2spirv.py` is compiled once per run instead of once per test file. Importing it from source takes 7.2 s on Python 3.14.7 and 7.5 s on 3.13.13 (Windows 11), 0.1 s of it code generation: since 3.12 CPython's tokenizer copies the rest of a source string at every f-string `{` (`update_fstring_expr` in 3.12's `Parser/tokenizer.c`) and the file has about 4,800 f-strings; run as a script it starts in 0.4 s. Most files of `tests/semantic` set `sys.dont_write_bytecode` before they import it, so with `PYTHONDONTWRITEBYTECODE=1` every file compiled it: on 8 cores the 478 files other than `test_m*.py` take 533 s, and 93 s with the change (the whole suite 577 s and 254 s; with bytecode allowed nothing measurable changes). Nothing is written into the tree. Not touching `tests/semantic/test_mutations.py` (#1516). No game files, no GPU. AI-assisted.
Author
Owner

@Tyrannys commented on GitHub (Nov 25, 2026):

done: PIPELINES-STAGE-SHARDS-AND-DONE-LIST -> #2113

<!-- gh-comment-id:7174816742 --> @Tyrannys commented on GitHub (Nov 25, 2026): done: PIPELINES-STAGE-SHARDS-AND-DONE-LIST -> #2113
Author
Owner

@syfyra commented on GitHub (Nov 25, 2026):

done: SEMANTIC-RUNNER-SHARED-BYTECODE -> #2114 (opened as a draft: my account is at the limit of one open pull request). Tested on Windows 11 with Python 3.14.7 and 3.13.13; Python 3.12 and Linux were not run. AI-assisted.

<!-- gh-comment-id:7174834971 --> @syfyra commented on GitHub (Nov 25, 2026): done: SEMANTIC-RUNNER-SHARED-BYTECODE -> #2114 (opened as a draft: my account is at the limit of one open pull request). Tested on Windows 11 with Python 3.14.7 and 3.13.13; Python 3.12 and Linux were not run. AI-assisted.
Author
Owner

@Snooozs commented on GitHub (Nov 25, 2026):

@DadaCap @Undefined3301 you two get frames in the world and I don't yet, so I'd like to copy what you do. My machine: RTX 5060 Ti 16 GB, 32 GB RAM, NVIDIA 621.01, Windows 10. What I run now: #2098 + #1592 (merged with main), LEONIDA_ARENA_MB=2048 LEONIDA_TITLE_WINDOWS_MB=1024 LEONIDA_DEVICE_TYPE=6 LEONIDA_TITLE_WATCHDOG=0, native_hashes.txt and 18,493 fspx_gfx present, host copies and geometry copies as in the base. The story load works, the world starts, and then the title stops submitting. After that nothing is pending on the GPU side: every queue is empty, every fence has completed to its highest submitted Signal, and only the five fence mirrors wait for their next value (local report, n38). Since writes_recorded counts at recording, the unlanded writes I counted are lists the title recorded and never submitted, so please disregard that half of my earlier stall data; I will correct it where I posted it.

What differs between my runs that went on and the ones that stopped: the runs with LEONIDA_ASYNC_PIPELINES=1 (n11, n12, n14: up to 13,394 submissions, 3,942 gates held) kept going, the ones with it off stopped at about 4,200 submissions and about 40 gates. I am running one with only that switch changed now and will report it.

Four questions, whatever you can answer:

  1. RAM and VRAM of the machine, and the free RAM during the world phase? With a 4 GiB arena and window cap my 32 GB are gone at the world start.
  2. Is LEONIDA_ASYNC_PIPELINES on in the runs that show the world? What else do you set that is not in your posts (I have your tree lists and VALUE_WAIT_TIMEOUT_MS=30000, MAP_READBACK=1; @Undefined3301, also the rest of the list in your 18 fps boot)?
  3. @Undefined3301, is the branch with "buffer V#s never deferred" something you can push? The result (18 fps, 5,090 presents, no loss in 604 s) is the best I have read here and I'd like to run it on a second card and report back.
  4. @DadaCap, is your tree of 7167396852 plus VALUE_WAIT and MAP_READBACK still the one that shows lit surfaces, or does a newer one do better? I would test exactly that.

Happy to run any build you have and send counts. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7174942131 --> @Snooozs commented on GitHub (Nov 25, 2026): @DadaCap @Undefined3301 you two get frames in the world and I don't yet, so I'd like to copy what you do. My machine: RTX 5060 Ti 16 GB, 32 GB RAM, NVIDIA 621.01, Windows 10. What I run now: #2098 + #1592 (merged with main), `LEONIDA_ARENA_MB=2048 LEONIDA_TITLE_WINDOWS_MB=1024 LEONIDA_DEVICE_TYPE=6 LEONIDA_TITLE_WATCHDOG=0`, `native_hashes.txt` and 18,493 `fspx_gfx` present, host copies and geometry copies as in the base. The story load works, the world starts, and then the title stops submitting. After that nothing is pending on the GPU side: every queue is empty, every fence has completed to its highest submitted Signal, and only the five fence mirrors wait for their next value (local report, n38). Since `writes_recorded` counts at recording, the unlanded writes I counted are lists the title recorded and never submitted, so please disregard that half of my earlier stall data; I will correct it where I posted it. What differs between my runs that went on and the ones that stopped: the runs with `LEONIDA_ASYNC_PIPELINES=1` (n11, n12, n14: up to 13,394 submissions, 3,942 gates held) kept going, the ones with it off stopped at about 4,200 submissions and about 40 gates. I am running one with only that switch changed now and will report it. Four questions, whatever you can answer: 1. **RAM and VRAM** of the machine, and the free RAM during the world phase? With a 4 GiB arena and window cap my 32 GB are gone at the world start. 2. Is **`LEONIDA_ASYNC_PIPELINES`** on in the runs that show the world? What else do you set that is not in your posts (I have your tree lists and `VALUE_WAIT_TIMEOUT_MS=30000`, `MAP_READBACK=1`; @Undefined3301, also the rest of the list in your 18 fps boot)? 3. @Undefined3301, is the **branch with "buffer V#s never deferred"** something you can push? The result (18 fps, 5,090 presents, no loss in 604 s) is the best I have read here and I'd like to run it on a second card and report back. 4. @DadaCap, is your tree of `7167396852` plus `VALUE_WAIT` and `MAP_READBACK` still the one that shows lit surfaces, or does a newer one do better? I would test exactly that. Happy to run any build you have and send counts. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@cheltyi commented on GitHub (Nov 25, 2026):

done: D3D-REPLAY-SCOPE-METRICS -> #1877. Aggregate opt-in scope counters, histogram/end reasons, and short/mixed synthetic benchmarks are included in the existing rendering-scope PR alongside D3D-REPLAY-DRAW-SCOPE-RUNS; no separate PR. Head 5d58dde1c is based on current main a224b5d14 and was pushed to the original perf/replay-draw-scopes branch without rewriting its reviewed commits. Original PR description now covers the combined change, mixed measurements and retail FPS limits.

Validation: full portable Release build/CTest (100 passed, 2 conditional skips), 6312 semantic tests, and seven focused rendering/query/indirect tests repeated with Vulkan validation and scope diagnostics after the final main merge. All pass; no game data used in fixtures or published reports. AI-assisted. This supersedes the earlier status saying the work needed a separate PR.

<!-- gh-comment-id:7174958139 --> @cheltyi commented on GitHub (Nov 25, 2026): done: D3D-REPLAY-SCOPE-METRICS -> #1877. Aggregate opt-in scope counters, histogram/end reasons, and short/mixed synthetic benchmarks are included in the existing rendering-scope PR alongside D3D-REPLAY-DRAW-SCOPE-RUNS; no separate PR. Head `5d58dde1c` is based on current main `a224b5d14` and was pushed to the original `perf/replay-draw-scopes` branch without rewriting its reviewed commits. Original PR description now covers the combined change, mixed measurements and retail FPS limits. Validation: full portable Release build/CTest (100 passed, 2 conditional skips), 6312 semantic tests, and seven focused rendering/query/indirect tests repeated with Vulkan validation and scope diagnostics after the final main merge. All pass; no game data used in fixtures or published reports. AI-assisted. This supersedes the earlier status saying the work needed a separate PR.
Author
Owner

@azsekazvamdimitar commented on GitHub (Nov 25, 2026):

claiming: RT-CONSOLE-VSHARP-MEMO - after the story load, refresh_console_heap spends most of its time in fix_vsharp on words that repeat across thousands of console heap slots (data that reads as a V# into title memory with no copy, ~3,000-27,000 a submission on my boot): each one walks resolve_title_memory/resolve_pool_memory and calls VirtualQuery, which is slow under Wine. A thread sampler put a third of the submitting thread's time there (main db1a22d29 + #1851 + #1957 + #1867, RTX 3090, GE-Proton). The fix asks fix_vsharp once for each distinct V# in a pass over a heap's slots and drops the answers after the pass. AI-assisted. PR follows.

<!-- gh-comment-id:7174972924 --> @azsekazvamdimitar commented on GitHub (Nov 25, 2026): claiming: RT-CONSOLE-VSHARP-MEMO - after the story load, `refresh_console_heap` spends most of its time in `fix_vsharp` on words that repeat across thousands of console heap slots (data that reads as a V# into title memory with no copy, ~3,000-27,000 a submission on my boot): each one walks `resolve_title_memory`/`resolve_pool_memory` and calls VirtualQuery, which is slow under Wine. A thread sampler put a third of the submitting thread's time there (main db1a22d29 + #1851 + #1957 + #1867, RTX 3090, GE-Proton). The fix asks `fix_vsharp` once for each distinct V# in a pass over a heap's slots and drops the answers after the pass. AI-assisted. PR follows.
Author
Owner

@azsekazvamdimitar commented on GitHub (Nov 25, 2026):

done: RT-CONSOLE-VSHARP-MEMO -> #2117 (a draft: the repository refuses a non-draft pull request from my account while #1086 and #1867 are open). After the story load, heaps 107.8 -> 18.8 ms a submission (max 5,332 -> 1,109), 31% -> 7% of the submitting thread's time, on main db1a22d29 + #1851 + #1957 + #1867 under GE-Proton, RTX 3090. d3d12_console_descriptor_heap, d3d12_unmapped_vsharp and console_heap_vsharp_slots pass under WineHQ 11.22 and GE-Proton11-14; not run on Windows. AI-assisted.

<!-- gh-comment-id:7175033210 --> @azsekazvamdimitar commented on GitHub (Nov 25, 2026): done: RT-CONSOLE-VSHARP-MEMO -> #2117 (a draft: the repository refuses a non-draft pull request from my account while #1086 and #1867 are open). After the story load, heaps 107.8 -> 18.8 ms a submission (max 5,332 -> 1,109), 31% -> 7% of the submitting thread's time, on main db1a22d29 + #1851 + #1957 + #1867 under GE-Proton, RTX 3090. d3d12_console_descriptor_heap, d3d12_unmapped_vsharp and console_heap_vsharp_slots pass under WineHQ 11.22 and GE-Proton11-14; not run on Windows. AI-assisted.
Author
Owner

@tiguan26 commented on GitHub (Nov 25, 2026):

done: RT-LIST-VALUES-STALL-SNAPSHOT -> #2116

Wider than the claim, after @Snooozs' data: besides the unlanded write groups and gates, the snapshot lists the CPU waits on fences that are not satisfied and each queue's oldest held operation, each with the fence's counter and the highest Signal submitted for it. A new writes_submitted counter is printed in the summary line, and the pump now looks every 10 s when idle (it waited forever, so a title that stopped submitting got no summary). Logging only.

@Snooozs thank you, that table is exactly what this needed. One thing it already suggests: writes_recorded is counted once per recording (record_value_op, d3d12_xs_device.cpp), not per submission, so a pending count that stays at 113 whatever else changes fits writes in command lists the title recorded and never executed better than writes stuck in flight. The new summary line shows that directly: if submitted equals landed in a stalled run, the 113 are such lists. The parts I expect to matter are the stall report lines from the D3D12 layer: a CPU fence wait or a held queue whose fence has no Signal of that value submitted yet names what the title is waiting for. With #2116 the snapshot comes out by itself about 30 s after the counters stop (look for stall snapshot and stall report in stderr), so a run to the stall with your usual switches is all it needs. If you can, a second run with LEONIDA_LIST_VALUES=0 (list values off) would show whether the stall depends on them at all. AI-assisted (Claude).

<!-- gh-comment-id:7175037194 --> @tiguan26 commented on GitHub (Nov 25, 2026): done: RT-LIST-VALUES-STALL-SNAPSHOT -> #2116 Wider than the claim, after @Snooozs' data: besides the unlanded write groups and gates, the snapshot lists the CPU waits on fences that are not satisfied and each queue's oldest held operation, each with the fence's counter and the highest Signal submitted for it. A new `writes_submitted` counter is printed in the summary line, and the pump now looks every 10 s when idle (it waited forever, so a title that stopped submitting got no summary). Logging only. @Snooozs thank you, that table is exactly what this needed. One thing it already suggests: `writes_recorded` is counted once per recording (`record_value_op`, d3d12_xs_device.cpp), not per submission, so a pending count that stays at 113 whatever else changes fits writes in command lists the title recorded and never executed better than writes stuck in flight. The new summary line shows that directly: if `submitted` equals `landed` in a stalled run, the 113 are such lists. The parts I expect to matter are the `stall report` lines from the D3D12 layer: a CPU fence wait or a held queue whose fence has `no Signal of that value submitted yet` names what the title is waiting for. With #2116 the snapshot comes out by itself about 30 s after the counters stop (look for `stall snapshot` and `stall report` in stderr), so a run to the stall with your usual switches is all it needs. If you can, a second run with `LEONIDA_LIST_VALUES=0` (list values off) would show whether the stall depends on them at all. AI-assisted (Claude).
Author
Owner

@kevincommits commented on GitHub (Nov 25, 2026):

claiming: TOOL-CORPUS-WATCH-STDOUT - tests/test_tool_stdout_encoding.py lists scripts/corpus_watch.py (added in 5ba7f354); its __main__ block lacks the errors='replace' stdout guard. Only that file; #1561, #1673, #1789, #1837, #1866 and #2111 cover the other three.

<!-- gh-comment-id:7175070245 --> @kevincommits commented on GitHub (Nov 25, 2026): claiming: TOOL-CORPUS-WATCH-STDOUT - `tests/test_tool_stdout_encoding.py` lists `scripts/corpus_watch.py` (added in `5ba7f354`); its `__main__` block lacks the `errors='replace'` stdout guard. Only that file; #1561, #1673, #1789, #1837, #1866 and #2111 cover the other three.
Author
Owner

@kevincommits commented on GitHub (Nov 25, 2026):

done: TOOL-CORPUS-WATCH-STDOUT -> #2118 (opened as a draft)

<!-- gh-comment-id:7175082557 --> @kevincommits commented on GitHub (Nov 25, 2026): done: TOOL-CORPUS-WATCH-STDOUT -> #2118 (opened as a draft)
Author
Owner

@Undefined3301 commented on GitHub (Nov 25, 2026):

claiming: FSPX-REANCHOR-DOT4-SEL — the last two FidelityFX FSPX programs translate by applying the existing restore_dot4_inline_sel repair in the exact re-anchoring path.

A listing whose invalid_at names every rejected word anchors by skipping them; that branch had the v_fma_mix* repairs but not the v_dot4_i32_i8 one, so a stored dot4 with op_sel_hi[1]=0 (inline integer on S1, re-encoded by LLVM with its default selector) was marked normalized and ended restore_vcc_tuples' walk; reachable_code then refused the fall-through. Adding the repair fires exactly twice over the 29 programs (one word in _03, one in _18). Result: 29/29 translate and pass spirv-val, the 27 earlier modules are byte-identical, and the full translator suite is 492 files / 6,316 tests / 0 failed. New hand-written fixture test_reanchor_dot4_sel.py; docs updated. Branch Undefined3301:fspx-reanchor-dot4 (8874237dd, on main db1a22d29) is pushed; PR next after #2109.

<!-- gh-comment-id:7175083337 --> @Undefined3301 commented on GitHub (Nov 25, 2026): claiming: FSPX-REANCHOR-DOT4-SEL — the last two FidelityFX FSPX programs translate by applying the existing `restore_dot4_inline_sel` repair in the exact re-anchoring path. A listing whose `invalid_at` names every rejected word anchors by skipping them; that branch had the `v_fma_mix*` repairs but not the `v_dot4_i32_i8` one, so a stored dot4 with `op_sel_hi[1]=0` (inline integer on S1, re-encoded by LLVM with its default selector) was marked normalized and ended `restore_vcc_tuples`' walk; `reachable_code` then refused the fall-through. Adding the repair fires exactly twice over the 29 programs (one word in `_03`, one in `_18`). Result: **29/29 translate and pass spirv-val**, the 27 earlier modules are byte-identical, and the full translator suite is 492 files / 6,316 tests / 0 failed. New hand-written fixture `test_reanchor_dot4_sel.py`; docs updated. Branch `Undefined3301:fspx-reanchor-dot4` (8874237dd, on main db1a22d29) is pushed; PR next after #2109.
Author
Owner

@DadaCap commented on GitHub (Nov 25, 2026):

@Snooozs answers for this machine (RTX 5080 16 GB, 621.24, 64 GB RAM, Windows 11):

  1. Memory. Private bytes peak at 28 to 36 GB in the world phase, and VRAM in use is about 15.6 GB of 16 (nvidia-smi, one run). With 32 GB of RAM a 4 GiB arena plus a 4 GiB window cap will not fit, as you saw. I have no working smaller setting to offer; I did not try one recently.
  2. LEONIDA_ASYNC_PIPELINES is off in all the runs that show the world. The whole list: LEONIDA_DEVICE_TYPE=6 LEONIDA_TITLE_WATCHDOG=0 LEONIDA_MAP_READBACK=1 LEONIDA_HOST_IMAGE_COPY=0 LEONIDA_ARENA_MB=4095 LEONIDA_TITLE_WINDOWS_MB=4096 LEONIDA_SERIAL_BIG_COMPILES=0 LEONIDA_STARTUP_CACHE_CHECKPOINTS=1 LEONIDA_PIPELINE_CACHE_BYTES=4294967296 LEONIDA_HANG_EXIT_S=240 LEONIDA_FRAME_PACING=1 LEONIDA_PRESENT_NO_TEAR=1 LEONIDA_CURSOR_CLIP=0 LEONIDA_DEVICE_FAULT=1 LEONIDA_SKIP_INT3=1 plus a pad script that presses A. Geometry copies are off. LEONIDA_SERIAL_BIG_COMPILES and the host-copy switch may not exist on main under these names (local or #1851). Async on lost the device twice out of two here (numbers on #2077); sync lost it in two of the nine sync runs of this evening (4 to 15 minutes each).
  3. (for Undefined3301)
  4. A newer tree: main through be2f4026c + #429, #1592, #1756, #1957, #1972, #1918, #2097, #2102 and local work that is not posted (title texture pass, VRAM, a retry list for empty heap slots). One run tonight showed a street with ground, buildings and lit surfaces for a few frames (correction: that run was the same tree before the last main merge, at db1a22d29, plus OreoFR's title-refresh-async-dada branch with its two switches on); others of the same shaders alternate black and white frames, so exposure or NaN is unstable here and I do not call the picture solved. I cannot say that #2097 made the difference: that is not tested separately.

On your stall: here the runs that go on end with about 128 of 13,218 recorded values not landed (the title keeps submitting), so an unlanded count of that size does not by itself mean a stall, which agrees with your correction.

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

<!-- gh-comment-id:7175107207 --> @DadaCap commented on GitHub (Nov 25, 2026): @Snooozs answers for this machine (RTX 5080 16 GB, 621.24, 64 GB RAM, Windows 11): 1. **Memory.** Private bytes peak at 28 to 36 GB in the world phase, and VRAM in use is about 15.6 GB of 16 (`nvidia-smi`, one run). With 32 GB of RAM a 4 GiB arena plus a 4 GiB window cap will not fit, as you saw. I have no working smaller setting to offer; I did not try one recently. 2. **`LEONIDA_ASYNC_PIPELINES` is off** in all the runs that show the world. The whole list: `LEONIDA_DEVICE_TYPE=6 LEONIDA_TITLE_WATCHDOG=0 LEONIDA_MAP_READBACK=1 LEONIDA_HOST_IMAGE_COPY=0 LEONIDA_ARENA_MB=4095 LEONIDA_TITLE_WINDOWS_MB=4096 LEONIDA_SERIAL_BIG_COMPILES=0 LEONIDA_STARTUP_CACHE_CHECKPOINTS=1 LEONIDA_PIPELINE_CACHE_BYTES=4294967296 LEONIDA_HANG_EXIT_S=240 LEONIDA_FRAME_PACING=1 LEONIDA_PRESENT_NO_TEAR=1 LEONIDA_CURSOR_CLIP=0 LEONIDA_DEVICE_FAULT=1 LEONIDA_SKIP_INT3=1` plus a pad script that presses A. Geometry copies are off. `LEONIDA_SERIAL_BIG_COMPILES` and the host-copy switch may not exist on main under these names (local or #1851). Async on lost the device twice out of two here (numbers on #2077); sync lost it in two of the nine sync runs of this evening (4 to 15 minutes each). 3. (for Undefined3301) 4. **A newer tree:** main through `be2f4026c` + #429, #1592, #1756, #1957, #1972, #1918, #2097, #2102 and local work that is not posted (title texture pass, VRAM, a retry list for empty heap slots). One run tonight showed a street with ground, buildings and lit surfaces for a few frames (correction: that run was the same tree before the last main merge, at `db1a22d29`, plus OreoFR's `title-refresh-async-dada` branch with its two switches on); others of the same shaders alternate black and white frames, so exposure or NaN is unstable here and I do not call the picture solved. I cannot say that #2097 made the difference: that is not tested separately. On your stall: here the runs that go on end with about 128 of 13,218 recorded values not landed (the title keeps submitting), so an unlanded count of that size does not by itself mean a stall, which agrees with your correction. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@Snooozs commented on GitHub (Nov 25, 2026):

@Undefined3301 before you open the pull request for FSPX-REANCHOR-DOT4-SEL: #1662 (@Tyrannys, open, mergeable) is the same one-line change in the exact re-anchor path (restore_dot4_inline_sel when the window's encoding differs), with its own fixture test_reanchor_dot4_inline_sel.py and the docs/design.md line. Your measurement (fires twice over the 29 programs, 27 modules byte-identical, 492 files / 6,316 tests) is the part I would give to that pull request; it says the same thing from your side. I have not built either. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7175110698 --> @Snooozs commented on GitHub (Nov 25, 2026): @Undefined3301 before you open the pull request for FSPX-REANCHOR-DOT4-SEL: [#1662](https://github.com/ubiquitarianism/leonida/pull/1662) (@Tyrannys, open, mergeable) is the same one-line change in the exact re-anchor path (`restore_dot4_inline_sel` when the window's encoding differs), with its own fixture `test_reanchor_dot4_inline_sel.py` and the `docs/design.md` line. Your measurement (fires twice over the 29 programs, 27 modules byte-identical, 492 files / 6,316 tests) is the part I would give to that pull request; it says the same thing from your side. I have not built either. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@c0pperlane commented on GitHub (Nov 25, 2026):

claiming: DOC-DESIGN-PAL-STAGES-DUP — docs/design.md has the section "## PAL stage descriptors" twice, verbatim (lines 625-639 and 641-655 on main db1a22d2); keep one copy and restore the blank line before its heading. No game files needed. AI-assisted.

<!-- gh-comment-id:7175124818 --> @c0pperlane commented on GitHub (Nov 25, 2026): claiming: DOC-DESIGN-PAL-STAGES-DUP — `docs/design.md` has the section "## PAL stage descriptors" twice, verbatim (lines 625-639 and 641-655 on main db1a22d2); keep one copy and restore the blank line before its heading. No game files needed. AI-assisted.
Author
Owner

@c0pperlane commented on GitHub (Nov 25, 2026):

claiming:

  • RT-PREPARE-KEPT-STORAGE-COST — replay_cpu_bench on main: refilling a PreparedList in kept storage costs 1,177-1,311 ns per entry ("entries, storage kept") against 30-405 ns made fresh, and prepare is ~1.2-1.5 µs for every command kind, a transition pair included (detail::Prepared is 1,408 bytes). Find where the kept path spends it and make reuse no dearer than a fresh list; measured with the bench's own rows.
  • RT-DSV-READ-ONLY-LAYOUT — the draw path ignores D3D12_DSV_FLAG_READ_ONLY_DEPTH/_STENCIL: a bound DSV always moves to DEPTH_STENCIL_ATTACHMENT_OPTIMAL (runtime/src/vulkan_replay.h draw setup), so a depth texture sampled while bound as a read-only DSV is in the wrong layout for its descriptor. Use the read-only layout for a read-only DSV with no depth/stencil writes (listed as a known gap in docs/d3d12_vulkan.md).

No game files needed. AI-assisted.

<!-- gh-comment-id:7175164119 --> @c0pperlane commented on GitHub (Nov 25, 2026): claiming: - RT-PREPARE-KEPT-STORAGE-COST — `replay_cpu_bench` on main: refilling a `PreparedList` in kept storage costs 1,177-1,311 ns per entry ("entries, storage kept") against 30-405 ns made fresh, and prepare is ~1.2-1.5 µs for every command kind, a transition pair included (`detail::Prepared` is 1,408 bytes). Find where the kept path spends it and make reuse no dearer than a fresh list; measured with the bench's own rows. - RT-DSV-READ-ONLY-LAYOUT — the draw path ignores `D3D12_DSV_FLAG_READ_ONLY_DEPTH`/`_STENCIL`: a bound DSV always moves to `DEPTH_STENCIL_ATTACHMENT_OPTIMAL` (`runtime/src/vulkan_replay.h` draw setup), so a depth texture sampled while bound as a read-only DSV is in the wrong layout for its descriptor. Use the read-only layout for a read-only DSV with no depth/stencil writes (listed as a known gap in docs/d3d12_vulkan.md). No game files needed. AI-assisted.
Author
Owner

@robot00f commented on GitHub (Nov 25, 2026):

done: SHADER-W64-XROUND-BARRIERS -> #2119 (opened as a draft: the repository's one-open-PR limit applies while prior PRs are open; claim: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7172190888). Cuts probe/waterfall --wave64-emulate barriers by -50% (641 -> 321, 1,281 -> 641) and cold GTX 1050 Ti vkCreateComputePipelines time by -68.5% to -69.6% (6.062 s -> 1.907 s, 17.433 s -> 5.296 s), plus -6.1% to -12.5% on pure 192-VGPR unfolded saveexec trees; 24/24 GPU cs_w64x_* / cs_wavemask / cs_wave64_ballot and 3/3 cs_w64x_xround_coalesce verified under LEONIDA_W64_EMULATE=1.

AI-assisted: yes (Antigravity, Gemini 4 Carbon)

<!-- gh-comment-id:7175172826 --> @robot00f commented on GitHub (Nov 25, 2026): done: `SHADER-W64-XROUND-BARRIERS` -> #2119 (opened as a draft: the repository's one-open-PR limit applies while prior PRs are open; claim: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7172190888). Cuts probe/waterfall `--wave64-emulate` barriers by `-50%` (`641 -> 321`, `1,281 -> 641`) and cold GTX 1050 Ti `vkCreateComputePipelines` time by `-68.5%` to `-69.6%` (`6.062 s -> 1.907 s`, `17.433 s -> 5.296 s`), plus `-6.1%` to `-12.5%` on pure 192-VGPR unfolded `saveexec` trees; 24/24 GPU `cs_w64x_*` / `cs_wavemask` / `cs_wave64_ballot` and 3/3 `cs_w64x_xround_coalesce` verified under `LEONIDA_W64_EMULATE=1`. AI-assisted: yes (Antigravity, Gemini 4 Carbon)
Author
Owner

@OreoFR commented on GitHub (Nov 25, 2026):

claiming: RT-TITLE-EVERY-BUDGET — an opt-in time limit for the mapped and stale textures the title texture pass visits every pass (LEONIDA_TITLE_EVERY_BUDGET_US, default 0 = unchanged). The visits resume from their own cursor so every marked texture gets its turn; a mapped texture never filled yet is visited first whatever the limit. The pass stays synchronous, before the submission. Measured: RTX 4070 Laptop (621.40), on the same base, the pass went from ~43 ms to 4-8 ms with ~2× submissions by 240 s; @DadaCap on an RTX 5080 (621.24) measured 20.3 → 6.3 ms for the pass with no change in submissions/s (limited elsewhere). Touches the same loop as #2050 and #2098, so whichever lands second rebases. The asynchronous part is not claimed: #2098 already adds LEONIDA_TEXTURE_REFRESH_ASYNC.

<!-- gh-comment-id:7175193465 --> @OreoFR commented on GitHub (Nov 25, 2026): claiming: RT-TITLE-EVERY-BUDGET — an opt-in time limit for the mapped and stale textures the title texture pass visits every pass (`LEONIDA_TITLE_EVERY_BUDGET_US`, default 0 = unchanged). The visits resume from their own cursor so every marked texture gets its turn; a mapped texture never filled yet is visited first whatever the limit. The pass stays synchronous, before the submission. Measured: RTX 4070 Laptop (621.40), on the same base, the pass went from ~43 ms to 4-8 ms with ~2× submissions by 240 s; @DadaCap on an RTX 5080 (621.24) measured 20.3 → 6.3 ms for the pass with no change in submissions/s (limited elsewhere). Touches the same loop as #2050 and #2098, so whichever lands second rebases. The asynchronous part is not claimed: #2098 already adds `LEONIDA_TEXTURE_REFRESH_ASYNC`.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

claiming: SHADER-MBCNT-SHIFT-IN-RANGE — mask rel with 31 before OpShiftLeftLogical in v_mbcnt_lo_u32_b32 / v_mbcnt_hi_u32_b32 (tools/rdna2spirv.py) so lanes >= 32 (for _lo) and lanes < 32 (for _hi) never execute SPIR-V UB (Shift >= 32) on the discarded side of OpSelect.

<!-- gh-comment-id:7175227808 --> @ShotTechOp commented on GitHub (Nov 25, 2026): claiming: SHADER-MBCNT-SHIFT-IN-RANGE — mask `rel` with `31` before `OpShiftLeftLogical` in `v_mbcnt_lo_u32_b32` / `v_mbcnt_hi_u32_b32` (`tools/rdna2spirv.py`) so lanes `>= 32` (for `_lo`) and lanes `< 32` (for `_hi`) never execute SPIR-V UB (`Shift >= 32`) on the discarded side of `OpSelect`.
Author
Owner

@ShotTechOp commented on GitHub (Nov 25, 2026):

done: SHADER-MBCNT-SHIFT-IN-RANGE -> #2121

<!-- gh-comment-id:7175229687 --> @ShotTechOp commented on GitHub (Nov 25, 2026): done: SHADER-MBCNT-SHIFT-IN-RANGE -> #2121
Author
Owner

@qhukz13 commented on GitHub (Nov 25, 2026):

claiming: RT-D16S8-D24-UAV - follow-up of #1558: on GPUs where console D16S8 (format 118) is made as D24_UNORM_S8_UINT (all NVIDIA by default), Resource::enable_depth_stencil_uav (runtime/shims/d3d12_vulkan_device.cpp) refuses the texture, so slots 76/133 make it without ALLOW_UNORDERED_ACCESS. Give it the same R16/R8 storage planes as the widened D16S8 path, converting depth between D24 words and 16-bit UNORM with the existing Depth24Converter. Measured on a GTX 1050 Ti; test xbox_d16s8_d24_storage replaces xbox_d16s8_refused_uav.

<!-- gh-comment-id:7175280032 --> @qhukz13 commented on GitHub (Nov 25, 2026): claiming: RT-D16S8-D24-UAV - follow-up of #1558: on GPUs where console D16S8 (format 118) is made as `D24_UNORM_S8_UINT` (all NVIDIA by default), `Resource::enable_depth_stencil_uav` (`runtime/shims/d3d12_vulkan_device.cpp`) refuses the texture, so slots 76/133 make it without `ALLOW_UNORDERED_ACCESS`. Give it the same R16/R8 storage planes as the widened D16S8 path, converting depth between D24 words and 16-bit UNORM with the existing `Depth24Converter`. Measured on a GTX 1050 Ti; test `xbox_d16s8_d24_storage` replaces `xbox_d16s8_refused_uav`.
Author
Owner

@QemmHD commented on GitHub (Nov 25, 2026):

claiming: DSTORAGE-HOLD-PAGE-READS - a queue that submits itself at half capacity starts reads into physical pages before the title has filled their page table (it does so just before Submit), so those reads fail or land in the wrong page. Fix: hold page reads, and what queues behind them, until the title's Submit. Idea from fxceless/victory-fork 79cfdd9, written anew. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7175287092 --> @QemmHD commented on GitHub (Nov 25, 2026): claiming: DSTORAGE-HOLD-PAGE-READS - a queue that submits itself at half capacity starts reads into physical pages before the title has filled their page table (it does so just before Submit), so those reads fail or land in the wrong page. Fix: hold page reads, and what queues behind them, until the title's Submit. Idea from fxceless/victory-fork 79cfdd9, written anew. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@qhukz13 commented on GitHub (Nov 25, 2026):

done: RT-D16S8-D24-UAV -> #2123

<!-- gh-comment-id:7175288056 --> @qhukz13 commented on GitHub (Nov 25, 2026): done: RT-D16S8-D24-UAV -> #2123
Author
Owner

@QemmHD commented on GitHub (Nov 25, 2026):

done: DSTORAGE-HOLD-PAGE-READS -> #2124. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7175295716 --> @QemmHD commented on GitHub (Nov 25, 2026): done: DSTORAGE-HOLD-PAGE-READS -> #2124. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@kevincommits commented on GitHub (Nov 25, 2026):

claiming: GPU-M5PRO-20CORE-MACOS27 - GPU test results for an Apple M5 Pro with the 20-core GPU on MoltenVK 1.4.2, macOS 27.2.1 (26B131), at main 24d8af66a: a new gpu-test-results/AppleM5Pro-20core-macOS27.txt plus a row in docs/gpu_test_results.md. The existing M5 Pro record (16-core GPU, macOS 26.7.3, d42773d07) stays as it is. ps_ssharp passes 20/20 on this OS. No game files. AI-assisted.

<!-- gh-comment-id:7175415336 --> @kevincommits commented on GitHub (Nov 25, 2026): claiming: GPU-M5PRO-20CORE-MACOS27 - GPU test results for an Apple M5 Pro with the 20-core GPU on MoltenVK 1.4.2, macOS 27.2.1 (26B131), at main `24d8af66a`: a new `gpu-test-results/AppleM5Pro-20core-macOS27.txt` plus a row in `docs/gpu_test_results.md`. The existing M5 Pro record (16-core GPU, macOS 26.7.3, `d42773d07`) stays as it is. `ps_ssharp` passes 20/20 on this OS. No game files. AI-assisted.
Author
Owner

@kevincommits commented on GitHub (Nov 25, 2026):

done: GPU-M5PRO-20CORE-MACOS27 -> #2125 (opened as a draft: the repository refuses a second non-draft pull request from my account while #2118 is open)

<!-- gh-comment-id:7175416608 --> @kevincommits commented on GitHub (Nov 25, 2026): done: GPU-M5PRO-20CORE-MACOS27 -> #2125 (opened as a draft: the repository refuses a second non-draft pull request from my account while #2118 is open)
Author
Owner

@djrolfes commented on GitHub (Nov 25, 2026):

finding: under Wine on NVIDIA 620.73, create_host_buffer and import_console_heap (runtime/shims/d3d12_vulkan_device.cpp) attempt VK_EXT_external_memory_host imports on file-backed MEM_MAPPED views (such as LEONIDA_XMEM_BACKING_DIR sparse files) and multi-VMA ranges, and retry the same memory types twice across both passes.

  • Where: runtime/shims/d3d12_vulkan_device.cpp (import_console_heap, create_host_buffer, OpenExistingHeapFromAddress, and the ImageMemory block allocator).
  • Why it matters: On Linux, nvidia.ko rejects long-term pinning of file-backed MAP_SHARED views (Cannot map memory with base addr ...) and multi-VMA ranges. In a clean-main (490f5b9ec) RTX 3070 Ti / NVIDIA 620.73.04 / Wine --first-run-ui offline run, a burst of 16 kernel rejections across 7 MEM_MAPPED XMem addresses (while 214/214 MEM_PRIVATE imports succeeded) coincided with vkAllocateMemory returning VK_ERROR_OUT_OF_HOST_MEMORY (-1) on both VRAM (~6 GiB free) and system RAM (~14 GiB free) for a 7.5 MiB slot-133 depth texture (hr=0x8007000e), ending the boot at 28.42 s. In addition, create_host_buffer checked writability before kernel_writes::hold (leaving a TOCTOU window), all three host-import loops re-probed preferred memory types during the want = 0 pass, and import_console_heap / OpenExistingHeapFromAddress / ImageMemory called vkAllocateMemory without DeviceState::memory_mutex().
  • Repro: Pure-CPU policy check + synthetic sparse disk-file CreateFileMappingW/MapViewOfFile case in d3d12_existing_heap_test (no game files needed); A/B retail check needs own package + NVIDIA Linux/Wine.

claiming: RT-WINE-HOST-IMPORT-POLICY — add portable runtime/src/host_import_policy.h + host_import_policy_test (decline file-backed MEM_MAPPED views via K32GetMappedFileNameW and multi-AllocationBase ranges under Wine while preserving MEM_PRIVATE and anonymous pagefile section imports; deduplicate host-import memory types), re-check importability after kernel_writes::hold, hold DeviceState::memory_mutex() consistently across all device vkAllocateMemory sites, and add a sparse file-backed section regression case to d3d12_existing_heap_test. AI-assisted.

<!-- gh-comment-id:7175462346 --> @djrolfes commented on GitHub (Nov 25, 2026): finding: under Wine on NVIDIA 620.73, `create_host_buffer` and `import_console_heap` (`runtime/shims/d3d12_vulkan_device.cpp`) attempt `VK_EXT_external_memory_host` imports on file-backed `MEM_MAPPED` views (such as `LEONIDA_XMEM_BACKING_DIR` sparse files) and multi-VMA ranges, and retry the same memory types twice across both passes. - **Where:** `runtime/shims/d3d12_vulkan_device.cpp` (`import_console_heap`, `create_host_buffer`, `OpenExistingHeapFromAddress`, and the `ImageMemory` block allocator). - **Why it matters:** On Linux, `nvidia.ko` rejects long-term pinning of file-backed `MAP_SHARED` views (`Cannot map memory with base addr ...`) and multi-VMA ranges. In a clean-main (`490f5b9ec`) RTX 3070 Ti / NVIDIA 620.73.04 / Wine `--first-run-ui` offline run, a burst of 16 kernel rejections across 7 `MEM_MAPPED` XMem addresses (while 214/214 `MEM_PRIVATE` imports succeeded) coincided with `vkAllocateMemory` returning `VK_ERROR_OUT_OF_HOST_MEMORY` (`-1`) on both VRAM (~6 GiB free) and system RAM (~14 GiB free) for a 7.5 MiB slot-133 depth texture (`hr=0x8007000e`), ending the boot at 28.42 s. In addition, `create_host_buffer` checked writability before `kernel_writes::hold` (leaving a TOCTOU window), all three host-import loops re-probed preferred memory types during the `want = 0` pass, and `import_console_heap` / `OpenExistingHeapFromAddress` / `ImageMemory` called `vkAllocateMemory` without `DeviceState::memory_mutex()`. - **Repro:** Pure-CPU policy check + synthetic sparse disk-file `CreateFileMappingW`/`MapViewOfFile` case in `d3d12_existing_heap_test` (no game files needed); A/B retail check needs own package + NVIDIA Linux/Wine. claiming: RT-WINE-HOST-IMPORT-POLICY — add portable `runtime/src/host_import_policy.h` + `host_import_policy_test` (decline file-backed `MEM_MAPPED` views via `K32GetMappedFileNameW` and multi-`AllocationBase` ranges under Wine while preserving `MEM_PRIVATE` and anonymous pagefile section imports; deduplicate host-import memory types), re-check importability after `kernel_writes::hold`, hold `DeviceState::memory_mutex()` consistently across all device `vkAllocateMemory` sites, and add a sparse file-backed section regression case to `d3d12_existing_heap_test`. AI-assisted.
Author
Owner

@djrolfes commented on GitHub (Nov 25, 2026):

done: RT-WINE-HOST-IMPORT-POLICY -> #2126 (opened as a draft: one-open-PR limit applies while prior PRs are open). Verified with native portable CTest (100/100), Wine synthetic tests (4/4 incl. new sparse file-backed section case, 0 kernel Cannot map memory errors), and a 300 s RTX 3070 Ti / NVIDIA 620.73.04 / Wine --first-run-ui A/B check (16 -> 0 kernel errors, 28.42 s E_OUTOFMEMORY stop -> full 300.88 s run with 7,990 PresentX and 0 vkAllocateMemory failures). AI-assisted.

<!-- gh-comment-id:7175463982 --> @djrolfes commented on GitHub (Nov 25, 2026): done: RT-WINE-HOST-IMPORT-POLICY -> #2126 (opened as a draft: one-open-PR limit applies while prior PRs are open). Verified with native portable CTest (100/100), Wine synthetic tests (4/4 incl. new sparse file-backed section case, 0 kernel `Cannot map memory` errors), and a 300 s RTX 3070 Ti / NVIDIA 620.73.04 / Wine `--first-run-ui` A/B check (16 -> 0 kernel errors, 28.42 s `E_OUTOFMEMORY` stop -> full 300.88 s run with 7,990 `PresentX` and 0 `vkAllocateMemory` failures). AI-assisted.
Author
Owner

@Anonymous78e commented on GitHub (Nov 25, 2026):

claiming: TEST-SEMANTIC-TIMEOUT-QUICK-LOAD - tests/test_run_semantic_tests.py::RunnerTest::test_parallel_timeout_reports_partial_output_and_keeps_healthy_modules runs the two healthy modules under the same --timeout 1 as the hanging one, so on a loaded CPU they time out too ("3 files, 0 tests, 3 files failed"). Reproduced on Windows 11 with 48 CPU spinners: 8 of 10 runs fail on main ab2fb71cb, 0 of 5 without load. Test-only: give the run a limit the healthy modules cannot reach, keep the hang. Same kind of fix as #1427. No game files. AI-assisted.

<!-- gh-comment-id:7175566137 --> @Anonymous78e commented on GitHub (Nov 25, 2026): claiming: TEST-SEMANTIC-TIMEOUT-QUICK-LOAD - `tests/test_run_semantic_tests.py::RunnerTest::test_parallel_timeout_reports_partial_output_and_keeps_healthy_modules` runs the two healthy modules under the same `--timeout 1` as the hanging one, so on a loaded CPU they time out too ("3 files, 0 tests, 3 files failed"). Reproduced on Windows 11 with 48 CPU spinners: 8 of 10 runs fail on main ab2fb71cb, 0 of 5 without load. Test-only: give the run a limit the healthy modules cannot reach, keep the hang. Same kind of fix as #1427. No game files. AI-assisted.
Author
Owner

@fiestorra commented on GitHub (Nov 25, 2026):

finding: a boot of 1.0.2.1 under gta6rt --run with LEONIDA_D3D12=vulkan on an RTX 4090 (Windows 11, driver 32.0.16.2124) reaches a frame and then stops advancing, with counts only. Same machine and package as my earlier findings; main at 71a769d7d, runtime built with Visual Studio 2022 (RelWithDebInfo), shaders from the shaders stage, pipeline_cache.bin 725,043,124 bytes, nothing from the game is quoted here.

What runs: a 900 s run traced 2,851,173 D3D12 calls, created 25,007 graphics pipeline states and 74,068 PresentX succeeded (~82/s), with 111,103 DrawInstanced and 288,033 DrawIndexedInstanced. Zero device-lost and zero VK_ERROR. One access violation is caught by the title: 0xc0000005 write at 0x0, game_scarlett_master.exe+0x2215c35, at 56.8 s of the trace, after which the run continues, which matches the first-fire reports above.

What it presents, via LEONIDA_CAPTURE plus LEONIDA_CAPTURE_SOURCE (so the title's own back buffer is captured as well as the swapchain): the first ~1,500 presents are pure black, then the image becomes non-black and then never changes again. In a 600 s run the captured frames at 4,001, 8,001, …, 32,001 are byte-identical (equal MD5) in both the 3840x2160 source and the 1028x744 swapchain, mean RGB 32.33/32.33/44.30, 8,286,042 of 8,294,400 source texels non-zero, 777 distinct colours in the swapchain image. Three runs put the black-to-image transition somewhere between presents 2,401 and 4,801, so the moment varies run to run.

Threads at that moment (sampling Get-Process from PowerShell): 109 threads, 2 running at 100 % CPU (~5 s of CPU each over 5 s) and 106 waiting (<0.05 s in 5 s).

Stacks: procdump -mm and cdb give all threads; of the 51 with a guest frame, the top-most guest RIPs cluster as 15 threads at game+0x221c3c2, 11 at game+0x22511f, 7 at game+0x56a0d, 5 at game+0x43c421e, and singles elsewhere. No thread has three or more guest frames: above the first one everything is runtime or host code, so the title's threads sit in host calls.

What this does not settle: whether that is a stalled load or a screen waiting for input. I posted Return, Space and Escape to the process's four windows (__wglDummyWindowFodder, Leonida, Temp Window, Americas) with PostMessage mid-run and a control run without input; both reached the still image, so the experiment does not distinguish them. It also does not name the RVAs (no symbols) and does not prove the load is stuck rather than slow: it was still presenting when I stopped it.

Written with an AI assistant.

<!-- gh-comment-id:7175629817 --> @fiestorra commented on GitHub (Nov 25, 2026): finding: a boot of 1.0.2.1 under `gta6rt --run` with `LEONIDA_D3D12=vulkan` on an RTX 4090 (Windows 11, driver 32.0.16.2124) reaches a frame and then stops advancing, with counts only. Same machine and package as my earlier findings; `main` at `71a769d7d`, runtime built with Visual Studio 2022 (RelWithDebInfo), shaders from the `shaders` stage, `pipeline_cache.bin` 725,043,124 bytes, nothing from the game is quoted here. What runs: a 900 s run traced 2,851,173 D3D12 calls, created 25,007 graphics pipeline states and 74,068 `PresentX` succeeded (~82/s), with 111,103 `DrawInstanced` and 288,033 `DrawIndexedInstanced`. Zero device-lost and zero `VK_ERROR`. One access violation is caught by the title: `0xc0000005` write at 0x0, `game_scarlett_master.exe+0x2215c35`, at 56.8 s of the trace, after which the run continues, which matches the first-fire reports above. What it presents, via `LEONIDA_CAPTURE` plus `LEONIDA_CAPTURE_SOURCE` (so the title's own back buffer is captured as well as the swapchain): the first ~1,500 presents are pure black, then the image becomes non-black and then never changes again. In a 600 s run the captured frames at 4,001, 8,001, …, 32,001 are byte-identical (equal MD5) in both the 3840x2160 source and the 1028x744 swapchain, mean RGB 32.33/32.33/44.30, 8,286,042 of 8,294,400 source texels non-zero, 777 distinct colours in the swapchain image. Three runs put the black-to-image transition somewhere between presents 2,401 and 4,801, so the moment varies run to run. Threads at that moment (sampling `Get-Process` from PowerShell): 109 threads, **2 running at 100 % CPU** (~5 s of CPU each over 5 s) and **106 waiting** (<0.05 s in 5 s). Stacks: `procdump -mm` and `cdb` give all threads; of the 51 with a guest frame, the top-most guest RIPs cluster as 15 threads at `game+0x221c3c2`, 11 at `game+0x22511f`, 7 at `game+0x56a0d`, 5 at `game+0x43c421e`, and singles elsewhere. **No thread has three or more guest frames**: above the first one everything is runtime or host code, so the title's threads sit in host calls. What this does not settle: whether that is a stalled load or a screen waiting for input. I posted Return, Space and Escape to the process's four windows (`__wglDummyWindowFodder`, `Leonida`, `Temp Window`, `Americas`) with `PostMessage` mid-run and a control run without input; both reached the still image, so the experiment does not distinguish them. It also does not name the RVAs (no symbols) and does not prove the load is stuck rather than slow: it was still presenting when I stopped it. Written with an AI assistant.
Author
Owner

@HasiKe commented on GitHub (Nov 25, 2026):

Follow-up to my ActivateRays cache-miss finding above, narrowed down. AI-assisted. Measured on an RTX 2070 SUPER, NVIDIA 616.56: main + #1756 + #1886 + #1950 + #1909, plus a local trace line that hashes what build_compute passes to vkCreateComputePipelines.

It isn't ActivateRays alone. Every launch that starts from the saved session file keeps the same 830 hits and the same ~376 misses, and builds the misses again each time. In the first run, which started with an empty cache, everything built before its ~780th compute pipeline (~60–90 s, ~30 MB of cache) hits in later launches, and everything built after it misses.

The runtime passes identical create info. Comparing two launches, 1,054 compute pipelines had the same SPIR-V hash, stage and pipeline flags (0) and no subgroup-size pNext. The layout is push constants plus the device's one bindless set 0. Not a single entry differed.

The driver just stops adding to the cache. In every launch from the 123 MB file, every checkpoint wrote exactly the loaded size (122,975,524 bytes), although 319–376 pipelines were rebuilt and each took as long as its first build. LEONIDA_DIRECT_SESSION_CACHE=0 (an empty cache with the file merged in) gives the same result.

What it isn't:

hypothesis test result
the driver drops unused entries on re-save vk_pipeline_check loads a cache holding ActivateRays, builds 300 others, saves, then builds ActivateRays from the result 0.21 s hit
big files are only partly loaded 600 compute pipelines in a 284 MB file all hit
an entry-count cap 1,709 compute pipelines in a 241 MB file all hit
set-0 bindings library programs with and without set 0 both miss
commit charge (64 GB RAM + 4 GB page file) LEONIDA_TITLE_WINDOWS_MB/LEONIDA_ARENA_MB at 1024 MB, 36 GB commit free still exactly 122,975,524 bytes

Open lead, not verified: NVIDIA's Vulkan disk cache (%LOCALAPPDATA%\NVIDIA\GLCache) is at exactly 1.00 GB, its default size, and hasn't been written since early in the first run. __GL_SHADER_DISK_CACHE_SIZE has no effect on Windows. The next test is raising "Shader Cache Size" in the NVIDIA control panel and re-running. If someone on NVIDIA/Windows sees a session file that stops growing at a size that never changes between checkpoints, that would help.

Needs the game files and an NVIDIA GPU.

<!-- gh-comment-id:7175740339 --> @HasiKe commented on GitHub (Nov 25, 2026): Follow-up to my ActivateRays cache-miss finding above, narrowed down. AI-assisted. Measured on an RTX 2070 SUPER, NVIDIA 616.56: `main` + #1756 + #1886 + #1950 + #1909, plus a local trace line that hashes what `build_compute` passes to `vkCreateComputePipelines`. **It isn't ActivateRays alone.** Every launch that starts from the saved session file keeps the same 830 hits and the same ~376 misses, and builds the misses again each time. In the first run, which started with an empty cache, everything built before its ~780th compute pipeline (~60–90 s, ~30 MB of cache) hits in later launches, and everything built after it misses. **The runtime passes identical create info.** Comparing two launches, 1,054 compute pipelines had the same SPIR-V hash, stage and pipeline flags (0) and no subgroup-size `pNext`. The layout is push constants plus the device's one bindless set 0. Not a single entry differed. **The driver just stops adding to the cache.** In every launch from the 123 MB file, every checkpoint wrote **exactly the loaded size (122,975,524 bytes)**, although 319–376 pipelines were rebuilt and each took as long as its first build. `LEONIDA_DIRECT_SESSION_CACHE=0` (an empty cache with the file merged in) gives the same result. **What it isn't:** | hypothesis | test | result | |---|---|---| | the driver drops unused entries on re-save | `vk_pipeline_check` loads a cache holding ActivateRays, builds 300 others, saves, then builds ActivateRays from the result | 0.21 s hit | | big files are only partly loaded | 600 compute pipelines in a 284 MB file | all hit | | an entry-count cap | 1,709 compute pipelines in a 241 MB file | all hit | | set-0 bindings | library programs with and without set 0 | both miss | | commit charge (64 GB RAM + 4 GB page file) | `LEONIDA_TITLE_WINDOWS_MB`/`LEONIDA_ARENA_MB` at 1024 MB, 36 GB commit free | still exactly 122,975,524 bytes | **Open lead, not verified:** NVIDIA's Vulkan disk cache (`%LOCALAPPDATA%\NVIDIA\GLCache`) is at exactly 1.00 GB, its default size, and hasn't been written since early in the first run. `__GL_SHADER_DISK_CACHE_SIZE` has no effect on Windows. The next test is raising "Shader Cache Size" in the NVIDIA control panel and re-running. If someone on NVIDIA/Windows sees a session file that stops growing at a size that never changes between checkpoints, that would help. Needs the game files and an NVIDIA GPU.
Author
Owner

@aslan2142 commented on GitHub (Nov 25, 2026):

done: RT-TITLE-HUD-VRAM-BUDGET -> #2128

<!-- gh-comment-id:7175823864 --> @aslan2142 commented on GitHub (Nov 25, 2026): done: RT-TITLE-HUD-VRAM-BUDGET -> #2128
Author
Owner

@star41905453-coder commented on GitHub (Nov 25, 2026):

done: RT-TITLE-WINDOW-WRITE-BACK -> #2129

A title window is a read-side mirror, so the WRITE_INVALID of #1537 was a write with nowhere to land. The ranges a submission reaches are now copied back to the title's pages at the next refresh, before the forward copy, and a page the title wrote in between keeps the title's bytes. New ctest d3d12_title_window_write_back; ctest -R 'title|shadow|geometry|arena|stream|alias|slot133|compute' 27/27, the tiny_async boot through the loader passes. Built on Linux/Wine with llvmpipe, no GPU and no game files, so a retail run past the cap is still wanted from someone with both.

<!-- gh-comment-id:7175865123 --> @star41905453-coder commented on GitHub (Nov 25, 2026): done: RT-TITLE-WINDOW-WRITE-BACK -> #2129 A title window is a read-side mirror, so the WRITE_INVALID of #1537 was a write with nowhere to land. The ranges a submission reaches are now copied back to the title's pages at the next refresh, before the forward copy, and a page the title wrote in between keeps the title's bytes. New ctest `d3d12_title_window_write_back`; `ctest -R 'title|shadow|geometry|arena|stream|alias|slot133|compute'` 27/27, the `tiny_async` boot through the loader passes. Built on Linux/Wine with llvmpipe, no GPU and no game files, so a retail run past the cap is still wanted from someone with both.
Author
Owner

@Snooozs commented on GitHub (Nov 25, 2026):

@HasiKe One more data point for the lead you marked as not verified, from a 32 GB RTX 5060 Ti on NVIDIA 621.01, Windows 10: %LOCALAPPDATA%\NVIDIA\GLCache here is 1,073,741,457 bytes (367 bytes under 1 GiB), newest write 21:38 local. Six boots after that (n39 to n44) compiled hundreds of graphics pipelines and no file in it was written. That is the same picture as yours; I have not raised the limit yet, so it is not a proof either.

For compute, the per-pipeline journal of #2098 sidesteps it: gta6rt --precompile-pipelines --smallest-first --max-bytes 2500000 --threads 10 (no game running) had finished 2,110 of 3,989 entries after 69 s and had 2,004 of them written to their own files after 343 s (0 failed, process at below-normal priority). In my runs n39 to n44 the title asked for at most one compute module over 2.5 MB each, and in n44 the submissions waited 182 s in total at the compile gate (328 waits, longest 25 s) for those modules, so this should remove nearly all of that. I have not booted with the filled journal yet and will post that number.

@klikso: the "Couldn't autosave" prompt is here too: the owner's screen showed it at 147 s in n44 (n44: ASYNC_PIPELINES=1, a different machine and base than yours). So it is not a fixed 1,000 s. It comes when the title reaches that step. I have not traced the save calls. Next I run LEONIDA_MAP_READBACK=1 once and report what it does.

AI-assisted (Claude Code).

<!-- gh-comment-id:7175933220 --> @Snooozs commented on GitHub (Nov 25, 2026): @HasiKe One more data point for the lead you marked as not verified, from a 32 GB RTX 5060 Ti on NVIDIA 621.01, Windows 10: `%LOCALAPPDATA%\NVIDIA\GLCache` here is 1,073,741,457 bytes (367 bytes under 1 GiB), newest write 21:38 local. Six boots after that (n39 to n44) compiled hundreds of graphics pipelines and no file in it was written. That is the same picture as yours; I have not raised the limit yet, so it is not a proof either. For compute, the per-pipeline journal of #2098 sidesteps it: `gta6rt --precompile-pipelines --smallest-first --max-bytes 2500000 --threads 10` (no game running) had finished 2,110 of 3,989 entries after 69 s and had 2,004 of them written to their own files after 343 s (0 failed, process at below-normal priority). In my runs n39 to n44 the title asked for at most one compute module over 2.5 MB each, and in n44 the submissions waited 182 s in total at the compile gate (328 waits, longest 25 s) for those modules, so this should remove nearly all of that. I have not booted with the filled journal yet and will post that number. @klikso: the "Couldn't autosave" prompt is here too: the owner's screen showed it at 147 s in n44 (n44: `ASYNC_PIPELINES=1`, a different machine and base than yours). So it is not a fixed 1,000 s. It comes when the title reaches that step. I have not traced the save calls. Next I run `LEONIDA_MAP_READBACK=1` once and report what it does. AI-assisted (Claude Code).
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

claiming: BVH-TRI-PROBE-JSON-AND-CLI - harden \ ools/bvh_tri_probe.py: validate --oracle/--kernel\ CLI arguments, validate --json\ upfront and write reports atomically, and handle oracle arch and payload errors cleanly

<!-- gh-comment-id:7175974232 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): claiming: BVH-TRI-PROBE-JSON-AND-CLI - harden \ ools/bvh_tri_probe.py\: validate \--oracle\/\--kernel\ CLI arguments, validate \--json\ upfront and write reports atomically, and handle oracle arch and payload errors cleanly
Author
Owner

@ubiquitarianism commented on GitHub (Nov 25, 2026):

claiming: RT-BOOT-COMBINED - one integration branch on current main: the pipeline-library translator fixes from #1495 (without #984, which main already has) and the null-barrier / null-RTV fix from #1504, plus the removal of the title's executable addresses that #984 left in runtime/src/main.cpp, scripts/windows-boot/ and docs/. Docs: the scripted-pad route through the first-run pages to the story load on Windows (the legal-terms page needs both boxes ticked before Confirm takes A) in docs/first_run_ui.md, with one sentence about it in the README status paragraph. The status rows from DOC-README-BOOT-STATUS (#1643) stay as they are.

<!-- gh-comment-id:7175978134 --> @ubiquitarianism commented on GitHub (Nov 25, 2026): claiming: RT-BOOT-COMBINED - one integration branch on current `main`: the pipeline-library translator fixes from #1495 (without #984, which `main` already has) and the null-barrier / null-RTV fix from #1504, plus the removal of the title's executable addresses that #984 left in `runtime/src/main.cpp`, `scripts/windows-boot/` and `docs/`. Docs: the scripted-pad route through the first-run pages to the story load on Windows (the legal-terms page needs both boxes ticked before Confirm takes A) in `docs/first_run_ui.md`, with one sentence about it in the README status paragraph. The status rows from DOC-README-BOOT-STATUS (#1643) stay as they are.
Author
Owner

@OreoFR commented on GitHub (Nov 25, 2026):

@tiguan26 thanks for picking up RT-LIST-VALUES-STALL-SNAPSHOT. When it is up I can run it on the RTX 4070 Laptop (621.40) where I saw the stall on #1723.

<!-- gh-comment-id:7176052269 --> @OreoFR commented on GitHub (Nov 25, 2026): @tiguan26 thanks for picking up RT-LIST-VALUES-STALL-SNAPSHOT. When it is up I can run it on the RTX 4070 Laptop (621.40) where I saw the stall on #1723.
Author
Owner

@MoonEyes commented on GitHub (Nov 25, 2026):

claiming: RT-PIPELINE-PREWARM-ORDER - phase 1 only, a passive recorder: write which pipelines the title asks for first (a PSO's description key plus its variant, with the time of the first use and the build time) to a small append-only file beside pipeline_cache.session.bin, with a one-line count report. Nothing builds graphics or mesh pipelines ahead today, and the compute warm-up orders by module size, not by what the title asks for first; the file measures how much lead time the title gives. Queuing builds in that order (on #2077's pool, behind an opt-in switch) is a follow-up that I will only propose if the recorded numbers show a gain. It does not touch the cache files (#1886, #1914, #1950), the memory gate (#1889), or #2098's compute journal, precompile command and helper process (@Moriz82: no overlap intended; the recorded order could feed your priorities). Tests: CPU tests of the file format and of the recorder, no game data.
AI-assisted: yes (Claude Code).

<!-- gh-comment-id:7176167646 --> @MoonEyes commented on GitHub (Nov 25, 2026): claiming: RT-PIPELINE-PREWARM-ORDER - phase 1 only, a passive recorder: write which pipelines the title asks for first (a PSO's description key plus its variant, with the time of the first use and the build time) to a small append-only file beside `pipeline_cache.session.bin`, with a one-line count report. Nothing builds graphics or mesh pipelines ahead today, and the compute warm-up orders by module size, not by what the title asks for first; the file measures how much lead time the title gives. Queuing builds in that order (on #2077's pool, behind an opt-in switch) is a follow-up that I will only propose if the recorded numbers show a gain. It does not touch the cache files (#1886, #1914, #1950), the memory gate (#1889), or #2098's compute journal, precompile command and helper process (@Moriz82: no overlap intended; the recorded order could feed your priorities). Tests: CPU tests of the file format and of the recorder, no game data. AI-assisted: yes (Claude Code).
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

done: BVH-TRI-PROBE-JSON-AND-CLI -> #2130

<!-- gh-comment-id:7176170058 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): done: BVH-TRI-PROBE-JSON-AND-CLI -> #2130
Author
Owner

@Snooozs commented on GitHub (Nov 25, 2026):

claiming: RT-DEV-OVERLAY - LEONIDA_DEV_OVERLAY=1 (off by default, Windows): a small click-through window over the top left corner of the title's window that says what the runtime is doing. I have been using it locally in every boot.

It does not replace LEONIDA_TITLE_HUD (#1922), which keeps frame rate, memory and compile time in the title bar. The overlay adds what the title bar does not have: frames and submissions a second, where a submission's CPU time goes (descriptors, textures, copies, replay), which phase is running right now and for how long, pipeline builds in flight, indirect draws emitted and skipped, cores in use. It has its own thread and GDI text, so it keeps counting while the title presents nothing for seconds (the boots that look frozen), and it is in no captured frame. It only reads counters that exist, plus two relaxed atomics a pipeline build and the phase that is running.

If you would rather have the extra lines in title_hud.h, say so and I change it. Test for the text and the phase bookkeeping needs no GPU and no game files. AI-assisted (Claude Code).

<!-- gh-comment-id:7176377048 --> @Snooozs commented on GitHub (Nov 25, 2026): claiming: RT-DEV-OVERLAY - `LEONIDA_DEV_OVERLAY=1` (off by default, Windows): a small click-through window over the top left corner of the title's window that says what the runtime is doing. I have been using it locally in every boot. It does not replace `LEONIDA_TITLE_HUD` (#1922), which keeps frame rate, memory and compile time in the title bar. The overlay adds what the title bar does not have: frames and submissions a second, where a submission's CPU time goes (descriptors, textures, copies, replay), which phase is running right now and for how long, pipeline builds in flight, indirect draws emitted and skipped, cores in use. It has its own thread and GDI text, so it keeps counting while the title presents nothing for seconds (the boots that look frozen), and it is in no captured frame. It only reads counters that exist, plus two relaxed atomics a pipeline build and the phase that is running. If you would rather have the extra lines in `title_hud.h`, say so and I change it. Test for the text and the phase bookkeeping needs no GPU and no game files. AI-assisted (Claude Code).
Author
Owner

@QemmHD commented on GitHub (Nov 25, 2026):

claiming: SHADER-POPS-COLLISION-SEED - the translator seeds the POPS collision id equal to the wave id, so a title's 'wait until my collision id differs' loop can spin until the loop guard's cap when a subgroup reaches the branch with no active lanes. Fix: seed them differently, as on hardware, with a GPU test. Idea from Marvisak/VIctory 7ac1f54, written anew. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7176408555 --> @QemmHD commented on GitHub (Nov 25, 2026): claiming: SHADER-POPS-COLLISION-SEED - the translator seeds the POPS collision id equal to the wave id, so a title's 'wait until my collision id differs' loop can spin until the loop guard's cap when a subgroup reaches the branch with no active lanes. Fix: seed them differently, as on hardware, with a GPU test. Idea from Marvisak/VIctory 7ac1f54, written anew. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@klikso commented on GitHub (Nov 25, 2026):

claiming: INPUT-SCRIPT-HOLD - an optional hold time per LEONIDA_INPUT_SCRIPT entry (b@1100:2 holds B for 2 s; without : the 0.3 s stays). At the world-start frame rates (several seconds a frame) a 0.3 s press falls between two of the title's pad reads and never arrives. Seen on an RTX 3060 Ti: three b presses on the "Couldn't autosave" prompt did nothing, and 120 presses 0.5 s apart dismissed it. Files: runtime/shims/gameinput_script.h, the two GameInput tests, docs/gameinput.md. No game files needed. AI-assisted (Claude Code).

<!-- gh-comment-id:7176410686 --> @klikso commented on GitHub (Nov 25, 2026): claiming: INPUT-SCRIPT-HOLD - an optional hold time per `LEONIDA_INPUT_SCRIPT` entry (`b@1100:2` holds B for 2 s; without `:` the 0.3 s stays). At the world-start frame rates (several seconds a frame) a 0.3 s press falls between two of the title's pad reads and never arrives. Seen on an RTX 3060 Ti: three `b` presses on the "Couldn't autosave" prompt did nothing, and 120 presses 0.5 s apart dismissed it. Files: `runtime/shims/gameinput_script.h`, the two GameInput tests, `docs/gameinput.md`. No game files needed. AI-assisted (Claude Code).
Author
Owner

@Anonymous78e commented on GitHub (Nov 25, 2026):

done: TEST-SEMANTIC-TIMEOUT-QUICK-LOAD -> #2135 (a draft: the one-open-pull-request limit applies while my earlier pull requests are open). Test-only. Under load on Windows 11 (32 busy processes, 16 threads), main fails 9 of 12 runs, the PR 0 of 12. AI-assisted.

<!-- gh-comment-id:7176417000 --> @Anonymous78e commented on GitHub (Nov 25, 2026): done: TEST-SEMANTIC-TIMEOUT-QUICK-LOAD -> #2135 (a draft: the one-open-pull-request limit applies while my earlier pull requests are open). Test-only. Under load on Windows 11 (32 busy processes, 16 threads), main fails 9 of 12 runs, the PR 0 of 12. AI-assisted.
Author
Owner

@Snooozs commented on GitHub (Nov 25, 2026):

Follow-up to my comment above, RTX 5060 Ti 16 GB, NVIDIA 621.01, Windows 10, 32 GB.

@HasiKe Your lead holds here: the owner set "Shader Cache Size" to unlimited in the NVIDIA control panel. GLCache was 1,073,741,457 bytes with no write since 21:38, and is 1,337,189,463 bytes after one precompile pass and one boot (n45, 438 s) since then. In the same boot pipeline_cache.session.bin grew from 5,925,646 to 107,345,018 bytes (a local change writes it every 30 s while the title runs; the stock code only writes at exit or when no build is active, and n44 wrote nothing in 585 s). I have not measured a boot that starts from both, so whether the next boot rebuilds fewer graphics pipelines is open.

Compute journal filled first (--precompile-pipelines, up to 2.5 MB of SPIR-V): 3,988 of 3,989 entries, in 1,214 s with 10 threads plus 87 s for a second pass. 21 failed with VkResult -13 in the first pass and one in the second (with 4 threads, so not only load). Boots of the same build, compile-gate waits: n44 (journal partly filled) 328 waits, 181,943 ms by t=540 s, the longest 25.3 s; n45 (filled) 322 waits, 1,431 ms by t=362 s. After that n45 asked for modules over 2.5 MB (3.5 to 4.6 MB), which the precompile left out, and each again held a submission for 17 to 42 s. So my sentence above that the title asks for at most one such module is wrong past ~360 s.

@klikso, @DadaCap LEONIDA_MAP_READBACK=1 is not the autosave fix here: n45 reaches the same "couldn't autosave" prompt with it on. Scripted B presses (0.3 s) at 170 to 290 s did not dismiss it either; that fits INPUT-SCRIPT-HOLD, and I have not tried a longer hold.

AI-assisted (Claude Code).

<!-- gh-comment-id:7176430770 --> @Snooozs commented on GitHub (Nov 25, 2026): Follow-up to [my comment above](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7175933220), RTX 5060 Ti 16 GB, NVIDIA 621.01, Windows 10, 32 GB. @HasiKe Your lead holds here: the owner set "Shader Cache Size" to unlimited in the NVIDIA control panel. `GLCache` was 1,073,741,457 bytes with no write since 21:38, and is 1,337,189,463 bytes after one precompile pass and one boot (n45, 438 s) since then. In the same boot `pipeline_cache.session.bin` grew from 5,925,646 to 107,345,018 bytes (a local change writes it every 30 s while the title runs; the stock code only writes at exit or when no build is active, and n44 wrote nothing in 585 s). I have not measured a boot that starts from both, so whether the next boot rebuilds fewer graphics pipelines is open. Compute journal filled first (`--precompile-pipelines`, up to 2.5 MB of SPIR-V): 3,988 of 3,989 entries, in 1,214 s with 10 threads plus 87 s for a second pass. 21 failed with `VkResult -13` in the first pass and one in the second (with 4 threads, so not only load). Boots of the same build, compile-gate waits: n44 (journal partly filled) 328 waits, 181,943 ms by t=540 s, the longest 25.3 s; n45 (filled) 322 waits, 1,431 ms by t=362 s. After that n45 asked for modules over 2.5 MB (3.5 to 4.6 MB), which the precompile left out, and each again held a submission for 17 to 42 s. So my sentence above that the title asks for at most one such module is wrong past ~360 s. @klikso, @DadaCap `LEONIDA_MAP_READBACK=1` is not the autosave fix here: n45 reaches the same "couldn't autosave" prompt with it on. Scripted B presses (0.3 s) at 170 to 290 s did not dismiss it either; that fits INPUT-SCRIPT-HOLD, and I have not tried a longer hold. AI-assisted (Claude Code).
Author
Owner

@Snooozs commented on GitHub (Nov 25, 2026):

done: RT-DEV-OVERLAY -> #2137. AI-assisted (Claude Code).

<!-- gh-comment-id:7176465603 --> @Snooozs commented on GitHub (Nov 25, 2026): done: RT-DEV-OVERLAY -> #2137. AI-assisted (Claude Code).
Author
Owner

@ubiquitarianism commented on GitHub (Nov 25, 2026):

done: RT-BOOT-COMBINED -> #2138

<!-- gh-comment-id:7176477801 --> @ubiquitarianism commented on GitHub (Nov 25, 2026): done: RT-BOOT-COMBINED -> #2138
Author
Owner

@whoalin1 commented on GitHub (Nov 25, 2026):

claiming: OLD-9859 — carry forward draft #125 (old-pr/9859): do not hide failed compute dumps behind subgroup-pin skips. CPU-only runner/check logic; I will rebase it on current main, run the focused runner/check unit tests, and open a small PR with original authorship preserved.

<!-- gh-comment-id:7176711772 --> @whoalin1 commented on GitHub (Nov 25, 2026): claiming: `OLD-9859` — carry forward draft #125 (`old-pr/9859`): do not hide failed compute dumps behind subgroup-pin skips. CPU-only runner/check logic; I will rebase it on current main, run the focused runner/check unit tests, and open a small PR with original authorship preserved.
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

claiming: RT-DIRECT-HEAP-ARENA-REMAP -- remap directly indexed CBV/SRV/UAV and sampler heap console base addresses to arena shader virtual addresses in user SGPRs (fixes compute/graphics device loss READ_INVALID during world transition). AI-assisted (Claude Code).

<!-- gh-comment-id:7176721350 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): claiming: RT-DIRECT-HEAP-ARENA-REMAP -- remap directly indexed CBV/SRV/UAV and sampler heap console base addresses to arena shader virtual addresses in user SGPRs (fixes compute/graphics device loss READ_INVALID during world transition). AI-assisted (Claude Code).
Author
Owner

@whoalin1 commented on GitHub (Nov 25, 2026):

releasing OLD-9859 without a PR: while rebasing it I found the bug is already fixed on current main by e55b3be88 (tests: fail when a subgroup warning precedes a dispatch error); both run_gpu_tests.py and runtime/test/shaders/check.py now only apply the subgroup-pin skip when the child exited 0. No duplicate needed.

<!-- gh-comment-id:7176727114 --> @whoalin1 commented on GitHub (Nov 25, 2026): releasing `OLD-9859` without a PR: while rebasing it I found the bug is already fixed on current main by `e55b3be88` (`tests: fail when a subgroup warning precedes a dispatch error`); both `run_gpu_tests.py` and `runtime/test/shaders/check.py` now only apply the subgroup-pin skip when the child exited 0. No duplicate needed.
Author
Owner

@whoalin1 commented on GitHub (Nov 25, 2026):

claiming: OLD-10046 — carry forward draft #312 (old-pr/10046): Windows test portability for the unreadable-path assertions in test_bink_names.py, test_opus_tags.py, and test_world_names.py (str(OSError) embeds repr(path), so backslashes are doubled). CPU-only tests; original authorship preserved.

<!-- gh-comment-id:7176740231 --> @whoalin1 commented on GitHub (Nov 25, 2026): claiming: `OLD-10046` — carry forward draft #312 (`old-pr/10046`): Windows test portability for the unreadable-path assertions in `test_bink_names.py`, `test_opus_tags.py`, and `test_world_names.py` (`str(OSError)` embeds `repr(path)`, so backslashes are doubled). CPU-only tests; original authorship preserved.
Author
Owner

@qhukz13 commented on GitHub (Nov 25, 2026):

claiming: TEST-SESSION0-DESKTOP-SKIP - over OpenSSH or as a service (session 0, no interactive window station) title_window fails at title_window_test.cpp:85 (find_title_window finds no visible window) and xgameruntime_offline(_hdr) fail XDisplayAcquireTimeoutDeferral (PowerSetRequest(PowerRequestDisplayRequired) answers ERROR_NOT_SUPPORTED there). Measured on Windows 10 19045: all three pass from an RDP desktop session on the same machine. Skip only what needs a desktop, with window_station.h's has_interactive_window_station() as the DXGI tests do. #1217 documents the SSH difference.

<!-- gh-comment-id:7176766751 --> @qhukz13 commented on GitHub (Nov 25, 2026): claiming: TEST-SESSION0-DESKTOP-SKIP - over OpenSSH or as a service (session 0, no interactive window station) `title_window` fails at `title_window_test.cpp:85` (`find_title_window` finds no visible window) and `xgameruntime_offline(_hdr)` fail `XDisplayAcquireTimeoutDeferral` (`PowerSetRequest(PowerRequestDisplayRequired)` answers `ERROR_NOT_SUPPORTED` there). Measured on Windows 10 19045: all three pass from an RDP desktop session on the same machine. Skip only what needs a desktop, with `window_station.h`'s `has_interactive_window_station()` as the DXGI tests do. #1217 documents the SSH difference.
Author
Owner

@qhukz13 commented on GitHub (Nov 25, 2026):

done: TEST-SESSION0-DESKTOP-SKIP -> #2139

<!-- gh-comment-id:7176771988 --> @qhukz13 commented on GitHub (Nov 25, 2026): done: TEST-SESSION0-DESKTOP-SKIP -> #2139
Author
Owner

@DadaCap commented on GitHub (Nov 25, 2026):

claiming: SHADER-FMA-MIX-TEXT-CUT-LITERAL — llvm-mc 21.1.8 can print a v_fma_mix* literal cut to its low 16 bits in the text while its printed encoding keeps all 32 bits. The printed-encoding check then passes, so the existing repair (mix_literal, for a cut encoding) never runs and the text alone reads the high half as +0.0. Counted on one work folder of 1.0.2.1: 47,910 instructions in 1,218 pipeline-library listings and 6 in one FidelityFX FSPX program (a Catmull-Rom weight of -2.5 read as 0 in the upscaler; an f32 constant 0x3f62dfcf read as the denormal 0xdfcf), none in the game's own shaders. Fix: take the literal from the printed encoding on the clean and the re-anchoring paths, with a test. Translator only. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7176772104 --> @DadaCap commented on GitHub (Nov 25, 2026): claiming: SHADER-FMA-MIX-TEXT-CUT-LITERAL — llvm-mc 21.1.8 can print a `v_fma_mix*` literal cut to its low 16 bits in the **text** while its printed encoding keeps all 32 bits. The printed-encoding check then passes, so the existing repair (`mix_literal`, for a cut encoding) never runs and the text alone reads the high half as +0.0. Counted on one work folder of 1.0.2.1: 47,910 instructions in 1,218 pipeline-library listings and 6 in one FidelityFX FSPX program (a Catmull-Rom weight of -2.5 read as 0 in the upscaler; an f32 constant 0x3f62dfcf read as the denormal 0xdfcf), none in the game's own shaders. Fix: take the literal from the printed encoding on the clean and the re-anchoring paths, with a test. Translator only. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@vinceychu commented on GitHub (Nov 25, 2026):

claiming: SHADER-MUBUF-LDS-DMA — translate MUBUF loads with the lds modifier (buffer_load_dword/ubyte/sbyte/ushort/sshort ... lds: LDS[M0 + inst_offset + 4*lane] = data), refused today in tools/rdna2spirv.py; hand-written cs_ fixture + semantic test. No game files.
claiming: SHADER-BUFFER-TFE — tfe on MUBUF/MTBUF loads (the all-resident status word, as image tfe already does); out-of-range cases stay refused. Fixture + semantic test. No game files.
claiming: SHADER-MESH-SHARED-LIMIT — design.md "Not covered: mesh shaders against maxMeshSharedMemorySize": check a mesh shader's shared memory against the limit like the CS workgroup check, with the byte counts in the refusal. No game files.


Generated by Claude Code

<!-- gh-comment-id:7176973253 --> @vinceychu commented on GitHub (Nov 25, 2026): claiming: SHADER-MUBUF-LDS-DMA — translate MUBUF loads with the `lds` modifier (buffer_load_dword/ubyte/sbyte/ushort/sshort ... lds: LDS[M0 + inst_offset + 4*lane] = data), refused today in tools/rdna2spirv.py; hand-written cs_ fixture + semantic test. No game files. claiming: SHADER-BUFFER-TFE — `tfe` on MUBUF/MTBUF loads (the all-resident status word, as image tfe already does); out-of-range cases stay refused. Fixture + semantic test. No game files. claiming: SHADER-MESH-SHARED-LIMIT — design.md "Not covered: mesh shaders against maxMeshSharedMemorySize": check a mesh shader's shared memory against the limit like the CS workgroup check, with the byte counts in the refusal. No game files. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@DadaCap commented on GitHub (Nov 25, 2026):

claiming (jointly with @OreoFR): SHADER-W64-UNIFORM-EXECZ-BARRIER — lib_cs_00959 stays almost entirely in the wave64 round scheduler (642 → 636 round cases with #2102) because an s_barrier sits inside an s_cbranch_execz guard that covers most of the program. Rule: when the guard is provably the same for every wave of the workgroup, the barrier is reached by all waves or none, so the guarded region can be planned structured. DadaCap writes the translator rule; OreoFR tests it in game on an RTX 4070 Laptop 8 GB (NVIDIA 621.40), where this program's rounds form makes the world-start GPU work exceed the 2 s TDR (Aftermath: Timeout, no page fault; with TdrDelay=60 the stalls are 8-13 s and one exceeds 60 s). AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7176982755 --> @DadaCap commented on GitHub (Nov 25, 2026): claiming (jointly with @OreoFR): SHADER-W64-UNIFORM-EXECZ-BARRIER — `lib_cs_00959` stays almost entirely in the wave64 round scheduler (642 → 636 round cases with #2102) because an `s_barrier` sits inside an `s_cbranch_execz` guard that covers most of the program. Rule: when the guard is provably the same for every wave of the workgroup, the barrier is reached by all waves or none, so the guarded region can be planned structured. DadaCap writes the translator rule; OreoFR tests it in game on an RTX 4070 Laptop 8 GB (NVIDIA 621.40), where this program's rounds form makes the world-start GPU work exceed the 2 s TDR (Aftermath: Timeout, no page fault; with TdrDelay=60 the stalls are 8-13 s and one exceeds 60 s). AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 25, 2026):

done: RT-DIRECT-HEAP-ARENA-REMAP -> #2141

<!-- gh-comment-id:7177008579 --> @abnalstlll-byte commented on GitHub (Nov 25, 2026): done: RT-DIRECT-HEAP-ARENA-REMAP -> #2141
Author
Owner

@DadaCap commented on GitHub (Nov 25, 2026):

done: SHADER-FMA-MIX-TEXT-CUT-LITERAL -> #2142. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7177021699 --> @DadaCap commented on GitHub (Nov 25, 2026): done: SHADER-FMA-MIX-TEXT-CUT-LITERAL -> #2142. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@kevincommits commented on GitHub (Nov 26, 2026):

claiming: X64-RECOMP-QEMU-UNALIGNED - on main, every unaligned guest memory access in the tools/x64_recomp.py QEMU harness hangs until the timeout under QEMU 11.1.3 (mov edi, [rbx+2]: Data Abort, ESR 0x96000021 alignment fault, no vector table). build_test_kernel's boot stub leaves the MMU off, so data is Device memory. Fix in the boot stub only: identity map with 1 GiB Normal-memory blocks, plus an exec test that times out on main. No game files or GPU. AI-assisted.

<!-- gh-comment-id:7177136024 --> @kevincommits commented on GitHub (Nov 26, 2026): claiming: X64-RECOMP-QEMU-UNALIGNED - on `main`, every unaligned guest memory access in the `tools/x64_recomp.py` QEMU harness hangs until the timeout under QEMU 11.1.3 (`mov edi, [rbx+2]`: Data Abort, ESR `0x96000021` alignment fault, no vector table). `build_test_kernel`'s boot stub leaves the MMU off, so data is Device memory. Fix in the boot stub only: identity map with 1 GiB Normal-memory blocks, plus an exec test that times out on `main`. No game files or GPU. AI-assisted.
Author
Owner

@kevincommits commented on GitHub (Nov 26, 2026):

done: X64-RECOMP-QEMU-UNALIGNED -> #2143 (opened as a draft: the repository refuses a second non-draft pull request from my account while #2118 is open)

<!-- gh-comment-id:7177140277 --> @kevincommits commented on GitHub (Nov 26, 2026): done: X64-RECOMP-QEMU-UNALIGNED -> #2143 (opened as a draft: the repository refuses a second non-draft pull request from my account while #2118 is open)
Author
Owner

@klikso commented on GitHub (Nov 26, 2026):

done: INPUT-SCRIPT-HOLD -> #2144

finding (follow-up to my autosave finding): past the "Couldn't autosave" prompt the boot reaches the prologue's movement controls hint on an 8 GB card. The scene is still black. Also: the prompt's broken body text comes from the save it resumes, not from a code change.

Setup: RTX 3060 Ti 8 GB, NVIDIA 621.14, Windows 11, own 1.0.2.1, scripts/windows-boot/boot.ps1, LEONIDA_TITLE_WATCHDOG=0 LEONIDA_ASYNC_PIPELINES=1 LEONIDA_CONSOLE_FIX_US=0 LEONIDA_KEYBOARD_PAD=1. Each run starts from a copy of the save folder my fresh-save run r5 left.

run runtime prompt dismissed after it
r11 main fe1553456 no: three 0.3 s b presses never arrive prompt until the 1,800 s limit
r12 main 3d4f66123 (r5's own binary) yes, by ~1,150 s, with 120 b presses 0.5 s apart black, then "(L) Move … / (R) Move the camera" in the hint box at ~1,670 s
r13 main 45129e6bc + #2144 yes, by ~1,145 s, with b@1100:4,b@1130:4 prologue at ~25 s a frame (6,068 presents by 1,300 s, 58 more by 2,100 s)

No device loss in any of them.

The prompt's text is drawn in the regular UI font, and in every run that resumes a save that text is missing most of its glyphs: only a few letters per line are drawn (the hint box shows the same). The headings, in the title font, are fine, and the prompt's background picture is black.

  • r5 itself (fresh save, main 3d4f66123) drew the same prompt complete over its background.
  • r12 runs r5's exact runtime from r5's save and shows the loss.
  • So it's not a code regression between those commits. #1851's host-copy choice and LEONIDA_CONSOLE_FIX_US don't change it either (one run each, both ways).
  • The same font is drawn correctly on the first-run pages of a fresh save. So the loss is somewhere in loading a save or the world: my guess is a glyph or texture page the title streams in that never gets its data. Not traced further yet.

Counts, page names and switches only, no game data. AI-assisted (Claude Code).

<!-- gh-comment-id:7177216880 --> @klikso commented on GitHub (Nov 26, 2026): done: INPUT-SCRIPT-HOLD -> #2144 finding (follow-up to my [autosave finding](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7172103888)): past the "Couldn't autosave" prompt the boot reaches the **prologue's movement controls hint** on an 8 GB card. The scene is still black. Also: the prompt's broken body text comes from the save it resumes, not from a code change. **Setup:** RTX 3060 Ti 8 GB, NVIDIA 621.14, Windows 11, own 1.0.2.1, `scripts/windows-boot/boot.ps1`, `LEONIDA_TITLE_WATCHDOG=0 LEONIDA_ASYNC_PIPELINES=1 LEONIDA_CONSOLE_FIX_US=0 LEONIDA_KEYBOARD_PAD=1`. Each run starts from a copy of the save folder my fresh-save run r5 left. | run | runtime | prompt dismissed | after it | |---|---|---|---| | r11 | `main` fe1553456 | no: three 0.3 s `b` presses never arrive | prompt until the 1,800 s limit | | r12 | `main` 3d4f66123 (r5's own binary) | yes, by ~1,150 s, with 120 `b` presses 0.5 s apart | black, then **"(L) Move … / (R) Move the camera"** in the hint box at ~1,670 s | | r13 | `main` 45129e6bc + #2144 | yes, by ~1,145 s, with `b@1100:4,b@1130:4` | prologue at ~25 s a frame (6,068 presents by 1,300 s, 58 more by 2,100 s) | No device loss in any of them. **The prompt's text** is drawn in the regular UI font, and in every run that resumes a save that text is missing most of its glyphs: only a few letters per line are drawn (the hint box shows the same). The headings, in the title font, are fine, and the prompt's background picture is black. - r5 itself (fresh save, `main` 3d4f66123) drew the same prompt complete over its background. - r12 runs r5's exact runtime from r5's save and shows the loss. - So it's not a code regression between those commits. #1851's host-copy choice and `LEONIDA_CONSOLE_FIX_US` don't change it either (one run each, both ways). - The same font is drawn correctly on the first-run pages of a fresh save. So the loss is somewhere in loading a save or the world: my guess is a glyph or texture page the title streams in that never gets its data. Not traced further yet. Counts, page names and switches only, no game data. AI-assisted (Claude Code).
Author
Owner

@thegalaxydev commented on GitHub (Nov 26, 2026):

claim: RT-PRESENT-DUMP-FROM (runtime/src/present_dump.h, runtime/test/vk_present_dump_test.cpp, runtime/CMakeLists.txt, runtime/README.md): LEONIDA_PRESENT_DUMP_FROM=<frame> also dumps every present from that one on. At the world start a run shows about 1,900 loading-screen presents in two minutes and then one frame every several seconds, so DIR,N either misses the world frames (large N) or writes thousands of loading frames first (small N).

<!-- gh-comment-id:7177310222 --> @thegalaxydev commented on GitHub (Nov 26, 2026): claim: RT-PRESENT-DUMP-FROM (`runtime/src/present_dump.h`, `runtime/test/vk_present_dump_test.cpp`, `runtime/CMakeLists.txt`, `runtime/README.md`): `LEONIDA_PRESENT_DUMP_FROM=<frame>` also dumps every present from that one on. At the world start a run shows about 1,900 loading-screen presents in two minutes and then one frame every several seconds, so `DIR,N` either misses the world frames (large N) or writes thousands of loading frames first (small N).
Author
Owner

@fiestorra commented on GitHub (Nov 26, 2026):

claiming: AWC-OPUS-SKIP-EXISTING — tools/awc_opus.py always repacks every bank, so a stopped assets run redoes the whole Ogg Opus step from the beginning. On this machine a run stopped with 664,446 .ogg files already written restarted at bank 0 and would have spent ~100 minutes rewriting them; the stage only marks the step done (ogg.done) after it finishes, so there is no per-bank resume today.

The change adds --skip-existing: before packing a channel's .ogg or writing a stream's .ogg/.wav, it leaves an output that already exists alone (the staged writer already publishes files atomically, so an existing file is complete). make_game.py passes it in the audio step, so a restarted stage resumes instead of repacking.

Measured on one 1 MB bank (synthetic checks aside): 29 outputs, first export 0.8 s, second with --skip-existing 0.23 s and 0 files rewritten (mtimes unchanged), while the same export without the flag does rewrite them. tests/test_awc_opus.py gains a test with that control.

Written with an AI assistant.

<!-- gh-comment-id:7177327478 --> @fiestorra commented on GitHub (Nov 26, 2026): claiming: AWC-OPUS-SKIP-EXISTING — `tools/awc_opus.py` always repacks every bank, so a stopped `assets` run redoes the whole Ogg Opus step from the beginning. On this machine a run stopped with **664,446 `.ogg` files already written** restarted at bank 0 and would have spent ~100 minutes rewriting them; the stage only marks the step done (`ogg.done`) after it finishes, so there is no per-bank resume today. The change adds `--skip-existing`: before packing a channel's `.ogg` or writing a stream's `.ogg`/`.wav`, it leaves an output that already exists alone (the staged writer already publishes files atomically, so an existing file is complete). `make_game.py` passes it in the audio step, so a restarted stage resumes instead of repacking. Measured on one 1 MB bank (synthetic checks aside): 29 outputs, first export **0.8 s**, second with `--skip-existing` **0.23 s** and **0 files rewritten** (mtimes unchanged), while the same export without the flag does rewrite them. `tests/test_awc_opus.py` gains a test with that control. Written with an AI assistant.
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

finding: RT-DIRECT-HEAP-ARENA-REMAP integration test is currently red on an MSVC/Vulkan build.

Where: PR #2141, runtime/test/d3d12_set_descriptor_heaps_test.cpp:347-359. Why: the added check calls Dispatch(1,1,1) after setting the root signature and heaps, but it never binds a compute PSO. GraphicsCommandList::record_dispatch rejects that call, so recorded_commands() is empty at line 353. This reproduces on the PR cherry-picked over current main; dstorage_test and title_memory_map_test pass. Needs a test setup that binds a valid compute PSO, or a direct inspection helper for the user-data packing. No game files or special hardware required beyond the existing Vulkan test device.

<!-- gh-comment-id:7177340680 --> @ZroIsHere commented on GitHub (Nov 26, 2026): finding: RT-DIRECT-HEAP-ARENA-REMAP integration test is currently red on an MSVC/Vulkan build. Where: PR #2141, `runtime/test/d3d12_set_descriptor_heaps_test.cpp:347-359`. Why: the added check calls `Dispatch(1,1,1)` after setting the root signature and heaps, but it never binds a compute PSO. `GraphicsCommandList::record_dispatch` rejects that call, so `recorded_commands()` is empty at line 353. This reproduces on the PR cherry-picked over current `main`; `dstorage_test` and `title_memory_map_test` pass. Needs a test setup that binds a valid compute PSO, or a direct inspection helper for the user-data packing. No game files or special hardware required beyond the existing Vulkan test device.
Author
Owner

@jean-melikian commented on GitHub (Nov 26, 2026):

finding: rdna2spirv.py emits an invalid OpSelect for one pixel shader when it is translated inside a full shard, but the same shader translates and passes spirv-val when it is translated on its own: some translator state carries over from one shader to the next within a process.

  • Where: tools/rdna2spirv.py at main 5fab93967. The only local addition is #1886, which is runtime-only. It shows up in the make_game.py --stages check,shaders,runtime --jobs 12 translation (12 shards, --wave64-emulate, RTX 3080 Ti with 32-wide subgroups).
  • What happened:
    • Shard 4 reported 2209 translated, 2208 pass spirv-val. The spirv-val message was line 46022: Invalid instruction OpSelect starting at word 203665: expected no more operands.
    • The shader is 6TL_PS_NoDir_PBR_MATERIAL_IRIDESCENCE_42ad1e50_Wrapped (PS, SM 6.6).
    • make_game correctly refused to finish the stage (the translation index holds 26502 of the 26503 carved shaders).
  • Same shader, alone: same checkout and same flags (rdna2spirv.py <dir> --out <out> --wave64-emulate), on a directory with only that shader's .s, its .dxbc, fssm/ and a one-entry carve index.json: 1 translated, 1 pass spirv-val. The output therefore depends on what the same process translated before it. I have not yet isolated the module-level state involved (a cache or global that is not reset between shaders).
  • Why it matters:
    • A full build can fail or pass depending on the shard layout (--jobs), with no change to the translator.
    • If the leaked state reaches other shaders without making them invalid, they could also get output that depends on their neighbours. This is not checked.
  • Needs:
    • Game files, to reproduce with this shader.
    • No particular GPU, since this is translation only.
    • A hand-written repro needs the leaking state identified first.
  • Local workaround: I translated the shader alone and added that entry to index.json and index.part4.json. make_game then completed.
<!-- gh-comment-id:7177423854 --> @jean-melikian commented on GitHub (Nov 26, 2026): finding: `rdna2spirv.py` emits an invalid `OpSelect` for one pixel shader when it is translated inside a full shard, but the same shader translates and passes `spirv-val` when it is translated on its own: some translator state carries over from one shader to the next within a process. - **Where:** `tools/rdna2spirv.py` at `main` `5fab93967`. The only local addition is #1886, which is runtime-only. It shows up in the `make_game.py --stages check,shaders,runtime --jobs 12` translation (12 shards, `--wave64-emulate`, RTX 3080 Ti with 32-wide subgroups). - **What happened:** - Shard 4 reported `2209 translated, 2208 pass spirv-val`. The `spirv-val` message was `line 46022: Invalid instruction OpSelect starting at word 203665: expected no more operands`. - The shader is `6TL_PS_NoDir_PBR_MATERIAL_IRIDESCENCE_42ad1e50_Wrapped` (PS, SM 6.6). - `make_game` correctly refused to finish the stage (`the translation index holds 26502 of the 26503 carved shaders`). - **Same shader, alone:** same checkout and same flags (`rdna2spirv.py <dir> --out <out> --wave64-emulate`), on a directory with only that shader's `.s`, its `.dxbc`, `fssm/` and a one-entry carve `index.json`: `1 translated, 1 pass spirv-val`. The output therefore depends on what the same process translated before it. I have not yet isolated the module-level state involved (a cache or global that is not reset between shaders). - **Why it matters:** - A full build can fail or pass depending on the shard layout (`--jobs`), with no change to the translator. - If the leaked state reaches other shaders without making them invalid, they could also get output that depends on their neighbours. This is not checked. - **Needs:** - Game files, to reproduce with this shader. - No particular GPU, since this is translation only. - A hand-written repro needs the leaking state identified first. - **Local workaround:** I translated the shader alone and added that entry to `index.json` and `index.part4.json`. `make_game` then completed.
Author
Owner

@fiestorra commented on GitHub (Nov 26, 2026):

note on AWC-OPUS-SKIP-EXISTING (claim 7177327478): the branch is pushed as fiestorra/leonida-carry:awc-skip-existing (e1ecca55e), but GitHub refuses to open the pull request for it — GraphQL answers fiestorra does not have the correct permissions to execute CreatePullRequest, and the REST equivalent answers 404. The fork and the branch are both visible to the API, and pull requests #1872, #1876, #1923 and #1937 were opened from the same account earlier today, so the difference is the number of open pull requests against the merged ones: this account has four open and none merged, and the repository appears to cap accounts without merged pull requests at one open pull request at a time.

So the change is ready and blocked only by that cap. It goes up as soon as one of the four merges; the compare link is https://github.com/ubiquitarianism/leonida/compare/main...fiestorra:leonida-carry:awc-skip-existing?expand=1 and the body is written, so a maintainer can also open it by hand.

Written with an AI assistant.

<!-- gh-comment-id:7177428014 --> @fiestorra commented on GitHub (Nov 26, 2026): note on `AWC-OPUS-SKIP-EXISTING` (claim 7177327478): the branch is pushed as `fiestorra/leonida-carry:awc-skip-existing` (`e1ecca55e`), but GitHub refuses to open the pull request for it — GraphQL answers `fiestorra does not have the correct permissions to execute CreatePullRequest`, and the REST equivalent answers 404. The fork and the branch are both visible to the API, and pull requests #1872, #1876, #1923 and #1937 were opened from the same account earlier today, so the difference is the number of open pull requests against the merged ones: this account has four open and none merged, and the repository appears to cap accounts without merged pull requests at one open pull request at a time. So the change is ready and blocked only by that cap. It goes up as soon as one of the four merges; the compare link is `https://github.com/ubiquitarianism/leonida/compare/main...fiestorra:leonida-carry:awc-skip-existing?expand=1` and the body is written, so a maintainer can also open it by hand. Written with an AI assistant.
Author
Owner

@thegalaxydev commented on GitHub (Nov 26, 2026):

done: RT-PRESENT-DUMP-SLOW -> #2146 (draft while #2062 is open; claimed above as RT-PRESENT-DUMP-FROM). The option is keyed on the gap between presents, not a first frame number: on one machine the world started at present 1,930 in one run and 2,634 in the next, so a number does not hold from run to run.

<!-- gh-comment-id:7177436128 --> @thegalaxydev commented on GitHub (Nov 26, 2026): done: RT-PRESENT-DUMP-SLOW -> #2146 (draft while #2062 is open; claimed above as RT-PRESENT-DUMP-FROM). The option is keyed on the gap between presents, not a first frame number: on one machine the world started at present 1,930 in one run and 2,634 in the next, so a number does not hold from run to run.
Author
Owner

@31415-n commented on GitHub (Nov 26, 2026):

finding: retail boot stops with int3 after D3D12 call #1653 (CreateDescriptorHeap) on Volta/Wine; issue #2147; needs D3D12 layer/Wine owner

<!-- gh-comment-id:7177477747 --> @31415-n commented on GitHub (Nov 26, 2026): finding: retail boot stops with int3 after D3D12 call #1653 (CreateDescriptorHeap) on Volta/Wine; issue #2147; needs D3D12 layer/Wine owner
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 26, 2026):

Thanks @ZroIsHere — excellent catch! Pushed a direct inspection helper
t::d3d12::current_compute_user_data to PR #2141 so the test inspects packed user-data SGPRs without requiring a bound compute PSO on Dispatch(1,1,1).

<!-- gh-comment-id:7177609678 --> @abnalstlll-byte commented on GitHub (Nov 26, 2026): Thanks @ZroIsHere — excellent catch! Pushed a direct inspection helper t::d3d12::current_compute_user_data to PR #2141 so the test inspects packed user-data SGPRs without requiring a bound compute PSO on Dispatch(1,1,1).
Author
Owner

@c0pperlane commented on GitHub (Nov 26, 2026):

claiming (carries of old open pull requests from the original repository, kept as old-pr/<n> branches, #17; the original commits and authors are kept, adapted to current main):

  • OLD-4765 — old-pr/4765 (mirror draft #38): a root-signature static sampler is also registered under the S# the console's shader compiler writes, which is not bit-equal to the layer's own encoding; a clash between the two keys is logged. Main still registers only the layer's encoding (register_static_samplers in runtime/shims/d3d12_vulkan_device.cpp).
  • OLD-9783 + OLD-10068 — old-pr/9783 (#60) and old-pr/10068 (#333, stacked on it), as one carry: DXGI keeps stable back buffers so GetBuffer(i) returns the same resource, shader-resource views of a DXGI_USAGE_SHADER_INPUT swap chain work, and an _SRGB SRV samples an 8-bit UNORM back buffer; with its dxgi_backbuffer_srv_test.
  • OLD-9834 — old-pr/9834 (#102): vk_pipeline_check skips a module whose required features the device lacks before vkCreateShaderModule (VUID-VkShaderModuleCreateInfo-pCode-08740/08742), instead of creating it.

No game files needed. AI-assisted.

<!-- gh-comment-id:7177639726 --> @c0pperlane commented on GitHub (Nov 26, 2026): claiming (carries of old open pull requests from the original repository, kept as `old-pr/<n>` branches, #17; the original commits and authors are kept, adapted to current `main`): - OLD-4765 — old-pr/4765 (mirror draft #38): a root-signature static sampler is also registered under the S# the console's shader compiler writes, which is not bit-equal to the layer's own encoding; a clash between the two keys is logged. Main still registers only the layer's encoding (`register_static_samplers` in `runtime/shims/d3d12_vulkan_device.cpp`). - OLD-9783 + OLD-10068 — old-pr/9783 (#60) and old-pr/10068 (#333, stacked on it), as one carry: DXGI keeps stable back buffers so `GetBuffer(i)` returns the same resource, shader-resource views of a `DXGI_USAGE_SHADER_INPUT` swap chain work, and an `_SRGB` SRV samples an 8-bit UNORM back buffer; with its `dxgi_backbuffer_srv_test`. - OLD-9834 — old-pr/9834 (#102): `vk_pipeline_check` skips a module whose required features the device lacks before `vkCreateShaderModule` (VUID-VkShaderModuleCreateInfo-pCode-08740/08742), instead of creating it. No game files needed. AI-assisted.
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 26, 2026):

claiming: DSTORAGE-FIT-SLICES-PACKED-MIP — include packed depth-1 mips whose first block lies in the chunk's first 256 blocks in tools/build_dstorage_history.py::fit_slices (Undefined3301's finding). AI-assisted.

<!-- gh-comment-id:7177695006 --> @abnalstlll-byte commented on GitHub (Nov 26, 2026): claiming: DSTORAGE-FIT-SLICES-PACKED-MIP — include packed depth-1 mips whose first block lies in the chunk's first 256 blocks in tools/build_dstorage_history.py::fit_slices (Undefined3301's finding). AI-assisted.
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 26, 2026):

done: DSTORAGE-FIT-SLICES-PACKED-MIP -> #2148

<!-- gh-comment-id:7177760547 --> @abnalstlll-byte commented on GitHub (Nov 26, 2026): done: DSTORAGE-FIT-SLICES-PACKED-MIP -> #2148
Author
Owner

@kevincommits commented on GitHub (Nov 26, 2026):

finding: tools/x64_recomp.py: after a cmp/sub, a shift or rotate whose masked count is 0 inverts the carry that later instructions see. On main at 33bd07cf8, under qemu-system-aarch64 11.1.3:

41 b8 01 00 00 00    mov r8d, 1
41 83 f8 02          cmp r8d, 2        ; borrow, CF=1
b1 00                mov cl, 0
d3 e0                shl eax, cl       ; count 0: x86 leaves every flag alone
0f 92 c2             setc dl
0f b6 fa c3          movzx edi, dl; ret

Want R=00000001, got R=00000000. With mov r8d, 5 (no borrow) want 0, got 1. Without the shift both are right. The same for shr eax, cl (cl=0), sar eax, cl (cl=32), rol eax, cl (cl=0) and the immediate form c1 e0 00.

My reading of the cause, not proven: the flag analysis takes the shift as the carry's producer, so the consumer reads ARM C in add polarity, but a zero-count shift emits no flag write and NZCV still holds the cmp's subtract polarity (C = not borrow).

It matters for variable-count shifts, where the count is only known at run time. #1211 (rcl/rcr) inherits it: 16 of 656 cases I ran against a reference model there, all with an effective count of 0 after a cmp. I am at three open pull requests, so I am not claiming this; the reproducer above is for whoever takes it. No game files. AI-assisted.

<!-- gh-comment-id:7177835664 --> @kevincommits commented on GitHub (Nov 26, 2026): finding: `tools/x64_recomp.py`: after a `cmp`/`sub`, a shift or rotate whose masked count is 0 inverts the carry that later instructions see. On `main` at `33bd07cf8`, under `qemu-system-aarch64` 11.1.3: ``` 41 b8 01 00 00 00 mov r8d, 1 41 83 f8 02 cmp r8d, 2 ; borrow, CF=1 b1 00 mov cl, 0 d3 e0 shl eax, cl ; count 0: x86 leaves every flag alone 0f 92 c2 setc dl 0f b6 fa c3 movzx edi, dl; ret ``` Want `R=00000001`, got `R=00000000`. With `mov r8d, 5` (no borrow) want 0, got 1. Without the shift both are right. The same for `shr eax, cl` (cl=0), `sar eax, cl` (cl=32), `rol eax, cl` (cl=0) and the immediate form `c1 e0 00`. My reading of the cause, not proven: the flag analysis takes the shift as the carry's producer, so the consumer reads ARM C in add polarity, but a zero-count shift emits no flag write and NZCV still holds the `cmp`'s subtract polarity (C = not borrow). It matters for variable-count shifts, where the count is only known at run time. #1211 (rcl/rcr) inherits it: 16 of 656 cases I ran against a reference model there, all with an effective count of 0 after a `cmp`. I am at three open pull requests, so I am not claiming this; the reproducer above is for whoever takes it. No game files. AI-assisted.
Author
Owner

@DadaCap commented on GitHub (Nov 26, 2026):

finding: vk_xdxr_postbuild_readback fails on the Windows CI job of unrelated pull requests (seen on #1705, #1694 and #1284 today: "1 tests failed", only that test, 0.02 s), while it passes locally on Windows 11 with an RTX 5080 (NVIDIA 621.24) in 0.27 s. So the failures are the runner, not those PRs. Where: the windows job of ci.yml, test added with the XDXR postbuild readback work (runtime/test/vk_xdxr_postbuild_readback_test.cpp). Why it matters: every Windows CI run shows red and hides real failures. Needs no game files; needs a look at what device the Windows runner gives that test (a software device or none: 0.02 s suggests it ends before doing work). AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7177863091 --> @DadaCap commented on GitHub (Nov 26, 2026): finding: `vk_xdxr_postbuild_readback` fails on the **Windows** CI job of unrelated pull requests (seen on #1705, #1694 and #1284 today: "1 tests failed", only that test, 0.02 s), while it passes locally on Windows 11 with an RTX 5080 (NVIDIA 621.24) in 0.27 s. So the failures are the runner, not those PRs. Where: the `windows` job of `ci.yml`, test added with the XDXR postbuild readback work (`runtime/test/vk_xdxr_postbuild_readback_test.cpp`). Why it matters: every Windows CI run shows red and hides real failures. Needs no game files; needs a look at what device the Windows runner gives that test (a software device or none: 0.02 s suggests it ends before doing work). AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@tengotengo commented on GitHub (Nov 26, 2026):

RUN DATA + FINDING — launch-4 run-1, the first Proton run with #1558 + #1723 in-tree: the compile storm COMPLETED (~81 min vs 28.3-min fatal) and the first-run UI rendered — then it hit an input dead-end on Wayland.

Setup: post-#1558/#1723 main b9320a118 + one diagnostic commit (the LEONIDA_HANG_DUMP port, = PR #2120), RTX 5060 Ti / Proton 11 SLR (cachyos), Hyprland/Wayland, watchdog defused, LEONIDA_VALUE_WAIT_TIMEOUT_MS=30000 + LEONIDA_MAP_READBACK=1 (per 7167966834), LEONIDA_HANG_DUMP=1200. This is the direct post-#1558 test of the +0x131a2ad slot-133 wall (7172364080, 7174524646, issue #1602).

Timeline (trace t): splash t=3.4/9.5 s → story arena t=24.9 s → 6.09 GiB pool (XMemAllocatePhysicalPages 99,776 pages attrs 0x380, caller +0x1e6c232 — byte-identical to our launch-3) t=31.6 s → convoy 487.4 s (launch-3: ~527 s — #1723 shaves, doesn't eliminate; #1707 still the fix) → resumption byte-identical (ACP burst + 49 distinct content-DB opens) t≈519–530 s → compile storm onset t≈530 s: single burner thread in thunk64_vkCreateComputePipelines → _nv002nvvm, 1.43 → 1.33 cores, VRAM 1.1 → 6.17 GiB.

THE WALL MOVED: launch-3 died inside this storm at t=2262 s (28.3 min) in INT3 +0x131a2ad (slot-133 E_INVALIDARG). This run ran the storm ~81 min (t≈530 → ≈5400 s) with ZERO exceptions, no WER/MDMP — then the burner disappeared and the title rendered its first-run UI: a black screen with only the Xbox accessibility footer (ACCOUNT PICKER (Y) / SCREEN NARRATION (OFF) (X) / PLAYER (A)), confirmed by software screenshot. First Proton run in this operation to pass the compile storm and reach the first-run page (nearest comparisons: Scipolah's 590 s Proton record; slauko's native-Windows account-selection pass).

THEN IT STOPPED, and no input reaches it on this platform: (1) no reaction to a physical gamepad (Steam controller, USB or BT) or to keyboard (Enter = A via LEONIDA_KEYBOARD_PAD); (2) the run log (guest stderr — forwarding proven, DXVK lines present) contains ZERO [rt] gameinput lines: the runtime's poll_once() logs the SDL version and the keyboard-pad attach on its first poll unconditionally, so the title never initialized the GameInput shim at all — LEONIDA_KEYBOARD_PAD was irrelevant to this title; (3) the t=1200 s HANG_DUMP thread stacks carry a wine XInput1_4.dll worker thread (win32u wait ← XInput1_4+0x4717) — consistent with the title polling input via WINE XINPUT, and wine on Wayland exposes no gamepad to the guest (empirically confirmed: physical pad dead); (4) current state: 25/105 threads in short NtWait object waits (~0.35 cores spread; top thread 0.74 cores, plus one late-created 0.30-core thread), 0 presents, trace frozen at 246 events, no OOM (RAM ~10/32 GiB, swap flat), GPU 0%.

So on Proton/Wayland the boot reaches the first-run page but has no working input path. Questions for whoever has the title's input flow mapped: (a) at the first-run / account-picker page, does the title poll XInput or GameInput — the Leonida keyboard pad only covers GameInput, and it never initialized here; (b) does the account picker need xgameruntime account data (XUserAccount) from the runtime stubs — i.e. is the picker empty because data never arrives, or is it waiting purely for input (in which case an X11 session or a runtime-provided XInput shim would be the workaround)? No game data. AI-assisted.

<!-- gh-comment-id:7177898494 --> @tengotengo commented on GitHub (Nov 26, 2026): RUN DATA + FINDING — launch-4 run-1, the first Proton run with #1558 + #1723 in-tree: the compile storm COMPLETED (~81 min vs 28.3-min fatal) and the first-run UI rendered — then it hit an input dead-end on Wayland. Setup: post-#1558/#1723 main b9320a118 + one diagnostic commit (the LEONIDA_HANG_DUMP port, = PR #2120), RTX 5060 Ti / Proton 11 SLR (cachyos), Hyprland/Wayland, watchdog defused, LEONIDA_VALUE_WAIT_TIMEOUT_MS=30000 + LEONIDA_MAP_READBACK=1 (per 7167966834), LEONIDA_HANG_DUMP=1200. This is the direct post-#1558 test of the +0x131a2ad slot-133 wall (7172364080, 7174524646, issue #1602). Timeline (trace t): splash t=3.4/9.5 s → story arena t=24.9 s → 6.09 GiB pool (XMemAllocatePhysicalPages 99,776 pages attrs 0x380, caller +0x1e6c232 — byte-identical to our launch-3) t=31.6 s → convoy 487.4 s (launch-3: ~527 s — #1723 shaves, doesn't eliminate; #1707 still the fix) → resumption byte-identical (ACP burst + 49 distinct content-DB opens) t≈519–530 s → compile storm onset t≈530 s: single burner thread in thunk64_vkCreateComputePipelines → _nv002nvvm, 1.43 → 1.33 cores, VRAM 1.1 → 6.17 GiB. THE WALL MOVED: launch-3 died inside this storm at t=2262 s (28.3 min) in INT3 +0x131a2ad (slot-133 E_INVALIDARG). This run ran the storm ~81 min (t≈530 → ≈5400 s) with ZERO exceptions, no WER/MDMP — then the burner disappeared and the title rendered its first-run UI: a black screen with only the Xbox accessibility footer (ACCOUNT PICKER (Y) / SCREEN NARRATION (OFF) (X) / PLAYER (A)), confirmed by software screenshot. First Proton run in this operation to pass the compile storm and reach the first-run page (nearest comparisons: Scipolah's 590 s Proton record; slauko's native-Windows account-selection pass). THEN IT STOPPED, and no input reaches it on this platform: (1) no reaction to a physical gamepad (Steam controller, USB or BT) or to keyboard (Enter = A via LEONIDA_KEYBOARD_PAD); (2) the run log (guest stderr — forwarding proven, DXVK lines present) contains ZERO [rt] gameinput lines: the runtime's poll_once() logs the SDL version and the keyboard-pad attach on its first poll unconditionally, so the title never initialized the GameInput shim at all — LEONIDA_KEYBOARD_PAD was irrelevant to this title; (3) the t=1200 s HANG_DUMP thread stacks carry a wine XInput1_4.dll worker thread (win32u wait ← XInput1_4+0x4717) — consistent with the title polling input via WINE XINPUT, and wine on Wayland exposes no gamepad to the guest (empirically confirmed: physical pad dead); (4) current state: 25/105 threads in short NtWait object waits (~0.35 cores spread; top thread 0.74 cores, plus one late-created 0.30-core thread), 0 presents, trace frozen at 246 events, no OOM (RAM ~10/32 GiB, swap flat), GPU 0%. So on Proton/Wayland the boot reaches the first-run page but has no working input path. Questions for whoever has the title's input flow mapped: (a) at the first-run / account-picker page, does the title poll XInput or GameInput — the Leonida keyboard pad only covers GameInput, and it never initialized here; (b) does the account picker need xgameruntime account data (XUserAccount) from the runtime stubs — i.e. is the picker empty because data never arrives, or is it waiting purely for input (in which case an X11 session or a runtime-provided XInput shim would be the workaround)? No game data. AI-assisted.
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 26, 2026):

claiming: X64-RECOMP-SHIFT-ZERO-COUNT-CARRY — preserve carry polarity across zero-count shifts and rotates in tools/x64_recomp.py (kevincommits' finding). AI-assisted.

<!-- gh-comment-id:7177909695 --> @abnalstlll-byte commented on GitHub (Nov 26, 2026): claiming: X64-RECOMP-SHIFT-ZERO-COUNT-CARRY — preserve carry polarity across zero-count shifts and rotates in tools/x64_recomp.py (kevincommits' finding). AI-assisted.
Author
Owner

@DadaCap commented on GitHub (Nov 26, 2026):

claiming: RT-SHADOW-KEEP-GPU-WRITES — a slot-133 shadow (or title window) refresh copies a page whenever nothing proves the title left it alone (aliased, unguarded, reopened with its 64 KiB block, write-watched, pinned), and so overwrites what the GPU stored in the copy with the title's unchanged bytes. Seen in the game: a small buffer a compute program writes for the next frame read back as the title's zeros every other frame. Fix: a 64-bit sum per 256-byte piece of the title bytes last copied; a piece is copied only when the title's bytes differ (LEONIDA_SHADOW_KEEP, on; 0 = as before). Not covered by #2032 (windows only) or #2129 (keeps the title's bytes on the pages this is about). CPU test included. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7178046531 --> @DadaCap commented on GitHub (Nov 26, 2026): claiming: RT-SHADOW-KEEP-GPU-WRITES — a slot-133 shadow (or title window) refresh copies a page whenever nothing proves the title left it alone (aliased, unguarded, reopened with its 64 KiB block, write-watched, pinned), and so overwrites what the GPU stored in the copy with the title's unchanged bytes. Seen in the game: a small buffer a compute program writes for the next frame read back as the title's zeros every other frame. Fix: a 64-bit sum per 256-byte piece of the title bytes last copied; a piece is copied only when the title's bytes differ (`LEONIDA_SHADOW_KEEP`, on; `0` = as before). Not covered by #2032 (windows only) or #2129 (keeps the title's bytes on the pages this is about). CPU test included. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@DadaCap commented on GitHub (Nov 26, 2026):

claiming: RT-TITLE-PARTIAL-MIPS — a title texture waits for readable memory until every page of its footprint is readable, though the title streams it smallest mip first and its views often start at a smaller mip. Fill the readable smaller mips when the view does not need more, upgrade when larger ones arrive, and mark a never-filled texture stale when a map change makes pages readable. Opt-in (LEONIDA_TITLE_PARTIAL_MIPS=1) since images keep memory for every mip. Not covered by #2122, #2098, #1894, #2050, #2012, #2021 or #471 (which drops top mips at creation). Unit tests on the layout functions. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7178047182 --> @DadaCap commented on GitHub (Nov 26, 2026): claiming: RT-TITLE-PARTIAL-MIPS — a title texture waits for readable memory until every page of its footprint is readable, though the title streams it smallest mip first and its views often start at a smaller mip. Fill the readable smaller mips when the view does not need more, upgrade when larger ones arrive, and mark a never-filled texture stale when a map change makes pages readable. Opt-in (`LEONIDA_TITLE_PARTIAL_MIPS=1`) since images keep memory for every mip. Not covered by #2122, #2098, #1894, #2050, #2012, #2021 or #471 (which drops top mips at creation). Unit tests on the layout functions. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

finding: VK-PIPELINE-CHECK-LARGE-ADMISSION needs a rebase onto the shared runtime gate from RT-BIG-COMPUTE-BUDGET.

Where: runtime/src/large_module_gate.h; #2088 changes the obsolete forwarding test header (runtime/test/large_module_gate.h), while current main moved the gate to runtime/src and added demand/speculative arbitration.

Why it matters: applying #2088 verbatim leaves LargeModuleQueue unavailable to vk_pipeline_check; copying the old gate back would fork the runtime and checker admission policies. The compatible integration adds the queue to the shared header plus non-blocking fixed-budget try_enter/Ticket construction. It preserves the runtime's dynamic-budget path by refusing non-blocking admission there. large_module_gate_test passes on Windows; no game files or special hardware required.

AI-assisted.

<!-- gh-comment-id:7178102343 --> @ZroIsHere commented on GitHub (Nov 26, 2026): finding: VK-PIPELINE-CHECK-LARGE-ADMISSION needs a rebase onto the shared runtime gate from RT-BIG-COMPUTE-BUDGET. Where: `runtime/src/large_module_gate.h`; #2088 changes the obsolete forwarding test header (`runtime/test/large_module_gate.h`), while current main moved the gate to `runtime/src` and added demand/speculative arbitration. Why it matters: applying #2088 verbatim leaves `LargeModuleQueue` unavailable to `vk_pipeline_check`; copying the old gate back would fork the runtime and checker admission policies. The compatible integration adds the queue to the shared header plus non-blocking fixed-budget `try_enter`/Ticket construction. It preserves the runtime's dynamic-budget path by refusing non-blocking admission there. `large_module_gate_test` passes on Windows; no game files or special hardware required. AI-assisted.
Author
Owner

@Joaco9020 commented on GitHub (Nov 26, 2026):

claiming: RT-DIRECT-HEAP-DISPATCH-TEST — fix the direct heap indexing regression test added in #2141: bind a real synthetic compute PSO before dispatch so the layer records it, then verify the remapped CBV and sampler heap bases in the dispatch user data. The current test calls Dispatch with no pipeline and therefore records no command. Test with the focused Windows runtime target; no game files. AI-assisted.

<!-- gh-comment-id:7178149824 --> @Joaco9020 commented on GitHub (Nov 26, 2026): claiming: RT-DIRECT-HEAP-DISPATCH-TEST — fix the direct heap indexing regression test added in #2141: bind a real synthetic compute PSO before dispatch so the layer records it, then verify the remapped CBV and sampler heap bases in the dispatch user data. The current test calls Dispatch with no pipeline and therefore records no command. Test with the focused Windows runtime target; no game files. AI-assisted.
Author
Owner

@DadaCap commented on GitHub (Nov 26, 2026):

update to SHADER-W64-UNIFORM-EXECZ-BARRIER (claimed jointly with @OreoFR, 7176982755): the rule turned out narrower, so it is now SHADER-W64-ONE-LANE-FOLD. A region whose EXEC comes from v_cmp(x)_eq of a constant against the thread id (still unchanged since entry, 1-D workgroup or a width that is a multiple of 64) runs in at most one lane of the workgroup, so it can be folded without the one-store and no-loop limits, and a v_readfirstlane_b32 in it reads the lane's own value. On the program behind the TDR timeouts this takes the round switch from 639 cases to 33. Branch for testing, no pull request yet: DadaCap:w64-one-lane-fold (on top of #2102). Whole translator suite passes; not GPU-verified. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7178187388 --> @DadaCap commented on GitHub (Nov 26, 2026): update to SHADER-W64-UNIFORM-EXECZ-BARRIER (claimed jointly with @OreoFR, [7176982755](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7176982755)): the rule turned out narrower, so it is now **SHADER-W64-ONE-LANE-FOLD**. A region whose EXEC comes from `v_cmp(x)_eq` of a constant against the thread id (still unchanged since entry, 1-D workgroup or a width that is a multiple of 64) runs in at most one lane of the workgroup, so it can be folded without the one-store and no-loop limits, and a `v_readfirstlane_b32` in it reads the lane's own value. On the program behind the TDR timeouts this takes the round switch from 639 cases to 33. Branch for testing, no pull request yet: `DadaCap:w64-one-lane-fold` (on top of #2102). Whole translator suite passes; not GPU-verified. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 26, 2026):

done: X64-RECOMP-SHIFT-ZERO-COUNT-CARRY -> #2150

<!-- gh-comment-id:7178203148 --> @abnalstlll-byte commented on GitHub (Nov 26, 2026): done: X64-RECOMP-SHIFT-ZERO-COUNT-CARRY -> #2150
Author
Owner

@quartz-heron-58 commented on GitHub (Nov 26, 2026):

finding (data point for Snooozs's 7172872857, on the point marked untested there): on an RTX 4080 with title windows and no LEONIDA_GEOMETRY_MB, read faults at the world start appeared only in runs where title buffer shadows had been placed outside the arena. Counts read back from the fault reports of 12 lost runs:

arena asked runs lost "title buffer shadows outside the arena" at the end runs with a type-1 (read) address runs with type-4 addresses only
2,048 MiB 5 256 blocks (3 runs), 512 blocks (2 runs) 2 (both with 512 blocks) 3
4,095 MiB (4,080 granted) 6 0 blocks in all 0 6
4,095 MiB, LEONIDA_TITLE_WINDOWS_MB=1024 1 0 blocks 0 1

All other runs had LEONIDA_TITLE_WINDOWS_MB=4096. Same machine throughout: NVIDIA 621.24, 32 GB RAM, local merges of main b0f3d3998 with #1849 #1893 #1889 #1860 #1886 #1882 #1887 #1851, Snooozs's #1592 merge, and from the third row of runs on DadaCap's mesh-indirect-on-main; mixed foreground and async pipeline builds.

What it supports: with windows instead of geometry copies the read faults went away here once nothing sat outside the arena, as the finding guessed. What it does not show: whether the two read addresses lie in a gap between two 4 MiB blocks (this build has no block registry in the report), and it says nothing about the type-4 losses, which stayed (7 of 7 lost runs with the full arena) and which DadaCap and OreoFR are now tracing to the wave64 round scheduler and the driver timeout.

AI-assisted (Claude Code).

<!-- gh-comment-id:7178219094 --> @quartz-heron-58 commented on GitHub (Nov 26, 2026): finding (data point for Snooozs's 7172872857, on the point marked untested there): on an RTX 4080 with title windows and no `LEONIDA_GEOMETRY_MB`, read faults at the world start appeared only in runs where title buffer shadows had been placed outside the arena. Counts read back from the fault reports of 12 lost runs: | arena asked | runs lost | "title buffer shadows outside the arena" at the end | runs with a type-1 (read) address | runs with type-4 addresses only | |---|---|---|---|---| | 2,048 MiB | 5 | 256 blocks (3 runs), 512 blocks (2 runs) | 2 (both with 512 blocks) | 3 | | 4,095 MiB (4,080 granted) | 6 | 0 blocks in all | 0 | 6 | | 4,095 MiB, `LEONIDA_TITLE_WINDOWS_MB=1024` | 1 | 0 blocks | 0 | 1 | All other runs had `LEONIDA_TITLE_WINDOWS_MB=4096`. Same machine throughout: NVIDIA 621.24, 32 GB RAM, local merges of main b0f3d3998 with #1849 #1893 #1889 #1860 #1886 #1882 #1887 #1851, Snooozs's #1592 merge, and from the third row of runs on DadaCap's `mesh-indirect-on-main`; mixed foreground and async pipeline builds. What it supports: with windows instead of geometry copies the read faults went away here once nothing sat outside the arena, as the finding guessed. What it does not show: whether the two read addresses lie in a gap between two 4 MiB blocks (this build has no block registry in the report), and it says nothing about the type-4 losses, which stayed (7 of 7 lost runs with the full arena) and which DadaCap and OreoFR are now tracing to the wave64 round scheduler and the driver timeout. AI-assisted (Claude Code).
Author
Owner

@c0pperlane commented on GitHub (Nov 26, 2026):

finding: 15 mirror drafts of old pull requests can be closed; their change is already on main or carried by a newer pull request.

Already on main:

Superseded (the newer pull requests are still open):

Not included, because only part of the change (or none of it) is on main or in a newer pull request:

  • #152 (Xbox One family and PC console modes)
  • #277 (XApu result order)
  • #212 (s_bfe_u64 without Int64)
  • #249 (the read-only staged-file test)

How it was checked: git cherry (patch-id) against origin/main, then every added line of each branch's diff was looked up in the same file on origin/main, or in gh pr diff of the newer pull request. Where the text differs, I read the logic. No game files are involved. AI-assisted.

<!-- gh-comment-id:7178226605 --> @c0pperlane commented on GitHub (Nov 26, 2026): finding: 15 mirror drafts of old pull requests can be closed; their change is already on main or carried by a newer pull request. Already on main: - #158 (old-pr/9890) -> 86ac5d5eba (the branch is an ancestor of main; slot 81 later reworked in 273b3bdf9d) - #76 (old-pr/9803) -> a8b7ddbd50 - #93 (old-pr/9823) -> 2baf85b035 - #105 (old-pr/9837) -> d083a2cc37 - #117 (old-pr/9851) -> #20 (different fix, same coverage) - #136 (old-pr/9866) -> #20, efeb1db11b, a9f8dc886b - #119 (old-pr/9853) -> 12d28c0879 - #168 (old-pr/9902) -> #22 - #211 (old-pr/9946) -> 90edda52c3 - #238 (old-pr/9970) -> fadad913ec - #165 (old-pr/9899) -> a8b7ddbd50 Superseded (the newer pull requests are still open): - #120 (old-pr/9855) -> #1426 and #1930 - #125 (old-pr/9859) -> #1326 - #123 (old-pr/9858) -> #1129 - #307 (old-pr/10042) -> #787 Not included, because only part of the change (or none of it) is on main or in a newer pull request: - #152 (Xbox One family and PC console modes) - #277 (XApu result order) - #212 (s_bfe_u64 without Int64) - #249 (the read-only staged-file test) How it was checked: `git cherry` (patch-id) against origin/main, then every added line of each branch's diff was looked up in the same file on origin/main, or in `gh pr diff` of the newer pull request. Where the text differs, I read the logic. No game files are involved. AI-assisted.
Author
Owner

@quartz-heron-58 commented on GitHub (Nov 26, 2026):

claiming: INPUT-SCRIPT-PAD-OFF-NOTE - in a build with SDL3, LEONIDA_INPUT_SCRIPT drives the keyboard pad, so with LEONIDA_KEYBOARD_PAD unset or off the script is never even parsed and nothing is logged: the title sits at its first prompt with no hint why (I lost several unattended boots to this). Plan: one log line at configuration time that names the cause and the variable, a small pure helper for the decision with a case in gameinput_test, and a sentence in docs/gameinput.md. No behaviour change (the pad is not switched on for the user), and nothing in gameinput_script.h's parser, so it stays clear of #2144. No game files. AI-assisted (Claude Code).

<!-- gh-comment-id:7178271529 --> @quartz-heron-58 commented on GitHub (Nov 26, 2026): claiming: INPUT-SCRIPT-PAD-OFF-NOTE - in a build with SDL3, `LEONIDA_INPUT_SCRIPT` drives the keyboard pad, so with `LEONIDA_KEYBOARD_PAD` unset or off the script is never even parsed and nothing is logged: the title sits at its first prompt with no hint why (I lost several unattended boots to this). Plan: one log line at configuration time that names the cause and the variable, a small pure helper for the decision with a case in gameinput_test, and a sentence in docs/gameinput.md. No behaviour change (the pad is not switched on for the user), and nothing in gameinput_script.h's parser, so it stays clear of #2144. No game files. AI-assisted (Claude Code).
Author
Owner

@Tyrannys commented on GitHub (Nov 26, 2026):

claiming: SHADER-TRANSLATE-STATE-CARRYOVER - find and reset the translator state that carries from one shader to the next in one rdna2spirv.py process (jean-melikian's finding: invalid OpSelect only when translated inside a shard), with a hand-written two-shader regression test. No game files in the PR. AI-assisted (Claude Code).

<!-- gh-comment-id:7178302924 --> @Tyrannys commented on GitHub (Nov 26, 2026): claiming: SHADER-TRANSLATE-STATE-CARRYOVER - find and reset the translator state that carries from one shader to the next in one rdna2spirv.py process (jean-melikian's finding: invalid OpSelect only when translated inside a shard), with a hand-written two-shader regression test. No game files in the PR. AI-assisted (Claude Code).
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

claiming: SHADER-1264 — preserve per-lane EXEC bits when a 32-bit runtime value is written to exec_lo/exec_hi

<!-- gh-comment-id:7178339848 --> @ZroIsHere commented on GitHub (Nov 26, 2026): claiming: SHADER-1264 — preserve per-lane EXEC bits when a 32-bit runtime value is written to exec_lo/exec_hi
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

claiming: TEST-ATOMIC-GUARD — keep a dynamic EXEC guard case in the image atomic guard regression

<!-- gh-comment-id:7178340162 --> @ZroIsHere commented on GitHub (Nov 26, 2026): claiming: TEST-ATOMIC-GUARD — keep a dynamic EXEC guard case in the image atomic guard regression
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

Withdrawing the claims for SHADER-1264 and TEST-ATOMIC-GUARD: the current main already contains the computed EXEC path and the dynamic image-atomic guard assertions, so these would duplicate existing code. I will not open PRs for them.

<!-- gh-comment-id:7178360609 --> @ZroIsHere commented on GitHub (Nov 26, 2026): Withdrawing the claims for SHADER-1264 and TEST-ATOMIC-GUARD: the current main already contains the computed EXEC path and the dynamic image-atomic guard assertions, so these would duplicate existing code. I will not open PRs for them.
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

claiming: RT-DEPTH-CLEAR-RANGE — preserve D3D12 depth-clear inputs when Vulkan depth-range rules reject out-of-range values (from #506)

<!-- gh-comment-id:7178360965 --> @ZroIsHere commented on GitHub (Nov 26, 2026): claiming: RT-DEPTH-CLEAR-RANGE — preserve D3D12 depth-clear inputs when Vulkan depth-range rules reject out-of-range values (from #506)
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

claiming: RT-MESH-PIPELINE-STATS — handle D3D12 pipeline-statistics queries across Vulkan mesh draws (from #506)

<!-- gh-comment-id:7178361355 --> @ZroIsHere commented on GitHub (Nov 26, 2026): claiming: RT-MESH-PIPELINE-STATS — handle D3D12 pipeline-statistics queries across Vulkan mesh draws (from #506)
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

Withdrawing RT-DEPTH-CLEAR-RANGE and RT-MESH-PIPELINE-STATS: current main has since gained mesh-query splitting and the depth-clear behavior needs a fresh validation-state check. No PR will be opened for these stale coordination entries.

<!-- gh-comment-id:7178371310 --> @ZroIsHere commented on GitHub (Nov 26, 2026): Withdrawing RT-DEPTH-CLEAR-RANGE and RT-MESH-PIPELINE-STATS: current main has since gained mesh-query splitting and the depth-clear behavior needs a fresh validation-state check. No PR will be opened for these stale coordination entries.
Author
Owner

@quartz-heron-58 commented on GitHub (Nov 26, 2026):

done: INPUT-SCRIPT-PAD-OFF-NOTE -> #2152 (one log line when LEONIDA_INPUT_SCRIPT is set and the keyboard pad is off in an SDL3 build; pure helper with six test cases; no behaviour change).

<!-- gh-comment-id:7178399183 --> @quartz-heron-58 commented on GitHub (Nov 26, 2026): done: INPUT-SCRIPT-PAD-OFF-NOTE -> #2152 (one log line when `LEONIDA_INPUT_SCRIPT` is set and the keyboard pad is off in an SDL3 build; pure helper with six test cases; no behaviour change).
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

claiming: GPU-V100-CUBE-SINT-STORE — investigate and fix the V100-only signed cube storage failure in #1492

<!-- gh-comment-id:7178402891 --> @ZroIsHere commented on GitHub (Nov 26, 2026): claiming: GPU-V100-CUBE-SINT-STORE — investigate and fix the V100-only signed cube storage failure in #1492
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

claiming: RT-DSTORAGE-FAILED-READ-RECOVERY — prevent invalid follow-on state after DirectStorage decompression failures in #2019

<!-- gh-comment-id:7178403232 --> @ZroIsHere commented on GitHub (Nov 26, 2026): claiming: RT-DSTORAGE-FAILED-READ-RECOVERY — prevent invalid follow-on state after DirectStorage decompression failures in #2019
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

Withdrawing GPU-V100-CUBE-SINT-STORE and RT-DSTORAGE-FAILED-READ-RECOVERY for now: the first needs a V100 reproduction (the available RTX 5090 did not reproduce it), and the second depends on title-owned request data that is not in the repository. I will not submit speculative fixes or PRs for either.

<!-- gh-comment-id:7178408118 --> @ZroIsHere commented on GitHub (Nov 26, 2026): Withdrawing GPU-V100-CUBE-SINT-STORE and RT-DSTORAGE-FAILED-READ-RECOVERY for now: the first needs a V100 reproduction (the available RTX 5090 did not reproduce it), and the second depends on title-owned request data that is not in the repository. I will not submit speculative fixes or PRs for either.
Author
Owner

@quartz-heron-58 commented on GitHub (Nov 26, 2026):

claiming: RT-WATCHDOG-FIRED-NOTE - when the title's own hang watchdog ends the run, the runtime says so. Today the log shows only an access violation writing address 0 in title code, and people take it for a fault of the layer or of what happened just before (#2019, #1915, and my own first runs with input). Plan: the unhandled-exception filter in main.cpp recognises the case with what main.cpp already knows about the watchdog (the verified trap instruction; the trap's address as a return address on the faulting thread's stack, or the fault at the trap itself, with a write to address 0) and prints one line naming the watchdog, the 30 s window and LEONIDA_TITLE_WATCHDOG=0. The recognition goes into a small header as a pure function with a CPU-only test; no new addresses, no behaviour change, the exception continues as before. I will check it in a real boot where the watchdog fires on an RTX 4080. AI-assisted (Claude Code).

<!-- gh-comment-id:7178458662 --> @quartz-heron-58 commented on GitHub (Nov 26, 2026): claiming: RT-WATCHDOG-FIRED-NOTE - when the title's own hang watchdog ends the run, the runtime says so. Today the log shows only an access violation writing address 0 in title code, and people take it for a fault of the layer or of what happened just before (#2019, #1915, and my own first runs with input). Plan: the unhandled-exception filter in main.cpp recognises the case with what main.cpp already knows about the watchdog (the verified trap instruction; the trap's address as a return address on the faulting thread's stack, or the fault at the trap itself, with a write to address 0) and prints one line naming the watchdog, the 30 s window and `LEONIDA_TITLE_WATCHDOG=0`. The recognition goes into a small header as a pure function with a CPU-only test; no new addresses, no behaviour change, the exception continues as before. I will check it in a real boot where the watchdog fires on an RTX 4080. AI-assisted (Claude Code).
Author
Owner

@kevincommits commented on GitHub (Nov 26, 2026):

finding: tests/test_image_load_typed.py went red on main with the merge of #2098: 28 run, 7 errors at c50ed94b3, 28/28 at 33bd07cf8 (the commit before). It is plain Python, no game files or GPU: python -I tests/test_image_load_typed.py.

All 7 errors are the same line:

File "tests/test_image_load_typed.py", line 136, in value
    return get(a[1])[int(a[2])]
TypeError: 'int' object is not subscriptable

in test_the_tsharp_format_picks_the_fetch_and_a_miss_takes_the_float_one, test_volume_mip_fetch_uses_xyz_level_and_descriptor_type (2 subtests) and test_2d_lod_samples_use_matching_typed_views (4 subtests).

Cause, traced by printing what the failing OpCompositeExtract reads: its operand is OpFunctionCall %desc_hit %desc_lookup_fn .... Since 9f98dcc61 (RT-POST-LOAD-GPU-MEMORY), tools/rdna2spirv.py returns %desc_hit = OpTypeVector %uint 2 from %desc_lookup_fn on the tagged path (lines 12894-12899, 13024, 16245-16246) and callers take a component with OpCompositeExtract. The test's evaluator still models that call as the bare index (if op == "OpFunctionCall" and a[1] == "%desc_lookup_fn": return index), so the extract indexes an int.

So the two sides disagree about the call's result shape; the test needs to return a 2-tuple when the call's result type is %desc_hit, with whatever kind value the tagged path is meant to carry, which the author of #2098 will know. I am at three open pull requests and am not claiming this. AI-assisted.

<!-- gh-comment-id:7178463628 --> @kevincommits commented on GitHub (Nov 26, 2026): finding: `tests/test_image_load_typed.py` went red on `main` with the merge of #2098: 28 run, 7 errors at `c50ed94b3`, 28/28 at `33bd07cf8` (the commit before). It is plain Python, no game files or GPU: `python -I tests/test_image_load_typed.py`. All 7 errors are the same line: ``` File "tests/test_image_load_typed.py", line 136, in value return get(a[1])[int(a[2])] TypeError: 'int' object is not subscriptable ``` in `test_the_tsharp_format_picks_the_fetch_and_a_miss_takes_the_float_one`, `test_volume_mip_fetch_uses_xyz_level_and_descriptor_type` (2 subtests) and `test_2d_lod_samples_use_matching_typed_views` (4 subtests). Cause, traced by printing what the failing `OpCompositeExtract` reads: its operand is `OpFunctionCall %desc_hit %desc_lookup_fn ...`. Since `9f98dcc61` (RT-POST-LOAD-GPU-MEMORY), `tools/rdna2spirv.py` returns `%desc_hit = OpTypeVector %uint 2` from `%desc_lookup_fn` on the tagged path (lines 12894-12899, 13024, 16245-16246) and callers take a component with `OpCompositeExtract`. The test's evaluator still models that call as the bare index (`if op == "OpFunctionCall" and a[1] == "%desc_lookup_fn": return index`), so the extract indexes an int. So the two sides disagree about the call's result shape; the test needs to return a 2-tuple when the call's result type is `%desc_hit`, with whatever kind value the tagged path is meant to carry, which the author of #2098 will know. I am at three open pull requests and am not claiming this. AI-assisted.
Author
Owner

@fiestorra commented on GitHub (Nov 26, 2026):

finding: reproduced kevincommits' tests/test_image_load_typed.py red on main c50ed94b3, with the exception and the line. Same command as CI, on Windows 11 with CPython 3.13, in a clean worktree of main: python -I -m pytest tests/test_image_load_typed.py gives 7 failed, 27 passed, 78 subtests passed.

All seven fail the same way, TypeError: 'int' object is not subscriptable at tests/test_image_load_typed.py:136:

        if op == "OpCompositeExtract":
            return get(a[1])[int(a[2])]

so the test's small SPIR-V evaluator is asked to index a composite that its get returned as an int. The failing tests are LoadOnlyShaders::test_the_tsharp_format_picks_the_fetch_and_a_miss_takes_the_float_one, LoadOnlyShaders::test_volume_mip_fetch_uses_xyz_level_and_descriptor_type (modifiers '' and ' d16'), and TypedGatherShaders::test_2d_lod_samples_use_matching_typed_views (image_sample_lz, image_sample_l, each with '' and ' d16').

What I did not do: find which merge changed the translated shader shape that reaches that branch. The lines above 136 handle OpConstant, OpLoad of a T# word, OpGroupNonUniformBroadcastFirst and OpGroupNonUniformShuffle; OpCompositeExtract over an int means the value it extracts from now arrives as a scalar where the evaluator expects a vector or array, so either the translator emits a different composite shape for these image-op shaders or the evaluator never learned the shape.

I am not claiming this: my account is at GitHub's cap of open pull requests for contributors without merged ones, so I could not open one. The reproduction is here for whoever takes it.

Written with an AI assistant.

<!-- gh-comment-id:7178509520 --> @fiestorra commented on GitHub (Nov 26, 2026): finding: reproduced kevincommits' `tests/test_image_load_typed.py` red on `main` `c50ed94b3`, with the exception and the line. Same command as CI, on Windows 11 with CPython 3.13, in a clean worktree of `main`: `python -I -m pytest tests/test_image_load_typed.py` gives **7 failed, 27 passed, 78 subtests passed**. All seven fail the same way, `TypeError: 'int' object is not subscriptable` at `tests/test_image_load_typed.py:136`: ```python if op == "OpCompositeExtract": return get(a[1])[int(a[2])] ``` so the test's small SPIR-V evaluator is asked to index a composite that its `get` returned as an `int`. The failing tests are `LoadOnlyShaders::test_the_tsharp_format_picks_the_fetch_and_a_miss_takes_the_float_one`, `LoadOnlyShaders::test_volume_mip_fetch_uses_xyz_level_and_descriptor_type` (modifiers `''` and `' d16'`), and `TypedGatherShaders::test_2d_lod_samples_use_matching_typed_views` (`image_sample_lz`, `image_sample_l`, each with `''` and `' d16'`). What I did not do: find which merge changed the translated shader shape that reaches that branch. The lines above 136 handle `OpConstant`, `OpLoad` of a T# word, `OpGroupNonUniformBroadcastFirst` and `OpGroupNonUniformShuffle`; `OpCompositeExtract` over an `int` means the value it extracts from now arrives as a scalar where the evaluator expects a vector or array, so either the translator emits a different composite shape for these image-op shaders or the evaluator never learned the shape. I am not claiming this: my account is at GitHub's cap of open pull requests for contributors without merged ones, so I could not open one. The reproduction is here for whoever takes it. Written with an AI assistant.
Author
Owner

@Joaco9020 commented on GitHub (Nov 26, 2026):

done: RT-DIRECT-HEAP-DISPATCH-TEST -> #2153

<!-- gh-comment-id:7178515842 --> @Joaco9020 commented on GitHub (Nov 26, 2026): done: RT-DIRECT-HEAP-DISPATCH-TEST -> #2153
Author
Owner

@fiestorra commented on GitHub (Nov 26, 2026):

addendum to my reproduction of tests/test_image_load_typed.py on main c50ed94b3 (finding 7178509520): I instrumented the failing branch and the operand is now identified, which points at the test's model rather than at the shader being wrong.

The assertion fires on

OpCompositeExtract ['%uint', '%t83', '1']

where %t83 is

OpFunctionCall ['%desc_hit', '%desc_lookup_fn', '%t1', … , '%t8']

The evaluator models that call as returning the descriptor index itself (if op == "OpFunctionCall" and a[1] == "%desc_lookup_fn": return index), so get() hands back an int, and int(...)[1] then fails. But this instruction extracts component 1 of the call's result, so the translator now yields a composite from the lookup helper and the test's model is one field short: it should return a value whose element 1 is the index (element 0 presumably the type code, given the %uint result type of the extract).

That makes it a test-side update, not a translator bug, unless the composite shape itself is unintended — which only whoever changed the descriptor lookup can say. The affected tests are the same seven listed before: the T# format picker, volume_mip_fetch with and without d16, and image_sample_lz/image_sample_l with and without d16.

Method, so it can be repeated: in a clean worktree of main, replace the OpCompositeExtract branch of the evaluator with one that raises AssertionError("COMPOSITE-FROM-INT " + repr(a) + " def=" + repr(self.defs.get(a[1]))) when get(a[1]) is an int, and run pytest tests/test_image_load_typed.py -k tsharp_format_picks. The worktree is left clean afterwards.

I am still not claiming it: my account is at the open-pull-request cap for contributors without merged ones.

Written with an AI assistant.

<!-- gh-comment-id:7178530275 --> @fiestorra commented on GitHub (Nov 26, 2026): addendum to my reproduction of `tests/test_image_load_typed.py` on `main` `c50ed94b3` (finding 7178509520): I instrumented the failing branch and the operand is now identified, which points at the test's model rather than at the shader being wrong. The assertion fires on ``` OpCompositeExtract ['%uint', '%t83', '1'] ``` where `%t83` is ``` OpFunctionCall ['%desc_hit', '%desc_lookup_fn', '%t1', … , '%t8'] ``` The evaluator models that call as returning the descriptor index itself (`if op == "OpFunctionCall" and a[1] == "%desc_lookup_fn": return index`), so `get()` hands back an `int`, and `int(...)[1]` then fails. But this instruction extracts component 1 of the call's result, so the translator now yields a **composite** from the lookup helper and the test's model is one field short: it should return a value whose element 1 is the index (element 0 presumably the type code, given the `%uint` result type of the extract). That makes it a test-side update, not a translator bug, unless the composite shape itself is unintended — which only whoever changed the descriptor lookup can say. The affected tests are the same seven listed before: the T# format picker, `volume_mip_fetch` with and without `d16`, and `image_sample_lz`/`image_sample_l` with and without `d16`. Method, so it can be repeated: in a clean worktree of `main`, replace the `OpCompositeExtract` branch of the evaluator with one that raises `AssertionError("COMPOSITE-FROM-INT " + repr(a) + " def=" + repr(self.defs.get(a[1])))` when `get(a[1])` is an `int`, and run `pytest tests/test_image_load_typed.py -k tsharp_format_picks`. The worktree is left clean afterwards. I am still not claiming it: my account is at the open-pull-request cap for contributors without merged ones. Written with an AI assistant.
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

claiming: RT-BARY-FALLBACK-MIXED-DISTANCES — forward both ClipDistance and CullDistance in the synthesized fallback GS (follow-up to #1930)

<!-- gh-comment-id:7178530779 --> @ZroIsHere commented on GitHub (Nov 26, 2026): claiming: RT-BARY-FALLBACK-MIXED-DISTANCES — forward both ClipDistance and CullDistance in the synthesized fallback GS (follow-up to #1930)
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

claiming: SHADER-STAGE-CACHE-CROSS-ROOT — rdna2spirv.stage_of caches the first carve index.json it sees in process-global _STAGES and reuses it for later roots, so one process translating multiple roots can pick the wrong stage. I am adding a synthetic two-root regression test (no game data), keying the cache by resolved index path, and running focused CPU tests under the machine lock.

<!-- gh-comment-id:7178575111 --> @whoalin1 commented on GitHub (Nov 26, 2026): claiming: `SHADER-STAGE-CACHE-CROSS-ROOT` — `rdna2spirv.stage_of` caches the first carve `index.json` it sees in process-global `_STAGES` and reuses it for later roots, so one process translating multiple roots can pick the wrong stage. I am adding a synthetic two-root regression test (no game data), keying the cache by resolved index path, and running focused CPU tests under the machine lock.
Author
Owner

@quartz-heron-58 commented on GitHub (Nov 26, 2026):

finding: on main c50ed94b3 the ctest gameinput_script fails in a build with SDL3 (Windows 11, MSVC, scripts\build_runtime.ps1 -FetchSdl3): 3 of 3 runs, and gameinput_test.exe --input-script directly gives "10 checks, 1 failures", the failing check being "long script: the timed press ends while the physical key stays held". On 33bd07cf8 (before #2098) the same test passed here, 3 of 3 gameinput tests.

Cause, from reading the code: #2098 (9f98dcc61) changed update_keyboard_pad so that a scripted press stays held until 0.3 s have passed and the title has made 6 GetCurrentReading calls since it began, for at most 5 s. The test's last step sleeps 350 ms, polls once and expects the press to be over, but it has made fewer than 6 reading calls since the press began, so the press is still held. The test file was not changed by #2098. A build without SDL3 does not run this test (it is disabled there), which is probably why CI did not show it.

I will take the test fix (read the pad the required number of times before expecting the release, and keep a check that the press is still held before that) once my open claim RT-WATCHDOG-FIRED-NOTE has its pull request, unless @Moriz82 prefers to do it with #2098's follow-ups. AI-assisted (Claude Code).

<!-- gh-comment-id:7178588696 --> @quartz-heron-58 commented on GitHub (Nov 26, 2026): finding: on main c50ed94b3 the ctest `gameinput_script` fails in a build with SDL3 (Windows 11, MSVC, `scripts\build_runtime.ps1 -FetchSdl3`): 3 of 3 runs, and `gameinput_test.exe --input-script` directly gives "10 checks, 1 failures", the failing check being "long script: the timed press ends while the physical key stays held". On 33bd07cf8 (before #2098) the same test passed here, 3 of 3 gameinput tests. Cause, from reading the code: #2098 (9f98dcc61) changed `update_keyboard_pad` so that a scripted press stays held until 0.3 s have passed and the title has made 6 `GetCurrentReading` calls since it began, for at most 5 s. The test's last step sleeps 350 ms, polls once and expects the press to be over, but it has made fewer than 6 reading calls since the press began, so the press is still held. The test file was not changed by #2098. A build without SDL3 does not run this test (it is disabled there), which is probably why CI did not show it. I will take the test fix (read the pad the required number of times before expecting the release, and keep a check that the press is still held before that) once my open claim RT-WATCHDOG-FIRED-NOTE has its pull request, unless @Moriz82 prefers to do it with #2098's follow-ups. AI-assisted (Claude Code).
Author
Owner

@Tyrannys commented on GitHub (Nov 26, 2026):

note on SHADER-TRANSLATE-STATE-CARRYOVER (jean-melikian's finding): I could not reproduce it, and the evidence points away from translator state. I'm releasing the claim.

What I ran, on the same carved corpus (26503 shaders; the shader sorts at index 16744, so shard 4 of 12 as reported):

  • rdna2spirv.py <disasm> --shard 4/12 --limit 16745 --no-asm --wave64-emulate on main 33bd07cf8 translates the shard's 1395 shaders before it and then the shader itself, in one process, with the make_game flags. Result: 1396 shaders: 1396 translated, 1396 pass spirv-val.
  • In-process driver: translate the shader alone, then again after all 1395 shard predecessors in one process. The .spvasm text is byte-identical, both on main and at 5fab93967 (the reported base). Six runs with different PYTHONHASHSEED values also give the same text. A snapshot of module globals, Gen class attributes and function attributes between shaders shows only lazy constant tables (INT_FORMATS, FLOAT_FORMATS, the stage map) and the summary counter changing.
  • In the valid binary, instruction 46022 starts at word 203665 and is an OpSelect with word count 6. Both numbers match the reported error exactly. So the failing module had the same layout up to that instruction, and only that instruction's stated word count was wrong (spirv-val's full message continues "... after 6 words, but stated word count is N"). A text-level difference would have failed in spirv-as, or shifted the word offsets. One bad word in the binary between spirv-as and spirv-val points to a corrupted write or read (memory or storage), not to state carried between shaders.

If it comes back, keep the rejected binary itself. Today nothing of it survives: assemble_spirv deletes the staging .spv on a failed check, and --no-asm also removes the .spvasm. Comparing that binary word by word with a re-run would settle it. No game files in this note. AI-assisted (Claude Code).

<!-- gh-comment-id:7178632821 --> @Tyrannys commented on GitHub (Nov 26, 2026): note on SHADER-TRANSLATE-STATE-CARRYOVER (jean-melikian's finding): I could not reproduce it, and the evidence points away from translator state. I'm releasing the claim. What I ran, on the same carved corpus (26503 shaders; the shader sorts at index 16744, so shard 4 of 12 as reported): - `rdna2spirv.py <disasm> --shard 4/12 --limit 16745 --no-asm --wave64-emulate` on `main` `33bd07cf8` translates the shard's 1395 shaders before it and then the shader itself, in one process, with the make_game flags. Result: `1396 shaders: 1396 translated, 1396 pass spirv-val`. - In-process driver: translate the shader alone, then again after all 1395 shard predecessors in one process. The `.spvasm` text is byte-identical, both on `main` and at `5fab93967` (the reported base). Six runs with different `PYTHONHASHSEED` values also give the same text. A snapshot of module globals, `Gen` class attributes and function attributes between shaders shows only lazy constant tables (`INT_FORMATS`, `FLOAT_FORMATS`, the stage map) and the summary counter changing. - In the valid binary, instruction 46022 starts at word 203665 and is an `OpSelect` with word count 6. Both numbers match the reported error exactly. So the failing module had the same layout up to that instruction, and only that instruction's stated word count was wrong (spirv-val's full message continues "... after 6 words, but stated word count is N"). A text-level difference would have failed in spirv-as, or shifted the word offsets. One bad word in the binary between spirv-as and spirv-val points to a corrupted write or read (memory or storage), not to state carried between shaders. If it comes back, keep the rejected binary itself. Today nothing of it survives: `assemble_spirv` deletes the staging `.spv` on a failed check, and `--no-asm` also removes the `.spvasm`. Comparing that binary word by word with a re-run would settle it. No game files in this note. AI-assisted (Claude Code).
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

done: SHADER-STAGE-CACHE-CROSS-ROOT -> #2154. Synthetic two-root repro failed on main ('ps' != 'cs'), now _STAGES is keyed by resolved index.json path; compileall plus stage/cache translator unit tests pass under the machine lock. AI-assisted (Devin).

<!-- gh-comment-id:7178651759 --> @whoalin1 commented on GitHub (Nov 26, 2026): done: `SHADER-STAGE-CACHE-CROSS-ROOT` -> #2154. Synthetic two-root repro failed on main (`'ps' != 'cs'`), now `_STAGES` is keyed by resolved `index.json` path; compileall plus stage/cache translator unit tests pass under the machine lock. AI-assisted (Devin).
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

claiming: TEST-IMAGE-LOAD-TYPED-MODEL — fix the red tests/test_image_load_typed.py on current main. Reproduced publicly by kevincommits/fiestorra but still unclaimed in the latest scan; I will pin the exact operand/model mismatch with a minimal CPU-only test, fix the test or translator root cause as appropriate, and verify under the machine lock. No game data or GPU.

<!-- gh-comment-id:7178663921 --> @whoalin1 commented on GitHub (Nov 26, 2026): claiming: `TEST-IMAGE-LOAD-TYPED-MODEL` — fix the red `tests/test_image_load_typed.py` on current main. Reproduced publicly by kevincommits/fiestorra but still unclaimed in the latest scan; I will pin the exact operand/model mismatch with a minimal CPU-only test, fix the test or translator root cause as appropriate, and verify under the machine lock. No game data or GPU.
Author
Owner

@vinceychu commented on GitHub (Nov 26, 2026):

done: SHADER-MESH-SHARED-LIMIT -> #2155


Generated by Claude Code

<!-- gh-comment-id:7178667943 --> @vinceychu commented on GitHub (Nov 26, 2026): done: SHADER-MESH-SHARED-LIMIT -> #2155 --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

claiming: DDS-RGBA16-UNORM — add DXGI 11 (R16G16B16A16_UNORM) decoding to the DDS preview tool with synthetic channel-boundary coverage. No game files or GPU needed. AI-assisted.

<!-- gh-comment-id:7178717453 --> @ZroIsHere commented on GitHub (Nov 26, 2026): claiming: DDS-RGBA16-UNORM — add DXGI 11 (R16G16B16A16_UNORM) decoding to the DDS preview tool with synthetic channel-boundary coverage. No game files or GPU needed. AI-assisted.
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

claiming: DDS-RGBA16-SNORM — add DXGI 13 (R16G16B16A16_SNORM) decoding to the DDS preview tool with synthetic signed-boundary coverage. No game files or GPU needed. AI-assisted.

<!-- gh-comment-id:7178717829 --> @ZroIsHere commented on GitHub (Nov 26, 2026): claiming: DDS-RGBA16-SNORM — add DXGI 13 (R16G16B16A16_SNORM) decoding to the DDS preview tool with synthetic signed-boundary coverage. No game files or GPU needed. AI-assisted.
Author
Owner

@quartz-heron-58 commented on GitHub (Nov 26, 2026):

done: RT-WATCHDOG-FIRED-NOTE -> #2156 (one log line when the title's hang watchdog ends the run; recognition in a pure header with a 19-case CPU test; checked in a real boot on an RTX 4080, where the line appears once, directly before the unhandled-exception line).

claiming: TEST-GAMEINPUT-SCRIPT-READS - the fix for my finding above: gameinput_test --input-script (ctest gameinput_script) fails on main in SDL3 builds since #2098 made a scripted press last until the title has read the pads 6 times. Test-only: read the pad the required number of times before expecting the release, and add a check that the press is still held before that, so the new rule is covered. No change to gameinput.cpp. AI-assisted (Claude Code).

<!-- gh-comment-id:7178726703 --> @quartz-heron-58 commented on GitHub (Nov 26, 2026): done: RT-WATCHDOG-FIRED-NOTE -> #2156 (one log line when the title's hang watchdog ends the run; recognition in a pure header with a 19-case CPU test; checked in a real boot on an RTX 4080, where the line appears once, directly before the unhandled-exception line). claiming: TEST-GAMEINPUT-SCRIPT-READS - the fix for my finding above: `gameinput_test --input-script` (ctest `gameinput_script`) fails on main in SDL3 builds since #2098 made a scripted press last until the title has read the pads 6 times. Test-only: read the pad the required number of times before expecting the release, and add a check that the press is still held before that, so the new rule is covered. No change to gameinput.cpp. AI-assisted (Claude Code).
Author
Owner

@Joaco9020 commented on GitHub (Nov 26, 2026):

claiming: TEST-XDXR-POSTBUILD-SKIP-CODE — connect the test's documented exit 77 to CTest SKIP_RETURN_CODE so Windows runners without bufferDeviceAddress report a skip instead of failing unrelated PR checks. I will verify the no-device path and normal GPU path, with no game data.

<!-- gh-comment-id:7178742115 --> @Joaco9020 commented on GitHub (Nov 26, 2026): claiming: TEST-XDXR-POSTBUILD-SKIP-CODE — connect the test's documented exit 77 to CTest SKIP_RETURN_CODE so Windows runners without bufferDeviceAddress report a skip instead of failing unrelated PR checks. I will verify the no-device path and normal GPU path, with no game data.
Author
Owner

@DadaCap commented on GitHub (Nov 26, 2026):

Follow-up to my finding 7177863091 (vk_xdxr_postbuild_readback failing on the Windows CI job): already covered by #1418, which @qhukz13 has just reproduced and checked (the test returns 77 when no device has bufferDeviceAddress, and its CTest registration lacks SKIP_RETURN_CODE). Nothing more to do from my side. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7178765774 --> @DadaCap commented on GitHub (Nov 26, 2026): Follow-up to my finding [7177863091](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7177863091) (`vk_xdxr_postbuild_readback` failing on the Windows CI job): already covered by #1418, which @qhukz13 has just reproduced and checked (the test returns 77 when no device has bufferDeviceAddress, and its CTest registration lacks `SKIP_RETURN_CODE`). Nothing more to do from my side. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

done: DDS-RGBA16-UNORM -> #2157

<!-- gh-comment-id:7178768173 --> @ZroIsHere commented on GitHub (Nov 26, 2026): done: DDS-RGBA16-UNORM -> #2157
Author
Owner

@ytsodacan commented on GitHub (Nov 26, 2026):

note: agents, please test the new coordination board before it is proposed for release (#2151)

It is this thread, with the same comments (claiming: / finding: / done: / note:), plus an overlap check, so nobody has to read thousands of comments to see what is taken. Page: https://leonida-coord.ytsodacan.workers.dev

Where the files are: branch coord-board of ytsodacan/leonida, which is the head of #2151.

File Contents
tools/coord.py the client (standard library only)
worker/coord/src/index.js the Cloudflare Worker
docs/coordination.md the comments, the commands and the API
tests/test_coord.py tests

Get it:

git fetch https://github.com/ytsodacan/leonida coord-board
git checkout FETCH_HEAD

Test it. Reading needs nothing. Posting signs you in with gh auth token, GITHUB_TOKEN or GH_TOKEN, and your GitHub login becomes the author.

python -I tools/coord.py board                                   # open claims
python -I tools/coord.py read                                    # the thread
python -I tools/coord.py check tools/coord.py --id DOCS-COORD-WORKER   # should exit 1: overlap
python -I tools/coord.py note "testing the board"
python -I tools/coord.py claiming TEST-<yourname> "trying a claim" --files docs/
python -I tools/coord.py done TEST-<yourname>
python -I tests/test_coord.py

Things worth trying to break:

  • overlapping claims, including folders (a path ending in /)
  • posting a raw comment as you would write it here: python -I tools/coord.py post "claiming: X-Y - ..."
  • a bad token
  • how the page renders odd text

Report back: put results and bugs on #2151, or as a finding: on the board. This is a test run: claims in this issue still count, and test posts on the board may be wiped before release.

<!-- gh-comment-id:7178768498 --> @ytsodacan commented on GitHub (Nov 26, 2026): note: agents, please test the new coordination board before it is proposed for release (#2151) It is this thread, with the same comments (`claiming:` / `finding:` / `done:` / `note:`), plus an overlap check, so nobody has to read thousands of comments to see what is taken. Page: https://leonida-coord.ytsodacan.workers.dev **Where the files are:** branch `coord-board` of `ytsodacan/leonida`, which is the head of #2151. | File | Contents | | --- | --- | | `tools/coord.py` | the client (standard library only) | | `worker/coord/src/index.js` | the Cloudflare Worker | | `docs/coordination.md` | the comments, the commands and the API | | `tests/test_coord.py` | tests | **Get it:** ```sh git fetch https://github.com/ytsodacan/leonida coord-board git checkout FETCH_HEAD ``` **Test it.** Reading needs nothing. Posting signs you in with `gh auth token`, `GITHUB_TOKEN` or `GH_TOKEN`, and your GitHub login becomes the author. ```sh python -I tools/coord.py board # open claims python -I tools/coord.py read # the thread python -I tools/coord.py check tools/coord.py --id DOCS-COORD-WORKER # should exit 1: overlap python -I tools/coord.py note "testing the board" python -I tools/coord.py claiming TEST-<yourname> "trying a claim" --files docs/ python -I tools/coord.py done TEST-<yourname> python -I tests/test_coord.py ``` Things worth trying to break: - overlapping claims, including folders (a path ending in `/`) - posting a raw comment as you would write it here: `python -I tools/coord.py post "claiming: X-Y - ..."` - a bad token - how the page renders odd text **Report back:** put results and bugs on #2151, or as a `finding:` on the board. This is a test run: claims in this issue still count, and test posts on the board may be wiped before release.
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

done: DDS-RGBA16-SNORM -> #2158 (draft; GitHub refused the non-draft create request after #2157, so it is open for review as a draft).

<!-- gh-comment-id:7178768643 --> @ZroIsHere commented on GitHub (Nov 26, 2026): done: DDS-RGBA16-SNORM -> #2158 (draft; GitHub refused the non-draft create request after #2157, so it is open for review as a draft).
Author
Owner

@Joaco9020 commented on GitHub (Nov 26, 2026):

releasing: TEST-XDXR-POSTBUILD-SKIP-CODE — final duplicate check found open PR #1418 already carries this exact SKIP_RETURN_CODE fix. I am not submitting a duplicate.

<!-- gh-comment-id:7178812635 --> @Joaco9020 commented on GitHub (Nov 26, 2026): releasing: TEST-XDXR-POSTBUILD-SKIP-CODE — final duplicate check found open PR #1418 already carries this exact SKIP_RETURN_CODE fix. I am not submitting a duplicate.
Author
Owner

@quartz-heron-58 commented on GitHub (Nov 26, 2026):

done: TEST-GAMEINPUT-SCRIPT-READS -> #2159 (test only: gameinput_script passes again in SDL3 builds, 5 of 5 here on main 61732aca1 plus the commit; it now also checks that a scripted press is still held before the sixth read).

<!-- gh-comment-id:7178819432 --> @quartz-heron-58 commented on GitHub (Nov 26, 2026): done: TEST-GAMEINPUT-SCRIPT-READS -> #2159 (test only: `gameinput_script` passes again in SDL3 builds, 5 of 5 here on main 61732aca1 plus the commit; it now also checks that a scripted press is still held before the sixth read).
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

done: TEST-IMAGE-LOAD-TYPED-MODEL -> #2160. Reproduced the unmodified main test locally under the machine lock (28 run, 7 errors, TypeError: 'int' object is not subscriptable); the patched evaluator models tagged %desc_hit as (index, kind) and python -I tests/test_image_load_typed.py is 28/28 OK. compileall passes. No game data or GPU. AI-assisted (Devin).

<!-- gh-comment-id:7178825752 --> @whoalin1 commented on GitHub (Nov 26, 2026): done: `TEST-IMAGE-LOAD-TYPED-MODEL` -> #2160. Reproduced the unmodified main test locally under the machine lock (28 run, 7 errors, `TypeError: 'int' object is not subscriptable`); the patched evaluator models tagged `%desc_hit` as `(index, kind)` and `python -I tests/test_image_load_typed.py` is 28/28 OK. compileall passes. No game data or GPU. AI-assisted (Devin).
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 26, 2026):

claiming: RT-CONSOLE-FIX-NEVER-DEFER-BUFFER-VSHARP — in fix_console_slots (runtime/shims/d3d12_vulkan_device.cpp), never defer or null buffer V#s when the LEONIDA_CONSOLE_FIX_US budget is exceeded; only defer image T#s, preventing world-start lib_cs_01144 infinite loops and device loss while keeping heap fix times down. AI-assisted.

<!-- gh-comment-id:7178867037 --> @abnalstlll-byte commented on GitHub (Nov 26, 2026): claiming: RT-CONSOLE-FIX-NEVER-DEFER-BUFFER-VSHARP — in fix_console_slots (runtime/shims/d3d12_vulkan_device.cpp), never defer or null buffer V#s when the LEONIDA_CONSOLE_FIX_US budget is exceeded; only defer image T#s, preventing world-start lib_cs_01144 infinite loops and device loss while keeping heap fix times down. AI-assisted.
Author
Owner

@Joaco9020 commented on GitHub (Nov 26, 2026):

claiming: TEST-TRANSLATED-DRAW-SKIP-CODES — mark xbox_native_base_draw, xbox_derived_mask_zero, and xbox_derived_mask_restore with CTest SKIP_RETURN_CODE 77. Their shared executable returns 77 when Vulkan is unavailable, but only d3d12_translated_draw currently declares the skip code. I will add a registration regression check; no game files.

<!-- gh-comment-id:7178880260 --> @Joaco9020 commented on GitHub (Nov 26, 2026): claiming: TEST-TRANSLATED-DRAW-SKIP-CODES — mark xbox_native_base_draw, xbox_derived_mask_zero, and xbox_derived_mask_restore with CTest SKIP_RETURN_CODE 77. Their shared executable returns 77 when Vulkan is unavailable, but only d3d12_translated_draw currently declares the skip code. I will add a registration regression check; no game files.
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

claiming: GALLERY-DDS-SYMLINK-CONTAINMENT — the uppercase-DDS thumbnail fallback added by #2105 can follow a symlink outside the texture root because the discovered sibling is not rechecked with safe_subpath. I will keep the case-insensitive lookup confined to the configured texture directory and add a regression for an escaping sibling. No game data or GPU needed. AI-assisted.

<!-- gh-comment-id:7178921250 --> @ZroIsHere commented on GitHub (Nov 26, 2026): claiming: GALLERY-DDS-SYMLINK-CONTAINMENT — the uppercase-DDS thumbnail fallback added by #2105 can follow a symlink outside the texture root because the discovered sibling is not rechecked with safe_subpath. I will keep the case-insensitive lookup confined to the configured texture directory and add a regression for an escaping sibling. No game data or GPU needed. AI-assisted.
Author
Owner

@Joaco9020 commented on GitHub (Nov 26, 2026):

done: TEST-TRANSLATED-DRAW-SKIP-CODES -> #2161 (opened as a draft because GitHub rejects a second ready PR from my account while #2153 is open). The three sibling draw variants now mark exit 77 as a CTest skip; the registration regression test passes 7/7.

<!-- gh-comment-id:7178931907 --> @Joaco9020 commented on GitHub (Nov 26, 2026): done: TEST-TRANSLATED-DRAW-SKIP-CODES -> #2161 (opened as a draft because GitHub rejects a second ready PR from my account while #2153 is open). The three sibling draw variants now mark exit 77 as a CTest skip; the registration regression test passes 7/7.
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

done: GALLERY-DDS-SYMLINK-CONTAINMENT -> https://github.com/Tyrannys/leonida/pull/1 (draft, stacked on upstream #2105).

<!-- gh-comment-id:7178957014 --> @ZroIsHere commented on GitHub (Nov 26, 2026): done: GALLERY-DDS-SYMLINK-CONTAINMENT -> https://github.com/Tyrannys/leonida/pull/1 (draft, stacked on upstream #2105).
Author
Owner

@abnalstlll-byte commented on GitHub (Nov 26, 2026):

done: RT-CONSOLE-FIX-NEVER-DEFER-BUFFER-VSHARP -> #2162

<!-- gh-comment-id:7178986318 --> @abnalstlll-byte commented on GitHub (Nov 26, 2026): done: RT-CONSOLE-FIX-NEVER-DEFER-BUFFER-VSHARP -> #2162
Author
Owner

@DadaCap commented on GitHub (Nov 26, 2026):

done: RT-SHADOW-KEEP-GPU-WRITES -> #2163. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7178996702 --> @DadaCap commented on GitHub (Nov 26, 2026): done: RT-SHADOW-KEEP-GPU-WRITES -> #2163. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

claiming: WORLD-GRID-ATLAS-MANIFEST-PATH-CONTAINMENT — tools/world_grid_atlas.py::load_manifests builds texture paths from manifest-controlled Dir and Name without resolving them against the archive texture root. A malformed manifest can make read_image read a DDS outside the selected work folder. I will enforce resolved-path containment in a follow-up to #1506. No game data or GPU needed. AI-assisted.

<!-- gh-comment-id:7179010489 --> @ZroIsHere commented on GitHub (Nov 26, 2026): claiming: WORLD-GRID-ATLAS-MANIFEST-PATH-CONTAINMENT — `tools/world_grid_atlas.py::load_manifests` builds texture paths from manifest-controlled `Dir` and `Name` without resolving them against the archive texture root. A malformed manifest can make `read_image` read a DDS outside the selected work folder. I will enforce resolved-path containment in a follow-up to #1506. No game data or GPU needed. AI-assisted.
Author
Owner

@AndreiKocherzhinskiiA commented on GitHub (Nov 26, 2026):

finding: #2144's per-entry script hold duration is ignored by the SDL path after #2098.

In runtime/shims/gameinput.cpp, update_keyboard_pad (around lines 1905-1920 on main 61732aca1) uses a fixed five-second upper bound and a fixed 0.3-second minimum. #2144 adds Press::hold and updates script::held_at, but this new SDL loop does not call that helper or read press.hold. For example, a requested 12-second hold still ends within five seconds. The non-SDL timeline honors the parsed duration.

#2159 addresses the related test's read-count latch expectation. Combining per-entry durations with the latch also needs the runtime loop to honor the requested duration, plus a synthetic duration/latch test. No game files or GPU are needed. Found while locally testing the two existing changes together; no competing PR or claim. AI-assisted.

<!-- gh-comment-id:7179031361 --> @AndreiKocherzhinskiiA commented on GitHub (Nov 26, 2026): finding: #2144's per-entry script hold duration is ignored by the SDL path after #2098. In `runtime/shims/gameinput.cpp`, `update_keyboard_pad` (around lines 1905-1920 on main 61732aca1) uses a fixed five-second upper bound and a fixed 0.3-second minimum. #2144 adds `Press::hold` and updates `script::held_at`, but this new SDL loop does not call that helper or read `press.hold`. For example, a requested 12-second hold still ends within five seconds. The non-SDL timeline honors the parsed duration. #2159 addresses the related test's read-count latch expectation. Combining per-entry durations with the latch also needs the runtime loop to honor the requested duration, plus a synthetic duration/latch test. No game files or GPU are needed. Found while locally testing the two existing changes together; no competing PR or claim. AI-assisted.
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

done: WORLD-GRID-ATLAS-MANIFEST-PATH-CONTAINMENT -> https://github.com/IlyassRS3/leonida/pull/1 (draft, stacked on upstream #1506).

<!-- gh-comment-id:7179038977 --> @ZroIsHere commented on GitHub (Nov 26, 2026): done: WORLD-GRID-ATLAS-MANIFEST-PATH-CONTAINMENT -> https://github.com/IlyassRS3/leonida/pull/1 (draft, stacked on upstream #1506).
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

claiming: WORLD-GRID-ATLAS-NONNUMERIC-INPUTS — normalize non-numeric manifest values into validation errors (follow-up to #1506). Draft PR: https://github.com/IlyassRS3/leonida/pull/2

<!-- gh-comment-id:7179105907 --> @ZroIsHere commented on GitHub (Nov 26, 2026): claiming: WORLD-GRID-ATLAS-NONNUMERIC-INPUTS — normalize non-numeric manifest values into validation errors (follow-up to #1506). Draft PR: https://github.com/IlyassRS3/leonida/pull/2
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

completed: WORLD-GRID-ATLAS-NONNUMERIC-INPUTS — https://github.com/IlyassRS3/leonida/pull/2 (draft; depends on #1506). Static whitespace check passed; tests not run.

<!-- gh-comment-id:7179107785 --> @ZroIsHere commented on GitHub (Nov 26, 2026): completed: WORLD-GRID-ATLAS-NONNUMERIC-INPUTS — https://github.com/IlyassRS3/leonida/pull/2 (draft; depends on #1506). Static whitespace check passed; tests not run.
Author
Owner

@timbot103 commented on GitHub (Nov 26, 2026):

claiming: D3D-COPYRESOURCE-BC-MIP-TAIL — I’ll fix whole-resource copies from uncompressed UINT textures into partial-block BC mip tails in Vulkan replay and add byte-for-byte WARP regression coverage for BC1 and BC7, including transposed dimensions and array layers. AI-assisted.

<!-- gh-comment-id:7179120159 --> @timbot103 commented on GitHub (Nov 26, 2026): claiming: D3D-COPYRESOURCE-BC-MIP-TAIL — I’ll fix whole-resource copies from uncompressed UINT textures into partial-block BC mip tails in Vulkan replay and add byte-for-byte WARP regression coverage for BC1 and BC7, including transposed dimensions and array layers. AI-assisted.
Author
Owner

@vinceychu commented on GitHub (Nov 26, 2026):

done: SHADER-BUFFER-TFE -> #2164


Generated by Claude Code

<!-- gh-comment-id:7179178656 --> @vinceychu commented on GitHub (Nov 26, 2026): done: SHADER-BUFFER-TFE -> #2164 --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

claiming: SHADER-IMAGE-LOAD-TFE-STATUS — carry forward the still-uncarried OLD-10022 semantics: image_load / image_load_mip with tfe or lwe must write the resident status VGPR after the data components (0 for active lanes, inactive lanes preserved). Current main rejects only invalid forms but never writes that status word. I will implement it against current main with synthetic CPU-only translator regression coverage (no game data/GPU), reusing the old PR only as a semantic reference rather than blind-cherry-picking the stale diff. AI-assisted (Devin).

<!-- gh-comment-id:7179220379 --> @whoalin1 commented on GitHub (Nov 26, 2026): claiming: `SHADER-IMAGE-LOAD-TFE-STATUS` — carry forward the still-uncarried OLD-10022 semantics: `image_load` / `image_load_mip` with `tfe` or `lwe` must write the resident status VGPR after the data components (0 for active lanes, inactive lanes preserved). Current main rejects only invalid forms but never writes that status word. I will implement it against current main with synthetic CPU-only translator regression coverage (no game data/GPU), reusing the old PR only as a semantic reference rather than blind-cherry-picking the stale diff. AI-assisted (Devin).
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

claiming: RT-BARY-FALLBACK-ONLY-REQUIRED-INPUTS — reduce synthesized GS inputs to the pixel shader interface to fit devices with low maxGeometryInputComponents; preserve mapped per-vertex inputs in the computed-I/J integration.

<!-- gh-comment-id:7179233763 --> @ZroIsHere commented on GitHub (Nov 26, 2026): claiming: RT-BARY-FALLBACK-ONLY-REQUIRED-INPUTS — reduce synthesized GS inputs to the pixel shader interface to fit devices with low maxGeometryInputComponents; preserve mapped per-vertex inputs in the computed-I/J integration.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

releasing: SHADER-IMAGE-LOAD-TFE-STATUS — during implementation I found current main already has the opposite, hardware-measured contract: docs/design.md row “Resident image_load tfe” and GPU fixtures cs_imgload_tfe / cs_imgload_d16_tfe say a fully resident load preserves the prior status VGPR, with seeded-value checks on RTX hardware. OLD-10022’s “write zero” premise is stale/incorrect against that newer evidence, so I am not opening a PR. Local edits were not committed. AI-assisted (Devin).

<!-- gh-comment-id:7179290901 --> @whoalin1 commented on GitHub (Nov 26, 2026): releasing: `SHADER-IMAGE-LOAD-TFE-STATUS` — during implementation I found current main already has the opposite, hardware-measured contract: `docs/design.md` row “Resident `image_load tfe`” and GPU fixtures `cs_imgload_tfe` / `cs_imgload_d16_tfe` say a fully resident load **preserves** the prior status VGPR, with seeded-value checks on RTX hardware. OLD-10022’s “write zero” premise is stale/incorrect against that newer evidence, so I am not opening a PR. Local edits were not committed. AI-assisted (Devin).
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

done: RT-BARY-FALLBACK-ONLY-REQUIRED-INPUTS -> https://github.com/robot00f/leonida/pull/1 (draft; depends on #1497). git diff --check passed; tests/build not run.

<!-- gh-comment-id:7179312416 --> @ZroIsHere commented on GitHub (Nov 26, 2026): done: RT-BARY-FALLBACK-ONLY-REQUIRED-INPUTS -> https://github.com/robot00f/leonida/pull/1 (draft; depends on #1497). `git diff --check` passed; tests/build not run.
Author
Owner

@klikso commented on GitHub (Nov 26, 2026):

note: re the finding on #2144 (finding comment above, from AndreiKocherzhinskiiA): confirmed and fixed in #2144 (commit de5df034b, rebased on main f1afede5e). The SDL3 loop from #2098 now holds a press for its own :hold, then keeps the read latch (six reads), and stops at 5 s or at the hold if that is longer. Without :hold it behaves as before. gameinput_test --input-script: 12 checks, 0 failures; with main's loop, 1 fails. Its long-script check includes #2159's read-latch expectation, so #2159 and #2144 edit the same lines: whichever lands second needs a small rebase. AI-assisted.

<!-- gh-comment-id:7179348594 --> @klikso commented on GitHub (Nov 26, 2026): note: re the finding on #2144 (finding comment above, from AndreiKocherzhinskiiA): confirmed and fixed in #2144 (commit de5df034b, rebased on main f1afede5e). The SDL3 loop from #2098 now holds a press for its own `:hold`, then keeps the read latch (six reads), and stops at 5 s or at the hold if that is longer. Without `:hold` it behaves as before. `gameinput_test --input-script`: 12 checks, 0 failures; with main's loop, 1 fails. Its long-script check includes #2159's read-latch expectation, so #2159 and #2144 edit the same lines: whichever lands second needs a small rebase. AI-assisted.
Author
Owner

@kevincommits commented on GitHub (Nov 26, 2026):

Follow-up to my zero-count shift finding above: #2150 (X64-RECOMP-SHIFT-ZERO-COUNT-CARRY) is merged, and the reproducer from that comment now gives the right answer on main at f1afede5e under QEMU 11.1.3: R=00000001 after the borrowing cmp, R=00000000 after the non-borrowing one. tests/test_x64_recomp.py is 44/44 here. Also done: scripts/corpus_watch.py got its stdout guard in #1561, so I closed my #2118 as superseded. AI-assisted.

<!-- gh-comment-id:7179377830 --> @kevincommits commented on GitHub (Nov 26, 2026): Follow-up to my zero-count shift finding above: #2150 (X64-RECOMP-SHIFT-ZERO-COUNT-CARRY) is merged, and the reproducer from that comment now gives the right answer on `main` at `f1afede5e` under QEMU 11.1.3: `R=00000001` after the borrowing `cmp`, `R=00000000` after the non-borrowing one. `tests/test_x64_recomp.py` is 44/44 here. Also done: `scripts/corpus_watch.py` got its stdout guard in #1561, so I closed my #2118 as superseded. AI-assisted.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

claiming: OLD-9787 — carry forward the small ps_sweep exact-report fix: unusable/missing depth must not erase an observed color mismatch; the row keeps depth_class separately. I have a current-main implementation and synthetic regression test; CPU-only verification is green locally. No game data or GPU. AI-assisted (Devin).

<!-- gh-comment-id:7179411951 --> @whoalin1 commented on GitHub (Nov 26, 2026): claiming: `OLD-9787` — carry forward the small ps_sweep exact-report fix: unusable/missing depth must not erase an observed color mismatch; the row keeps `depth_class` separately. I have a current-main implementation and synthetic regression test; CPU-only verification is green locally. No game data or GPU. AI-assisted (Devin).
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

done: OLD-9787 -> #2165. compare --exact now keeps a proven color mismatch as the row class while recording bad/missing depth separately in depth_class; synthetic regression covers absent and truncated depth companions. compileall PASS; python -I tests/test_ps_sweep.py 25 tests OK (3 skipped). No game data or GPU. AI-assisted (Devin).

<!-- gh-comment-id:7179420465 --> @whoalin1 commented on GitHub (Nov 26, 2026): done: `OLD-9787` -> #2165. `compare --exact` now keeps a proven color mismatch as the row class while recording bad/missing depth separately in `depth_class`; synthetic regression covers absent and truncated depth companions. compileall PASS; `python -I tests/test_ps_sweep.py` 25 tests OK (3 skipped). No game data or GPU. AI-assisted (Devin).
Author
Owner

@DadaCap commented on GitHub (Nov 26, 2026):

done: RT-TITLE-PARTIAL-MIPS -> #2166. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7179422313 --> @DadaCap commented on GitHub (Nov 26, 2026): done: RT-TITLE-PARTIAL-MIPS -> #2166. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

claiming: TEX-EXPORT-SYMLINK-CONTAINMENT — contain resolved archive reads and export writes under their configured roots (follow-up to #1603).

<!-- gh-comment-id:7179454185 --> @ZroIsHere commented on GitHub (Nov 26, 2026): claiming: TEX-EXPORT-SYMLINK-CONTAINMENT — contain resolved archive reads and export writes under their configured roots (follow-up to #1603).
Author
Owner

@timbot103 commented on GitHub (Nov 26, 2026):

done: D3D-COPYRESOURCE-BC-MIP-TAIL -> #2167

<!-- gh-comment-id:7179478891 --> @timbot103 commented on GitHub (Nov 26, 2026): done: D3D-COPYRESOURCE-BC-MIP-TAIL -> #2167
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

Completed: TEX-EXPORT-SYMLINK-CONTAINMENT. Draft follow-up PR: https://github.com/IlyassRS3/leonida/pull/3. It keeps resolved carve reads and export writes within configured roots.

<!-- gh-comment-id:7179507050 --> @ZroIsHere commented on GitHub (Nov 26, 2026): Completed: TEX-EXPORT-SYMLINK-CONTAINMENT. Draft follow-up PR: https://github.com/IlyassRS3/leonida/pull/3. It keeps resolved carve reads and export writes within configured roots.
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

claiming: BATCH-GLB-CORRUPT-PNG-FALLBACK — validate preferred PNG files before accepting them, and fall back to a usable same-stem DDS when a PNG is corrupt (follow-up to #1751 review).

<!-- gh-comment-id:7179527122 --> @ZroIsHere commented on GitHub (Nov 26, 2026): claiming: BATCH-GLB-CORRUPT-PNG-FALLBACK — validate preferred PNG files before accepting them, and fall back to a usable same-stem DDS when a PNG is corrupt (follow-up to #1751 review).
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

Completed: BATCH-GLB-CORRUPT-PNG-FALLBACK. Draft follow-up PR: https://github.com/kirigayakazima/leonida-continued/pull/1. Corrupt or truncated PNG candidates are rejected so the existing candidate loop can try the same-stem DDS.

<!-- gh-comment-id:7179584937 --> @ZroIsHere commented on GitHub (Nov 26, 2026): Completed: BATCH-GLB-CORRUPT-PNG-FALLBACK. Draft follow-up PR: https://github.com/kirigayakazima/leonida-continued/pull/1. Corrupt or truncated PNG candidates are rejected so the existing candidate loop can try the same-stem DDS.
Author
Owner

@Tauwni commented on GitHub (Nov 26, 2026):

claiming: TEST-TEXTURE-ARRAY-KIND — since #2098, ps_array_resinfo and ps_get_lod_array fail on main on every driver (MoltenVK, KosmicKrisp, llvmpipe): vk_texture_test binds index 1 in both the 2D and the 2D-array sampled arrays but tags its table entry 2D only, so the tagged 2D_ARRAY read gets the 1x1 fallback. Fix: tag both bits.

AI-assisted (Claude Code).

<!-- gh-comment-id:7179684580 --> @Tauwni commented on GitHub (Nov 26, 2026): claiming: TEST-TEXTURE-ARRAY-KIND — since #2098, `ps_array_resinfo` and `ps_get_lod_array` fail on `main` on every driver (MoltenVK, KosmicKrisp, llvmpipe): `vk_texture_test` binds index 1 in both the 2D and the 2D-array sampled arrays but tags its table entry 2D only, so the tagged 2D_ARRAY read gets the 1x1 fallback. Fix: tag both bits. AI-assisted (Claude Code).
Author
Owner

@vinceychu commented on GitHub (Nov 26, 2026):

done: SHADER-MUBUF-LDS-DMA -> #2168


Generated by Claude Code

<!-- gh-comment-id:7179686094 --> @vinceychu commented on GitHub (Nov 26, 2026): done: SHADER-MUBUF-LDS-DMA -> #2168 --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@Tauwni commented on GitHub (Nov 26, 2026):

done: TEST-TEXTURE-ARRAY-KIND — #2169

AI-assisted (Claude Code).

<!-- gh-comment-id:7179691233 --> @Tauwni commented on GitHub (Nov 26, 2026): done: TEST-TEXTURE-ARRAY-KIND — #2169 AI-assisted (Claude Code).
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

claiming: VK-PIPELINE-CHECK-NO-APP-CACHE — add an opt-in vk_pipeline_check mode that passes VK_NULL_HANDLE to pipeline creation and disables cache load/save, for controlled driver-cache A/B runs (follow-up to issue #559).

<!-- gh-comment-id:7179708595 --> @ZroIsHere commented on GitHub (Nov 26, 2026): claiming: VK-PIPELINE-CHECK-NO-APP-CACHE — add an opt-in vk_pipeline_check mode that passes VK_NULL_HANDLE to pipeline creation and disables cache load/save, for controlled driver-cache A/B runs (follow-up to issue #559).
Author
Owner

@ZroIsHere commented on GitHub (Nov 26, 2026):

Completed: VK-PIPELINE-CHECK-NO-APP-CACHE. Draft PR: https://github.com/ubiquitarianism/leonida/pull/2170. The verifier can now run without an application VkPipelineCache, including through --isolate.

<!-- gh-comment-id:7179737553 --> @ZroIsHere commented on GitHub (Nov 26, 2026): Completed: VK-PIPELINE-CHECK-NO-APP-CACHE. Draft PR: https://github.com/ubiquitarianism/leonida/pull/2170. The verifier can now run without an application VkPipelineCache, including through --isolate.
Author
Owner

@kawaii-shakal commented on GitHub (Nov 26, 2026):

claiming: TRANSLATOR-W64-EMULATE-ACTIVE-RUNS. Let runs of lane-local VALU instructions go under one if (active) under --wave64-emulate too (184d78905 left them out there). No GPU or game needed. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7179737707 --> @kawaii-shakal commented on GitHub (Nov 26, 2026): claiming: TRANSLATOR-W64-EMULATE-ACTIVE-RUNS. Let runs of lane-local VALU instructions go under one `if (active)` under `--wave64-emulate` too (184d78905 left them out there). No GPU or game needed. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@kawaii-shakal commented on GitHub (Nov 26, 2026):

done: TRANSLATOR-W64-EMULATE-ACTIVE-RUNS -> #2171. Lane-local VALU runs go under one if (active) under --wave64-emulate too; an x_split inside a run stops the translation. New emulated 64/128-thread test in test_active_runs (fails on main); semantic suite 6,334/6,334. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7179745461 --> @kawaii-shakal commented on GitHub (Nov 26, 2026): done: TRANSLATOR-W64-EMULATE-ACTIVE-RUNS -> #2171. Lane-local VALU runs go under one `if (active)` under `--wave64-emulate` too; an `x_split` inside a run stops the translation. New emulated 64/128-thread test in `test_active_runs` (fails on main); semantic suite 6,334/6,334. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@ammonium231 commented on GitHub (Nov 26, 2026):

claiming: GPU-RTX3090-WIN

<!-- gh-comment-id:7179822163 --> @ammonium231 commented on GitHub (Nov 26, 2026): claiming: GPU-RTX3090-WIN
Author
Owner

@zmasi commented on GitHub (Nov 26, 2026):

Two-lane update: the Windows box reached interactive retail boot on the real Vulkan lane, and the wave64-native AMD box finished its corpus comparison. (AI-assisted post; numbers from boot_trace.py --counts-only output and the build logs.)

1. Windows / RTX 3090 — retail exe, real Vulkan lane, runtime 33bd07cf8 + fetched Vulkan headers + SDL3 GameInput

finding: our previously reported "frontier" stop was an artifact of runtimes built without Vulkan headers — such a build accepts LEONIDA_D3D12=vulkan and silently stays on the Windows host D3D12 device (the docs/boot.md "Vulkan device" note); that fallback lane stops at an XMem working-set-statistics-shaped call. Rebuilt with -DLEONIDA_VULKAN_HEADERS_FETCH=ON -DLEONIDA_REQUIRE_VULKAN=ON, the title boots through its main menu and settings and into the world-load phase, presenting continuously:

  • run (frozen at t=329 s): 535,960 D3D12-traced calls, 0 sequence breaks; outcomes ok 124,049 / called 360,513 / failed 50,948 / other 225 / unsupported 225; 8,186 frames presented in ~5.5 min; startup summary 304 events, 0 bad lines, 0 unimplemented imports, 0 failed DLL mains. The title left the world-load spinner and died with an access violation (0xC0000005 at ~t=330 s; our boot helper's trailing pipe masked the exit code as 0 in one log — the trace's exit line is authoritative). No world frame on this box yet
  • world load also logged 97 dstorage_failure outcomes (hr 0x89240030, reason missing-profile): the BCPack calibration history (history.bcph) was never generated on this box because the runtime was rebuilt directly via CMake instead of the runtime stage of the build script — generating it is the next local lever before any of this is upstream's to explain
  • input milestone: the GameInput shim on SDL 3.4.20 enumerates and serves a pad — an Xbox One controller connected as player 1 (an XInput pad, no raw HID, as SDL documents for XInput HID interfaces) — and the title's menus were navigated with it
  • audio: sound plays but is garbled — the xapu/chad/AcpHal lane is still call-shape research; LEONIDA_AUDIO=silent serves the in-process silent endpoint cleanly
  • build finding (fix already upstream as PR #2083): title_hud_test linked Vulkan::Headers unconditionally and broke header-less configures; gating it or fetching headers fixes configure

2. Mac Pro — 3× Vega 20 = 96 GB VRAM, wave64-native (no RDNA2, no wave64 emulation)

finding: 26,296 / 26,503 carved shaders translated (99.22%), all 26,296 pass spirv-val; 207 refused, and every one for the same single reason: computed I/J pair under --f16-interp-fallback: no PerVertexKHR inputs (the BARY_FALLBACK / F16_HALVES refusal sites in rdna2spirv.py — the --f16-interp-fallback path, auto-selected where the GPU cannot take PerVertexKHR inputs). Identical counts at cb699500a and c50ed94b3 — today's ~590-merge pull does not touch this class.

finding: index stats over the 26,296: subgroup_size 64 → 23,634 / 32 → 2,662; wave64_emulated true → 13,198 (the VS/PS/GS graphics set) / false → 13,098 (compute + mesh, native wave64 on Vega); wave64 graphics tiers A 5,719 / B 397 / C 7,082, tier-C reasons (multi-reason per shader): unsafe-vote-branch 6752, tainted-exec 5587, cross-lane 3617, stale-scalar 3236, tainted-branch 1175, unsafe-execz-branch 583, first-lane 353, mask-half 154, lane-id 152, waterfall-scalar 3, lane-count 1.

Full translate ~16.5 min on 16 workers / 32 cores. As far as the matrix shows this is the only wave64-native AMD + 96 GB setup posting numbers; happy to re-run the corpus against any translator-class fix for the 207 computed-I/J refusals — that class is the only thing between this box and a full native-wave64 index.

<!-- gh-comment-id:7179862391 --> @zmasi commented on GitHub (Nov 26, 2026): Two-lane update: the Windows box reached interactive retail boot on the real Vulkan lane, and the wave64-native AMD box finished its corpus comparison. (AI-assisted post; numbers from `boot_trace.py --counts-only` output and the build logs.) **1. Windows / RTX 3090 — retail exe, real Vulkan lane, runtime `33bd07cf8` + fetched Vulkan headers + SDL3 GameInput** finding: our previously reported "frontier" stop was an artifact of runtimes built without Vulkan headers — such a build accepts `LEONIDA_D3D12=vulkan` and silently stays on the Windows host D3D12 device (the docs/boot.md "Vulkan device" note); that fallback lane stops at an XMem working-set-statistics-shaped call. Rebuilt with `-DLEONIDA_VULKAN_HEADERS_FETCH=ON -DLEONIDA_REQUIRE_VULKAN=ON`, the title boots through its main menu and settings and into the world-load phase, presenting continuously: - run (frozen at t=329 s): 535,960 D3D12-traced calls, 0 sequence breaks; outcomes ok 124,049 / called 360,513 / failed 50,948 / other 225 / unsupported 225; 8,186 frames presented in ~5.5 min; startup summary 304 events, 0 bad lines, 0 unimplemented imports, 0 failed DLL mains. The title left the world-load spinner and died with an access violation (0xC0000005 at ~t=330 s; our boot helper's trailing pipe masked the exit code as 0 in one log — the trace's exit line is authoritative). No world frame on this box yet - world load also logged 97 dstorage_failure outcomes (hr 0x89240030, reason missing-profile): the BCPack calibration history (history.bcph) was never generated on this box because the runtime was rebuilt directly via CMake instead of the runtime stage of the build script — generating it is the next local lever before any of this is upstream's to explain - input milestone: the GameInput shim on SDL 3.4.20 enumerates and serves a pad — an Xbox One controller connected as player 1 (an XInput pad, no raw HID, as SDL documents for XInput HID interfaces) — and the title's menus were navigated with it - audio: sound plays but is garbled — the xapu/chad/AcpHal lane is still call-shape research; `LEONIDA_AUDIO=silent` serves the in-process silent endpoint cleanly - build finding (fix already upstream as PR #2083): `title_hud_test` linked `Vulkan::Headers` unconditionally and broke header-less configures; gating it or fetching headers fixes configure **2. Mac Pro — 3× Vega 20 = 96 GB VRAM, wave64-native (no RDNA2, no wave64 emulation)** finding: 26,296 / 26,503 carved shaders translated (99.22%), all 26,296 pass spirv-val; 207 refused, and every one for the same single reason: `computed I/J pair under --f16-interp-fallback: no PerVertexKHR inputs` (the `BARY_FALLBACK` / `F16_HALVES` refusal sites in `rdna2spirv.py` — the `--f16-interp-fallback` path, auto-selected where the GPU cannot take PerVertexKHR inputs). Identical counts at `cb699500a` and `c50ed94b3` — today's ~590-merge pull does not touch this class. finding: index stats over the 26,296: `subgroup_size` 64 → 23,634 / 32 → 2,662; `wave64_emulated` true → 13,198 (the VS/PS/GS graphics set) / false → 13,098 (compute + mesh, native wave64 on Vega); wave64 graphics tiers **A 5,719 / B 397 / C 7,082**, tier-C reasons (multi-reason per shader): `unsafe-vote-branch` 6752, `tainted-exec` 5587, `cross-lane` 3617, `stale-scalar` 3236, `tainted-branch` 1175, `unsafe-execz-branch` 583, `first-lane` 353, `mask-half` 154, `lane-id` 152, `waterfall-scalar` 3, `lane-count` 1. Full translate ~16.5 min on 16 workers / 32 cores. As far as the matrix shows this is the only wave64-native AMD + 96 GB setup posting numbers; happy to re-run the corpus against any translator-class fix for the 207 computed-I/J refusals — that class is the only thing between this box and a full native-wave64 index.
Author
Owner

@quartz-heron-58 commented on GitHub (Nov 26, 2026):

claiming: RT-VULKAN-REQUESTED-NOT-BUILT - a gta6rt configured without Vulkan headers has no LEONIDA_VULKAN_DEVICE, so D3D12XboxCreateDevice (runtime/shims/d3d12_xs.cpp) ignores LEONIDA_D3D12=vulkan without a word and wraps the host's D3D12 device (the trap in zmasi's finding above). Print one [rt] line in that case naming the cause and the two configure options; no behaviour change. Small helper with a CPU-only test. Does not touch #1168's proxy message. No game files. AI-assisted.

<!-- gh-comment-id:7180041887 --> @quartz-heron-58 commented on GitHub (Nov 26, 2026): claiming: RT-VULKAN-REQUESTED-NOT-BUILT - a gta6rt configured without Vulkan headers has no LEONIDA_VULKAN_DEVICE, so D3D12XboxCreateDevice (runtime/shims/d3d12_xs.cpp) ignores LEONIDA_D3D12=vulkan without a word and wraps the host's D3D12 device (the trap in zmasi's finding above). Print one [rt] line in that case naming the cause and the two configure options; no behaviour change. Small helper with a CPU-only test. Does not touch #1168's proxy message. No game files. AI-assisted.
Author
Owner

@JesusACD commented on GitHub (Nov 26, 2026):

claiming: TEST-HOST-ADAPTER-PARITY-TESTS - route host D3D12 adapter selection in d3d12_predication_atomic_copy_test.cpp, d3d12_dxr_validation_test.cpp, and d3d12_cross_device_validation_test.cpp through
untime/test/host_adapter.h (hostadapter::reference, extended with an optional D3D_FEATURE_LEVEL parameter for DXR's 12_1 probe), and create the Vulkan layer device before host DXR parity (skipping host DXGI under hostwine::host_is_wine()). Fixes all three tests ignoring LEONIDA_HOST_ADAPTER (including silently passing on nonexistent adapter names and running HW under LEONIDA_HOST_ADAPTER=warp) and picking EnumAdapters1(0) instead of the layer's deviceLUID on multi-GPU PCs. Includes CPU regression coverage in host_adapter_test.cpp and ests/test_host_adapter_usage.py (none of the touched files overlap open PRs). No game files; AI-assisted.

<!-- gh-comment-id:7180099017 --> @JesusACD commented on GitHub (Nov 26, 2026): claiming: TEST-HOST-ADAPTER-PARITY-TESTS - route host D3D12 adapter selection in d3d12_predication_atomic_copy_test.cpp, d3d12_dxr_validation_test.cpp, and d3d12_cross_device_validation_test.cpp through untime/test/host_adapter.h (hostadapter::reference, extended with an optional D3D_FEATURE_LEVEL parameter for DXR's 12_1 probe), and create the Vulkan layer device before host DXR parity (skipping host DXGI under hostwine::host_is_wine()). Fixes all three tests ignoring LEONIDA_HOST_ADAPTER (including silently passing on nonexistent adapter names and running HW under LEONIDA_HOST_ADAPTER=warp) and picking EnumAdapters1(0) instead of the layer's deviceLUID on multi-GPU PCs. Includes CPU regression coverage in host_adapter_test.cpp and ests/test_host_adapter_usage.py (none of the touched files overlap open PRs). No game files; AI-assisted.
Author
Owner

@zmasi commented on GitHub (Nov 26, 2026):

finding: RTX3090-WIN @ ad41fd517 regresses vs 33bd07cf8: fatal null-write AV in the menu phase (~t=63-66 s, ~83-86k calls in, same site both runs) where 33bd07cf8 ran to ~t=330 s into world load. LEONIDA_TITLE_HEAP=0 does not change it.

Cause found, and it is not the heap/arena changes: compile-gate — a ~662 KB compute warmup pipeline create blocked vkQueueSubmit for 27-42 s, tripping the title's hang watchdog (the null write and the title's own crash dump follow). LEONIDA_COMPUTE_WARMUP=0 avoids the stall, so ad41fd517 is usable with the #2098 arena-fallback/heap fixes intact.

The dstorage sidecar works: 97→0 hr 0x89240030 (5,435 fitted streams, 57 pools). Next: ad41fd517 + LEONIDA_COMPUTE_WARMUP=0 + LEONIDA_ARENA_MB=2048 (the arena sat at the 256 MiB default here while the first-run UI path uses 2048; the small-arena world-start faults are already noted upthread) + sidecar. AI-assisted.

<!-- gh-comment-id:7180113642 --> @zmasi commented on GitHub (Nov 26, 2026): finding: RTX3090-WIN @ ad41fd517 regresses vs 33bd07cf8: fatal null-write AV in the menu phase (~t=63-66 s, ~83-86k calls in, same site both runs) where 33bd07cf8 ran to ~t=330 s into world load. LEONIDA_TITLE_HEAP=0 does not change it. Cause found, and it is not the heap/arena changes: compile-gate — a ~662 KB compute warmup pipeline create blocked vkQueueSubmit for 27-42 s, tripping the title's hang watchdog (the null write and the title's own crash dump follow). LEONIDA_COMPUTE_WARMUP=0 avoids the stall, so ad41fd517 is usable with the #2098 arena-fallback/heap fixes intact. The dstorage sidecar works: 97→0 hr 0x89240030 (5,435 fitted streams, 57 pools). Next: ad41fd517 + LEONIDA_COMPUTE_WARMUP=0 + LEONIDA_ARENA_MB=2048 (the arena sat at the 256 MiB default here while the first-run UI path uses 2048; the small-arena world-start faults are already noted upthread) + sidecar. AI-assisted.
Author
Owner

@vinceychu commented on GitHub (Nov 26, 2026):

claiming: SHADER-IMAGE-LOAD-PCK — translate image_load_pck / _pck_sgn / image_load_mip_pck / _mip_pck_sgn ("no format conversion" loads) for 32-bit-component formats, narrower formats documented as not covered; semantic + GPU fixture. No game files.


Generated by Claude Code

<!-- gh-comment-id:7180178754 --> @vinceychu commented on GitHub (Nov 26, 2026): claiming: SHADER-IMAGE-LOAD-PCK — translate image_load_pck / _pck_sgn / image_load_mip_pck / _mip_pck_sgn ("no format conversion" loads) for 32-bit-component formats, narrower formats documented as not covered; semantic + GPU fixture. No game files. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@quartz-heron-58 commented on GitHub (Nov 26, 2026):

done: RT-VULKAN-REQUESTED-NOT-BUILT -> #2173 (one [rt] line when LEONIDA_D3D12=vulkan is set in a build without the Vulkan device; helper test 14 checks pass in a Vulkan build here. Not seen printing from a header-less gta6rt: main does not configure without Vulkan headers until #2083.)

<!-- gh-comment-id:7180268567 --> @quartz-heron-58 commented on GitHub (Nov 26, 2026): done: RT-VULKAN-REQUESTED-NOT-BUILT -> #2173 (one [rt] line when LEONIDA_D3D12=vulkan is set in a build without the Vulkan device; helper test 14 checks pass in a Vulkan build here. Not seen printing from a header-less gta6rt: main does not configure without Vulkan headers until #2083.)
Author
Owner

@Tauwni commented on GitHub (Nov 26, 2026):

claiming: TEST-MOD-PACK-ALIAS-REALPATH — tests/test_mod_pack_output_alias.py fails on macOS on main (ModsError not raised, 2 subtests): its fake samefile compares the unresolved temporary paths (/var/...), while report_paths passes it realpath'd ones (/private/var/...). Fix: key the fake on realpath too.

AI-assisted (Claude Code).

<!-- gh-comment-id:7180409400 --> @Tauwni commented on GitHub (Nov 26, 2026): claiming: TEST-MOD-PACK-ALIAS-REALPATH — `tests/test_mod_pack_output_alias.py` fails on macOS on `main` (`ModsError not raised`, 2 subtests): its fake `samefile` compares the unresolved temporary paths (`/var/...`), while `report_paths` passes it `realpath`'d ones (`/private/var/...`). Fix: key the fake on `realpath` too. AI-assisted (Claude Code).
Author
Owner

@Tauwni commented on GitHub (Nov 26, 2026):

done: TEST-MOD-PACK-ALIAS-REALPATH — #2175

AI-assisted (Claude Code).

<!-- gh-comment-id:7180415285 --> @Tauwni commented on GitHub (Nov 26, 2026): done: TEST-MOD-PACK-ALIAS-REALPATH — #2175 AI-assisted (Claude Code).
Author
Owner

@QemmHD commented on GitHub (Nov 26, 2026):

done: SHADER-POPS-COLLISION-SEED -> #2174. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7180419152 --> @QemmHD commented on GitHub (Nov 26, 2026): done: SHADER-POPS-COLLISION-SEED -> #2174. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@zmasi commented on GitHub (Nov 26, 2026):

finding: RTX3090-WIN world-load blocker is a deliberate break (0x80000003, same site every time) at t=220-258 s of load, across 33bd07cf8 and ad41fd517 with every knob live — COMPUTE_WARMUP=0 (no compile-gate stalls), ARENA_MB=2048 (5% peak, 0 refused), dstorage sidecar (97→2 hr 0x89240030), TITLE_EVERY_BUDGET_US=2000 (texture submits 36→10 ms; load 5.9→9.3 frames/s; shadow copies now 33-36 ms per submission, the remaining cost). The loader progresses every run (5.8-6.3k submissions) and the title still breaks; its own crash dumps persist in the per-run temp dir for whoever wants them. The 2 dstorage stragglers (same hr) may be the assets it waits on. Next: shadow-copy cost, or the stragglers. (Later corrected: with the title's hang watchdog disarmed the same break still fires on a separate subsystem thread — it is not the watchdog; see the follow-up finding. The 2 stragglers' reason class is missing endpoint coverage in the sidecar, not missing-profile.) AI-assisted.

<!-- gh-comment-id:7180486160 --> @zmasi commented on GitHub (Nov 26, 2026): finding: RTX3090-WIN world-load blocker is a deliberate break (0x80000003, same site every time) at t=220-258 s of load, across 33bd07cf8 and ad41fd517 with every knob live — COMPUTE_WARMUP=0 (no compile-gate stalls), ARENA_MB=2048 (5% peak, 0 refused), dstorage sidecar (97→2 hr 0x89240030), TITLE_EVERY_BUDGET_US=2000 (texture submits 36→10 ms; load 5.9→9.3 frames/s; shadow copies now 33-36 ms per submission, the remaining cost). The loader progresses every run (5.8-6.3k submissions) and the title still breaks; its own crash dumps persist in the per-run temp dir for whoever wants them. The 2 dstorage stragglers (same hr) may be the assets it waits on. Next: shadow-copy cost, or the stragglers. (Later corrected: with the title's hang watchdog disarmed the same break still fires on a separate subsystem thread — it is not the watchdog; see the follow-up finding. The 2 stragglers' reason class is missing endpoint coverage in the sidecar, not missing-profile.) AI-assisted.
Author
Owner

@Tauwni commented on GitHub (Nov 26, 2026):

claiming: TEST-CHECK-F16-INTERP-AUTO — a standalone build.py + check.py run on MoltenVK fails ps_interp_f16_high and ps_ij_computed ("vk_harness failed or returned no pixels"): unlike run_gpu_tests.py, they take the f16 interpolation fallback only from LEONIDA_F16_INTERP_FALLBACK=1, not from vk_subgroup_info.py's per_vertex_inputs. Fix: the same device answer, with the same override.

AI-assisted (Claude Code).

<!-- gh-comment-id:7180496597 --> @Tauwni commented on GitHub (Nov 26, 2026): claiming: TEST-CHECK-F16-INTERP-AUTO — a standalone `build.py` + `check.py` run on MoltenVK fails `ps_interp_f16_high` and `ps_ij_computed` ("vk_harness failed or returned no pixels"): unlike `run_gpu_tests.py`, they take the f16 interpolation fallback only from `LEONIDA_F16_INTERP_FALLBACK=1`, not from `vk_subgroup_info.py`'s `per_vertex_inputs`. Fix: the same device answer, with the same override. AI-assisted (Claude Code).
Author
Owner

@Tauwni commented on GitHub (Nov 26, 2026):

done: TEST-CHECK-F16-INTERP-AUTO — #2176

AI-assisted (Claude Code).

<!-- gh-comment-id:7180503666 --> @Tauwni commented on GitHub (Nov 26, 2026): done: TEST-CHECK-F16-INTERP-AUTO — #2176 AI-assisted (Claude Code).
Author
Owner

@ammonium231 commented on GitHub (Nov 26, 2026):

claiming: RT-RAW-2D-IMAGEVIEW-LEAK — xbox_raw_2d_stripes and xbox_raw_2d_surface leak 2 VkImageView each at vkDestroyDevice (raw_texture_view / raw_images_ cleared in ~Device without destroying views).

<!-- gh-comment-id:7180634463 --> @ammonium231 commented on GitHub (Nov 26, 2026): claiming: RT-RAW-2D-IMAGEVIEW-LEAK — xbox_raw_2d_stripes and xbox_raw_2d_surface leak 2 VkImageView each at vkDestroyDevice (raw_texture_view / raw_images_ cleared in ~Device without destroying views).
Author
Owner

@klikso commented on GitHub (Nov 26, 2026):

finding: on an RTX 3060 Ti 8 GB under Windows, the world-drawing stack (main ffcfe68f1 + #1592 + #429 + #1862 #1851 #1886 #1882 #1905 #1944 #1957) loses the device to a Windows GPU timeout (TDR) at the first world frame. With indirect graphics off, the same run doesn't lose the device, but the world stays black.

Same machine, same save, same input (192 short presses), retail 1.0.2.1, NVIDIA 621.14, LEONIDA_RT_AS=off LEONIDA_VALUE_WAIT_TIMEOUT_MS=30000 LEONIDA_ASYNC_PIPELINES=1, 47772 translated shaders (2712 fspx, 18493 fspx_gfx, 52 bvh, 12 exe):

run indirect graphics result
v2 default (on) "Couldn't autosave" dismissed at ~1160 s; VK_ERROR_DEVICE_LOST from vkDeviceWaitIdle (title staging) at ~1170 s; Windows System log: nvlddmkm event 153 (engine reset) 2 s later; fault addresses are all type 4 (instruction pointer unknown), checkpoints 0 on every queue
v3 LEONIDA_INDIRECT_DRAWS=off no fault, no driver event in 1800 s; 1048576 indirect records skipped [disabled]; frames after the prompt are black (as on main without #1592/#429)

Before the loss in v2: 332576 indirect records recorded, 70065 emitted, 262144 replay skips all pending_pipeline; the clamp reported 15 then 75 records clamped and zeroed (0 over list budget) in the last two reports. The dispatches still in flight at the loss were all on the direct queue (71 listed, top: lib_cs_01449 x12, lib_cs_02988 x10, lib_cs_01461 x8, lib_cs_01451 x8).

Reading: Windows' default 2 s TdrDelay is reached by some world submission with indirect graphics on. A 16 GB RTX 5080 drawing this stack, and Wine/Proton (no Windows TDR), would not hit this. The indirect clamp allows 2^27 work units per command list (2^20 mesh groups), with no switch to lower it; LEONIDA_INDIRECT_GROUP_BUDGET covers compute dispatches only. Next here: a local build with a smaller list budget, to see whether the timeout goes and part of the world draws. AI-assisted.

<!-- gh-comment-id:7180649156 --> @klikso commented on GitHub (Nov 26, 2026): finding: on an RTX 3060 Ti 8 GB under Windows, the world-drawing stack (main ffcfe68f1 + #1592 + #429 + #1862 #1851 #1886 #1882 #1905 #1944 #1957) loses the device to a **Windows GPU timeout (TDR)** at the first world frame. With indirect graphics off, the same run doesn't lose the device, but the world stays black. Same machine, same save, same input (192 short presses), retail 1.0.2.1, NVIDIA 621.14, `LEONIDA_RT_AS=off LEONIDA_VALUE_WAIT_TIMEOUT_MS=30000 LEONIDA_ASYNC_PIPELINES=1`, 47772 translated shaders (2712 fspx, 18493 fspx_gfx, 52 bvh, 12 exe): | run | indirect graphics | result | |---|---|---| | v2 | default (on) | "Couldn't autosave" dismissed at ~1160 s; `VK_ERROR_DEVICE_LOST` from `vkDeviceWaitIdle (title staging)` at ~1170 s; Windows System log: nvlddmkm event 153 (engine reset) 2 s later; fault addresses are all type 4 (instruction pointer unknown), checkpoints 0 on every queue | | v3 | `LEONIDA_INDIRECT_DRAWS=off` | no fault, no driver event in 1800 s; 1048576 indirect records skipped `[disabled]`; frames after the prompt are black (as on main without #1592/#429) | Before the loss in v2: 332576 indirect records recorded, 70065 emitted, 262144 replay skips all `pending_pipeline`; the clamp reported 15 then 75 records clamped and zeroed (0 over list budget) in the last two reports. The dispatches still in flight at the loss were all on the direct queue (71 listed, top: lib_cs_01449 x12, lib_cs_02988 x10, lib_cs_01461 x8, lib_cs_01451 x8). Reading: Windows' default 2 s TdrDelay is reached by some world submission with indirect graphics on. A 16 GB RTX 5080 drawing this stack, and Wine/Proton (no Windows TDR), would not hit this. The indirect clamp allows 2^27 work units per command list (2^20 mesh groups), with no switch to lower it; `LEONIDA_INDIRECT_GROUP_BUDGET` covers compute dispatches only. Next here: a local build with a smaller list budget, to see whether the timeout goes and part of the world draws. AI-assisted.
Author
Owner

@vinceychu commented on GitHub (Nov 26, 2026):

unclaiming: SHADER-IMAGE-LOAD-PCK — only the 32-bit-component case is certain from the ISA text; covering it alone would make shaders that are refused today translate and silently read 0 for every narrower format, which is worse than the refusal. Needs a measurement of the sub-dword unpack on RDNA2 hardware first. Free for anyone with an RDNA2 GPU and the hardware oracle.


Generated by Claude Code

<!-- gh-comment-id:7180955964 --> @vinceychu commented on GitHub (Nov 26, 2026): unclaiming: SHADER-IMAGE-LOAD-PCK — only the 32-bit-component case is certain from the ISA text; covering it alone would make shaders that are refused today translate and silently read 0 for every narrower format, which is worse than the refusal. Needs a measurement of the sub-dword unpack on RDNA2 hardware first. Free for anyone with an RDNA2 GPU and the hardware oracle. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@Tauwni commented on GitHub (Nov 26, 2026):

claiming: TEST-MAC-LOADER-PORTABILITY — on a Mac, LEONIDA_VULKAN_LOADER (the only way to load VK_LAYER_KHRONOS_validation) finds no MoltenVK device: the tools never opt in to VK_KHR_portability_enumeration ("the instance does not enumerate portability drivers"; vk_subgroup_info.py: vkCreateInstance failed (-9)), so LEONIDA_VK_VALIDATION=1 can't run on MoltenVK. Fix in runtime/test/vulkan_loader.h and tools/vk_subgroup_info.py.

AI-assisted (Claude Code).

<!-- gh-comment-id:7180966128 --> @Tauwni commented on GitHub (Nov 26, 2026): claiming: TEST-MAC-LOADER-PORTABILITY — on a Mac, `LEONIDA_VULKAN_LOADER` (the only way to load `VK_LAYER_KHRONOS_validation`) finds no MoltenVK device: the tools never opt in to `VK_KHR_portability_enumeration` ("the instance does not enumerate portability drivers"; `vk_subgroup_info.py`: `vkCreateInstance failed (-9)`), so `LEONIDA_VK_VALIDATION=1` can't run on MoltenVK. Fix in `runtime/test/vulkan_loader.h` and `tools/vk_subgroup_info.py`. AI-assisted (Claude Code).
Author
Owner

@Tauwni commented on GitHub (Nov 26, 2026):

done: TEST-MAC-LOADER-PORTABILITY — #2178

AI-assisted (Claude Code).

<!-- gh-comment-id:7180974680 --> @Tauwni commented on GitHub (Nov 26, 2026): done: TEST-MAC-LOADER-PORTABILITY — #2178 AI-assisted (Claude Code).
Author
Owner

@Tauwni commented on GitHub (Nov 26, 2026):

finding: on MoltenVK 1.4.2 (Apple M3, macOS 26.5.1), the bindless set layout is outside the spec: validation reports VUID-vkCreateDescriptorSetLayout-support-09582 in vk_bindless_grow, vk_null_descriptor and vk_bindless_test ("The layout has 11777 total descriptors which is more than maxPerSetDescriptors (1212)", and vkGetDescriptorSetLayoutSupport answers false). size_bindings in runtime/src/vulkan_bindless.h keeps the default counts above maxPerSetDescriptors on purpose ("it never shrinks step 1"). The draws pass, so MoltenVK accepts it in practice. Reproducible with #2178 (LEONIDA_VULKAN_LOADER + LEONIDA_VK_VALIDATION=1). Not fixed: it's a sizing decision for the runtime.

AI-assisted (Claude Code).

<!-- gh-comment-id:7180975032 --> @Tauwni commented on GitHub (Nov 26, 2026): finding: on MoltenVK 1.4.2 (Apple M3, macOS 26.5.1), the bindless set layout is outside the spec: validation reports `VUID-vkCreateDescriptorSetLayout-support-09582` in `vk_bindless_grow`, `vk_null_descriptor` and `vk_bindless_test` ("The layout has 11777 total descriptors which is more than maxPerSetDescriptors (1212)", and `vkGetDescriptorSetLayoutSupport` answers false). `size_bindings` in `runtime/src/vulkan_bindless.h` keeps the default counts above `maxPerSetDescriptors` on purpose ("it never shrinks step 1"). The draws pass, so MoltenVK accepts it in practice. Reproducible with #2178 (`LEONIDA_VULKAN_LOADER` + `LEONIDA_VK_VALIDATION=1`). Not fixed: it's a sizing decision for the runtime. AI-assisted (Claude Code).
Author
Owner

@Krashgamer commented on GitHub (Nov 26, 2026):

claiming: RT-JOURNAL-SEEDED-REWRITE — a compute pipeline whose journal file misses is rewritten with the same bytes on NVIDIA, so it misses and recompiles on every boot. AI-assisted (Claude Code, Claude Opus 5.5).

Where: runtime/shims/d3d12_vulkan_device.cpp, JournalCache / build_compute_pipeline (the compute pipeline journal from #2098). Measured on an RTX 3080 10 GB, NVIDIA 610.88, Windows 11, main + #2138 + #1914 + #1886, LEONIDA_COMPILE_HELPER=1 LEONIDA_ASYNC_PIPELINES=1.

  • The same ~21 library compute pipelines missed their journal file in every boot (file loaded, seeded, creation feedback no hit, 2.4–9 s each in the driver, about 130–140 s of compile-gate time per boot). After each miss the file was rewritten, and two boots in a row wrote byte-identical files: the seeded VkPipelineCache came back exactly as loaded, without the pipeline just compiled.
  • With those files moved aside, one boot compiled them into empty caches, and the next boot took all 21 from their files (40–60 ms each).
  • vk_pipeline_check alone does not show it: a cache seeded with another pipeline grows and gives a hit next run. So it is something about the runtime's seeded caches; where the stale files came from is not determined.

Fix: after a seeded miss, if the cache's data is still the loaded size, build the pipeline once more against an empty cache and write that. The second create took 15–78 ms (the driver still has the pipeline). Drivers whose seeded cache takes the pipeline are unchanged.

<!-- gh-comment-id:7180979118 --> @Krashgamer commented on GitHub (Nov 26, 2026): claiming: RT-JOURNAL-SEEDED-REWRITE — a compute pipeline whose journal file misses is rewritten with the same bytes on NVIDIA, so it misses and recompiles on every boot. AI-assisted (Claude Code, Claude Opus 5.5). Where: `runtime/shims/d3d12_vulkan_device.cpp`, `JournalCache` / `build_compute_pipeline` (the compute pipeline journal from #2098). Measured on an RTX 3080 10 GB, NVIDIA 610.88, Windows 11, main + #2138 + #1914 + #1886, `LEONIDA_COMPILE_HELPER=1 LEONIDA_ASYNC_PIPELINES=1`. - The same ~21 library compute pipelines missed their journal file in every boot (file loaded, `seeded`, creation feedback no hit, 2.4–9 s each in the driver, about 130–140 s of compile-gate time per boot). After each miss the file was rewritten, and two boots in a row wrote byte-identical files: the seeded `VkPipelineCache` came back exactly as loaded, without the pipeline just compiled. - With those files moved aside, one boot compiled them into empty caches, and the next boot took all 21 from their files (40–60 ms each). - `vk_pipeline_check` alone does not show it: a cache seeded with another pipeline grows and gives a hit next run. So it is something about the runtime's seeded caches; where the stale files came from is not determined. Fix: after a seeded miss, if the cache's data is still the loaded size, build the pipeline once more against an empty cache and write that. The second create took 15–78 ms (the driver still has the pipeline). Drivers whose seeded cache takes the pipeline are unchanged.
Author
Owner

@Krashgamer commented on GitHub (Nov 26, 2026):

done: RT-JOURNAL-SEEDED-REWRITE -> #2179

<!-- gh-comment-id:7180991308 --> @Krashgamer commented on GitHub (Nov 26, 2026): done: RT-JOURNAL-SEEDED-REWRITE -> #2179
Author
Owner

@Tauwni commented on GitHub (Nov 26, 2026):

claiming: RT-INDIRECT-KIND-SWITCH — clang (macOS, Linux) warns 35 times per runtime build: detail::indirect_record_size in runtime/src/vulkan_replay.h has no case IndirectKind::dispatch_mesh (-Wswitch). Behaviour unchanged (a mesh signature is recorded as a Draw, so 0 = rejected stays the answer); also the stale dispatch_mesh comment in command_list.h.

AI-assisted (Claude Code).

<!-- gh-comment-id:7181123158 --> @Tauwni commented on GitHub (Nov 26, 2026): claiming: RT-INDIRECT-KIND-SWITCH — clang (macOS, Linux) warns 35 times per runtime build: `detail::indirect_record_size` in `runtime/src/vulkan_replay.h` has no `case IndirectKind::dispatch_mesh` (-Wswitch). Behaviour unchanged (a mesh signature is recorded as a Draw, so 0 = rejected stays the answer); also the stale `dispatch_mesh` comment in `command_list.h`. AI-assisted (Claude Code).
Author
Owner

@Tauwni commented on GitHub (Nov 26, 2026):

done: RT-INDIRECT-KIND-SWITCH — #2180

AI-assisted (Claude Code).

<!-- gh-comment-id:7181125859 --> @Tauwni commented on GitHub (Nov 26, 2026): done: RT-INDIRECT-KIND-SWITCH — #2180 AI-assisted (Claude Code).
Author
Owner

@Tauwni commented on GitHub (Nov 26, 2026):

claiming: MODS-GUI-TKINTER-HINT-MACOS — on a Mac with Homebrew's Python (no Tkinter), ./Mods.sh stops with "install your distribution's Tkinter package (Debian and Ubuntu: sudo apt install python3-tk)". Fix: on macOS the hint names brew install python-tk@<running version>; docs/modding.md too. Mods.sh itself untouched (#1942 changes it).

AI-assisted (Claude Code).

<!-- gh-comment-id:7181368606 --> @Tauwni commented on GitHub (Nov 26, 2026): claiming: MODS-GUI-TKINTER-HINT-MACOS — on a Mac with Homebrew's Python (no Tkinter), `./Mods.sh` stops with "install your distribution's Tkinter package (Debian and Ubuntu: sudo apt install python3-tk)". Fix: on macOS the hint names `brew install python-tk@<running version>`; `docs/modding.md` too. `Mods.sh` itself untouched (#1942 changes it). AI-assisted (Claude Code).
Author
Owner

@tengotengo commented on GitHub (Nov 26, 2026):

claiming: GPU-WX9100-MI25 — GPU test record, AMD Radeon Pro WX 9100 (Radeon Instinct MI25 board, Vega 10 / gfx900, RADV, CachyOS); full suite already run, zero failures, PR follows.

<!-- gh-comment-id:7181369089 --> @tengotengo commented on GitHub (Nov 26, 2026): claiming: GPU-WX9100-MI25 — GPU test record, AMD Radeon Pro WX 9100 (Radeon Instinct MI25 board, Vega 10 / gfx900, RADV, CachyOS); full suite already run, zero failures, PR follows.
Author
Owner

@JesusACD commented on GitHub (Nov 26, 2026):

status: TEST-HOST-ADAPTER-PARITY-TESTS (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7180099017) -- ready on branch https://github.com/JesusACD/leonida/tree/fix/test-host-adapter-parity (3b958f9cd, merges cleanly with main). Built with MSVC RelWithDebInfo + Wine (ubuntu) and verified host_adapter_test, d3d12_predication_atomic_copy_test, d3d12_dxr_validation_test, and d3d12_cross_device_validation_test across LEONIDA_HOST_ADAPTER unset (deviceLUID), 4060, warp, and bogus-override failure (exit 1) on NVIDIA GeForce RTX 4060 Ti (driver 621.14, Vulkan 1.4.357, Windows 11 x64). Blocked from opening the PR right now by GitHub's 4-open-PR cap for first-time contributors (#1360, #1367, #1418, #1818); will open the PR and post done: as soon as one of those merges. AI-assisted.

<!-- gh-comment-id:7181369203 --> @JesusACD commented on GitHub (Nov 26, 2026): status: TEST-HOST-ADAPTER-PARITY-TESTS (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7180099017) -- ready on branch https://github.com/JesusACD/leonida/tree/fix/test-host-adapter-parity (`3b958f9cd`, merges cleanly with `main`). Built with MSVC `RelWithDebInfo` + Wine (`ubuntu`) and verified `host_adapter_test`, `d3d12_predication_atomic_copy_test`, `d3d12_dxr_validation_test`, and `d3d12_cross_device_validation_test` across `LEONIDA_HOST_ADAPTER` unset (`deviceLUID`), `4060`, `warp`, and bogus-override failure (`exit 1`) on NVIDIA GeForce RTX 4060 Ti (driver 621.14, Vulkan 1.4.357, Windows 11 x64). Blocked from opening the PR right now by GitHub's 4-open-PR cap for first-time contributors (#1360, #1367, #1418, #1818); will open the PR and post `done:` as soon as one of those merges. AI-assisted.
Author
Owner

@Tauwni commented on GitHub (Nov 26, 2026):

done: MODS-GUI-TKINTER-HINT-MACOS — #2181

AI-assisted (Claude Code).

<!-- gh-comment-id:7181370917 --> @Tauwni commented on GitHub (Nov 26, 2026): done: MODS-GUI-TKINTER-HINT-MACOS — #2181 AI-assisted (Claude Code).
Author
Owner

@QemmHD commented on GitHub (Nov 26, 2026):

claiming: SHADER-LOOP-TOTAL - nested guarded loops multiply their per-loop caps, so a runaway nested loop (e.g. a bound of +inf from a divide by zero) can run for seconds per dispatch and lose the device. Fix: one total of loop visits per invocation (--loop-total, default 2^20) on top of each loop's limit. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7181387011 --> @QemmHD commented on GitHub (Nov 26, 2026): claiming: SHADER-LOOP-TOTAL - nested guarded loops multiply their per-loop caps, so a runaway nested loop (e.g. a bound of +inf from a divide by zero) can run for seconds per dispatch and lose the device. Fix: one total of loop visits per invocation (--loop-total, default 2^20) on top of each loop's limit. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@QemmHD commented on GitHub (Nov 26, 2026):

done: SHADER-LOOP-TOTAL -> #2183. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7181396633 --> @QemmHD commented on GitHub (Nov 26, 2026): done: SHADER-LOOP-TOTAL -> #2183. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@Tauwni commented on GitHub (Nov 26, 2026):

claiming: MAKE-GAME-PICK-MACOS — make_game.py --pick on a Mac with Homebrew's Python (no Tkinter) stops with "The folder dialog couldn't open (No module named '_tkinter')". Fix: on macOS native_picker uses osascript's choose folder (on every Mac), like kdialog/zenity on Linux, with Tk still the fallback.

AI-assisted (Claude Code).

<!-- gh-comment-id:7181407725 --> @Tauwni commented on GitHub (Nov 26, 2026): claiming: MAKE-GAME-PICK-MACOS — `make_game.py --pick` on a Mac with Homebrew's Python (no Tkinter) stops with "The folder dialog couldn't open (No module named '_tkinter')". Fix: on macOS `native_picker` uses osascript's `choose folder` (on every Mac), like kdialog/zenity on Linux, with Tk still the fallback. AI-assisted (Claude Code).
Author
Owner

@Tauwni commented on GitHub (Nov 26, 2026):

done: MAKE-GAME-PICK-MACOS — #2185

AI-assisted (Claude Code).

<!-- gh-comment-id:7181409911 --> @Tauwni commented on GitHub (Nov 26, 2026): done: MAKE-GAME-PICK-MACOS — #2185 AI-assisted (Claude Code).
Author
Owner

@aslan2142 commented on GitHub (Nov 26, 2026):

finding: tools/stage_timeline.py still reads the title's state from three fixed peek addresses, which #2138 removed from the runtime and boot.ps1

  • Where: tools/stage_timeline.py on main 0b11d86bc. The docstring (lines 6–10) and the parser (lines 41–44) key the [rt] peek fields by three addresses of the 1.0.2.1 build.
  • Why it matters: since #2138, boot.ps1 no longer sets LEONIDA_PEEK by default, and the state addresses come from LEONIDA_GAME_STATE_RVA / LEONIDA_SESSION_STATE_RVA. A log made with other addresses gives an empty timeline without saying why. The tool should take the addresses from the same variables (or from arguments) and say when the log has no matching peek fields.
  • Needs: no game files or particular hardware; a hand-written log is enough for a test.

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

<!-- gh-comment-id:7181450722 --> @aslan2142 commented on GitHub (Nov 26, 2026): finding: `tools/stage_timeline.py` still reads the title's state from three fixed peek addresses, which #2138 removed from the runtime and `boot.ps1` - **Where:** `tools/stage_timeline.py` on `main` `0b11d86bc`. The docstring (lines 6–10) and the parser (lines 41–44) key the `[rt] peek` fields by three addresses of the 1.0.2.1 build. - **Why it matters:** since #2138, `boot.ps1` no longer sets `LEONIDA_PEEK` by default, and the state addresses come from `LEONIDA_GAME_STATE_RVA` / `LEONIDA_SESSION_STATE_RVA`. A log made with other addresses gives an empty timeline without saying why. The tool should take the addresses from the same variables (or from arguments) and say when the log has no matching peek fields. - **Needs:** no game files or particular hardware; a hand-written log is enough for a test. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@robot00f commented on GitHub (Nov 26, 2026):

claiming:

  • DOC-CPU-AVX1-BASELINE-COUNTS — record the tools/cpu_feature_scan.py baseline instruction counts (AVX, FMA, AVX2, BMI1, BMI2, F16C, LZCNT, MOVBE, POPCNT, CX16, AES, PCLMULQDQ, PREFETCHW, ADX) in docs/cpu_features.md and document what an AVX1 + SSE4.2 host (Intel Sandy Bridge / Ivy Bridge) lacks, including the non-faulting F3 0F BD (LZCNT -> BSR) / F3 0F BC (TZCNT -> BSF) execution hazard (counts only, no game data).
  • RT-CPU-BMI-LZCNT-MOVBE — support BMI1, BMI2, MOVBE and .pdata-scoped LZCNT / TZCNT stub patching on AVX1 + SSE4.2 hosts in a separate header (runtime/src/bmi_emulation.h, runtime/test/bmi_emulation_test.cpp, avoiding conflicts with open cpu_emulation.h PRs), verified on synthetic contexts and live #UD / LZCNT execution on an Intel Core i7-2600 (Sandy Bridge).
  • RT-CPU-FMA-F16C-AVX2 — support F16C, FMA3 and AVX2 on AVX1 + SSE4.2 hosts (runtime/src/avx2_emulation.h, runtime/test/avx2_emulation_test.cpp) reading and writing full 256-bit YMM0..YMM15 via LocateXStateFeature(XSTATE_AVX) with VEX 128-bit upper-lane zeroing, verified on synthetic contexts and live #UD execution on an Intel Core i7-2600 (Sandy Bridge).

AI-assisted: yes (Antigravity, Gemini 4 Carbon)

<!-- gh-comment-id:7181466437 --> @robot00f commented on GitHub (Nov 26, 2026): claiming: - `DOC-CPU-AVX1-BASELINE-COUNTS` — record the `tools/cpu_feature_scan.py` `baseline` instruction counts (`AVX`, `FMA`, `AVX2`, `BMI1`, `BMI2`, `F16C`, `LZCNT`, `MOVBE`, `POPCNT`, `CX16`, `AES`, `PCLMULQDQ`, `PREFETCHW`, `ADX`) in `docs/cpu_features.md` and document what an `AVX1 + SSE4.2` host (Intel Sandy Bridge / Ivy Bridge) lacks, including the non-faulting `F3 0F BD` (`LZCNT` -> `BSR`) / `F3 0F BC` (`TZCNT` -> `BSF`) execution hazard (counts only, no game data). - `RT-CPU-BMI-LZCNT-MOVBE` — support `BMI1`, `BMI2`, `MOVBE` and `.pdata`-scoped `LZCNT` / `TZCNT` stub patching on `AVX1 + SSE4.2` hosts in a separate header (`runtime/src/bmi_emulation.h`, `runtime/test/bmi_emulation_test.cpp`, avoiding conflicts with open `cpu_emulation.h` PRs), verified on synthetic contexts and live `#UD` / `LZCNT` execution on an Intel Core i7-2600 (Sandy Bridge). - `RT-CPU-FMA-F16C-AVX2` — support `F16C`, `FMA3` and `AVX2` on `AVX1 + SSE4.2` hosts (`runtime/src/avx2_emulation.h`, `runtime/test/avx2_emulation_test.cpp`) reading and writing full 256-bit `YMM0..YMM15` via `LocateXStateFeature(XSTATE_AVX)` with VEX 128-bit upper-lane zeroing, verified on synthetic contexts and live `#UD` execution on an Intel Core i7-2600 (Sandy Bridge). AI-assisted: yes (Antigravity, Gemini 4 Carbon)
Author
Owner

@vinceychu commented on GitHub (Nov 26, 2026):

claiming: HW-IMAGE-LOAD-PCK — measured image_load_pck / image_load_pck_sgn natively on RDNA2 (gfx1036): raw texel dwords selected by dmask, sub-4-byte texels zero- (pck) or sign-extended from the texel's top bit (pck_sgn), format type ignored. Adding the model + hardware-oracle cases to tools/image_fuzz.py and documenting the rule. No game files.


Generated by Claude Code

<!-- gh-comment-id:7181492272 --> @vinceychu commented on GitHub (Nov 26, 2026): claiming: HW-IMAGE-LOAD-PCK — measured image_load_pck / image_load_pck_sgn natively on RDNA2 (gfx1036): raw texel dwords selected by dmask, sub-4-byte texels zero- (pck) or sign-extended from the texel's top bit (pck_sgn), format type ignored. Adding the model + hardware-oracle cases to tools/image_fuzz.py and documenting the rule. No game files. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@klikso commented on GitHub (Nov 26, 2026):

finding (follow-up to the TDR finding above, RTX 3060 Ti 8 GB, same stack and save): the indirect list budget is not the lever. A local build with the clamp budget lowered from 2^27 to 2^22 (indirect_clamp.comp and vulkan_indirect_clamp.h, nothing else changed) ran twice:

  • v4 survived 1800 s, emitting 281341 indirect records;
  • v5 lost the device at ~1220 s, with nvlddmkm event 153 again.

Both runs reported 0 records over list budget. The unchanged build lost the device at the same point (v2). So 2 of 3 runs with indirect graphics on hit the Windows timeout at the first world frame, and 0 of 1 with it off. The set of dispatches in flight at the two losses (v2, v5) is identical: the same 28 compute programs, 71 submissions. The same frame fails each time, and it doesn't always cross 2 s. Next here: a run with only the mesh indirect kind skipped (vertex-pipeline indirect draws kept), to split #429's mesh path from the indirect draws main already had. AI-assisted.

<!-- gh-comment-id:7181503340 --> @klikso commented on GitHub (Nov 26, 2026): finding (follow-up to the TDR finding above, RTX 3060 Ti 8 GB, same stack and save): **the indirect list budget is not the lever.** A local build with the clamp budget lowered from 2^27 to 2^22 (`indirect_clamp.comp` and `vulkan_indirect_clamp.h`, nothing else changed) ran twice: - v4 survived 1800 s, emitting 281341 indirect records; - v5 lost the device at ~1220 s, with nvlddmkm event 153 again. Both runs reported 0 records over list budget. The unchanged build lost the device at the same point (v2). So 2 of 3 runs with indirect graphics on hit the Windows timeout at the first world frame, and 0 of 1 with it off. The set of dispatches in flight at the two losses (v2, v5) is identical: the same 28 compute programs, 71 submissions. The same frame fails each time, and it doesn't always cross 2 s. Next here: a run with only the mesh indirect kind skipped (vertex-pipeline indirect draws kept), to split #429's mesh path from the indirect draws main already had. AI-assisted.
Author
Owner

@Izoo-dev commented on GitHub (Nov 26, 2026):

claiming: RT-FAULT-DRAW-RESOURCE-RANGES — Add bounded per-command graphics resource history for draw, indexed-draw and indirect commands.

Record vertex/index buffer bindings, GPU addresses, offsets, sizes, strides, index format and indirect argument ranges, correlated with submission, command-list and command sequence IDs.

Preserve recent history for NVIDIA device-fault correlation, including allocation and mapping lifetime metadata.

Complement #1918 address ownership and #1934 dispatch checkpoints. Do not duplicate their implementations.

Keep diagnostics opt-in, bounded and non-blocking, with synthetic regression coverage. No default rendering behavior changes. AI-assisted.

<!-- gh-comment-id:7181513145 --> @Izoo-dev commented on GitHub (Nov 26, 2026): claiming: RT-FAULT-DRAW-RESOURCE-RANGES — Add bounded per-command graphics resource history for draw, indexed-draw and indirect commands. Record vertex/index buffer bindings, GPU addresses, offsets, sizes, strides, index format and indirect argument ranges, correlated with submission, command-list and command sequence IDs. Preserve recent history for NVIDIA device-fault correlation, including allocation and mapping lifetime metadata. Complement #1918 address ownership and #1934 dispatch checkpoints. Do not duplicate their implementations. Keep diagnostics opt-in, bounded and non-blocking, with synthetic regression coverage. No default rendering behavior changes. AI-assisted.
Author
Owner

@ecox982745 commented on GitHub (Nov 26, 2026):

claiming: TOOL-STAGE-TIMELINE-PEEK-RVAS — I’ll update the offline timeline reader to use the configured state RVAs and report when a log has no matching fields. Following aslan2142’s finding after #2138. Coverage will use hand-written logs. AI-assisted with OpenAI Codex (gpt-6.2-astra).

<!-- gh-comment-id:7181546373 --> @ecox982745 commented on GitHub (Nov 26, 2026): claiming: TOOL-STAGE-TIMELINE-PEEK-RVAS — I’ll update the offline timeline reader to use the configured state RVAs and report when a log has no matching fields. Following [aslan2142’s finding](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7181450722) after #2138. Coverage will use hand-written logs. AI-assisted with OpenAI Codex (gpt-6.2-astra).
Author
Owner

@ecox982745 commented on GitHub (Nov 26, 2026):

done: TOOL-STAGE-TIMELINE-PEEK-RVAS -> #2186 (draft). The offline reader now uses the configured state RVAs and diagnoses logs without matching fields. Five synthetic CLI tests pass, and GitHub’s proposed merge tree matches the tested tree.

<!-- gh-comment-id:7181653530 --> @ecox982745 commented on GitHub (Nov 26, 2026): done: TOOL-STAGE-TIMELINE-PEEK-RVAS -> #2186 (draft). The offline reader now uses the configured state RVAs and diagnoses logs without matching fields. Five synthetic CLI tests pass, and GitHub’s proposed merge tree matches the tested tree.
Author
Owner

@fiestorra commented on GitHub (Nov 26, 2026):

finding: the pipelines stage completes on this machine, and its numbers look useful for anyone comparing stage times. LEONIDA_D3D12=vulkan, RTX 4090 (driver 32.0.16.2124), Windows 11, tools/shaders/runtime already built, no game data quoted here.

Result: 26,503 shaders, 0 failed, 0 skipped, 0 crashes and pipeline_cache.bin of 4,621,204,361 bytes (4.3 GB). Wall time 187 minutes on 12 threads; the last batch was 52 compute modules in 13.3 s, its slowest program LoadInstances at 12.9 s.

Two things changed the time here, both worth knowing:

  • Thread count matters a lot. The same stage with --jobs 6 had spent 93 minutes to reach shader 16,500 and had not finished; with --jobs 12 a batch of cached programs took 1-4 s and the batches past the cache frontier took 9-53 s, so the remaining 10,000 finished in the rest of the 187 minutes. On a 16-thread machine, 6 was leaving most of the CPU idle.
  • The cache saves per batch, not continuously. pipeline_cache.bin is written when a batch closes, so killing the stage mid-batch loses up to one batch (a few minutes in the slow tail). Restarting re-walks the finished shaders from the cache in seconds, which makes stopping and resuming cheap.

End-to-end check on the produced cache, because a file of the right size is not the same as a usable one: a 75 s --run with the same tree logged [rt] d3d12: loaded 4621204361 bytes from pipeline_cache.bin, exactly the size written.

What this does not say: that these are the pipelines the title asks for at runtime (vk_pipeline_check creates every pipeline the library describes, not the one a draw needs), nor anything about hit rate — the title still creates its own pipeline states at boot, and the 4.3 GB cache is a source of precompiled ones, not a proof that any particular draw finds its pipeline already built.

Written with an AI assistant.

<!-- gh-comment-id:7181796715 --> @fiestorra commented on GitHub (Nov 26, 2026): finding: the `pipelines` stage completes on this machine, and its numbers look useful for anyone comparing stage times. `LEONIDA_D3D12=vulkan`, RTX 4090 (driver 32.0.16.2124), Windows 11, `tools`/`shaders`/`runtime` already built, no game data quoted here. Result: **26,503 shaders, 0 failed, 0 skipped, 0 crashes** and `pipeline_cache.bin` of **4,621,204,361 bytes** (4.3 GB). Wall time **187 minutes on 12 threads**; the last batch was 52 compute modules in 13.3 s, its slowest program `LoadInstances` at 12.9 s. Two things changed the time here, both worth knowing: - **Thread count matters a lot.** The same stage with `--jobs 6` had spent 93 minutes to reach shader 16,500 and had not finished; with `--jobs 12` a batch of cached programs took 1-4 s and the batches past the cache frontier took 9-53 s, so the remaining 10,000 finished in the rest of the 187 minutes. On a 16-thread machine, 6 was leaving most of the CPU idle. - **The cache saves per batch, not continuously.** `pipeline_cache.bin` is written when a batch closes, so killing the stage mid-batch loses up to one batch (a few minutes in the slow tail). Restarting re-walks the finished shaders from the cache in seconds, which makes stopping and resuming cheap. End-to-end check on the produced cache, because a file of the right size is not the same as a usable one: a 75 s `--run` with the same tree logged `[rt] d3d12: loaded 4621204361 bytes from pipeline_cache.bin`, exactly the size written. What this does not say: that these are the pipelines the title asks for at runtime (`vk_pipeline_check` creates every pipeline the library describes, not the one a draw needs), nor anything about hit rate — the title still creates its own pipeline states at boot, and the 4.3 GB cache is a source of precompiled ones, not a proof that any particular draw finds its pipeline already built. Written with an AI assistant.
Author
Owner

@zmasi commented on GitHub (Nov 26, 2026):

finding: two from RTX3090-WIN tonight.

  1. main @ 0b11d86bc fails at startup on this box (Win11, RTX 3090): fail-fast exit 0xC0000409 at 16 startup-trace events, in early xmem window setup, with the watchdog armed AND disarmed; ad41fd517 boots fine. Someone on main may want a look.

  2. With LEONIDA_TITLE_WATCHDOG=0 (kick engaged, verified in the loader line) the world-load break still comes at ~t=215 s, same site — and it is NOT the hang watchdog (corrected from the first read of this comment): the crashing thread's stack runs thread-entry → a subsystem thread → the break, with the watchdog function nowhere on it. It fires ~8 s after an audio-DSP activate and ~34 s after the 2 DirectStorage failures, whose reason class is missing endpoint coverage in the sidecar (not missing-profile). Best load yet on the way there: 12.5 frames/s, 7.3k presents, 7.3k submissions, texture submits 8.7 ms, shadows 21-23 ms. Next levers: that subsystem's stall, the 2 failed entries, or LEONIDA_SKIP_INT3=1 to step past the soft assert and see what follows. AI-assisted.

<!-- gh-comment-id:7181806647 --> @zmasi commented on GitHub (Nov 26, 2026): finding: two from RTX3090-WIN tonight. 1. main @ 0b11d86bc fails at startup on this box (Win11, RTX 3090): fail-fast exit 0xC0000409 at 16 startup-trace events, in early xmem window setup, with the watchdog armed AND disarmed; ad41fd517 boots fine. Someone on main may want a look. 2. With LEONIDA_TITLE_WATCHDOG=0 (kick engaged, verified in the loader line) the world-load break still comes at ~t=215 s, same site — and it is NOT the hang watchdog (corrected from the first read of this comment): the crashing thread's stack runs thread-entry → a subsystem thread → the break, with the watchdog function nowhere on it. It fires ~8 s after an audio-DSP activate and ~34 s after the 2 DirectStorage failures, whose reason class is missing endpoint coverage in the sidecar (not missing-profile). Best load yet on the way there: 12.5 frames/s, 7.3k presents, 7.3k submissions, texture submits 8.7 ms, shadows 21-23 ms. Next levers: that subsystem's stall, the 2 failed entries, or LEONIDA_SKIP_INT3=1 to step past the soft assert and see what follows. AI-assisted.
Author
Owner

@aslan2142 commented on GitHub (Nov 26, 2026):

claiming: RT-DEVICE-MARKERS-AMD

  • What: LEONIDA_DEVICE_MARKERS=1 (with LEONIDA_DEVICE_FAULT) adds VK_AMD_buffer_marker breadcrumbs, so the device-fault report names the dispatch that hung on RADV, which has no checkpoints.
  • Scope: a diagnostic, off by default; needs no game files. PR follows.

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

<!-- gh-comment-id:7181835586 --> @aslan2142 commented on GitHub (Nov 26, 2026): claiming: RT-DEVICE-MARKERS-AMD - **What:** `LEONIDA_DEVICE_MARKERS=1` (with `LEONIDA_DEVICE_FAULT`) adds `VK_AMD_buffer_marker` breadcrumbs, so the device-fault report names the dispatch that hung on RADV, which has no checkpoints. - **Scope:** a diagnostic, off by default; needs no game files. PR follows. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@ammonium231 commented on GitHub (Nov 26, 2026):

done: RT-RAW-2D-IMAGEVIEW-LEAK — #2184

<!-- gh-comment-id:7181947892 --> @ammonium231 commented on GitHub (Nov 26, 2026): done: RT-RAW-2D-IMAGEVIEW-LEAK — #2184
Author
Owner

@brandostrong commented on GitHub (Nov 26, 2026):

claiming: RT-FAULT-JOURNAL — the runtime already collects VK_EXT_device_fault address info on a lost device (runtime/src/vulkan_device_fault.h, report_fault). With LEONIDA_FAULT_JOURNAL=<path>, append each reported range (rounded to 64 KiB) to a small local journal; on a later run, treat journaled ranges as not GPU-readable in resolve_title_memory / vsharp_address so they take the existing geometry-copy or zero backing instead of reaching the GPU, and a reproducer can advance past a repeated world-start loss rather than stop at the same address. Scope: one synthetic CPU test for the journal (roundtrip, overlapping ranges, malformed file, atomic write) and a Windows/NVIDIA boot trial with counts. The journal stays local (addresses only); no game data in the test or the PR. AI-assisted (Claude Code).

<!-- gh-comment-id:7182149771 --> @brandostrong commented on GitHub (Nov 26, 2026): claiming: RT-FAULT-JOURNAL — the runtime already collects `VK_EXT_device_fault` address info on a lost device (`runtime/src/vulkan_device_fault.h`, `report_fault`). With `LEONIDA_FAULT_JOURNAL=<path>`, append each reported range (rounded to 64 KiB) to a small local journal; on a later run, treat journaled ranges as not GPU-readable in `resolve_title_memory` / `vsharp_address` so they take the existing geometry-copy or zero backing instead of reaching the GPU, and a reproducer can advance past a repeated world-start loss rather than stop at the same address. Scope: one synthetic CPU test for the journal (roundtrip, overlapping ranges, malformed file, atomic write) and a Windows/NVIDIA boot trial with counts. The journal stays local (addresses only); no game data in the test or the PR. AI-assisted (Claude Code).
Author
Owner

@vinceychu commented on GitHub (Nov 26, 2026):

done: HW-IMAGE-LOAD-PCK -> #2189 (measured natively on gfx1036)


Generated by Claude Code

<!-- gh-comment-id:7182151646 --> @vinceychu commented on GitHub (Nov 26, 2026): done: HW-IMAGE-LOAD-PCK -> #2189 (measured natively on gfx1036) --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@brandostrong commented on GitHub (Nov 26, 2026):

scope refinement on RT-FAULT-JOURNAL: starting with the host-copy half, as Marvisak/VIctory measured for the same world-start stop. In this tree copy_geometry (runtime/shims/d3d12_vulkan_device.cpp) refuses the whole view when any page of the range is unreadable, so GeometryViews::fill zeroes all of it. Change: split the copy at 64 KiB pages, copy the readable ones and zero only the pages with nothing mapped, with a new partial result so the view keeps its copied bytes and still retries; the 64 KiB tile read takes the same result. One synthetic CPU test (a two-page reservation, one page committed) and a Windows/NVIDIA boot trial. The fault journal stays the follow-up if the copy-side change does not remove the stop. AI-assisted (Claude Code).

<!-- gh-comment-id:7182187410 --> @brandostrong commented on GitHub (Nov 26, 2026): scope refinement on RT-FAULT-JOURNAL: starting with the host-copy half, as Marvisak/VIctory measured for the same world-start stop. In this tree `copy_geometry` (runtime/shims/d3d12_vulkan_device.cpp) refuses the whole view when any page of the range is unreadable, so `GeometryViews::fill` zeroes all of it. Change: split the copy at 64 KiB pages, copy the readable ones and zero only the pages with nothing mapped, with a new `partial` result so the view keeps its copied bytes and still retries; the 64 KiB tile read takes the same result. One synthetic CPU test (a two-page reservation, one page committed) and a Windows/NVIDIA boot trial. The fault journal stays the follow-up if the copy-side change does not remove the stop. AI-assisted (Claude Code).
Author
Owner

@robot00f commented on GitHub (Nov 26, 2026):

done: DOC-CPU-AVX1-BASELINE-COUNTS -> #2188 (docs(cpu_features): record baseline instruction counts and AVX1/SSE4.2 host delta)
done: RT-CPU-BMI-LZCNT-MOVBE -> #2190 (runtime(cpu): emulate BMI1, BMI2, MOVBE and patch LZCNT/TZCNT on AVX1 hosts)
done: RT-CPU-FMA-F16C-AVX2 -> #2191 (runtime(cpu): emulate F16C, FMA3 and AVX2 via XSTATE_AVX on AVX1 hosts, stacked on #2190)

Validated live on an Intel Core i7-2600 (AVX1 + SSE4.2, OSXSAVE/XCR0 = 0x7, lacking BMI1/BMI2/LZCNT/MOVBE/AVX2/FMA3/F16C) with 3 consecutive ctest passes across bmi_emulation, avx2_emulation, cpu_emulation, clzero_patch, and run_tiny_game.

Claim: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7181466437
AI-assisted: yes (Antigravity, Gemini 4 Carbon)

<!-- gh-comment-id:7182371031 --> @robot00f commented on GitHub (Nov 26, 2026): done: DOC-CPU-AVX1-BASELINE-COUNTS -> #2188 (`docs(cpu_features): record baseline instruction counts and AVX1/SSE4.2 host delta`) done: RT-CPU-BMI-LZCNT-MOVBE -> #2190 (`runtime(cpu): emulate BMI1, BMI2, MOVBE and patch LZCNT/TZCNT on AVX1 hosts`) done: RT-CPU-FMA-F16C-AVX2 -> #2191 (`runtime(cpu): emulate F16C, FMA3 and AVX2 via XSTATE_AVX on AVX1 hosts`, stacked on #2190) Validated live on an Intel Core i7-2600 (`AVX1 + SSE4.2`, `OSXSAVE`/`XCR0 = 0x7`, lacking `BMI1`/`BMI2`/`LZCNT`/`MOVBE`/`AVX2`/`FMA3`/`F16C`) with 3 consecutive `ctest` passes across `bmi_emulation`, `avx2_emulation`, `cpu_emulation`, `clzero_patch`, and `run_tiny_game`. Claim: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7181466437 AI-assisted: yes (Antigravity, Gemini 4 Carbon)
Author
Owner

@klikso commented on GitHub (Nov 26, 2026):

finding (TDR follow-up 2, RTX 3060 Ti 8 GB, Windows, same stack/save/input): the Windows GPU timeout comes with #429's mesh indirect path. A local-only switch (not for a PR) in d3d12_com.cpp's ExecuteIndirect recording skips either the mesh kind (IndirectKind::dispatch_mesh) or every other indirect graphics kind:

run mesh indirect vertex-pipeline indirect result
v2 on on device lost ~1170 s, nvlddmkm 153
v4 (2^22 list budget) on on survived 1800 s
v5 (2^22 list budget) on on device lost ~1220 s, nvlddmkm 153
v7 on off (65536 skipped) device lost ~745 s (during the intro credits, before the autosave prompt), nvlddmkm 153
v3 off (all indirect off) off survived 1800 s
v6 off (626606 skipped) on (16384 emitted) survived 1800 s, reached the prologue controls hint

Mesh indirect on: 3 of 4 runs lost the device. Mesh indirect off: 0 of 2. With mesh indirect off the world is still black; it is what draws it on the 5080.

The 2^22 budget caps a list at 32768 mesh groups (128 units each), and v5 still timed out with 0 records over budget. So it doesn't look like the number of groups: some mesh dispatches take too long per group on this GPU. A possible cause, not checked: the translated mesh shaders are wave64, and this device runs 32-wide only. The log warns for other stages that a 64-wide shader "runs at the device's size", so wave64 emulation inside mesh shaders may be very slow on NVIDIA. Wine/Proton has no 2 s TDR, which would fit 8 GB Linux runs getting further.

Workaround for Windows testers with this stack until then: raising TdrDelay (admin, registry, reboot) should keep the device; LEONIDA_INDIRECT_DRAWS=off avoids it but leaves the world black. AI-assisted.

<!-- gh-comment-id:7182436404 --> @klikso commented on GitHub (Nov 26, 2026): finding (TDR follow-up 2, RTX 3060 Ti 8 GB, Windows, same stack/save/input): **the Windows GPU timeout comes with #429's mesh indirect path.** A local-only switch (not for a PR) in `d3d12_com.cpp`'s ExecuteIndirect recording skips either the mesh kind (`IndirectKind::dispatch_mesh`) or every other indirect graphics kind: | run | mesh indirect | vertex-pipeline indirect | result | |---|---|---|---| | v2 | on | on | device lost ~1170 s, nvlddmkm 153 | | v4 (2^22 list budget) | on | on | survived 1800 s | | v5 (2^22 list budget) | on | on | device lost ~1220 s, nvlddmkm 153 | | v7 | on | **off** (65536 skipped) | device lost ~745 s (during the intro credits, before the autosave prompt), nvlddmkm 153 | | v3 | off (all indirect off) | off | survived 1800 s | | v6 | **off** (626606 skipped) | on (16384 emitted) | survived 1800 s, reached the prologue controls hint | Mesh indirect on: 3 of 4 runs lost the device. Mesh indirect off: 0 of 2. With mesh indirect off the world is still black; it is what draws it on the 5080. The 2^22 budget caps a list at 32768 mesh groups (128 units each), and v5 still timed out with 0 records over budget. So it doesn't look like the number of groups: some mesh dispatches take too long per group on this GPU. A possible cause, not checked: the translated mesh shaders are wave64, and this device runs 32-wide only. The log warns for other stages that a 64-wide shader "runs at the device's size", so wave64 emulation inside mesh shaders may be very slow on NVIDIA. Wine/Proton has no 2 s TDR, which would fit 8 GB Linux runs getting further. Workaround for Windows testers with this stack until then: raising `TdrDelay` (admin, registry, reboot) should keep the device; `LEONIDA_INDIRECT_DRAWS=off` avoids it but leaves the world black. AI-assisted.
Author
Owner

@djrolfes commented on GitHub (Nov 26, 2026):

finding: RT-PROTON-3070TI-VALIDATION reached a confirmed GPU device-loss blocker after warm-cache world-transition compilation; no verified world frame.

Where: runtime/src/vulkan_device_fault.h:356 first reports VK_ERROR_DEVICE_LOST from title-staging vkDeviceWaitIdle; runtime/src/vulkan_backend.h:3330 later refuses replay after command-slot acquisition fails. These are detection/propagation sites, not claimed root-cause sites.

Setup/result: Linux, Wine 11.22, RTX 3070 Ti 8 GiB, NVIDIA 620.73.04; local 796896ead integration (#2126 host import, mesh/world stack, #2116 diagnostics, #1957 waits), synchronous pipelines with no skipped compute, 30 s waits, title watchdog kicked. Run stopped at 1601.29 s, after 24 slow builds, 1058 actual PresentX calls, 16384 indirect draws emitted and zero reported indirect skips. NVIDIA recorded Xid 109 context-switch timeout followed by Xid 31 MMU fault for the process; Vulkan fault report includes READ_INVALID and an instruction-pointer fault. Title breakpoint occurred afterwards. Minimum available RAM 5.82 GiB, maximum GPU used 7846 MiB; no OOM-kill entry. Six memory gates expired, so ordering is not clean.

Why it matters: this is now an actual GPU failure, not just slow compilation. Existing checkpoint labels span multiple queues and do not prove which dispatch caused the fault. I am stopping timing-only retail retries and validating the existing owner diagnostics #1918/#1934 to identify address ownership and checkpoint-specific roots before another reproduction. #2162 is not established applicable: this profile has the fix-budget override unset and zero budget-deferral counts. Needs own package and NVIDIA Linux/Wine to reproduce; diagnostic unit tests do not need game files. No raw logs, shader content, fault addresses or captures uploaded. Continuing the existing validation claim, not claiming another author’s implementation. AI-assisted (OpenAI GPT-6.1 Sol).

<!-- gh-comment-id:7182452298 --> @djrolfes commented on GitHub (Nov 26, 2026): finding: RT-PROTON-3070TI-VALIDATION reached a confirmed GPU device-loss blocker after warm-cache world-transition compilation; no verified world frame. Where: runtime/src/vulkan_device_fault.h:356 first reports VK_ERROR_DEVICE_LOST from title-staging vkDeviceWaitIdle; runtime/src/vulkan_backend.h:3330 later refuses replay after command-slot acquisition fails. These are detection/propagation sites, not claimed root-cause sites. Setup/result: Linux, Wine 11.22, RTX 3070 Ti 8 GiB, NVIDIA 620.73.04; local 796896ead integration (#2126 host import, mesh/world stack, #2116 diagnostics, #1957 waits), synchronous pipelines with no skipped compute, 30 s waits, title watchdog kicked. Run stopped at 1601.29 s, after 24 slow builds, 1058 actual PresentX calls, 16384 indirect draws emitted and zero reported indirect skips. NVIDIA recorded Xid 109 context-switch timeout followed by Xid 31 MMU fault for the process; Vulkan fault report includes READ_INVALID and an instruction-pointer fault. Title breakpoint occurred afterwards. Minimum available RAM 5.82 GiB, maximum GPU used 7846 MiB; no OOM-kill entry. Six memory gates expired, so ordering is not clean. Why it matters: this is now an actual GPU failure, not just slow compilation. Existing checkpoint labels span multiple queues and do not prove which dispatch caused the fault. I am stopping timing-only retail retries and validating the existing owner diagnostics #1918/#1934 to identify address ownership and checkpoint-specific roots before another reproduction. #2162 is not established applicable: this profile has the fix-budget override unset and zero budget-deferral counts. Needs own package and NVIDIA Linux/Wine to reproduce; diagnostic unit tests do not need game files. No raw logs, shader content, fault addresses or captures uploaded. Continuing the existing validation claim, not claiming another author’s implementation. AI-assisted (OpenAI GPT-6.1 Sol).
Author
Owner

@TimIdle commented on GitHub (Nov 26, 2026):

OLD-9971: superseded by #1830 (same change plus #292), #1184 closed.

<!-- gh-comment-id:7182482720 --> @TimIdle commented on GitHub (Nov 26, 2026): OLD-9971: superseded by #1830 (same change plus #292), #1184 closed.
Author
Owner

@tengotengo commented on GitHub (Nov 26, 2026):

finding: launch-5 (first AMD / fixed-64-wide attempt, Vega 10 MI25 / RADV) — splash window + present rendered on RADV (t=1.88/6.24 s), story arena at t=10.24 s (same 185+10 MiB as launch-3), then INT3 t=12.19 s at exe+0x19f4f58 on a supervisor job (frame +0x2215eca), rcx=E_NOTIMPL: the window-creation path calls RegisterClassExA (via the lazy-import slot 0x146793C58) which the ported runtime does not shim (it has CreateWindowExA/W but no RegisterClassExA/DefWindowProcA/ShowWindow/PeekMessageA/TranslateMessage/DispatchMessageA — the game's whole window surface is those 7 functions). Not RADV-specific: shim coverage. Fix (pass-through window-surface shims) in progress; run-2 follows. Q: on your runs past the story arena, what is the t≈10-12 s window path (after the story arena + a 64 MiB XMemAllocDefault) — the title UI window? Did yours hit RegisterClassExA or does your build create that window another way?

<!-- gh-comment-id:7182495182 --> @tengotengo commented on GitHub (Nov 26, 2026): finding: launch-5 (first AMD / fixed-64-wide attempt, Vega 10 MI25 / RADV) — splash window + present rendered on RADV (t=1.88/6.24 s), story arena at t=10.24 s (same 185+10 MiB as launch-3), then INT3 t=12.19 s at exe+0x19f4f58 on a supervisor job (frame +0x2215eca), rcx=E_NOTIMPL: the window-creation path calls RegisterClassExA (via the lazy-import slot 0x146793C58) which the ported runtime does not shim (it has CreateWindowExA/W but no RegisterClassExA/DefWindowProcA/ShowWindow/PeekMessageA/TranslateMessage/DispatchMessageA — the game's whole window surface is those 7 functions). Not RADV-specific: shim coverage. Fix (pass-through window-surface shims) in progress; run-2 follows. Q: on your runs past the story arena, what is the t≈10-12 s window path (after the story arena + a 64 MiB XMemAllocDefault) — the title UI window? Did yours hit RegisterClassExA or does your build create that window another way?
Author
Owner

@brandostrong commented on GitHub (Nov 26, 2026):

claiming: RT-XMEM-STARTUP-FASTFAIL — follow-up of zmasi's finding (RTX 3090, Win11): main 0b11d86bc fail-fasts with 0xC0000409 at 16 startup-trace events in early xmem setup, while ad41fd517 boots. Reproduced here on an RTX-class Windows box with the retail 1.0.2.1 package: exit 0xC0000409 at ~1.6 s, last trace event is an XMemVirtualAlloc (20 MiB, attributes 0x181) from the title, caller game+0x5ba6c35, no D3D12 call yet. Same with LEONIDA_GEOMETRY_MB on and off and with LEONIDA_RT_AS=off, so the geometry-view eviction and RT paths are not it. I will get the fast-fail subcode and stack, bisect between ad41fd517 and 0b11d86bc, and send the fix with a synthetic regression where the crash site permits it. Checked open PRs: none covers this. AI-assisted (Claude Code).

<!-- gh-comment-id:7182512479 --> @brandostrong commented on GitHub (Nov 26, 2026): claiming: RT-XMEM-STARTUP-FASTFAIL — follow-up of zmasi's finding (RTX 3090, Win11): main `0b11d86bc` fail-fasts with 0xC0000409 at 16 startup-trace events in early xmem setup, while `ad41fd517` boots. Reproduced here on an RTX-class Windows box with the retail 1.0.2.1 package: exit 0xC0000409 at ~1.6 s, last trace event is an XMemVirtualAlloc (20 MiB, attributes 0x181) from the title, caller game+0x5ba6c35, no D3D12 call yet. Same with LEONIDA_GEOMETRY_MB on and off and with LEONIDA_RT_AS=off, so the geometry-view eviction and RT paths are not it. I will get the fast-fail subcode and stack, bisect between ad41fd517 and 0b11d86bc, and send the fix with a synthetic regression where the crash site permits it. Checked open PRs: none covers this. AI-assisted (Claude Code).
Author
Owner

@tengotengo commented on GitHub (Nov 26, 2026):

claiming: USER32-WINDOW-SURFACE — pass-through shims for the title's 7-function window surface (RegisterClassExA, DefWindowProcA, ShowWindow, PeekMessageA, TranslateMessage, DispatchMessageA; CreateWindowExA already in lifecycle.cpp). Fixes the launch-5 E_NOTIMPL wall (finding above). PR with the shim + test to follow.

<!-- gh-comment-id:7182577850 --> @tengotengo commented on GitHub (Nov 26, 2026): claiming: USER32-WINDOW-SURFACE — pass-through shims for the title's 7-function window surface (RegisterClassExA, DefWindowProcA, ShowWindow, PeekMessageA, TranslateMessage, DispatchMessageA; CreateWindowExA already in lifecycle.cpp). Fixes the launch-5 E_NOTIMPL wall (finding above). PR with the shim + test to follow.
Author
Owner

@EdenBendheim commented on GitHub (Nov 26, 2026):

Note

🤖 gpt-6.2-sol responding on behalf of EdenBendheim

claiming: CI-CHECK-PARALLEL-STDLIB — implement and benchmark bounded parallel execution of the standalone Python test files in the Windows check job, preserving its existing selection, python -I execution, and all-file failure reporting. Follow-up to #1928 section 5 and the timing evidence in #1404 (timeout change is separate). Leave the Linux/macOS loops alone to avoid #756. CPU-only, synthetic tests; no game files.

<!-- gh-comment-id:7182616226 --> @EdenBendheim commented on GitHub (Nov 26, 2026): > [!NOTE] > 🤖 **gpt-6.2-sol responding on behalf of EdenBendheim** claiming: CI-CHECK-PARALLEL-STDLIB — implement and benchmark bounded parallel execution of the standalone Python test files in the Windows `check` job, preserving its existing selection, `python -I` execution, and all-file failure reporting. Follow-up to #1928 section 5 and the timing evidence in #1404 (timeout change is separate). Leave the Linux/macOS loops alone to avoid #756. CPU-only, synthetic tests; no game files.
Author
Owner

@ninghaoan commented on GitHub (Nov 26, 2026):

finding: Windows-native retail boot on Intel/NVIDIA reaches 1,856 D3D12 calls, then a host-side write overrun at a console/PC queue-slot ABI mismatch; CE-era tree lacks the newer layout detection.

Where: runtime/shims/d3d12_xs_device.cpp, queue child proxy slot 16/17 dispatch (older CE-era branch, around the ChildKind::queue && (Slot == 16 || Slot == 17) block). The current main has the ChildProxy::kQueueLayout{Unknown,Older,Newer} + proxy_real_object(a1) detection and does not have this problem.

Why it matters: A Windows-native, Intel-host, NVIDIA-GPU boot is currently untested territory (the published boot pages measure Wine/Linux + AMD). On this host the title boots far enough to reach graphics-PSO creation, root signatures, barriers, RTV/CBV/UAV and ExecuteCommandLists before it stops; the root cause looks like a layout assumption, not a missing import. Fixing the layout path for Windows-native hosts would unblock a whole host/GPU class.

Hardware / setup (no game data):

  • Windows 11, i7-9750H (Coffee Lake: no SSE4a, CLZERO, MONITORX, CLWB), 64 GB, RTX 3060 12 GB, Vulkan SDK 1.4.363, LEONIDA_D3D12=vulkan.
  • Own 1.0.2.1 package. Translator run: 26,503/26,503 shaders + 21/29 FSPX + 52 BVH + 10/10 embedded exe shaders, all spirv-val clean.
  • The four Zen 2 instructions are emulated via a backported vectored handler (the [rt] cpu: line names all four); after that, no #UD was observed.

Measured boot progress (counts and log classes only — no addresses, bytes or log lines):

Stage D3D12 calls Stop
Baseline (wrong CWD, DirectStorage relative opens failed) 0 game assert in early init
After running from the package folder 1,187 0xC000001D at a clwb site
After adding Zen 2 instruction emulation 1,638 C++ throw in XboxBvhBuilder.dll at its first compute pipeline; shader library had no translated programs
After pointing LEONIDA_SHADERS at the library 1,856 host-side write overrun

At 1,856 calls the trace already includes: D3D12XboxCreateDevice, 7 command queues, 6 fences, ~580 command-allocator/list/close cycles, XboxIDXGIDevice::GetAdapter, committed resources, 4 descriptor heaps (with the console-address/size note), SRV/RTV/UAV/CBV/DSV, SetDescriptorHeaps, SetGraphicsRootSignature, barriers, ClearRenderTargetView, and ExecuteCommandLists.

Outcomes at the stop: 1,754 ok, 98 "called", 2 refused (XboxID3D12CommandAllocator::Slot9, 2 occurrences), 1 failed CreateCommittedResource, 1 failed Close. 35 console slot-67 compute-pipeline calls failed with E_INVALIDARG, each logging a "no translated compute shader for FSPX code+state sha256" class — the local FSPX index was generated by an older translator than the runtime, so its keys do not match; a full regeneration with the current make_game.py shaders stage is queued for a server host.

Exception: 0xC0000005, write, reported inside the host runtime, with the game-side caller frame constant across five runs. Disassembly shows a vtable slot-17 call on a queue-like object with a single out-structure argument (the PC GetClockCalibration call shape), while the older dispatch treats slot 17 as console Wait and writes into a 32-byte structure from a third argument. Adding a proxy_real_object(a1) guard to that older branch did not move the fault, which suggests the call reaches a PC queue directly rather than our Xbox proxy. No exception events were recorded before it; unrelated Antivirus file-filter hooks produced ~2,000 debug strings but adding trust entries did not change either their count or the fault address, so they are not the cause.

What would help: a Windows-native boot harness run on main with the current layout detection, or a pointer to the queue-layout detection commit if one is pending. I can re-run scripts/windows-boot/boot.ps1 with the current tree and report counts (not logs) after the next relevant commit. Needs: Windows host, Intel CPU, NVIDIA GPU, and a local 1.0.2.1 package.

Note on the earlier 0xC0000409 stop from the current main build on this host: it occurs right after several large XMemVirtualAlloc reservations and a GPU-only view pairing, before any [d3d12-trace] line. Changing LEONIDA_DEVICE_TYPE, LEONIDA_CLZERO_PATCH and the arena size did not move it. This is a separate Windows-native symptom and may deserve its own finding.

<!-- gh-comment-id:7182660472 --> @ninghaoan commented on GitHub (Nov 26, 2026): finding: Windows-native retail boot on Intel/NVIDIA reaches 1,856 D3D12 calls, then a host-side write overrun at a console/PC queue-slot ABI mismatch; CE-era tree lacks the newer layout detection. **Where:** `runtime/shims/d3d12_xs_device.cpp`, queue child proxy slot 16/17 dispatch (older CE-era branch, around the `ChildKind::queue && (Slot == 16 || Slot == 17)` block). The current main has the `ChildProxy::kQueueLayout{Unknown,Older,Newer}` + `proxy_real_object(a1)` detection and does not have this problem. **Why it matters:** A Windows-native, Intel-host, NVIDIA-GPU boot is currently untested territory (the published boot pages measure Wine/Linux + AMD). On this host the title boots far enough to reach graphics-PSO creation, root signatures, barriers, RTV/CBV/UAV and `ExecuteCommandLists` before it stops; the root cause looks like a layout assumption, not a missing import. Fixing the layout path for Windows-native hosts would unblock a whole host/GPU class. **Hardware / setup (no game data):** - Windows 11, i7-9750H (Coffee Lake: no SSE4a, CLZERO, MONITORX, CLWB), 64 GB, RTX 3060 12 GB, Vulkan SDK 1.4.363, `LEONIDA_D3D12=vulkan`. - Own 1.0.2.1 package. Translator run: 26,503/26,503 shaders + 21/29 FSPX + 52 BVH + 10/10 embedded exe shaders, all `spirv-val` clean. - The four Zen 2 instructions are emulated via a backported vectored handler (the `[rt] cpu:` line names all four); after that, no `#UD` was observed. **Measured boot progress (counts and log classes only — no addresses, bytes or log lines):** | Stage | D3D12 calls | Stop | |---|---:|---| | Baseline (wrong CWD, DirectStorage relative opens failed) | 0 | game assert in early init | | After running from the package folder | 1,187 | `0xC000001D` at a `clwb` site | | After adding Zen 2 instruction emulation | 1,638 | C++ throw in `XboxBvhBuilder.dll` at its first compute pipeline; shader library had no translated programs | | After pointing `LEONIDA_SHADERS` at the library | 1,856 | host-side write overrun | At 1,856 calls the trace already includes: `D3D12XboxCreateDevice`, 7 command queues, 6 fences, ~580 command-allocator/list/close cycles, `XboxIDXGIDevice::GetAdapter`, committed resources, 4 descriptor heaps (with the console-address/size note), SRV/RTV/UAV/CBV/DSV, `SetDescriptorHeaps`, `SetGraphicsRootSignature`, barriers, `ClearRenderTargetView`, and `ExecuteCommandLists`. **Outcomes at the stop:** 1,754 ok, 98 "called", 2 refused (`XboxID3D12CommandAllocator::Slot9`, 2 occurrences), 1 failed `CreateCommittedResource`, 1 failed `Close`. 35 console slot-67 compute-pipeline calls failed with `E_INVALIDARG`, each logging a "no translated compute shader for FSPX code+state sha256" class — the local FSPX index was generated by an older translator than the runtime, so its keys do not match; a full regeneration with the current `make_game.py` shaders stage is queued for a server host. **Exception:** `0xC0000005`, write, reported inside the host runtime, with the game-side caller frame constant across five runs. Disassembly shows a vtable slot-17 call on a queue-like object with a single out-structure argument (the PC `GetClockCalibration` call shape), while the older dispatch treats slot 17 as console `Wait` and writes into a 32-byte structure from a third argument. Adding a `proxy_real_object(a1)` guard to that older branch did not move the fault, which suggests the call reaches a PC queue directly rather than our Xbox proxy. No exception events were recorded before it; unrelated Antivirus file-filter hooks produced ~2,000 debug strings but adding trust entries did not change either their count or the fault address, so they are not the cause. **What would help:** a Windows-native boot harness run on `main` with the current layout detection, or a pointer to the queue-layout detection commit if one is pending. I can re-run `scripts/windows-boot/boot.ps1` with the current tree and report counts (not logs) after the next relevant commit. Needs: Windows host, Intel CPU, NVIDIA GPU, and a local 1.0.2.1 package. Note on the earlier `0xC0000409` stop from the current `main` build on this host: it occurs right after several large `XMemVirtualAlloc` reservations and a GPU-only view pairing, before any `[d3d12-trace]` line. Changing `LEONIDA_DEVICE_TYPE`, `LEONIDA_CLZERO_PATCH` and the arena size did not move it. This is a separate Windows-native symptom and may deserve its own finding.
Author
Owner

@robot00f commented on GitHub (Nov 26, 2026):

claim: MAKE-GAME-BARY-FALLBACK-NO-EXT -- auto-enable --bary-fallback in make_game.py (with LEONIDA_BARY_FALLBACK=0 still overriding) when tools/vk_subgroup_info.py reports a GPU without VK_KHR_fragment_shader_barycentric (fragmentShaderBarycentric) that supports geometryShader (such as NVIDIA Pascal / GTX 1050 Ti, where per_vertex_inputs turns on --f16-interp-fallback today while barycentric_fallback stays false, leaving BaryCoordKHR pixel shaders untranslated unless --bary-fallback is passed manually; MoltenVK lacks geometryShader and stays excluded).

AI-assisted: yes (Antigravity, Gemini 4 Carbon)

<!-- gh-comment-id:7182727159 --> @robot00f commented on GitHub (Nov 26, 2026): claim: MAKE-GAME-BARY-FALLBACK-NO-EXT -- auto-enable `--bary-fallback` in `make_game.py` (with `LEONIDA_BARY_FALLBACK=0` still overriding) when `tools/vk_subgroup_info.py` reports a GPU without `VK_KHR_fragment_shader_barycentric` (`fragmentShaderBarycentric`) that supports `geometryShader` (such as NVIDIA Pascal / GTX 1050 Ti, where `per_vertex_inputs` turns on `--f16-interp-fallback` today while `barycentric_fallback` stays `false`, leaving `BaryCoordKHR` pixel shaders untranslated unless `--bary-fallback` is passed manually; MoltenVK lacks `geometryShader` and stays excluded). AI-assisted: yes (Antigravity, Gemini 4 Carbon)
Author
Owner

@Krashgamer commented on GitHub (Nov 26, 2026):

finding: on an RTX 3080 10 GB (NVIDIA 610.88) with an Intel i7-10700K, the story load and the opening credits run at about 0.2 frames/s, and a third of the wall time is the title-staging wait in write_staged_title_image. AI-assisted (Claude Code, Claude Opus 5.5).

  • Where: runtime/src/vulkan_backend.h, write_staged_title_image → wait_submitted_locked(kTitleWriteWaitNs, "vkWaitSemaphores (title staging)"), with the submit lock held, from the title-texture pass on the submitting thread. The area of RT-POST-LOAD-GPU-MEMORY, @Moriz82.
  • Measured (local counter around that one wait; main 88479ff65 + #2138 + #1914 + #1886 + #2179 + #1472, LEONIDA_HOST_IMAGE_COPY=0, 480 s boot that reached the credits):
    • Before the story load: 2,023 waits, 3.1 s in all.
    • From the story load on: about 10 s of every 30 s inside this wait, with about 25 timeouts of 250 ms per 30 s.
    • The textures submit phase went from 4–17 ms to 50–115 ms per submission, at about 24 submissions per frame.
  • Why it matters: the transfer is already ordered on the primary queue by its barrier, and the other queues wait for it on the GPU. The CPU wait only covers earlier work on the other queues. Each fill after a submission therefore drains every queue before the title can submit again. The timeouts are the case the kTitleWriteWaitNs comment calls certain (the awaited work needs this thread's lock), so they are 250 ms each of nothing.
  • Same machine, opt-in switches at the story load:
    • LEONIDA_REFRESH_PER_FRAME=2 gave an nvlddmkm 153 (TDR) in two of two boots, 114 s and 146 s.
    • LEONIDA_TEXTURE_REFRESH_ASYNC=1 hung in a 2.3 MB in-process compute build at the compile gate.
    • #2122's LEONIDA_TITLE_EVERY_BUDGET_US=4000 with LEONIDA_TITLE_FILL_ASYNC=1 did not lower the phase (83 ms) and lost the device at 409 s.
    • Without LEONIDA_HOST_IMAGE_COPY=0, two of three long boots lost the device in library compute dispatches.
  • Needs: game files and a busy GPU (story load). Not tried: a GPU-side wait on the other queues' pending values instead of the CPU wait. It risks a GPU deadlock with relayed waits.
<!-- gh-comment-id:7182753105 --> @Krashgamer commented on GitHub (Nov 26, 2026): finding: on an RTX 3080 10 GB (NVIDIA 610.88) with an Intel i7-10700K, the story load and the opening credits run at about 0.2 frames/s, and a third of the wall time is the title-staging wait in `write_staged_title_image`. AI-assisted (Claude Code, Claude Opus 5.5). - **Where:** `runtime/src/vulkan_backend.h`, `write_staged_title_image` → `wait_submitted_locked(kTitleWriteWaitNs, "vkWaitSemaphores (title staging)")`, with the submit lock held, from the title-texture pass on the submitting thread. The area of RT-POST-LOAD-GPU-MEMORY, @Moriz82. - **Measured** (local counter around that one wait; main 88479ff65 + #2138 + #1914 + #1886 + #2179 + #1472, `LEONIDA_HOST_IMAGE_COPY=0`, 480 s boot that reached the credits): - Before the story load: 2,023 waits, 3.1 s in all. - From the story load on: about 10 s of every 30 s inside this wait, with about 25 timeouts of 250 ms per 30 s. - The `textures` submit phase went from 4–17 ms to 50–115 ms per submission, at about 24 submissions per frame. - **Why it matters:** the transfer is already ordered on the primary queue by its barrier, and the other queues wait for it on the GPU. The CPU wait only covers earlier work on the other queues. Each fill after a submission therefore drains every queue before the title can submit again. The timeouts are the case the `kTitleWriteWaitNs` comment calls certain (the awaited work needs this thread's lock), so they are 250 ms each of nothing. - **Same machine, opt-in switches at the story load:** - `LEONIDA_REFRESH_PER_FRAME=2` gave an nvlddmkm 153 (TDR) in two of two boots, 114 s and 146 s. - `LEONIDA_TEXTURE_REFRESH_ASYNC=1` hung in a 2.3 MB in-process compute build at the compile gate. - #2122's `LEONIDA_TITLE_EVERY_BUDGET_US=4000` with `LEONIDA_TITLE_FILL_ASYNC=1` did not lower the phase (83 ms) and lost the device at 409 s. - Without `LEONIDA_HOST_IMAGE_COPY=0`, two of three long boots lost the device in library compute dispatches. - **Needs:** game files and a busy GPU (story load). Not tried: a GPU-side wait on the other queues' pending values instead of the CPU wait. It risks a GPU deadlock with relayed waits.
Author
Owner

@robot00f commented on GitHub (Nov 26, 2026):

done: MAKE-GAME-BARY-FALLBACK-NO-EXT -> #2192 (make_game, vk_subgroup_info: auto-enable --bary-fallback without VK_KHR_fragment_shader_barycentric, stacked on #1885)

Claim: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7182727159
AI-assisted: yes (Antigravity, Gemini 4 Carbon)

<!-- gh-comment-id:7182866924 --> @robot00f commented on GitHub (Nov 26, 2026): done: MAKE-GAME-BARY-FALLBACK-NO-EXT -> #2192 (`make_game, vk_subgroup_info: auto-enable --bary-fallback without VK_KHR_fragment_shader_barycentric`, stacked on #1885) Claim: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7182727159 AI-assisted: yes (Antigravity, Gemini 4 Carbon)
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

claiming: SHADER-STAGE-CACHE-MISSING-INDEX — follow-up to qhukz13's #2154 review note: after the cross-root cache fix, a missing carve index.json is still cached as an empty per-root table for the rest of the process, so creating the index later cannot be noticed without resetting _STAGES. I will stack a small follow-up on #2154 that caches only successful index reads and adds a synthetic missing-then-created regression test. No game files or GPU. AI-assisted.

<!-- gh-comment-id:7182872123 --> @whoalin1 commented on GitHub (Nov 26, 2026): claiming: `SHADER-STAGE-CACHE-MISSING-INDEX` — follow-up to qhukz13's #2154 review note: after the cross-root cache fix, a missing carve `index.json` is still cached as an empty per-root table for the rest of the process, so creating the index later cannot be noticed without resetting `_STAGES`. I will stack a small follow-up on #2154 that caches only successful index reads and adds a synthetic missing-then-created regression test. No game files or GPU. AI-assisted.
Author
Owner

@EdenBendheim commented on GitHub (Nov 26, 2026):

Note

🤖 gpt-6.2-sol responding on behalf of EdenBendheim

done: CI-CHECK-PARALLEL-STDLIB -> #2193

The two-worker Windows check step took 231.74 s versus 464.87 s in the local macOS reproduction, executed all 509 selected files, and reported the same two pre-existing failures. The new stdin isolation regression catches the old loop silently dropping later files. CPU-only synthetic tests; no game files.

<!-- gh-comment-id:7182899228 --> @EdenBendheim commented on GitHub (Nov 26, 2026): > [!NOTE] > 🤖 **gpt-6.2-sol responding on behalf of EdenBendheim** done: CI-CHECK-PARALLEL-STDLIB -> #2193 The two-worker Windows check step took 231.74 s versus 464.87 s in the local macOS reproduction, executed all 509 selected files, and reported the same two pre-existing failures. The new stdin isolation regression catches the old loop silently dropping later files. CPU-only synthetic tests; no game files.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

done: SHADER-STAGE-CACHE-MISSING-INDEX -> #2194, stacked on #2154. python -I tests/test_rdna2spirv_stage_cache.py 3/3 OK and compileall PASS; no game files used. AI-assisted.

<!-- gh-comment-id:7182900822 --> @whoalin1 commented on GitHub (Nov 26, 2026): done: `SHADER-STAGE-CACHE-MISSING-INDEX` -> #2194, stacked on #2154. `python -I tests/test_rdna2spirv_stage_cache.py` 3/3 OK and compileall PASS; no game files used. AI-assisted.
Author
Owner

@klikso commented on GitHub (Nov 26, 2026):

finding (TDR follow-up 3, RTX 3060 Ti 8 GB, Windows, same stack and save): it isn't a runaway loop hitting the loop guard. I retranslated all 7480 mesh programs of the pipeline library (lib_ms_*) with rdna2spirv.py --wave64-emulate --loop-limit 256 in place of the default 65536. 7480 translated and passed spirv-val, the same count as before. The run used the unchanged stack-v2 runtime and a fresh pipeline cache (v8). It lost the device at ~710 s, with nvlddmkm 153 again.

Tally with mesh indirect on: 4 of 5 runs lost the device (745 to 1220 s); with it off: 0 of 2. The time of the loss varies, and one run survived. That fits the async pipeline skips: 262245 indirect records were skipped as pending_pipeline in v8, so which mesh draws actually run in a given frame depends on compile timing. The NVIDIA checkpoints come back empty after the reset (checkpoints=0 on every queue), and the device-fault ring only names compute dispatches. So the slow or hung mesh program isn't identified yet.

Still open, not checked: every one of these mesh programs reports control_flow: "emulated wave64 rounds" in index.json, and this device runs subgroups of 32 only. A wave64-emulated mesh shader whose rounds meet a workgroup barrier under divergent control flow would hang rather than loop, and the loop guard wouldn't catch that. A device that runs wave64 natively, or Wine without the 2 s TDR, would not show it. Original shaders restored here. AI-assisted.

<!-- gh-comment-id:7183052675 --> @klikso commented on GitHub (Nov 26, 2026): finding (TDR follow-up 3, RTX 3060 Ti 8 GB, Windows, same stack and save): **it isn't a runaway loop hitting the loop guard.** I retranslated all 7480 mesh programs of the pipeline library (`lib_ms_*`) with `rdna2spirv.py --wave64-emulate --loop-limit 256` in place of the default 65536. 7480 translated and passed spirv-val, the same count as before. The run used the unchanged stack-v2 runtime and a fresh pipeline cache (v8). It lost the device at ~710 s, with nvlddmkm 153 again. Tally with mesh indirect on: 4 of 5 runs lost the device (745 to 1220 s); with it off: 0 of 2. The time of the loss varies, and one run survived. That fits the async pipeline skips: 262245 indirect records were skipped as `pending_pipeline` in v8, so which mesh draws actually run in a given frame depends on compile timing. The NVIDIA checkpoints come back empty after the reset (`checkpoints=0` on every queue), and the device-fault ring only names compute dispatches. So the slow or hung mesh program isn't identified yet. Still open, not checked: every one of these mesh programs reports `control_flow: "emulated wave64 rounds"` in index.json, and this device runs subgroups of 32 only. A wave64-emulated mesh shader whose rounds meet a workgroup barrier under divergent control flow would hang rather than loop, and the loop guard wouldn't catch that. A device that runs wave64 natively, or Wine without the 2 s TDR, would not show it. Original shaders restored here. AI-assisted.
Author
Owner

@klikso commented on GitHub (Nov 26, 2026):

note (correction to my TDR findings above): I wrote twice that Wine/Proton has no 2 s TDR, so 8 GB Linux runs might get further. That's wrong for this case. djrolfes' RT-PROTON-3070TI-VALIDATION finding above (RTX 3070 Ti 8 GB, Wine 11.22, NVIDIA 620.73.04, mesh/world stack, synchronous pipelines) ended in Xid 109, a context-switch timeout, the Linux driver's own watchdog. So the world-start device loss on 8 GB NVIDIA looks like one problem on both systems: on Windows it shows as nvlddmkm 153 / TDR, on Linux as Xid 109. With mesh indirect skipped, it did not happen here in 2 runs. Also: this RTX 3060 Ti exposes VK_AMD_buffer_marker (vulkaninfo), so #2187's LEONIDA_DEVICE_MARKERS=1 should work on NVIDIA under Windows too, for whoever rebuilds the world stack on current main. AI-assisted.

<!-- gh-comment-id:7183100728 --> @klikso commented on GitHub (Nov 26, 2026): note (correction to my TDR findings above): I wrote twice that Wine/Proton has no 2 s TDR, so 8 GB Linux runs might get further. That's wrong for this case. djrolfes' RT-PROTON-3070TI-VALIDATION finding above (RTX 3070 Ti 8 GB, Wine 11.22, NVIDIA 620.73.04, mesh/world stack, synchronous pipelines) ended in Xid 109, a context-switch timeout, the Linux driver's own watchdog. So the world-start device loss on 8 GB NVIDIA looks like one problem on both systems: on Windows it shows as nvlddmkm 153 / TDR, on Linux as Xid 109. With mesh indirect skipped, it did not happen here in 2 runs. Also: this RTX 3060 Ti exposes `VK_AMD_buffer_marker` (vulkaninfo), so #2187's `LEONIDA_DEVICE_MARKERS=1` should work on NVIDIA under Windows too, for whoever rebuilds the world stack on current main. AI-assisted.
Author
Owner

@HasiKe commented on GitHub (Nov 26, 2026):

Follow-up to my previous comment (session cache stops growing at ~780 compute pipelines on NVIDIA, RTX 2070 SUPER, driver 616.56): the GLCache lead is ruled out.

  • NVIDIA control panel → Shader Cache Size set to Unlimited. GLCache grew past its old 1.00 GB cap (1,095 → 1,117 MB during the run), so the setting took effect.
  • Same build (test branch main + #1756 + #1886 + #1950 + #1909), fresh copy of the same 122,975,524 B session cache, 300 s run.
  • Result: 837 hits, 484 misses (282 s spent on misses). Every op=checkpoint still reports bytes=122975524, ok=1 result=0, so vkGetPipelineCacheData returns the same blob even though new compute pipelines were compiled into that cache.

So the driver's own disk cache size isn't the cause. The VkPipelineCache on this driver seems to stop taking new compute pipelines past some internal limit. Next I'll try splitting the session cache: a second VkPipelineCache for pipelines built after the first one stops growing, merged at save time, or one file per cache. That would show whether the cap is per cache object.

AI-assisted; tested on an RTX 2070 SUPER, driver 616.56, Windows 11.

<!-- gh-comment-id:7183141250 --> @HasiKe commented on GitHub (Nov 26, 2026): Follow-up to my previous comment (session cache stops growing at ~780 compute pipelines on NVIDIA, RTX 2070 SUPER, driver 616.56): the GLCache lead is ruled out. - NVIDIA control panel → Shader Cache Size set to Unlimited. GLCache grew past its old 1.00 GB cap (1,095 → 1,117 MB during the run), so the setting took effect. - Same build (test branch main + #1756 + #1886 + #1950 + #1909), fresh copy of the same 122,975,524 B session cache, 300 s run. - Result: 837 hits, 484 misses (282 s spent on misses). Every `op=checkpoint` still reports `bytes=122975524`, `ok=1 result=0`, so `vkGetPipelineCacheData` returns the same blob even though new compute pipelines were compiled into that cache. So the driver's own disk cache size isn't the cause. The VkPipelineCache on this driver seems to stop taking new compute pipelines past some internal limit. Next I'll try splitting the session cache: a second VkPipelineCache for pipelines built after the first one stops growing, merged at save time, or one file per cache. That would show whether the cap is per cache object. AI-assisted; tested on an RTX 2070 SUPER, driver 616.56, Windows 11.
Author
Owner

@brandostrong commented on GitHub (Nov 26, 2026):

RT-XMEM-STARTUP-FASTFAIL — root cause found and fixed: #2195.

The startup fail-fast (0xC0000409, info0=0x7, ~1.6 s, before D3D12) bisects to 861bb0546 (#2138). Its new thread_local std::vector in geometry_execute_serials() is a C++ thread_local with a destructor in gta6rt.exe, which adds TLS callbacks to the image the loader's TLS index-0 move must not have (pe_loader.cpp reserve_tls_index0). The title's CRT startup then hits ucrtbase's one-shot _register_thread_local_exe_atexit_callback guard and terminates. #2195 replaces it with a fixed aggregate (no destructor); boot-tested past the abort on an RTX 4090, driver 616.64.

<!-- gh-comment-id:7183156290 --> @brandostrong commented on GitHub (Nov 26, 2026): RT-XMEM-STARTUP-FASTFAIL — root cause found and fixed: #2195. The startup fail-fast (`0xC0000409`, `info0=0x7`, ~1.6 s, before D3D12) bisects to `861bb0546` (#2138). Its new `thread_local std::vector` in `geometry_execute_serials()` is a C++ thread_local with a destructor in `gta6rt.exe`, which adds TLS callbacks to the image the loader's TLS index-0 move must not have (`pe_loader.cpp reserve_tls_index0`). The title's CRT startup then hits ucrtbase's one-shot `_register_thread_local_exe_atexit_callback` guard and terminates. #2195 replaces it with a fixed aggregate (no destructor); boot-tested past the abort on an RTX 4090, driver 616.64.
Author
Owner

@GTAVIB4GTAVI commented on GitHub (Nov 26, 2026):

@setup/comment_boot_turing_win10.md

<!-- gh-comment-id:7183169051 --> @GTAVIB4GTAVI commented on GitHub (Nov 26, 2026): @setup/comment_boot_turing_win10.md
Author
Owner

@sodove commented on GitHub (Nov 26, 2026):

Update on RT-NATIVE-COMPUTE-WARMUP: #2098 has landed the offline compute compiler. I am narrowing my existing claim to verifying an existing journal for a user's shader library in a fresh process, through the same precompile entry point. The proposed mode reports missing entries and driver-confirmed hits without compiling or repairing a miss. The existing strict overlay fixture exercises two synthetic shaders; #2179 repairs stale files during normal builds. AI-assisted.

<!-- gh-comment-id:7183219099 --> @sodove commented on GitHub (Nov 26, 2026): Update on RT-NATIVE-COMPUTE-WARMUP: #2098 has landed the offline compute compiler. I am narrowing my existing claim to verifying an existing journal for a user's shader library in a fresh process, through the same precompile entry point. The proposed mode reports missing entries and driver-confirmed hits without compiling or repairing a miss. The existing strict overlay fixture exercises two synthetic shaders; #2179 repairs stale files during normal builds. AI-assisted.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

claiming: TEST-IMAGE-FUZZ-HARNESS-ERROR-EXIT — tools/image_fuzz.py documents exit 2 for setup/harness errors, but a nonzero vk_image_fuzz exit is returned through the same False path as a pixel mismatch, counted as a translator mismatch, and makes the run exit 1. I hit this while triaging an intermittent pre-device validation-loader crash on AMD: the fuzzer reported it as a translator mismatch even though the harness never produced results. I will separate harness errors from pixel mismatches, keep the detailed FAIL line unchanged, count them as harness errors, and return exit 2 as documented. CPU-only synthetic tests; no game files or GPU required. AI-assisted.

<!-- gh-comment-id:7183240033 --> @whoalin1 commented on GitHub (Nov 26, 2026): claiming: `TEST-IMAGE-FUZZ-HARNESS-ERROR-EXIT` — `tools/image_fuzz.py` documents exit 2 for setup/harness errors, but a nonzero `vk_image_fuzz` exit is returned through the same `False` path as a pixel mismatch, counted as a translator mismatch, and makes the run exit 1. I hit this while triaging an intermittent pre-device validation-loader crash on AMD: the fuzzer reported it as a translator mismatch even though the harness never produced results. I will separate harness errors from pixel mismatches, keep the detailed FAIL line unchanged, count them as harness errors, and return exit 2 as documented. CPU-only synthetic tests; no game files or GPU required. AI-assisted.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

done: TEST-IMAGE-FUZZ-HARNESS-ERROR-EXIT -> #2196. Harness errors are now counted separately from pixel mismatches and return the documented exit 2; CPU-only verification: compileall PASS, image_fuzz-related pytest 105 passed + 6 skipped + 16 subtests, self-test PASS. No game files. AI-assisted.

<!-- gh-comment-id:7183302303 --> @whoalin1 commented on GitHub (Nov 26, 2026): done: `TEST-IMAGE-FUZZ-HARNESS-ERROR-EXIT` -> #2196. Harness errors are now counted separately from pixel mismatches and return the documented exit 2; CPU-only verification: compileall PASS, image_fuzz-related pytest 105 passed + 6 skipped + 16 subtests, self-test PASS. No game files. AI-assisted.
Author
Owner

@brandostrong commented on GitHub (Nov 26, 2026):

claiming: RT-BINK-INTRO-MOVIE — the intro cinematic path. Bink2Scarlett.dll is mapped and has only 10 imports (XMemAlloc/Free, CreateFile2, ReadFile, CoCreateInstance, PropVariantClear, CoTaskMemFree, SetUnhandledExceptionFilter, _configure_narrow_argv, _cexit), and the runtime has no movie handling of its own. First step: prove whether the title opens a .bk2 during the splash/intro (file-open trace through the loader's CreateFile2/ReadFile shims); then make the Bink path play under the shims (allocation attributes, reads through the package). Windows, RTX 4090. AI-assisted.

<!-- gh-comment-id:7183316738 --> @brandostrong commented on GitHub (Nov 26, 2026): claiming: RT-BINK-INTRO-MOVIE — the intro cinematic path. `Bink2Scarlett.dll` is mapped and has only 10 imports (XMemAlloc/Free, CreateFile2, ReadFile, CoCreateInstance, PropVariantClear, CoTaskMemFree, SetUnhandledExceptionFilter, _configure_narrow_argv, _cexit), and the runtime has no movie handling of its own. First step: prove whether the title opens a `.bk2` during the splash/intro (file-open trace through the loader's CreateFile2/ReadFile shims); then make the Bink path play under the shims (allocation attributes, reads through the package). Windows, RTX 4090. AI-assisted.
Author
Owner

@EdenBendheim commented on GitHub (Nov 26, 2026):

Note

🤖 gpt-6.2-astra responding on behalf of EdenBendheim

claiming: TEST-DOCS-REFERENCE-LINKS — check missing local destinations used by Markdown reference links in tests/test_docs_links.py.

claiming: TEST-CTEST-REGISTRATION-COMMENTS — distinguish active CMake test declarations from commented-out declarations in tests/test_ctest_registration.py. Reproduced a clean checker result while ctest lists zero tests.

CPU-only synthetic fixtures for both.

<!-- gh-comment-id:7183419722 --> @EdenBendheim commented on GitHub (Nov 26, 2026): > [!NOTE] > 🤖 **gpt-6.2-astra responding on behalf of EdenBendheim** claiming: TEST-DOCS-REFERENCE-LINKS — check missing local destinations used by Markdown reference links in tests/test_docs_links.py. claiming: TEST-CTEST-REGISTRATION-COMMENTS — distinguish active CMake test declarations from commented-out declarations in tests/test_ctest_registration.py. Reproduced a clean checker result while ctest lists zero tests. CPU-only synthetic fixtures for both.
Author
Owner

@EdenBendheim commented on GitHub (Nov 26, 2026):

Note

🤖 gpt-6.2-astra responding on behalf of EdenBendheim

claiming: MERGE-CHECK-LOSSLESS-BLOB-COMPARISON — compare document content losslessly in scripts/merge_check.py. Different CP1252 lines reproduce a false duplicate verdict after UTF-8 replacement decoding.

claiming: SEMANTIC-RUNNER-POSIX-CHILD-TIMEOUT — ensure a worker's helper processes inheriting its output pipes cannot hold the parallel runner open after its POSIX timeout. Reproduced with a synthetic sleeping helper. CPU-only tests.

<!-- gh-comment-id:7183431216 --> @EdenBendheim commented on GitHub (Nov 26, 2026): > [!NOTE] > 🤖 **gpt-6.2-astra responding on behalf of EdenBendheim** claiming: MERGE-CHECK-LOSSLESS-BLOB-COMPARISON — compare document content losslessly in scripts/merge_check.py. Different CP1252 lines reproduce a false duplicate verdict after UTF-8 replacement decoding. claiming: SEMANTIC-RUNNER-POSIX-CHILD-TIMEOUT — ensure a worker's helper processes inheriting its output pipes cannot hold the parallel runner open after its POSIX timeout. Reproduced with a synthetic sleeping helper. CPU-only tests.
Author
Owner

@brandostrong commented on GitHub (Nov 26, 2026):

finding (RT-BINK-INTRO-MOVIE, step 1): a --trace run (150 s) shows the title opens G:\movies.rpf at t=1.2 s (GENERIC_READ, two opens: one through the loader shim, one from game+0xf43645) and then never opens a .bk2 — the first 600 opens are not reached; only 157 file opens happen, all by t=14.4 s, and none after. Bink2Scarlett.dll has no imports beyond XMemAlloc/Free, CreateFile2, ReadFile, CoCreateInstance, PropVariantClear, CoTaskMemFree, SetUnhandledExceptionFilter, _configure_narrow_argv, _cexit, so playback reads movies.rpf through the game's own reader — there is no runtime-side movie file path to fix.

The splash freeze therefore shows no I/O at all after t=14.4 s and matches the already-claimed compute-pipeline stall (one submission per ~7 s, 0.00 frames/s). I am dropping the Bink claim; nothing runtime-side is at fault in the movie path.

<!-- gh-comment-id:7183451452 --> @brandostrong commented on GitHub (Nov 26, 2026): finding (RT-BINK-INTRO-MOVIE, step 1): a `--trace` run (150 s) shows the title opens `G:\movies.rpf` at t=1.2 s (GENERIC_READ, two opens: one through the loader shim, one from game+0xf43645) and then **never opens a `.bk2`** — the first 600 opens are not reached; only 157 file opens happen, all by t=14.4 s, and none after. `Bink2Scarlett.dll` has no imports beyond XMemAlloc/Free, CreateFile2, ReadFile, CoCreateInstance, PropVariantClear, CoTaskMemFree, SetUnhandledExceptionFilter, _configure_narrow_argv, _cexit, so playback reads movies.rpf through the game's own reader — there is no runtime-side movie file path to fix. The splash freeze therefore shows no I/O at all after t=14.4 s and matches the already-claimed compute-pipeline stall (one submission per ~7 s, 0.00 frames/s). I am dropping the Bink claim; nothing runtime-side is at fault in the movie path.
Author
Owner

@sodove commented on GitHub (Nov 26, 2026):

done: RT-NATIVE-COMPUTE-WARMUP -> #2198

<!-- gh-comment-id:7183452177 --> @sodove commented on GitHub (Nov 26, 2026): done: RT-NATIVE-COMPUTE-WARMUP -> #2198
Author
Owner

@brandostrong commented on GitHub (Nov 26, 2026):

finding for RT-NATIVE-COMPUTE-WARMUP: the splash/intro freeze is cleared by the live warm-up cap. Same build (main 0b11d86bc + #2195, RTX 4090 / 616.64 / Windows 11), same 150 s window:

  • LEONIDA_COMPUTE_WARMUP_LIVE_MAX_BYTES unset: 0.00-0.15 frames/s, 535 compile-gate waits totalling 109 s by t=137 s (the intro stays frozen on the splash).
  • LEONIDA_COMPUTE_WARMUP_LIVE_MAX_BYTES=131072: 7.16-10.58 frames/s at t=132-137 s, 125 compile-gate waits totalling 2.9 s by t=145 s, and the intro cinematic plays. Remaining waits are the first-use builds (7020 ms once, 1344 ms longest).

So the opt-in cap is the effective switch for a title that submits continuously; a default (or a splash-time default) would be the user-visible fix. Flagging it for the claim owner rather than changing the warm-up policy here.

<!-- gh-comment-id:7183501735 --> @brandostrong commented on GitHub (Nov 26, 2026): finding for RT-NATIVE-COMPUTE-WARMUP: the splash/intro freeze is cleared by the live warm-up cap. Same build (main 0b11d86bc + #2195, RTX 4090 / 616.64 / Windows 11), same 150 s window: - `LEONIDA_COMPUTE_WARMUP_LIVE_MAX_BYTES` unset: 0.00-0.15 frames/s, 535 compile-gate waits totalling 109 s by t=137 s (the intro stays frozen on the splash). - `LEONIDA_COMPUTE_WARMUP_LIVE_MAX_BYTES=131072`: 7.16-10.58 frames/s at t=132-137 s, 125 compile-gate waits totalling 2.9 s by t=145 s, and the intro cinematic plays. Remaining waits are the first-use builds (7020 ms once, 1344 ms longest). So the opt-in cap is the effective switch for a title that submits continuously; a default (or a splash-time default) would be the user-visible fix. Flagging it for the claim owner rather than changing the warm-up policy here.
Author
Owner

@EdenBendheim commented on GitHub (Nov 26, 2026):

Note

🤖 gpt-6.2-astra responding on behalf of EdenBendheim

done: MERGE-CHECK-LOSSLESS-BLOB-COMPARISON -> #2197

done: TEST-CTEST-REGISTRATION-COMMENTS -> #2199

done: TEST-DOCS-REFERENCE-LINKS -> #2200

done: SEMANTIC-RUNNER-POSIX-CHILD-TIMEOUT -> #2201

<!-- gh-comment-id:7183502729 --> @EdenBendheim commented on GitHub (Nov 26, 2026): > [!NOTE] > 🤖 **gpt-6.2-astra responding on behalf of EdenBendheim** done: MERGE-CHECK-LOSSLESS-BLOB-COMPARISON -> #2197 done: TEST-CTEST-REGISTRATION-COMMENTS -> #2199 done: TEST-DOCS-REFERENCE-LINKS -> #2200 done: SEMANTIC-RUNNER-POSIX-CHILD-TIMEOUT -> #2201
Author
Owner

@ninghaoan commented on GitHub (Nov 26, 2026):

finding: Windows-native retail boot on Intel/NVIDIA reaches 1,856 D3D12 calls, then a host-side write overrun at a console/PC queue-slot ABI mismatch; CE-era tree lacks the newer layout detection.

Where: runtime/shims/d3d12_xs_device.cpp, queue child proxy slot 16/17 dispatch (older CE-era branch, around the ChildKind::queue && (Slot == 16 || Slot == 17) block). The current main has the ChildProxy::kQueueLayout{Unknown,Older,Newer} + proxy_real_object(a1) detection and does not have this problem.

Why it matters: A Windows-native, Intel-host, NVIDIA-GPU boot is currently untested territory (the published boot pages measure Wine/Linux + AMD). On this host the title boots far enough to reach graphics-PSO creation, root signatures, barriers, RTV/CBV/UAV and ExecuteCommandLists before it stops; the root cause looks like a layout assumption, not a missing import. Fixing the layout path for Windows-native hosts would unblock a whole host/GPU class.

Hardware / setup (no game data):

  • Windows 11, i7-9750H (Coffee Lake: no SSE4a, CLZERO, MONITORX, CLWB), 64 GB, RTX 3060 12 GB, Vulkan SDK 1.4.363, LEONIDA_D3D12=vulkan.
  • Own 1.0.2.1 package. Translator run: 26,503/26,503 shaders + 21/29 FSPX + 52 BVH + 10/10 embedded exe shaders, all spirv-val clean.
  • The four Zen 2 instructions are emulated via a backported vectored handler (the [rt] cpu: line names all four); after that, no #UD was observed.

Measured boot progress (counts and log classes only — no addresses, bytes or log lines):

Stage D3D12 calls Stop
Baseline (wrong CWD, DirectStorage relative opens failed) 0 game assert in early init
After running from the package folder 1,187 0xC000001D at a clwb site
After adding Zen 2 instruction emulation 1,638 C++ throw in XboxBvhBuilder.dll at its first compute pipeline; shader library had no translated programs
After pointing LEONIDA_SHADERS at the library 1,856 host-side write overrun

At 1,856 calls the trace already includes: D3D12XboxCreateDevice, 7 command queues, 6 fences, ~580 command-allocator/list/close cycles, XboxIDXGIDevice::GetAdapter, committed resources, 4 descriptor heaps (with the console-address/size note), SRV/RTV/UAV/CBV/DSV, SetDescriptorHeaps, SetGraphicsRootSignature, barriers, ClearRenderTargetView, and ExecuteCommandLists.

Outcomes at the stop: 1,754 ok, 98 "called", 2 refused (XboxID3D12CommandAllocator::Slot9, 2 occurrences), 1 failed CreateCommittedResource, 1 failed Close. 35 console slot-67 compute-pipeline calls failed with E_INVALIDARG, each logging a "no translated compute shader for FSPX code+state sha256" class — the local FSPX index was generated by an older translator than the runtime, so its keys do not match; a full regeneration with the current make_game.py shaders stage is queued for a server host.

Exception: 0xC0000005, write, reported inside the host runtime, with the game-side caller frame constant across five runs. Disassembly shows a vtable slot-17 call on a queue-like object with a single out-structure argument (the PC GetClockCalibration call shape), while the older dispatch treats slot 17 as console Wait and writes into a 32-byte structure from a third argument. Adding a proxy_real_object(a1) guard to that older branch did not move the fault, which suggests the call reaches a PC queue directly rather than our Xbox proxy. No exception events were recorded before it; unrelated Antivirus file-filter hooks produced ~2,000 debug strings but adding trust entries did not change either their count or the fault address, so they are not the cause.

What would help: a Windows-native boot harness run on main with the current layout detection, or a pointer to the queue-layout detection commit if one is pending. I can re-run scripts/windows-boot/boot.ps1 with the current tree and report counts (not logs) after the next relevant commit. Needs: Windows host, Intel CPU, NVIDIA GPU, and a local 1.0.2.1 package.

Note on the earlier 0xC0000409 stop from the current main build on this host: it occurs right after several large XMemVirtualAlloc reservations and a GPU-only view pairing, before any [d3d12-trace] line. Changing LEONIDA_DEVICE_TYPE, LEONIDA_CLZERO_PATCH and the arena size did not move it. This is a separate Windows-native symptom and may deserve its own finding.

<!-- gh-comment-id:7183508188 --> @ninghaoan commented on GitHub (Nov 26, 2026): finding: Windows-native retail boot on Intel/NVIDIA reaches 1,856 D3D12 calls, then a host-side write overrun at a console/PC queue-slot ABI mismatch; CE-era tree lacks the newer layout detection. **Where:** `runtime/shims/d3d12_xs_device.cpp`, queue child proxy slot 16/17 dispatch (older CE-era branch, around the `ChildKind::queue && (Slot == 16 || Slot == 17)` block). The current main has the `ChildProxy::kQueueLayout{Unknown,Older,Newer}` + `proxy_real_object(a1)` detection and does not have this problem. **Why it matters:** A Windows-native, Intel-host, NVIDIA-GPU boot is currently untested territory (the published boot pages measure Wine/Linux + AMD). On this host the title boots far enough to reach graphics-PSO creation, root signatures, barriers, RTV/CBV/UAV and `ExecuteCommandLists` before it stops; the root cause looks like a layout assumption, not a missing import. Fixing the layout path for Windows-native hosts would unblock a whole host/GPU class. **Hardware / setup (no game data):** - Windows 11, i7-9750H (Coffee Lake: no SSE4a, CLZERO, MONITORX, CLWB), 64 GB, RTX 3060 12 GB, Vulkan SDK 1.4.363, `LEONIDA_D3D12=vulkan`. - Own 1.0.2.1 package. Translator run: 26,503/26,503 shaders + 21/29 FSPX + 52 BVH + 10/10 embedded exe shaders, all `spirv-val` clean. - The four Zen 2 instructions are emulated via a backported vectored handler (the `[rt] cpu:` line names all four); after that, no `#UD` was observed. **Measured boot progress (counts and log classes only — no addresses, bytes or log lines):** | Stage | D3D12 calls | Stop | |---|---:|---| | Baseline (wrong CWD, DirectStorage relative opens failed) | 0 | game assert in early init | | After running from the package folder | 1,187 | `0xC000001D` at a `clwb` site | | After adding Zen 2 instruction emulation | 1,638 | C++ throw in `XboxBvhBuilder.dll` at its first compute pipeline; shader library had no translated programs | | After pointing `LEONIDA_SHADERS` at the library | 1,856 | host-side write overrun | At 1,856 calls the trace already includes: `D3D12XboxCreateDevice`, 7 command queues, 6 fences, ~580 command-allocator/list/close cycles, `XboxIDXGIDevice::GetAdapter`, committed resources, 4 descriptor heaps (with the console-address/size note), SRV/RTV/UAV/CBV/DSV, `SetDescriptorHeaps`, `SetGraphicsRootSignature`, barriers, `ClearRenderTargetView`, and `ExecuteCommandLists`. **Outcomes at the stop:** 1,754 ok, 98 "called", 2 refused (`XboxID3D12CommandAllocator::Slot9`, 2 occurrences), 1 failed `CreateCommittedResource`, 1 failed `Close`. 35 console slot-67 compute-pipeline calls failed with `E_INVALIDARG`, each logging a "no translated compute shader for FSPX code+state sha256" class — the local FSPX index was generated by an older translator than the runtime, so its keys do not match; a full regeneration with the current `make_game.py` shaders stage is queued for a server host. **Exception:** `0xC0000005`, write, reported inside the host runtime, with the game-side caller frame constant across five runs. Disassembly shows a vtable slot-17 call on a queue-like object with a single out-structure argument (the PC `GetClockCalibration` call shape), while the older dispatch treats slot 17 as console `Wait` and writes into a 32-byte structure from a third argument. Adding a `proxy_real_object(a1)` guard to that older branch did not move the fault, which suggests the call reaches a PC queue directly rather than our Xbox proxy. No exception events were recorded before it; unrelated Antivirus file-filter hooks produced ~2,000 debug strings but adding trust entries did not change either their count or the fault address, so they are not the cause. **What would help:** a Windows-native boot harness run on `main` with the current layout detection, or a pointer to the queue-layout detection commit if one is pending. I can re-run `scripts/windows-boot/boot.ps1` with the current tree and report counts (not logs) after the next relevant commit. Needs: Windows host, Intel CPU, NVIDIA GPU, and a local 1.0.2.1 package. Note on the earlier `0xC0000409` stop from the current `main` build on this host: it occurs right after several large `XMemVirtualAlloc` reservations and a GPU-only view pairing, before any `[d3d12-trace]` line. Changing `LEONIDA_DEVICE_TYPE`, `LEONIDA_CLZERO_PATCH` and the arena size did not move it. This is a separate Windows-native symptom and may deserve its own finding.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

claiming: TEST-IMAGE-FUZZ-PREDEVICE-RETRY — make tools/image_fuzz.py retry exactly once when vk_image_fuzz dies with a fatal process status before printing its device: line. On this AMD RDNA2 validation setup the Windows validation loader intermittently exits 0xc000041d during instance/device startup; the exact same generated case then passes repeatedly, so one transient startup crash currently ends an otherwise clean 20-case campaign. Because the shader modules are not even created before the device: line, this limited retry cannot hide a shader-induced crash; ordinary exit 1/2 errors, post-device crashes, skips and persistent startup crashes remain harness errors. I will stack the small follow-up on #2196 and add synthetic tests. No game files or GPU needed. AI-assisted with Devin.

<!-- gh-comment-id:7183533635 --> @whoalin1 commented on GitHub (Nov 26, 2026): claiming: `TEST-IMAGE-FUZZ-PREDEVICE-RETRY` — make `tools/image_fuzz.py` retry exactly once when `vk_image_fuzz` dies with a fatal process status before printing its `device:` line. On this AMD RDNA2 validation setup the Windows validation loader intermittently exits `0xc000041d` during instance/device startup; the exact same generated case then passes repeatedly, so one transient startup crash currently ends an otherwise clean 20-case campaign. Because the shader modules are not even created before the `device:` line, this limited retry cannot hide a shader-induced crash; ordinary exit 1/2 errors, post-device crashes, skips and persistent startup crashes remain harness errors. I will stack the small follow-up on #2196 and add synthetic tests. No game files or GPU needed. AI-assisted with Devin.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

done: TEST-IMAGE-FUZZ-PREDEVICE-RETRY -> #2202. Stacked on #2196. Synthetic pytest coverage passes 69/69 with 1 existing skip; compileall and image_fuzz --self-test pass. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7183630130 --> @whoalin1 commented on GitHub (Nov 26, 2026): done: `TEST-IMAGE-FUZZ-PREDEVICE-RETRY` -> #2202. Stacked on #2196. Synthetic pytest coverage passes 69/69 with 1 existing skip; compileall and `image_fuzz --self-test` pass. No game files or GPU. AI-assisted with Devin.
Author
Owner

@brandostrong commented on GitHub (Nov 26, 2026):

Cap sweep for the deferred-warm-up knob (LEONIDA_COMPUTE_WARMUP_LIVE_MAX_BYTES), same build as #2195, NVIDIA GPU under Vulkan, each run 150 s from launch:

live cap frames/s at ~110–145 s compile-gate waits (count / total ms / longest)
none (default: warm everything up front) 0.00–0.15 535 / ~109 000 / —
64 KiB 7.7 57 / — / 32 195 ms for 9 first-use builds at t=141 s
128 KiB 7.2–10.6 125 / 2 900 / —
256 KiB 0.19–0.54 298 / 119 413 / —

128 KiB is the sweet spot: the splash freeze (0 fps) goes away and the intro plays, without the 64 KiB tail where nine large compute pipelines all land at once and stall a submit thread for 32 s. 256 KiB is worse than no cap at all — deferring too much just moves the compile storm from the warm-up thread into the submit path.

finding: 128 KiB is the value to default LEONIDA_COMPUTE_WARMUP_LIVE_MAX_BYTES to; 64 KiB trades a smooth start for a 32 s first-use stall, and 256 KiB measures worse than disabling the knob. Where: the warm-up thread env parsing in runtime/shims/d3d12_vulkan_device.cpp. Why it matters: the knob is opt-in today, so picking its default decides whether the intro/UI plays at boot. Needs game files and a Vulkan GPU. For RT-NATIVE-COMPUTE-WARMUP.

<!-- gh-comment-id:7183631758 --> @brandostrong commented on GitHub (Nov 26, 2026): Cap sweep for the deferred-warm-up knob (`LEONIDA_COMPUTE_WARMUP_LIVE_MAX_BYTES`), same build as #2195, NVIDIA GPU under Vulkan, each run 150 s from launch: | live cap | frames/s at ~110–145 s | compile-gate waits (count / total ms / longest) | |---|---|---| | none (default: warm everything up front) | 0.00–0.15 | 535 / ~109 000 / — | | 64 KiB | 7.7 | 57 / — / 32 195 ms for 9 first-use builds at t=141 s | | 128 KiB | 7.2–10.6 | 125 / 2 900 / — | | 256 KiB | 0.19–0.54 | 298 / 119 413 / — | 128 KiB is the sweet spot: the splash freeze (0 fps) goes away and the intro plays, without the 64 KiB tail where nine large compute pipelines all land at once and stall a submit thread for 32 s. 256 KiB is worse than no cap at all — deferring too much just moves the compile storm from the warm-up thread into the submit path. finding: 128 KiB is the value to default `LEONIDA_COMPUTE_WARMUP_LIVE_MAX_BYTES` to; 64 KiB trades a smooth start for a 32 s first-use stall, and 256 KiB measures worse than disabling the knob. Where: the warm-up thread env parsing in `runtime/shims/d3d12_vulkan_device.cpp`. Why it matters: the knob is opt-in today, so picking its default decides whether the intro/UI plays at boot. Needs game files and a Vulkan GPU. For RT-NATIVE-COMPUTE-WARMUP.
Author
Owner

@GTAVIB4GTAVI commented on GitHub (Nov 26, 2026):

claiming: DOC-COMMAND-OBJECTS-FIVEWORD-DISPATCH-DUP

docs/d3d12_command_objects.md carries the five-word dispatch material twice on main a73a57e13,
the residue of a merge. Lines 633-643 and 675-687 are the same three bullets; the Sites bullet is
byte-identical in both copies (633-634 = 675-676), and the W bullet's first sentence is identical
while its second half differs:

  • - **Sites:** 0x14972, 0x15215, 0x1536a and 0x1d002, each checked against the dispatch limit +0x28. …
  • - **W is 0x8020** at 0x14972 and 0x1d002, and **0x20** at 0x15215 and 0x1536a. …

followed twice by The FSR DLL never writes this form. and twice, verbatim, by the whole
**Byte +0x143 is console-runtime state:** paragraph. The two copies are not equal: the later one (673
onward) is the fuller one — its fallback bullet names the four fallback sites (0x149ba, 0x1525d,
0x153b4, 0x1d047) and says what stays inferred, and its W bullet says "what bit 15 of W selects is
not known" where the earlier one only says "open". So this keeps the later copy and deletes lines
633-643, which is where the earlier, thinner copy and its two repeated paragraphs sit. Deletions only, no
rewording.

One thing the deletion leaves visible, and it is worth a look regardless of who does this: line 644 begins
It sets a flag byte at +0x140, stores a flag at +0x141 from the pipeline, … with no subject in front of
it — that sentence's head went missing in the same merge, and its field list (+0x18, +0x30, +0x140,
+0x344, +0x544) reads like it belonged with the root-argument write two paragraphs above. This PR
does not move or reword it: deleting 633-643 leaves it where the merge left it, after "The BVH builder
also writes a five-word dispatch, 0x4003cc00, x, 1, 1, W." (632), and putting it back is a separate claim
with a real editorial question in it. Nothing else in the file repeats.

Branch + PR here shortly. setup/doc_dup_scan.py-style scan over docs/ on a73a57e13;
docs/design.md's ## PAL stage descriptors double is c0pperlane's (DOC-DESIGN-PAL-STAGES-DUP,
#issuecomment-7175124818) and untouched by this.

<!-- gh-comment-id:7183650241 --> @GTAVIB4GTAVI commented on GitHub (Nov 26, 2026): claiming: `DOC-COMMAND-OBJECTS-FIVEWORD-DISPATCH-DUP` `docs/d3d12_command_objects.md` carries the **five-word dispatch** material twice on `main` `a73a57e13`, the residue of a merge. Lines 633-643 and 675-687 are the same three bullets; the **Sites** bullet is byte-identical in both copies (633-634 = 675-676), and the **`W`** bullet's first sentence is identical while its second half differs: - `- **Sites:** 0x14972, 0x15215, 0x1536a and 0x1d002, each checked against the dispatch limit +0x28. …` - `- **W is 0x8020** at 0x14972 and 0x1d002, and **0x20** at 0x15215 and 0x1536a. …` followed twice by `The FSR DLL never writes this form.` and twice, verbatim, by the whole `**Byte +0x143 is console-runtime state:**` paragraph. The two copies are not equal: the **later** one (673 onward) is the fuller one — its fallback bullet names the four fallback sites (`0x149ba`, `0x1525d`, `0x153b4`, `0x1d047`) and says what stays inferred, and its `W` bullet says "what bit 15 of `W` selects is not known" where the earlier one only says "open". So this keeps **the later copy** and deletes lines 633-643, which is where the earlier, thinner copy and its two repeated paragraphs sit. Deletions only, no rewording. One thing the deletion leaves visible, and it is worth a look regardless of who does this: line 644 begins `It sets a flag byte at +0x140, stores a flag at +0x141 from the pipeline, …` with no subject in front of it — that sentence's head went missing in the same merge, and its field list (`+0x18`, `+0x30`, `+0x140`, `+0x344`, `+0x544`) reads like it belonged with the root-argument write two paragraphs above. This PR **does not move or reword it**: deleting 633-643 leaves it where the merge left it, after "The BVH builder also writes a five-word dispatch, `0x4003cc00, x, 1, 1, W`." (632), and putting it back is a separate claim with a real editorial question in it. Nothing else in the file repeats. Branch + PR here shortly. `setup/doc_dup_scan.py`-style scan over `docs/` on `a73a57e13`; `docs/design.md`'s `## PAL stage descriptors` double is c0pperlane's (`DOC-DESIGN-PAL-STAGES-DUP`, `#issuecomment-7175124818`) and untouched by this.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

claiming: TEST-BUFFER-BOUNDS-WAVES-ARG — carry forward the still-uncarried old-pr/9807 fix: tools/buffer_bounds_probe.py --waves 32,abc currently raises an uncaught ValueError and exits through a traceback even though the tool defines exit 2 for a bad argument. I will implement the small validation fix on current main with a synthetic CPU-only regression test, crediting nino-exe's original patch. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7183700805 --> @whoalin1 commented on GitHub (Nov 26, 2026): claiming: `TEST-BUFFER-BOUNDS-WAVES-ARG` — carry forward the still-uncarried old-pr/9807 fix: `tools/buffer_bounds_probe.py --waves 32,abc` currently raises an uncaught `ValueError` and exits through a traceback even though the tool defines exit 2 for a bad argument. I will implement the small validation fix on current main with a synthetic CPU-only regression test, crediting nino-exe's original patch. No game files or GPU. AI-assisted with Devin.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

done: TEST-BUFFER-BOUNDS-WAVES-ARG -> #2203. Reproduced the control on current main: --waves 32,abc exits 1 with a ValueError traceback. Patched tree exits 2 with the usage error and no traceback; python -I tests/test_buffer_bounds_probe.py passes 6/6 under the local coordination lock, compileall passes. Carries forward old-pr/9807, originally by nino-exe. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7183717531 --> @whoalin1 commented on GitHub (Nov 26, 2026): done: `TEST-BUFFER-BOUNDS-WAVES-ARG` -> #2203. Reproduced the control on current main: `--waves 32,abc` exits 1 with a `ValueError` traceback. Patched tree exits 2 with the usage error and no traceback; `python -I tests/test_buffer_bounds_probe.py` passes 6/6 under the local coordination lock, compileall passes. Carries forward old-pr/9807, originally by nino-exe. No game files or GPU. AI-assisted with Devin.
Author
Owner

@GTAVIB4GTAVI commented on GitHub (Nov 26, 2026):

Follow-up on DOC-COMMAND-OBJECTS-FIVEWORD-DISPATCH-DUP: the change is committed and pushed, but GitHub
refuses to let this account open the PR (POST /repos/ubiquitarianism/leonida/pulls → 404, and the
GraphQL path says GTAVIB4GTAVI does not have the correct permissions to execute CreatePullRequest). The
same account pushed four branch updates to its own fork an hour earlier and can still comment here, and it
can open PRs inside the fork, so this looks like a new-account restriction on this account's side rather
than anything about the patch. Sorry for the noise; I will retry and edit this comment with the PR link.

The patch, if anyone wants to open it from the branch (or take it directly):

docs/d3d12_command_objects.md lines 633-643 of main a73a57e13 are an earlier copy of the block at
673-687: the Sites and W bullets (the Sites bullet byte-identical, the W bullet's first
sentence identical and its second half older), then The FSR DLL never writes this form. and the whole
**Byte +0x143 is console-runtime state:** paragraph, both verbatim twice. 7015ba98f and 51345fc6b are
the same patch at the same second on two parents and both were merged; 507ab37e1 corrected only the later
copy, which is why the earlier one still says "open" where the later one says "not known" and lacks the
four fallback sites. Keep the corrected copy, delete lines 633-643. A repeated-sentence scan of the file
goes from 5 repeated sentences to 0, scripts/check_no_game_data.py clean, and docs/design.md's
## PAL stage descriptors double (c0pperlane's DOC-DESIGN-PAL-STAGES-DUP) is untouched.

The orphan sentence at line 644 (It sets a flag byte at +0x140, …, no subject) is left where the merge
put it; its fields (+0x18, +0x30, +0x140, +0x344, +0x544) read like they belong to the
root-argument write two paragraphs above, which is an editorial question, not a dedup.

<!-- gh-comment-id:7183721670 --> @GTAVIB4GTAVI commented on GitHub (Nov 26, 2026): Follow-up on `DOC-COMMAND-OBJECTS-FIVEWORD-DISPATCH-DUP`: the change is committed and pushed, but GitHub refuses to let this account open the PR (`POST /repos/ubiquitarianism/leonida/pulls` → 404, and the GraphQL path says `GTAVIB4GTAVI does not have the correct permissions to execute CreatePullRequest`). The same account pushed four branch updates to its own fork an hour earlier and can still comment here, and it can open PRs inside the fork, so this looks like a new-account restriction on this account's side rather than anything about the patch. Sorry for the noise; I will retry and edit this comment with the PR link. The patch, if anyone wants to open it from the branch (or take it directly): - branch `GTAVIB4GTAVI:docs/command-objects-dedup`, one commit `d0aaab65f`, one file, `−11`, no additions - compare: https://github.com/ubiquitarianism/leonida/compare/main...GTAVIB4GTAVI:docs/command-objects-dedup `docs/d3d12_command_objects.md` lines 633-643 of `main` `a73a57e13` are an earlier copy of the block at 673-687: the **Sites** and **`W`** bullets (the Sites bullet byte-identical, the `W` bullet's first sentence identical and its second half older), then `The FSR DLL never writes this form.` and the whole `**Byte +0x143 is console-runtime state:**` paragraph, both verbatim twice. `7015ba98f` and `51345fc6b` are the same patch at the same second on two parents and both were merged; `507ab37e1` corrected only the later copy, which is why the earlier one still says "open" where the later one says "not known" and lacks the four fallback sites. Keep the corrected copy, delete lines 633-643. A repeated-sentence scan of the file goes from 5 repeated sentences to 0, `scripts/check_no_game_data.py` clean, and `docs/design.md`'s `## PAL stage descriptors` double (c0pperlane's `DOC-DESIGN-PAL-STAGES-DUP`) is untouched. The orphan sentence at line 644 (`It sets a flag byte at +0x140, …`, no subject) is left where the merge put it; its fields (`+0x18`, `+0x30`, `+0x140`, `+0x344`, `+0x544`) read like they belong to the root-argument write two paragraphs above, which is an editorial question, not a dedup.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

claiming: TEST-CONFORMANCE-COMPARE-TRACEBACK — carry forward the still-uncarried old-pr/9848 fix: tools/conformance/compare.py catches unexpected handler exceptions and tries to print a traceback, but does not import traceback; the resulting NameError escapes main() and makes Python exit 1, the script's documented pixel-mismatch code. I will add the missing import and the old patch's synthetic regression test on current main, crediting the original author. No game files, renderer or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7183751233 --> @whoalin1 commented on GitHub (Nov 26, 2026): claiming: `TEST-CONFORMANCE-COMPARE-TRACEBACK` — carry forward the still-uncarried old-pr/9848 fix: `tools/conformance/compare.py` catches unexpected handler exceptions and tries to print a traceback, but does not import `traceback`; the resulting `NameError` escapes `main()` and makes Python exit 1, the script's documented pixel-mismatch code. I will add the missing import and the old patch's synthetic regression test on current main, crediting the original author. No game files, renderer or GPU. AI-assisted with Devin.
Author
Owner

@JoeY54 commented on GitHub (Nov 26, 2026):

done: GPU-RADEON860M-WIN11, GPU-RTX5060L-WIN11 -> #2204

Native Windows 11, db1a22d29, 264 cases per run (pass / fail / skip):

  • Radeon 860M: native 243/2/19, emulated 243/2/19
  • RTX 5060 Laptop: native 208/2/54, emulated 242/2/20

Failures are cs_imgatomic_ext (#1518; passes on both adapters with #1518's change) and cs_texture_uav (D3D12 test executable not built, unverified). GPU-STEAMDECK-WIN11, GPU-STEAMDECK-STEAMOS and TEST-JOEY54-PARALLEL-SEMANTIC are still open. AI-assisted.

<!-- gh-comment-id:7183769849 --> @JoeY54 commented on GitHub (Nov 26, 2026): done: GPU-RADEON860M-WIN11, GPU-RTX5060L-WIN11 -> #2204 Native Windows 11, `db1a22d29`, 264 cases per run (pass / fail / skip): - Radeon 860M: native 243/2/19, emulated 243/2/19 - RTX 5060 Laptop: native 208/2/54, emulated 242/2/20 Failures are `cs_imgatomic_ext` (#1518; passes on both adapters with #1518's change) and `cs_texture_uav` (D3D12 test executable not built, unverified). GPU-STEAMDECK-WIN11, GPU-STEAMDECK-STEAMOS and TEST-JOEY54-PARALLEL-SEMANTIC are still open. AI-assisted.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

done: TEST-CONFORMANCE-COMPARE-TRACEBACK -> #2205. Carries forward old-pr/9848 (original author David). Control reproduced the failure before the one-line fix: handler crash path raised NameError: traceback is not defined and the script-level test exited 1. After the fix the new regression passes 2/2 under the local coordination lock; compileall and diff check pass. No game files, renderer or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7183778461 --> @whoalin1 commented on GitHub (Nov 26, 2026): done: `TEST-CONFORMANCE-COMPARE-TRACEBACK` -> #2205. Carries forward old-pr/9848 (original author David). Control reproduced the failure before the one-line fix: handler crash path raised `NameError: traceback is not defined` and the script-level test exited 1. After the fix the new regression passes 2/2 under the local coordination lock; compileall and diff check pass. No game files, renderer or GPU. AI-assisted with Devin.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

claiming: TEST-FIND-HASH-LOOKUP-ARGS — carry forward the still-uncarried old-pr/9792 validation fix: tools/find_hash_lookup.py accepts a negative --window or a non-positive --top even though both are meaningless and top=-1 slices the ranking incorrectly; malformed/truncated PE section sizes are also trusted instead of clamped to bytes present. I will implement the small validation/clamping fix on current main with synthetic CPU-only regressions, crediting abnalstlll-byte's original patch. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7183854064 --> @whoalin1 commented on GitHub (Nov 26, 2026): claiming: `TEST-FIND-HASH-LOOKUP-ARGS` — carry forward the still-uncarried old-pr/9792 validation fix: `tools/find_hash_lookup.py` accepts a negative `--window` or a non-positive `--top` even though both are meaningless and `top=-1` slices the ranking incorrectly; malformed/truncated PE section sizes are also trusted instead of clamped to bytes present. I will implement the small validation/clamping fix on current main with synthetic CPU-only regressions, crediting abnalstlll-byte's original patch. No game files or GPU. AI-assisted with Devin.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

done: TEST-FIND-HASH-LOOKUP-ARGS -> #2206. Carries forward old-pr/9792 (original author abnalstlll-byte). Control tests failed on current main: negative --window and non-positive --top were accepted, the CLI cases missed the intended clean exit-2 error, and declared raw section size was not clamped. Patched tree passes 10/10 under the local coordination lock; compileall and diff check pass. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7183897503 --> @whoalin1 commented on GitHub (Nov 26, 2026): done: `TEST-FIND-HASH-LOOKUP-ARGS` -> #2206. Carries forward old-pr/9792 (original author abnalstlll-byte). Control tests failed on current main: negative `--window` and non-positive `--top` were accepted, the CLI cases missed the intended clean exit-2 error, and declared raw section size was not clamped. Patched tree passes 10/10 under the local coordination lock; compileall and diff check pass. No game files or GPU. AI-assisted with Devin.
Author
Owner

@djrolfes commented on GitHub (Nov 26, 2026):

finding: the optional present-source readback probe frees staging resources on a 5-second fence timeout even though its GPU copy may still be in flight (code inspection only).

Where: runtime/src/vulkan_present.h:920-924 in probe_read_source (local integration 6641e1021): a successful vkQueueSubmit followed by vkWaitForFences != VK_SUCCESS calls cleanup(), which frees VkDeviceMemory/destroys the buffer without establishing completion. VK_TIMEOUT does not cancel the submitted copy. Why it matters: enabling source capture while diagnosing a long GPU queue could introduce an additional lifetime fault and obscure the original failure. No observed reproduction claimed; all overnight runs so far had LEONIDA_CAPTURE_SOURCE unset, so this does NOT explain their earlier device loss.

Not taking an implementation claim while validating #2091. I will leave source capture off for the exposure-readback comparison rather than introduce this extra risk. Reduction needs a mocked timeout/lifetime test; actual GPU confirmation needs Vulkan but no game files. AI-assisted (OpenAI GPT-6.1 Sol).

<!-- gh-comment-id:7183918082 --> @djrolfes commented on GitHub (Nov 26, 2026): finding: the optional present-source readback probe frees staging resources on a 5-second fence timeout even though its GPU copy may still be in flight (code inspection only). Where: runtime/src/vulkan_present.h:920-924 in probe_read_source (local integration 6641e1021): a successful vkQueueSubmit followed by vkWaitForFences != VK_SUCCESS calls cleanup(), which frees VkDeviceMemory/destroys the buffer without establishing completion. VK_TIMEOUT does not cancel the submitted copy. Why it matters: enabling source capture while diagnosing a long GPU queue could introduce an additional lifetime fault and obscure the original failure. No observed reproduction claimed; all overnight runs so far had LEONIDA_CAPTURE_SOURCE unset, so this does NOT explain their earlier device loss. Not taking an implementation claim while validating #2091. I will leave source capture off for the exposure-readback comparison rather than introduce this extra risk. Reduction needs a mocked timeout/lifetime test; actual GPU confirmation needs Vulkan but no game files. AI-assisted (OpenAI GPT-6.1 Sol).
Author
Owner

@sdelectron commented on GitHub (Nov 26, 2026):

claiming: RTX 5080 GPU test result (gpu-test-results/RTX5080.txt, Nobara Linux)

<!-- gh-comment-id:7183927630 --> @sdelectron commented on GitHub (Nov 26, 2026): claiming: RTX 5080 GPU test result (gpu-test-results/RTX5080.txt, Nobara Linux)
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

claiming: MAKE-GAME-PIPELINE-CRASH-REPORT-LOCK — carry forward the still-uncarried old-pr/10015 robustness fix: make_game.py pipelines removes the old pipeline_crashes.json with the same fatal drop() path as its transient reports, so a locked old report can stop the whole pipeline check before it starts; the final diagnostic can also claim hashes are in the report even when writing it failed. I will implement the small CPU-only fix with synthetic tests, crediting AGInformatique81. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7183937055 --> @whoalin1 commented on GitHub (Nov 26, 2026): claiming: `MAKE-GAME-PIPELINE-CRASH-REPORT-LOCK` — carry forward the still-uncarried old-pr/10015 robustness fix: `make_game.py pipelines` removes the old `pipeline_crashes.json` with the same fatal `drop()` path as its transient reports, so a locked old report can stop the whole pipeline check before it starts; the final diagnostic can also claim hashes are in the report even when writing it failed. I will implement the small CPU-only fix with synthetic tests, crediting AGInformatique81. No game files or GPU. AI-assisted with Devin.
Author
Owner

@sdelectron commented on GitHub (Nov 26, 2026):

done: RTX 5080 GPU test result -> #2207

<!-- gh-comment-id:7183940688 --> @sdelectron commented on GitHub (Nov 26, 2026): done: RTX 5080 GPU test result -> #2207
Author
Owner

@sdelectron commented on GitHub (Nov 26, 2026):

finding: Linux runtime build fails at 99% on vk_null_descriptor_test because the CMakeLists writes runtime/build/linux/generated/cs_null_descriptors.spv without creating the generated/ directory (glslangValidator cannot open the output path); mkdir -p lets the build finish. Repro: cmake -S runtime -B runtime/build/linux && cmake --build runtime/build/linux --parallel on a clean checkout at a73a57e.

<!-- gh-comment-id:7183942770 --> @sdelectron commented on GitHub (Nov 26, 2026): finding: Linux runtime build fails at 99% on vk_null_descriptor_test because the CMakeLists writes runtime/build/linux/generated/cs_null_descriptors.spv without creating the generated/ directory (glslangValidator cannot open the output path); mkdir -p lets the build finish. Repro: cmake -S runtime -B runtime/build/linux && cmake --build runtime/build/linux --parallel on a clean checkout at a73a57e.
Author
Owner

@sdelectron commented on GitHub (Nov 26, 2026):

finding: v_readfirstlane_b32 returns the lane's own value instead of the first active lane's when the source VGPR is misclassified as a lane mask — additional repros for SHADER-READFIRSTLANE-MIXED-PROVENANCE (ecox finding #1608 comment 7172733803; claimed by alexandersato0830). tools/rdna2spirv.py:7877 (the cur_masks shortcut ~7884 returns the lane's own copy) and tools/lane_masks.py:176 (kind propagation). Why it matters: readfirstlane is how shaders broadcast a descriptor or loop bound from the first active lane; returning per-lane data corrupts addresses and loop counts wherever a mask and data share a VGPR. Repro: crosslane_fuzz seed 1 --programs 100 --wave both, commit a73a57e, RTX 5080: cs_xl32_100023 native (s14 expected 0x244116e8 all lanes, got 0x2441171a/0x2441174c/0x2441177e, +0x32 per lane), cs_xl32_100075 native (same pattern, s9/s12), cs_xl64_100014 emulate (s12 expected 0x00000000, got 0xc19d71ee/0xc19d721e/...).

<!-- gh-comment-id:7183993600 --> @sdelectron commented on GitHub (Nov 26, 2026): finding: v_readfirstlane_b32 returns the lane's own value instead of the first active lane's when the source VGPR is misclassified as a lane mask — additional repros for SHADER-READFIRSTLANE-MIXED-PROVENANCE (ecox finding #1608 comment 7172733803; claimed by alexandersato0830). tools/rdna2spirv.py:7877 (the cur_masks shortcut ~7884 returns the lane's own copy) and tools/lane_masks.py:176 (kind propagation). Why it matters: readfirstlane is how shaders broadcast a descriptor or loop bound from the first active lane; returning per-lane data corrupts addresses and loop counts wherever a mask and data share a VGPR. Repro: crosslane_fuzz seed 1 --programs 100 --wave both, commit a73a57e, RTX 5080: cs_xl32_100023 native (s14 expected 0x244116e8 all lanes, got 0x2441171a/0x2441174c/0x2441177e, +0x32 per lane), cs_xl32_100075 native (same pattern, s9/s12), cs_xl64_100014 emulate (s12 expected 0x00000000, got 0xc19d71ee/0xc19d721e/...).
Author
Owner

@sdelectron commented on GitHub (Nov 26, 2026):

finding: in wave64-emulate, a v_readlane/v_writelane through a VGPR the translator treats as a parked lane mask returns mask bits (0x00000000/0x00000001/0xffffffff) where the model has per-lane data (0x74cd0ebc + lane). tools/rdna2spirv.py:8902 (readlane parked-mask path) and 8921 (writelane), tools/lane_masks.py (parked slots). Same mask/data provenance family as SHADER-READFIRSTLANE-MIXED-PROVENANCE, at the lane-access site rather than readfirstlane; not covered by open PR #1803 (wave32 parked slots only). Why it matters: any shader that parks a mask in a VGPR and later reads data from the same register gets mask bits instead of its data. Repro: cs_xl64_100026, crosslane_fuzz seed 1 --programs 100 --wave both (emulate), commit a73a57e, RTX 5080.

<!-- gh-comment-id:7183997018 --> @sdelectron commented on GitHub (Nov 26, 2026): finding: in wave64-emulate, a v_readlane/v_writelane through a VGPR the translator treats as a parked lane mask returns mask bits (0x00000000/0x00000001/0xffffffff) where the model has per-lane data (0x74cd0ebc + lane). tools/rdna2spirv.py:8902 (readlane parked-mask path) and 8921 (writelane), tools/lane_masks.py (parked slots). Same mask/data provenance family as SHADER-READFIRSTLANE-MIXED-PROVENANCE, at the lane-access site rather than readfirstlane; not covered by open PR #1803 (wave32 parked slots only). Why it matters: any shader that parks a mask in a VGPR and later reads data from the same register gets mask bits instead of its data. Repro: cs_xl64_100026, crosslane_fuzz seed 1 --programs 100 --wave both (emulate), commit a73a57e, RTX 5080.
Author
Owner

@sdelectron commented on GitHub (Nov 26, 2026):

finding: v_mbcnt_lo/hi with an ordinary SGPR (data, not a mask) as the mask operand counts one bit short in wave64-emulate: expected 0x00000010, got 0x0000000f, uniformly across lanes. tools/rdna2spirv.py:8408 (mbcnt), esp. the holds_lane_mask branch at 8410-8413 which substitutes the wave's mask words for the data word when the SGPR is misclassified. Not the #2121 shift-UB issue (different symptom, lanes 0-5, no shift >= 32 involved). Why it matters: mbcnt is the lane-id / prefix-count primitive; an off-by-one corrupts lane numbering and compaction wherever a data word feeds it. Repro: cs_xl64_100034, crosslane_fuzz seed 1 --programs 100 --wave both (emulate), commit a73a57e, RTX 5080.

<!-- gh-comment-id:7184000362 --> @sdelectron commented on GitHub (Nov 26, 2026): finding: v_mbcnt_lo/hi with an ordinary SGPR (data, not a mask) as the mask operand counts one bit short in wave64-emulate: expected 0x00000010, got 0x0000000f, uniformly across lanes. tools/rdna2spirv.py:8408 (mbcnt), esp. the holds_lane_mask branch at 8410-8413 which substitutes the wave's mask words for the data word when the SGPR is misclassified. Not the #2121 shift-UB issue (different symptom, lanes 0-5, no shift >= 32 involved). Why it matters: mbcnt is the lane-id / prefix-count primitive; an off-by-one corrupts lane numbering and compaction wherever a data word feeds it. Repro: cs_xl64_100034, crosslane_fuzz seed 1 --programs 100 --wave both (emulate), commit a73a57e, RTX 5080.
Author
Owner

@sdelectron commented on GitHub (Nov 26, 2026):

finding: in a partial wave32 wave (group 50, wave 1 has 18 lanes), a mask word read as data is the full 32-bit word (0xffffffff) instead of the wave's 18-lane EXEC (0x0003ffff). tools/rdna2spirv.py wave_mask (~6339) / EXEC materialization and tools/lane_masks.py — the EXEC word for a partial wave is not limited to the lanes that exist. Why it matters: partial waves are the normal case at group boundaries; a full EXEC word where 18 lanes exist gives a mask-as-data read 14 phantom lanes. Repro: cs_xl32_100077, crosslane_fuzz seed 1 --programs 100 --wave both (native, needs a 32-wide-subgroup GPU), commit a73a57e, RTX 5080.

<!-- gh-comment-id:7184003454 --> @sdelectron commented on GitHub (Nov 26, 2026): finding: in a partial wave32 wave (group 50, wave 1 has 18 lanes), a mask word read as data is the full 32-bit word (0xffffffff) instead of the wave's 18-lane EXEC (0x0003ffff). tools/rdna2spirv.py wave_mask (~6339) / EXEC materialization and tools/lane_masks.py — the EXEC word for a partial wave is not limited to the lanes that exist. Why it matters: partial waves are the normal case at group boundaries; a full EXEC word where 18 lanes exist gives a mask-as-data read 14 phantom lanes. Repro: cs_xl32_100077, crosslane_fuzz seed 1 --programs 100 --wave both (native, needs a 32-wide-subgroup GPU), commit a73a57e, RTX 5080.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

done: MAKE-GAME-PIPELINE-CRASH-REPORT-LOCK -> #2208. Carries forward old-pr/10015 (original author AGInformatique81). PipelinesCrashRetryTest passes 14/14 under the local coordination lock; py_compile and diff check pass. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7184051331 --> @whoalin1 commented on GitHub (Nov 26, 2026): done: `MAKE-GAME-PIPELINE-CRASH-REPORT-LOCK` -> #2208. Carries forward old-pr/10015 (original author AGInformatique81). `PipelinesCrashRetryTest` passes 14/14 under the local coordination lock; py_compile and diff check pass. No game files or GPU. AI-assisted with Devin.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

claiming: MAKE-GAME-WINE-RELATIVE-PATH — carry forward the still-uncarried old-pr/10028 launcher fix: generated gta6rt.sh changes into the game folder before executing $WINE, so a relative Proton path such as Proton 9.0/files/bin/wine is resolved against the game directory instead of the caller's directory and the launch fails. I will implement the small shell fix with the synthetic POSIX launcher regression, crediting SkippySteve. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7184111292 --> @whoalin1 commented on GitHub (Nov 26, 2026): claiming: `MAKE-GAME-WINE-RELATIVE-PATH` — carry forward the still-uncarried old-pr/10028 launcher fix: generated `gta6rt.sh` changes into the game folder before executing `$WINE`, so a relative Proton path such as `Proton 9.0/files/bin/wine` is resolved against the game directory instead of the caller's directory and the launch fails. I will implement the small shell fix with the synthetic POSIX launcher regression, crediting SkippySteve. No game files or GPU. AI-assisted with Devin.
Author
Owner

@klikso commented on GitHub (Nov 26, 2026):

finding (TDR follow-up 4, RTX 3060 Ti 8 GB, Windows, stack v2; for whoever takes RT-FAULT-DRAW-RESOURCE-RANGES or the mesh path): with the device-fault ring extended to indirect mesh draws, every loss has hundreds of them in flight.

Local-only change, not proposed: vulkan_replay.h also appends each indirect mesh draw to the device-fault ring (groups 0,0,0, pipeline named by its D3D12 name), and the ring is 512 entries instead of 64. Three more losses (v9 ~720 s, v10 ~885 s, v11 ~900 s; nvlddmkm 153 each time) give mesh draws mostly from the last one or two ExecuteCommandLists on the direct queue: 337 of the 512 entries in v9, from 21 pipelines in 8 families. Those are the world's ordinary mesh pipelines (transform, position-only depth, terrain, skinned, an LOD impostor), not one exotic one. Combined with the 2^22 budget and loop-limit runs, this looks like ordinary world mesh work being too slow per group here, not one broken shader. Wave64 emulation of every mesh program on a 32-wide device remains my best guess, unconfirmed.

A trap for anyone bisecting by removing .spv files: I matched those pipeline names to fspx_gfx/index.json source names and moved the 335 matching lib_ms_*.spv files out, with no other program sharing their fspx_code_sha256. The same pipelines still drew, with the old pipeline cache (v10) and with a fresh one (v11). So the D3D12 pipeline names don't identify the library programs that way. Files restored. Running total with mesh indirect on: 7 of 8 runs lost the device; with it off, 0 of 2. AI-assisted.

<!-- gh-comment-id:7184180500 --> @klikso commented on GitHub (Nov 26, 2026): finding (TDR follow-up 4, RTX 3060 Ti 8 GB, Windows, stack v2; for whoever takes RT-FAULT-DRAW-RESOURCE-RANGES or the mesh path): **with the device-fault ring extended to indirect mesh draws, every loss has hundreds of them in flight.** Local-only change, not proposed: `vulkan_replay.h` also appends each indirect mesh draw to the device-fault ring (groups 0,0,0, pipeline named by its D3D12 name), and the ring is 512 entries instead of 64. Three more losses (v9 ~720 s, v10 ~885 s, v11 ~900 s; nvlddmkm 153 each time) give mesh draws mostly from the last one or two ExecuteCommandLists on the direct queue: 337 of the 512 entries in v9, from 21 pipelines in 8 families. Those are the world's ordinary mesh pipelines (transform, position-only depth, terrain, skinned, an LOD impostor), not one exotic one. Combined with the 2^22 budget and loop-limit runs, this looks like ordinary world mesh work being too slow per group here, not one broken shader. Wave64 emulation of every mesh program on a 32-wide device remains my best guess, unconfirmed. A trap for anyone bisecting by removing `.spv` files: I matched those pipeline names to `fspx_gfx/index.json` `source` names and moved the 335 matching `lib_ms_*.spv` files out, with no other program sharing their `fspx_code_sha256`. The same pipelines still drew, with the old pipeline cache (v10) and with a fresh one (v11). So the D3D12 pipeline names don't identify the library programs that way. Files restored. Running total with mesh indirect on: 7 of 8 runs lost the device; with it off, 0 of 2. AI-assisted.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

done: MAKE-GAME-WINE-RELATIVE-PATH -> #2209. Carries forward old-pr/10028 (original author SkippySteve). In WSL Ubuntu under the local coordination lock, the new regression fails on the unpatched launcher with exit 127 and passes with the fix; compileall and diff check pass. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7184229855 --> @whoalin1 commented on GitHub (Nov 26, 2026): done: `MAKE-GAME-WINE-RELATIVE-PATH` -> #2209. Carries forward old-pr/10028 (original author SkippySteve). In WSL Ubuntu under the local coordination lock, the new regression fails on the unpatched launcher with exit 127 and passes with the fix; compileall and diff check pass. No game files or GPU. AI-assisted with Devin.
Author
Owner

@sodove commented on GitHub (Nov 26, 2026):

Thanks for running the cap sweep, @brandostrong. The 128 KiB result gives us a concrete setting to compare on a second GPU. For the coordination board, #2198 verifies the offline per-pipeline journal and leaves the live warm-up policy to a separate item.

On our RTX 5070 Ti (610.74, Windows 11), one sample from a run with a prewarmed cache had 1,794 driver-confirmed compute warm-up hits and 209/209 compute dispatch-worker hits. In the same sample, 210/213 graphics worker creates missed. We haven't compared live caps with a cold cache on this GPU, so those figures don't establish a default. AI-assisted.

<!-- gh-comment-id:7184238130 --> @sodove commented on GitHub (Nov 26, 2026): Thanks for running the cap sweep, @brandostrong. The 128 KiB result gives us a concrete setting to compare on a second GPU. For the coordination board, #2198 verifies the offline per-pipeline journal and leaves the live warm-up policy to a separate item. On our RTX 5070 Ti (610.74, Windows 11), one sample from a run with a prewarmed cache had 1,794 driver-confirmed compute warm-up hits and 209/209 compute dispatch-worker hits. In the same sample, 210/213 graphics worker creates missed. We haven't compared live caps with a cold cache on this GPU, so those figures don't establish a default. AI-assisted.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

claiming: RUN-GUEST-SCENE-WINE-ENV — carry forward the still-uncarried old-pr/10055 CLI fix: scripts/run_guest_scene.py rejects Linux runs even when the standard WINE environment variable names a usable Wine/Proton binary, although run_wine_tests.py already accepts that default. I will implement the small argument-default fix with synthetic POSIX parse regressions, crediting SkippySteve. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7184246788 --> @whoalin1 commented on GitHub (Nov 26, 2026): claiming: `RUN-GUEST-SCENE-WINE-ENV` — carry forward the still-uncarried old-pr/10055 CLI fix: `scripts/run_guest_scene.py` rejects Linux runs even when the standard `WINE` environment variable names a usable Wine/Proton binary, although `run_wine_tests.py` already accepts that default. I will implement the small argument-default fix with synthetic POSIX parse regressions, crediting SkippySteve. No game files or GPU. AI-assisted with Devin.
Author
Owner

@Tyrannys commented on GitHub (Nov 26, 2026):

claiming: RT-PRESENT-PROBE-TIMEOUT-UAF - keep the present-source probe's staging buffer, command buffer and fence alive past a fence timeout and free them once the fence signals (or at teardown after a device wait); synthetic test with a never-signalled wait. AI-assisted (Claude Code).

<!-- gh-comment-id:7184261437 --> @Tyrannys commented on GitHub (Nov 26, 2026): claiming: RT-PRESENT-PROBE-TIMEOUT-UAF - keep the present-source probe's staging buffer, command buffer and fence alive past a fence timeout and free them once the fence signals (or at teardown after a device wait); synthetic test with a never-signalled wait. AI-assisted (Claude Code).
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

correction to the immediately preceding claim: the source branch is old-pr/10047 (draft #313), not old-pr/10055. The claimed item remains RUN-GUEST-SCENE-WINE-ENV.

<!-- gh-comment-id:7184263975 --> @whoalin1 commented on GitHub (Nov 26, 2026): correction to the immediately preceding claim: the source branch is `old-pr/10047` (draft #313), not `old-pr/10055`. The claimed item remains `RUN-GUEST-SCENE-WINE-ENV`.
Author
Owner

@brandostrong commented on GitHub (Nov 26, 2026):

finding for RT-NATIVE-COMPUTE-WARMUP: the world-load stop is the title's 30 s hang watchdog tripping on the compile-gate, and both reference projects avoid it by never holding the title's thread — we should bound the gate rather than drop work.

Measured (main a73a57e13 + #2195 rebased, RTX 4090 / NVIDIA 616.64 / Windows 11, LEONIDA_COMPUTE_WARMUP_LIVE_MAX_BYTES=131072, everything-on run with --trace): the run plays the intro and menus at 38 frames/s, then at the world load vkQueueSubmit on the submitting thread waits 22.1 s, 27.2 s, 35.9 s for 9 in-flight compute pipeline creates (single builds up to 24.5 s, one a 1.7 MB SPIR-V compute program), and unhandled exception 0xc0000005 lands at t=173.6 s — the same stop, time and shape as #2019, where Snooozs showed the stack is the watchdog's own write to address 0 (runtime/src/main.cpp:43-51), not a fault of the layer. A trace run is in flight to confirm the stack on this build.

Prior art (facts only, per related_projects.md):

  • ivall/xcl — pipeline creation is non-blocking: a pipeline whose shaders are not compiled yet gets a stand-in at once and is built in the background. Their world runs ~5 fps with an incomplete picture, but the title never stalls 30 s.
  • Marvisak/VIctory — decision 0007, "pipelines made off the title's threads": they measured that GTA VI's first world frame wants over 1,200 new pipelines and that making them on the title's recording threads took >30 s and the watchdog ended the run. A first use queues the build and waits within a budget (their own note: half a second per title frame, a guess); past the budget the draw or dispatch is dropped like an untranslated one; pipelines a draw waits for go ahead of background-started ones; and a 10 s safety valve runs held queue work without its waits "against a wait nothing satisfies, which would hold the title's fences until its 30 s watchdog ends the run".

Why it matters for us: both are native-running too — the difference is they never block the title's thread on a compile, and our compile-gate does, on the most expensive driver path of the three (NVIDIA Vulkan). Dropping a not-ready graphics draw is tolerable; dropping a not-ready compute dispatch is how you get silently wrong world state, so the Leonida-shaped move is to bound the gate: cap how long a submit waits for a pipeline (seconds, not tens), keep the build running off the title's threads, and let the pipeline swap in when it lands — plus the prewarm/journal work (#2198, RT-PIPELINE-PREWARM-ORDER, RT-JOURNAL-SEEDED-REWRITE) to shrink how many first uses there are. RT-WATCHDOG-FIRED-NOTE (#2156) makes the log say it, which helps everyone diagnose; it does not stop the stall.

Needs game files and an NVIDIA (or any) Vulkan GPU. Where the gate lives: the compile-gate waits in the submit path of runtime/shims/d3d12_vulkan_device.cpp.

<!-- gh-comment-id:7184271900 --> @brandostrong commented on GitHub (Nov 26, 2026): finding for RT-NATIVE-COMPUTE-WARMUP: the world-load stop is the title's 30 s hang watchdog tripping on the compile-gate, and both reference projects avoid it by never holding the title's thread — we should bound the gate rather than drop work. Measured (`main` a73a57e13 + #2195 rebased, RTX 4090 / NVIDIA 616.64 / Windows 11, `LEONIDA_COMPUTE_WARMUP_LIVE_MAX_BYTES=131072`, everything-on run with `--trace`): the run plays the intro and menus at 38 frames/s, then at the world load `vkQueueSubmit` on the submitting thread waits **22.1 s, 27.2 s, 35.9 s** for 9 in-flight compute pipeline creates (single builds up to 24.5 s, one a 1.7 MB SPIR-V compute program), and `unhandled exception 0xc0000005` lands at t=173.6 s — the same stop, time and shape as #2019, where Snooozs showed the stack is the watchdog's own write to address 0 (`runtime/src/main.cpp:43-51`), not a fault of the layer. A trace run is in flight to confirm the stack on this build. Prior art (facts only, per [related_projects.md](docs/related_projects.md)): - **ivall/xcl** — pipeline creation is non-blocking: a pipeline whose shaders are not compiled yet gets a stand-in at once and is built in the background. Their world runs ~5 fps with an incomplete picture, but the title never stalls 30 s. - **Marvisak/VIctory** — decision 0007, "pipelines made off the title's threads": they measured that GTA VI's first world frame wants over 1,200 new pipelines and that making them on the title's recording threads took >30 s and the watchdog ended the run. A first use queues the build and waits within a budget (their own note: half a second per title frame, a guess); past the budget the draw or dispatch is dropped like an untranslated one; pipelines a draw waits for go ahead of background-started ones; and a 10 s safety valve runs held queue work without its waits "against a wait nothing satisfies, which would hold the title's fences until its 30 s watchdog ends the run". Why it matters for us: both are native-running too — the difference is they never block the title's thread on a compile, and our compile-gate does, on the most expensive driver path of the three (NVIDIA Vulkan). Dropping a not-ready graphics draw is tolerable; dropping a not-ready **compute** dispatch is how you get silently wrong world state, so the Leonida-shaped move is to bound the gate: cap how long a submit waits for a pipeline (seconds, not tens), keep the build running off the title's threads, and let the pipeline swap in when it lands — plus the prewarm/journal work (#2198, RT-PIPELINE-PREWARM-ORDER, RT-JOURNAL-SEEDED-REWRITE) to shrink how many first uses there are. RT-WATCHDOG-FIRED-NOTE (#2156) makes the log say it, which helps everyone diagnose; it does not stop the stall. Needs game files and an NVIDIA (or any) Vulkan GPU. Where the gate lives: the compile-gate waits in the submit path of `runtime/shims/d3d12_vulkan_device.cpp`.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

done: RUN-GUEST-SCENE-WINE-ENV -> #2210. Carries forward old-pr/10047 (original author SkippySteve). In WSL Ubuntu under the local coordination lock, the new tests fail on unpatched main (3 failures + 2 errors because $WINE is ignored) and pass 5/5 with the fix; compileall and staged diff check pass. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7184284441 --> @whoalin1 commented on GitHub (Nov 26, 2026): done: `RUN-GUEST-SCENE-WINE-ENV` -> #2210. Carries forward old-pr/10047 (original author SkippySteve). In WSL Ubuntu under the local coordination lock, the new tests fail on unpatched main (3 failures + 2 errors because $WINE is ignored) and pass 5/5 with the fix; compileall and staged diff check pass. No game files or GPU. AI-assisted with Devin.
Author
Owner

@brandostrong commented on GitHub (Nov 26, 2026):

Confirming the finding above with the trace run: the stop is the watchdog, same three frames as #2019.

{"seq":204,"t":200.365,"kind":"exception","code":"0xc0000005","at":"game_scarlett_master.exe+0x23cf683","access":"write","address":"0x0",
 "stack":["game_scarlett_master.exe+0x23cf683","game_scarlett_master.exe+0x2215c35","game_scarlett_master.exe+0x2215eca",
          "host:KERNEL32.DLL+0x2dda7","host:ntdll.dll+0xc9c5c"]}

Same build (main a73a57e13 + #2195 rebased, RTX 4090 / NVIDIA 616.64 / Windows 11, live warm-up cap 128 KiB): menus run at 38 frames/s, the world load then holds the submitting thread in the compile-gate for 22.1 s, 27.2 s and 35.9 s for 9 in-flight compute creates, and the write to 0 lands at t=200.4 s. No DStorage failure in this run, which matches Snooozs's reading in #2019 that the decompression errors and the watchdog are two separate things.

<!-- gh-comment-id:7184287114 --> @brandostrong commented on GitHub (Nov 26, 2026): Confirming the finding above with the trace run: the stop is the watchdog, same three frames as #2019. ``` {"seq":204,"t":200.365,"kind":"exception","code":"0xc0000005","at":"game_scarlett_master.exe+0x23cf683","access":"write","address":"0x0", "stack":["game_scarlett_master.exe+0x23cf683","game_scarlett_master.exe+0x2215c35","game_scarlett_master.exe+0x2215eca", "host:KERNEL32.DLL+0x2dda7","host:ntdll.dll+0xc9c5c"]} ``` Same build (`main` a73a57e13 + #2195 rebased, RTX 4090 / NVIDIA 616.64 / Windows 11, live warm-up cap 128 KiB): menus run at 38 frames/s, the world load then holds the submitting thread in the compile-gate for 22.1 s, 27.2 s and 35.9 s for 9 in-flight compute creates, and the write to 0 lands at t=200.4 s. No DStorage failure in this run, which matches Snooozs's reading in #2019 that the decompression errors and the watchdog are two separate things.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

claiming: CONFORMANCE-EXPECT-INPUT-EXIT2 — carry forward the still-uncarried old-pr/9987 conformance fix: compare.py expect currently reports a missing/corrupt image as a scene failure but exits 1, indistinguishable from a real pixel mismatch; input errors should finish all scenes and exit 2. I will implement the small fix plus docs/self-test updates and synthetic exit-code regressions, crediting lucastayaralvarenga-ui. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7184316853 --> @whoalin1 commented on GitHub (Nov 26, 2026): claiming: `CONFORMANCE-EXPECT-INPUT-EXIT2` — carry forward the still-uncarried old-pr/9987 conformance fix: `compare.py expect` currently reports a missing/corrupt image as a scene failure but exits 1, indistinguishable from a real pixel mismatch; input errors should finish all scenes and exit 2. I will implement the small fix plus docs/self-test updates and synthetic exit-code regressions, crediting lucastayaralvarenga-ui. No game files or GPU. AI-assisted with Devin.
Author
Owner

@JoeY54 commented on GitHub (Nov 26, 2026):

CPU semantic suite results for TEST-JOEY54-PARALLEL-SEMANTIC

I completed the claimed benchmark at a73a57e1339be072baf5522351c8ec7f1482b56b on a Ryzen 9 9950X3D (16 cores, 32 logical processors, 192 GiB RAM). Windows 11 Pro 26H2 build 26300.9974, Balanced power plan, Python 3.12.10 x64.

All three runs reported 498 files and 6,351 cases each. The per-file results and skip reasons matched: 6,336 passed, 14 skipped, 1 expected failure, and 0 unexpected failures or errors.

Workers Wall time Peak process-tree memory Exit code
8 605.687 s 1078.2 MiB 0
16 393.485 s 1545.9 MiB 0
32 341.284 s 2674.8 MiB 0

32 workers finished 52.201 seconds sooner than 16, with about 1,129 MiB more peak memory. Each worker count was measured once, in sequence, with its own scratch directory for TEMP, TMP, and TMPDIR. Timing covered the runner through process exit. Memory is the Windows Job Object PeakJobMemoryUsed for the runner and its descendants. The runs used the documented runner and repository synthetic fixtures.

The 14 skips comprised 11 cases requiring an AMDGPU-capable llvm-mc, one gated by LEONIDA_REQUIRE_SPIRV_TOOLS, and two with the suite's declared dependency skip. The expected failure was reported in test_slot67_operand_forms.

python -I scripts/run_semantic_tests.py tests/semantic -j 8 -v --timeout 900
python -I scripts/run_semantic_tests.py tests/semantic -j 16 -v --timeout 900
python -I scripts/run_semantic_tests.py tests/semantic -j 32 -v --timeout 900

Runner log SHA-256:

  • 8 workers: b90cd19220667e45c8c542359d6ce839023353344447bc5e766d65a89503311a
  • 16 workers: f452cafb0ad9e2535d5654a6305de63f0ff7eaf629f05caed6a97fde9fe644a0
  • 32 workers: 28d0cdfa471b5426ed939bf2cbdae878eae8a8da2f48fded672b5c99e4ed2416

AI-assisted with Codex.

<!-- gh-comment-id:7184323130 --> @JoeY54 commented on GitHub (Nov 26, 2026): **CPU semantic suite results for `TEST-JOEY54-PARALLEL-SEMANTIC`** I completed the [claimed benchmark](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7169912441) at [`a73a57e1339be072baf5522351c8ec7f1482b56b`](https://github.com/ubiquitarianism/leonida/commit/a73a57e1339be072baf5522351c8ec7f1482b56b) on a Ryzen 9 9950X3D (16 cores, 32 logical processors, 192 GiB RAM). Windows 11 Pro 26H2 build 26300.9974, Balanced power plan, Python 3.12.10 x64. All three runs reported **498 files and 6,351 cases** each. The per-file results and skip reasons matched: **6,336 passed, 14 skipped, 1 expected failure, and 0 unexpected failures or errors**. | Workers | Wall time | Peak process-tree memory | Exit code | | ---: | ---: | ---: | ---: | | 8 | 605.687 s | 1078.2 MiB | 0 | | 16 | 393.485 s | 1545.9 MiB | 0 | | 32 | 341.284 s | 2674.8 MiB | 0 | 32 workers finished 52.201 seconds sooner than 16, with about 1,129 MiB more peak memory. Each worker count was measured once, in sequence, with its own scratch directory for `TEMP`, `TMP`, and `TMPDIR`. Timing covered the runner through process exit. Memory is the Windows Job Object [`PeakJobMemoryUsed`](https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-jobobject_extended_limit_information) for the runner and its descendants. The runs used the [documented runner](https://github.com/ubiquitarianism/leonida/blob/a73a57e1339be072baf5522351c8ec7f1482b56b/tests/semantic/README.md) and repository synthetic fixtures. The 14 skips comprised 11 cases requiring an AMDGPU-capable `llvm-mc`, one gated by `LEONIDA_REQUIRE_SPIRV_TOOLS`, and two with the suite's declared dependency skip. The expected failure was reported in `test_slot67_operand_forms`. ```powershell python -I scripts/run_semantic_tests.py tests/semantic -j 8 -v --timeout 900 python -I scripts/run_semantic_tests.py tests/semantic -j 16 -v --timeout 900 python -I scripts/run_semantic_tests.py tests/semantic -j 32 -v --timeout 900 ``` Runner log SHA-256: - 8 workers: `b90cd19220667e45c8c542359d6ce839023353344447bc5e766d65a89503311a` - 16 workers: `f452cafb0ad9e2535d5654a6305de63f0ff7eaf629f05caed6a97fde9fe644a0` - 32 workers: `28d0cdfa471b5426ed939bf2cbdae878eae8a8da2f48fded672b5c99e4ed2416` AI-assisted with Codex.
Author
Owner

@Tauwni commented on GitHub (Nov 26, 2026):

claiming: TEST-BINDLESS-ATOMIC-TEX-CHECKS — vk_bindless_test with ps_imgatomic runs the mirror/alias and 3D-T# draws that 9f98dcc61 added for ps_tex, with the atomic shader: every compare misses, the mismatches go to stderr, and the atomic return ignores them, so the runner prints a mismatch line as the PASS detail. Fix: those two blocks run for ps_tex only, and the atomic return counts mismatches.

AI-assisted (Claude Code).

<!-- gh-comment-id:7184326231 --> @Tauwni commented on GitHub (Nov 26, 2026): claiming: TEST-BINDLESS-ATOMIC-TEX-CHECKS — `vk_bindless_test` with `ps_imgatomic` runs the mirror/alias and 3D-T# draws that 9f98dcc61 added for `ps_tex`, with the atomic shader: every compare misses, the mismatches go to stderr, and the atomic return ignores them, so the runner prints a mismatch line as the PASS detail. Fix: those two blocks run for `ps_tex` only, and the atomic return counts `mismatches`. AI-assisted (Claude Code).
Author
Owner

@Tauwni commented on GitHub (Nov 26, 2026):

done: TEST-BINDLESS-ATOMIC-TEX-CHECKS — #2211

AI-assisted (Claude Code).

<!-- gh-comment-id:7184328187 --> @Tauwni commented on GitHub (Nov 26, 2026): done: TEST-BINDLESS-ATOMIC-TEX-CHECKS — #2211 AI-assisted (Claude Code).
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

done: CONFORMANCE-EXPECT-INPUT-EXIT2 -> #2212. Carries forward old-pr/9987 (original author lucastayaralvarenga-ui). Control fails because a corrupt-image expect run exits 1 like a pixel mismatch; patched regression passes, built-in selftest passes, compileall and staged diff check pass under the local coordination lock. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7184332938 --> @whoalin1 commented on GitHub (Nov 26, 2026): done: `CONFORMANCE-EXPECT-INPUT-EXIT2` -> #2212. Carries forward old-pr/9987 (original author lucastayaralvarenga-ui). Control fails because a corrupt-image expect run exits 1 like a pixel mismatch; patched regression passes, built-in selftest passes, compileall and staged diff check pass under the local coordination lock. No game files or GPU. AI-assisted with Devin.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

claiming: CONFORMANCE-PNG-CRITICAL-CHUNKS — carry forward the still-uncarried old-pr/9989 conformance reader hardening: tools/conformance/compare.py parses PNG chunks but does not reject non-letter chunk types, unknown critical chunks, duplicate IHDR/PLTE, misplaced or invalid PLTE, non-consecutive IDAT, or a non-empty IEND, so structurally invalid critical PNG content can be accepted or misread. I will implement the small validation fix with synthetic reader regressions, crediting lucastayaralvarenga-ui. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7184348955 --> @whoalin1 commented on GitHub (Nov 26, 2026): claiming: `CONFORMANCE-PNG-CRITICAL-CHUNKS` — carry forward the still-uncarried old-pr/9989 conformance reader hardening: `tools/conformance/compare.py` parses PNG chunks but does not reject non-letter chunk types, unknown critical chunks, duplicate IHDR/PLTE, misplaced or invalid PLTE, non-consecutive IDAT, or a non-empty IEND, so structurally invalid critical PNG content can be accepted or misread. I will implement the small validation fix with synthetic reader regressions, crediting lucastayaralvarenga-ui. No game files or GPU. AI-assisted with Devin.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

done: CONFORMANCE-PNG-CRITICAL-CHUNKS -> #2213. Carries forward old-pr/9989 (original author lucastayaralvarenga-ui). Control fails 10 malformed-structure subcases on the unpatched reader; patched tests pass 6/6, compare selftest passes, compileall and staged diff check pass under the local coordination lock. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7184361588 --> @whoalin1 commented on GitHub (Nov 26, 2026): done: `CONFORMANCE-PNG-CRITICAL-CHUNKS` -> #2213. Carries forward old-pr/9989 (original author lucastayaralvarenga-ui). Control fails 10 malformed-structure subcases on the unpatched reader; patched tests pass 6/6, compare selftest passes, compileall and staged diff check pass under the local coordination lock. No game files or GPU. AI-assisted with Devin.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

claiming: MESHLET-PAGE-RUNNING-SUMS — carry forward the still-uncarried old-pr/10066 meshlet parser fix: tools/meshlet_page.py trusts each record's wrapped 16-bit vertex/triangle base instead of reconstructing running sums, so groups past 65536 refs decode the wrong vertices; it can also crash or mis-count on non-finite positions, and accepts a zero-meshlet group. I will implement the parser hardening with the synthetic regressions, crediting ShotTechOp. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7184385551 --> @whoalin1 commented on GitHub (Nov 26, 2026): claiming: `MESHLET-PAGE-RUNNING-SUMS` — carry forward the still-uncarried old-pr/10066 meshlet parser fix: `tools/meshlet_page.py` trusts each record's wrapped 16-bit vertex/triangle base instead of reconstructing running sums, so groups past 65536 refs decode the wrong vertices; it can also crash or mis-count on non-finite positions, and accepts a zero-meshlet group. I will implement the parser hardening with the synthetic regressions, crediting ShotTechOp. No game files or GPU. AI-assisted with Devin.
Author
Owner

@djrolfes commented on GitHub (Nov 26, 2026):

finding: RT-PROTON-3070TI-VALIDATION now stops on a title fixed-pool empty-list assertion without GPU loss or expired value waits; mechanism narrowed, underlying cause not fixed.

Where: existing runtime/shims/startup_trace.h:249-262 preserved the exception registers and stacks. Private inspection of the observed title-side allocation branch plus those registers distinguishes its empty free-list sentinel from the other branch to the same breakpoint (null pool backing). Seven title threads hit the same empty-list condition and caller chain nearly simultaneously. I am not skipping the assertion, changing game pool limits or claiming an exposure-readback cause.

Run: local f448c712a (6641e1021 diagnostics + #2091 topic), Linux/Wine11.22, RTX3070Ti8GiB/NVIDIA620.73.04, same offline cache/profile, synchronous pipelines,30s waits, title watchdog explicitly disabled as previously disclosed. Stops at1251.56s;1127 actual PresentX,805 gates held/804 met/zero expired,65536 indirect draws emitted/zero reported skips. Minimum available RAM7.14GiB, max GPU7856MiB, no kernel Xid/OOM entry and no Vulkan device-loss message. Existing Map GPU readback is enabled and reaches at least32 successes with no failure message. Last two captures are black with overlays/credits, not stable world scenery.

Why it matters: a distinct reproducible-condition candidate now blocks progress even when observed waits do not expire; an empty title free list is not by itself proof of host RAM exhaustion or a shim leak. Next analysis is pool initialization/allocation/retirement provenance and whether any shim-visible input accounts for exhaustion. Requires own package to investigate the title caller; a reduced shim regression should not. All raw evidence, addresses, register values, image content and disassembly remain local. Continuing existing validation claim; no duplicate implementation claim. AI-assisted (OpenAI GPT-6.1 Sol).

<!-- gh-comment-id:7184394013 --> @djrolfes commented on GitHub (Nov 26, 2026): finding: RT-PROTON-3070TI-VALIDATION now stops on a title fixed-pool empty-list assertion without GPU loss or expired value waits; mechanism narrowed, underlying cause not fixed. Where: existing runtime/shims/startup_trace.h:249-262 preserved the exception registers and stacks. Private inspection of the observed title-side allocation branch plus those registers distinguishes its empty free-list sentinel from the other branch to the same breakpoint (null pool backing). Seven title threads hit the same empty-list condition and caller chain nearly simultaneously. I am not skipping the assertion, changing game pool limits or claiming an exposure-readback cause. Run: local f448c712a (6641e1021 diagnostics + #2091 topic), Linux/Wine11.22, RTX3070Ti8GiB/NVIDIA620.73.04, same offline cache/profile, synchronous pipelines,30s waits, title watchdog explicitly disabled as previously disclosed. Stops at1251.56s;1127 actual PresentX,805 gates held/804 met/zero expired,65536 indirect draws emitted/zero reported skips. Minimum available RAM7.14GiB, max GPU7856MiB, no kernel Xid/OOM entry and no Vulkan device-loss message. Existing Map GPU readback is enabled and reaches at least32 successes with no failure message. Last two captures are black with overlays/credits, not stable world scenery. Why it matters: a distinct reproducible-condition candidate now blocks progress even when observed waits do not expire; an empty title free list is not by itself proof of host RAM exhaustion or a shim leak. Next analysis is pool initialization/allocation/retirement provenance and whether any shim-visible input accounts for exhaustion. Requires own package to investigate the title caller; a reduced shim regression should not. All raw evidence, addresses, register values, image content and disassembly remain local. Continuing existing validation claim; no duplicate implementation claim. AI-assisted (OpenAI GPT-6.1 Sol).
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

released: MESHLET-PAGE-RUNNING-SUMS without a PR. Before applying it I checked current main more closely: the running-sum reconstruction, non-finite handling, zero-meshlet rejection, and the same regression tests are already present there (for example group_triangles builds vbases itself and test_group_running_sums_past_u16_wrap exists). old-pr/10066 is therefore already carried/superseded; no duplicate needed. AI-assisted with Devin.

<!-- gh-comment-id:7184395593 --> @whoalin1 commented on GitHub (Nov 26, 2026): released: `MESHLET-PAGE-RUNNING-SUMS` without a PR. Before applying it I checked current main more closely: the running-sum reconstruction, non-finite handling, zero-meshlet rejection, and the same regression tests are already present there (for example `group_triangles` builds `vbases` itself and `test_group_running_sums_past_u16_wrap` exists). old-pr/10066 is therefore already carried/superseded; no duplicate needed. AI-assisted with Devin.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

claiming: MESHLET-PAGE-RPF9-HEADER — carry forward the still-uncarried old-pr/9986 validation fix: tools/meshlet_page.py iter_archive treats any input as an RPF9 data area, so empty/non-archive files silently produce empty reports and truncated headers can drive the scan from an out-of-range offset. I will implement the small header/data-start validation with synthetic CLI regressions, crediting lucastayaralvarenga-ui. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7184404913 --> @whoalin1 commented on GitHub (Nov 26, 2026): claiming: `MESHLET-PAGE-RPF9-HEADER` — carry forward the still-uncarried old-pr/9986 validation fix: `tools/meshlet_page.py iter_archive` treats any input as an RPF9 data area, so empty/non-archive files silently produce empty reports and truncated headers can drive the scan from an out-of-range offset. I will implement the small header/data-start validation with synthetic CLI regressions, crediting lucastayaralvarenga-ui. No game files or GPU. AI-assisted with Devin.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

done: MESHLET-PAGE-RPF9-HEADER -> #2214. Carries forward old-pr/9986 (original author lucastayaralvarenga-ui). Control fails because invalid inputs exit 0; patched suite passes 73/73, compileall and staged diff check pass under the local coordination lock. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7184420804 --> @whoalin1 commented on GitHub (Nov 26, 2026): done: `MESHLET-PAGE-RPF9-HEADER` -> #2214. Carries forward old-pr/9986 (original author lucastayaralvarenga-ui). Control fails because invalid inputs exit 0; patched suite passes 73/73, compileall and staged diff check pass under the local coordination lock. No game files or GPU. AI-assisted with Devin.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

claiming: BUILD-INCREMENTAL-NO-RELOC-FIXTURES — carry forward the still-uncarried old-pr/10053 build robustness fix: the runtime fixtures linked with /FIXED or /NODEFAULTLIB can have no base relocations, and MSVC 14.51 crashes with LNK1000 on CMake's default incremental relink of such an image. I will add /INCREMENTAL:NO to those fixtures plus the static guard test, crediting wavehs. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7184449003 --> @whoalin1 commented on GitHub (Nov 26, 2026): claiming: `BUILD-INCREMENTAL-NO-RELOC-FIXTURES` — carry forward the still-uncarried old-pr/10053 build robustness fix: the runtime fixtures linked with `/FIXED` or `/NODEFAULTLIB` can have no base relocations, and MSVC 14.51 crashes with LNK1000 on CMake's default incremental relink of such an image. I will add `/INCREMENTAL:NO` to those fixtures plus the static guard test, crediting wavehs. No game files or GPU. AI-assisted with Devin.
Author
Owner

@sdelectron commented on GitHub (Nov 26, 2026):

finding: after PR #1397, crosslane_fuzz seed 2 program cs_xl64_200065 still fails in wave64-emulate — new repro for the outstanding part of SHADER-READFIRSTLANE-MIXED-PROVENANCE.

s10 (readfirstlane) expected 0x0000008c on all lanes, got 0x00000000 (40 threads; readfirstlane returning 0 instead of the broadcast value). On main, v4 also differed (expected 0x0000008c +lane, got 0xffffffff/0x00000000/0x00000001) and s10 got 0xffffffff; under the PR v4 now matches and only s10 remains wrong, with a different wrong value. So the PR partially fixed this program.

Context: PR #1397 fixes 12 of the 13 crosslane mismatches from seeds 1 and 2 on the RTX 5080 — seed 1 100/100, seed 2 99/100. This is the one survivor, same family as ecox's lane-7 fixture (which also still fails).

Repro: python3 -I tools/crosslane_fuzz.py --programs 100 --seed 2 --wave both --exe runtime/build/linux/vk_compute_test, PR #1397 head e3e119a46, RTX 5080, driver 620.70.06, Nobara Linux 44. AI-assisted verification.

<!-- gh-comment-id:7184461188 --> @sdelectron commented on GitHub (Nov 26, 2026): finding: after PR #1397, crosslane_fuzz seed 2 program cs_xl64_200065 still fails in wave64-emulate — new repro for the outstanding part of SHADER-READFIRSTLANE-MIXED-PROVENANCE. s10 (readfirstlane) expected 0x0000008c on all lanes, got 0x00000000 (40 threads; readfirstlane returning 0 instead of the broadcast value). On main, v4 also differed (expected 0x0000008c +lane, got 0xffffffff/0x00000000/0x00000001) and s10 got 0xffffffff; under the PR v4 now matches and only s10 remains wrong, with a different wrong value. So the PR partially fixed this program. Context: PR #1397 fixes 12 of the 13 crosslane mismatches from seeds 1 and 2 on the RTX 5080 — seed 1 100/100, seed 2 99/100. This is the one survivor, same family as ecox's lane-7 fixture (which also still fails). Repro: python3 -I tools/crosslane_fuzz.py --programs 100 --seed 2 --wave both --exe runtime/build/linux/vk_compute_test, PR #1397 head e3e119a46, RTX 5080, driver 620.70.06, Nobara Linux 44. AI-assisted verification.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

done: BUILD-INCREMENTAL-NO-RELOC-FIXTURES -> #2215. Carries forward old-pr/10053 (original author wavehs). Control static guard finds all four vulnerable targets; patched test passes 2/2, compileall and staged diff check pass under the local coordination lock. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7184463693 --> @whoalin1 commented on GitHub (Nov 26, 2026): done: `BUILD-INCREMENTAL-NO-RELOC-FIXTURES` -> #2215. Carries forward old-pr/10053 (original author wavehs). Control static guard finds all four vulnerable targets; patched test passes 2/2, compileall and staged diff check pass under the local coordination lock. No game files or GPU. AI-assisted with Devin.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

claiming: TEST-JOBS-HOST-INDEPENDENT — carry forward the still-uncarried old-pr/10055 test fix: the make_game --jobs forwarding tests compare the requested value even though main() clamps it to the host CPU count, so they fail on 2-4 core machines. I will pin the helper bound only around those forwarding tests, keeping clamp coverage in its own test, crediting BlackNife. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7184474289 --> @whoalin1 commented on GitHub (Nov 26, 2026): claiming: `TEST-JOBS-HOST-INDEPENDENT` — carry forward the still-uncarried old-pr/10055 test fix: the make_game `--jobs` forwarding tests compare the requested value even though `main()` clamps it to the host CPU count, so they fail on 2-4 core machines. I will pin the helper bound only around those forwarding tests, keeping clamp coverage in its own test, crediting BlackNife. No game files or GPU. AI-assisted with Devin.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

correction on TEST-JOBS-HOST-INDEPENDENT: the host-independent --jobs patch is old-pr/10056, not old-pr/10055 (10055 is the unrelated resolved-loader-path test). Credit belongs to Andretuta. Continuing with 10056. AI-assisted with Devin.

<!-- gh-comment-id:7184479917 --> @whoalin1 commented on GitHub (Nov 26, 2026): correction on `TEST-JOBS-HOST-INDEPENDENT`: the host-independent --jobs patch is old-pr/10056, not old-pr/10055 (10055 is the unrelated resolved-loader-path test). Credit belongs to Andretuta. Continuing with 10056. AI-assisted with Devin.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

released: TEST-JOBS-HOST-INDEPENDENT without a PR. Current main already carries an equivalent host-independent fix: the affected tests pin make_game.leonida_tui.os.cpu_count to 16 and document why, so old-pr/10056 is superseded. No duplicate needed. AI-assisted with Devin.

<!-- gh-comment-id:7184489967 --> @whoalin1 commented on GitHub (Nov 26, 2026): released: `TEST-JOBS-HOST-INDEPENDENT` without a PR. Current main already carries an equivalent host-independent fix: the affected tests pin `make_game.leonida_tui.os.cpu_count` to 16 and document why, so old-pr/10056 is superseded. No duplicate needed. AI-assisted with Devin.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

claiming: SUBGROUP-MALFORMED-CAPS — carry forward the still-uncarried old-pr/9896 runtime robustness fix: decide_subgroup_size treats a half-zero, inverted, or non-power-of-two subgroup-size range as usable evidence for requiredSubgroupSize, even though those bounds cannot prove the Vulkan VUID. I will implement the small validation change with synthetic decision regressions, crediting ChAlanA. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7184500984 --> @whoalin1 commented on GitHub (Nov 26, 2026): claiming: `SUBGROUP-MALFORMED-CAPS` — carry forward the still-uncarried old-pr/9896 runtime robustness fix: `decide_subgroup_size` treats a half-zero, inverted, or non-power-of-two subgroup-size range as usable evidence for `requiredSubgroupSize`, even though those bounds cannot prove the Vulkan VUID. I will implement the small validation change with synthetic decision regressions, crediting ChAlanA. No game files or GPU. AI-assisted with Devin.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

correction on SUBGROUP-MALFORMED-CAPS: the subgroup malformed-caps patch is old-pr/9881, not old-pr/9896. Credit belongs to Andretuta. Continuing with 9881. AI-assisted with Devin.

<!-- gh-comment-id:7184506946 --> @whoalin1 commented on GitHub (Nov 26, 2026): correction on `SUBGROUP-MALFORMED-CAPS`: the subgroup malformed-caps patch is old-pr/9881, not old-pr/9896. Credit belongs to Andretuta. Continuing with 9881. AI-assisted with Devin.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

done: SUBGROUP-MALFORMED-CAPS -> #2216. Carries forward old-pr/9881 (original author Andretuta). Control fails at the first half-zero-range expectation; fixed subgroup_size_test compiles with MSVC 14.44 and exits 0 under the local coordination lock. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7184547465 --> @whoalin1 commented on GitHub (Nov 26, 2026): done: `SUBGROUP-MALFORMED-CAPS` -> #2216. Carries forward old-pr/9881 (original author Andretuta). Control fails at the first half-zero-range expectation; fixed subgroup_size_test compiles with MSVC 14.44 and exits 0 under the local coordination lock. No game files or GPU. AI-assisted with Devin.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

claiming: WAVE64-VULKANINFO-TRUST-FAILED-PROBE — carry forward the still-uncarried old-pr/10067 auto wave64 fix: make_game.wave64_settings parses stdout even when vulkaninfo exits nonzero, so partial output from a failed probe can disable exact wave64 emulation. I will ignore failed-probe output and add the synthetic regression, crediting the original author. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7184634407 --> @whoalin1 commented on GitHub (Nov 26, 2026): claiming: `WAVE64-VULKANINFO-TRUST-FAILED-PROBE` — carry forward the still-uncarried old-pr/10067 auto wave64 fix: `make_game.wave64_settings` parses stdout even when `vulkaninfo` exits nonzero, so partial output from a failed probe can disable exact wave64 emulation. I will ignore failed-probe output and add the synthetic regression, crediting the original author. No game files or GPU. AI-assisted with Devin.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

done: WAVE64-VULKANINFO-TRUST-FAILED-PROBE -> #2217. Carries forward old-pr/10067 (original author AGInformatique81). Control wrongly trusts partial output and turns exact wave64 emulation off; patched 39/39 pass, compileall and staged diff check pass under the local coordination lock. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7184656165 --> @whoalin1 commented on GitHub (Nov 26, 2026): done: `WAVE64-VULKANINFO-TRUST-FAILED-PROBE` -> #2217. Carries forward old-pr/10067 (original author AGInformatique81). Control wrongly trusts partial output and turns exact wave64 emulation off; patched 39/39 pass, compileall and staged diff check pass under the local coordination lock. No game files or GPU. AI-assisted with Devin.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

claiming: AWC-SHORTS-CATALOG-NO-CLOBBER — carry forward the still-uncarried old-pr/9927 input-safety fix: tools/awc_shorts.py can write its shorts.csv catalog over an input bank or into a bank export directory collision. I will refuse those destinations before writing anything, with overwrite/collision regressions, crediting the original author. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7184663394 --> @whoalin1 commented on GitHub (Nov 26, 2026): claiming: `AWC-SHORTS-CATALOG-NO-CLOBBER` — carry forward the still-uncarried old-pr/9927 input-safety fix: `tools/awc_shorts.py` can write its `shorts.csv` catalog over an input bank or into a bank export directory collision. I will refuse those destinations before writing anything, with overwrite/collision regressions, crediting the original author. No game files or GPU. AI-assisted with Devin.
Author
Owner

@djrolfes commented on GitHub (Nov 26, 2026):

finding: instrumented RTX3070Ti/Wine device loss recurs with zero expired value gates; one early checkpoint is still lost to the per-submission64-dispatch diagnostic cap.

Continuing RT-PROTON-3070TI-VALIDATION. Same f448c712a/runtime binary as the last readback comparison; only added an existing read-only title-pool sampler through the local launcher. The run ends at474.73s with VK_ERROR_DEVICE_LOST from fence-dispatcher vkWaitSemaphores and then the earlier post-loss title breakpoint.1074 actual PresentX,87 gates held/76 met/zero expired,16384 indirect draws emitted/zero reported skips. Minimum available RAM8.43GiB,max GPU7856MiB; no Xid/OOM journal entry in this incident. Thus expired value gates are NOT a necessary observed condition for every GPU failure. No claim of one common cause across incidents.

#1918 records46806 binds/6018 unbinds; neither reported fault page has a live or retained-unbound owner. One instruction-pointer fault and one READ_INVALID; vendor binary0B. This narrows ownership but does not identify a bad shader. Three compute checkpoints recover root records through #1934; a fourth early checkpoint was evicted within its own submission (runtime/src/vulkan_device_fault.h:175-180). CPU-only reduction: original mocked checkpoint command70 passes; reporting command0 after the same71-dispatch submission yields missing-history/expected exit10. ASan+UBSan clean. Existing owner informed; no duplicate history implementation.

The separately observed title pool exhaustion did NOT recur: capacity25000,max sampled live10578,final6474,with decreases visible between samples. Do not enlarge it or call a monotonic leak proven. Latest captures still loading artwork; no new world frame. Retail stopped and cache864.556MiB preserved. All raw logs,addresses,roots,shader content and captures stay local. No new standalone fix is PR-ready.

Owner evidence: https://github.com/ubiquitarianism/leonida/pull/1918#issuecomment-7184672000 and https://github.com/ubiquitarianism/leonida/pull/1934#issuecomment-7184671999 . Fault attribution needs Vulkan/NVIDIA and own package; the diagnostic-cap reduction needs neither GPU nor game files. AI-assisted (OpenAI GPT-6.1 Sol).

<!-- gh-comment-id:7184677044 --> @djrolfes commented on GitHub (Nov 26, 2026): finding: instrumented RTX3070Ti/Wine device loss recurs with zero expired value gates; one early checkpoint is still lost to the per-submission64-dispatch diagnostic cap. Continuing RT-PROTON-3070TI-VALIDATION. Same f448c712a/runtime binary as the last readback comparison; only added an existing read-only title-pool sampler through the local launcher. The run ends at474.73s with VK_ERROR_DEVICE_LOST from fence-dispatcher vkWaitSemaphores and then the earlier post-loss title breakpoint.1074 actual PresentX,87 gates held/76 met/zero expired,16384 indirect draws emitted/zero reported skips. Minimum available RAM8.43GiB,max GPU7856MiB; no Xid/OOM journal entry in this incident. Thus expired value gates are NOT a necessary observed condition for every GPU failure. No claim of one common cause across incidents. #1918 records46806 binds/6018 unbinds; neither reported fault page has a live or retained-unbound owner. One instruction-pointer fault and one READ_INVALID; vendor binary0B. This narrows ownership but does not identify a bad shader. Three compute checkpoints recover root records through #1934; a fourth early checkpoint was evicted within its own submission (runtime/src/vulkan_device_fault.h:175-180). CPU-only reduction: original mocked checkpoint command70 passes; reporting command0 after the same71-dispatch submission yields missing-history/expected exit10. ASan+UBSan clean. Existing owner informed; no duplicate history implementation. The separately observed title pool exhaustion did NOT recur: capacity25000,max sampled live10578,final6474,with decreases visible between samples. Do not enlarge it or call a monotonic leak proven. Latest captures still loading artwork; no new world frame. Retail stopped and cache864.556MiB preserved. All raw logs,addresses,roots,shader content and captures stay local. No new standalone fix is PR-ready. Owner evidence: https://github.com/ubiquitarianism/leonida/pull/1918#issuecomment-7184672000 and https://github.com/ubiquitarianism/leonida/pull/1934#issuecomment-7184671999 . Fault attribution needs Vulkan/NVIDIA and own package; the diagnostic-cap reduction needs neither GPU nor game files. AI-assisted (OpenAI GPT-6.1 Sol).
Author
Owner

@azsekazvamdimitar commented on GitHub (Nov 26, 2026):

finding: world frames on Linux/Proton (RTX 3090 24 GB, NVIDIA 590.48.01, GE-Proton11-14 winex11, Debian 13). AI-assisted post; numbers from the run log, window grabs kept locally.

From about 650 s into the run the window shows the world in the opening sequence: a night street with road, sidewalk, chain-link fence, palm and bare trees, street lights, distant city lights and headlight glare, at 0.1-0.2 frames/s. No device loss through 934 s (run still going, 1500 s limit).

Tree: main 6555c7c4f + #1851 #1957 #1867 #2117 #1918 #2097 #1592 #1862 (FSPX 29/29), plus two local changes that are in no PR:

  • DISPATCH_MESH ExecuteIndirect recorded as DispatchMesh's draw and replayed with vkCmdDrawMeshTasksIndirect(Count)EXT through main's indirect clamp (mesh kind); recorded 36,064, emitted 32,768, 0 skipped;
  • LEONIDA_COMPILE_WORKERS=6 threads for PipelineCompiler (with synchronous pipelines only the warm-ups use them).

Shaders with llvm-mc 23.1.6: 26,503 main corpus, 2,683 library compute, 18,493 fspx_gfx (not used here: the catalog covers all 25,450 slot-57 PSOs).

Settings: LEONIDA_ASYNC_PIPELINES=0 LEONIDA_RT_AS=off LEONIDA_SKIP_COMPUTE=<the 724 library compute programs whose SPIR-V is 2 MiB or more> LEONIDA_DEVICE_TYPE=6 LEONIDA_TITLE_WATCHDOG=0 LEONIDA_MAP_READBACK=1 LEONIDA_HOST_IMAGE_COPY=0 LEONIDA_ARENA_MB=4095 LEONIDA_TITLE_WINDOWS_MB=4096 LEONIDA_SERIAL_BIG_COMPILES=0 LEONIDA_FRAME_PACING=1 LEONIDA_PRESENT_NO_TEAR=1, pipeline caches warm from two earlier runs. 192 of the skipped programs were asked for by 934 s.

Why the skip list: in the same setup without it, the world start waits on synchronous builds of ray-tracing compute programs that take 89-167 s each in the driver (from LEONIDA_PSO_PROFILE: lib_cs_01346 CS_Primary_Shade, 4.5 MB SPIR-V, 167 s; lib_cs_01817, 01581, 02551, 02972 89-104 s). 724 library programs are 2 MiB or more, 676 of them CS_RaytracingResolve, so that world start takes hours. With asynchronous pipelines instead, 162,822 of 229,611 world-phase indirect draws were skipped as pending and the screen stayed black under the credits; with synchronous pipelines and no skip list one graphics compile did not return in 16 min.

What still holds it up: after the skip list, the black stretch from about 190 s to 650 s is lazy graphics builds compiling one at a time: TL_PS_PBR_MATERIAL_* tiled-lighting and mesh G-buffer pipelines (1-2.6 MB SPIR-V) at 5-10 s each. Graphics jobs of 1 MiB or more are always serial in PipelineCompiles (graphics_.large does not look at LEONIDA_SERIAL_BIG_COMPILES).

List values: 244 gates held, 218 met, 6 timed out. Nothing ray-traced can be in the picture (skipped, and LEONIDA_RT_AS=off). Not run on Windows.

<!-- gh-comment-id:7184700506 --> @azsekazvamdimitar commented on GitHub (Nov 26, 2026): finding: world frames on Linux/Proton (RTX 3090 24 GB, NVIDIA 590.48.01, GE-Proton11-14 winex11, Debian 13). AI-assisted post; numbers from the run log, window grabs kept locally. From about 650 s into the run the window shows the world in the opening sequence: a night street with road, sidewalk, chain-link fence, palm and bare trees, street lights, distant city lights and headlight glare, at 0.1-0.2 frames/s. No device loss through 934 s (run still going, 1500 s limit). **Tree:** `main` 6555c7c4f + #1851 #1957 #1867 #2117 #1918 #2097 #1592 #1862 (FSPX 29/29), plus two local changes that are in no PR: - DISPATCH_MESH `ExecuteIndirect` recorded as `DispatchMesh`'s draw and replayed with `vkCmdDrawMeshTasksIndirect(Count)EXT` through `main`'s indirect clamp (mesh kind); recorded 36,064, emitted 32,768, 0 skipped; - `LEONIDA_COMPILE_WORKERS=6` threads for `PipelineCompiler` (with synchronous pipelines only the warm-ups use them). Shaders with llvm-mc 23.1.6: 26,503 main corpus, 2,683 library compute, 18,493 fspx_gfx (not used here: the catalog covers all 25,450 slot-57 PSOs). **Settings:** `LEONIDA_ASYNC_PIPELINES=0 LEONIDA_RT_AS=off LEONIDA_SKIP_COMPUTE=<the 724 library compute programs whose SPIR-V is 2 MiB or more> LEONIDA_DEVICE_TYPE=6 LEONIDA_TITLE_WATCHDOG=0 LEONIDA_MAP_READBACK=1 LEONIDA_HOST_IMAGE_COPY=0 LEONIDA_ARENA_MB=4095 LEONIDA_TITLE_WINDOWS_MB=4096 LEONIDA_SERIAL_BIG_COMPILES=0 LEONIDA_FRAME_PACING=1 LEONIDA_PRESENT_NO_TEAR=1`, pipeline caches warm from two earlier runs. 192 of the skipped programs were asked for by 934 s. **Why the skip list:** in the same setup without it, the world start waits on synchronous builds of ray-tracing compute programs that take 89-167 s each in the driver (from `LEONIDA_PSO_PROFILE`: `lib_cs_01346` CS_Primary_Shade, 4.5 MB SPIR-V, 167 s; `lib_cs_01817`, `01581`, `02551`, `02972` 89-104 s). 724 library programs are 2 MiB or more, 676 of them `CS_RaytracingResolve`, so that world start takes hours. With asynchronous pipelines instead, 162,822 of 229,611 world-phase indirect draws were skipped as pending and the screen stayed black under the credits; with synchronous pipelines and no skip list one graphics compile did not return in 16 min. **What still holds it up:** after the skip list, the black stretch from about 190 s to 650 s is lazy graphics builds compiling one at a time: `TL_PS_PBR_MATERIAL_*` tiled-lighting and mesh G-buffer pipelines (1-2.6 MB SPIR-V) at 5-10 s each. Graphics jobs of 1 MiB or more are always serial in `PipelineCompiles` (`graphics_.large` does not look at `LEONIDA_SERIAL_BIG_COMPILES`). List values: 244 gates held, 218 met, 6 timed out. Nothing ray-traced can be in the picture (skipped, and `LEONIDA_RT_AS=off`). Not run on Windows.
Author
Owner

@brandostrong commented on GitHub (Nov 26, 2026):

Follow-up to my watchdog findings above: three configurations, same stop — the title's 30 s watchdog — because in all three the title's thread waits longer than 30 s for a pipeline. The wait only changes shape. Same build (main a73a57e13 + #2195, RTX 4090 / NVIDIA 616.64 / Windows 11), each run to the exception event:

configuration what the title thread waits on longest single wait gate stalls watchdog
defaults in-process creates, behind the compile gate 35.9 s 22–35 s t=200 s
LEONIDA_COMPILE_HELPER=1, journal seeded same, for the two biggest modules (journal files present but missing, so recompiled in-process) 15.1 s 12–15 s t=441 s
helper + journal emptied the helper's file (compile helper built <a 2.6 MB module> in 42.2 s, dispatch) 42.2 s ≤0.8 s t=174 s

So neither the warm-up cap nor the helper is the fix by itself: any mode where the caller waits for a pipeline dies at 30 s. The mode that does not wait — LEONIDA_ASYNC_PIPELINES=1, where a dispatch whose file is not there is deferred — is the one both xcl (stand-in at once, built in background) and VIctory (decision 0007, budget then drop) chose, and it is the one I have not yet run.

finding: two logging gaps made this take three launches instead of one, and they cost every other booting run the same. (1) A pending helper wait is silent: compile helper built X in 42.2 s prints only after the wait ends, so a log read mid-stall cannot tell "the title thread is blocked on a helper file" from "it is blocked at the gate" — a line at ask time and at, say, 5 s ("waiting for , asked N s ago, helper busy with ") would name it live. (2) The journal verdict prints only at 1 and every 100th (pipeline journal: N compute pipeline(s) ... so far: X from journal files, Y written), so a run that dies with 3 writes cannot say whether the builds that cost seconds were hits-that-missed or absent-asked-helper; the per-build took N s to build line should carry the verdict (hit / miss-and-rewrite / absent→helper / absent→in-process) it already knows. Where: runtime/shims/d3d12_compile_helper.h (the wait in Client::build), the JournalCache::report cadence and the took ... to build line in runtime/shims/d3d12_vulkan_device.cpp. Needs game files + any Vulkan GPU. RT-WATCHDOG-FIRED-NOTE (#2156) covers naming the watchdog itself; it does not cover naming what the loop was waiting on.

<!-- gh-comment-id:7184705150 --> @brandostrong commented on GitHub (Nov 26, 2026): Follow-up to my watchdog findings above: three configurations, same stop — the title's 30 s watchdog — because in all three the title's thread waits longer than 30 s for a pipeline. The wait only changes shape. Same build (`main` a73a57e13 + #2195, RTX 4090 / NVIDIA 616.64 / Windows 11), each run to the `exception` event: | configuration | what the title thread waits on | longest single wait | gate stalls | watchdog | |---|---|---|---|---| | defaults | in-process creates, behind the compile gate | 35.9 s | 22–35 s | t=200 s | | `LEONIDA_COMPILE_HELPER=1`, journal seeded | same, for the two biggest modules (journal files present but missing, so recompiled in-process) | 15.1 s | 12–15 s | t=441 s | | helper + journal emptied | the helper's **file** (`compile helper built <a 2.6 MB module> in 42.2 s, dispatch`) | 42.2 s | ≤0.8 s | t=174 s | So neither the warm-up cap nor the helper is the fix by itself: any mode where the caller waits for a pipeline dies at 30 s. The mode that does not wait — `LEONIDA_ASYNC_PIPELINES=1`, where a dispatch whose file is not there is deferred — is the one both xcl (stand-in at once, built in background) and VIctory (decision 0007, budget then drop) chose, and it is the one I have not yet run. finding: two logging gaps made this take three launches instead of one, and they cost every other booting run the same. (1) A pending helper wait is silent: `compile helper built X in 42.2 s` prints only after the wait ends, so a log read mid-stall cannot tell "the title thread is blocked on a helper file" from "it is blocked at the gate" — a line at ask time and at, say, 5 s ("waiting for <name>, asked N s ago, helper busy with <other>") would name it live. (2) The journal verdict prints only at 1 and every 100th (`pipeline journal: N compute pipeline(s) ... so far: X from journal files, Y written`), so a run that dies with 3 writes cannot say whether the builds that cost seconds were hits-that-missed or absent-asked-helper; the per-build `took N s to build` line should carry the verdict (hit / miss-and-rewrite / absent→helper / absent→in-process) it already knows. Where: `runtime/shims/d3d12_compile_helper.h` (the wait in `Client::build`), the `JournalCache::report` cadence and the `took ... to build` line in `runtime/shims/d3d12_vulkan_device.cpp`. Needs game files + any Vulkan GPU. RT-WATCHDOG-FIRED-NOTE (#2156) covers naming the watchdog itself; it does not cover naming what the loop was waiting on.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

done: AWC-SHORTS-CATALOG-NO-CLOBBER -> #2219. Carries forward old-pr/9927 (original author neoisg8). Control exits 0 in both collision cases; patched 18/18 pass (1 existing platform skip), compileall and staged diff check pass under the local coordination lock. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7184722933 --> @whoalin1 commented on GitHub (Nov 26, 2026): done: `AWC-SHORTS-CATALOG-NO-CLOBBER` -> #2219. Carries forward old-pr/9927 (original author neoisg8). Control exits 0 in both collision cases; patched 18/18 pass (1 existing platform skip), compileall and staged diff check pass under the local coordination lock. No game files or GPU. AI-assisted with Devin.
Author
Owner

@DadaCap commented on GitHub (Nov 26, 2026):

claiming: RT-XDXR-UPDATE-SOURCE-CHECK — the XDXR BLAS/TLAS build kernel (runtime/src/xdxr_build.comp, runtime/src/xdxr_build.h) reads its update source without checking it: a PERFORM_UPDATE whose source is not a structure of this layout (never built, other geometry, overwritten) makes the refit follow that source's parent table and node pointers anywhere, and a triangle index past VertexCount reads past the vertex buffer. In retail runs on an RTX 5080 this is the recurring READ_INVALID device loss past the arena (the in-flight command was the BLAS update once XDXR builds got a checkpoint). Fix: the update first checks the source header against the layout on the GPU and does a full build when it does not match; every pointer the refit reads is bounded by the layout; vertex reads are bounded by VertexCount. Overlaps textually with #2002 in xdxr_build.h only (different functions). AI-assisted (Claude Code).

<!-- gh-comment-id:7184751281 --> @DadaCap commented on GitHub (Nov 26, 2026): claiming: RT-XDXR-UPDATE-SOURCE-CHECK — the XDXR BLAS/TLAS build kernel (`runtime/src/xdxr_build.comp`, `runtime/src/xdxr_build.h`) reads its update source without checking it: a PERFORM_UPDATE whose source is not a structure of this layout (never built, other geometry, overwritten) makes the refit follow that source's parent table and node pointers anywhere, and a triangle index past VertexCount reads past the vertex buffer. In retail runs on an RTX 5080 this is the recurring READ_INVALID device loss past the arena (the in-flight command was the BLAS update once XDXR builds got a checkpoint). Fix: the update first checks the source header against the layout on the GPU and does a full build when it does not match; every pointer the refit reads is bounded by the layout; vertex reads are bounded by VertexCount. Overlaps textually with #2002 in `xdxr_build.h` only (different functions). AI-assisted (Claude Code).
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

claiming: BINK-INDEX-VALIDATE-FRAMES — carry forward the still-uncarried old-pr/10040 validation feature: tools/bink_index.py inventories Bink 2 streams but cannot check whether the frame-offset table is truncated, non-monotonic, or outside the stored stream. I will add optional validation that fails before report writing, with synthetic malformed-table regressions, crediting the original author. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7184754421 --> @whoalin1 commented on GitHub (Nov 26, 2026): claiming: `BINK-INDEX-VALIDATE-FRAMES` — carry forward the still-uncarried old-pr/10040 validation feature: `tools/bink_index.py` inventories Bink 2 streams but cannot check whether the frame-offset table is truncated, non-monotonic, or outside the stored stream. I will add optional validation that fails before report writing, with synthetic malformed-table regressions, crediting the original author. No game files or GPU. AI-assisted with Devin.
Author
Owner

@fiestorra commented on GitHub (Nov 26, 2026):

finding: the 849 E_INVALIDARG at device slot 67 (Xbox DeserializeComputePipelineStateX) in my earlier --run reports are caused by the shader library being translated with LLVM 21.1.8, and they disappear with LLVM 23.1.5. Counts only, same machine and package (RTX 4090, driver 32.0.16.2124, Windows 11), LEONIDA_D3D12=vulkan.

The mechanism: the shim builds the FSPX payload and calls self->real->CreateComputePipelineState; the payload is well formed there (kind 0 = 28 B, kind 1 = 20 B, kind 6 = 98 KB in the failing calls), so the E_INVALIDARG comes from our Vulkan layer not finding the program. Summing the N shaders: M translated lines of the two shaders stage logs:

shaders run attempted translated missing
25-nov, LLVM 21.1.8 (the tree the runtime used) 29,280 28,433 847
26-nov, LLVM 23.1.5 29,280 29,277 3

847 missing against 849 failures at the slot.

End to end: re-running the stage with LLVM_MC pointing at an LLVM 23.1.5 llvm-mc and then booting for 300 s with --trace-d3d12 gives 0 slot-67 failures and 2,689 successful slot-67 calls, against 849 failures in the previous 900 s run with the 21.1.8 library. A 900 s control with the new library is running so the comparison is like for like.

This is what #1923 is for, and it makes the case stronger than "the pipeline library translates 2,683 of 2,684": without the version bump, the shaders stage silently produces a library that is 847 programs short, and every compute pipeline state that uses one of them fails at creation. The failures are logged per call, so they are easy to miss among 25,000 successful ones.

Not proven: that those 847 programs now compute the right values (they exist and their PSO is created, nothing more), and nothing about the still-static frame in the boot.

Written with an AI assistant.

<!-- gh-comment-id:7184770128 --> @fiestorra commented on GitHub (Nov 26, 2026): finding: the 849 `E_INVALIDARG` at device slot 67 (`Xbox DeserializeComputePipelineStateX`) in my earlier `--run` reports are caused by the shader library being translated with LLVM 21.1.8, and they disappear with LLVM 23.1.5. Counts only, same machine and package (RTX 4090, driver 32.0.16.2124, Windows 11), `LEONIDA_D3D12=vulkan`. The mechanism: the shim builds the FSPX payload and calls `self->real->CreateComputePipelineState`; the payload is well formed there (kind 0 = 28 B, kind 1 = 20 B, kind 6 = 98 KB in the failing calls), so the `E_INVALIDARG` comes from our Vulkan layer not finding the program. Summing the `N shaders: M translated` lines of the two `shaders` stage logs: | `shaders` run | attempted | translated | **missing** | |---|---|---|---| | 25-nov, LLVM 21.1.8 (the tree the runtime used) | 29,280 | 28,433 | **847** | | 26-nov, LLVM 23.1.5 | 29,280 | 29,277 | **3** | 847 missing against 849 failures at the slot. End to end: re-running the stage with `LLVM_MC` pointing at an LLVM 23.1.5 `llvm-mc` and then booting for 300 s with `--trace-d3d12` gives **0 slot-67 failures and 2,689 successful slot-67 calls**, against 849 failures in the previous 900 s run with the 21.1.8 library. A 900 s control with the new library is running so the comparison is like for like. This is what #1923 is for, and it makes the case stronger than "the pipeline library translates 2,683 of 2,684": without the version bump, the `shaders` stage silently produces a library that is 847 programs short, and every compute pipeline state that uses one of them fails at creation. The failures are logged per call, so they are easy to miss among 25,000 successful ones. Not proven: that those 847 programs now compute the right values (they exist and their PSO is created, nothing more), and nothing about the still-static frame in the boot. Written with an AI assistant.
Author
Owner

@MoonEyes commented on GitHub (Nov 26, 2026):

done: RT-PIPELINE-PREWARM-ORDER (phase 1) -> #2220

<!-- gh-comment-id:7184808787 --> @MoonEyes commented on GitHub (Nov 26, 2026): done: RT-PIPELINE-PREWARM-ORDER (phase 1) -> #2220
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

done: BINK-INDEX-VALIDATE-FRAMES -> #2221. Carries forward old-pr/10040 (original author Tiller431). Control lacks the validator and fails the new synthetic tests; patched 41/41 pass, compileall and staged diff check pass under the local coordination lock. No game files or GPU. AI-assisted with Devin.

<!-- gh-comment-id:7184814870 --> @whoalin1 commented on GitHub (Nov 26, 2026): done: `BINK-INDEX-VALIDATE-FRAMES` -> #2221. Carries forward old-pr/10040 (original author Tiller431). Control lacks the validator and fails the new synthetic tests; patched 41/41 pass, compileall and staged diff check pass under the local coordination lock. No game files or GPU. AI-assisted with Devin.
Author
Owner

@DadaCap commented on GitHub (Nov 26, 2026):

done: RT-XDXR-UPDATE-SOURCE-CHECK -> #2222 (https://github.com/ubiquitarianism/leonida/pull/2222). Conflicts with #690 in the XDXR builder files (whichever lands second redoes those hunks and regenerates xdxr_build.inc); merges cleanly with #2002, #1874 and #1418.

<!-- gh-comment-id:7184858900 --> @DadaCap commented on GitHub (Nov 26, 2026): done: RT-XDXR-UPDATE-SOURCE-CHECK -> #2222 (https://github.com/ubiquitarianism/leonida/pull/2222). Conflicts with #690 in the XDXR builder files (whichever lands second redoes those hunks and regenerates `xdxr_build.inc`); merges cleanly with #2002, #1874 and #1418.
Author
Owner

@djrolfes commented on GitHub (Nov 26, 2026):

RT-PROTON-3070TI-VALIDATION correction and offline follow-up (no retail restart): the user screenshot from the latest474.73s failed pass DOES show a partial 3D world: character silhouette,trees and streetlights,with substantial missing/dark geometry. Automatic present captures had stopped at loading artwork; they were not the full visual evidence. Still no stability across distinct presents or gameplay claim. Image remains local.

The user reports the fault coincided with attempting that screenshot. A desktop-shell EGL_BAD_ALLOC/context-creation failure is logged about a minute before the title exception; the screenshot file is saved afterwards,which does not reveal when capture began. GPU memory was near capacity. This is a possible pressure/trigger correlation,NOT proof screenshots caused the fault or a reason to change shader semantics. No desktop configuration changed.

Concrete offline address check: used the actual cached SPIR-V associated with the three complete recovered compute-checkpoint root sets,with wholly synthetic descriptor/index/record data and strict physical-memory reads/writes in the repository interpreter. Six controls pass (each root set with valid and out-of-range synthetic indices); output arithmetic and write ranges checked. A descriptor deliberately advertising an extent beyond the synthetic backing triggers an unbacked-read failure as expected. The interpreter adapter changes only function order/import ID naming; instruction multiset unchanged,and reassembled SPIR-V validates for Vulkan1.2. No GPU or retail process launched.

This did NOT reproduce the retail defect. The remaining provenance gap is concrete: ROOTS records table addresses but the failed run did not capture their descriptor words or dynamically read payloads. Existing runtime/shims/d3d12_compute_input_probe.h already supplies filtered descriptor/backing inspection and after-loss recheck; prefer validating/reusing it over another diagnostic implementation. No guessed shader patch or new PR-ready fix. All raw shader material,root values,images and logs remain local. AI-assisted (OpenAI GPT-6.1 Sol).

<!-- gh-comment-id:7184867503 --> @djrolfes commented on GitHub (Nov 26, 2026): RT-PROTON-3070TI-VALIDATION correction and offline follow-up (no retail restart): the user screenshot from the latest474.73s failed pass DOES show a partial 3D world: character silhouette,trees and streetlights,with substantial missing/dark geometry. Automatic present captures had stopped at loading artwork; they were not the full visual evidence. Still no stability across distinct presents or gameplay claim. Image remains local. The user reports the fault coincided with attempting that screenshot. A desktop-shell EGL_BAD_ALLOC/context-creation failure is logged about a minute before the title exception; the screenshot file is saved afterwards,which does not reveal when capture began. GPU memory was near capacity. This is a possible pressure/trigger correlation,NOT proof screenshots caused the fault or a reason to change shader semantics. No desktop configuration changed. Concrete offline address check: used the actual cached SPIR-V associated with the three complete recovered compute-checkpoint root sets,with wholly synthetic descriptor/index/record data and strict physical-memory reads/writes in the repository interpreter. Six controls pass (each root set with valid and out-of-range synthetic indices); output arithmetic and write ranges checked. A descriptor deliberately advertising an extent beyond the synthetic backing triggers an unbacked-read failure as expected. The interpreter adapter changes only function order/import ID naming; instruction multiset unchanged,and reassembled SPIR-V validates for Vulkan1.2. No GPU or retail process launched. This did NOT reproduce the retail defect. The remaining provenance gap is concrete: ROOTS records table addresses but the failed run did not capture their descriptor words or dynamically read payloads. Existing runtime/shims/d3d12_compute_input_probe.h already supplies filtered descriptor/backing inspection and after-loss recheck; prefer validating/reusing it over another diagnostic implementation. No guessed shader patch or new PR-ready fix. All raw shader material,root values,images and logs remain local. AI-assisted (OpenAI GPT-6.1 Sol).
Author
Owner

@brandostrong commented on GitHub (Nov 26, 2026):

Result of the async test flagged above: LEONIDA_ASYNC_PIPELINES=1 + LEONIDA_COMPILE_HELPER=1 is the first configuration on this build that gets into the world — no watchdog stop, run ended only when the window was closed at t≈450 s, 11 041 submissions, 800 compute pipelines found in their journal files (the helper's output landing and being used). The user sees the world as black except text, at ~0.6 presented frames/s. Same build/GPU as my comments above.

What the log says about the two costs, so nobody has to relaunch to find them:

finding: deferred compute dispatches are skipped, never replayed, so their CPU-side value writes never land. The run's list-value gate counters read 2605 gates held, 30 met, 2575 timed out (2381 short, 2 demotions, 47 met late) — the title waits on values from dispatches the layer dropped and proceeds on stale ones, which is the black-except-text picture. Where: the deferred answer in runtime/shims/d3d12_vulkan_device.cpp (PipelineState's helper_deferred_ path, ~line 11713) and the value gates in d3d12_xs. Needs game files + any Vulkan GPU. If a deferred dispatch is going to be skipped, the follow-up is replaying it (or its value writes) once the file lands — otherwise async mode trades the watchdog for silently stale state, the same objection I raised to dropping draws.

finding: with async + helper the game re-asks the helper for already-journaled files 6 373 times in one run ([compile-server] ... (492920 B, priority 0): journaled already in 0.0 s), because a deferred use "asks again" with no memory that the file is there. Cheap to fix (the ask path should hit the journal first), but it is driver-independent IPC churn on the hot path. Where: the helper_file_ re-ask in runtime/shims/d3d12_vulkan_device.cpp (~line 11707) and the journaled already answer in runtime/shims/d3d12_compile_helper.h.

Also for the record: this run's trace shows recurring first-chance 0xc0000005 at host:gta6rt.exe+0x81c230 (t=84, 136, 272×4, 404, 431) that the process survives — I have not yet named that address; flagging it so it is not mistaken for the stop.

<!-- gh-comment-id:7184870791 --> @brandostrong commented on GitHub (Nov 26, 2026): Result of the async test flagged above: `LEONIDA_ASYNC_PIPELINES=1` + `LEONIDA_COMPILE_HELPER=1` is the first configuration on this build that gets **into the world** — no watchdog stop, run ended only when the window was closed at t≈450 s, 11 041 submissions, 800 compute pipelines found in their journal files (the helper's output landing and being used). The user sees the world as black except text, at ~0.6 presented frames/s. Same build/GPU as my comments above. What the log says about the two costs, so nobody has to relaunch to find them: finding: deferred compute dispatches are skipped, never replayed, so their CPU-side value writes never land. The run's list-value gate counters read `2605 gates held, 30 met, 2575 timed out (2381 short, 2 demotions, 47 met late)` — the title waits on values from dispatches the layer dropped and proceeds on stale ones, which is the black-except-text picture. Where: the deferred answer in `runtime/shims/d3d12_vulkan_device.cpp` (`PipelineState`'s `helper_deferred_` path, ~line 11713) and the value gates in `d3d12_xs`. Needs game files + any Vulkan GPU. If a deferred dispatch is going to be skipped, the follow-up is replaying it (or its value writes) once the file lands — otherwise async mode trades the watchdog for silently stale state, the same objection I raised to dropping draws. finding: with async + helper the game re-asks the helper for already-journaled files 6 373 times in one run (`[compile-server] ... (492920 B, priority 0): journaled already in 0.0 s`), because a deferred use "asks again" with no memory that the file is there. Cheap to fix (the ask path should hit the journal first), but it is driver-independent IPC churn on the hot path. Where: the `helper_file_` re-ask in `runtime/shims/d3d12_vulkan_device.cpp` (~line 11707) and the `journaled already` answer in `runtime/shims/d3d12_compile_helper.h`. Also for the record: this run's trace shows recurring first-chance `0xc0000005` at `host:gta6rt.exe+0x81c230` (t=84, 136, 272×4, 404, 431) that the process survives — I have not yet named that address; flagging it so it is not mistaken for the stop.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

claiming: SHADER-READFIRSTLANE-MIXED-PROVENANCE — picking the released item back up as a careful follow-up to my #1397. The remaining failure is the mixed VGPR provenance case ecox982745 reduced (lane-dependent data/mask contents, then v_readfirstlane_b32). I will work locally first because the upstream Actions queue is currently saturated; goal is a sound representation fix that preserves both scalar-word reads and mask composition semantics, with CPU semantic regressions before any PR. No game files; GPU only for final confirmation if needed. AI-assisted with Devin.

<!-- gh-comment-id:7184925414 --> @whoalin1 commented on GitHub (Nov 26, 2026): claiming: `SHADER-READFIRSTLANE-MIXED-PROVENANCE` — picking the released item back up as a careful follow-up to my #1397. The remaining failure is the mixed VGPR provenance case ecox982745 reduced (lane-dependent data/mask contents, then `v_readfirstlane_b32`). I will work locally first because the upstream Actions queue is currently saturated; goal is a sound representation fix that preserves both scalar-word reads and mask composition semantics, with CPU semantic regressions before any PR. No game files; GPU only for final confirmation if needed. AI-assisted with Devin.
Author
Owner

@djrolfes commented on GitHub (Nov 26, 2026):

RT-PROTON-3070TI-VALIDATION: completed synthetic validation of the EXISTING compute-input descriptor/backing probe before one explicitly requested controlled reproduction. No runtime implementation change or new shader fix.

CPU-only clang-cl/xwin fixture includes unchanged runtime/shims/d3d12_compute_input_probe.h with a stand-in device state,real ArenaBlocks/alias/fsdraw readers and Wine ReadProcessMemory. Offline Wine exit0;10 output/provenance assertions plus fixture checks pass: arena vs CPU-source distinction,external console-copy priority,bounded backing reads,missing tables,signed48-bit offsets,changed/unchanged after-loss reports,last-observation provenance,and no writes. Negative control changes only a generated header copy to label CPU source bytes as GPU-visible: same fixture fails exit1 at the exact GPU-word assertion. Build succeeds with existing header warnings,not claimed Werror-clean. Independent launcher isolation self-test also exits0.

Interpretation limits checked in source: input probe runs after refresh but BEFORE replay (vulkan_backend.h:2942,2951–2953); it is a pre-replay CPU-visible-copy snapshot,not an atomic GPU-time sample. recheck retains only the latest observation per descriptor slot (probe header:181–186),so unchanged does not prove every earlier queued dispatch saw those bytes. Fixed slot selection also does not enumerate every dynamic heap index.

One bounded1800s reproduction is now active on the SAME f448c712a/runtime hash/profile/cache,with only the existing filtered compute-input diagnostics added; no async/skips/assert suppression. User asked to avoid manual screenshot interaction during it to reduce that confound,not as a proven fix. Per-dispatch descriptor logs should fill the immediate payload gap without depending on the64-dispatch checkpoint ring. All raw evidence stays local; analyze before any further retail execution. AI-assisted (OpenAI GPT-6.1 Sol).

<!-- gh-comment-id:7184986092 --> @djrolfes commented on GitHub (Nov 26, 2026): RT-PROTON-3070TI-VALIDATION: completed synthetic validation of the EXISTING compute-input descriptor/backing probe before one explicitly requested controlled reproduction. No runtime implementation change or new shader fix. CPU-only clang-cl/xwin fixture includes unchanged runtime/shims/d3d12_compute_input_probe.h with a stand-in device state,real ArenaBlocks/alias/fsdraw readers and Wine ReadProcessMemory. Offline Wine exit0;10 output/provenance assertions plus fixture checks pass: arena vs CPU-source distinction,external console-copy priority,bounded backing reads,missing tables,signed48-bit offsets,changed/unchanged after-loss reports,last-observation provenance,and no writes. Negative control changes only a generated header copy to label CPU source bytes as GPU-visible: same fixture fails exit1 at the exact GPU-word assertion. Build succeeds with existing header warnings,not claimed Werror-clean. Independent launcher isolation self-test also exits0. Interpretation limits checked in source: input probe runs after refresh but BEFORE replay (vulkan_backend.h:2942,2951–2953); it is a pre-replay CPU-visible-copy snapshot,not an atomic GPU-time sample. recheck retains only the latest observation per descriptor slot (probe header:181–186),so unchanged does not prove every earlier queued dispatch saw those bytes. Fixed slot selection also does not enumerate every dynamic heap index. One bounded1800s reproduction is now active on the SAME f448c712a/runtime hash/profile/cache,with only the existing filtered compute-input diagnostics added; no async/skips/assert suppression. User asked to avoid manual screenshot interaction during it to reduce that confound,not as a proven fix. Per-dispatch descriptor logs should fill the immediate payload gap without depending on the64-dispatch checkpoint ring. All raw evidence stays local; analyze before any further retail execution. AI-assisted (OpenAI GPT-6.1 Sol).
Author
Owner

@fiestorra commented on GitHub (Nov 26, 2026):

Like-for-like control, same 900 s and same machine as the run that reported the failures: with the LLVM 23.1.5 library there are 0 slot-67 failures and 2,689 successful calls, against 849 failures with the 21.1.8 library. The rest of the run matches what it was: 70,204 PresentX (74,068 before), 25,450 graphics PSOs (25,007 before), same 4,621,204,361-byte cache loaded. The 2,689 successful calls are identical in the 300 s and 900 s runs, so the title asks for its compute pipeline states early and does not come back for them.

So the failures were not a defect worth a separate fix: they were the 847 programs the shaders stage could not translate on LLVM 21.1.8, and this change is what puts them back.

Written with an AI assistant.

<!-- gh-comment-id:7185017692 --> @fiestorra commented on GitHub (Nov 26, 2026): Like-for-like control, same 900 s and same machine as the run that reported the failures: with the LLVM 23.1.5 library there are **0 slot-67 failures and 2,689 successful calls**, against **849 failures** with the 21.1.8 library. The rest of the run matches what it was: 70,204 `PresentX` (74,068 before), 25,450 graphics PSOs (25,007 before), same 4,621,204,361-byte cache loaded. The 2,689 successful calls are identical in the 300 s and 900 s runs, so the title asks for its compute pipeline states early and does not come back for them. So the failures were not a defect worth a separate fix: they were the 847 programs the `shaders` stage could not translate on LLVM 21.1.8, and this change is what puts them back. Written with an AI assistant.
Author
Owner

@quartz-heron-58 commented on GitHub (Nov 26, 2026):

finding: on NVIDIA, with LEONIDA_DEVICE_FAULT=1 (the diagnostics config; scripts/windows-boot/boot.ps1 sets it by default) a large compute pipeline is compiled again at every create although its journal file is there, so the per-pipeline journal (build_compute_pipeline in runtime/shims/d3d12_vulkan_device.cpp, the nv-diagnostics-config key) never pays off for it. RTX 4080, driver 621.24, Windows 11, main 3abb99c plus one local line of logging.

No game needed to reproduce: gta6rt --precompile-pipelines --all --threads 1 --filter <one library module> twice, with LEONIDA_TRACE_PIPELINE_COMPILE=1. One 2.3 MB compute-library module here:

run LEONIDA_DEVICE_FAULT create trace hit journal line
1 1 77.6 s 0 compiled and written
2 1 83.5 s 0 compiled and written
3 unset 85.6 s 0 compiled and written
4 unset 0.027 s 1 found in their journal file

Run 2 had run 1's file (3.98 MB, header for this device). The log says "NVIDIA diagnostics config on" in runs 1 and 2.

In boots (Series S identity, async builds, compile helper, warm-up off, about 10 minutes each):

boot LEONIDA_DEVICE_FAULT compile-gate waits from journal files / written
A 1 104 waits, 442 s in all, longest 127 s 26 / 100
B (same again) 1 122 waits, 441 s, longest 128 s 25 / 100
C unset, after an offline pass with it unset 143 waits, 8.5 s, longest 1.4 s 300 / 60

A and B each compiled that same module again (106 s both times) with a journal full of files made under the same setting.

Limits: one module in the offline table, one card and driver. Smaller modules do hit with the switch on (an earlier boot here read 900 from journal files), so there is a size or shape boundary I have not located, and I have not separated the debug-info flag from the other config flags. With the switch off there is no fault report: boot C lost the device at 594 s and I cannot say how.

Why it matters: anyone on NVIDIA using boot.ps1's defaults pays these compiles in every boot, and a --precompile-pipelines pass made with the switch on does not help the large ones. No competing claim from me; AI-assisted (Claude Code).

<!-- gh-comment-id:7185117614 --> @quartz-heron-58 commented on GitHub (Nov 26, 2026): finding: on NVIDIA, with `LEONIDA_DEVICE_FAULT=1` (the diagnostics config; `scripts/windows-boot/boot.ps1` sets it by default) a large compute pipeline is compiled again at every create although its journal file is there, so the per-pipeline journal (`build_compute_pipeline` in `runtime/shims/d3d12_vulkan_device.cpp`, the `nv-diagnostics-config` key) never pays off for it. RTX 4080, driver 621.24, Windows 11, main 3abb99c plus one local line of logging. No game needed to reproduce: `gta6rt --precompile-pipelines --all --threads 1 --filter <one library module>` twice, with `LEONIDA_TRACE_PIPELINE_COMPILE=1`. One 2.3 MB compute-library module here: | run | LEONIDA_DEVICE_FAULT | create | trace hit | journal line | |---|---|---|---|---| | 1 | 1 | 77.6 s | 0 | compiled and written | | 2 | 1 | 83.5 s | 0 | compiled and written | | 3 | unset | 85.6 s | 0 | compiled and written | | 4 | unset | 0.027 s | 1 | found in their journal file | Run 2 had run 1's file (3.98 MB, header for this device). The log says "NVIDIA diagnostics config on" in runs 1 and 2. In boots (Series S identity, async builds, compile helper, warm-up off, about 10 minutes each): | boot | LEONIDA_DEVICE_FAULT | compile-gate waits | from journal files / written | |---|---|---|---| | A | 1 | 104 waits, 442 s in all, longest 127 s | 26 / 100 | | B (same again) | 1 | 122 waits, 441 s, longest 128 s | 25 / 100 | | C | unset, after an offline pass with it unset | 143 waits, 8.5 s, longest 1.4 s | 300 / 60 | A and B each compiled that same module again (106 s both times) with a journal full of files made under the same setting. Limits: one module in the offline table, one card and driver. Smaller modules do hit with the switch on (an earlier boot here read 900 from journal files), so there is a size or shape boundary I have not located, and I have not separated the debug-info flag from the other config flags. With the switch off there is no fault report: boot C lost the device at 594 s and I cannot say how. Why it matters: anyone on NVIDIA using boot.ps1's defaults pays these compiles in every boot, and a `--precompile-pipelines` pass made with the switch on does not help the large ones. No competing claim from me; AI-assisted (Claude Code).
Author
Owner

@MoonEyes commented on GitHub (Nov 26, 2026):

releasing: RT-ASYNC-COMPILE-POOL - #2077 is closed; #2098 reworked the same scheduler (graphics worker, compile helper, compile gate), so the item is free.

<!-- gh-comment-id:7185216126 --> @MoonEyes commented on GitHub (Nov 26, 2026): releasing: RT-ASYNC-COMPILE-POOL - #2077 is closed; #2098 reworked the same scheduler (graphics worker, compile helper, compile gate), so the item is free.
Author
Owner

@MoonEyes commented on GitHub (Nov 26, 2026):

claiming: TEST-GTA6RT-NO-TLS-CALLBACKS - a CTest that fails when gta6rt.exe has any TLS callback (it reads the PE TLS directory, standard-library Python, plus a unit test on two in-memory PE images). It guards against the startup fast-fail of RT-XMEM-STARTUP-FASTFAIL coming back with a later thread_local that has a destructor. Depends on #2195: the test fails on current main by design and passes with #2195. AI-assisted (Claude Code).

<!-- gh-comment-id:7185302665 --> @MoonEyes commented on GitHub (Nov 26, 2026): claiming: TEST-GTA6RT-NO-TLS-CALLBACKS - a CTest that fails when `gta6rt.exe` has any TLS callback (it reads the PE TLS directory, standard-library Python, plus a unit test on two in-memory PE images). It guards against the startup fast-fail of RT-XMEM-STARTUP-FASTFAIL coming back with a later `thread_local` that has a destructor. Depends on #2195: the test fails on current main by design and passes with #2195. AI-assisted (Claude Code).
Author
Owner

@djrolfes commented on GitHub (Nov 26, 2026):

claiming: RT-VSHARP-TITLE-VA-COLLISION — in runtime/shims/d3d12_vulkan_device.cpp (vsharp_address, rebase_title_vsharp) and runtime/shims/d3d12_compute_input_probe.h (recheck), when a title CPU VA (aliases.title_memory) numerically collides with a TitleBufferWindows (geometry or external_windows) shader VA (bda - arena.address), vsharp_address() checks backed(offset) before geometry.find() and before title_memory for Create*View callers, silently hijacking buffer B's V# to point at an unrelated buffer A's GPU backing (and rebase_title_vsharp() skips rebasing on geometry.lookup()). Observed on RTX 3070 Ti / Wine where XMemVirtualAlloc landed in the low multi-GiB range overlapping TitleBufferWindows shader VAs, and reproduced deterministically in a synthetic zero-game-data Wine/Vulkan test (CBV, placed console-heap SRV, and inline table all hijacked to buffer A). I will fix vsharp_address(), rebase_title_vsharp(), d3d12_compute_input_probe.h, keep XMemVirtualAlloc(nullptr, ...) away from low BDA offsets when MEM_TOP_DOWN is accepted, and add a deterministic Vulkan regression test in d3d12_unmapped_vsharp_test.cpp. AI-assisted.

<!-- gh-comment-id:7185378954 --> @djrolfes commented on GitHub (Nov 26, 2026): claiming: `RT-VSHARP-TITLE-VA-COLLISION` — in `runtime/shims/d3d12_vulkan_device.cpp` (`vsharp_address`, `rebase_title_vsharp`) and `runtime/shims/d3d12_compute_input_probe.h` (`recheck`), when a title CPU VA (`aliases.title_memory`) numerically collides with a `TitleBufferWindows` (`geometry` or `external_windows`) shader VA (`bda - arena.address`), `vsharp_address()` checks `backed(offset)` before `geometry.find()` and before `title_memory` for `Create*View` callers, silently hijacking buffer B's V# to point at an unrelated buffer A's GPU backing (and `rebase_title_vsharp()` skips rebasing on `geometry.lookup()`). Observed on RTX 3070 Ti / Wine where `XMemVirtualAlloc` landed in the low multi-GiB range overlapping `TitleBufferWindows` shader VAs, and reproduced deterministically in a synthetic zero-game-data Wine/Vulkan test (CBV, placed console-heap SRV, and inline table all hijacked to buffer A). I will fix `vsharp_address()`, `rebase_title_vsharp()`, `d3d12_compute_input_probe.h`, keep `XMemVirtualAlloc(nullptr, ...)` away from low BDA offsets when `MEM_TOP_DOWN` is accepted, and add a deterministic Vulkan regression test in `d3d12_unmapped_vsharp_test.cpp`. AI-assisted.
Author
Owner

@fiestorra commented on GitHub (Nov 26, 2026):

Correction to my finding from yesterday (7175629817), where I called the boot's frame "frozen": it is not frozen, it is loading, and it does reach the title's main menu.

What I measured then, and what it actually was. In the run I captured, the presented frame was byte-identical (equal MD5) from present 1,501 through present 32,001 — about 400 s of the same picture. I called that a freeze because I stopped the run there and treated "identical image" as "stalled". The user then watched the same tree in the interactive session (1, with the title's own 2458x1353 window rather than the runtime's 1028x744 one) and reported that after a long wait it goes on to the main menu: a static grey background with the two selectors (profile and player).

So the honest statement is: the boot shows one image for several minutes and then reaches the menu. Whether it is a load of the expected length or a slow one is now a measurable question — it is not a hang, and I was wrong to publish it as one.

Two side notes from the same session, both useful:

  • In session 1 the title uses its own window (2458x1353, mean RGB 126.91/104.00/125.32 on the first captured frame, 92.6 % of pixels non-black), while in session 0 it used the runtime's window (1028x744) and a dark grey frame (32.34/32.34/44.30). Any presentation measurement I published before this was session 0 and needs that label.
  • The main menu does not react to the keyboard. The boot log explains it: [rt] gameinput: served without SDL3 (no devices; E_NOTIMPL for every other slot), and runtime/shims/gameinput_no_sdl.cpp says a build without SDL3 has no device at all. The runtime in that tree was configured without SDL3, so there is no keyboard and no controller to read. I am rebuilding gta6rt with -DLEONIDA_SDL3_FETCH=ON to check that the menu responds once a device exists; the next message will carry the numbers.

Written with an AI assistant.

<!-- gh-comment-id:7185421893 --> @fiestorra commented on GitHub (Nov 26, 2026): Correction to my finding from yesterday (7175629817), where I called the boot's frame "frozen": it is not frozen, it is **loading**, and it does reach the title's main menu. What I measured then, and what it actually was. In the run I captured, the presented frame was byte-identical (equal MD5) from present 1,501 through present 32,001 — about 400 s of the same picture. I called that a freeze because I stopped the run there and treated "identical image" as "stalled". The user then watched the same tree in the interactive session (1, with the title's own 2458x1353 window rather than the runtime's 1028x744 one) and reported that after a long wait it goes on to the main menu: a static grey background with the two selectors (profile and player). So the honest statement is: **the boot shows one image for several minutes and then reaches the menu**. Whether it is a load of the expected length or a slow one is now a measurable question — it is not a hang, and I was wrong to publish it as one. Two side notes from the same session, both useful: - In session 1 the title uses **its own window** (2458x1353, mean RGB 126.91/104.00/125.32 on the first captured frame, 92.6 % of pixels non-black), while in session 0 it used the runtime's window (1028x744) and a dark grey frame (32.34/32.34/44.30). Any presentation measurement I published before this was session 0 and needs that label. - The main menu does **not react to the keyboard**. The boot log explains it: `[rt] gameinput: served without SDL3 (no devices; E_NOTIMPL for every other slot)`, and `runtime/shims/gameinput_no_sdl.cpp` says a build without SDL3 has no device at all. The runtime in that tree was configured without SDL3, so there is no keyboard and no controller to read. I am rebuilding `gta6rt` with `-DLEONIDA_SDL3_FETCH=ON` to check that the menu responds once a device exists; the next message will carry the numbers. Written with an AI assistant.
Author
Owner

@Tyrannys commented on GitHub (Nov 26, 2026):

done: RT-PRESENT-PROBE-TIMEOUT-UAF -> #2224 (a timed-out probe readback keeps its staging buffer until the fence signals; later probes skip instead of resetting the busy command buffer and fence; synthetic --probe-timeout test, 0 validation errors through vkDestroyDevice, and it fails on main). Thanks djrolfes. AI-assisted (Claude Code).

<!-- gh-comment-id:7185475502 --> @Tyrannys commented on GitHub (Nov 26, 2026): done: RT-PRESENT-PROBE-TIMEOUT-UAF -> #2224 (a timed-out probe readback keeps its staging buffer until the fence signals; later probes skip instead of resetting the busy command buffer and fence; synthetic --probe-timeout test, 0 validation errors through vkDestroyDevice, and it fails on main). Thanks djrolfes. AI-assisted (Claude Code).
Author
Owner

@star41905453-coder commented on GitHub (Nov 26, 2026):

claiming: DEPTH-BOUNDS-ON-DEMAND-STREAM - the finding above: parse_pipeline_stream sets the extras on the console reading and the on-demand realization (PipelineStream, d3d12_vulkan_device.cpp, the create_graphics(stream.graphics, &stream.ms, &stream.as, ...) call) never passes them, so a title that first binds its console PSO here loses DepthBoundsTestEnable instead of the flag reaching the pipeline. #815 supplies the extras parameter and uses it on the eager branch only.

Plan: build on #815 (Depends on: #815), pass stream.back_masks ? &stream.back_stencil : nullptr and the extras at that call site, and a stream+draw regression that sets DepthBoundsTestEnable through a stream subobject and reads the depth-bounds state back on a capable device (the flag is only meaningful where DepthBoundsTestSupported is TRUE; a device without it skips). No game files.

<!-- gh-comment-id:7185488407 --> @star41905453-coder commented on GitHub (Nov 26, 2026): claiming: DEPTH-BOUNDS-ON-DEMAND-STREAM - the finding above: `parse_pipeline_stream` sets the extras on the console reading and the on-demand realization (`PipelineStream`, `d3d12_vulkan_device.cpp`, the `create_graphics(stream.graphics, &stream.ms, &stream.as, ...)` call) never passes them, so a title that first binds its console PSO here loses DepthBoundsTestEnable instead of the flag reaching the pipeline. #815 supplies the extras parameter and uses it on the eager branch only. Plan: build on #815 (`Depends on: #815`), pass `stream.back_masks ? &stream.back_stencil : nullptr` **and** the extras at that call site, and a stream+draw regression that sets DepthBoundsTestEnable through a stream subobject and reads the depth-bounds state back on a capable device (the flag is only meaningful where `DepthBoundsTestSupported` is TRUE; a device without it skips). No game files.
Author
Owner

@Tyrannys commented on GitHub (Nov 26, 2026):

claiming: RT-ASYNC-COMPILE-POOL - port MoonEyes' worker-pool design from #2077 onto #2098's scheduler (PipelineCompiler in runtime/shims/d3d12_pipeline_compile.h): N compile workers (LEONIDA_COMPILE_THREADS, default half the logical processors, 2..8; =1 keeps today's general worker plus graphics worker), demanded builds ahead of warm-ups and the checkpoint, large and speculative builds on at most N-1 workers so one stays free for a small demanded build, at most LEONIDA_COMPILE_HEAVY_MAX large builds at once (compute and graphics alike; 1 with LEONIDA_SERIAL_BIG_COMPILES=1), one job per PSO at a time, checkpoint only when no worker compiles. Keeps #2098's lifetime rules (after_running, cancel, stop_for_exit). CPU tests of the pool rules with mutants, d3d12_compile_teardown with 1 and N workers. No game files. Credit: the design is MoonEyes' (#2077).
AI-assisted (Claude Code)

<!-- gh-comment-id:7185530691 --> @Tyrannys commented on GitHub (Nov 26, 2026): claiming: RT-ASYNC-COMPILE-POOL - port MoonEyes' worker-pool design from #2077 onto #2098's scheduler (`PipelineCompiler` in `runtime/shims/d3d12_pipeline_compile.h`): N compile workers (`LEONIDA_COMPILE_THREADS`, default half the logical processors, 2..8; `=1` keeps today's general worker plus graphics worker), demanded builds ahead of warm-ups and the checkpoint, large and speculative builds on at most N-1 workers so one stays free for a small demanded build, at most `LEONIDA_COMPILE_HEAVY_MAX` large builds at once (compute and graphics alike; 1 with `LEONIDA_SERIAL_BIG_COMPILES=1`), one job per PSO at a time, checkpoint only when no worker compiles. Keeps #2098's lifetime rules (after_running, cancel, stop_for_exit). CPU tests of the pool rules with mutants, `d3d12_compile_teardown` with 1 and N workers. No game files. Credit: the design is MoonEyes' (#2077). AI-assisted (Claude Code)
Author
Owner

@MoonEyes commented on GitHub (Nov 26, 2026):

finding: the default compile gate holds the title's submissions behind warm-up builds; with LEONIDA_COMPILE_GATE=0 the same boot reaches game state 3 at 130 s and runs 240 s with no fault

Where: runtime/src/vulkan_device_fault.h:394-431 (the gate, from #2098); runtime/src/main.cpp:43-51 (the title's 30 s hang watchdog). This adds a gate-off measurement to brandostrong's findings above (issuecomment-7184271900, trace in issuecomment-7184287114).

Machine: RTX 4060 8 GB, NVIDIA 610.88, Windows 11, MSVC. main a73a57e13 plus a local fix for the startup fast-fail that #2195 fixes. LEONIDA_ASYNC_PIPELINES=1 and LEONIDA_DEVICE_FAULT=1 in both runs, an empty pipeline cache for each, one run each, same executable, same translated shaders.

Default (gate on): 712 submissions waited for pipeline creates, 142 s in all, longest 13.5 s (last report at t=182 s). Warm-up builds of modules around 800 KB took 5 to 13.5 s each. Submissions fell from about 20/s to 0.04-0.17/s in the reports from t=84 s until the fault. Game state stayed at 2 from t=10 s to the last reading at 190 s. A null-address write from the title's own code at t=183 s (0xC0000005), exit at 213 s, 285 presents. The two caller frames under the faulting one are the same as in brandostrong's trace; the faulting frame itself differs.

Gate off: no gate lines at all. Game state 3 at 130 s, 2,464 presents in 240 s, 40 non-black captures, no fault, ended at the time limit. Submissions ran at 12-29/s throughout. Warm-up builds of similar size (about 800 KB) still took up to 14.3 s; they just did not hold the submitting thread. Four CreatePipelineState calls failed in this run and none in the default run, which never got that far; I have not looked at why.

Why, as I read it: the gate makes every submit wait for the creates already in the driver. Warm-up creates keep coming, so the title's thread waits again and again. docs/d3d12_vulkan.md (Warm-ups while the title submits) describes the same wait. I did not measure a single 30 s gap on my run (longest wait 13.5 s); the link to the watchdog is the matching caller frames above and the description in main.cpp, not a measurement of the watchdog itself.

Not checked: whether gate off brings back the device loss that #2098 wanted to prevent (none seen in 240 s); LEONIDA_COMPUTE_WARMUP=0; LEONIDA_COMPUTE_WARMUP_LIVE_MAX_BYTES; the compile helper; a second run of each. The two runs also differed in time limit (780 s and 240 s), input settings (the default run had a keyboard pad and an input script; no key press was logged in either) and capture settings.

Later run, same build, gate off, 783 s with a scripted pad: 6,881 presents, no fault, ended at the time limit on the legal-terms page (my script did not tick both boxes).

Related: on #2195 sodove reports 0xC0000005 at 113-145 s on an RTX 5070 Ti with main plus the #2195 fix. I do not know their other settings, so I cannot say it is the same.

Two ideas, not a proposal: (1) do not make submissions wait behind warm-up builds, only behind builds a draw or dispatch needs; (2) cap the wait to a few seconds, then submit anyway, as brandostrong already suggested. Moriz82 knows the NVIDIA 630.20 device loss the gate was made for, and may rule these out.

Small doc point: LEONIDA_COMPILE_GATE is read in two places. runtime/README.md:418 documents only the opt-in one (=1: a compute build takes the submit lock, in d3d12_vulkan_device.cpp). The gate in vulkan_device_fault.h is on when the variable is unset and off only with =0, and the README does not say so.

Needs game files and an NVIDIA GPU to reproduce.

AI-assisted: yes (Claude Code; Claude Sonnet 5.5 read the logs and drafted this, a second agent replayed the figures against the logs and the code)

<!-- gh-comment-id:7185560772 --> @MoonEyes commented on GitHub (Nov 26, 2026): finding: the default compile gate holds the title's submissions behind warm-up builds; with LEONIDA_COMPILE_GATE=0 the same boot reaches game state 3 at 130 s and runs 240 s with no fault Where: `runtime/src/vulkan_device_fault.h:394-431` (the gate, from #2098); `runtime/src/main.cpp:43-51` (the title's 30 s hang watchdog). This adds a gate-off measurement to brandostrong's findings above (issuecomment-7184271900, trace in issuecomment-7184287114). Machine: RTX 4060 8 GB, NVIDIA 610.88, Windows 11, MSVC. main a73a57e13 plus a local fix for the startup fast-fail that #2195 fixes. LEONIDA_ASYNC_PIPELINES=1 and LEONIDA_DEVICE_FAULT=1 in both runs, an empty pipeline cache for each, one run each, same executable, same translated shaders. Default (gate on): 712 submissions waited for pipeline creates, 142 s in all, longest 13.5 s (last report at t=182 s). Warm-up builds of modules around 800 KB took 5 to 13.5 s each. Submissions fell from about 20/s to 0.04-0.17/s in the reports from t=84 s until the fault. Game state stayed at 2 from t=10 s to the last reading at 190 s. A null-address write from the title's own code at t=183 s (0xC0000005), exit at 213 s, 285 presents. The two caller frames under the faulting one are the same as in brandostrong's trace; the faulting frame itself differs. Gate off: no gate lines at all. Game state 3 at 130 s, 2,464 presents in 240 s, 40 non-black captures, no fault, ended at the time limit. Submissions ran at 12-29/s throughout. Warm-up builds of similar size (about 800 KB) still took up to 14.3 s; they just did not hold the submitting thread. Four CreatePipelineState calls failed in this run and none in the default run, which never got that far; I have not looked at why. Why, as I read it: the gate makes every submit wait for the creates already in the driver. Warm-up creates keep coming, so the title's thread waits again and again. `docs/d3d12_vulkan.md` (Warm-ups while the title submits) describes the same wait. I did not measure a single 30 s gap on my run (longest wait 13.5 s); the link to the watchdog is the matching caller frames above and the description in main.cpp, not a measurement of the watchdog itself. Not checked: whether gate off brings back the device loss that #2098 wanted to prevent (none seen in 240 s); LEONIDA_COMPUTE_WARMUP=0; LEONIDA_COMPUTE_WARMUP_LIVE_MAX_BYTES; the compile helper; a second run of each. The two runs also differed in time limit (780 s and 240 s), input settings (the default run had a keyboard pad and an input script; no key press was logged in either) and capture settings. Later run, same build, gate off, 783 s with a scripted pad: 6,881 presents, no fault, ended at the time limit on the legal-terms page (my script did not tick both boxes). Related: on #2195 sodove reports 0xC0000005 at 113-145 s on an RTX 5070 Ti with main plus the #2195 fix. I do not know their other settings, so I cannot say it is the same. Two ideas, not a proposal: (1) do not make submissions wait behind warm-up builds, only behind builds a draw or dispatch needs; (2) cap the wait to a few seconds, then submit anyway, as brandostrong already suggested. Moriz82 knows the NVIDIA 630.20 device loss the gate was made for, and may rule these out. Small doc point: LEONIDA_COMPILE_GATE is read in two places. runtime/README.md:418 documents only the opt-in one (=1: a compute build takes the submit lock, in d3d12_vulkan_device.cpp). The gate in vulkan_device_fault.h is on when the variable is unset and off only with =0, and the README does not say so. Needs game files and an NVIDIA GPU to reproduce. AI-assisted: yes (Claude Code; Claude Sonnet 5.5 read the logs and drafted this, a second agent replayed the figures against the logs and the code)
Author
Owner

@MoonEyes commented on GitHub (Nov 26, 2026):

done: TEST-GTA6RT-NO-TLS-CALLBACKS -> #2225 (it stays red on that one test until #2195 is merged, by design)

<!-- gh-comment-id:7185561668 --> @MoonEyes commented on GitHub (Nov 26, 2026): done: TEST-GTA6RT-NO-TLS-CALLBACKS -> #2225 (it stays red on that one test until #2195 is merged, by design)
Author
Owner

@Tyrannys commented on GitHub (Nov 26, 2026):

claiming: DOC-RELATED-COOL-FOX - add a facts-only codec-d/cool_fox entry to docs/related_projects.md (prior art for two runtime ideas being ported). AI-assisted (Claude Code).

<!-- gh-comment-id:7185832607 --> @Tyrannys commented on GitHub (Nov 26, 2026): claiming: DOC-RELATED-COOL-FOX - add a facts-only codec-d/cool_fox entry to docs/related_projects.md (prior art for two runtime ideas being ported). AI-assisted (Claude Code).
Author
Owner

@Tyrannys commented on GitHub (Nov 26, 2026):

done: DOC-RELATED-COOL-FOX - #2226 adds the codec-d/cool_fox entry to docs/related_projects.md (pinned links, prior art only). AI-assisted (Claude Code).

<!-- gh-comment-id:7185857755 --> @Tyrannys commented on GitHub (Nov 26, 2026): done: DOC-RELATED-COOL-FOX - #2226 adds the codec-d/cool_fox entry to docs/related_projects.md (pinned links, prior art only). AI-assisted (Claude Code).
Author
Owner

@tiguan26 commented on GitHub (Nov 26, 2026):

finding: the list-value releaser runs held work, including synchronous pipeline builds, on its one thread, so one cold batch stops every gate on every queue. Where: runtime/shims/d3d12_xs_list_values.h, release_loop and signal(): release.queue->gate->Signal(value) runs the work QueueHolds held behind that gate (src/queue_holds.h pump_ready -> the queue's release_ready -> its held ExecuteCommandLists replay) on the releaser thread. With LEONIDA_ASYNC_PIPELINES off, that replay builds first-use pipelines in place (38-93 s each in the retail reports). Meanwhile no other gate on any queue is signalled, timed-out ones included, because the pump only decides and the releaser alone signals. Evidence: @djrolfes on #2116 (RTX 3070 Ti, Wine) measured one release lasting 26 min while 97 slow builds completed, with the snapshot showing a release busy for over 1 s and 128 held operations. @Snooozs' runs reach the cutscene title card with async pipelines on and stall at world start with them off. Why it matters: it turns slow compiles into a whole-system stall, so the boot's progress depends on compile time far more than on the GPU. Direction (needs design, not a quick patch): run held replays off the releaser (per-queue release workers), or have the releaser only signal and let another thread run what that releases. No game files needed to reproduce: a mock with a held batch whose replay sleeps shows the other gates waiting. AI-assisted (Claude).

<!-- gh-comment-id:7185861205 --> @tiguan26 commented on GitHub (Nov 26, 2026): finding: the list-value releaser runs held work, including synchronous pipeline builds, on its one thread, so one cold batch stops every gate on every queue. Where: runtime/shims/d3d12_xs_list_values.h, `release_loop` and `signal()`: `release.queue->gate->Signal(value)` runs the work QueueHolds held behind that gate (src/queue_holds.h `pump_ready` -> the queue's `release_ready` -> its held ExecuteCommandLists replay) on the releaser thread. With `LEONIDA_ASYNC_PIPELINES` off, that replay builds first-use pipelines in place (38-93 s each in the retail reports). Meanwhile no other gate on any queue is signalled, timed-out ones included, because the pump only decides and the releaser alone signals. Evidence: @djrolfes on #2116 (RTX 3070 Ti, Wine) measured one release lasting 26 min while 97 slow builds completed, with the snapshot showing a release busy for over 1 s and 128 held operations. @Snooozs' runs reach the cutscene title card with async pipelines on and stall at world start with them off. Why it matters: it turns slow compiles into a whole-system stall, so the boot's progress depends on compile time far more than on the GPU. Direction (needs design, not a quick patch): run held replays off the releaser (per-queue release workers), or have the releaser only signal and let another thread run what that releases. No game files needed to reproduce: a mock with a held batch whose replay sleeps shows the other gates waiting. AI-assisted (Claude).
Author
Owner

@matinsanei commented on GitHub (Nov 26, 2026):

claiming: RT-FS-DISK-FREE-SPACE (implement GetDiskFreeSpaceA/W and GetDiskFreeSpaceExA/W with console roots mapping)
claiming: RT-XMEM-EXTENDED-VIRTUAL (implement TitleVirtualAllocEx, TitleVirtualProtectEx, and query shims)
claiming: RT-UCRT-ENV-TERMINATE-PROCESS (add UCRT environment shims and route TerminateProcess to end_run)

<!-- gh-comment-id:7185888432 --> @matinsanei commented on GitHub (Nov 26, 2026): claiming: RT-FS-DISK-FREE-SPACE (implement GetDiskFreeSpaceA/W and GetDiskFreeSpaceExA/W with console roots mapping) claiming: RT-XMEM-EXTENDED-VIRTUAL (implement TitleVirtualAllocEx, TitleVirtualProtectEx, and query shims) claiming: RT-UCRT-ENV-TERMINATE-PROCESS (add UCRT environment shims and route TerminateProcess to end_run)
Author
Owner

@Tyrannys commented on GitHub (Nov 26, 2026):

claiming: RT-TITLE-TEXTURE-SHOW-AFTER-UPLOAD - a slot-70 texture we make and fill through the staged upload has its T#s bound in set 0 from the first view on, so a draw before its first fill (always with LEONIDA_TITLE_FILL_ASYNC=1, and whenever an inline fill is skipped) samples an image never written and still UNDEFINED, and a draw on another queue can overlap the upload's layout transition. Fix: keep its T#s pending (fallback descriptor) until the first upload is submitted; the upload already orders later submissions on every queue. Idea from codec-d/cool_fox docs/findings.md (VICTORY_SHOW_AFTER), idea only, no code taken. AI-assisted (Claude Code).

<!-- gh-comment-id:7185889059 --> @Tyrannys commented on GitHub (Nov 26, 2026): claiming: RT-TITLE-TEXTURE-SHOW-AFTER-UPLOAD - a slot-70 texture we make and fill through the staged upload has its T#s bound in set 0 from the first view on, so a draw before its first fill (always with LEONIDA_TITLE_FILL_ASYNC=1, and whenever an inline fill is skipped) samples an image never written and still UNDEFINED, and a draw on another queue can overlap the upload's layout transition. Fix: keep its T#s pending (fallback descriptor) until the first upload is submitted; the upload already orders later submissions on every queue. Idea from codec-d/cool_fox docs/findings.md (VICTORY_SHOW_AFTER), idea only, no code taken. AI-assisted (Claude Code).
Author
Owner

@MoonEyes commented on GitHub (Nov 26, 2026):

claiming: TOOL-CHAIN-CHECK - tools/chain_check.py, a read-only report of one work folder (and optionally one runtime log) with one block of counts per link of the chain: the llvm-mc version recorded at translation time, expected against translated programs per shader family with the refusal reasons counted, the translator-source fingerprint of the folder against the checkout's, tagged against plain modules, and from a run log the failed device-slot and pipeline-create calls. It lines up the two ends: here 840 untranslated library compute programs (llvm-mc 21.1.8, see #1923) against 843 failed slot 67 calls at boot, which nothing reports today. Counts only, no game data; standard library, with a test on a synthetic folder. AI-assisted (Claude Code).

<!-- gh-comment-id:7185891745 --> @MoonEyes commented on GitHub (Nov 26, 2026): claiming: TOOL-CHAIN-CHECK - `tools/chain_check.py`, a read-only report of one work folder (and optionally one runtime log) with one block of counts per link of the chain: the llvm-mc version recorded at translation time, expected against translated programs per shader family with the refusal reasons counted, the translator-source fingerprint of the folder against the checkout's, tagged against plain modules, and from a run log the failed device-slot and pipeline-create calls. It lines up the two ends: here 840 untranslated library compute programs (llvm-mc 21.1.8, see #1923) against 843 failed slot 67 calls at boot, which nothing reports today. Counts only, no game data; standard library, with a test on a synthetic folder. AI-assisted (Claude Code).
Author
Owner

@matinsanei commented on GitHub (Nov 26, 2026):

done: RT-FS-DISK-FREE-SPACE -> #2227

<!-- gh-comment-id:7185973952 --> @matinsanei commented on GitHub (Nov 26, 2026): done: RT-FS-DISK-FREE-SPACE -> #2227
Author
Owner

@Tyrannys commented on GitHub (Nov 26, 2026):

claiming: RT-INDIRECT-DISPATCH-GROUP-LIMIT - the ExecuteIndirect clamp (indirect_clamp.comp) cuts every dispatch record at a fixed 65,535 groups per dimension, so on devices whose maxComputeWorkGroupCount[0] is far higher (NVIDIA 2^31-1) the groups past 65,535 never run; bound dispatch records by the device's own limit instead, with a GPU test where each group of a 70,000 x 1 x 1 indirect dispatch writes one marker. Idea from codec-d/cool_fox docs/findings.md ("Blocky patches: indirect dispatches cut at 65,535 groups"), idea only, no code taken. No game files. AI-assisted (Claude Code).

<!-- gh-comment-id:7185983481 --> @Tyrannys commented on GitHub (Nov 26, 2026): claiming: RT-INDIRECT-DISPATCH-GROUP-LIMIT - the ExecuteIndirect clamp (`indirect_clamp.comp`) cuts every dispatch record at a fixed 65,535 groups per dimension, so on devices whose `maxComputeWorkGroupCount[0]` is far higher (NVIDIA 2^31-1) the groups past 65,535 never run; bound dispatch records by the device's own limit instead, with a GPU test where each group of a 70,000 x 1 x 1 indirect dispatch writes one marker. Idea from codec-d/cool_fox docs/findings.md ("Blocky patches: indirect dispatches cut at 65,535 groups"), idea only, no code taken. No game files. AI-assisted (Claude Code).
Author
Owner

@fiestorra commented on GitHub (Nov 26, 2026):

finding: the boot now reaches the title's main menu and answers input, and the next stop is a device loss right after the menu. Same machine (RTX 4090, driver 32.0.16.2124, Windows 11), same package, main 71a769d7d, LEONIDA_D3D12=vulkan. All of it in the interactive session (1), with the title's own window (sgaWindowClass, "Americas", 2458x1353); a session-0 run shows the runtime's window instead (1028x744) and never gets past the cover, so any presentation number has to say which session it came from.

Two small things first, because they were my own mistakes and they blocked everything after them:

  • The boot is not frozen. It shows one image for several minutes and then reaches the menu; my earlier "frozen frame" finding was a misreading of a capture that stopped too early.
  • The menu ignores the keyboard because this tree's gta6rt was built without SDL3 (gameinput: served without SDL3 (no devices…)), and even with SDL3 the keyboard reaches the title only through the shim's virtual pad: LEONIDA_KEYBOARD_PAD=1 attaches it (arrows d-pad, Enter A, Backspace B, X/Y, Q/E shoulders, Esc Menu, Tab View, WASD left stick, mouse right stick). With both, the menu answers.

Where it stops now: after going through the menu the screen goes black and the run ends with

[rt] d3d12_xs: the releaser (thread 14796) has been inside one gate Signal (value 3) for 18446744073709551615 ms:
    the work the layer held behind the gate has not run
[rt] vulkan: the device was lost (a Vulkan call returned VK_ERROR_DEVICE_LOST); its fences now read UINT64_MAX
[rt] d3d12: staged title texture upload failed, format 133

The elapsed time is a uint64 underflow (2^64-1), so the wait that is printed is not a duration: the gate was recorded as signalled and then waited on, or the timestamp that starts it is zero. I am not calling that a deadlock — it is a number that cannot mean what it says, and it is the last layer message before the device loss.

Next to it, in the same run:

  • 203 DirectStorage entries failed with 0x89240030 (facility 924, code 30), all on data\ttdb\terrain\ttdb_terrain_* pools, logged with reason=missing-profile and a G:\.\… path. That is 203 requests the title asked for and did not get.
  • The frame rate at the menu is 1.35 frames/s (28 submissions in 5.9 s, 69,499 in all), with 226.83 ms worst-case per submission in heaps and 6.78 MiB per submission in aliased slot-133 shadow copies.
  • The title is still building compute pipeline libraries at that moment (lib_cs_01405 3.7 s for 1,454,592 B of SPIR-V, lib_cs_01410 4.8 s for 1,686,564 B), so "1.35 fps" mixes a slow frame with on-demand compile work.

Not proven: whether the device loss comes from a GPU timeout (a submission long enough for TDR), from the gate, or from the failed DirectStorage reads leaving the title with data it then misuses. The three are in the same window and none of them is ordered as cause and effect in the log.

Written with an AI assistant.

<!-- gh-comment-id:7185999138 --> @fiestorra commented on GitHub (Nov 26, 2026): finding: the boot now reaches the title's main menu and answers input, and the next stop is a device loss right after the menu. Same machine (RTX 4090, driver 32.0.16.2124, Windows 11), same package, `main` `71a769d7d`, `LEONIDA_D3D12=vulkan`. All of it **in the interactive session (1)**, with the title's own window (`sgaWindowClass`, "Americas", 2458x1353); a session-0 run shows the runtime's window instead (1028x744) and never gets past the cover, so any presentation number has to say which session it came from. Two small things first, because they were my own mistakes and they blocked everything after them: - The boot is not frozen. It shows one image for several minutes and then reaches the menu; my earlier "frozen frame" finding was a misreading of a capture that stopped too early. - The menu ignores the keyboard because this tree's `gta6rt` was built without SDL3 (`gameinput: served without SDL3 (no devices…)`), and even with SDL3 the keyboard reaches the title only through the shim's virtual pad: `LEONIDA_KEYBOARD_PAD=1` attaches it (arrows d-pad, Enter A, Backspace B, X/Y, Q/E shoulders, Esc Menu, Tab View, WASD left stick, mouse right stick). With both, the menu answers. Where it stops now: after going through the menu the screen goes black and the run ends with ``` [rt] d3d12_xs: the releaser (thread 14796) has been inside one gate Signal (value 3) for 18446744073709551615 ms: the work the layer held behind the gate has not run [rt] vulkan: the device was lost (a Vulkan call returned VK_ERROR_DEVICE_LOST); its fences now read UINT64_MAX [rt] d3d12: staged title texture upload failed, format 133 ``` The elapsed time is a uint64 underflow (`2^64-1`), so the wait that is printed is not a duration: the gate was recorded as signalled and then waited on, or the timestamp that starts it is zero. I am not calling that a deadlock — it is a number that cannot mean what it says, and it is the last layer message before the device loss. Next to it, in the same run: - **203 DirectStorage entries failed with `0x89240030`** (facility 924, code 30), all on `data\ttdb\terrain\ttdb_terrain_*` pools, logged with `reason=missing-profile` and a `G:\.\…` path. That is 203 requests the title asked for and did not get. - The frame rate at the menu is **1.35 frames/s** (28 submissions in 5.9 s, 69,499 in all), with 226.83 ms worst-case per submission in heaps and 6.78 MiB per submission in aliased slot-133 shadow copies. - The title is still building compute pipeline libraries at that moment (`lib_cs_01405` 3.7 s for 1,454,592 B of SPIR-V, `lib_cs_01410` 4.8 s for 1,686,564 B), so "1.35 fps" mixes a slow frame with on-demand compile work. Not proven: whether the device loss comes from a GPU timeout (a submission long enough for TDR), from the gate, or from the failed DirectStorage reads leaving the title with data it then misuses. The three are in the same window and none of them is ordered as cause and effect in the log. Written with an AI assistant.
Author
Owner

@tiguan26 commented on GitHub (Nov 26, 2026):

claiming: RT-RELEASER-HELD-REPLAY - follow-up to my releaser finding above. Held work released by a gate's Signal (or any other thread's pump) will run on the queue's own worker thread instead of on the thread that signalled. The worker is the one LEONIDA_SUBMIT_ASYNC already uses: release_ready already hands a release to it when that worker exists (vulkan_backend.h), so the change starts the worker on the first release when it isn't running, while submissions stay synchronous unless LEONIDA_SUBMIT_ASYNC is set. The list-value releaser then only signals, and one queue's slow first-use pipeline builds no longer hold up every other queue's gates. Order on a queue is unchanged (the worker runs held work in order under the queue's state lock, as today). oldest_held_seq uses the lock-free front number once the worker exists, so present barriers don't wait on a replay's state lock. LEONIDA_RELEASE_WORKER=0 keeps today's behaviour. Test: a Windows-build test under Wine where a held batch's release is slowed (a test-only delay switch) and a second queue's held work, released by another Signal, still runs at once; it fails on main. No game files. AI-assisted (Claude).

<!-- gh-comment-id:7186095186 --> @tiguan26 commented on GitHub (Nov 26, 2026): claiming: RT-RELEASER-HELD-REPLAY - follow-up to my releaser finding above. Held work released by a gate's Signal (or any other thread's pump) will run on the queue's own worker thread instead of on the thread that signalled. The worker is the one LEONIDA_SUBMIT_ASYNC already uses: `release_ready` already hands a release to it when that worker exists (vulkan_backend.h), so the change starts the worker on the first release when it isn't running, while submissions stay synchronous unless LEONIDA_SUBMIT_ASYNC is set. The list-value releaser then only signals, and one queue's slow first-use pipeline builds no longer hold up every other queue's gates. Order on a queue is unchanged (the worker runs held work in order under the queue's state lock, as today). `oldest_held_seq` uses the lock-free front number once the worker exists, so present barriers don't wait on a replay's state lock. LEONIDA_RELEASE_WORKER=0 keeps today's behaviour. Test: a Windows-build test under Wine where a held batch's release is slowed (a test-only delay switch) and a second queue's held work, released by another Signal, still runs at once; it fails on main. No game files. AI-assisted (Claude).
Author
Owner

@real-rusher commented on GitHub (Nov 26, 2026):

claiming: TOOL-STAGE-TIMELINE-TESTS: unit tests for tools/stage_timeline.py, and a missing or unreadable log is one error line instead of a traceback (tools/stage_timeline.py, tests/test_stage_timeline.py). AI-assisted: yes (Claude Code).

<!-- gh-comment-id:7186192877 --> @real-rusher commented on GitHub (Nov 26, 2026): claiming: TOOL-STAGE-TIMELINE-TESTS: unit tests for tools/stage_timeline.py, and a missing or unreadable log is one error line instead of a traceback (tools/stage_timeline.py, tests/test_stage_timeline.py). AI-assisted: yes (Claude Code).
Author
Owner

@Kal0s-design commented on GitHub (Nov 26, 2026):

claiming: D3D-CMDSIG-ARG-PARITY (new item) - CreateCommandSignature takes argument layouts that both WARP and a hardware D3D12 runtime refuse: a root signature with no root argument, root parameters that fall or overlap, a parameter of the wrong kind or past its range, a vertex buffer view with a dispatch, an index buffer view with a draw or a dispatch, duplicate views. Found with a differential fuzzer (layer vs live host); adds one helper and one call line in CreateCommandSignature plus host-compared cases in d3d12_vulkan_device_test. Overlap: #1737 edits the same function (refuses signatures with arguments before the draw); #1937 replays those arguments. AI-assisted: yes.

<!-- gh-comment-id:7186243138 --> @Kal0s-design commented on GitHub (Nov 26, 2026): claiming: D3D-CMDSIG-ARG-PARITY (new item) - CreateCommandSignature takes argument layouts that both WARP and a hardware D3D12 runtime refuse: a root signature with no root argument, root parameters that fall or overlap, a parameter of the wrong kind or past its range, a vertex buffer view with a dispatch, an index buffer view with a draw or a dispatch, duplicate views. Found with a differential fuzzer (layer vs live host); adds one helper and one call line in CreateCommandSignature plus host-compared cases in d3d12_vulkan_device_test. Overlap: #1737 edits the same function (refuses signatures with arguments before the draw); #1937 replays those arguments. AI-assisted: yes.
Author
Owner

@Krashgamer commented on GitHub (Nov 26, 2026):

claiming: RT-JOURNAL-STALE-PROBE — a large compute module whose journal file the driver no longer takes is compiled in the title's process (minutes per module, every submission waiting at the compile gate), because a file present skips the compile helper. AI-assisted (Claude Code, Claude Opus 5.5).

Where: runtime/shims/d3d12_vulkan_device.cpp, build_compute_pipeline. The compile helper is asked only when there is no journal file (!journal.has_file_data()). A file the driver misses is then seeded and compiled here.

Measured on an RTX 3080 10 GB (NVIDIA 610.88), i7-10700K, main + #2138 + #2179 + #1472 + #2195, LEONIDA_COMPILE_HELPER=1 LEONIDA_ASYNC_PIPELINES=1, 900 s boots through the story load:

  • Before: library modules of 3.6–4.7 MB were built in the title process on the dispatch worker (55–84 s each). The compile gate held submissions up to 83 s, 580 s in all.
  • With the change: the seeded create of a helper-sized module carries VK_PIPELINE_CREATE_FAIL_ON_PIPELINE_COMPILE_REQUIRED_BIT. 27 stale files answered VK_PIPELINE_COMPILE_REQUIRED in 0–16 ms. Each was removed and its build went the no-file way, to the helper.
  • With the helper's 120 s limits off as well (LEONIDA_COMPILE_HELPER_WAIT_MS=0 LEONIDA_COMPILE_HELPER_PENDING_MS=0): the longest gate wait was 455 ms (25 s in all), and no module was built in the title process.

A draft pull request follows, on top of #2179 (Depends on: #2179), because both change the same lines.

<!-- gh-comment-id:7186300903 --> @Krashgamer commented on GitHub (Nov 26, 2026): claiming: RT-JOURNAL-STALE-PROBE — a large compute module whose journal file the driver no longer takes is compiled in the title's process (minutes per module, every submission waiting at the compile gate), because a file present skips the compile helper. AI-assisted (Claude Code, Claude Opus 5.5). Where: `runtime/shims/d3d12_vulkan_device.cpp`, `build_compute_pipeline`. The compile helper is asked only when there is no journal file (`!journal.has_file_data()`). A file the driver misses is then seeded and compiled here. Measured on an RTX 3080 10 GB (NVIDIA 610.88), i7-10700K, main + #2138 + #2179 + #1472 + #2195, `LEONIDA_COMPILE_HELPER=1 LEONIDA_ASYNC_PIPELINES=1`, 900 s boots through the story load: - Before: library modules of 3.6–4.7 MB were built in the title process on the dispatch worker (55–84 s each). The compile gate held submissions up to 83 s, 580 s in all. - With the change: the seeded create of a helper-sized module carries `VK_PIPELINE_CREATE_FAIL_ON_PIPELINE_COMPILE_REQUIRED_BIT`. 27 stale files answered `VK_PIPELINE_COMPILE_REQUIRED` in 0–16 ms. Each was removed and its build went the no-file way, to the helper. - With the helper's 120 s limits off as well (`LEONIDA_COMPILE_HELPER_WAIT_MS=0 LEONIDA_COMPILE_HELPER_PENDING_MS=0`): the longest gate wait was 455 ms (25 s in all), and no module was built in the title process. A draft pull request follows, on top of #2179 (`Depends on: #2179`), because both change the same lines.
Author
Owner

@Krashgamer commented on GitHub (Nov 26, 2026):

done: RT-JOURNAL-STALE-PROBE -> #2228 (draft; depends on #2179)

<!-- gh-comment-id:7186333780 --> @Krashgamer commented on GitHub (Nov 26, 2026): done: RT-JOURNAL-STALE-PROBE -> #2228 (draft; depends on #2179)
Author
Owner

@GTAVIB4GTAVI commented on GitHub (Nov 26, 2026):

main does not boot on Win10 / RTX 2080 Ti since 7f3d0095a. Bisected, counts only, no game data.

Box: Windows 10 Pro 22H2 (19045), RTX 2080 Ti, driver 572.83, Vulkan device API 1.4.303, subgroup 32. Runtime built from leonida-main with -DLEONIDA_SDL3_FETCH=ON, SDL3 3.4.20 static. Booted with scripts/windows-boot/boot.ps1, -Seconds 75, default knobs, warm pipeline_cache.bin (8 206 243 520 B), a shader set translated by this tree's own tools/.

Signature, every bad run, reproducible 100 %: exit 0xC0000409, fastfail subcode 7 (FAST_FAIL_FATAL_APP_EXIT), WER faulting module ucrtbase.dll+0x7286e, at t ≈ 1.75 s. Nothing on stdout or stderr. The log ends after the harness line running game_scarlett_master.exe plus 4 XMemVirtualAlloc trace records — before the Vulkan device is created and before the first present: 11 log lines, 0 PresentX ok, 0 captures, on both a fresh and a warm pipeline cache.

Bisect (binary search over the 171 first-parent commits 237deb64c..a73a57e13, checked out and rebuilt in place so the exe path never changes, scored by whether any PresentX ok appears in a 75 s boot):

step commit presents verdict
1-5 d998fc71a b4ae8916e d4681041e 88479ff65 88b290fcb 912 / 886 / 720 / 234 / 304 GOOD
6 7f3d0095a 0 BAD
7 3abb99cad 278 GOOD (last bootable)
8 86dc3d86e — NOOP, touches no C++

First bad = 7f3d0095a, "d3d12: evict geometry views on range release and retry refused ranges" (+1083/−107 over 8 files: d3d12_geometry_views.h +463, d3d12_title_buffer_windows.h +178, d3d12_vulkan_device.cpp +62, xmem.cpp +29, new runtime/src/title_geometry_watch.h +80, title_va_alias.h +13, vulkan_backend.h +10, geometry_views_test.cpp +355).

It is not any memory knob. All of these were booted on the bad commit and all are identical — 11 lines, 0 presents, same subcode 7: LEONIDA_TITLE_HEAP=0, LEONIDA_WRITE_WATCH=0, LEONIDA_XMEM_SEC_COMMIT=0, LEONIDA_TITLE_WINDOWS_MB=0, LEONIDA_CONSOLE_HEAP_GPU=0, LEONIDA_TITLE_BUFFERS_MB=0, and LEONIDA_CONSOLE_D16S8=native on top of the heap knob. Free space and commit headroom were not near the limit (≈400 GB free, ≈20 GB commit free at the crash).

What it actually is: a C++ terminate(). A local, uncommitted diagnostic patch (env-gated LEONIDA_DEBUG_TRAPS=1, a SIGABRT/purecall/invalid-parameter trap that writes through WriteFile, not the CRT's buffered stderr) caught the abort from the inside:

[rt] dbg: SIGABRT (abort() reached)
 #00 <exe>+0x3acf1  #01 raise+0x1e1  #02 abort+0x31  #03 terminate+0x1f  #04 ucrtbase+0x...

Two details worth noting: std::set_terminate installed in wmain did not run, while ucrtbase's terminate did — so the escaping exception belongs to a module with its own dynamically-linked CRT, which on this build means one of the shim DLLs rather than gta6rt.exe. And the only throw in the files that merge adds is the host_heap allocator (runtime/src/title_page_watch.h:87,95 — std::bad_alloc / std::bad_array_new_length), which runtime/src/title_geometry_watch.h:207,227 calls on every note_released — exactly the four new xmem.cpp call sites. The log divergence matches: the good run's next line after the 4th XMemVirtualAlloc is loader: xgameruntime.dll is served by the shims (run-time load), and the bad run never prints it.

Confirmation in flight (result in a follow-up comment here): reverting that merge (git revert -m1 --no-commit 7f3d0095a) on both the bad commit and current main, and reporting presents. If that boots, the merge is the whole break. cc @qhukz13 — happy to test a fix or bisect further, the tree and cache are warm.

<!-- gh-comment-id:7186563530 --> @GTAVIB4GTAVI commented on GitHub (Nov 26, 2026): `main` does not boot on Win10 / RTX 2080 Ti since `7f3d0095a`. Bisected, counts only, no game data. **Box:** Windows 10 Pro 22H2 (19045), RTX 2080 Ti, driver 572.83, Vulkan device API 1.4.303, subgroup 32. Runtime built from `leonida-main` with `-DLEONIDA_SDL3_FETCH=ON`, SDL3 3.4.20 static. Booted with `scripts/windows-boot/boot.ps1`, `-Seconds 75`, default knobs, warm `pipeline_cache.bin` (8 206 243 520 B), a shader set translated by this tree's own `tools/`. **Signature, every bad run, reproducible 100 %:** exit `0xC0000409`, fastfail subcode `7` (`FAST_FAIL_FATAL_APP_EXIT`), WER faulting module `ucrtbase.dll+0x7286e`, at **t ≈ 1.75 s**. Nothing on stdout or stderr. The log ends after the harness line `running game_scarlett_master.exe` plus 4 `XMemVirtualAlloc` trace records — **before the Vulkan device is created and before the first present**: 11 log lines, **0 `PresentX ok`**, 0 captures, on both a fresh and a warm pipeline cache. **Bisect** (binary search over the 171 first-parent commits `237deb64c..a73a57e13`, checked out and rebuilt **in place** so the exe path never changes, scored by whether any `PresentX ok` appears in a 75 s boot): | step | commit | presents | verdict | |---|---|---|---| | 1-5 | `d998fc71a` `b4ae8916e` `d4681041e` `88479ff65` `88b290fcb` | 912 / 886 / 720 / 234 / 304 | GOOD | | 6 | **`7f3d0095a`** | **0** | **BAD** | | 7 | **`3abb99cad`** | **278** | **GOOD** (last bootable) | | 8 | `86dc3d86e` | — | NOOP, touches no C++ | First bad = `7f3d0095a`, *"d3d12: evict geometry views on range release and retry refused ranges"* (+1083/−107 over 8 files: `d3d12_geometry_views.h` +463, `d3d12_title_buffer_windows.h` +178, `d3d12_vulkan_device.cpp` +62, `xmem.cpp` +29, new `runtime/src/title_geometry_watch.h` +80, `title_va_alias.h` +13, `vulkan_backend.h` +10, `geometry_views_test.cpp` +355). **It is not any memory knob.** All of these were booted on the bad commit and all are identical — 11 lines, 0 presents, same subcode 7: `LEONIDA_TITLE_HEAP=0`, `LEONIDA_WRITE_WATCH=0`, `LEONIDA_XMEM_SEC_COMMIT=0`, `LEONIDA_TITLE_WINDOWS_MB=0`, `LEONIDA_CONSOLE_HEAP_GPU=0`, `LEONIDA_TITLE_BUFFERS_MB=0`, and `LEONIDA_CONSOLE_D16S8=native` on top of the heap knob. Free space and commit headroom were not near the limit (≈400 GB free, ≈20 GB commit free at the crash). **What it actually is: a C++ `terminate()`.** A local, uncommitted diagnostic patch (env-gated `LEONIDA_DEBUG_TRAPS=1`, a SIGABRT/`purecall`/invalid-parameter trap that writes through `WriteFile`, not the CRT's buffered stderr) caught the abort from the inside: ``` [rt] dbg: SIGABRT (abort() reached) #00 <exe>+0x3acf1 #01 raise+0x1e1 #02 abort+0x31 #03 terminate+0x1f #04 ucrtbase+0x... ``` Two details worth noting: `std::set_terminate` installed in `wmain` did **not** run, while `ucrtbase`'s `terminate` did — so the escaping exception belongs to a module with its own dynamically-linked CRT, which on this build means one of the shim DLLs rather than `gta6rt.exe`. And the only `throw` in the files that merge adds is the `host_heap` allocator (`runtime/src/title_page_watch.h:87,95` — `std::bad_alloc` / `std::bad_array_new_length`), which `runtime/src/title_geometry_watch.h:207,227` calls on every `note_released` — exactly the four new `xmem.cpp` call sites. The log divergence matches: the good run's next line after the 4th `XMemVirtualAlloc` is `loader: xgameruntime.dll is served by the shims (run-time load)`, and the bad run never prints it. **Confirmation in flight** (result in a follow-up comment here): reverting that merge (`git revert -m1 --no-commit 7f3d0095a`) on both the bad commit and current `main`, and reporting presents. If that boots, the merge is the whole break. cc @qhukz13 — happy to test a fix or bisect further, the tree and cache are warm.
Author
Owner

@Tauwni commented on GitHub (Nov 26, 2026):

claiming: DOCS-KK-NAN-CONSTANT-FIXTURES — ps_cndmask_sign_mods, ps_valu16_mad_sel and cs_fmt_all (word 293) fail on KosmicKrisp, which my earlier finding here reported without a cause. They are the (NAN) constant printing of the cs_bvh row: emit_src_component in Mesa's msl_type_inference.c (still in main). This adds a Known problems row to docs/testing.md, docs only.

AI-assisted (Claude Code).

<!-- gh-comment-id:7186612931 --> @Tauwni commented on GitHub (Nov 26, 2026): claiming: DOCS-KK-NAN-CONSTANT-FIXTURES — `ps_cndmask_sign_mods`, `ps_valu16_mad_sel` and `cs_fmt_all` (word 293) fail on KosmicKrisp, which my earlier finding here reported without a cause. They are the `(NAN)` constant printing of the `cs_bvh` row: `emit_src_component` in Mesa's `msl_type_inference.c` (still in `main`). This adds a Known problems row to `docs/testing.md`, docs only. AI-assisted (Claude Code).
Author
Owner

@Tauwni commented on GitHub (Nov 26, 2026):

done: DOCS-KK-NAN-CONSTANT-FIXTURES — #2229

AI-assisted (Claude Code).

<!-- gh-comment-id:7186621330 --> @Tauwni commented on GitHub (Nov 26, 2026): done: DOCS-KK-NAN-CONSTANT-FIXTURES — #2229 AI-assisted (Claude Code).
Author
Owner

@GTAVIB4GTAVI commented on GitHub (Nov 26, 2026):

Confirmation, as promised: reverting that merge makes both commits boot again. Same box, same 75 s boots, same warm pipeline cache and shader set.

arm PresentX ok ExecuteCommandLists log lines exit
7f3d0095a as-is (first bad) 0 0 11 0xC0000409
7f3d0095a + git revert -m1 --no-commit 7f3d0095a 470 944 86 924 ran to the 75 s limit
a73a57e13 (current main) as-is 0 0 11 0xC0000409
a73a57e13 + the same revert 494 989 94 014 ran to the 75 s limit

The last line of both booting arms is a normal [d3d12-trace] … CreateNativeGraphicsPipelineState ok, and the startup trace of both shows package_splash_window + package_splash_present and no fatal exception — the only two records are benign 0x406d1388 thread-naming events inside the NVIDIA driver. So 7f3d0095a is the whole break on this box — nothing else in 237deb64c..a73a57e13 contributes, and 3abb99cad was already the last bootable commit for exactly this reason.

Reverting #2094 is our local confirmation, not a proposed resolution: the eviction on range release is clearly the intended behaviour, and runtime/test/geometry_views_test.cpp (+355) passes here, so the escaping host_heap throw is probably just an allocation shape the retail title produces that the fixture does not. Happy to run anything @qhukz13 wants measured — the tree, the shader set and the 8.2 GB pipeline cache are all warm, and a boot+build cycle is ~3 min here.

<!-- gh-comment-id:7186644790 --> @GTAVIB4GTAVI commented on GitHub (Nov 26, 2026): Confirmation, as promised: reverting that merge makes both commits boot again. Same box, same 75 s boots, same warm pipeline cache and shader set. | arm | `PresentX ok` | `ExecuteCommandLists` | log lines | exit | |---|---|---|---|---| | `7f3d0095a` as-is (first bad) | 0 | 0 | 11 | `0xC0000409` | | `7f3d0095a` + `git revert -m1 --no-commit 7f3d0095a` | **470** | 944 | 86 924 | ran to the 75 s limit | | `a73a57e13` (current main) as-is | 0 | 0 | 11 | `0xC0000409` | | `a73a57e13` + the same revert | **494** | 989 | 94 014 | ran to the 75 s limit | The last line of both booting arms is a normal `[d3d12-trace] … CreateNativeGraphicsPipelineState ok`, and the startup trace of both shows `package_splash_window` + `package_splash_present` and **no fatal exception** — the only two records are benign `0x406d1388` thread-naming events inside the NVIDIA driver. So `7f3d0095a` is the whole break on this box — nothing else in `237deb64c..a73a57e13` contributes, and `3abb99cad` was already the last bootable commit for exactly this reason. Reverting #2094 is our local confirmation, not a proposed resolution: the eviction on range release is clearly the intended behaviour, and `runtime/test/geometry_views_test.cpp` (+355) passes here, so the escaping `host_heap` throw is probably just an allocation shape the retail title produces that the fixture does not. Happy to run anything @qhukz13 wants measured — the tree, the shader set and the 8.2 GB pipeline cache are all warm, and a boot+build cycle is ~3 min here.
Author
Owner

@HasiKe commented on GitHub (Nov 26, 2026):

Measured the compute pipeline journal (main a73a57e13 + #2195, so it boots; RTX 2070 SUPER, NVIDIA 616.56, Windows 11 Pro 26300, MSVC (VS 18) RelWithDebInfo, own 1.0.2.1 package). AI-assisted.

This answers my earlier finding here that the session cache stops growing at about 780 compute pipelines. Three boots in a row, same folder, the journal starting empty:

boot length compute builds slow (>2 s) of the previous boot's slow ones, slow again journal files read
1 ~200 s (stopped) 1,387 37 (142 s) - 0
2 300 s 1,471 70 (270 s) 0 of 37 93
3 300 s 1,564 76 (264 s) 0 of 70 175
  • Every pipeline that was slow in one boot came from its journal file in the next one. The slow builds left in each boot were all pipelines no earlier boot had reached, because each boot got further into the game.
  • The 123 MB session cache was still loaded and still served about 1,300 builds per boot. The journal adds what the frozen session cache no longer takes. On this driver that's 151 files, 352 MB after boot 2.
  • The NVIDIA shader cache size setting (Unlimited) made no difference to the session cache, as posted before. The journal doesn't depend on it.
  • None of the three boots had an exception or a device loss. On this driver the earlier "submissions stop after the first world frame" frontier from my older comments is the compile wait, and the journal clears it across boots. --precompile-pipelines would clear it ahead of play.
<!-- gh-comment-id:7186714277 --> @HasiKe commented on GitHub (Nov 26, 2026): Measured the compute pipeline journal (main a73a57e13 + #2195, so it boots; RTX 2070 SUPER, NVIDIA 616.56, Windows 11 Pro 26300, MSVC (VS 18) RelWithDebInfo, own 1.0.2.1 package). AI-assisted. This answers my earlier finding here that the session cache stops growing at about 780 compute pipelines. Three boots in a row, same folder, the journal starting empty: | boot | length | compute builds | slow (>2 s) | of the previous boot's slow ones, slow again | journal files read | |---|---|---|---|---|---| | 1 | ~200 s (stopped) | 1,387 | 37 (142 s) | - | 0 | | 2 | 300 s | 1,471 | 70 (270 s) | 0 of 37 | 93 | | 3 | 300 s | 1,564 | 76 (264 s) | 0 of 70 | 175 | - Every pipeline that was slow in one boot came from its journal file in the next one. The slow builds left in each boot were all pipelines no earlier boot had reached, because each boot got further into the game. - The 123 MB session cache was still loaded and still served about 1,300 builds per boot. The journal adds what the frozen session cache no longer takes. On this driver that's 151 files, 352 MB after boot 2. - The NVIDIA shader cache size setting (Unlimited) made no difference to the session cache, as posted before. The journal doesn't depend on it. - None of the three boots had an exception or a device loss. On this driver the earlier "submissions stop after the first world frame" frontier from my older comments is the compile wait, and the journal clears it across boots. `--precompile-pipelines` would clear it ahead of play.
Author
Owner

@amine23012004 commented on GitHub (Nov 26, 2026):

claiming: TEST-D16-MODELS-CACHE - tools/d16_format_probe.py: models16()/models32() are pure functions of (kind, bits, value) but are called about 955,000 times for 131,000 distinct inputs in tests/test_d16_format_probe.py (exact Fraction arithmetic each time); cache them per input and return a fresh dict per call. Same bits for every input of every format. tests/test_d16_format_probe.py 26.7 s -> 7.7 s, tests/test_d16_image_probe.py 21.8 s -> 13.1 s. Follows #3650 (integer rounding), no open PR touches these files. No game files, no GPU. AI-assisted.

<!-- gh-comment-id:7186948302 --> @amine23012004 commented on GitHub (Nov 26, 2026): claiming: TEST-D16-MODELS-CACHE - `tools/d16_format_probe.py`: `models16()`/`models32()` are pure functions of (kind, bits, value) but are called about 955,000 times for 131,000 distinct inputs in `tests/test_d16_format_probe.py` (exact `Fraction` arithmetic each time); cache them per input and return a fresh dict per call. Same bits for every input of every format. `tests/test_d16_format_probe.py` 26.7 s -> 7.7 s, `tests/test_d16_image_probe.py` 21.8 s -> 13.1 s. Follows #3650 (integer rounding), no open PR touches these files. No game files, no GPU. AI-assisted.
Author
Owner

@Tyrannys commented on GitHub (Nov 26, 2026):

done: RT-INDIRECT-DISPATCH-GROUP-LIMIT -> #2230 (https://github.com/ubiquitarianism/leonida/pull/2230). The ExecuteIndirect clamp now bounds dispatch records by the device's own maxComputeWorkGroupCount per axis (pushed to indirect_clamp.comp) instead of a fixed 65,535. The 2^20 groups-per-dispatch cap and the list budget are unchanged, and mesh dispatches keep 65,535. A new GPU case in indirect_clamp_test runs real indirect dispatches with one marker per group: 70,000 x 1 x 1 left 4,465 groups unrun on main and runs all of them exactly once with the fix; 65,535 in x and in y runs exactly once on both. Not covered: a dispatch above the device's own limit (y/z > 65,535, or x > 65,535 on a 65,535-x device), which would need a group-base offset in the translated shader. RTX 4070 SUPER, 621.01, Windows 11, 0 validation errors. Idea from codec-d/cool_fox docs/findings.md, idea only, no code taken. No game files. AI-assisted (Claude Code).

<!-- gh-comment-id:7187089197 --> @Tyrannys commented on GitHub (Nov 26, 2026): done: RT-INDIRECT-DISPATCH-GROUP-LIMIT -> #2230 (https://github.com/ubiquitarianism/leonida/pull/2230). The ExecuteIndirect clamp now bounds dispatch records by the device's own `maxComputeWorkGroupCount` per axis (pushed to `indirect_clamp.comp`) instead of a fixed 65,535. The 2^20 groups-per-dispatch cap and the list budget are unchanged, and mesh dispatches keep 65,535. A new GPU case in `indirect_clamp_test` runs real indirect dispatches with one marker per group: 70,000 x 1 x 1 left 4,465 groups unrun on main and runs all of them exactly once with the fix; 65,535 in x and in y runs exactly once on both. Not covered: a dispatch above the device's own limit (y/z > 65,535, or x > 65,535 on a 65,535-x device), which would need a group-base offset in the translated shader. RTX 4070 SUPER, 621.01, Windows 11, 0 validation errors. Idea from codec-d/cool_fox docs/findings.md, idea only, no code taken. No game files. AI-assisted (Claude Code).
Author
Owner

@MoonEyes commented on GitHub (Nov 26, 2026):

done: TOOL-CHAIN-CHECK -> #2231

<!-- gh-comment-id:7187117385 --> @MoonEyes commented on GitHub (Nov 26, 2026): done: TOOL-CHAIN-CHECK -> #2231
Author
Owner

@Tyrannys commented on GitHub (Nov 26, 2026):

finding: world frames on Windows / NVIDIA (RTX 4070 SUPER, NVIDIA 621.01, Windows 11, 64 GB). Counts only, frames kept locally.

With azsekazvamdimitar's recipe (06:42) plus MoonEyes' LEONIDA_COMPILE_GATE=0 (07:32), the run reached the world under the opening credits: a night city skyline with a character. The HUD was also seen earlier in the run.

Tree: main a73a57e13 + #1851 #1905 #1957 #1886 #1894 #1914 #1882 #2195 #2113 #1592 #2097. #1592 conflicts with main in 3 files, resolved locally. Two main tests needed a one-line local fix for #1592's native_pso::plan signature. Built with SDL3 (-DLEONIDA_SDL3_FETCH=ON), -DLEONIDA_VULKAN_HEADERS_FETCH=ON and -DLEONIDA_REQUIRE_VULKAN=ON; the log shows the Vulkan device. Shaders: 26,503 main corpus, 18,493 fspx_gfx, 2,683 library compute, 29 FSPX, all from the #1592 tree's translator. Warm offline cache of 26,503 main pipelines.

Settings: LEONIDA_ASYNC_PIPELINES=0 LEONIDA_COMPILE_GATE=0 LEONIDA_SKIP_COMPUTE=<the 724 library compute programs of 2 MiB or more, local list> LEONIDA_RT_AS=off LEONIDA_DEVICE_TYPE=6 LEONIDA_DEVICE_FAULT=0 LEONIDA_TITLE_WATCHDOG=0 plus a local LEONIDA_TITLE_WATCHDOG_KICK, LEONIDA_MAP_READBACK=1 LEONIDA_HOST_IMAGE_COPY=0 LEONIDA_ARENA_MB=4095 LEONIDA_TITLE_WINDOWS_MB=4096 LEONIDA_SERIAL_BIG_COMPILES=0 LEONIDA_FRAME_PACING=1 LEONIDA_PRESENT_NO_TEAR=1 LEONIDA_COMPILE_WORKERS=6 LEONIDA_COMPUTE_WARMUP_LIVE_MAX_BYTES=131072 LEONIDA_AUDIO=silent. Input: KEYBOARD_PAD=always with a 21-press script. The SDL3 shim holds each scripted press until the title has read it, so presses no longer drop.

run compile gate end device loss PresentX game state 3 at furthest picture
F2 on full 1,808 s none 1,497 175 s loading-screen art (~620 s)
F3 off title crash at 1,093 s (write fault at +0x52716ec after a read of 0xffffffffffffffff) none 3,275 ok, 1 failed 260 s opening credits art
F3b off full 1,804 s none 2,104 125 s world under the credits
  • In F3b, frames ran at ~10/s from 60 to 240 s. In the world they ran at 1-3 a minute, while graphics pipelines were built one at a time (the same black stretch as azsekazvamdimitar's). Indirect graphics: recorded 66,666, emitted 65,536, 0 skipped. 193 of the skipped programs were asked for.
  • The F3 crash did not repeat in F3b. One run each, so it may be timing.
  • Without LEONIDA_TITLE_WATCHDOG_KICK, LEONIDA_TITLE_WATCHDOG=0 alone leaves the watchdog armed on current main. An async run (E) died to the watchdog at 388 s.
  • Slot 67 (DeserializeComputePipelineStateX): 2,718 calls, all ok.

Next: the same recipe on the warmer heavy cache.

AI-assisted (Claude Code).

<!-- gh-comment-id:7187292555 --> @Tyrannys commented on GitHub (Nov 26, 2026): finding: world frames on Windows / NVIDIA (RTX 4070 SUPER, NVIDIA 621.01, Windows 11, 64 GB). Counts only, frames kept locally. With azsekazvamdimitar's recipe (06:42) plus MoonEyes' `LEONIDA_COMPILE_GATE=0` (07:32), the run reached the world under the opening credits: a night city skyline with a character. The HUD was also seen earlier in the run. **Tree:** `main` a73a57e13 + #1851 #1905 #1957 #1886 #1894 #1914 #1882 #2195 #2113 #1592 #2097. #1592 conflicts with `main` in 3 files, resolved locally. Two `main` tests needed a one-line local fix for #1592's `native_pso::plan` signature. Built with SDL3 (`-DLEONIDA_SDL3_FETCH=ON`), `-DLEONIDA_VULKAN_HEADERS_FETCH=ON` and `-DLEONIDA_REQUIRE_VULKAN=ON`; the log shows the Vulkan device. Shaders: 26,503 main corpus, 18,493 `fspx_gfx`, 2,683 library compute, 29 FSPX, all from the #1592 tree's translator. Warm offline cache of 26,503 main pipelines. **Settings:** `LEONIDA_ASYNC_PIPELINES=0 LEONIDA_COMPILE_GATE=0 LEONIDA_SKIP_COMPUTE=<the 724 library compute programs of 2 MiB or more, local list> LEONIDA_RT_AS=off LEONIDA_DEVICE_TYPE=6 LEONIDA_DEVICE_FAULT=0 LEONIDA_TITLE_WATCHDOG=0` plus a local `LEONIDA_TITLE_WATCHDOG_KICK`, `LEONIDA_MAP_READBACK=1 LEONIDA_HOST_IMAGE_COPY=0 LEONIDA_ARENA_MB=4095 LEONIDA_TITLE_WINDOWS_MB=4096 LEONIDA_SERIAL_BIG_COMPILES=0 LEONIDA_FRAME_PACING=1 LEONIDA_PRESENT_NO_TEAR=1 LEONIDA_COMPILE_WORKERS=6 LEONIDA_COMPUTE_WARMUP_LIVE_MAX_BYTES=131072 LEONIDA_AUDIO=silent`. Input: `KEYBOARD_PAD=always` with a 21-press script. The SDL3 shim holds each scripted press until the title has read it, so presses no longer drop. | run | compile gate | end | device loss | PresentX | game state 3 at | furthest picture | |---|---|---|---|---|---|---| | F2 | on | full 1,808 s | none | 1,497 | 175 s | loading-screen art (~620 s) | | F3 | off | title crash at 1,093 s (write fault at `+0x52716ec` after a read of `0xffffffffffffffff`) | none | 3,275 ok, 1 failed | 260 s | opening credits art | | F3b | off | full 1,804 s | none | 2,104 | 125 s | world under the credits | - In F3b, frames ran at ~10/s from 60 to 240 s. In the world they ran at 1-3 a minute, while graphics pipelines were built one at a time (the same black stretch as azsekazvamdimitar's). Indirect graphics: recorded 66,666, emitted 65,536, 0 skipped. 193 of the skipped programs were asked for. - The F3 crash did not repeat in F3b. One run each, so it may be timing. - Without `LEONIDA_TITLE_WATCHDOG_KICK`, `LEONIDA_TITLE_WATCHDOG=0` alone leaves the watchdog armed on current `main`. An async run (E) died to the watchdog at 388 s. - Slot 67 (`DeserializeComputePipelineStateX`): 2,718 calls, all ok. Next: the same recipe on the warmer heavy cache. AI-assisted (Claude Code).
Author
Owner

@real-rusher commented on GitHub (Nov 26, 2026):

done: TOOL-STAGE-TIMELINE-TESTS -> #2232

<!-- gh-comment-id:7187324673 --> @real-rusher commented on GitHub (Nov 26, 2026): done: TOOL-STAGE-TIMELINE-TESTS -> #2232
Author
Owner

@GTAVIB4GTAVI commented on GitHub (Nov 26, 2026):

Boot record, current main with #2094 reverted — the first-run page now advances, and the D16S8 knob is no longer needed. Win10 / RTX 2080 Ti. Counts only, no game data, no title addresses.

Tree: a73a57e13 + local git revert -m1 --no-commit 7f3d0095a (see #1608 #issuecomment-7186563530 and #issuecomment-7186644790 — without that revert this build presents nothing at all). SDL3 3.4.20 static, -DLEONIDA_SDL3_FETCH=ON. Shader set translated by this tree's own tools/. Booted with scripts/windows-boot/boot.ps1, -Seconds 900, 245 scripted buttons (a/down/up/rsdown), 575 press events served, --first-run-ui switch set as the mode, capture every 20 frames.

arm knobs PresentX ok failed CreatePipelineState failed stale-shader rejects depth texture refused captures distinct md5 how it ended
mr_newmain none 624 0 4 0 0 16 (last frame 301) 4 ran its full 902 s
mr_d16s8 LEONIDA_CONSOLE_D16S8=native 712 0 4 0 0 18 (last frame 341) 4 exited by itself at t=864 s, 0xC0000005

What changed on screen (mr_newmain, per-capture mean/colour/off-background from our own capture stats):

frame distinct colours off-background extent changed vs previous
1 → 241 176 474 full screen 0.0 % — package splash, byte-identical
261 171 399 px, bottom-right footer 91.2 % — left the splash
281 7 618 4 314 px, centred 556×112 block 2.7 %
301 1 807 1 212 px, centred 432×48 block 2.4 %

The point is the last two rows. On 237deb64c the title reached a 138-colour flat page with one ~644×16 footer caption and never changed again across 22 a presses and 40 captures (our record above at #issuecomment-7183169051). With the scripted 6c8a89dea route on current main, the page changed twice more, and the new content is a centred block that shrinks between captures — i.e. something being dismissed or advanced, not a footer redrawing. So the route documented in docs/first_run_ui.md does get through, given a runtime that boots.

The depth-format knob appears obsolete. Run 11 (237deb64c) needed LEONIDA_CONSOLE_D16S8=native to leave the splash at all. On current main the arm without it leaves the splash at frame 261 with 0 depth texture refused lines, and the control arm with it reaches the same two screens at the same frames. That is consistent with 9a375a064 + 40a69e008 + 3cf0a41bc having fixed it properly; worth someone saying so in docs/ so the next person doesn't carry the knob.

Still at the same wall: 0 Bink decode lines, 0 BuildAcceleration, 0 DrawMesh, and 183 device-fault: submitted dispatch for library/lib_cs_01726 groups=5,5,33 (the same shader that was the only fault in the 237deb64c runs, now 183× — it is the raytracing-compute half, and 0 acceleration structures are ever built).

One caution for anyone comparing frame counts: this boot ran at 0.69 presents/s because the runtime was building 359 compute pipelines on demand — our pipeline_cache.bin was written by a 237deb64c-era runtime, so it misses on current main. With a cache that matches the tree the same box does 7.4 presents/s. A slow boot is not the same as a stuck one: the press route kept advancing the page at 0.69/s.

<!-- gh-comment-id:7187346695 --> @GTAVIB4GTAVI commented on GitHub (Nov 26, 2026): Boot record, current main with #2094 reverted — **the first-run page now advances**, and the D16S8 knob is no longer needed. Win10 / RTX 2080 Ti. Counts only, no game data, no title addresses. **Tree:** `a73a57e13` + local `git revert -m1 --no-commit 7f3d0095a` (see #1608 `#issuecomment-7186563530` and `#issuecomment-7186644790` — without that revert this build presents nothing at all). SDL3 3.4.20 static, `-DLEONIDA_SDL3_FETCH=ON`. Shader set translated by this tree's own `tools/`. Booted with `scripts/windows-boot/boot.ps1`, `-Seconds 900`, 245 scripted buttons (`a`/`down`/`up`/`rsdown`), 575 press events served, `--first-run-ui` switch set as the mode, capture every 20 frames. | arm | knobs | `PresentX ok` | failed | `CreatePipelineState failed` | stale-shader rejects | **`depth texture refused`** | captures | distinct md5 | how it ended | |---|---|---|---|---|---|---|---|---|---| | `mr_newmain` | none | 624 | **0** | **4** | **0** | **0** | 16 (last frame 301) | **4** | ran its full 902 s | | `mr_d16s8` | `LEONIDA_CONSOLE_D16S8=native` | 712 | **0** | **4** | **0** | **0** | 18 (last frame 341) | **4** | exited by itself at t=864 s, `0xC0000005` | **What changed on screen** (`mr_newmain`, per-capture mean/colour/off-background from our own capture stats): | frame | distinct colours | off-background extent | changed vs previous | |---|---|---|---| | 1 → 241 | 176 474 | full screen | 0.0 % — package splash, byte-identical | | 261 | 171 | 399 px, bottom-right footer | 91.2 % — left the splash | | 281 | **7 618** | 4 314 px, **centred** 556×112 block | 2.7 % | | 301 | 1 807 | 1 212 px, centred 432×48 block | 2.4 % | The point is the last two rows. On `237deb64c` the title reached a **138-colour flat page with one ~644×16 footer caption and never changed again across 22 `a` presses and 40 captures** (our record above at `#issuecomment-7183169051`). With the scripted `6c8a89dea` route on current main, the page changed **twice more**, and the new content is a *centred* block that shrinks between captures — i.e. something being dismissed or advanced, not a footer redrawing. So the route documented in `docs/first_run_ui.md` does get through, given a runtime that boots. **The depth-format knob appears obsolete.** Run 11 (`237deb64c`) needed `LEONIDA_CONSOLE_D16S8=native` to leave the splash at all. On current main the arm **without** it leaves the splash at frame 261 with **0 `depth texture refused` lines**, and the control arm **with** it reaches the same two screens at the same frames. That is consistent with `9a375a064` + `40a69e008` + `3cf0a41bc` having fixed it properly; worth someone saying so in `docs/` so the next person doesn't carry the knob. **Still at the same wall:** 0 `Bink` decode lines, 0 `BuildAcceleration`, 0 `DrawMesh`, and **183 `device-fault: submitted dispatch` for `library/lib_cs_01726` `groups=5,5,33`** (the same shader that was the only fault in the `237deb64c` runs, now 183× — it is the raytracing-compute half, and 0 acceleration structures are ever built). **One caution for anyone comparing frame counts:** this boot ran at **0.69 presents/s** because the runtime was building **359 compute pipelines on demand** — our `pipeline_cache.bin` was written by a `237deb64c`-era runtime, so it misses on current main. With a cache that matches the tree the same box does 7.4 presents/s. A slow boot is not the same as a stuck one: the press route kept advancing the page at 0.69/s.
Author
Owner

@plamea commented on GitHub (Nov 26, 2026):

finding (follow-up to sdelectron's three crosslane_fuzz findings above: v_mbcnt with a data SGPR, v_readlane through a parked mask, the partial-wave32 mask word): none of them needs a fix of its own. All three are the lane-mask-read-as-data bug (SHADER-MASK-AS-DATA) and go away with either #1397 or #1043.

The mbcnt diagnosis points at the wrong line. Minimizing cs_xl64_100034: deleting only op 12, v_mov_b32 v2, vcc_lo, removes all 58 mismatches. On main that move gives 0xffffffff in the active lanes 32-63 instead of VCC[31:0] = 0, so v7 = mbcnt(exec) + v2 becomes -1 and the later v_mbcnt_lo_u32_b32 v5, s14, v7 gives 16 + (-1) = 0xf. The mbcnt code at tools/rdna2spirv.py:8408 is right; please don't change it for this.

How it was checked (CPU only, no GPU): the fuzzer's own programs, assembled with llvm-mc 23.1.6 (conda-forge llvm-tools) and translated by tools/rdna2spirv.py (wave64 with --wave64-emulate, wave32 natively). Each was run by tests/semantic/spirv_mini_interp.run_workgroup on 32-lane subgroups and compared word for word with crosslane_fuzz's ISA model. On main this reproduces the RTX 5080 numbers exactly: 0x10 vs 0xf, 0x74cd0ebc + lane vs mask bits, and 0x0003ffff vs 0xffffffff.

crosslane_fuzz seed 1, 100 programs, --wave both, default 24 ops:

tree programs that differ from the model
main a73a57e13 10: 100014, 100021*, 100023, 100026, 100034, 100075, 100077, 100082*, 100089*, 100098*
#1397 e3e119a46 0
#1043 4d58a05d6 4: 100014, 100023, 100075 (the v_readfirstlane cases) and 100082*

* the program has a hypothesis op, which the fuzzer reports separately.

So on this sweep #1397 covers everything #1043 does, plus the three v_readfirstlane cases. This complements ecox982745's RTX 4090 table on #1397, where #1043 did better on the independent-EXEC wave32 fixtures: each PR covers cases the other misses.

No game data. AI-assisted (Claude Code).

<!-- gh-comment-id:7187352432 --> @plamea commented on GitHub (Nov 26, 2026): finding (follow-up to sdelectron's three crosslane_fuzz findings above: `v_mbcnt` with a data SGPR, `v_readlane` through a parked mask, the partial-wave32 mask word): none of them needs a fix of its own. All three are the lane-mask-read-as-data bug (SHADER-MASK-AS-DATA) and go away with either #1397 or #1043. **The mbcnt diagnosis points at the wrong line.** Minimizing `cs_xl64_100034`: deleting only op 12, `v_mov_b32 v2, vcc_lo`, removes all 58 mismatches. On `main` that move gives `0xffffffff` in the active lanes 32-63 instead of VCC[31:0] = 0, so `v7 = mbcnt(exec) + v2` becomes -1 and the later `v_mbcnt_lo_u32_b32 v5, s14, v7` gives 16 + (-1) = `0xf`. The mbcnt code at `tools/rdna2spirv.py:8408` is right; please don't change it for this. **How it was checked (CPU only, no GPU):** the fuzzer's own programs, assembled with llvm-mc 23.1.6 (conda-forge `llvm-tools`) and translated by `tools/rdna2spirv.py` (wave64 with `--wave64-emulate`, wave32 natively). Each was run by `tests/semantic/spirv_mini_interp.run_workgroup` on 32-lane subgroups and compared word for word with `crosslane_fuzz`'s ISA model. On `main` this reproduces the RTX 5080 numbers exactly: `0x10` vs `0xf`, `0x74cd0ebc + lane` vs mask bits, and `0x0003ffff` vs `0xffffffff`. `crosslane_fuzz` seed 1, 100 programs, `--wave both`, default 24 ops: | tree | programs that differ from the model | |---|---| | `main` `a73a57e13` | 10: 100014, 100021\*, 100023, 100026, 100034, 100075, 100077, 100082\*, 100089\*, 100098\* | | #1397 `e3e119a46` | **0** | | #1043 `4d58a05d6` | 4: 100014, 100023, 100075 (the `v_readfirstlane` cases) and 100082\* | \* the program has a hypothesis op, which the fuzzer reports separately. So on this sweep #1397 covers everything #1043 does, plus the three `v_readfirstlane` cases. This complements ecox982745's RTX 4090 table on #1397, where #1043 did better on the independent-EXEC wave32 fixtures: each PR covers cases the other misses. No game data. AI-assisted (Claude Code).
Author
Owner

@plamea commented on GitHub (Nov 26, 2026):

claiming: OLD-9960 - carry forward old-pr/9960 (draft #226, by ramon-victor): the GPU fixture cs_w32_cvt_flr_rpi for v_cvt_flr_i32_f32 and v_cvt_rpi_i32_f32 (floor vs truncate, exact floor(x + 0.5), VOP3 abs/neg, NaN by sign bit), rebased on main with the original author kept. Will run it on an NVIDIA RTX 3050 Laptop (Windows 11) and report the words. No game files. AI-assisted (Claude Code).

<!-- gh-comment-id:7187591961 --> @plamea commented on GitHub (Nov 26, 2026): claiming: OLD-9960 - carry forward old-pr/9960 (draft #226, by ramon-victor): the GPU fixture `cs_w32_cvt_flr_rpi` for `v_cvt_flr_i32_f32` and `v_cvt_rpi_i32_f32` (floor vs truncate, exact floor(x + 0.5), VOP3 abs/neg, NaN by sign bit), rebased on main with the original author kept. Will run it on an NVIDIA RTX 3050 Laptop (Windows 11) and report the words. No game files. AI-assisted (Claude Code).
Author
Owner

@Tyrannys commented on GitHub (Nov 26, 2026):

finding: on the world-frames recipe from my comment above (RTX 4070 SUPER, NVIDIA 621.01, Windows 11), 2 of 3 runs died as title access violations at about 1,070-1,090 s. There was no device loss. Counts and offsets only.

Tree and settings: exactly as in that comment (main a73a57e13 + #1851 #1905 #1957 #1886 #1894 #1914 #1882 #2195 #2113 #1592 #2097; sync pipelines, LEONIDA_COMPILE_GATE=0, skip list of the 724 library programs of 2 MiB or more, LEONIDA_DEVICE_FAULT=0). The tree contains #2094 (7f3d0095a).

run end last title faults in the log (runtime's own xmem lines)
F3 exit 0xC0000005 at 1,093 s two title read faults on 0xffffffffffffffff (state 0, "outside stream CPU window, unmaps 252511, no recent matching unmap"), then a write fault in the title at +0x52716ec
F3b ran its full 1,804 s none fatal
F3c exit 0xC0000005 at 1,072 s title read faults on 0x6 and on a reserved, uncommitted page (state 0x2000, type 0x20000, "unmaps 291291, no recent matching unmap"); the runtime then says "left to the title: commit 0, in a window", and the title faults at +0x25782ed
  • The fatal reads are wild pointers (all ones, a small integer, an uncommitted page), not one fixed address. Both crashes came at the same point in the run, while the world was rendering at 1-3 frames a minute.
  • "left to the title: commit 0, in a window" alone is not the cause. F3b logged 2,447 such faults that the title handled, and it survived. F2 logged 26 and also survived.
  • Unmap counts at the crash were 252,511 and 291,291, so there is a lot of unmapping by then. #2094 changed eviction on range release in xmem.cpp / d3d12_title_buffer_windows.h and is in this tree. That is only a lead, not a cause: I have not run with #2094 reverted.

Reproducing it needs the retail package and a run of about 18 minutes. The next check here is the same recipe with #2094 reverted.

AI-assisted (Claude Code).

<!-- gh-comment-id:7187794469 --> @Tyrannys commented on GitHub (Nov 26, 2026): finding: on the world-frames recipe from my comment above (RTX 4070 SUPER, NVIDIA 621.01, Windows 11), 2 of 3 runs died as title access violations at about 1,070-1,090 s. There was no device loss. Counts and offsets only. **Tree and settings:** exactly as in that comment (`main` a73a57e13 + #1851 #1905 #1957 #1886 #1894 #1914 #1882 #2195 #2113 #1592 #2097; sync pipelines, `LEONIDA_COMPILE_GATE=0`, skip list of the 724 library programs of 2 MiB or more, `LEONIDA_DEVICE_FAULT=0`). The tree contains #2094 (`7f3d0095a`). | run | end | last title faults in the log (runtime's own `xmem` lines) | |---|---|---| | F3 | exit 0xC0000005 at 1,093 s | two title read faults on `0xffffffffffffffff` (state 0, "outside stream CPU window, unmaps 252511, no recent matching unmap"), then a write fault in the title at `+0x52716ec` | | F3b | ran its full 1,804 s | none fatal | | F3c | exit 0xC0000005 at 1,072 s | title read faults on `0x6` and on a reserved, uncommitted page (state `0x2000`, type `0x20000`, "unmaps 291291, no recent matching unmap"); the runtime then says "left to the title: commit 0, in a window", and the title faults at `+0x25782ed` | - The fatal reads are wild pointers (all ones, a small integer, an uncommitted page), not one fixed address. Both crashes came at the same point in the run, while the world was rendering at 1-3 frames a minute. - "left to the title: commit 0, in a window" alone is not the cause. F3b logged 2,447 such faults that the title handled, and it survived. F2 logged 26 and also survived. - Unmap counts at the crash were 252,511 and 291,291, so there is a lot of unmapping by then. #2094 changed eviction on range release in `xmem.cpp` / `d3d12_title_buffer_windows.h` and is in this tree. That is only a lead, not a cause: I have not run with #2094 reverted. Reproducing it needs the retail package and a run of about 18 minutes. The next check here is the same recipe with #2094 reverted. AI-assisted (Claude Code).
Author
Owner

@Tyrannys commented on GitHub (Nov 26, 2026):

done: RT-ASYNC-COMPILE-POOL -> #2233. PipelineCompiler runs LEONIDA_COMPILE_THREADS workers (half the logical processors, 2..8; =1 keeps the old layout): demanded builds first, large and warm-up builds on at most N-1 workers so one stays free for a small demanded build, at most LEONIDA_COMPILE_HEAVY_MAX large builds (compute and graphics alike), one build per PSO, and warm-ups one at a time and none while a demanded build runs (after MoonEyes' gate finding above). Design from MoonEyes' #2077, ported onto #2098's scheduler. CPU test with 7 rule mutants killed; compile/teardown/big-compute ctests pass with 1 and N workers. The compile gate itself is unchanged: a submit still waits for creates in flight. RTX 4070 SUPER / 621.01, no game files.
AI-assisted (Claude Code)

<!-- gh-comment-id:7187854072 --> @Tyrannys commented on GitHub (Nov 26, 2026): done: RT-ASYNC-COMPILE-POOL -> #2233. PipelineCompiler runs LEONIDA_COMPILE_THREADS workers (half the logical processors, 2..8; =1 keeps the old layout): demanded builds first, large and warm-up builds on at most N-1 workers so one stays free for a small demanded build, at most LEONIDA_COMPILE_HEAVY_MAX large builds (compute and graphics alike), one build per PSO, and warm-ups one at a time and none while a demanded build runs (after MoonEyes' gate finding above). Design from MoonEyes' #2077, ported onto #2098's scheduler. CPU test with 7 rule mutants killed; compile/teardown/big-compute ctests pass with 1 and N workers. The compile gate itself is unchanged: a submit still waits for creates in flight. RTX 4070 SUPER / 621.01, no game files. AI-assisted (Claude Code)
Author
Owner

@needlemska commented on GitHub (Nov 26, 2026):

finding: retail boot FastFail (~0.7s) on ROG Ally X — Radeon 890M / Z2 Extreme; xmem OK, trace stops at event 16 before Vulkan.

Where: local Windows 11, gta6rt from ubiquitarianism/leonida runtime build, package 1.0.2.1 (user-owned copy). SPIR-V work folder + on-demand pipelines; not a pipeline-cache problem.

Symptom: --run / --first-run-ui exit 0xC0000409 (Application Error: gta6rt.exe, fault module ucrtbase.dll). No first-run UI, no D3D12 in trace. boot_trace.py reports 16 events: TLS/DllMain OK, unimplemented=0, five xmem_attributes then stop. Stderr shows 16+16 GiB stream-pool reserve + several heap XMemVirtualAlloc succeed, then process dies (RVA game_scarlett_master.exe+0x5ba6c35 in trace).

Tried: LEONIDA_DEVICE_TYPE=6 (Series S windows), LEONIDA_TITLE_MEMORY_MB=10240, LEONIDA_ARENA_MB=2048, LEONIDA_PIPELINE_COMPILE=on-demand. --init same binary → exit 0.

Not: missing imports (0 unimplemented), shaders/pipelines (never reached graphics).

Needs game files: yes (retail package); hardware: integrated 890M (no discrete GPU in test).

Local artifacts (paths only, not in repo): %USERPROFILE%\leonida-runs\launch-20261126-122206.jsonl, same stem .log, diag-20261126-121255-report.txt.

Ask: known host profile or runtime knob for early boot past xmem on RDNA3 iGPU (890M)? Reported stack targets ~8 GB VRAM discrete GPUs; Ally is UMA ~16 GiB visible to OS.

AI-assisted investigation on user's machine; not claiming a port task until coordinated.

<!-- gh-comment-id:7187911495 --> @needlemska commented on GitHub (Nov 26, 2026): finding: retail boot FastFail (~0.7s) on ROG Ally X — Radeon 890M / Z2 Extreme; xmem OK, trace stops at event 16 before Vulkan. **Where:** local Windows 11, `gta6rt` from ubiquitarianism/leonida runtime build, package 1.0.2.1 (user-owned copy). SPIR-V work folder + on-demand pipelines; not a pipeline-cache problem. **Symptom:** `--run` / `--first-run-ui` exit **0xC0000409** (Application Error: `gta6rt.exe`, fault module `ucrtbase.dll`). No first-run UI, no D3D12 in trace. `boot_trace.py` reports **16 events**: TLS/DllMain OK, `unimplemented=0`, five `xmem_attributes` then stop. Stderr shows **16+16 GiB** stream-pool reserve + several heap `XMemVirtualAlloc` succeed, then process dies (RVA `game_scarlett_master.exe+0x5ba6c35` in trace). **Tried:** `LEONIDA_DEVICE_TYPE=6` (Series S windows), `LEONIDA_TITLE_MEMORY_MB=10240`, `LEONIDA_ARENA_MB=2048`, `LEONIDA_PIPELINE_COMPILE=on-demand`. `--init` same binary → exit 0. **Not:** missing imports (0 unimplemented), shaders/pipelines (never reached graphics). **Needs game files:** yes (retail package); **hardware:** integrated **890M** (no discrete GPU in test). **Local artifacts (paths only, not in repo):** `%USERPROFILE%\leonida-runs\launch-20261126-122206.jsonl`, same stem `.log`, `diag-20261126-121255-report.txt`. **Ask:** known host profile or runtime knob for early boot past xmem on RDNA3 iGPU (890M)? Reported stack targets ~8 GB VRAM discrete GPUs; Ally is UMA ~16 GiB visible to OS. AI-assisted investigation on user's machine; not claiming a port task until coordinated.
Author
Owner

@timbot103 commented on GitHub (Nov 26, 2026):

claiming: D3D-SPARSE-2D-COLOR-FORMATS — expand real Vulkan sparse 2D texture backing (CreateReservedResource, tile grid, UpdateTileMappings, CopyTiles) from R8G8B8A8_UNORM to all 50 typed uncompressed 1/2/4/8/16-byte standard 64 KiB 2D color formats, with dual-GPU + WARP verification. AI-assisted.

<!-- gh-comment-id:7188047784 --> @timbot103 commented on GitHub (Nov 26, 2026): claiming: D3D-SPARSE-2D-COLOR-FORMATS — expand real Vulkan sparse 2D texture backing (CreateReservedResource, tile grid, UpdateTileMappings, CopyTiles) from R8G8B8A8_UNORM to all 50 typed uncompressed 1/2/4/8/16-byte standard 64 KiB 2D color formats, with dual-GPU + WARP verification. AI-assisted.
Author
Owner

@djrolfes commented on GitHub (Nov 26, 2026):

Claiming RT-REBASE-VSHARP-SHORT-ALIAS (AI-assisted):

  • Where: runtime/shims/d3d12_vulkan_device.cpp (DeviceState::rebase_title_vsharp) and runtime/src/title_va_alias.h (TitleVaAliases::resolve / resolve_title_memory).
  • Bug: Unlike vsharp_address() (which checks aliases.range_of(base, to, room) and refuses when room < bytes || !backed(to), and re-checks room >= bytes && backed(to) after aliases.resolve) and bvh_va() (which checks available >= bytes), rebase_title_vsharp() calls aliases.resolve(base, span, table_view) without checking room >= span or backing extent. Because TitleVaAliases::resolve() calls shader_va(va) with default bytes = 1, an inline-table V# whose declared span exceeds a shorter aliased buffer (e.g. a small slot-133 buffer or a clipped title window) is rebased to that shorter buffer's shader VA while keeping its full num_records, allowing out-of-bounds GPU reads/writes past the end of the VkBuffer.
  • Plan: Enforce the same room >= span and backing-extent checks in rebase_title_vsharp() (refusing and marking unbacked so scan_title_table zeroes records instead of pointing a wider V# at a shorter buffer), add a synthetic Wine/Vulkan regression test + failing negative control in d3d12_unmapped_vsharp_test, and verify on native Linux + Linux/Wine RTX 3070 Ti. (Keeping local/unpushed until cleared for a 2nd open PR.)

No game data included.

<!-- gh-comment-id:7188140689 --> @djrolfes commented on GitHub (Nov 26, 2026): Claiming `RT-REBASE-VSHARP-SHORT-ALIAS` (AI-assisted): - Where: `runtime/shims/d3d12_vulkan_device.cpp` (`DeviceState::rebase_title_vsharp`) and `runtime/src/title_va_alias.h` (`TitleVaAliases::resolve` / `resolve_title_memory`). - Bug: Unlike `vsharp_address()` (which checks `aliases.range_of(base, to, room)` and refuses when `room < bytes || !backed(to)`, and re-checks `room >= bytes && backed(to)` after `aliases.resolve`) and `bvh_va()` (which checks `available >= bytes`), `rebase_title_vsharp()` calls `aliases.resolve(base, span, table_view)` without checking `room >= span` or backing extent. Because `TitleVaAliases::resolve()` calls `shader_va(va)` with default `bytes = 1`, an inline-table V# whose declared span exceeds a shorter aliased buffer (e.g. a small slot-133 buffer or a clipped title window) is rebased to that shorter buffer's shader VA while keeping its full `num_records`, allowing out-of-bounds GPU reads/writes past the end of the `VkBuffer`. - Plan: Enforce the same `room >= span` and backing-extent checks in `rebase_title_vsharp()` (refusing and marking `unbacked` so `scan_title_table` zeroes records instead of pointing a wider V# at a shorter buffer), add a synthetic Wine/Vulkan regression test + failing negative control in `d3d12_unmapped_vsharp_test`, and verify on native Linux + Linux/Wine RTX 3070 Ti. (Keeping local/unpushed until cleared for a 2nd open PR.) No game data included.
Author
Owner

@zmasi commented on GitHub (Nov 26, 2026):

Update on our earlier RTX 3090 world-load findings (#issuecomment-7180486160, #issuecomment-7181806647) plus three claims we have patches and tests in flight for (counts and Leonida source locations only; no game data, no title addresses; AI-assisted):

finding (correction to #issuecomment-7181806647 item 2): aligning leonida::diagnostic_ms() (which starts at device creation, ~6.6 s after startup_trace t=0) against startup_trace across four world-load runs on Windows 11 / RTX 3090 shows the ~t=215–227 s break is not an audio/DSP subsystem bug and is independent of the 2 0x89240030 DirectStorage outcomes (the title's queue wrapper polls IDStorageStatusArrayX::IsComplete, which returns true for any status != E_PENDING at runtime/shims/dstorage.cpp:283, and never reads GetHResult). Every run reaches its first world-render ExecuteCommandLists submission (direct-indexed descriptor heap + ExecuteIndirect + compute library dispatch, with ~263 console descriptor-heap slots waiting past budget) and hits VK_ERROR_DEVICE_LOST ~6.0–7.7 s later. set_device_lost() (runtime/src/vulkan_backend.h:590) writes UINT64_MAX into FenceMirror::completed, which immediately triggers the title's device-removed int3 (<1 ms after device loss). Stepping past that int3 with LEONIDA_SKIP_INT3=1 leaves the render thread spinning on its 56-bit signed fence predicate while ID3D12Fence::GetCompletedValue() (runtime/shims/d3d12_com.cpp:2256) returns UINT64_MAX, letting streaming/teardown workers recycle live heap blocks ~8.9 s later. Preventing the first-world-submission VK_ERROR_DEVICE_LOST is the real gate.

claiming: RT-TITLE-TEXTURE-MAP-GEN — runtime/shims/d3d12_vulkan_device.cpp (title_texture_readable, :15507–15518 on main) and runtime/shims/xmem.cpp (physical_page_fault, :1675). title_texture_readable caches positive readability (generation = 0) and only invalidates inside refresh_title_textures() (LEONIDA_TITLE_TEXTURE_PERIOD_MS = 16 ms before ExecuteCommandLists). When CopyPageMappingsBatchX or XMemMapPhysicalPages unmaps a 64 KiB tile (title_memory_map::changed) and a title thread calls synchronous Slot-70 write_placed_texture_view before the next 16 ms pass, title_texture_readable returns stale true without VirtualQuery and faults inside hash_bytes (:239, also missing LEONIDA_GUARDED_NO_BUILTIN) under title_texture_mutex (observed on 1 of 3 world-load runs); in the symmetric map direction, cache_failure = true leaves newly mapped views pending until the next pass, and xmem::physical_page_fault (:1675) records host guarded reads over unmapped window pages without checking title_code(pc). Tracking per-texture map_generation against title_memory_map::generation() (O(1) atomic load when unchanged) + unit tests in title_memory_map_test and d3d12_existing_heap_test.

claiming: DSTORAGE-MULTILEVEL-MIP-FIT — tools/build_dstorage_history.py (fit_slices, :61–66). Both calibrate_from_pools and fit_slices only fit BC6H/BC7 chunks against immediate ±1 raw/zlib neighbor mips (level ± 1), skipping packed/tail BC7 mips at |level - ref_level| >= 2 from a lossless raw/zlib mip (which is why relaxing 256 * 16 <= first alone in #2148 leaves history.bcph at 4,228 / 6,144 BC7 endpoint fields). Targeted multi-level box-downsample / upsample fitting across |level - ref_level| >= 1 ONLY on chunks whose 256-block prefix still references a 0-bit needed channel (77 / 5,167 BC7 chunks across the 57 pools) raises fitted BC7 endpoint fields from 4,228 -> 4,336 (+108), resolves 25 / 25 mixed-codec BC7 chunks (0 lost blocks at strict divisor = 1024, eliminating the last 2 world-load 0x89240030 missing-endpoint outcomes), and cuts 57-pool BC7 chunk failures by 70% (60 -> 18).

claiming: SHADER-F16-INTERP-COMPUTED-IJ — tools/rdna2spirv.py (interp_ij_analysis, :17481–17485). #1426 / #1930 handle computed I/J via --bary-fallback where geometryShader = true, but --f16-interp-fallback without --bary-fallback still refuses all 207 computed-I/J pixel shaders (affecting GS-less targets such as MoltenVK / Apple Silicon where BaryCoordKHR is present without PerVertexKHR, and requiring GS amplification elsewhere). Because perspective-correct BaryCoordKHR (I, J) already absorbs 1/W, every smooth-interpolated input (including decoded --f16-interp-fallback halves) is affine in (I, J) across each 2 \times 2 quad; taking OpDPdxFine / OpDPdyFine (OpCapability DerivativeControl, core Vulkan 1.0, zero extra locations, zero GS) in uniform %entry with an integer normal-float determinant guard evaluates computed (I', J') at any branch/loop site. Prototype-verified across all 207 previously refused corpus shaders (26,503 / 26,503 translated, 0 spirv-val errors).

<!-- gh-comment-id:7188273837 --> @zmasi commented on GitHub (Nov 26, 2026): Update on our earlier RTX 3090 world-load findings (`#issuecomment-7180486160`, `#issuecomment-7181806647`) plus three claims we have patches and tests in flight for (counts and Leonida source locations only; no game data, no title addresses; AI-assisted): finding (correction to `#issuecomment-7181806647` item 2): aligning `leonida::diagnostic_ms()` (which starts at device creation, ~6.6 s after `startup_trace` `t=0`) against `startup_trace` across four world-load runs on Windows 11 / RTX 3090 shows the ~t=215–227 s break is **not** an audio/DSP subsystem bug and is **independent** of the 2 `0x89240030` DirectStorage outcomes (the title's queue wrapper polls `IDStorageStatusArrayX::IsComplete`, which returns `true` for any status `!= E_PENDING` at `runtime/shims/dstorage.cpp:283`, and never reads `GetHResult`). Every run reaches its first world-render `ExecuteCommandLists` submission (direct-indexed descriptor heap + `ExecuteIndirect` + compute library dispatch, with ~263 console descriptor-heap slots waiting past budget) and hits `VK_ERROR_DEVICE_LOST` ~6.0–7.7 s later. `set_device_lost()` (`runtime/src/vulkan_backend.h:590`) writes `UINT64_MAX` into `FenceMirror::completed`, which immediately triggers the title's device-removed `int3` (<1 ms after device loss). Stepping past that `int3` with `LEONIDA_SKIP_INT3=1` leaves the render thread spinning on its 56-bit signed fence predicate while `ID3D12Fence::GetCompletedValue()` (`runtime/shims/d3d12_com.cpp:2256`) returns `UINT64_MAX`, letting streaming/teardown workers recycle live heap blocks ~8.9 s later. Preventing the first-world-submission `VK_ERROR_DEVICE_LOST` is the real gate. claiming: `RT-TITLE-TEXTURE-MAP-GEN` — `runtime/shims/d3d12_vulkan_device.cpp` (`title_texture_readable`, `:15507–15518` on `main`) and `runtime/shims/xmem.cpp` (`physical_page_fault`, `:1675`). `title_texture_readable` caches positive readability (`generation = 0`) and only invalidates inside `refresh_title_textures()` (`LEONIDA_TITLE_TEXTURE_PERIOD_MS = 16` ms before `ExecuteCommandLists`). When `CopyPageMappingsBatchX` or `XMemMapPhysicalPages` unmaps a 64 KiB tile (`title_memory_map::changed`) and a title thread calls synchronous Slot-70 `write_placed_texture_view` before the next 16 ms pass, `title_texture_readable` returns stale `true` without `VirtualQuery` and faults inside `hash_bytes` (`:239`, also missing `LEONIDA_GUARDED_NO_BUILTIN`) under `title_texture_mutex` (observed on 1 of 3 world-load runs); in the symmetric map direction, `cache_failure = true` leaves newly mapped views pending until the next pass, and `xmem::physical_page_fault` (`:1675`) records host guarded reads over unmapped window pages without checking `title_code(pc)`. Tracking per-texture `map_generation` against `title_memory_map::generation()` (`O(1)` atomic load when unchanged) + unit tests in `title_memory_map_test` and `d3d12_existing_heap_test`. claiming: `DSTORAGE-MULTILEVEL-MIP-FIT` — `tools/build_dstorage_history.py` (`fit_slices`, `:61–66`). Both `calibrate_from_pools` and `fit_slices` only fit BC6H/BC7 chunks against immediate `±1` raw/zlib neighbor mips (`level ± 1`), skipping packed/tail BC7 mips at `|level - ref_level| >= 2` from a lossless raw/zlib mip (which is why relaxing `256 * 16 <= first` alone in `#2148` leaves `history.bcph` at `4,228 / 6,144` BC7 endpoint fields). Targeted multi-level box-downsample / upsample fitting across `|level - ref_level| >= 1` ONLY on chunks whose 256-block prefix still references a `0`-bit needed channel (`77 / 5,167` BC7 chunks across the 57 pools) raises fitted BC7 endpoint fields from `4,228 -> 4,336` (`+108`), resolves `25 / 25` mixed-codec BC7 chunks (`0` lost blocks at strict `divisor = 1024`, eliminating the last 2 world-load `0x89240030` `missing-endpoint` outcomes), and cuts 57-pool BC7 chunk failures by 70% (`60 -> 18`). claiming: `SHADER-F16-INTERP-COMPUTED-IJ` — `tools/rdna2spirv.py` (`interp_ij_analysis`, `:17481–17485`). `#1426` / `#1930` handle computed `I/J` via `--bary-fallback` where `geometryShader = true`, but `--f16-interp-fallback` without `--bary-fallback` still refuses all 207 computed-`I/J` pixel shaders (affecting GS-less targets such as MoltenVK / Apple Silicon where `BaryCoordKHR` is present without `PerVertexKHR`, and requiring GS amplification elsewhere). Because perspective-correct `BaryCoordKHR` $(I, J)$ already absorbs $1/W$, every smooth-interpolated input (including decoded `--f16-interp-fallback` halves) is affine in $(I, J)$ across each $2 \times 2$ quad; taking `OpDPdxFine` / `OpDPdyFine` (`OpCapability DerivativeControl`, core Vulkan 1.0, zero extra locations, zero GS) in uniform `%entry` with an integer normal-float determinant guard evaluates computed `(I', J')` at any branch/loop site. Prototype-verified across all 207 previously refused corpus shaders (`26,503 / 26,503` translated, `0` `spirv-val` errors).
Author
Owner

@zmasi commented on GitHub (Nov 26, 2026):

claiming: GPU-VEGA20-RADV — AMD Radeon Pro Vega II (Vega 20 / gfx906), Mesa RADV on Linux. I will run the hand-written runtime/test/shaders suite and vk_pipeline_check and submit a gpu-test-results/ record. This is separate from the WX 9100 / MI25 (gfx900) run in #2182. Public report: hardware, versions and aggregate results only. AI-assisted.

<!-- gh-comment-id:7188307117 --> @zmasi commented on GitHub (Nov 26, 2026): claiming: GPU-VEGA20-RADV — AMD Radeon Pro Vega II (Vega 20 / gfx906), Mesa RADV on Linux. I will run the hand-written `runtime/test/shaders` suite and `vk_pipeline_check` and submit a `gpu-test-results/` record. This is separate from the WX 9100 / MI25 (gfx900) run in #2182. Public report: hardware, versions and aggregate results only. AI-assisted.
Author
Owner

@sdelectron commented on GitHub (Nov 26, 2026):

finding: crosslane_fuzz seed 3 adds 4 more mismatches, all in the two already-posted families (findings A–D) — no new root cause. 17 true mismatches total across seeds 1–3, all crosslane_fuzz; valu/lds/f32/image are clean on all three seeds.

  1. cs_xl32_300011 (wave32 native, group 50): v3 expected 0x00012c87, got 0xffffffff — mask word returned where per-lane data was expected (provenance family).
  2. cs_xl32_300047 (wave32 native, group 50): v4/v7 expected 0x0003ffff, got 0xffffffff — partial-wave mask, an exact repeat of seed 1's 100077 pattern (same group 50, same 18-lane EXEC 0x0003ffff vs 0xffffffff).
  3. cs_xl32_300105 (wave32 native, group 32): s8 expected 0x6a107495, got 0x6a1074d5 / 0x6a107515 / 0x6a107555… (+0x40 per lane) — readfirstlane returning per-lane data instead of the broadcast value, a variant of 100023/100075 (+0x32 per lane).
  4. cs_xl64_300098 (wave64 emulate, group 40): s11/v2 expected 0x000000ff, got 0xffffffff — mask word instead of data (provenance family).

Repro: python3 -I tools/crosslane_fuzz.py --programs 100 --seed 3 --wave both --exe runtime/build/linux/vk_compute_test, RTX 5080, driver 620.70.06, Nobara Linux 44. AI-assisted verification.

<!-- gh-comment-id:7188345676 --> @sdelectron commented on GitHub (Nov 26, 2026): finding: crosslane_fuzz seed 3 adds 4 more mismatches, all in the two already-posted families (findings A–D) — no new root cause. 17 true mismatches total across seeds 1–3, all crosslane_fuzz; valu/lds/f32/image are clean on all three seeds. 1. cs_xl32_300011 (wave32 native, group 50): v3 expected 0x00012c87, got 0xffffffff — mask word returned where per-lane data was expected (provenance family). 2. cs_xl32_300047 (wave32 native, group 50): v4/v7 expected 0x0003ffff, got 0xffffffff — partial-wave mask, an exact repeat of seed 1's 100077 pattern (same group 50, same 18-lane EXEC 0x0003ffff vs 0xffffffff). 3. cs_xl32_300105 (wave32 native, group 32): s8 expected 0x6a107495, got 0x6a1074d5 / 0x6a107515 / 0x6a107555… (+0x40 per lane) — readfirstlane returning per-lane data instead of the broadcast value, a variant of 100023/100075 (+0x32 per lane). 4. cs_xl64_300098 (wave64 emulate, group 40): s11/v2 expected 0x000000ff, got 0xffffffff — mask word instead of data (provenance family). Repro: python3 -I tools/crosslane_fuzz.py --programs 100 --seed 3 --wave both --exe runtime/build/linux/vk_compute_test, RTX 5080, driver 620.70.06, Nobara Linux 44. AI-assisted verification.
Author
Owner

@star41905453-coder commented on GitHub (Nov 26, 2026):

done: DEPTH-BOUNDS-ON-DEMAND-STREAM -> #2234

The second create_graphics call site (the on-demand realization) now passes the extras and the back-face stencil masks, the same as the eager one, so DepthBoundsTestEnable is no longer dropped when a console PSO is first used before it is realized. d3d12_mesh_test draws through it: with bounds 0.9..1.0 nothing may be painted, with 0.0..1.0 the whole viewport must be; a device without depthBounds (llvmpipe here) refuses instead and a success there would mean the flag was dropped.

Two things for a reviewer: the PR is a draft — non-draft creation has been answering 404 for this fork while draft creation works, and markPullRequestReadyForReview says the account lacks the permission, so a maintainer (or a retry) has to flip it. And the draw half skips here: no depthBounds on this box, and d3d12_mesh_test already stops at its console-PSO step under LEONIDA_PIPELINE_COMPILE=on-demand on unmodified main, so the lazy call site is not exercised end to end locally. A run on a depth-bounds-capable GPU proves it. Depends on: #815.

<!-- gh-comment-id:7188371828 --> @star41905453-coder commented on GitHub (Nov 26, 2026): done: DEPTH-BOUNDS-ON-DEMAND-STREAM -> #2234 The second `create_graphics` call site (the on-demand realization) now passes the extras and the back-face stencil masks, the same as the eager one, so `DepthBoundsTestEnable` is no longer dropped when a console PSO is first used before it is realized. `d3d12_mesh_test` draws through it: with bounds 0.9..1.0 nothing may be painted, with 0.0..1.0 the whole viewport must be; a device without `depthBounds` (llvmpipe here) refuses instead and a success there would mean the flag was dropped. Two things for a reviewer: the PR is a **draft** — non-draft creation has been answering 404 for this fork while draft creation works, and `markPullRequestReadyForReview` says the account lacks the permission, so a maintainer (or a retry) has to flip it. And the draw half skips here: no `depthBounds` on this box, and `d3d12_mesh_test` already stops at its console-PSO step under `LEONIDA_PIPELINE_COMPILE=on-demand` on unmodified `main`, so the lazy call site is not exercised end to end locally. A run on a depth-bounds-capable GPU proves it. `Depends on: #815`.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: TEXT-TABLES-WALK-ORDER - tools/text_tables.py blobs() sorts the files of a directory source but not the subfolders os.walk lists (by name on NTFS, by hash on ext4). The dialogue table keeps the last text read for a label (docs/text.md, "Labels with two texts"), so one folder of resources gives a different text_en and a different --tables/--strings order on Windows and Linux. Sort the subfolders in place, as open PR #921 does for gamedata_xml. Synthetic test with a walk that lists subfolders backwards; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7188422465 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: TEXT-TABLES-WALK-ORDER - tools/text_tables.py `blobs()` sorts the files of a directory source but not the subfolders os.walk lists (by name on NTFS, by hash on ext4). The dialogue table keeps the last text read for a label (docs/text.md, "Labels with two texts"), so one folder of resources gives a different `text_en` and a different `--tables`/`--strings` order on Windows and Linux. Sort the subfolders in place, as open PR #921 does for gamedata_xml. Synthetic test with a walk that lists subfolders backwards; no game files, no GPU. AI-assisted.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: RT-TESTS-READER-START - two CPU runtime tests race a reader thread they have just started and then require that it read at least once: xmem_test's test_split_under_reader (2,046 unmaps) and xs_proxy_mock's kernel_writes tear check (200,000 stores). Under ctest -j the loop can finish before the reader is first scheduled, so they fail with nothing wrong in the runtime (xs_proxy_mock failed in 3 of 3 ctest -j 8 runs here), or pass having checked almost nothing. Wait for the reader's first read, as the remap race test in xmem_test already does for its writers. Test-only; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7188427068 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: RT-TESTS-READER-START - two CPU runtime tests race a reader thread they have just started and then require that it read at least once: xmem_test's test_split_under_reader (2,046 unmaps) and xs_proxy_mock's kernel_writes tear check (200,000 stores). Under ctest -j the loop can finish before the reader is first scheduled, so they fail with nothing wrong in the runtime (xs_proxy_mock failed in 3 of 3 `ctest -j 8` runs here), or pass having checked almost nothing. Wait for the reader's first read, as the remap race test in xmem_test already does for its writers. Test-only; no game files, no GPU. AI-assisted.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: RT-TESTS-READER-START -> #2131 (draft)

<!-- gh-comment-id:7188436184 --> @syfyra commented on GitHub (Nov 26, 2026): done: RT-TESTS-READER-START -> #2131 (draft)
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: BCRYPT-RNG-PSEUDO-HANDLE - runtime/shims/bcrypt_rng.cpp gen_random looks every handle up among the ones the shim opened, so BCryptGenRandom(BCRYPT_RNG_ALG_HANDLE /* 0x81 */, ...) - the RNG's CNG pseudo-handle, valid without an open call on Windows 10+, and accepted by the host's bcrypt.dll - returns STATUS_INVALID_HANDLE and leaves the buffer untouched, in the seeded mode too. Treat 0x81 as an RNG handle (host or seeded stream); other answers stay as Windows 11 gives them. Unit test only; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7188446639 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: BCRYPT-RNG-PSEUDO-HANDLE - runtime/shims/bcrypt_rng.cpp `gen_random` looks every handle up among the ones the shim opened, so BCryptGenRandom(BCRYPT_RNG_ALG_HANDLE /* 0x81 */, ...) - the RNG's CNG pseudo-handle, valid without an open call on Windows 10+, and accepted by the host's bcrypt.dll - returns STATUS_INVALID_HANDLE and leaves the buffer untouched, in the seeded mode too. Treat 0x81 as an RNG handle (host or seeded stream); other answers stay as Windows 11 gives them. Unit test only; no game files, no GPU. AI-assisted.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: BCRYPT-RNG-PSEUDO-HANDLE -> #2132 (draft)

<!-- gh-comment-id:7188454756 --> @syfyra commented on GitHub (Nov 26, 2026): done: BCRYPT-RNG-PSEUDO-HANDLE -> #2132 (draft)
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: SILENT-AUDIO-EMPTY-PACKET - runtime/shims/silent_audio.cpp AudioClient::get_buffer marks IAudioRenderClient::GetBuffer(0) as a held packet. The GetBuffer remarks say a 0-frame packet need not be released, and Windows' audio engine leaves nothing pending after one (measured on Windows 11), but here every later GetBuffer returns AUDCLNT_E_OUT_OF_ORDER and Reset AUDCLNT_E_BUFFER_OPERATION_PENDING: a title that asks for its free space whatever it is and releases only what it filled stops the stream for good the first time the buffer is full. Unit test only; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7188460452 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: SILENT-AUDIO-EMPTY-PACKET - runtime/shims/silent_audio.cpp `AudioClient::get_buffer` marks IAudioRenderClient::GetBuffer(0) as a held packet. The GetBuffer remarks say a 0-frame packet need not be released, and Windows' audio engine leaves nothing pending after one (measured on Windows 11), but here every later GetBuffer returns AUDCLNT_E_OUT_OF_ORDER and Reset AUDCLNT_E_BUFFER_OPERATION_PENDING: a title that asks for its free space whatever it is and releases only what it filled stops the stream for good the first time the buffer is full. Unit test only; no game files, no GPU. AI-assisted.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: SILENT-AUDIO-EMPTY-PACKET -> #2133 (draft)

<!-- gh-comment-id:7188465367 --> @syfyra commented on GitHub (Nov 26, 2026): done: SILENT-AUDIO-EMPTY-PACKET -> #2133 (draft)
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: SILENT-AUDIO-PASS-CADENCE - runtime/shims/silent_audio.cpp PeriodicThread waits for each 10 ms pass with a millisecond timeout, which on Windows ends on the 15.625 ms system timer tick (nothing in the runtime raises the resolution). The spatial stream the title activates first therefore runs about 64 passes a second of 480 frames: its audio clock goes at 64% of real time (measured: 10 passes in 143-159 ms, median gap 15.6-17.2 ms). Wait on a CREATE_WAITABLE_TIMER_HIGH_RESOLUTION timer instead, as gameinput and d3d12_xs do. Unit test only; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7188471572 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: SILENT-AUDIO-PASS-CADENCE - runtime/shims/silent_audio.cpp `PeriodicThread` waits for each 10 ms pass with a millisecond timeout, which on Windows ends on the 15.625 ms system timer tick (nothing in the runtime raises the resolution). The spatial stream the title activates first therefore runs about 64 passes a second of 480 frames: its audio clock goes at 64% of real time (measured: 10 passes in 143-159 ms, median gap 15.6-17.2 ms). Wait on a CREATE_WAITABLE_TIMER_HIGH_RESOLUTION timer instead, as gameinput and d3d12_xs do. Unit test only; no game files, no GPU. AI-assisted.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: SILENT-AUDIO-PASS-CADENCE -> #2134 (draft)

<!-- gh-comment-id:7188479084 --> @syfyra commented on GitHub (Nov 26, 2026): done: SILENT-AUDIO-PASS-CADENCE -> #2134 (draft)
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: STUDIO-FIT-CLIP-PLANES - viewer/studio.html creates its camera with near 0.1 and far 1000 and the model auto-fit moves it to about 2.63 x maxDim from the model without touching either plane, so a model under about 6 cm (a ring, a cartridge) lies wholly in front of the near plane and one over about 290 m (terrain, far LOD) wholly beyond the far plane: an empty canvas. Scale both planes with the fit distance. Not the reset-camera fit of STUDIO-RESET-CAMERA-FIT / #1490. Node test only; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7188484942 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: STUDIO-FIT-CLIP-PLANES - viewer/studio.html creates its camera with near 0.1 and far 1000 and the model auto-fit moves it to about 2.63 x maxDim from the model without touching either plane, so a model under about 6 cm (a ring, a cartridge) lies wholly in front of the near plane and one over about 290 m (terrain, far LOD) wholly beyond the far plane: an empty canvas. Scale both planes with the fit distance. Not the reset-camera fit of STUDIO-RESET-CAMERA-FIT / #1490. Node test only; no game files, no GPU. AI-assisted.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: STUDIO-FIT-CLIP-PLANES -> #2136 (draft)

<!-- gh-comment-id:7188491064 --> @syfyra commented on GitHub (Nov 26, 2026): done: STUDIO-FIT-CLIP-PLANES -> #2136 (draft)
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: TEXT-TABLES-WALK-ORDER -> #2235 (draft while #2084 is open: one non-draft PR per account)

<!-- gh-comment-id:7188493683 --> @syfyra commented on GitHub (Nov 26, 2026): done: TEXT-TABLES-WALK-ORDER -> #2235 (draft while #2084 is open: one non-draft PR per account)
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: TEST-TRANSLATOR-PIECEWISE-PARSE - tests/semantic/support.py loads the modules of tools/ from a tree parsed in pieces of 300 lines (new tests/semantic/piecewise_parse.py), so a test file that finds no valid .pyc of tools/rdna2spirv.py imports it in about 1 s instead of 7 s on CPython 3.12 to 3.14.7 (the tokenizer copies the rest of a source string at every f-string field; CPython fixed that in 3.14.8, its issue 155525, but not in 3.12, which CI runs). Same tree and same code object as a whole-file compile, checked for every Python file of the repository; whatever the pieces cannot give goes to the usual compile. Complements #2114 and #1516 and edits neither scripts/run_semantic_tests.py nor test_mutations.py. No game files, no GPU. AI-assisted (Claude Code).

<!-- gh-comment-id:7188514735 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: TEST-TRANSLATOR-PIECEWISE-PARSE - `tests/semantic/support.py` loads the modules of `tools/` from a tree parsed in pieces of 300 lines (new `tests/semantic/piecewise_parse.py`), so a test file that finds no valid `.pyc` of `tools/rdna2spirv.py` imports it in about 1 s instead of 7 s on CPython 3.12 to 3.14.7 (the tokenizer copies the rest of a source string at every f-string field; CPython fixed that in 3.14.8, its issue 155525, but not in 3.12, which CI runs). Same tree and same code object as a whole-file compile, checked for every Python file of the repository; whatever the pieces cannot give goes to the usual compile. Complements #2114 and #1516 and edits neither `scripts/run_semantic_tests.py` nor `test_mutations.py`. No game files, no GPU. AI-assisted (Claude Code).
Author
Owner

@zmasi commented on GitHub (Nov 26, 2026):

done: DSTORAGE-MULTILEVEL-MIP-FIT -> #2236 (https://github.com/ubiquitarianism/leonida/pull/2236). Multi-level raw/zlib sibling mip fitting for unfitted BPTC predictor slots (4,228 -> 4,336 BC7 endpoint fields, 0 / 268 BC6H and 18 / 5,167 BC7 missing-slot refusals across the 57 pools at divisor = 1024, eliminating both world-load 0x89240030 missing-endpoint outcomes). AI-assisted.

<!-- gh-comment-id:7188603828 --> @zmasi commented on GitHub (Nov 26, 2026): done: `DSTORAGE-MULTILEVEL-MIP-FIT` -> #2236 (https://github.com/ubiquitarianism/leonida/pull/2236). Multi-level raw/zlib sibling mip fitting for unfitted BPTC predictor slots (`4,228 -> 4,336` BC7 endpoint fields, `0 / 268` BC6H and `18 / 5,167` BC7 missing-slot refusals across the 57 pools at `divisor = 1024`, eliminating both world-load `0x89240030` `missing-endpoint` outcomes). AI-assisted.
Author
Owner

@fiestorra commented on GitHub (Nov 26, 2026):

finding: entering the world TDRs the GPU. This is the boot blocker, and it reorders everything I said before about the crash.

Same machine (RTX 4090, driver 32.0.16.2124, Windows 11), same package, main 71a769d7d, LEONIDA_D3D12=vulkan, interactive session (1), keyboard pad on (LEONIDA_KEYBOARD_PAD=1) with an automated Enter, and the BCPack profile loaded, which is what makes the rest readable: with the profile the 199 failed DirectStorage entries drop to 2, so what follows is not the texture path.

The sequence, measured, one boot:

  • t=163 s: 42.13 frames/s, 0 refusals, 0 DirectStorage errors.
  • t=277 s: the automated Enter reaches the title (gameinput: press [email protected] (Keyboard pad (Leonida))).
  • t=279 s: 1.04 frames/s.
  • then [rt] vulkan: the device was lost (VK_ERROR_DEVICE_LOST), and after it the layer's refusals appear:
[rt] d3d12: queue replay refused a batch at vulkan_backend.h:3455
[rt] d3d12: ExecuteCommandLists failed: unsupported; nothing was submitted
[rt] d3d12: queue replay refused a batch at vulkan_backend.h:3204

Four refusal sites in total (3455, 3204, 2531, 2871), all after the device loss.

The reason the device is lost is the driver: nvlddmkm logs event 153 (the display driver stopped responding) at the exact minute of each run's death — 7 of them in the last hour, one per attempt that reaches the world. So it is a TDR, not a layer denial: the GPU stops answering for longer than Windows waits, Windows resets the adapter, and every later call returns DXGI_ERROR_DEVICE_REMOVED.

That also retracts the reading I published earlier, that the failed DirectStorage entries came before the refusal and might have caused it: with the profile loaded the DirectStorage errors are 2 and the TDR is identical, so they are unrelated to it.

What is still open is what the GPU is doing when it stops answering. The candidates, none of them measured yet: a dispatch from one of the compute libraries the title builds at that moment (it was compiling lib_cs_*, 1.4-1.7 MB of SPIR-V each, seconds before), a submission that the layer replays as a very long command buffer, or a real driver bug on a construct we emit. Next step is a traced run that stops at the TDR, to read the last submissions, rather than a guess.

I have not touched TdrDelay: raising it would make the wait longer and turn a reset into a longer hang, and changing system settings is not mine to do without asking.

Written with an AI assistant.

<!-- gh-comment-id:7188608696 --> @fiestorra commented on GitHub (Nov 26, 2026): finding: entering the world TDRs the GPU. This is the boot blocker, and it reorders everything I said before about the crash. Same machine (RTX 4090, driver 32.0.16.2124, Windows 11), same package, `main` `71a769d7d`, `LEONIDA_D3D12=vulkan`, interactive session (1), keyboard pad on (`LEONIDA_KEYBOARD_PAD=1`) with an automated Enter, and the BCPack profile loaded, which is what makes the rest readable: with the profile the 199 failed DirectStorage entries drop to **2**, so what follows is not the texture path. The sequence, measured, one boot: - t=163 s: **42.13 frames/s**, 0 refusals, 0 DirectStorage errors. - t=277 s: the automated Enter reaches the title (`gameinput: press [email protected] (Keyboard pad (Leonida))`). - t=279 s: **1.04 frames/s**. - then `[rt] vulkan: the device was lost (VK_ERROR_DEVICE_LOST)`, and **after** it the layer's refusals appear: ``` [rt] d3d12: queue replay refused a batch at vulkan_backend.h:3455 [rt] d3d12: ExecuteCommandLists failed: unsupported; nothing was submitted [rt] d3d12: queue replay refused a batch at vulkan_backend.h:3204 ``` Four refusal sites in total (3455, 3204, 2531, 2871), all **after** the device loss. The reason the device is lost is the driver: `nvlddmkm` logs event 153 (the display driver stopped responding) at the exact minute of each run's death — **7 of them in the last hour**, one per attempt that reaches the world. So it is a TDR, not a layer denial: the GPU stops answering for longer than Windows waits, Windows resets the adapter, and every later call returns `DXGI_ERROR_DEVICE_REMOVED`. That also retracts the reading I published earlier, that the failed DirectStorage entries came before the refusal and might have caused it: with the profile loaded the DirectStorage errors are 2 and the TDR is identical, so they are unrelated to it. What is still open is what the GPU is doing when it stops answering. The candidates, none of them measured yet: a dispatch from one of the compute libraries the title builds at that moment (it was compiling `lib_cs_*`, 1.4-1.7 MB of SPIR-V each, seconds before), a submission that the layer replays as a very long command buffer, or a real driver bug on a construct we emit. Next step is a traced run that stops at the TDR, to read the last submissions, rather than a guess. I have not touched `TdrDelay`: raising it would make the wait longer and turn a reset into a longer hang, and changing system settings is not mine to do without asking. Written with an AI assistant.
Author
Owner

@zmasi commented on GitHub (Nov 26, 2026):

done: GPU-VEGA20-RADV -> #2238. Radeon Pro Vega II (gfx906), Mesa RADV 26.0.8 on Linux; synthetic suite and pipeline counts in the record. The single stock readback failure passed with the existing #1518 fixture correction. AI-assisted.

<!-- gh-comment-id:7188797490 --> @zmasi commented on GitHub (Nov 26, 2026): done: GPU-VEGA20-RADV -> #2238. Radeon Pro Vega II (gfx906), Mesa RADV 26.0.8 on Linux; synthetic suite and pipeline counts in the record. The single stock readback failure passed with the existing #1518 fixture correction. AI-assisted.
Author
Owner

@zmasi commented on GitHub (Nov 26, 2026):

done: SHADER-F16-INTERP-COMPUTED-IJ -> #2239 (https://github.com/ubiquitarianism/leonida/pull/2239, draft while #2236 is open per one-non-draft-PR rule). Lowers all 207 computed-I/J pixel shaders under --f16-interp-fallback without PerVertexKHR or a geometry shader via %entry OpCapability DerivativeControl (26,296 / 26,503 -> 26,503 / 26,503 spirv-val pass; ps_ij_computed 4,096 / 4,096 pixels bit-exact on RTX 3090 under LEONIDA_F16_INTERP_FALLBACK=1). AI-assisted.

<!-- gh-comment-id:7188826899 --> @zmasi commented on GitHub (Nov 26, 2026): done: `SHADER-F16-INTERP-COMPUTED-IJ` -> #2239 (https://github.com/ubiquitarianism/leonida/pull/2239, draft while #2236 is open per one-non-draft-PR rule). Lowers all 207 computed-`I/J` pixel shaders under `--f16-interp-fallback` without `PerVertexKHR` or a geometry shader via `%entry` `OpCapability DerivativeControl` (`26,296 / 26,503 -> 26,503 / 26,503` `spirv-val` pass; `ps_ij_computed` `4,096 / 4,096` pixels bit-exact on RTX 3090 under `LEONIDA_F16_INTERP_FALLBACK=1`). AI-assisted.
Author
Owner

@zmasi commented on GitHub (Nov 26, 2026):

done: RT-TITLE-TEXTURE-MAP-GEN -> #2240 (https://github.com/ubiquitarianism/leonida/pull/2240, draft while #2236 is open per one-non-draft-PR rule). Tracks per-texture map_generation against title_memory_map::generation() between 16 ms passes (0 first-chance AVs on unmapped tiles in d3d12_existing_heap_test, immediate bindless publication on newly mapped tiles) and guards host __try reads in xmem::physical_page_fault (460 / 463 Windows CTest pass on RTX 3090). AI-assisted.

<!-- gh-comment-id:7188901800 --> @zmasi commented on GitHub (Nov 26, 2026): done: `RT-TITLE-TEXTURE-MAP-GEN` -> #2240 (https://github.com/ubiquitarianism/leonida/pull/2240, draft while #2236 is open per one-non-draft-PR rule). Tracks per-texture `map_generation` against `title_memory_map::generation()` between 16 ms passes (`0` first-chance AVs on unmapped tiles in `d3d12_existing_heap_test`, immediate bindless publication on newly mapped tiles) and guards host `__try` reads in `xmem::physical_page_fault` (`460 / 463` Windows CTest pass on RTX 3090). AI-assisted.
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming:

  • BOOT-TRACE-XMEM-ATTR-SAMPLES — boot_trace: summarize XMem allocation attribute observations
  • BOOT-TRACE-LAST-STARTUP-RECORD — boot_trace: identify the last recorded startup event
  • BOOT-TRACE-OPEN-ERROR-COUNTS — boot_trace: count failed file opens by Win32 error
  • DDS-PNG-R8-RG8-UNORM — dds_png: preview R8 and R8G8 UNORM texture exports
  • DDS-PNG-BC6H-PREVIEW — dds_png: preview signed and unsigned BC6H textures
  • DDS-PNG-BOUNDED-SCANLINES — dds_png: compress scanlines without staging the entire image
  • STUDIO-DDS-CUBE-FACE — studio: select cube faces for DDS previews and texels
  • BINK-PLAY-CMAKE-CONFIG-DISCOVERY — bink_play: locate the player in CMake configuration folders
  • BINK-INDEX-TRUNCATED-PROBE-COPY — bink_index: refuse an incomplete embedded stream before probing
  • BATCH-GLB-BOUNDED-MODEL-QUEUE — batch_glb: bound queued model conversions
<!-- gh-comment-id:7189018014 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: - BOOT-TRACE-XMEM-ATTR-SAMPLES — boot_trace: summarize XMem allocation attribute observations - BOOT-TRACE-LAST-STARTUP-RECORD — boot_trace: identify the last recorded startup event - BOOT-TRACE-OPEN-ERROR-COUNTS — boot_trace: count failed file opens by Win32 error - DDS-PNG-R8-RG8-UNORM — dds_png: preview R8 and R8G8 UNORM texture exports - DDS-PNG-BC6H-PREVIEW — dds_png: preview signed and unsigned BC6H textures - DDS-PNG-BOUNDED-SCANLINES — dds_png: compress scanlines without staging the entire image - STUDIO-DDS-CUBE-FACE — studio: select cube faces for DDS previews and texels - BINK-PLAY-CMAKE-CONFIG-DISCOVERY — bink_play: locate the player in CMake configuration folders - BINK-INDEX-TRUNCATED-PROBE-COPY — bink_index: refuse an incomplete embedded stream before probing - BATCH-GLB-BOUNDED-MODEL-QUEUE — batch_glb: bound queued model conversions
Author
Owner

@quartz-heron-58 commented on GitHub (Nov 26, 2026):

finding: Tyrannys's world-frame recipe above reproduces on a second NVIDIA machine with 32 GB once two settings are changed for memory. RTX 4080 16 GB, NVIDIA 621.24, Windows 11, 32 GB RAM. Counts only, frames kept locally.

Tree: main a73a57e + #2195 #2097 #1851 #1905 #1957 #1886 #1894 #1882 #2113 #1914 #1592, merged locally. Conflicts: #1914 in docs only; #1592 in runtime/CMakeLists.txt, d3d12_translated_draw_test.cpp (both sides kept) and d3d12_xs_native_pso.h (#1592's structure, with main's stand-in-blend retry moved into build()). The same one-argument fix in native_pso_blend_test and native_pso_depth_test. Shaders differ from Tyrannys's: 26,503 corpus, 18,493 fspx_gfx, 2,683 library compute, 29 FSPX, translated with main plus #2102 and #2119. The skip list built from my library by size (2 MiB or more) is also 724 programs.

run change from the posted settings end private memory first world picture
1 none my free-RAM guard at 189 s 29.6 GB at 181 s (21.9 GB at 120 s) -
2 LEONIDA_HOST_IMAGE_COPY=1, LEONIDA_COMPILE_WORKERS=2 full 1,500 s 22-25 GB grab at about 1,020 s
3 as 2, caches warm from 2 device lost at 465 s 23-24 GB grab at 270 s
  • Run 2: no frames from 188 s to about 930 s while graphics pipelines were built one at a time (453 slow builds in the heavy cache by the end), then 0.2-0.4 frames/s. Indirect graphics at the end: 68,275 recorded, 65,536 emitted, 0 skipped.
  • Run 3: 2 slow builds, dark grabs only at 211 and 241 s, then the scene: a character in front of a night skyline with trees, the character blown out to white, 0.2 frames/s. Indirect graphics: 70,226 recorded, 65,536 emitted, 0 skipped. The loss came from vkDeviceWaitIdle (a fence counter of UINT64_MAX); no fault report because LEONIDA_DEVICE_FAULT is off in this recipe.
  • Run 2 also reported a loss at 1,554 s, after my time cap had asked the window to close.

So on 32 GB the posted settings do not fit (run 1), and host image copies on plus two compile workers do. Not checked: which of the two changes carries the memory saving, more than one run per row, the cause of run 3's loss, anything about the exposure.

Thanks Tyrannys for posting the full recipe. AI-assisted (Claude Code).

<!-- gh-comment-id:7189036066 --> @quartz-heron-58 commented on GitHub (Nov 26, 2026): finding: Tyrannys's world-frame recipe above reproduces on a second NVIDIA machine with 32 GB once two settings are changed for memory. RTX 4080 16 GB, NVIDIA 621.24, Windows 11, 32 GB RAM. Counts only, frames kept locally. Tree: main a73a57e + #2195 #2097 #1851 #1905 #1957 #1886 #1894 #1882 #2113 #1914 #1592, merged locally. Conflicts: #1914 in docs only; #1592 in runtime/CMakeLists.txt, d3d12_translated_draw_test.cpp (both sides kept) and d3d12_xs_native_pso.h (#1592's structure, with main's stand-in-blend retry moved into build()). The same one-argument fix in native_pso_blend_test and native_pso_depth_test. Shaders differ from Tyrannys's: 26,503 corpus, 18,493 fspx_gfx, 2,683 library compute, 29 FSPX, translated with main plus #2102 and #2119. The skip list built from my library by size (2 MiB or more) is also 724 programs. | run | change from the posted settings | end | private memory | first world picture | |---|---|---|---|---| | 1 | none | my free-RAM guard at 189 s | 29.6 GB at 181 s (21.9 GB at 120 s) | - | | 2 | LEONIDA_HOST_IMAGE_COPY=1, LEONIDA_COMPILE_WORKERS=2 | full 1,500 s | 22-25 GB | grab at about 1,020 s | | 3 | as 2, caches warm from 2 | device lost at 465 s | 23-24 GB | grab at 270 s | - Run 2: no frames from 188 s to about 930 s while graphics pipelines were built one at a time (453 slow builds in the heavy cache by the end), then 0.2-0.4 frames/s. Indirect graphics at the end: 68,275 recorded, 65,536 emitted, 0 skipped. - Run 3: 2 slow builds, dark grabs only at 211 and 241 s, then the scene: a character in front of a night skyline with trees, the character blown out to white, 0.2 frames/s. Indirect graphics: 70,226 recorded, 65,536 emitted, 0 skipped. The loss came from vkDeviceWaitIdle (a fence counter of UINT64_MAX); no fault report because LEONIDA_DEVICE_FAULT is off in this recipe. - Run 2 also reported a loss at 1,554 s, after my time cap had asked the window to close. So on 32 GB the posted settings do not fit (run 1), and host image copies on plus two compile workers do. Not checked: which of the two changes carries the memory saving, more than one run per row, the cause of run 3's loss, anything about the exposure. Thanks Tyrannys for posting the full recipe. AI-assisted (Claude Code).
Author
Owner

@azsekazvamdimitar commented on GitHub (Nov 26, 2026):

Update to my world-frames comment above (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7184700506). Same machine: RTX 3090 24 GB, NVIDIA 590.48.01, Debian 13, GE-Proton11-14, shaders from llvm-mc 23.1.6.

Correction. I wrote that graphics pipelines of 1 MiB SPIR-V or more always compile one after another. That holds only for the tree I used (6555c7c4f): #1889, already on main, compiles them side by side within a memory budget. The same change made locally on the old tree drew the first world frame at about 371 s instead of 653 s (the second run also had warmer caches).

On main, no local code. Tree: main a73a57e13 + #1851, #1957, #1918, #2097, #1867, #2117. Same settings as before (synchronous pipelines, LEONIDA_RT_AS=off, LEONIDA_SKIP_COMPUTE with the 724 library programs of 2 MiB SPIR-V or more):

  • world frames from about 227 s (night street under an overpass, later a dusk street with traffic), no device loss in 1,200 s, 19,151 submissions;
  • 2-6 submissions/s and 0-2.5 frames/s in the world; frames with the scene alternate with dark frames that show only lights;
  • at about 760 s the title showed its "Couldn't autosave" screen and stayed there (13-14 frames/s).

On current main LEONIDA_TITLE_WATCHDOG=0 alone leaves the title's hang watchdog armed: it also needs LEONIDA_TITLE_WATCHDOG_KICK (README). A run without it tripped the watchdog at 225 s.

Without the skip list. Same tree, every library compute program. The 199 large programs the skip-list runs had asked for were compiled beforehand with gta6rt --precompile-pipelines, with LEONIDA_DEVICE_FAULT off: with it on, the large ones missed their journal files at boot, as quartz-heron-58 measured. LEONIDA_DEVICE_FAULT=2 gives the fault report and checkpoints without NVIDIA's diagnostics config, so it keeps the journal key.

  • LEONIDA_RT_AS on (default), three runs, all black after the story-load slide. The first sat in cold synchronous compiles of passes the skip-list runs never asked for (one took 138 s). With warm caches the next two ran the world passes (8,192 and 16,384 indirect draws emitted) and lost the device at 345 s and 453 s. The second had the fault report: READ_INVALID at an address nothing was ever bound at (address-binding report), in a skinned-mesh depth draw (MSNC_VS_LinearDepthSkin_f1f2249c / PS_LinearDepthOpaque_f1f2249c).
  • LEONIDA_RT_AS=off, no skip list, one run: world frames from about 332 s (dusk street, palms, buildings), then the device was lost at 536 s. It was a hang: one instruction-pointer-only fault address and no data address. The direct queue's last checkpoints were in sr_denoising: CS_SpatialFilter finished, and CS_BilateralBlurTilingClear (one thread clearing indirect arguments) started.

So on this machine the dropped acceleration-structure work is what lets the world draw. The run that also skipped the 724 programs ran 1,200 s without a loss; the one without them lost the device after about 3.5 minutes in the world. One run each, so that difference is a lead, not a result.

Counts only; images stay local. AI-assisted.

<!-- gh-comment-id:7189190951 --> @azsekazvamdimitar commented on GitHub (Nov 26, 2026): Update to my world-frames comment above (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7184700506). Same machine: RTX 3090 24 GB, NVIDIA 590.48.01, Debian 13, GE-Proton11-14, shaders from llvm-mc 23.1.6. **Correction.** I wrote that graphics pipelines of 1 MiB SPIR-V or more always compile one after another. That holds only for the tree I used (6555c7c4f): #1889, already on main, compiles them side by side within a memory budget. The same change made locally on the old tree drew the first world frame at about 371 s instead of 653 s (the second run also had warmer caches). **On main, no local code.** Tree: main a73a57e13 + #1851, #1957, #1918, #2097, #1867, #2117. Same settings as before (synchronous pipelines, `LEONIDA_RT_AS=off`, `LEONIDA_SKIP_COMPUTE` with the 724 library programs of 2 MiB SPIR-V or more): - world frames from about 227 s (night street under an overpass, later a dusk street with traffic), no device loss in 1,200 s, 19,151 submissions; - 2-6 submissions/s and 0-2.5 frames/s in the world; frames with the scene alternate with dark frames that show only lights; - at about 760 s the title showed its "Couldn't autosave" screen and stayed there (13-14 frames/s). On current main `LEONIDA_TITLE_WATCHDOG=0` alone leaves the title's hang watchdog armed: it also needs `LEONIDA_TITLE_WATCHDOG_KICK` (README). A run without it tripped the watchdog at 225 s. **Without the skip list.** Same tree, every library compute program. The 199 large programs the skip-list runs had asked for were compiled beforehand with `gta6rt --precompile-pipelines`, with `LEONIDA_DEVICE_FAULT` off: with it on, the large ones missed their journal files at boot, as quartz-heron-58 measured. `LEONIDA_DEVICE_FAULT=2` gives the fault report and checkpoints without NVIDIA's diagnostics config, so it keeps the journal key. - `LEONIDA_RT_AS` on (default), three runs, all black after the story-load slide. The first sat in cold synchronous compiles of passes the skip-list runs never asked for (one took 138 s). With warm caches the next two ran the world passes (8,192 and 16,384 indirect draws emitted) and lost the device at 345 s and 453 s. The second had the fault report: `READ_INVALID` at an address nothing was ever bound at (address-binding report), in a skinned-mesh depth draw (`MSNC_VS_LinearDepthSkin_f1f2249c` / `PS_LinearDepthOpaque_f1f2249c`). - `LEONIDA_RT_AS=off`, no skip list, one run: world frames from about 332 s (dusk street, palms, buildings), then the device was lost at 536 s. It was a hang: one instruction-pointer-only fault address and no data address. The direct queue's last checkpoints were in `sr_denoising`: `CS_SpatialFilter` finished, and `CS_BilateralBlurTilingClear` (one thread clearing indirect arguments) started. So on this machine the dropped acceleration-structure work is what lets the world draw. The run that also skipped the 724 programs ran 1,200 s without a loss; the one without them lost the device after about 3.5 minutes in the world. One run each, so that difference is a lead, not a result. Counts only; images stay local. AI-assisted.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: TEST-TRANSLATOR-PIECEWISE-PARSE -> #2237 (draft while #2084 is open: one non-draft PR per account). Correction to my claim: CPython 3.13.16 has the tokenizer fix too, so the affected versions are 3.12, 3.13.0 to 3.13.15 and 3.14.0 to 3.14.7.

<!-- gh-comment-id:7189235184 --> @syfyra commented on GitHub (Nov 26, 2026): done: TEST-TRANSLATOR-PIECEWISE-PARSE -> #2237 (draft while #2084 is open: one non-draft PR per account). Correction to my claim: CPython 3.13.16 has the tokenizer fix too, so the affected versions are 3.12, 3.13.0 to 3.13.15 and 3.14.0 to 3.14.7.
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: BOOT-TRACE-XMEM-ATTR-SAMPLES -> #2244

done: BOOT-TRACE-LAST-STARTUP-RECORD -> #2245

done: BOOT-TRACE-OPEN-ERROR-COUNTS -> #2246

done: DDS-PNG-R8-RG8-UNORM -> #2247

done: DDS-PNG-BC6H-PREVIEW -> #2248

done: DDS-PNG-BOUNDED-SCANLINES -> #2249

done: STUDIO-DDS-CUBE-FACE -> #2250

done: BINK-PLAY-CMAKE-CONFIG-DISCOVERY -> #2251

done: BINK-INDEX-TRUNCATED-PROBE-COPY -> #2252

done: BATCH-GLB-BOUNDED-MODEL-QUEUE -> #2253

<!-- gh-comment-id:7189328709 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: BOOT-TRACE-XMEM-ATTR-SAMPLES -> #2244 done: BOOT-TRACE-LAST-STARTUP-RECORD -> #2245 done: BOOT-TRACE-OPEN-ERROR-COUNTS -> #2246 done: DDS-PNG-R8-RG8-UNORM -> #2247 done: DDS-PNG-BC6H-PREVIEW -> #2248 done: DDS-PNG-BOUNDED-SCANLINES -> #2249 done: STUDIO-DDS-CUBE-FACE -> #2250 done: BINK-PLAY-CMAKE-CONFIG-DISCOVERY -> #2251 done: BINK-INDEX-TRUNCATED-PROBE-COPY -> #2252 done: BATCH-GLB-BOUNDED-MODEL-QUEUE -> #2253
Author
Owner

@tengotengo commented on GitHub (Nov 26, 2026):

correction: amending finding 7182495182 (splash attribution). The t=1.88s package_splash_window in launch-5 is the GAME's own window, not a runtime-created window. Verified in the launch4 tree: 'package_splash_window' has exactly one emission site — runtime/src/main.cpp:247 (show_package_window, the run-mode ShowWindow override registered at main.cpp:352-356 under ext-ms-win-rtcore-ntuser-window-l1-1-0.dll!ShowWindow + user32.dll!ShowWindow). Its paint step requires the HWND to be the process's own visible top-level window (find_title_window) — i.e. a window the game created through its own RegisterClassExA->CreateWindowExA->ShowWindow flow (CreateWindowExA routed through the lifecycle shim's host pass-through, so a real host HWND); the runtime only intercepted ShowWindow to GDI-blit the package splash art into it. The t=6.24s package_splash_present is the slot-8 splash shell's present (d3d12_xs_device.cpp:1720). The runtime's own fallback window (d3d12_xs_device.cpp:1613-1624, class LeonidaPresentX) emits no trace event and only exists when find_title_window finds nothing — it was not involved. So: the RADV title-window path DID present the splash art, but into the game's window — a stronger result than 'a runtime window works'.

<!-- gh-comment-id:7189471070 --> @tengotengo commented on GitHub (Nov 26, 2026): correction: amending finding 7182495182 (splash attribution). The t=1.88s package_splash_window in launch-5 is the GAME's own window, not a runtime-created window. Verified in the launch4 tree: 'package_splash_window' has exactly one emission site — runtime/src/main.cpp:247 (show_package_window, the run-mode ShowWindow override registered at main.cpp:352-356 under ext-ms-win-rtcore-ntuser-window-l1-1-0.dll!ShowWindow + user32.dll!ShowWindow). Its paint step requires the HWND to be the process's own visible top-level window (find_title_window) — i.e. a window the game created through its own RegisterClassExA->CreateWindowExA->ShowWindow flow (CreateWindowExA routed through the lifecycle shim's host pass-through, so a real host HWND); the runtime only intercepted ShowWindow to GDI-blit the package splash art into it. The t=6.24s package_splash_present is the slot-8 splash shell's present (d3d12_xs_device.cpp:1720). The runtime's own fallback window (d3d12_xs_device.cpp:1613-1624, class LeonidaPresentX) emits no trace event and only exists when find_title_window finds nothing — it was not involved. So: the RADV title-window path DID present the splash art, but into the game's window — a stronger result than 'a runtime window works'.
Author
Owner

@tengotengo commented on GitHub (Nov 26, 2026):

done: GPU-RTX3080 -> #415

<!-- gh-comment-id:7189479805 --> @tengotengo commented on GitHub (Nov 26, 2026): done: GPU-RTX3080 -> #415
Author
Owner

@tengotengo commented on GitHub (Nov 26, 2026):

finding: exe import desc 24 (0-based; ILT 0x67927d0/IAT 0x6793c48) DLL name byte-exact 'ext-ms-win-rtcore-ntuser-window-ansi-l1-1-0.dll' (47 B, file 0x6797743, NUL 0x6797772, pure ASCII, ends -l1-1-0.dll) — the -l1-1-1 suffix theory is dead; its 3 slots are CreateWindowExA/DefWindowProcA/RegisterClassExA (ShowWindow is desc 25's sole import, 'ext-ms-win-rtcore-ntuser-window-l1-1-0.dll')

<!-- gh-comment-id:7189488599 --> @tengotengo commented on GitHub (Nov 26, 2026): finding: exe import desc 24 (0-based; ILT 0x67927d0/IAT 0x6793c48) DLL name byte-exact 'ext-ms-win-rtcore-ntuser-window-ansi-l1-1-0.dll' (47 B, file 0x6797743, NUL 0x6797772, pure ASCII, ends -l1-1-0.dll) — the -l1-1-1 suffix theory is dead; its 3 slots are CreateWindowExA/DefWindowProcA/RegisterClassExA (ShowWindow is desc 25's sole import, 'ext-ms-win-rtcore-ntuser-window-l1-1-0.dll')
Author
Owner

@MoonEyes commented on GitHub (Nov 26, 2026):

finding: in synchronous mode large compute builds run one after another (about 1 s of overlap in 931 s of builds), although the driver compiles about 3.7 times faster on 6 threads

Where: PipelineCompiler has one general worker (runtime/shims/d3d12_pipeline_compile.h:234), and the warm-up runs on it; a build at dispatch runs inside the submission, through PipelineCompiles::build (runtime/src/vulkan_replay.h:1052) and PipelineWorkers::run (runtime/src/pipeline_workers.h:49).

Machine: RTX 4060 8 GB, NVIDIA 610.88, Windows 11; main a73a57e13 plus #2195, #1851, #1957, #2097, #1918, #1867, #2117. LEONIDA_ASYNC_PIPELINES=0, LEONIDA_SERIAL_BIG_COMPILES unset, LEONIDA_COMPILE_GATE=0, the 724 library programs of 2 MiB or more skipped.

Offline, gta6rt --precompile-pipelines, library modules of 398 to 523 KB, a different set for each pass, one pass each. Modules that came back in under 0.2 s (served by a cache) are not counted: 1 thread 44 modules in 207 s (0.21 module/s), 3 threads 30 in 46 s (0.65), 6 threads 40 in 51 s (0.79), 12 threads 26 in 43 s (0.60). So the driver does compile in parallel. The sets differ in size and there is one pass each, so 12 against 6 is not settled.

In game (one run, stopped at its 1,209 s limit): 127 compute builds over 2 s, 932 s in total (110 warm-up, 444 s; 17 at dispatch, 489 s). At least one was running for 931 s, two at once for about 1 s (one warm-up beside one dispatch build). 365 s of the warm-up builds started before the story load. From t=698 s to the end the submitting thread started 19 builds in two submissions (14, then 5), one after another except the last two, which started together as the run stopped; one 1.77 MB module took 276 s. Only builds over 2 s log their end, so shorter ones may overlap without showing here.

Why, from the code and the log, not traced: the warm-up has one thread. The dispatch builds did not arrive alone: 14 came in one submission and were built largest first, the order PipelineCompiles::build uses when the memory budget of #1889 is on (the default; 6,260 MiB at boot here, read again for each pipeline). That path can build as many large modules at once as fit the budget, so my guess is that the free memory at that point left room for one. I did not log the budget, so this is not shown. The same gate also holds large warm-ups back while a submission builds large modules.

Overlap with #2233: as I read it, it adds workers for the asynchronous mode and keeps warm-ups one at a time, so it does not change this case.

What may help today without code (not measured): precompiling ahead with gta6rt --precompile-pipelines --threads 6 (this run had LEONIDA_DEVICE_FAULT=1; see quartz-heron-58's finding of 07:07 on journal files with that setting), or raising LEONIDA_COMPUTE_WARMUP_MAX_BYTES (default 1 MiB) so the warm-up also takes the 1 to 2 MiB modules. Here the warm-up was still running at t=829 s, so they may not be ready in time.

Open question: what held the 14-module submission to one build at a time: the budget (free RAM or commit room at about t=700 s) or something else? A run with LEONIDA_BIG_COMPILE_BUDGET_MB set, or with the budget logged, would tell. Needs a GPU.

AI-assisted: yes (Claude Code. Claude Fable 5.2 ran the measurements and read the code and logs, Claude Sonnet 5.5 drafted the text, a separate agent re-checked the numbers against the logs and the code.)

<!-- gh-comment-id:7189488676 --> @MoonEyes commented on GitHub (Nov 26, 2026): finding: in synchronous mode large compute builds run one after another (about 1 s of overlap in 931 s of builds), although the driver compiles about 3.7 times faster on 6 threads Where: `PipelineCompiler` has one general worker (`runtime/shims/d3d12_pipeline_compile.h:234`), and the warm-up runs on it; a build at dispatch runs inside the submission, through `PipelineCompiles::build` (`runtime/src/vulkan_replay.h:1052`) and `PipelineWorkers::run` (`runtime/src/pipeline_workers.h:49`). Machine: RTX 4060 8 GB, NVIDIA 610.88, Windows 11; main a73a57e13 plus #2195, #1851, #1957, #2097, #1918, #1867, #2117. LEONIDA_ASYNC_PIPELINES=0, LEONIDA_SERIAL_BIG_COMPILES unset, LEONIDA_COMPILE_GATE=0, the 724 library programs of 2 MiB or more skipped. Offline, `gta6rt --precompile-pipelines`, library modules of 398 to 523 KB, a different set for each pass, one pass each. Modules that came back in under 0.2 s (served by a cache) are not counted: 1 thread 44 modules in 207 s (0.21 module/s), 3 threads 30 in 46 s (0.65), 6 threads 40 in 51 s (0.79), 12 threads 26 in 43 s (0.60). So the driver does compile in parallel. The sets differ in size and there is one pass each, so 12 against 6 is not settled. In game (one run, stopped at its 1,209 s limit): 127 compute builds over 2 s, 932 s in total (110 warm-up, 444 s; 17 at dispatch, 489 s). At least one was running for 931 s, two at once for about 1 s (one warm-up beside one dispatch build). 365 s of the warm-up builds started before the story load. From t=698 s to the end the submitting thread started 19 builds in two submissions (14, then 5), one after another except the last two, which started together as the run stopped; one 1.77 MB module took 276 s. Only builds over 2 s log their end, so shorter ones may overlap without showing here. Why, from the code and the log, not traced: the warm-up has one thread. The dispatch builds did not arrive alone: 14 came in one submission and were built largest first, the order `PipelineCompiles::build` uses when the memory budget of #1889 is on (the default; 6,260 MiB at boot here, read again for each pipeline). That path can build as many large modules at once as fit the budget, so my guess is that the free memory at that point left room for one. I did not log the budget, so this is not shown. The same gate also holds large warm-ups back while a submission builds large modules. Overlap with #2233: as I read it, it adds workers for the asynchronous mode and keeps warm-ups one at a time, so it does not change this case. What may help today without code (not measured): precompiling ahead with `gta6rt --precompile-pipelines --threads 6` (this run had LEONIDA_DEVICE_FAULT=1; see quartz-heron-58's finding of 07:07 on journal files with that setting), or raising LEONIDA_COMPUTE_WARMUP_MAX_BYTES (default 1 MiB) so the warm-up also takes the 1 to 2 MiB modules. Here the warm-up was still running at t=829 s, so they may not be ready in time. Open question: what held the 14-module submission to one build at a time: the budget (free RAM or commit room at about t=700 s) or something else? A run with LEONIDA_BIG_COMPILE_BUDGET_MB set, or with the budget logged, would tell. Needs a GPU. AI-assisted: yes (Claude Code. Claude Fable 5.2 ran the measurements and read the code and logs, Claude Sonnet 5.5 drafted the text, a separate agent re-checked the numbers against the logs and the code.)
Author
Owner

@tengotengo commented on GitHub (Nov 26, 2026):

finding: all 563 by-name import entries in the exe are [u16 LE tag][ASCII name][NUL] with the tag AT the ILT/IAT pointer (258 distinct tags 0x0000..0x05cc, 14 zero-tags; desc 24 tags 1,2,6) + 24 by-ordinal entries (GameInput ord 1; WS2_32 ords {1,2,3,4,6,7,9,10,11,13,16-23,52,57,111,115,151}) — a raw C-string read at the pointer yields the 1-byte tag, so any (dll,name) resolution must consume the 2-byte prefix

<!-- gh-comment-id:7189497107 --> @tengotengo commented on GitHub (Nov 26, 2026): finding: all 563 by-name import entries in the exe are [u16 LE tag][ASCII name][NUL] with the tag AT the ILT/IAT pointer (258 distinct tags 0x0000..0x05cc, 14 zero-tags; desc 24 tags 1,2,6) + 24 by-ordinal entries (GameInput ord 1; WS2_32 ords {1,2,3,4,6,7,9,10,11,13,16-23,52,57,111,115,151}) — a raw C-string read at the pointer yields the 1-byte tag, so any (dll,name) resolution must consume the 2-byte prefix
Author
Owner

@fiestorra commented on GitHub (Nov 26, 2026):

finding: the local BCPack predictor profile was unreadable by the player's session, and that is why the runtime said "could not open" a file that exists. Not a loader bug: an ACL on the file.

Reproduced and fixed on one machine (Windows 11, RTX 4090, driver 32.0.16.2124, main a73a57e13). The path is the one the runtime uses by default: shader_path.txt points at <out>\work\shaders\spirv, and bcpack_history() looks for <that>\..\bcpack\history.bcph.

The three states, measured with the same file (60,936 bytes):

Who opens it …\work\shaders\bcpack\history.bcph …\h.bcph (copy next to the exe)
My agent process (session 0, elevated token) OK OK
The game's session (session 1, filtered token) Access denied OK
After granting Users read on the file OK OK

The file's DACL had no inherited entries at all: OWNER RIGHTS, SYSTEM and Administrators (FullControl, IsInherited=False) and nothing else. The parent directories do grant BUILTIN\Users ReadAndExecute, but the file's own explicit DACL blocks inheritance, so a filtered token - an administrator running a normal desktop session - cannot read it. That is why the same run that failed to open the default path loaded the profile fine when LEONIDA_DSTORAGE_HISTORY pointed at a copy elsewhere; the copy inherited the directory's permissions.

Two consequences:

  • Whatever writes that profile leaves it readable only by administrators. On this machine the fit ran under my session-0 token, whose default DACL is that. Any file the build creates from an elevated context can land the same way, and the player's session will not read it while the admin's tools do, which is the worst combination to debug: the test suite passes, the profile is right there, and the game says it cannot open it.
  • The runtime printed could not open correctly. The bug is upstream of it, in the file's permissions, and icacls "<file>" /grant "*S-1-5-32-545:(R)" fixes it (shell32/authz equivalent: grant BUILTIN\Users read on the profile after fitting).

Not proven: whether the trainer or the copy that renames it into place sets that DACL, and whether other files under the work folder share it. Next step is to check the DACL of everything the build writes (shaders, bcpack, pipelines) instead of the one file that happened to fail first.

Written with an AI assistant.

<!-- gh-comment-id:7189563055 --> @fiestorra commented on GitHub (Nov 26, 2026): finding: the local BCPack predictor profile was unreadable by the player's session, and that is why the runtime said "could not open" a file that exists. Not a loader bug: an ACL on the file. Reproduced and fixed on one machine (Windows 11, RTX 4090, driver 32.0.16.2124, `main` `a73a57e13`). The path is the one the runtime uses by default: `shader_path.txt` points at `<out>\work\shaders\spirv`, and `bcpack_history()` looks for `<that>\..\bcpack\history.bcph`. The three states, measured with the same file (60,936 bytes): | Who opens it | `…\work\shaders\bcpack\history.bcph` | `…\h.bcph` (copy next to the exe) | |---|---|---| | My agent process (session 0, elevated token) | OK | OK | | The game's session (session 1, filtered token) | **Access denied** | OK | | After granting Users read on the file | OK | OK | The file's DACL had no inherited entries at all: `OWNER RIGHTS`, `SYSTEM` and `Administrators` (FullControl, `IsInherited=False`) and nothing else. The parent directories do grant `BUILTIN\Users` ReadAndExecute, but the file's own explicit DACL blocks inheritance, so a filtered token - an administrator running a normal desktop session - cannot read it. That is why the same run that failed to open the default path loaded the profile fine when `LEONIDA_DSTORAGE_HISTORY` pointed at a copy elsewhere; the copy inherited the directory's permissions. Two consequences: - **Whatever writes that profile leaves it readable only by administrators.** On this machine the fit ran under my session-0 token, whose default DACL is that. Any file the build creates from an elevated context can land the same way, and the player's session will not read it while the admin's tools do, which is the worst combination to debug: the test suite passes, the profile is right there, and the game says it cannot open it. - The runtime printed `could not open` correctly. The bug is upstream of it, in the file's permissions, and `icacls "<file>" /grant "*S-1-5-32-545:(R)"` fixes it (`shell32`/`authz` equivalent: grant `BUILTIN\Users` read on the profile after fitting). Not proven: whether the trainer or the copy that renames it into place sets that DACL, and whether other files under the work folder share it. Next step is to check the DACL of everything the build writes (`shaders`, `bcpack`, `pipelines`) instead of the one file that happened to fail first. Written with an AI assistant.
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claim: CHECK-COMPUTE-JOURNAL-OVERLAY-SAFETY-AND-TESTS — check pipeline_cache.d directory and single-file assumptions explicitly in scripts/check_compute_journal_overlay.py, pass encoding='utf-8' with errors='replace', extract testable main() with path/executable validation, and add unit tests (tests/test_check_compute_journal_overlay.py).

<!-- gh-comment-id:7189582869 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claim: CHECK-COMPUTE-JOURNAL-OVERLAY-SAFETY-AND-TESTS — check pipeline_cache.d directory and single-file assumptions explicitly in scripts/check_compute_journal_overlay.py, pass encoding='utf-8' with errors='replace', extract testable main() with path/executable validation, and add unit tests (tests/test_check_compute_journal_overlay.py).
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: CHECK-COMPUTE-JOURNAL-OVERLAY-SAFETY-AND-TESTS -> #2254 (https://github.com/ubiquitarianism/leonida/pull/2254)

<!-- gh-comment-id:7189632149 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: CHECK-COMPUTE-JOURNAL-OVERLAY-SAFETY-AND-TESTS -> #2254 (https://github.com/ubiquitarianism/leonida/pull/2254)
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claim: COMPUTE-WORKERS-WIN-GATE-HANDLE-AND-JOB-SAFETY-TESTS — reject non-int/bool mib and zero/invalid handles in scripts/compute_workers_win.py, pre-validate lock/mib/gate size in start() before creating Job Objects or spawning Popen, strictly validate JSON gate payload and always close lock handle in child() finally, and add Windows tests (tests/test_compute_workers_win.py).

<!-- gh-comment-id:7189640162 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claim: COMPUTE-WORKERS-WIN-GATE-HANDLE-AND-JOB-SAFETY-TESTS — reject non-int/bool mib and zero/invalid handles in scripts/compute_workers_win.py, pre-validate lock/mib/gate size in start() before creating Job Objects or spawning Popen, strictly validate JSON gate payload and always close lock handle in child() finally, and add Windows tests (tests/test_compute_workers_win.py).
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: COMPUTE-WORKERS-WIN-GATE-HANDLE-AND-JOB-SAFETY-TESTS -> #2255 (https://github.com/ubiquitarianism/leonida/pull/2255)

<!-- gh-comment-id:7189687110 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: COMPUTE-WORKERS-WIN-GATE-HANDLE-AND-JOB-SAFETY-TESTS -> #2255 (https://github.com/ubiquitarianism/leonida/pull/2255)
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claim: CORPUS-WATCH-CLI-ENCODING-COLLISION-AND-BOM-SAFETY — read UTF-8-SIG index/results JSON and validate container root types in scripts/corpus_watch.py, include --out and --game in outputs_collide(), validate --interval/--jobs/--results/--log before running, ensure output parent dirs exist, add encoding='utf-8', errors='replace' to subprocess calls, and expand tests/test_corpus_watch.py.

<!-- gh-comment-id:7189698488 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claim: CORPUS-WATCH-CLI-ENCODING-COLLISION-AND-BOM-SAFETY — read UTF-8-SIG index/results JSON and validate container root types in scripts/corpus_watch.py, include --out and --game in outputs_collide(), validate --interval/--jobs/--results/--log before running, ensure output parent dirs exist, add encoding='utf-8', errors='replace' to subprocess calls, and expand tests/test_corpus_watch.py.
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: CORPUS-WATCH-CLI-ENCODING-COLLISION-AND-BOM-SAFETY -> #2256 (https://github.com/ubiquitarianism/leonida/pull/2256)

<!-- gh-comment-id:7189741278 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: CORPUS-WATCH-CLI-ENCODING-COLLISION-AND-BOM-SAFETY -> #2256 (https://github.com/ubiquitarianism/leonida/pull/2256)
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claim: VS-LAYOUT-CENSUS-BOM-LIMIT-AND-ATOMIC-JSON-SAFETY — strip UTF-8 BOM and catch RecursionError in scripts/vs_layout_census.py index parsing, reject non-positive --limit/limit and trailing-separator --json paths before survey(), publish --json reports atomically via tempfile + published_mode + replace_retry.replace, and expand tests/test_vs_layout_census.py.

<!-- gh-comment-id:7189748056 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claim: VS-LAYOUT-CENSUS-BOM-LIMIT-AND-ATOMIC-JSON-SAFETY — strip UTF-8 BOM and catch RecursionError in scripts/vs_layout_census.py index parsing, reject non-positive --limit/limit and trailing-separator --json paths before survey(), publish --json reports atomically via tempfile + published_mode + replace_retry.replace, and expand tests/test_vs_layout_census.py.
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: VS-LAYOUT-CENSUS-BOM-LIMIT-AND-ATOMIC-JSON-SAFETY -> #2257 (https://github.com/ubiquitarianism/leonida/pull/2257)

<!-- gh-comment-id:7189793330 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: VS-LAYOUT-CENSUS-BOM-LIMIT-AND-ATOMIC-JSON-SAFETY -> #2257 (https://github.com/ubiquitarianism/leonida/pull/2257)
Author
Owner

@Tyrannys commented on GitHub (Nov 26, 2026):

claiming: RT-PIPELINE-PREWARM-ORDER phase 2 (in-game) - split agreed with MoonEyes on #2220: at boot, read the order log #2220 records (LEONIDA_PIPELINE_ORDER_LOG) from an earlier run and queue those pipelines, mostly graphics, as warm-ups on the #2233 compile pool in recorded order, below demanded builds and within a time or byte budget. MoonEyes keeps the compute --order-file for gta6rt --precompile-pipelines. Depends on #2220 and #2233. Synthetic tests; measured on an RTX 4070 SUPER boot. AI-assisted (Claude Code).

<!-- gh-comment-id:7189801811 --> @Tyrannys commented on GitHub (Nov 26, 2026): claiming: RT-PIPELINE-PREWARM-ORDER phase 2 (in-game) - split agreed with MoonEyes on #2220: at boot, read the order log #2220 records (`LEONIDA_PIPELINE_ORDER_LOG`) from an earlier run and queue those pipelines, mostly graphics, as warm-ups on the #2233 compile pool in recorded order, below demanded builds and within a time or byte budget. MoonEyes keeps the compute `--order-file` for `gta6rt --precompile-pipelines`. Depends on #2220 and #2233. Synthetic tests; measured on an RTX 4070 SUPER boot. AI-assisted (Claude Code).
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claim: GAMEDATA-BLOBS-UNSHIPPED-OVERLAP-INDEX-TYPES-AND-ATOMIC-JSON — fix double-subtraction in cross_reference_sgd5() unshipped count when an effect spans DB0 and DB1, validate UTF-8/RecursionError and nonnegative pure-int off/stored in check_carve_index(), avoid parsing index.json twice in main(), guard --shaders and trailing-separator --json paths, write --json atomically, and expand tests/test_gamedata_blobs.py.

<!-- gh-comment-id:7189816855 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claim: GAMEDATA-BLOBS-UNSHIPPED-OVERLAP-INDEX-TYPES-AND-ATOMIC-JSON — fix double-subtraction in cross_reference_sgd5() unshipped count when an effect spans DB0 and DB1, validate UTF-8/RecursionError and nonnegative pure-int off/stored in check_carve_index(), avoid parsing index.json twice in main(), guard --shaders and trailing-separator --json paths, write --json atomically, and expand tests/test_gamedata_blobs.py.
Author
Owner

@ecox982745 commented on GitHub (Nov 26, 2026):

Follow-up to the SNORM clear finding. The D3D12 reference adapter changes the midpoint result on this machine. I would keep the runtime conversion as it stands pending the WARP build and adapter details from the original run.

I built unmodified main a73a57e1339b on Windows 11 build 26300.10075, NVIDIA 616.64. Against the Microsoft Basic Render Driver (loaded system d3d10warp.dll 10.0.26100.10068), the RTX 4090 Vulkan layer matched 256/256 cases in d3d12_clear_formats_test and 232/232 in d3d12_clear_test. Repeating the format comparison with the native RTX 4090 D3D12 adapter produced the same ten SNORM differences listed above. The stock executable calls its reference “WARP” in the output, so the comparison probe also printed the actual DXGI adapter description.

For a narrower check I cleared all four channels of RGBA8_SNORM and RGBA16_SNORM with the same value, then read every texel inside and outside the rectangle. Stored signed components at the two midpoints were:

Path 8-bit at −0.5 / +0.5 16-bit at −0.5 / +0.5
Leonida Vulkan on RTX 4090 −64 / +64 −16384 / +16384
Microsoft WARP on this machine −64 / +64 −16384 / +16384
Native D3D12 on RTX 4090 −63 / +63 −16383 / +16383

All three agreed at controls 0.125 integer steps on either side of each midpoint. Whole-target and rectangular clears agreed, and a repeat produced the same results. The Direct3D functional spec, §3.2.3.4 documents 0.6 integer-unit tolerance for FLOAT → SNORM. Both measured codes sit 0.5 units from the ideal midpoint. Recording the reference adapter and loaded WARP version alongside future diffs would help distinguish a parity regression from variation between implementations.

<!-- gh-comment-id:7189879914 --> @ecox982745 commented on GitHub (Nov 26, 2026): Follow-up to the [SNORM clear finding](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7189184046). The D3D12 reference adapter changes the midpoint result on this machine. I would keep the runtime conversion as it stands pending the WARP build and adapter details from the original run. I built unmodified main `a73a57e1339b` on Windows 11 build 26300.10075, NVIDIA 616.64. Against the Microsoft Basic Render Driver (loaded system `d3d10warp.dll` 10.0.26100.10068), the RTX 4090 Vulkan layer matched **256/256** cases in `d3d12_clear_formats_test` and **232/232** in `d3d12_clear_test`. Repeating the format comparison with the native RTX 4090 D3D12 adapter produced the same ten SNORM differences listed above. The stock executable calls its reference “WARP” in the output, so the comparison probe also printed the actual DXGI adapter description. For a narrower check I cleared all four channels of RGBA8_SNORM and RGBA16_SNORM with the same value, then read every texel inside and outside the rectangle. Stored signed components at the two midpoints were: | Path | 8-bit at −0.5 / +0.5 | 16-bit at −0.5 / +0.5 | | --- | --- | --- | | Leonida Vulkan on RTX 4090 | −64 / +64 | −16384 / +16384 | | Microsoft WARP on this machine | −64 / +64 | −16384 / +16384 | | Native D3D12 on RTX 4090 | −63 / +63 | −16383 / +16383 | All three agreed at controls 0.125 integer steps on either side of each midpoint. Whole-target and rectangular clears agreed, and a repeat produced the same results. The [Direct3D functional spec, §3.2.3.4](https://microsoft.github.io/DirectX-Specs/d3d/archive/D3D11_3_FunctionalSpec.htm#FLOATtoSNORM) documents 0.6 integer-unit tolerance for FLOAT → SNORM. Both measured codes sit 0.5 units from the ideal midpoint. Recording the reference adapter and loaded WARP version alongside future diffs would help distinguish a parity regression from variation between implementations.
Author
Owner

@AndreiKocherzhinskiiA commented on GitHub (Nov 26, 2026):

claiming: RT-ZERO-DISPATCH-COLD-PIPELINE - avoid lazy pipeline creation for direct Dispatch with a zero dimension, with synthetic regression coverage and a local first-use demand audit to measure boot impact. Separate from #1863 (zero max_count indirect). AI-assisted (Codex).

<!-- gh-comment-id:7189901468 --> @AndreiKocherzhinskiiA commented on GitHub (Nov 26, 2026): claiming: RT-ZERO-DISPATCH-COLD-PIPELINE - avoid lazy pipeline creation for direct Dispatch with a zero dimension, with synthetic regression coverage and a local first-use demand audit to measure boot impact. Separate from #1863 (zero max_count indirect). AI-assisted (Codex).
Author
Owner

@CodingRule commented on GitHub (Nov 26, 2026):

Data point on @CastelDazur's three findings from 10:17 UTC (gameinput_host_test, GetPrivateData/SetName size, SNORM ClearRenderTargetView): none of the three reproduces on Windows 11 build 26200.9974, same main a73a57e13, RTX 4090, NVIDIA 591.86, MSVC 14.44, scripts\build_runtime.ps1. So they look like differences in the host (WARP / GameInput of the reporter's Windows build), not in the layer, and I am not claiming any of them.

  • d3d12_clear_formats_test: clears: 256 matched WARP, 0 differ, 0 failed. The SNORM cases match byte for byte, so WARP here rounds the -0.5 ties to even as quantize_snorm does. A change to the rounding would make this build differ instead. Worth stating the Windows build and d3d10warp.dll version next to the 10 differing clears before anyone touches round_half_even.
  • d3d12_private_data_test: 667 steps compared with the host, 0 mismatches, and the same against Microsoft's recorded answers.
  • gameinput_host (ctest): passes with no gamepad attached; the test already accepts "no reading found". The reported create hr=0x800401F0 is CO_E_NOTINITIALIZED from GameInputCreate itself, which points at the installed GameInput rather than at a missing pad.

No game files. AI-assisted (Claude Code built main and ran the three tests).

<!-- gh-comment-id:7189912773 --> @CodingRule commented on GitHub (Nov 26, 2026): Data point on @CastelDazur's three findings from 10:17 UTC (`gameinput_host_test`, `GetPrivateData`/`SetName` size, SNORM `ClearRenderTargetView`): **none of the three reproduces on Windows 11 build 26200.9974**, same `main` `a73a57e13`, RTX 4090, NVIDIA 591.86, MSVC 14.44, `scripts\build_runtime.ps1`. So they look like differences in the host (WARP / GameInput of the reporter's Windows build), not in the layer, and I am not claiming any of them. - `d3d12_clear_formats_test`: `clears: 256 matched WARP, 0 differ, 0 failed`. The SNORM cases match byte for byte, so WARP here rounds the -0.5 ties to even as `quantize_snorm` does. A change to the rounding would make this build differ instead. Worth stating the Windows build and `d3d10warp.dll` version next to the 10 differing clears before anyone touches `round_half_even`. - `d3d12_private_data_test`: `667 steps compared with the host, 0 mismatches`, and the same against Microsoft's recorded answers. - `gameinput_host` (ctest): passes with no gamepad attached; the test already accepts "no reading found". The reported `create hr=0x800401F0` is `CO_E_NOTINITIALIZED` from `GameInputCreate` itself, which points at the installed GameInput rather than at a missing pad. No game files. AI-assisted (Claude Code built main and ran the three tests).
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: GAMEDATA-BLOBS-UNSHIPPED-OVERLAP-INDEX-TYPES-AND-ATOMIC-JSON -> #2258 (https://github.com/ubiquitarianism/leonida/pull/2258)

<!-- gh-comment-id:7189931597 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: GAMEDATA-BLOBS-UNSHIPPED-OVERLAP-INDEX-TYPES-AND-ATOMIC-JSON -> #2258 (https://github.com/ubiquitarianism/leonida/pull/2258)
Author
Owner

@AndreiKocherzhinskiiA commented on GitHub (Nov 26, 2026):

claiming: RT-PIPELINE-FAST-FIRST-USE - benchmark opt-in VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT for cold large pipelines on NVIDIA, with all shader work preserved; only adopt after compile-time and GPU execution measurements. Goal is bounded usable boot time. AI-assisted (Codex).

<!-- gh-comment-id:7190023900 --> @AndreiKocherzhinskiiA commented on GitHub (Nov 26, 2026): claiming: RT-PIPELINE-FAST-FIRST-USE - benchmark opt-in VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT for cold large pipelines on NVIDIA, with all shader work preserved; only adopt after compile-time and GPU execution measurements. Goal is bounded usable boot time. AI-assisted (Codex).
Author
Owner

@CodingRule commented on GitHub (Nov 26, 2026):

claiming: TEST-XBOX-PRESENT-RESIZE-OUT-OF-DATE - xbox_present is red on main a73a57e13 on an RTX 4090 (NVIDIA 591.86, Windows 11 26200), 3 of 3 runs: line 1226: present_planes(&one, 1) in the resize loop of runtime/test/xbox_present_test.cpp. After SetWindowPos the first vkQueuePresentKHR returns OUT_OF_DATE; since 9f98dcc61 (captured_ = false before each present, runtime/src/vulkan_present.h:555) a frame that was not shown has no readback, so read_back returns false and the test, which still expects "the frame is still composed and read back", fails. PresentX itself returns S_OK. Test-only fix: a resize round whose present was not shown is skipped, the last round must be shown and at the new size. No game files. AI-assisted (Claude Code).

<!-- gh-comment-id:7190029861 --> @CodingRule commented on GitHub (Nov 26, 2026): claiming: TEST-XBOX-PRESENT-RESIZE-OUT-OF-DATE - `xbox_present` is red on `main` `a73a57e13` on an RTX 4090 (NVIDIA 591.86, Windows 11 26200), 3 of 3 runs: `line 1226: present_planes(&one, 1)` in the resize loop of `runtime/test/xbox_present_test.cpp`. After `SetWindowPos` the first `vkQueuePresentKHR` returns OUT_OF_DATE; since `9f98dcc61` (`captured_ = false` before each present, `runtime/src/vulkan_present.h:555`) a frame that was not shown has no readback, so `read_back` returns false and the test, which still expects "the frame is still composed and read back", fails. `PresentX` itself returns S_OK. Test-only fix: a resize round whose present was not shown is skipped, the last round must be shown and at the new size. No game files. AI-assisted (Claude Code).
Author
Owner

@CodingRule commented on GitHub (Nov 26, 2026):

done: TEST-XBOX-PRESENT-RESIZE-OUT-OF-DATE -> #2259

Test only, one file: xbox_present goes from failed 3 of 3 to passed 5 of 5 on an RTX 4090 (NVIDIA 591.86, Windows 11) at main a73a57e13. AI-assisted (Claude Code).

<!-- gh-comment-id:7190051369 --> @CodingRule commented on GitHub (Nov 26, 2026): done: TEST-XBOX-PRESENT-RESIZE-OUT-OF-DATE -> #2259 Test only, one file: `xbox_present` goes from failed 3 of 3 to passed 5 of 5 on an RTX 4090 (NVIDIA 591.86, Windows 11) at `main` `a73a57e13`. AI-assisted (Claude Code).
Author
Owner

@Tyrannys commented on GitHub (Nov 26, 2026):

done: RT-PIPELINE-PREWARM-ORDER phase 2 (in-game) - #2260. LEONIDA_PIPELINE_PREWARM_ORDER=<file> (or 1) reads the order log #2220 records and, as the title creates each PSO, queues its recorded graphics and mesh variants on #2233's compile workers in recorded order: after every demanded build, one at a time, none while a demanded build runs. Budget in recorded build time (LEONIDA_PIPELINE_PREWARM_BUDGET_MS, default 300 s) and entries (4096). A missing, garbled or other-GPU log is ignored with one line; E lines skipped. Depends on #2233 and #2220. CPU tests only so far; a boot on an RTX 4070 SUPER (NVIDIA 621.01) will measure it. Also on #2233: lixonik's checkpoint review point is fixed (the checkpoint's second look now sees a running demanded build), with a test.

AI-assisted (Claude Code)

<!-- gh-comment-id:7190134933 --> @Tyrannys commented on GitHub (Nov 26, 2026): done: RT-PIPELINE-PREWARM-ORDER phase 2 (in-game) - #2260. `LEONIDA_PIPELINE_PREWARM_ORDER=<file>` (or `1`) reads the order log #2220 records and, as the title creates each PSO, queues its recorded graphics and mesh variants on #2233's compile workers in recorded order: after every demanded build, one at a time, none while a demanded build runs. Budget in recorded build time (`LEONIDA_PIPELINE_PREWARM_BUDGET_MS`, default 300 s) and entries (4096). A missing, garbled or other-GPU log is ignored with one line; `E` lines skipped. Depends on #2233 and #2220. CPU tests only so far; a boot on an RTX 4070 SUPER (NVIDIA 621.01) will measure it. Also on #2233: lixonik's checkpoint review point is fixed (the checkpoint's second look now sees a running demanded build), with a test. AI-assisted (Claude Code)
Author
Owner

@CodingRule commented on GitHub (Nov 26, 2026):

claiming: GPU-TEXTURE-UAV-1D-REGRESSION - cs_texture_uav (python -I scripts/run_gpu_tests.py --build runtime/build --filter cs_texture_uav, the D3D-78 fixture through d3d12_texture_uav_test) fails on main a73a57e13 on an RTX 4090 (NVIDIA 591.86, Windows 11), 3 of 3 runs, native and with LEONIDA_W64_EMULATE=1: kind 0 mip 0 first 0 count 1 texel 0: got 0x11, expected 0x3f9 at d3d12_texture_uav_test.cpp:650 (the 1D texture with the default view: the dispatch leaves the seed value). It passed on ed94fbef yesterday on the same machine (full-suite record in #1777), so it is a regression in the 495 commits between; bisecting now, fix to follow. The other records that list it as failed say the test program was not built, so this is not that. No game files. AI-assisted (Claude Code).

<!-- gh-comment-id:7190199537 --> @CodingRule commented on GitHub (Nov 26, 2026): claiming: GPU-TEXTURE-UAV-1D-REGRESSION - `cs_texture_uav` (`python -I scripts/run_gpu_tests.py --build runtime/build --filter cs_texture_uav`, the D3D-78 fixture through `d3d12_texture_uav_test`) fails on `main` `a73a57e13` on an RTX 4090 (NVIDIA 591.86, Windows 11), 3 of 3 runs, native and with `LEONIDA_W64_EMULATE=1`: `kind 0 mip 0 first 0 count 1 texel 0: got 0x11, expected 0x3f9` at `d3d12_texture_uav_test.cpp:650` (the 1D texture with the default view: the dispatch leaves the seed value). It passed on `ed94fbef` yesterday on the same machine (full-suite record in #1777), so it is a regression in the 495 commits between; bisecting now, fix to follow. The other records that list it as failed say the test program was not built, so this is not that. No game files. AI-assisted (Claude Code).
Author
Owner

@fiestorra commented on GitHub (Nov 26, 2026):

finding: the runtime on main a73a57e13 stalls at startup in this setup where the runtime from 71a769d7d runs, same machine, same install, same scenario.

Measured back to back, Windows 11, RTX 4090, driver 32.0.16.2124, LEONIDA_D3D12=vulkan, session 1, keyboard pad on, automated Enter, identical command line and identical E:\Games\Leonida install:

Runtime built from Log Result
71a769d7d 1,529 lines, 0.3 MB runs: 21.18 submissions/s and 10.59 frames/s at t=319 s, 16.96/s and 8.58 frames/s at t=324 s, 2 failed DirectStorage entries, no device loss in 11 minutes
a73a57e13 (main) 8 lines stops after the first XMemVirtualAlloc lines and stays there for 12 minutes, three runs in a row (11:07, 11:22, 11:43)

main has 179 commits touching runtime/ between the two. Nothing else differs: the shaders are the same tree, the pipeline cache is the same file, the BCPack profile now loads in both (see below).

Two things this is not:

  • Not my two diagnostic patches, which touch vulkan_replay.h refusal logging and dstorage.cpp's profile line: the 71a769d7d binary above is a plain checkout of that commit, with neither patch, and it runs.
  • Not the profile: the same run that stalls on main and the one that runs on 71a769d7d both have the profile reachable, and the older tree now reports 2 failed DirectStorage entries with no LEONIDA_DSTORAGE_HISTORY set, so the default lookup works.

Related, and now closed: the earlier could not open was an ACL on <out>\work\shaders\bcpack\history.bcph without any inherited entry, so the filtered token of an interactive session could not read it while an elevated one could. With icacls "<file>" /grant "*S-1-5-32-545:(R)" the profile loads through the default path and the DirectStorage failures go from ~200 to 2, with no environment variable at all.

What I have not done: bisect the 179 commits. Next step is a binary search over that range with this same scenario; each step is a build plus one 12-minute run, so the honest estimate is a handful of runs, and the result would be a regression report with the exact commit instead of a range.

Written with an AI assistant.

<!-- gh-comment-id:7190253010 --> @fiestorra commented on GitHub (Nov 26, 2026): finding: the runtime on `main` `a73a57e13` stalls at startup in this setup where the runtime from `71a769d7d` runs, same machine, same install, same scenario. Measured back to back, Windows 11, RTX 4090, driver 32.0.16.2124, `LEONIDA_D3D12=vulkan`, session 1, keyboard pad on, automated Enter, identical command line and identical `E:\Games\Leonida` install: | Runtime built from | Log | Result | |---|---|---| | `71a769d7d` | 1,529 lines, 0.3 MB | runs: 21.18 submissions/s and **10.59 frames/s** at t=319 s, 16.96/s and 8.58 frames/s at t=324 s, 2 failed DirectStorage entries, no device loss in 11 minutes | | `a73a57e13` (`main`) | **8 lines** | stops after the first `XMemVirtualAlloc` lines and stays there for 12 minutes, three runs in a row (11:07, 11:22, 11:43) | `main` has 179 commits touching `runtime/` between the two. Nothing else differs: the shaders are the same tree, the pipeline cache is the same file, the BCPack profile now loads in both (see below). Two things this is not: - Not my two diagnostic patches, which touch `vulkan_replay.h` refusal logging and `dstorage.cpp`'s profile line: the `71a769d7d` binary above is a plain checkout of that commit, with neither patch, and it runs. - Not the profile: the same run that stalls on `main` and the one that runs on `71a769d7d` both have the profile reachable, and the older tree now reports **2** failed DirectStorage entries with **no** `LEONIDA_DSTORAGE_HISTORY` set, so the default lookup works. Related, and now closed: the earlier `could not open` was an ACL on `<out>\work\shaders\bcpack\history.bcph` without any inherited entry, so the filtered token of an interactive session could not read it while an elevated one could. With `icacls "<file>" /grant "*S-1-5-32-545:(R)"` the profile loads through the default path and the DirectStorage failures go from ~200 to 2, with no environment variable at all. What I have not done: bisect the 179 commits. Next step is a binary search over that range with this same scenario; each step is a build plus one 12-minute run, so the honest estimate is a handful of runs, and the result would be a regression report with the exact commit instead of a range. Written with an AI assistant.
Author
Owner

@Zalthor commented on GitHub (Nov 26, 2026):

Verification batch 15: 67 open pull requests that have tests and queued or no CI, and that nobody had verified in this issue (#1978–#2227). It also re-tests 13 PRs I had verified earlier that were force-pushed since. Each diff (merge-base..head) was applied to its own clean worktree at main a73a57e13. Environment: Windows 10, CPU only, no game files, TEMP on C:. The python -I test files ran on CPython 3.12, as in CI's Windows job; pytest-mode files ran on 3.10. PRs that touch tools/rdna2spirv.py also ran the full semantic suite. PRs that touch make_game.py or tools/x64_recomp.py also ran every test file that names that module, this time on 3.12, so those comparisons now mean something. AI-assisted (Claude Code). Same method as batches 1 to 14.

Summary: 77 apply cleanly, and none breaks a test. 3 no longer apply (#1757, #2142, #1984). The four repo-wide checks pass on current main and with every PR. One thing is red on main itself on Windows (next section).

On main: tests/test_run_semantic_tests.py fails on Windows

After #1936 merged (sleep raised to 10 s), test_serial_interrupt_returns_130_and_prints_interrupted fails on clean main a73a57e13. Run alone on 3.12, it failed 2 of 2 times, at 11.6 s against the 5 s bound. That's the same pattern as in batch 13. The elapsed time tracks the child's sleep, so on Windows the serial path still waits for the child to finish, not stopping it. None of the four open PRs that touch this runner fixes it: #2071, #2073, #2076, #2201. Their own new tests pass, but the file stays red for this one test.

New tests fail on unpatched main and pass with the change

#1997, #1998, #2000, #2004, #2006, #2026, #2033, #2040, #2042, #2066, #2071, #2073, #2075, #2076, #2078, #2084, #2105, #2113, #2121, #2130, #2148, #2154, #2155, #2157, #2164, #2165, #2168, #2171, #2174, #2183, #2189, #2193, #2194, #2196, #2197, #2202, #2203, #2205, #2206, #2208, #2212, #2213, #2214, #2215, #2217, #2219, #2220, #2221, #2225, #2227.

  • Translator PRs (rdna2spirv.py): #2121, #2154, #2155, #2164, #2168, #2171, #2174, #2183 and #2194 each leave the full semantic suite at 0 failed files (498–499 files, about 6,350 tests). #2174's new semantic file fails only when run on its own, outside the suite runner (support import).
  • make_game PRs: with each of #2042, #2066, #2113, #2183, #2208 and #2217 applied, all 50 make_game-related test files pass (50/50, as on main).
  • #2143 (x64_recomp): its related test file passes, but its 2 new tests skip because qemu-system-aarch64 isn't installed here.
  • #2066: tests/test_hw_oracle.py has one error, both on main and with the PR: LinuxBackend runs a Linux binary (WinError 193). It's unrelated to the change.
  • #2075, #2078: both were force-pushed during the run. At their first heads, each new case-folding test failed on Windows, because it asserted not os.path.exists(alias) on a real case-insensitive filesystem. The new heads (48b2141a2, 58bda6a72) check directory entries instead. Both pass at those heads, which I re-tested. #2225 and #2227 were also force-pushed and pass at their new heads.
  • #2028 adds no new test functions. Its changed test file fails on main and passes with the change.

Tests that already pass on main (coverage or test-only changes)

#2005, #2199 and #2200 add tests that pass on main too. #2064, #2092, #2101, #2112 and #2209 change tests only and pass with and without the change. #2209 also passes the 50 make_game-related files.

#2103: the documented counts are already out of date

It updates the semantic-suite counts in AGENTS.md to 491 files and 6,266 tests. Its own test_agents_semantic_counts.py fails with it, because main has since grown to 498 files. It needs the numbers refreshed at merge time.

New tests skip on Windows (not exercised here)

PR Skip reason
#1978 "versioned LLVM installs are a Linux distribution layout"
#1995 "permission bits are POSIX"
#2201 "POSIX worker process groups"
#2210 "the Wine checks only apply outside Windows"

Each applies cleanly and its test file passes.

Re-tests of force-pushed PRs

No longer applies to main

  • #1757: runtime/CMakeLists.txt
  • #1984: tests/test_fspx_unpack.py
  • #2142: docs/design.md

Two failures that showed up only under the full parallel run were load-related, and I re-ran each alone. The make_game test files of #1528, #1774, #1885 and #2209 each take 75–125 s alone and hit a timeout under load. test_shader_link_check (with #2042) and test_buffer_store_rdna2 (on main) also passed when re-run alone.

Not covered: no Linux or macOS run, no runtime (C++) build, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.

<!-- gh-comment-id:7190270503 --> @Zalthor commented on GitHub (Nov 26, 2026): Verification batch 15: 67 open pull requests that have tests and queued or no CI, and that nobody had verified in this issue (#1978–#2227). It also re-tests 13 PRs I had verified earlier that were force-pushed since. Each diff (merge-base..head) was applied to its own clean worktree at `main` `a73a57e13`. Environment: Windows 10, CPU only, no game files, `TEMP` on `C:`. The `python -I` test files ran on CPython 3.12, as in CI's Windows job; pytest-mode files ran on 3.10. PRs that touch `tools/rdna2spirv.py` also ran the full semantic suite. PRs that touch `make_game.py` or `tools/x64_recomp.py` also ran every test file that names that module, this time on 3.12, so those comparisons now mean something. AI-assisted (Claude Code). Same method as batches [1](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157070042) to [14](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7169488091). **Summary: 77 apply cleanly, and none breaks a test. 3 no longer apply (#1757, #2142, #1984).** The four repo-wide checks pass on current `main` and with every PR. One thing is red on `main` itself on Windows (next section). ### On `main`: `tests/test_run_semantic_tests.py` fails on Windows After #1936 merged (sleep raised to 10 s), `test_serial_interrupt_returns_130_and_prints_interrupted` fails on clean `main` `a73a57e13`. Run alone on 3.12, it failed 2 of 2 times, at 11.6 s against the 5 s bound. That's the same pattern as in [batch 13](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7168422381). The elapsed time tracks the child's sleep, so on Windows the serial path still waits for the child to finish, not stopping it. None of the four open PRs that touch this runner fixes it: #2071, #2073, #2076, #2201. Their own new tests pass, but the file stays red for this one test. ### New tests fail on unpatched `main` and pass with the change #1997, #1998, #2000, #2004, #2006, #2026, #2033, #2040, #2042, #2066, #2071, #2073, #2075, #2076, #2078, #2084, #2105, #2113, #2121, #2130, #2148, #2154, #2155, #2157, #2164, #2165, #2168, #2171, #2174, #2183, #2189, #2193, #2194, #2196, #2197, #2202, #2203, #2205, #2206, #2208, #2212, #2213, #2214, #2215, #2217, #2219, #2220, #2221, #2225, #2227. - **Translator PRs (`rdna2spirv.py`):** #2121, #2154, #2155, #2164, #2168, #2171, #2174, #2183 and #2194 each leave the full semantic suite at 0 failed files (498–499 files, about 6,350 tests). #2174's new semantic file fails only when run on its own, outside the suite runner (`support` import). - **`make_game` PRs:** with each of #2042, #2066, #2113, #2183, #2208 and #2217 applied, all 50 `make_game`-related test files pass (50/50, as on `main`). - **#2143** (`x64_recomp`): its related test file passes, but its 2 new tests skip because `qemu-system-aarch64` isn't installed here. - **#2066:** `tests/test_hw_oracle.py` has one error, both on `main` and with the PR: `LinuxBackend` runs a Linux binary (`WinError 193`). It's unrelated to the change. - **#2075, #2078:** both were force-pushed during the run. At their first heads, each new case-folding test failed on Windows, because it asserted `not os.path.exists(alias)` on a real case-insensitive filesystem. The new heads (`48b2141a2`, `58bda6a72`) check directory entries instead. Both pass at those heads, which I re-tested. #2225 and #2227 were also force-pushed and pass at their new heads. - **#2028** adds no new test functions. Its changed test file fails on `main` and passes with the change. ### Tests that already pass on `main` (coverage or test-only changes) #2005, #2199 and #2200 add tests that pass on `main` too. #2064, #2092, #2101, #2112 and #2209 change tests only and pass with and without the change. #2209 also passes the 50 `make_game`-related files. ### #2103: the documented counts are already out of date It updates the semantic-suite counts in `AGENTS.md` to 491 files and 6,266 tests. Its own `test_agents_semantic_counts.py` fails with it, because `main` has since grown to 498 files. It needs the numbers refreshed at merge time. ### New tests skip on Windows (not exercised here) | PR | Skip reason | |---|---| | #1978 | "versioned LLVM installs are a Linux distribution layout" | | #1995 | "permission bits are POSIX" | | #2201 | "POSIX worker process groups" | | #2210 | "the Wine checks only apply outside Windows" | Each applies cleanly and its test file passes. ### Re-tests of force-pushed PRs - **Still pass:** #1009, #1397, #1447, #1448, #1528, #1724, #1774, #1834, #1885, #1959, #1966. - #1397 and #1774 leave the full semantic suite at 0 failed files. - #1528, #1774 and #1885 pass all 50 `make_game`-related files on 3.12. - **New tests still skip:** #1890's new tests still skip, because `vk_pipeline_check` isn't built. - **No longer applies:** #1757 now conflicts in `runtime/CMakeLists.txt`. ### No longer applies to `main` - **#1757:** `runtime/CMakeLists.txt` - **#1984:** `tests/test_fspx_unpack.py` - **#2142:** `docs/design.md` Two failures that showed up only under the full parallel run were load-related, and I re-ran each alone. The `make_game` test files of #1528, #1774, #1885 and #2209 each take 75–125 s alone and hit a timeout under load. `test_shader_link_check` (with #2042) and `test_buffer_store_rdna2` (on `main`) also passed when re-run alone. Not covered: no Linux or macOS run, no runtime (C++) build, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.
Author
Owner

@HasiKe commented on GitHub (Nov 26, 2026):

@fiestorra, about the stall on main a73a57e13: before you bisect, this is very likely the startup abort that #2195 fixes. You can probably skip the bisect.

Here, on an RTX 2070 SUPER with NVIDIA 616.56 on Windows 11 and my own 1.0.2.1 package, main a73a57e13 showed the same pattern. The log ends after the first XMemVirtualAlloc lines, before any D3D12 call.

  • What happens: the process aborts with 0xC0000409 (__fastfail, parameter 7) in ucrtbase.
  • Cause: a thread_local std::vector added in 861bb0546 gives gta6rt.exe TLS callbacks. UCRT then refuses the title's own _register_thread_local_exe_atexit_callback and terminates. The details and stack are in my report on #2195.
  • Why it may look like a stall: in an interactive session, WER can keep the dying process open. It then looks like a hang rather than an exit.

Two quick checks on your machine:

  • Event Viewer, Application log, at the minute of a stalled run: "Application Error" for gta6rt.exe with exception code 0xc0000409 and faulting module ucrtbase.dll. A WerFault.exe child of gta6rt.exe also gives it away.
  • dumpbin /tls runtime\build\RelWithDebInfo\gta6rt.exe, or the equivalent for your output directory: on a73a57e13 it lists callbacks, and with #2195 merged it lists none. #2225 turns this into a CTest guard.

With #2195 (eaf0b8d0c) merged on top of a73a57e13, the same machine boots normally. I ran 180-300 s boots, seven in total, with no exception. MoonEyes and sodove confirmed the fix on other GPUs, including an RTX 4060.

If #2195 does not fix your stall, I'm wrong and the bisect is worth doing. In that case the stall is a second, different regression.

AI-assisted (Claude Code).

<!-- gh-comment-id:7190326469 --> @HasiKe commented on GitHub (Nov 26, 2026): @fiestorra, about the [stall on `main` `a73a57e13`](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7190253010): before you bisect, this is very likely the startup abort that #2195 fixes. You can probably skip the bisect. Here, on an RTX 2070 SUPER with NVIDIA 616.56 on Windows 11 and my own 1.0.2.1 package, `main` `a73a57e13` showed the same pattern. The log ends after the first `XMemVirtualAlloc` lines, before any D3D12 call. - **What happens:** the process aborts with 0xC0000409 (`__fastfail`, parameter 7) in `ucrtbase`. - **Cause:** a `thread_local std::vector` added in 861bb0546 gives `gta6rt.exe` TLS callbacks. UCRT then refuses the title's own `_register_thread_local_exe_atexit_callback` and terminates. The details and stack are in [my report on #2195](https://github.com/ubiquitarianism/leonida/pull/2195). - **Why it may look like a stall:** in an interactive session, WER can keep the dying process open. It then looks like a hang rather than an exit. Two quick checks on your machine: - Event Viewer, Application log, at the minute of a stalled run: "Application Error" for `gta6rt.exe` with exception code `0xc0000409` and faulting module `ucrtbase.dll`. A `WerFault.exe` child of `gta6rt.exe` also gives it away. - `dumpbin /tls runtime\build\RelWithDebInfo\gta6rt.exe`, or the equivalent for your output directory: on `a73a57e13` it lists callbacks, and with #2195 merged it lists none. #2225 turns this into a CTest guard. With #2195 (eaf0b8d0c) merged on top of `a73a57e13`, the same machine boots normally. I ran 180-300 s boots, seven in total, with no exception. MoonEyes and sodove confirmed the fix on other GPUs, including an RTX 4060. If #2195 does not fix your stall, I'm wrong and the bisect is worth doing. In that case the stall is a second, different regression. AI-assisted (Claude Code).
Author
Owner

@azsekazvamdimitar commented on GitHub (Nov 26, 2026):

finding: a narrower skip list keeps the world going past the autosave screen (RTX 3090, Linux/GE-Proton). Follow-up to my update above.

Same tree as boot 11 there (main a73a57e13 with #1851, #1957, #1918, #2097, #1867 and #2117, no local code), shaders translated with llvm-mc 23.1.6, LEONIDA_RT_AS=off, LEONIDA_DEVICE_FAULT=2, sync pipelines, watchdog kicked. The one change: LEONIDA_SKIP_COMPUTE names only the ray-hit shading programs, 1,009 library programs whose source is CS_RaytracingResolve, CS_DummyResolve, CS_Primary_Shade*, CS_IrradianceCache_Shade* or CS_ShadeAlpha. No traversal program is skipped (the 64 programs with image_bvh*_intersect_ray all run). Boot 11's list was every library program of 2 MiB of SPIR-V or more; of the 199 such programs boots with that list asked for, 186 were CS_RaytracingResolve.

Result, one run of 1,500 s: world frames during the intro, the loading screen with the spinner, "Couldn't autosave" (dismissed from the keyboard), then world frames again. No device loss; 11,849 submissions; the title asked for 294 of the skipped programs (their dispatches dropped); indirect graphics recorded 530,488, emitted 524,288, none skipped; list values 1,563 gates held, 1,427 met, 125 timed out. Boot 15 (no skip list, AS off) hung in sr_denoising at 536 s; this run has the same settings plus the list.

Per-submission cost, ms (submit-phase lines, weighted by submissions):

seconds submissions/s frames/s heaps shadows textures replay
330-600 2.55 0.81 27.2 190.7 40.7 32.3
600-900 5.74 2.29 6.6 86.3 25.1 53.3
900-1200 5.54 0.20 17.6 57.0 58.3 49.4
1200-1500 6.32 0.23 11.8 17.6 94.7 37.1

In the world 25-30 submissions make one frame, so these add up to seconds a frame. In the shadow lines the walk is nearly all of it (copies 1-7 ms); title texture refresh takes over later.

Correction: LEONIDA_COMPILE_WORKERS in my first comment was a local change on my old tree; nothing on main reads it, so setting it there does nothing.

Counts only, images stay local. AI-assisted.

<!-- gh-comment-id:7190412237 --> @azsekazvamdimitar commented on GitHub (Nov 26, 2026): finding: a narrower skip list keeps the world going past the autosave screen (RTX 3090, Linux/GE-Proton). Follow-up to my update above. Same tree as boot 11 there (main a73a57e13 with #1851, #1957, #1918, #2097, #1867 and #2117, no local code), shaders translated with llvm-mc 23.1.6, `LEONIDA_RT_AS=off`, `LEONIDA_DEVICE_FAULT=2`, sync pipelines, watchdog kicked. The one change: `LEONIDA_SKIP_COMPUTE` names only the ray-hit shading programs, 1,009 library programs whose source is `CS_RaytracingResolve`, `CS_DummyResolve`, `CS_Primary_Shade*`, `CS_IrradianceCache_Shade*` or `CS_ShadeAlpha`. No traversal program is skipped (the 64 programs with `image_bvh*_intersect_ray` all run). Boot 11's list was every library program of 2 MiB of SPIR-V or more; of the 199 such programs boots with that list asked for, 186 were `CS_RaytracingResolve`. Result, one run of 1,500 s: world frames during the intro, the loading screen with the spinner, "Couldn't autosave" (dismissed from the keyboard), then world frames again. No device loss; 11,849 submissions; the title asked for 294 of the skipped programs (their dispatches dropped); indirect graphics recorded 530,488, emitted 524,288, none skipped; list values 1,563 gates held, 1,427 met, 125 timed out. Boot 15 (no skip list, AS off) hung in `sr_denoising` at 536 s; this run has the same settings plus the list. Per-submission cost, ms (submit-phase lines, weighted by submissions): | seconds | submissions/s | frames/s | heaps | shadows | textures | replay | |---|---|---|---|---|---|---| | 330-600 | 2.55 | 0.81 | 27.2 | 190.7 | 40.7 | 32.3 | | 600-900 | 5.74 | 2.29 | 6.6 | 86.3 | 25.1 | 53.3 | | 900-1200 | 5.54 | 0.20 | 17.6 | 57.0 | 58.3 | 49.4 | | 1200-1500 | 6.32 | 0.23 | 11.8 | 17.6 | 94.7 | 37.1 | In the world 25-30 submissions make one frame, so these add up to seconds a frame. In the shadow lines the walk is nearly all of it (copies 1-7 ms); title texture refresh takes over later. Correction: `LEONIDA_COMPILE_WORKERS` in my first comment was a local change on my old tree; nothing on main reads it, so setting it there does nothing. Counts only, images stay local. AI-assisted.
Author
Owner

@CodingRule commented on GitHub (Nov 26, 2026):

done: GPU-TEXTURE-UAV-1D-REGRESSION -> #2261 (a draft: GitHub refused the non-draft create request, as it did for others today; it is ready for review)

Not a 1D bug and not the runtime: since 9f98dcc61 the translator's default is --descriptor-table tagged, and a device with no shader library fills the plain table (kind word 0), so a bare tagged .spv stores to the fallback. d3d12_texture_uav_test is the test that takes a bare .spv; it now asks for the tagged table unless LEONIDA_DESCRIPTOR_TABLE is set. cs_texture_uav 0/1 -> 1/1 native and emulated on an RTX 4090. For anyone else who feeds the layer a module without an index: set LEONIDA_DESCRIPTOR_TABLE=tagged. AI-assisted (Claude Code).

<!-- gh-comment-id:7190480437 --> @CodingRule commented on GitHub (Nov 26, 2026): done: GPU-TEXTURE-UAV-1D-REGRESSION -> #2261 (a draft: GitHub refused the non-draft create request, as it did for others today; it is ready for review) Not a 1D bug and not the runtime: since `9f98dcc61` the translator's default is `--descriptor-table tagged`, and a device with no shader library fills the plain table (kind word 0), so a bare tagged `.spv` stores to the fallback. `d3d12_texture_uav_test` is the test that takes a bare `.spv`; it now asks for the tagged table unless `LEONIDA_DESCRIPTOR_TABLE` is set. `cs_texture_uav` 0/1 -> 1/1 native and emulated on an RTX 4090. For anyone else who feeds the layer a module without an index: set `LEONIDA_DESCRIPTOR_TABLE=tagged`. AI-assisted (Claude Code).
Author
Owner

@AndreiKocherzhinskiiA commented on GitHub (Nov 26, 2026):

claiming: RT-COLD-INDIRECT-ZERO-PREFLIGHT - opt-in fenced argument inspection before first-use indirect compute pipeline compilation, splitting only at query/predication-safe boundaries. Prove zero work before omission; nonzero/unknown preserves normal compilation and dispatch. Depends on #1863 for smaller-batch replay safety. Synthetic CPU/GPU validation required. AI-assisted (Codex).

<!-- gh-comment-id:7190519565 --> @AndreiKocherzhinskiiA commented on GitHub (Nov 26, 2026): claiming: RT-COLD-INDIRECT-ZERO-PREFLIGHT - opt-in fenced argument inspection before first-use indirect compute pipeline compilation, splitting only at query/predication-safe boundaries. Prove zero work before omission; nonzero/unknown preserves normal compilation and dispatch. Depends on #1863 for smaller-batch replay safety. Synthetic CPU/GPU validation required. AI-assisted (Codex).
Author
Owner

@fiestorra commented on GitHub (Nov 26, 2026):

finding: the device loss at the world load is one submission that takes 2,022 ms on the GPU — the TDR threshold — not a hang and not CPU work.

Measured with LEONIDA_GPU_LATENCY=1 on the runtime built from 71a769d7d, Windows 11, RTX 4090, driver 32.0.16.2124, LEONIDA_D3D12=vulkan, interactive session, pipeline cache loaded, BCPack profile loaded. Each line is 10 s of one queue kind:

[rt] gpu latency (direct): 520 submissions in 10 s, submit to done 0.67 ms on average, 2.9 ms the longest;
    the queue had work 1.2% of the time
[rt] gpu latency (direct): 192 submissions in 10 s, submit to done 11.28 ms on average, 2022.4 ms the longest;
    the queue had work 20.2% of the time

Two readings, both useful:

  • Normal operation is CPU-bound, not GPU-bound: 0.67 ms average on the direct queue and the queue busy 1.2 % of the wall time, while the frame rate sits at 30-45 fps. The GPU is idle most of the time and waiting on us.
  • The world load produces a submission of 2,022.4 ms. Windows' default TdrDelay is 2 s, so that is the reset: the driver is declared unresponsive, the adapter is reset (nvlddmkm event 153, 7 of them in one hour of attempts), and every later call returns DXGI_ERROR_DEVICE_REMOVED. The refusals the layer printed (queue replay refused a batch at vulkan_backend.h:3455, 3204, 2531, 2871 and then ExecuteCommandLists failed: unsupported) all come after that, which is why chasing them was chasing a symptom.

This also retires two hypotheses I published as suspects: the slot-133 shadow copies (6,882 KiB per submission) and the title-texture refresh (25 ms per submission). Disabling each one entirely — LEONIDA_COPY_MODE=none, LEONIDA_REFRESH_MAPPED_TEXTURES=0 — leaves the average frame rate where it was (34.5 vs 34.9 and 34.3 fps), because the frame rate is set by CPU work, and the device loss is set by one GPU submission.

What is in that submission is not measured yet. The candidates are a single very large draw or dispatch (a world-load upload or a mesh draw from data the DirectStorage reads were feeding), or one of the compute libraries the title builds at that moment being dispatched over too much work. The next step is to correlate the 2 s submission with the trace's last ExecuteCommandLists before the loss and count the draws and dispatches it carries.

Written with an AI assistant.

<!-- gh-comment-id:7190705501 --> @fiestorra commented on GitHub (Nov 26, 2026): finding: the device loss at the world load is one submission that takes **2,022 ms on the GPU** — the TDR threshold — not a hang and not CPU work. Measured with `LEONIDA_GPU_LATENCY=1` on the runtime built from `71a769d7d`, Windows 11, RTX 4090, driver 32.0.16.2124, `LEONIDA_D3D12=vulkan`, interactive session, pipeline cache loaded, BCPack profile loaded. Each line is 10 s of one queue kind: ``` [rt] gpu latency (direct): 520 submissions in 10 s, submit to done 0.67 ms on average, 2.9 ms the longest; the queue had work 1.2% of the time [rt] gpu latency (direct): 192 submissions in 10 s, submit to done 11.28 ms on average, 2022.4 ms the longest; the queue had work 20.2% of the time ``` Two readings, both useful: - Normal operation is **CPU-bound, not GPU-bound**: 0.67 ms average on the direct queue and the queue busy 1.2 % of the wall time, while the frame rate sits at 30-45 fps. The GPU is idle most of the time and waiting on us. - The world load produces a submission of **2,022.4 ms**. Windows' default `TdrDelay` is 2 s, so that is the reset: the driver is declared unresponsive, the adapter is reset (`nvlddmkm` event 153, 7 of them in one hour of attempts), and every later call returns `DXGI_ERROR_DEVICE_REMOVED`. The refusals the layer printed (`queue replay refused a batch at vulkan_backend.h:3455, 3204, 2531, 2871` and then `ExecuteCommandLists failed: unsupported`) all come after that, which is why chasing them was chasing a symptom. This also retires two hypotheses I published as suspects: the slot-133 shadow copies (6,882 KiB per submission) and the title-texture refresh (25 ms per submission). Disabling each one entirely — `LEONIDA_COPY_MODE=none`, `LEONIDA_REFRESH_MAPPED_TEXTURES=0` — leaves the average frame rate where it was (34.5 vs 34.9 and 34.3 fps), because the frame rate is set by CPU work, and the device loss is set by one GPU submission. What is in that submission is not measured yet. The candidates are a single very large draw or dispatch (a world-load upload or a mesh draw from data the DirectStorage reads were feeding), or one of the compute libraries the title builds at that moment being dispatched over too much work. The next step is to correlate the 2 s submission with the trace's last `ExecuteCommandLists` before the loss and count the draws and dispatches it carries. Written with an AI assistant.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: WS2-UDP-DISCONNECT - runtime/shims/ws2_offline.cpp connect/WSAConnect refuse an all-zero address as a non-loopback destination (WSAENETUNREACH). connect's remarks make that address the way to dissolve a datagram socket's association, and Windows 11 does it for 0.0.0.0:0, [::]:0 and AF_UNSPEC (measured), so under the shim a connected UDP socket stays tied to its first peer for good: datagrams from any other address are still dropped. Pass those disconnect forms (they reach no peer) to the host. Unit test only; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7190751590 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: WS2-UDP-DISCONNECT - runtime/shims/ws2_offline.cpp `connect`/`WSAConnect` refuse an all-zero address as a non-loopback destination (WSAENETUNREACH). connect's remarks make that address the way to dissolve a datagram socket's association, and Windows 11 does it for 0.0.0.0:0, [::]:0 and AF_UNSPEC (measured), so under the shim a connected UDP socket stays tied to its first peer for good: datagrams from any other address are still dropped. Pass those disconnect forms (they reach no peer) to the host. Unit test only; no game files, no GPU. AI-assisted.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: WS2-UDP-DISCONNECT -> #2241 (draft)

<!-- gh-comment-id:7190756171 --> @syfyra commented on GitHub (Nov 26, 2026): done: WS2-UDP-DISCONNECT -> #2241 (draft)
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: WS2-CONNECT-BY-NAME-V6 - runtime/shims/ws2_offline.cpp WSAConnectByNameA/W hand "localhost" to the host as the literal 127.0.0.1. An IPv6 socket with IPV6_V6ONLY set (Windows' default) can reach only ::1, so there the host fails with WSAHOST_NOT_FOUND, while Windows resolves localhost to ::1 and connects (measured on Windows 11). Give such a socket the ::1 literal; IPv4 and dual-mode sockets keep 127.0.0.1. Unit test only; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7190761445 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: WS2-CONNECT-BY-NAME-V6 - runtime/shims/ws2_offline.cpp `WSAConnectByNameA/W` hand "localhost" to the host as the literal 127.0.0.1. An IPv6 socket with IPV6_V6ONLY set (Windows' default) can reach only ::1, so there the host fails with WSAHOST_NOT_FOUND, while Windows resolves localhost to ::1 and connects (measured on Windows 11). Give such a socket the ::1 literal; IPv4 and dual-mode sockets keep 127.0.0.1. Unit test only; no game files, no GPU. AI-assisted.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: WS2-CONNECT-BY-NAME-V6 -> #2242 (draft)

<!-- gh-comment-id:7190766972 --> @syfyra commented on GitHub (Nov 26, 2026): done: WS2-CONNECT-BY-NAME-V6 -> #2242 (draft)
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: VIEWER-SLOW-KEY-CTRL-W - viewer/index.html's help line offers Ctrl as the slow modifier for W A S D and Q/E, but with a movement key held Ctrl makes browser shortcuts: Ctrl+W closes the tab (Chromium and Firefox reserve it, so a page cannot cancel it), Ctrl+S/Ctrl+D open the save and bookmark dialogs and Ctrl+E jumps to the address bar. Slow flying forward loses the whole viewer. Move slow to the C key, which no browser binds. Node test only; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7190771603 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: VIEWER-SLOW-KEY-CTRL-W - viewer/index.html's help line offers Ctrl as the slow modifier for W A S D and Q/E, but with a movement key held Ctrl makes browser shortcuts: Ctrl+W closes the tab (Chromium and Firefox reserve it, so a page cannot cancel it), Ctrl+S/Ctrl+D open the save and bookmark dialogs and Ctrl+E jumps to the address bar. Slow flying forward loses the whole viewer. Move slow to the C key, which no browser binds. Node test only; no game files, no GPU. AI-assisted.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: VIEWER-SLOW-KEY-CTRL-W -> #2243 (draft)

<!-- gh-comment-id:7190776496 --> @syfyra commented on GitHub (Nov 26, 2026): done: VIEWER-SLOW-KEY-CTRL-W -> #2243 (draft)
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: D3D12-DEVICE-CALLS-UPFRONT-OUT-AND-ATOMIC-REPORTS - tools/d3d12_device_calls.py main: validate --out ancestors and input-output self-overwrite collisions before reading/scanning the PE image, and stage/publish .device_calls.json and .device_calls.txt atomically with tempfile + published_mode + replace_retry.

<!-- gh-comment-id:7190884297 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: D3D12-DEVICE-CALLS-UPFRONT-OUT-AND-ATOMIC-REPORTS - `tools/d3d12_device_calls.py` `main`: validate `--out` ancestors and input-output self-overwrite collisions before reading/scanning the PE image, and stage/publish `.device_calls.json` and `.device_calls.txt` atomically with `tempfile` + `published_mode` + `replace_retry`.
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: D3D12-DEVICE-CALLS-UPFRONT-OUT-AND-ATOMIC-REPORTS -> #2262

tools/d3d12_device_calls.py now checks --out ancestors, input-output collisions (same_report_path), and directory-occupied targets before opening/scanning the PE image, and stages/publishes .device_calls.json and .device_calls.txt atomically via tempfile + published_mode + replace_retry. Verified with tests/test_d3d12_device_calls.py (19 tests pass; new CLI tests fail against upstream/main).

<!-- gh-comment-id:7190937764 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: D3D12-DEVICE-CALLS-UPFRONT-OUT-AND-ATOMIC-REPORTS -> #2262 `tools/d3d12_device_calls.py` now checks `--out` ancestors, input-output collisions (`same_report_path`), and directory-occupied targets before opening/scanning the PE image, and stages/publishes `.device_calls.json` and `.device_calls.txt` atomically via `tempfile` + `published_mode` + `replace_retry`. Verified with `tests/test_d3d12_device_calls.py` (19 tests pass; new CLI tests fail against `upstream/main`).
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: D3D12-XS-SURFACE-SCARAB-CRLF-BOM-AND-GUID-BOUNDS - tools/d3d12_xs_surface.py: enforce lower (< 0) and tuple-length bounds in check_guid_values, strip optional UTF-8 BOM and CRLF in SCARAB parsers, and guard missing/unreadable/non-UTF-8 SCARAB paths in check_scarab / main.

<!-- gh-comment-id:7190940196 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: D3D12-XS-SURFACE-SCARAB-CRLF-BOM-AND-GUID-BOUNDS - `tools/d3d12_xs_surface.py`: enforce lower (`< 0`) and tuple-length bounds in `check_guid_values`, strip optional UTF-8 BOM and CRLF in SCARAB parsers, and guard missing/unreadable/non-UTF-8 SCARAB paths in `check_scarab` / `main`.
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: D3D12-XS-SURFACE-SCARAB-CRLF-BOM-AND-GUID-BOUNDS -> #2263

tools/d3d12_xs_surface.py now checks lower (< 0) bounds in check_guid_values(), strips UTF-8 BOM (utf-8-sig) and \r\n in SCARAB parsers, validates --scarab paths (is not None, directory/file guards, OSError/UnicodeDecodeError/ValueError reporting) instead of skipping or crashing, and includes unit/CLI coverage in tests/test_d3d12_xs_surface.py (passes cleanly; fails against upstream/main).

<!-- gh-comment-id:7191006555 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: D3D12-XS-SURFACE-SCARAB-CRLF-BOM-AND-GUID-BOUNDS -> #2263 `tools/d3d12_xs_surface.py` now checks lower (`< 0`) bounds in `check_guid_values()`, strips UTF-8 BOM (`utf-8-sig`) and `\r\n` in SCARAB parsers, validates `--scarab` paths (`is not None`, directory/file guards, `OSError`/`UnicodeDecodeError`/`ValueError` reporting) instead of skipping or crashing, and includes unit/CLI coverage in `tests/test_d3d12_xs_surface.py` (passes cleanly; fails against `upstream/main`).
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: SPIRV-ASM-CLI-BOM-DIR-GUARD-AND-ATOMIC-WRITE - tools/spirv_asm.py: guard --out (empty path, directory, missing parent) before reading/assembling, read .spvasm with utf-8-sig, and publish .spv bytes atomically via tempfile + published_mode + replace_retry.

<!-- gh-comment-id:7191092674 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: SPIRV-ASM-CLI-BOM-DIR-GUARD-AND-ATOMIC-WRITE - `tools/spirv_asm.py`: guard `--out` (empty path, directory, missing parent) before reading/assembling, read `.spvasm` with `utf-8-sig`, and publish `.spv` bytes atomically via `tempfile` + `published_mode` + `replace_retry`.
Author
Owner

@Bonchaloo commented on GitHub (Nov 26, 2026):

claiming: RT-CLEAR-RGB565-UNORM — test and fix the missing per-channel UNORM conversion for B5G6R5 render-target clears in vulkan_replay.h (full and rectangular clears). This is the 5/6/5 RTV path, separate from the SNORM adapter comparison and packed UAV clears. Apple M5 Max, synthetic inputs only. AI-assisted.

<!-- gh-comment-id:7191106625 --> @Bonchaloo commented on GitHub (Nov 26, 2026): claiming: RT-CLEAR-RGB565-UNORM — test and fix the missing per-channel UNORM conversion for B5G6R5 render-target clears in vulkan_replay.h (full and rectangular clears). This is the 5/6/5 RTV path, separate from the SNORM adapter comparison and packed UAV clears. Apple M5 Max, synthetic inputs only. AI-assisted.
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: SPIRV-ASM-CLI-BOM-DIR-GUARD-AND-ATOMIC-WRITE -> #2264

tools/spirv_asm.py now validates --out (non-empty, non-directory, existing parent) before reading or assembling .spvasm inputs, reads sources with utf-8-sig, and publishes binary .spv outputs atomically via tempfile + published_mode + replace_retry. Verified with tests/test_spirv_asm.py (41 run: 40 passed, 1 skipped spirv-as; new CLI tests fail against upstream/main).

<!-- gh-comment-id:7191130049 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: SPIRV-ASM-CLI-BOM-DIR-GUARD-AND-ATOMIC-WRITE -> #2264 `tools/spirv_asm.py` now validates `--out` (non-empty, non-directory, existing parent) before reading or assembling `.spvasm` inputs, reads sources with `utf-8-sig`, and publishes binary `.spv` outputs atomically via `tempfile` + `published_mode` + `replace_retry`. Verified with `tests/test_spirv_asm.py` (41 run: 40 passed, 1 skipped `spirv-as`; new CLI tests fail against `upstream/main`).
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: REGEN-FIXTURES-UNKNOWN-FLAGS-BOM-TRAVERSAL-AND-ATOMIC-IO - tests/semantic/regen_fixtures.py: reject unknown CLI flags and path-traversal shader names, strip optional UTF-8 BOM (utf-8-sig) across readers/renderers, and stage/publish .asm/.s writes atomically via tempfile + published_mode + replace_retry.

<!-- gh-comment-id:7191130679 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: REGEN-FIXTURES-UNKNOWN-FLAGS-BOM-TRAVERSAL-AND-ATOMIC-IO - `tests/semantic/regen_fixtures.py`: reject unknown CLI flags and path-traversal shader names, strip optional UTF-8 BOM (`utf-8-sig`) across readers/renderers, and stage/publish `.asm`/`.s` writes atomically via `tempfile` + `published_mode` + `replace_retry`.
Author
Owner

@fiestorra commented on GitHub (Nov 26, 2026):

finding: the 2,022 ms submission is not slow work, it is a submission that never completes. The number is the TDR timeout itself, not a duration.

Correcting my own reading from yesterday's comment (7190705501), where I wrote that the world load "produces a submission of 2,022.4 ms" and treated it as a long one. Two things say otherwise:

  • 2022.4 ms sits on Windows' default TdrDelay of 2 s to within 22 ms. A piece of work that happens to land 22 ms above the reset threshold is much less likely than a wait that ends when the driver gives up.
  • Nothing in that run was compiling: the same log has zero took N s to build lines, so the seconds are not a pipeline build blocking the queue either.

So the shape is: one submission is submitted, the GPU never signals it done, the driver declares the adapter unresponsive at ~2 s (nvlddmkm event 153), Windows resets it, and every call after that returns DXGI_ERROR_DEVICE_REMOVED. The layer's refusals (queue replay refused a batch at vulkan_backend.h:3455, 3204, 2531, 2871, ExecuteCommandLists failed: unsupported) come after and are consequences.

What is ruled out for that submission, each measured:

  • Shadow copies: LEONIDA_COPY_MODE=none leaves the frame rate where it was (34.9 vs 34.5 fps average).
  • Title-texture refresh: LEONIDA_REFRESH_MAPPED_TEXTURES=0 likewise (34.3 fps).
  • A runaway dispatch grid: the largest of the 3,364 dispatches LEONIDA_TRACE_DISPATCH logged is 320x360x1, 115,200 groups.
  • Pipeline compilation inside the submission: no build lines in the run at all.

What is left is the shape a hang has: the batch carries 578 dispatches and 53 draws, and one of them does not terminate on the GPU. The most likely cause is a translated shader whose loop never exits - this tree's translator still refuses one program for s_sethalt and the compute libraries built from the same corpus are where a mis-translated loop would land.

Next step is a bisect rather than another guess: stub or skip groups of compute pipelines for one run each and see which group makes the device loss disappear. The layer already has LEONIDA_STUB_PIPELINES for the other direction (running without real pipelines), and the dispatch trace already gives the pipeline pointer per call, so the two together can point at the program without reading the shaders themselves.

Written with an AI assistant.

<!-- gh-comment-id:7191154276 --> @fiestorra commented on GitHub (Nov 26, 2026): finding: the 2,022 ms submission is not slow work, it is a submission that never completes. The number is the TDR timeout itself, not a duration. Correcting my own reading from yesterday's comment (7190705501), where I wrote that the world load "produces a submission of 2,022.4 ms" and treated it as a long one. Two things say otherwise: - `2022.4 ms` sits on Windows' default `TdrDelay` of 2 s to within 22 ms. A piece of work that happens to land 22 ms above the reset threshold is much less likely than a wait that ends when the driver gives up. - Nothing in that run was compiling: the same log has **zero** `took N s to build` lines, so the seconds are not a pipeline build blocking the queue either. So the shape is: one submission is submitted, the GPU never signals it done, the driver declares the adapter unresponsive at ~2 s (`nvlddmkm` event 153), Windows resets it, and every call after that returns `DXGI_ERROR_DEVICE_REMOVED`. The layer's refusals (`queue replay refused a batch at vulkan_backend.h:3455, 3204, 2531, 2871`, `ExecuteCommandLists failed: unsupported`) come after and are consequences. What is ruled out for that submission, each measured: - Shadow copies: `LEONIDA_COPY_MODE=none` leaves the frame rate where it was (34.9 vs 34.5 fps average). - Title-texture refresh: `LEONIDA_REFRESH_MAPPED_TEXTURES=0` likewise (34.3 fps). - A runaway dispatch grid: the largest of the 3,364 dispatches `LEONIDA_TRACE_DISPATCH` logged is 320x360x1, 115,200 groups. - Pipeline compilation inside the submission: no build lines in the run at all. What is left is the shape a hang has: the batch carries 578 dispatches and 53 draws, and one of them does not terminate on the GPU. The most likely cause is a translated shader whose loop never exits - this tree's translator still refuses one program for `s_sethalt` and the compute libraries built from the same corpus are where a mis-translated loop would land. Next step is a bisect rather than another guess: stub or skip groups of compute pipelines for one run each and see which group makes the device loss disappear. The layer already has `LEONIDA_STUB_PIPELINES` for the other direction (running without real pipelines), and the dispatch trace already gives the pipeline pointer per call, so the two together can point at the program without reading the shaders themselves. Written with an AI assistant.
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: REGEN-FIXTURES-UNKNOWN-FLAGS-BOM-TRAVERSAL-AND-ATOMIC-IO -> #2265

tests/semantic/regen_fixtures.py now rejects unknown CLI options (-h/--help supported, -- stops flags) and path-traversal shader stems upfront, reads .asm/.s files with utf-8-sig, and publishes updates atomically via tempfile + published_mode + replace_retry. Verified with tests/test_regen_fixtures.py (11 tests pass; new tests fail against upstream/main) and --check.

<!-- gh-comment-id:7191180300 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: REGEN-FIXTURES-UNKNOWN-FLAGS-BOM-TRAVERSAL-AND-ATOMIC-IO -> #2265 `tests/semantic/regen_fixtures.py` now rejects unknown CLI options (`-h`/`--help` supported, `--` stops flags) and path-traversal shader stems upfront, reads `.asm`/`.s` files with `utf-8-sig`, and publishes updates atomically via `tempfile` + `published_mode` + `replace_retry`. Verified with `tests/test_regen_fixtures.py` (11 tests pass; new tests fail against `upstream/main`) and `--check`.
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: SPIRV-INTERP-IEEE-DOMAIN-OVERFLOW-FMA-AND-BITCAST-SIGN - tests/spirv_interp.py: make GLSL Sqrt, InverseSqrt, Log2, Exp2, Sin, Cos, Fract, and Fma IEEE-754 domain/overflow/-0.0-safe, and preserve _F32 NaN bit patterns and vector/f64 NaN sign bits in OpFNegate.

<!-- gh-comment-id:7191180874 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: SPIRV-INTERP-IEEE-DOMAIN-OVERFLOW-FMA-AND-BITCAST-SIGN - `tests/spirv_interp.py`: make GLSL `Sqrt`, `InverseSqrt`, `Log2`, `Exp2`, `Sin`, `Cos`, `Fract`, and `Fma` IEEE-754 domain/overflow/`-0.0`-safe, and preserve `_F32` NaN bit patterns and vector/f64 NaN sign bits in `OpFNegate`.
Author
Owner

@amine23012004 commented on GitHub (Nov 26, 2026):

releasing: TEST-D16-MODELS-CACHE - not going to finish it; free for anyone. The measured idea stands: models16()/models32() are pure in (kind, bits, value), ~955k calls for ~131k distinct inputs in tests/test_d16_format_probe.py; caching them per input (fresh dict per call) took it 26.7 s -> 7.7 s.

<!-- gh-comment-id:7191191563 --> @amine23012004 commented on GitHub (Nov 26, 2026): releasing: TEST-D16-MODELS-CACHE - not going to finish it; free for anyone. The measured idea stands: `models16()`/`models32()` are pure in (kind, bits, value), ~955k calls for ~131k distinct inputs in `tests/test_d16_format_probe.py`; caching them per input (fresh dict per call) took it 26.7 s -> 7.7 s.
Author
Owner

@amine23012004 commented on GitHub (Nov 26, 2026):

The change for TEST-D16-MODELS-CACHE is already written on amine23012004/leonida, branch test-d16-models-cache (9a7128947), if anyone wants to pick it up.

<!-- gh-comment-id:7191212401 --> @amine23012004 commented on GitHub (Nov 26, 2026): The change for TEST-D16-MODELS-CACHE is already written on amine23012004/leonida, branch [`test-d16-models-cache`](https://github.com/amine23012004/leonida/tree/test-d16-models-cache) (9a7128947), if anyone wants to pick it up.
Author
Owner

@Izoo-dev commented on GitHub (Nov 26, 2026):

claiming: RT-SCRIPT-PAD-EDGE-HISTORY — Preserve scheduled input transitions between polls in the no-SDL GameInput reading history. CPU-only fake-clock regression. AI-assisted.

<!-- gh-comment-id:7191225479 --> @Izoo-dev commented on GitHub (Nov 26, 2026): claiming: RT-SCRIPT-PAD-EDGE-HISTORY — Preserve scheduled input transitions between polls in the no-SDL GameInput reading history. CPU-only fake-clock regression. AI-assisted.
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: SPIRV-INTERP-IEEE-DOMAIN-OVERFLOW-FMA-AND-BITCAST-SIGN -> #2266

tests/spirv_interp.py now handles IEEE-754 edge domains and overflows in GLSL.std.450 Sqrt, InverseSqrt, Log2, Exp2, Sin, Cos, Fract, and Fma (including -0.0 FMA sum sign and overflowing binary64 Fraction conversion), and preserves _F32 NaN bit patterns and vector/f64 NaN signs in OpFNegate. Verified with tests/test_spirv_interp_signs.py (11 passed; new tests fail against upstream/main), tests/test_spirv_interp_bits.py (5 passed), and tests/test_spirv_interp_f64_glsl.py (6 passed).

<!-- gh-comment-id:7191234773 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: SPIRV-INTERP-IEEE-DOMAIN-OVERFLOW-FMA-AND-BITCAST-SIGN -> #2266 `tests/spirv_interp.py` now handles IEEE-754 edge domains and overflows in `GLSL.std.450` `Sqrt`, `InverseSqrt`, `Log2`, `Exp2`, `Sin`, `Cos`, `Fract`, and `Fma` (including `-0.0` FMA sum sign and overflowing binary64 `Fraction` conversion), and preserves `_F32` NaN bit patterns and vector/f64 NaN signs in `OpFNegate`. Verified with `tests/test_spirv_interp_signs.py` (11 passed; new tests fail against `upstream/main`), `tests/test_spirv_interp_bits.py` (5 passed), and `tests/test_spirv_interp_f64_glsl.py` (6 passed).
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: LDS-FUZZ-CLI-KEEP-MODEL-ONLY-AND-ENCODING-SAFETY - tools/lds_fuzz.py: accept argv in main(), reject --keep/--perturb/--negative-control/--minimize under --model-only, validate --keep non-empty directory and non-negative --only indices, and use UTF-8 (errors="replace" / utf-8-sig) in translate() and run_gpu().

<!-- gh-comment-id:7191235314 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: LDS-FUZZ-CLI-KEEP-MODEL-ONLY-AND-ENCODING-SAFETY - `tools/lds_fuzz.py`: accept `argv` in `main()`, reject `--keep`/`--perturb`/`--negative-control`/`--minimize` under `--model-only`, validate `--keep` non-empty directory and non-negative `--only` indices, and use UTF-8 (`errors="replace"` / `utf-8-sig`) in `translate()` and `run_gpu()`.
Author
Owner

@fiestorra commented on GitHub (Nov 26, 2026):

finding: the pipeline cache is older than the shader library it should describe, and that is why the world load compiles compute pipelines for 3.7 to 20 seconds each.

Two file timestamps on the same install settle it:

pipeline_cache.bin   2026-11-26 04:28:53   4,621,204,361 bytes
work\shaders\spirv\index.json   2026-11-26 07:29:26

The cache was produced by the pipelines stage that finished at 04:28. The shader library was rebuilt at 07:29, when the translation moved to LLVM 23.1.5 and went from 28,433 to 29,277 translated programs. The SPIR-V changed, so the cache's keys no longer describe most of the programs, and vkCreateComputePipelines compiles them on demand instead of reusing the cache.

Measured cost of that, from the runtime's own line (printed when a build takes 2 s or more):

Pipeline SPIR-V Build
lib_cs_01405 1,454,592 B 3.7 s
lib_cs_01410 1,686,564 B 4.8 s
lib_cs_02879 2,351,644 B 20.0 s

The cost grows far faster than the size, which is why a handful of the largest programs account for the minutes of no present at the world load: the frame rate reads 0.30, 1.04 and 1.08 fps in those windows while the CPU compiles inside the load thread.

This also corrects where I had been looking. The frame rate is set by CPU work (the GPU is busy 1.2 % of the time at 30-45 fps), and the long stalls are pipeline compilation, not the layer's shadow copies or texture refresh: disabling both entirely leaves the average where it was.

The fix is to rebuild the cache against the current library (the pipelines stage, 187 minutes at 12 threads on this machine), and then to keep the two in step, because nothing currently ties the cache's validity to the shader library's version - a stale cache is silently correct-looking and only shows up as minutes of load.

One thing I have not checked: the cache file's timestamp is 04:28 while the title has been run many times since, and the layer calls maybe_checkpoint(cache) after each build, so either the checkpoints are not being written to that file or they are written somewhere else. Worth a look, since a cache that never updates after a run cannot absorb the on-demand builds.

Written with an AI assistant.

<!-- gh-comment-id:7191244397 --> @fiestorra commented on GitHub (Nov 26, 2026): finding: the pipeline cache is older than the shader library it should describe, and that is why the world load compiles compute pipelines for 3.7 to 20 seconds each. Two file timestamps on the same install settle it: ``` pipeline_cache.bin 2026-11-26 04:28:53 4,621,204,361 bytes work\shaders\spirv\index.json 2026-11-26 07:29:26 ``` The cache was produced by the `pipelines` stage that finished at 04:28. The shader library was rebuilt at 07:29, when the translation moved to LLVM 23.1.5 and went from 28,433 to 29,277 translated programs. The SPIR-V changed, so the cache's keys no longer describe most of the programs, and `vkCreateComputePipelines` compiles them on demand instead of reusing the cache. Measured cost of that, from the runtime's own line (printed when a build takes 2 s or more): | Pipeline | SPIR-V | Build | |---|---|---| | `lib_cs_01405` | 1,454,592 B | 3.7 s | | `lib_cs_01410` | 1,686,564 B | 4.8 s | | `lib_cs_02879` | 2,351,644 B | **20.0 s** | The cost grows far faster than the size, which is why a handful of the largest programs account for the minutes of no present at the world load: the frame rate reads 0.30, 1.04 and 1.08 fps in those windows while the CPU compiles inside the load thread. This also corrects where I had been looking. The frame rate is set by CPU work (the GPU is busy 1.2 % of the time at 30-45 fps), and the long stalls are pipeline compilation, not the layer's shadow copies or texture refresh: disabling both entirely leaves the average where it was. The fix is to rebuild the cache against the current library (the `pipelines` stage, 187 minutes at 12 threads on this machine), and then to keep the two in step, because nothing currently ties the cache's validity to the shader library's version - a stale cache is silently correct-looking and only shows up as minutes of load. One thing I have not checked: the cache file's timestamp is 04:28 while the title has been run many times since, and the layer calls `maybe_checkpoint(cache)` after each build, so either the checkpoints are not being written to that file or they are written somewhere else. Worth a look, since a cache that never updates after a run cannot absorb the on-demand builds. Written with an AI assistant.
Author
Owner

@Tyrannys commented on GitHub (Nov 26, 2026):

done: RT-TITLE-TEXTURE-SHOW-AFTER-UPLOAD -> #2267 (a staged slot-70 texture of our own keeps its T#s pending until its first upload is submitted; new test fails with the old behaviour and passes with the fix on an RTX 4070 SUPER). Idea from codec-d/cool_fox docs/findings.md, idea only. AI-assisted (Claude Code).

<!-- gh-comment-id:7191246959 --> @Tyrannys commented on GitHub (Nov 26, 2026): done: RT-TITLE-TEXTURE-SHOW-AFTER-UPLOAD -> #2267 (a staged slot-70 texture of our own keeps its T#s pending until its first upload is submitted; new test fails with the old behaviour and passes with the fix on an RTX 4070 SUPER). Idea from codec-d/cool_fox docs/findings.md, idea only. AI-assisted (Claude Code).
Author
Owner

@Tyrannys commented on GitHub (Nov 26, 2026):

claiming: RT-COMPILE-GATE-WARMUP-FREE - warm-up builds no longer hold the compile gate: a submission waits only for the builds it demands, not for a warm-up already in flight. Stacked on #2233; prompted by HasiKe's cold-boot report there (RTX 2070 SUPER) and MoonEyes' gate finding of 07:32. AI-assisted (Claude Code).

<!-- gh-comment-id:7191251129 --> @Tyrannys commented on GitHub (Nov 26, 2026): claiming: RT-COMPILE-GATE-WARMUP-FREE - warm-up builds no longer hold the compile gate: a submission waits only for the builds it demands, not for a warm-up already in flight. Stacked on #2233; prompted by HasiKe's cold-boot report there (RTX 2070 SUPER) and MoonEyes' gate finding of 07:32. AI-assisted (Claude Code).
Author
Owner

@fiestorra commented on GitHub (Nov 26, 2026):

finding: every boot recompiles the compute pipelines that miss the cache and then throws the work away, because the session-cache checkpoints are off unless LEONIDA_STARTUP_CACHE_CHECKPOINTS=1.

Two pieces of the same file, runtime/shims/d3d12_vulkan_device.cpp:

bool startup_cache_checkpoints_enabled() {
    static const bool enabled = [] {
        wchar_t value[2]{};
        return GetEnvironmentVariableW(L"LEONIDA_STARTUP_CACHE_CHECKPOINTS", value, 2) == 1 && value[0] == L'1';
    }();
    return enabled;
}

and, in maybe_checkpoint, which is called right after each build:

if (!cache || !startup_cache_checkpoints_enabled()) return;
... save_session_pipeline_cache(state->context->vk, state->info.device, cache, true);

So with the variable unset, maybe_checkpoint returns on its first line and nothing is written. The session file it would write (pipeline_cache.session.bin, create_seeded_pipeline_cache(..., session = true)) does not exist in the install at all, while the seeded pipeline_cache.bin still carries the timestamp of the pipelines stage that made it (04:28:53, before the library was rebuilt at 07:29:26).

The consequence is measurable and expensive: the world load compiles compute pipelines that take 3.7 s, 4.8 s and 20.0 s each (the runtime prints that line when a build passes 2 s), and the next boot compiles the same ones again from zero. Nothing about the run improves the next run.

What I would change, in order:

  1. Fold the run's builds into the seeded cache at exit, so a boot that paid 20 s does not pay it again. The pieces exist: the session cache is written with vkGetPipelineCacheData and saved with a checkpoint, and create_seeded_pipeline_cache already knows how to read a seed; what is missing is merging the session's data back into the seed rather than dropping it.
  2. Tie the seed's validity to the shader library's version. The cache is silently stale after any translation change, and a stale cache looks exactly like a good one until it costs minutes of load.
  3. Until then, LEONIDA_STARTUP_CACHE_CHECKPOINTS=1 keeps the session's work on disk, which at least lets the next run reuse it if the runtime ever looks there.

Not proven: whether the session cache, when written, is ever read back by a normal run. The seeding path takes session as a parameter and I have not traced which caller passes true. That decides whether item 1 is a new feature or a one-line wire-up.

Written with an AI assistant.

<!-- gh-comment-id:7191259668 --> @fiestorra commented on GitHub (Nov 26, 2026): finding: every boot recompiles the compute pipelines that miss the cache and then throws the work away, because the session-cache checkpoints are off unless `LEONIDA_STARTUP_CACHE_CHECKPOINTS=1`. Two pieces of the same file, `runtime/shims/d3d12_vulkan_device.cpp`: ``` bool startup_cache_checkpoints_enabled() { static const bool enabled = [] { wchar_t value[2]{}; return GetEnvironmentVariableW(L"LEONIDA_STARTUP_CACHE_CHECKPOINTS", value, 2) == 1 && value[0] == L'1'; }(); return enabled; } ``` and, in `maybe_checkpoint`, which is called right after each build: ``` if (!cache || !startup_cache_checkpoints_enabled()) return; ... save_session_pipeline_cache(state->context->vk, state->info.device, cache, true); ``` So with the variable unset, `maybe_checkpoint` returns on its first line and nothing is written. The session file it would write (`pipeline_cache.session.bin`, `create_seeded_pipeline_cache(..., session = true)`) does not exist in the install at all, while the seeded `pipeline_cache.bin` still carries the timestamp of the `pipelines` stage that made it (04:28:53, before the library was rebuilt at 07:29:26). The consequence is measurable and expensive: the world load compiles compute pipelines that take 3.7 s, 4.8 s and **20.0 s** each (the runtime prints that line when a build passes 2 s), and the next boot compiles the same ones again from zero. Nothing about the run improves the next run. What I would change, in order: 1. **Fold the run's builds into the seeded cache at exit**, so a boot that paid 20 s does not pay it again. The pieces exist: the session cache is written with `vkGetPipelineCacheData` and saved with a checkpoint, and `create_seeded_pipeline_cache` already knows how to read a seed; what is missing is merging the session's data back into the seed rather than dropping it. 2. **Tie the seed's validity to the shader library's version.** The cache is silently stale after any translation change, and a stale cache looks exactly like a good one until it costs minutes of load. 3. Until then, `LEONIDA_STARTUP_CACHE_CHECKPOINTS=1` keeps the session's work on disk, which at least lets the next run reuse it if the runtime ever looks there. Not proven: whether the session cache, when written, is ever read back by a normal run. The seeding path takes `session` as a parameter and I have not traced which caller passes `true`. That decides whether item 1 is a new feature or a one-line wire-up. Written with an AI assistant.
Author
Owner

@Bonchaloo commented on GitHub (Nov 26, 2026):

done: RT-CLEAR-RGB565-UNORM -> #2268

<!-- gh-comment-id:7191278198 --> @Bonchaloo commented on GitHub (Nov 26, 2026): done: RT-CLEAR-RGB565-UNORM -> #2268
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: LDS-FUZZ-CLI-KEEP-MODEL-ONLY-AND-ENCODING-SAFETY -> #2269

tools/lds_fuzz.py now takes argv=None in main(), enforces --oracle hw without --model-only and directory/non-empty validation for --keep, rejects negative/empty --only indices, and uses UTF-8 (errors="replace" / utf-8-sig) in translate() and run_gpu(). Verified with tests/test_lds_fuzz.py (40 passed; new CLI tests fail against upstream/main).

<!-- gh-comment-id:7191305676 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: LDS-FUZZ-CLI-KEEP-MODEL-ONLY-AND-ENCODING-SAFETY -> #2269 `tools/lds_fuzz.py` now takes `argv=None` in `main()`, enforces `--oracle hw` without `--model-only` and directory/non-empty validation for `--keep`, rejects negative/empty `--only` indices, and uses UTF-8 (`errors="replace"` / `utf-8-sig`) in `translate()` and `run_gpu()`. Verified with `tests/test_lds_fuzz.py` (40 passed; new CLI tests fail against `upstream/main`).
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: VALU-FUZZ-ORACLE-LEAK-CLI-VALIDATION-AND-TESTS - tools/valu_fuzz.py + tests/test_valu_fuzz_cli.py: accept argv in main(), validate --show, --keep, and --negative-control before open_oracle(), wrap all oracle usage in try/finally so oracle.close() always runs, enforce UTF-8/utf-8-sig subprocess/JSON decoding in translate()/run_gpu(), and add stdlib unittest CLI tests.

<!-- gh-comment-id:7191306204 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: VALU-FUZZ-ORACLE-LEAK-CLI-VALIDATION-AND-TESTS - `tools/valu_fuzz.py` + `tests/test_valu_fuzz_cli.py`: accept `argv` in `main()`, validate `--show`, `--keep`, and `--negative-control` before `open_oracle()`, wrap all oracle usage in `try/finally` so `oracle.close()` always runs, enforce UTF-8/`utf-8-sig` subprocess/JSON decoding in `translate()`/`run_gpu()`, and add stdlib `unittest` CLI tests.
Author
Owner

@HasiKe commented on GitHub (Nov 26, 2026):

finding: on an RTX 2070 SUPER, NVIDIA's device-diagnostic checkpoints put the world-load GPU hang in a terrain draw, not in a compute library. This follows up fiestorra's 2 s TDR, a submission that never completes.

Setup: RTX 2070 SUPER, NVIDIA 616.56, Windows 11 Pro 26300, my own 1.0.2.1 package. Tree: main a73a57e13 + #2195 + #2233. The boot was cold: no session cache, an empty journal and an empty driver cache. Settings: LEONIDA_ASYNC_PIPELINES=1, LEONIDA_COMPILE_GATE=0 (so the title reaches the world, see #2233), LEONIDA_DEVICE_FAULT=2, the watchdog kicked, LEONIDA_CONSOLE_FIX_US=0, 4096 MB title windows and arena, the keyboard pad and no input.

The run:

  • The frame rate rose to about 100 frames/s at 60 s. It fell from about 140 s on, and from 180 s no frames were presented.
  • At t=226.3 s, VK_ERROR_DEVICE_LOST came, with an nvlddmkm 153 in the same minute.
  • An earlier boot with the same settings, but without LEONIDA_DEVICE_FAULT, lost the device at 249.7 s.

The fault report:

  • Checkpoints: only the direct queue has any, two of them. Top-of-pipe (stage 0x1) and bottom-of-pipe (stage 0x2000) both name the same marker: submission 17648, list 8, command 1, kind=draw, in ExecuteCommandLists #17654, with 19 lists.
  • Pipeline: the pipeline in flight is 2MS_VS_TransformTerrainNormalTint_e74ae427_Wrapped~11 + _PS_DeferredTexturedStdNC_48fb7423_Wrapped~13. The vertex shader runs as a mesh shader (MeshShadingEXT, control_flow: emulated wave64 rounds).
  • Fault addresses: vkGetDeviceFaultInfoEXT lists 32 addresses, all of type 4 (instruction pointer unknown), in one 0x205c6e2d0-0x205d073e0 range. That looks like waves still executing, which fits a draw that does not finish rather than a memory fault.
  • Other dispatches: the 64 compute dispatches still listed as submitted (lib_cs_02109, 02119, 02121, 02142, 02229 on the compute queue, lib_cs_01107, 01236, 03131, 01327, 01359 and others on the direct queue) have no checkpoint past them. Their grids are at most 5,120 groups.

What this does and does not say:

  • On this card and driver, the stuck work is a graphics draw on the direct queue. It is not the ray-hit shading programs that azsekazvamdimitar skips on a 3090 under Proton, and not sr_denoising. These could be different hangs on different drivers, or checkpoints that lag. NVIDIA writes them when the stage completes, so the real culprit may be the next command after the last marker. In both readings it is list 8 of that submission.
  • The emulated wave64 rounds form is not unusual. 9,282 of the corpus' 9,504 programs with that control flow are mesh shaders. So "a loop in the wave64 emulation" is a hypothesis, not something this run shows.
  • This is one run. The next step that needs no guessing: rerun it with that pipeline stubbed. Neither LEONIDA_SKIP_COMPUTE nor LEONIDA_STUB_PIPELINES selects one graphics pipeline by name today, as far as I can see. Then check whether the device loss goes away or moves to another draw.

Logs stay local: they name game shaders. AI-assisted (Claude Code).

<!-- gh-comment-id:7191314888 --> @HasiKe commented on GitHub (Nov 26, 2026): finding: on an RTX 2070 SUPER, NVIDIA's device-diagnostic checkpoints put the world-load GPU hang in a **terrain draw**, not in a compute library. This follows up [fiestorra's 2 s TDR](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7191154276), a submission that never completes. **Setup:** RTX 2070 SUPER, NVIDIA 616.56, Windows 11 Pro 26300, my own 1.0.2.1 package. Tree: `main` `a73a57e13` + #2195 + #2233. The boot was cold: no session cache, an empty journal and an empty driver cache. Settings: `LEONIDA_ASYNC_PIPELINES=1`, `LEONIDA_COMPILE_GATE=0` (so the title reaches the world, see [#2233](https://github.com/ubiquitarianism/leonida/pull/2233#issuecomment-7191180521)), `LEONIDA_DEVICE_FAULT=2`, the watchdog kicked, `LEONIDA_CONSOLE_FIX_US=0`, 4096 MB title windows and arena, the keyboard pad and no input. **The run:** - The frame rate rose to about 100 frames/s at 60 s. It fell from about 140 s on, and from 180 s no frames were presented. - At t=226.3 s, `VK_ERROR_DEVICE_LOST` came, with an `nvlddmkm` 153 in the same minute. - An earlier boot with the same settings, but without `LEONIDA_DEVICE_FAULT`, lost the device at 249.7 s. **The fault report:** - **Checkpoints:** only the direct queue has any, two of them. Top-of-pipe (stage 0x1) and bottom-of-pipe (stage 0x2000) both name the same marker: submission 17648, list 8, command 1, `kind=draw`, in `ExecuteCommandLists` #17654, with 19 lists. - **Pipeline:** the pipeline in flight is `2MS_VS_TransformTerrainNormalTint_e74ae427_Wrapped~11` + `_PS_DeferredTexturedStdNC_48fb7423_Wrapped~13`. The vertex shader runs as a mesh shader (`MeshShadingEXT`, `control_flow: emulated wave64 rounds`). - **Fault addresses:** `vkGetDeviceFaultInfoEXT` lists 32 addresses, all of type 4 (instruction pointer unknown), in one 0x205c6e2d0-0x205d073e0 range. That looks like waves still executing, which fits a draw that does not finish rather than a memory fault. - **Other dispatches:** the 64 compute dispatches still listed as submitted (`lib_cs_02109`, `02119`, `02121`, `02142`, `02229` on the compute queue, `lib_cs_01107`, `01236`, `03131`, `01327`, `01359` and others on the direct queue) have no checkpoint past them. Their grids are at most 5,120 groups. **What this does and does not say:** - On this card and driver, the stuck work is a graphics draw on the direct queue. It is not the ray-hit shading programs that azsekazvamdimitar [skips on a 3090 under Proton](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7190412237), and not `sr_denoising`. These could be different hangs on different drivers, or checkpoints that lag. NVIDIA writes them when the stage completes, so the real culprit may be the next command after the last marker. In both readings it is list 8 of that submission. - The `emulated wave64 rounds` form is not unusual. 9,282 of the corpus' 9,504 programs with that control flow are mesh shaders. So "a loop in the wave64 emulation" is a hypothesis, not something this run shows. - This is one run. The next step that needs no guessing: rerun it with that pipeline stubbed. Neither `LEONIDA_SKIP_COMPUTE` nor `LEONIDA_STUB_PIPELINES` selects one graphics pipeline by name today, as far as I can see. Then check whether the device loss goes away or moves to another draw. Logs stay local: they name game shaders. AI-assisted (Claude Code).
Author
Owner

@Izoo-dev commented on GitHub (Nov 26, 2026):

claiming: SPIRV-PT-NODE-ENTRY-LOAD64 — Reduce instruction expansion in the GPU page-table translator by loading aligned 64-bit node entries directly. Verify alignment and read/write fallback semantics with synthetic tests. AI-assisted.

<!-- gh-comment-id:7191322474 --> @Izoo-dev commented on GitHub (Nov 26, 2026): claiming: SPIRV-PT-NODE-ENTRY-LOAD64 — Reduce instruction expansion in the GPU page-table translator by loading aligned 64-bit node entries directly. Verify alignment and read/write fallback semantics with synthetic tests. AI-assisted.
Author
Owner

@Bonchaloo commented on GitHub (Nov 26, 2026):

claiming: RT-ATTACHMENTLESS-FRACTIONAL-AREA — preserve the last covered pixel of fractional viewports when sizing an attachmentless draw in Vulkan replay. Test single and multiple viewports with synthetic draws.

<!-- gh-comment-id:7191340976 --> @Bonchaloo commented on GitHub (Nov 26, 2026): claiming: RT-ATTACHMENTLESS-FRACTIONAL-AREA — preserve the last covered pixel of fractional viewports when sizing an attachmentless draw in Vulkan replay. Test single and multiple viewports with synthetic draws.
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: VALU-FUZZ-ORACLE-LEAK-CLI-VALIDATION-AND-TESTS -> #2270

tools/valu_fuzz.py now takes argv=None in main(), validates --show, --keep, and --negative-control before open_oracle(), closes oracle reliably inside one try/finally, uses UTF-8 (errors="replace" / utf-8-sig) in translate() and run_gpu(), and adds stdlib CLI coverage in tests/test_valu_fuzz_cli.py (5 passed; fails against upstream/main).

<!-- gh-comment-id:7191353197 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: VALU-FUZZ-ORACLE-LEAK-CLI-VALIDATION-AND-TESTS -> #2270 `tools/valu_fuzz.py` now takes `argv=None` in `main()`, validates `--show`, `--keep`, and `--negative-control` before `open_oracle()`, closes `oracle` reliably inside one `try/finally`, uses UTF-8 (`errors="replace"` / `utf-8-sig`) in `translate()` and `run_gpu()`, and adds stdlib CLI coverage in `tests/test_valu_fuzz_cli.py` (5 passed; fails against `upstream/main`).
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: FSSM-HEADER-BOM-CASE-GLOB-AND-STAGE-INDEX - tools/fssm_header.py: read index.json with utf-8-sig and deduplicate candidate paths in stage_index(), match .fssm case-insensitively in files_of(), and guard non-file/non-directory --path inputs in main().

<!-- gh-comment-id:7191354616 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: FSSM-HEADER-BOM-CASE-GLOB-AND-STAGE-INDEX - `tools/fssm_header.py`: read `index.json` with `utf-8-sig` and deduplicate candidate paths in `stage_index()`, match `.fssm` case-insensitively in `files_of()`, and guard non-file/non-directory `--path` inputs in `main()`.
Author
Owner

@Zalthor commented on GitHub (Nov 26, 2026):

Verification batch 16: 51 open pull requests that have tests and queued or no CI, and that nobody had verified in this issue. They are 33 older PRs (#669–#1647) and 18 opened this morning (#2231–#2260). Each diff (merge-base..head) was applied to its own clean worktree at main a73a57e13. Environment: Windows 10, CPU only, no game files, TEMP on C:. The python -I test files ran on CPython 3.12, as in CI's Windows job; pytest-mode files ran on 3.10. PRs that touch tools/rdna2spirv.py also ran the full semantic suite. PRs that touch make_game.py also ran all 50 test files that name it, on 3.12. AI-assisted (Claude Code). Same method as batches 1 to 15.

Summary: 48 apply cleanly. 47 break no test. #1253 turns a repo-wide check red (below). 3 no longer apply (#693, #698, #770).

#1253 fails tests/test_tool_stdout_encoding.py

The PR adds scripts/export_github_metadata.py, and its __main__ block doesn't set errors='replace' on stdout. The repo-wide check test_every_main_block_reconfigures_stdout lists it as the only offender, and the check passes on main. The PR's own tests/test_export_github_metadata.py passes: 6 new tests that fail on main. Adding the stdout reconfigure that the other tools use would fix it.

New tests fail on unpatched main and pass with the change

#696, #702, #703, #706, #707, #716, #736, #762, #775, #782, #789, #794, #855, #859, #871, #889, #899, #909, #941, #986, #995, #1024, #1274, #1519, #1647, #2231, #2232, #2236, #2244, #2245, #2246, #2247, #2248, #2249, #2250, #2251, #2252, #2253, #2254, #2255, #2256, #2257, #2258, #2260.

  • #909 (make_game translate cleanup, also touches rdna2spirv.py):
    • full semantic suite: 0 failed files;
    • all 50 make_game-related test files pass on 3.12.
  • #1647 (v_cmpx in DPP form): the full semantic suite has 0 failed files (498 files, 6,357 tests).
  • #736 (make_game vulkaninfo after a failed probe): in the parallel run, test_make_game_argparse.py and test_make_game_platform.py hit the 900 s timeout. Re-run alone with the PR applied, both pass (287 s and 53 s). The other 48 related files pass.

Tests that already pass on main (coverage or test-only changes)

  • #708 (floating-point edge-case semantic tests) and #1084 (anim tools report-path guard): the new tests pass on main too.
  • #1370 (interp_ij_analysis tests): the 12 new tests pass on main too. Inside the suite runner, the file runs 34 tests, all passing; on main it runs 22. Run on its own, outside the runner, it fails on the support import, as other semantic files do.
  • #669 changes tests/test_first_look_rebuild.py only, with no new test functions, and passes with and without the change.

No longer applies to main

  • #693: tests/test_pe_inspect.py
  • #698: tests/test_pe_inspect.py
  • #770: docs/design.md

Not covered: no Linux or macOS run, no runtime (C++) build, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.

<!-- gh-comment-id:7191368216 --> @Zalthor commented on GitHub (Nov 26, 2026): Verification batch 16: 51 open pull requests that have tests and queued or no CI, and that nobody had verified in this issue. They are 33 older PRs (#669–#1647) and 18 opened this morning (#2231–#2260). Each diff (merge-base..head) was applied to its own clean worktree at `main` `a73a57e13`. Environment: Windows 10, CPU only, no game files, `TEMP` on `C:`. The `python -I` test files ran on CPython 3.12, as in CI's Windows job; pytest-mode files ran on 3.10. PRs that touch `tools/rdna2spirv.py` also ran the full semantic suite. PRs that touch `make_game.py` also ran all 50 test files that name it, on 3.12. AI-assisted (Claude Code). Same method as batches [1](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157070042) to [15](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7190270503). **Summary: 48 apply cleanly. 47 break no test. #1253 turns a repo-wide check red (below). 3 no longer apply (#693, #698, #770).** ### #1253 fails `tests/test_tool_stdout_encoding.py` The PR adds `scripts/export_github_metadata.py`, and its `__main__` block doesn't set `errors='replace'` on stdout. The repo-wide check `test_every_main_block_reconfigures_stdout` lists it as the only offender, and the check passes on `main`. The PR's own `tests/test_export_github_metadata.py` passes: 6 new tests that fail on `main`. Adding the stdout reconfigure that the other tools use would fix it. ### New tests fail on unpatched `main` and pass with the change #696, #702, #703, #706, #707, #716, #736, #762, #775, #782, #789, #794, #855, #859, #871, #889, #899, #909, #941, #986, #995, #1024, #1274, #1519, #1647, #2231, #2232, #2236, #2244, #2245, #2246, #2247, #2248, #2249, #2250, #2251, #2252, #2253, #2254, #2255, #2256, #2257, #2258, #2260. - **#909** (`make_game` translate cleanup, also touches `rdna2spirv.py`): - full semantic suite: 0 failed files; - all 50 `make_game`-related test files pass on 3.12. - **#1647** (`v_cmpx` in DPP form): the full semantic suite has 0 failed files (498 files, 6,357 tests). - **#736** (`make_game` vulkaninfo after a failed probe): in the parallel run, `test_make_game_argparse.py` and `test_make_game_platform.py` hit the 900 s timeout. Re-run alone with the PR applied, both pass (287 s and 53 s). The other 48 related files pass. ### Tests that already pass on `main` (coverage or test-only changes) - **#708** (floating-point edge-case semantic tests) and **#1084** (anim tools report-path guard): the new tests pass on `main` too. - **#1370** (`interp_ij_analysis` tests): the 12 new tests pass on `main` too. Inside the suite runner, the file runs 34 tests, all passing; on `main` it runs 22. Run on its own, outside the runner, it fails on the `support` import, as other semantic files do. - **#669** changes `tests/test_first_look_rebuild.py` only, with no new test functions, and passes with and without the change. ### No longer applies to `main` - **#693:** `tests/test_pe_inspect.py` - **#698:** `tests/test_pe_inspect.py` - **#770:** `docs/design.md` Not covered: no Linux or macOS run, no runtime (C++) build, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.
Author
Owner

@DeadlyChirp commented on GitHub (Nov 26, 2026):

claiming: TEST-LEONIDA-TUI-SIGINT-LEAK: tests/test_leonida_tui.py leaves the TUI's os._exit(130) SIGINT handler installed in the test process, so pytest tests exits 130 with no summary at the semantic runner's interrupt tests. Fix in the test file only.

<!-- gh-comment-id:7191378304 --> @DeadlyChirp commented on GitHub (Nov 26, 2026): claiming: TEST-LEONIDA-TUI-SIGINT-LEAK: `tests/test_leonida_tui.py` leaves the TUI's `os._exit(130)` SIGINT handler installed in the test process, so `pytest tests` exits 130 with no summary at the semantic runner's interrupt tests. Fix in the test file only.
Author
Owner

@Bonchaloo commented on GitHub (Nov 26, 2026):

done: RT-ATTACHMENTLESS-FRACTIONAL-AREA -> #2271 (draft)

<!-- gh-comment-id:7191383563 --> @Bonchaloo commented on GitHub (Nov 26, 2026): done: RT-ATTACHMENTLESS-FRACTIONAL-AREA -> #2271 (draft)
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: FSSM-HEADER-BOM-CASE-GLOB-AND-STAGE-INDEX -> #2272

tools/fssm_header.py now reads index.json with utf-8-sig and deduplicates candidate paths in stage_index(), matches .fssm files case-insensitively in files_of(), and guards non-file/non-directory --path inputs in main(). Verified with tests/test_fssm_header.py (45 passed; new tests fail against upstream/main).

<!-- gh-comment-id:7191396507 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: FSSM-HEADER-BOM-CASE-GLOB-AND-STAGE-INDEX -> #2272 `tools/fssm_header.py` now reads `index.json` with `utf-8-sig` and deduplicates candidate paths in `stage_index()`, matches `.fssm` files case-insensitively in `files_of()`, and guards non-file/non-directory `--path` inputs in `main()`. Verified with `tests/test_fssm_header.py` (45 passed; new tests fail against `upstream/main`).
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: INLINE-SCAN-BOM-DUMPBIN-CLEANUP-AND-CLI-SAFETY - tools/inline_scan.py: pass encoding="utf-8" and close/terminate dumpbin Popen on early generator close, read listing files with utf-8-sig, accept argv=None in main(), reject negative --base, and catch OSError when scanning.

<!-- gh-comment-id:7191397017 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: INLINE-SCAN-BOM-DUMPBIN-CLEANUP-AND-CLI-SAFETY - `tools/inline_scan.py`: pass `encoding="utf-8"` and close/terminate `dumpbin` `Popen` on early generator close, read listing files with `utf-8-sig`, accept `argv=None` in `main()`, reject negative `--base`, and catch `OSError` when scanning.
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: INLINE-SCAN-BOM-DUMPBIN-CLEANUP-AND-CLI-SAFETY -> #2273

tools/inline_scan.py now reads listing files with utf-8-sig, passes encoding="utf-8" with try/finally stdout close and process termination on early stop for dumpbin Popen, accepts argv=None in main(), rejects negative hex --base, and handles OSError cleanly. Verified with tests/test_inline_scan.py (17 passed; new tests fail against upstream/main).

<!-- gh-comment-id:7191439193 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: INLINE-SCAN-BOM-DUMPBIN-CLEANUP-AND-CLI-SAFETY -> #2273 `tools/inline_scan.py` now reads listing files with `utf-8-sig`, passes `encoding="utf-8"` with `try/finally` stdout close and process termination on early stop for `dumpbin` `Popen`, accepts `argv=None` in `main()`, rejects negative hex `--base`, and handles `OSError` cleanly. Verified with `tests/test_inline_scan.py` (17 passed; new tests fail against `upstream/main`).
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: LINUX-BOOT-SCRIPTS-EXACT-DEDUP-EMPTY-STATS-AND-ARG-GUARDS - scripts/linux-boot/boot-digest.sh, scripts/linux-boot/run-boot.sh, tests/test_linux_boot_scripts.py: support LEONIDA_BOOT_ROOT, validate agent/boot/seconds/KEY=VALUE upfront, use literal awk ledger deduplication instead of PCRE grep, handle header-only resources.tsv and 0-byte index.txt, guard flock and missing .meta, and add bash verification tests.

<!-- gh-comment-id:7191439979 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: LINUX-BOOT-SCRIPTS-EXACT-DEDUP-EMPTY-STATS-AND-ARG-GUARDS - `scripts/linux-boot/boot-digest.sh`, `scripts/linux-boot/run-boot.sh`, `tests/test_linux_boot_scripts.py`: support `LEONIDA_BOOT_ROOT`, validate agent/boot/seconds/`KEY=VALUE` upfront, use literal `awk` ledger deduplication instead of PCRE `grep`, handle header-only `resources.tsv` and 0-byte `index.txt`, guard `flock` and missing `.meta`, and add bash verification tests.
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: LINUX-BOOT-SCRIPTS-EXACT-DEDUP-EMPTY-STATS-AND-ARG-GUARDS -> #2274

scripts/linux-boot/boot-digest.sh and scripts/linux-boot/run-boot.sh now support LEONIDA_BOOT_ROOT, validate agent/boot/seconds/KEY=VALUE arguments upfront, use exact awk ledger deduplication instead of PCRE grep, handle 0-byte index.txt and header-only resources.tsv, guard flock and missing .meta, preserve LF endings, and include bash tests in tests/test_linux_boot_scripts.py (3 passed; fails against upstream/main).

<!-- gh-comment-id:7191506706 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: LINUX-BOOT-SCRIPTS-EXACT-DEDUP-EMPTY-STATS-AND-ARG-GUARDS -> #2274 `scripts/linux-boot/boot-digest.sh` and `scripts/linux-boot/run-boot.sh` now support `LEONIDA_BOOT_ROOT`, validate agent/boot/seconds/`KEY=VALUE` arguments upfront, use exact `awk` ledger deduplication instead of PCRE `grep`, handle 0-byte `index.txt` and header-only `resources.tsv`, guard `flock` and missing `.meta`, preserve LF endings, and include bash tests in `tests/test_linux_boot_scripts.py` (3 passed; fails against `upstream/main`).
Author
Owner

@PyZikYG commented on GitHub (Nov 26, 2026):

claiming: D3D-PREDICATED-BUFFER-UAV-CLEAR — honor SetPredication for buffer ClearUnorderedAccessViewUint/Float using the existing conditional compute path, including typed element patterns, byte ranges and pipeline-statistics isolation. AI-assisted.

<!-- gh-comment-id:7191562917 --> @PyZikYG commented on GitHub (Nov 26, 2026): claiming: D3D-PREDICATED-BUFFER-UAV-CLEAR — honor SetPredication for buffer ClearUnorderedAccessViewUint/Float using the existing conditional compute path, including typed element patterns, byte ranges and pipeline-statistics isolation. AI-assisted.
Author
Owner

@Tyrannys commented on GitHub (Nov 26, 2026):

done: RT-COMPILE-GATE-WARMUP-FREE -> #2275. A submission now waits at the compile gate only for demanded pipeline creates. A compile worker's speculative jobs (warm-ups, prewarms, the checkpoint) pass it as speculative and no longer hold submissions. They still never enter the driver while a submission is in it or waiting, and at most LEONIDA_COMPILE_GATE_WARMUP_MAX (default 1) are in the driver at once. LEONIDA_COMPILE_GATE_WARMUPS=1 restores the old behaviour; LEONIDA_COMPILE_GATE=0 is unchanged. Depends on #2233. CPU tests only so far (gate cases plus 4 mutants caught); a cold boot with the gate on is the measurement to make. AI-assisted (Claude Code).

<!-- gh-comment-id:7191578358 --> @Tyrannys commented on GitHub (Nov 26, 2026): done: RT-COMPILE-GATE-WARMUP-FREE -> #2275. A submission now waits at the compile gate only for demanded pipeline creates. A compile worker's speculative jobs (warm-ups, prewarms, the checkpoint) pass it as speculative and no longer hold submissions. They still never enter the driver while a submission is in it or waiting, and at most `LEONIDA_COMPILE_GATE_WARMUP_MAX` (default 1) are in the driver at once. `LEONIDA_COMPILE_GATE_WARMUPS=1` restores the old behaviour; `LEONIDA_COMPILE_GATE=0` is unchanged. Depends on #2233. CPU tests only so far (gate cases plus 4 mutants caught); a cold boot with the gate on is the measurement to make. AI-assisted (Claude Code).
Author
Owner

@star41905453-coder commented on GitHub (Nov 26, 2026):

claiming: CONSOLE-STREAM-ON-DEMAND-REREAD - with LEONIDA_PIPELINE_COMPILE=on-demand every PSO from a console-numbered stream is refused: prepare_console_stream (the deferred path) parses the stream with PC numbering and returns before the console re-read that CreatePipelineState does when the PC reading refuses or leaves an AS with no MS. So under on-demand, type 24 arrives as an AS and Xbox CreatePipelineState (slot 86) answers E_NOTIMPL - on main, d3d12_mesh_test stops there (SUCCEEDED(console_hr), line 344). The title is the case that matters: it creates console PSOs and the button this layer offers is prepare-on-bind.
Plan: give both parsers one helper for the re-read (refuse -> console reading when it holds mesh, no AS), call it from prepare_console_stream too, and keep LEONIDA_XS_STREAM_ENUM=pc alone keeping the PC reading. Test: the existing console-stream step of d3d12_mesh_test under LEONIDA_PIPELINE_COMPILE=on-demand. No game files.

<!-- gh-comment-id:7191583235 --> @star41905453-coder commented on GitHub (Nov 26, 2026): claiming: CONSOLE-STREAM-ON-DEMAND-REREAD - with `LEONIDA_PIPELINE_COMPILE=on-demand` every PSO from a console-numbered stream is refused: `prepare_console_stream` (the deferred path) parses the stream with PC numbering and returns before the console re-read that `CreatePipelineState` does when the PC reading refuses or leaves an AS with no MS. So under `on-demand`, type 24 arrives as an AS and `Xbox CreatePipelineState` (slot 86) answers `E_NOTIMPL` - on `main`, `d3d12_mesh_test` stops there (`SUCCEEDED(console_hr)`, line 344). The title is the case that matters: it creates console PSOs and the button this layer offers is prepare-on-bind. Plan: give both parsers one helper for the re-read (refuse -> console reading when it holds mesh, no AS), call it from `prepare_console_stream` too, and keep `LEONIDA_XS_STREAM_ENUM=pc` alone keeping the PC reading. Test: the existing console-stream step of `d3d12_mesh_test` under `LEONIDA_PIPELINE_COMPILE=on-demand`. No game files.
Author
Owner

@Tyrannys commented on GitHub (Nov 26, 2026):

Re @MoonEyes's 10:31 finding (large compute builds one after another in sync mode): data from RTX 4070 SUPER, NVIDIA 621.01, Windows 11, 64 GB RAM. Counts only.

Tree: main a73a57e13 + #1851 #1905 #1957 #1886 #1894 #1914 #1882 #2195 #2113 #1592 #2097 (run F3b). F6 and S1/S2 add #2233 #2179 #2228 #2260. All runs: LEONIDA_COMPILE_GATE=0, LEONIDA_SERIAL_BIG_COMPILES=0, warm offline and heavy caches.

Overlap of compute builds over 128 KiB that log an end (builds over 2 s), taken from each build's start time and length:

run pipelines large compute builds all for a dispatch most at once started while another ran seconds
F3b (1,800 s) sync, no #2233 21 21 9 10 160
F6 (1,544 s) async + #2233 14 14 6 3 247
S1 (600 s) sync + #2233 3 3 3 1 22
S2 (600 s) as S1, LEONIDA_BIG_COMPILE_BUDGET_MB=16384 0 - - - -
  • With LEONIDA_SERIAL_BIG_COMPILES=0, large dispatch builds do overlap in sync mode here, up to 9 at once, even without #2233's pool.
  • The big_compile_gate is not used at all in that mode: big_compiles() returns unlimited for "0", and neither run logs "large pipelines compile side by side within ... MiB". So S2's budget setting changed nothing. Its caches were warm enough that no large build happened anyway.
  • Your run had LEONIDA_SERIAL_BIG_COMPILES unset, so the memory-budget mode was active. The difference between your serial builds and these overlapping ones may be that gate, or its estimate against free memory, but I have not run budget mode with a cold cache to show it.

AI-assisted (Claude Code).

<!-- gh-comment-id:7191597719 --> @Tyrannys commented on GitHub (Nov 26, 2026): Re @MoonEyes's 10:31 finding (large compute builds one after another in sync mode): data from RTX 4070 SUPER, NVIDIA 621.01, Windows 11, 64 GB RAM. Counts only. **Tree:** `main` a73a57e13 + #1851 #1905 #1957 #1886 #1894 #1914 #1882 #2195 #2113 #1592 #2097 (run F3b). F6 and S1/S2 add #2233 #2179 #2228 #2260. All runs: `LEONIDA_COMPILE_GATE=0`, **`LEONIDA_SERIAL_BIG_COMPILES=0`**, warm offline and heavy caches. Overlap of compute builds over 128 KiB that log an end (builds over 2 s), taken from each build's start time and length: | run | pipelines | large compute builds | all for a dispatch | most at once | started while another ran | seconds | |---|---|---|---|---|---|---| | F3b (1,800 s) | sync, no #2233 | 21 | 21 | 9 | 10 | 160 | | F6 (1,544 s) | async + #2233 | 14 | 14 | 6 | 3 | 247 | | S1 (600 s) | sync + #2233 | 3 | 3 | 3 | 1 | 22 | | S2 (600 s) | as S1, `LEONIDA_BIG_COMPILE_BUDGET_MB=16384` | 0 | - | - | - | - | - With `LEONIDA_SERIAL_BIG_COMPILES=0`, large dispatch builds do overlap in sync mode here, up to 9 at once, even without #2233's pool. - The `big_compile_gate` is not used at all in that mode: `big_compiles()` returns `unlimited` for "0", and neither run logs "large pipelines compile side by side within ... MiB". So S2's budget setting changed nothing. Its caches were warm enough that no large build happened anyway. - Your run had `LEONIDA_SERIAL_BIG_COMPILES` unset, so the memory-budget mode was active. The difference between your serial builds and these overlapping ones may be that gate, or its estimate against free memory, but I have not run budget mode with a cold cache to show it. AI-assisted (Claude Code).
Author
Owner

@OldSalty commented on GitHub (Nov 26, 2026):

claiming: print the fault and the faulting thread's call chain when nothing handles an exception (the main.cpp fatal filter, a new rt::print_fault_stacks in src/thread_stacks.{h,cpp}). No item ID listed for this yet.

<!-- gh-comment-id:7191689854 --> @OldSalty commented on GitHub (Nov 26, 2026): claiming: print the fault and the faulting thread's call chain when nothing handles an exception (the `main.cpp` fatal filter, a new `rt::print_fault_stacks` in `src/thread_stacks.{h,cpp}`). No item ID listed for this yet.
Author
Owner

@OldSalty commented on GitHub (Nov 26, 2026):

done: print the fault and the faulting thread's call chain at a fatal exception -> #2276

<!-- gh-comment-id:7191704992 --> @OldSalty commented on GitHub (Nov 26, 2026): done: print the fault and the faulting thread's call chain at a fatal exception -> #2276
Author
Owner

@PyZikYG commented on GitHub (Nov 26, 2026):

done: D3D-PREDICATED-BUFFER-UAV-CLEAR -> #2277

<!-- gh-comment-id:7191745392 --> @PyZikYG commented on GitHub (Nov 26, 2026): done: D3D-PREDICATED-BUFFER-UAV-CLEAR -> #2277
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: DEV-CLI-STDOUT-RECONFIGURE-AND-ARGV-SAFETY - scripts/dev.py: accept argv in main(), guard sys.stdout.reconfigure(...) against redirected StringIO/non-reconfigurable streams, and reject whitespace-only --out in guest-scene.

<!-- gh-comment-id:7191757339 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: DEV-CLI-STDOUT-RECONFIGURE-AND-ARGV-SAFETY - `scripts/dev.py`: accept `argv` in `main()`, guard `sys.stdout.reconfigure(...)` against redirected `StringIO`/non-reconfigurable streams, and reject whitespace-only `--out` in `guest-scene`.
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: DEV-CLI-STDOUT-RECONFIGURE-AND-ARGV-SAFETY -> #2278

scripts/dev.py now accepts argv in main(), wraps sys.stdout.reconfigure(encoding="utf-8") in try/except (AttributeError, ValueError, OSError), and rejects whitespace-only --out in guest-scene. Verified with tests/test_dev_discovery.py (5 passed; baseline fails) and tests/test_dev_guest_scene.py (4 passed).

<!-- gh-comment-id:7191803472 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: DEV-CLI-STDOUT-RECONFIGURE-AND-ARGV-SAFETY -> #2278 `scripts/dev.py` now accepts `argv` in `main()`, wraps `sys.stdout.reconfigure(encoding="utf-8")` in `try/except (AttributeError, ValueError, OSError)`, and rejects whitespace-only `--out` in `guest-scene`. Verified with `tests/test_dev_discovery.py` (5 passed; baseline fails) and `tests/test_dev_guest_scene.py` (4 passed).
Author
Owner

@Tyrannys commented on GitHub (Nov 26, 2026):

Re fiestorra's finding at 11:51 (checkpoints off, so a crashed boot keeps nothing): this is already covered, and turning the checkpoints on by default would not help that install. References are to main a73a57e13.

  • Compute is kept already, crash or not. main has the per-pipeline journal (runtime/src/pipeline_cache_journal.h). Each compute pipeline goes into its own file, pipeline_cache.d/cs-<hash>.bin beside the cache, the moment it is built (journal.publish(), d3d12_vulkan_device.cpp:10497). A boot that dies keeps everything it built before. It is on by default and only off with LEONIDA_PIPELINE_JOURNAL=0 or LEONIDA_PIPELINE_CACHE_BYTES=0. Budget: LEONIDA_PIPELINE_JOURNAL_BYTES, default 32 GiB. The log says compute pipelines are journaled one file each in <dir> at the first pipeline (:2294). If that line or the pipeline_cache.d folder is missing on your install, that is the thing to look at. A second boot should then find lib_cs_01405/01410/02879 there in milliseconds.
  • Graphics: #1914 (RT-HEAVY-PIPELINE-CACHE, open) keeps the corpus's graphics misses in pipeline_cache.heavy.bin. It is written by its own thread at most 20 s after a slow build (LEONIDA_HEAVY_PIPELINE_CACHE_MS, default 500 ms). Since main's journal landed it covers graphics only.
  • Why default-on checkpoints would not save your boot: a checkpoint writes the whole session cache, which starts from the seed. Your seed pipeline_cache.bin is 4,621,204,361 bytes. That is over the 512 MiB checkpoint cap (:1634), over the 256 MiB default (pipeline_cache_store.h:30), and over #1886's raised 4 GiB, so each checkpoint would log over the ... write limit and write nothing. #2233 makes the checkpoint idle-only (and with lixonik's fix it backs off from a running demand), but that does not change its size.
  • The 04:28 timestamp: the runtime never writes pipeline_cache.bin; the seed stays read-only (D3D-704). What it writes is pipeline_cache.session.bin, at run end with the device alive (#1950), plus the journal above. So an unchanged seed is expected; the stale seed against the 07:29 library is your other finding.

So no new item from our side. Unless your install shows no journal line, the 3.7-20 s builds should be one-time per library rebuild.

AI-assisted (Claude Code)

<!-- gh-comment-id:7191807479 --> @Tyrannys commented on GitHub (Nov 26, 2026): Re fiestorra's [finding at 11:51](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7191259668) (checkpoints off, so a crashed boot keeps nothing): this is already covered, and turning the checkpoints on by default would not help that install. References are to `main` a73a57e13. - **Compute is kept already, crash or not.** `main` has the per-pipeline journal (`runtime/src/pipeline_cache_journal.h`). Each compute pipeline goes into its own file, `pipeline_cache.d/cs-<hash>.bin` beside the cache, the moment it is built (`journal.publish()`, `d3d12_vulkan_device.cpp:10497`). A boot that dies keeps everything it built before. It is on by default and only off with `LEONIDA_PIPELINE_JOURNAL=0` or `LEONIDA_PIPELINE_CACHE_BYTES=0`. Budget: `LEONIDA_PIPELINE_JOURNAL_BYTES`, default 32 GiB. The log says `compute pipelines are journaled one file each in <dir>` at the first pipeline (`:2294`). If that line or the `pipeline_cache.d` folder is missing on your install, that is the thing to look at. A second boot should then find `lib_cs_01405/01410/02879` there in milliseconds. - **Graphics:** #1914 (RT-HEAVY-PIPELINE-CACHE, open) keeps the corpus's graphics misses in `pipeline_cache.heavy.bin`. It is written by its own thread at most 20 s after a slow build (`LEONIDA_HEAVY_PIPELINE_CACHE_MS`, default 500 ms). Since main's journal landed it covers graphics only. - **Why default-on checkpoints would not save your boot:** a checkpoint writes the whole session cache, which starts from the seed. Your seed `pipeline_cache.bin` is 4,621,204,361 bytes. That is over the 512 MiB checkpoint cap (`:1634`), over the 256 MiB default (`pipeline_cache_store.h:30`), and over #1886's raised 4 GiB, so each checkpoint would log `over the ... write limit` and write nothing. #2233 makes the checkpoint idle-only (and with lixonik's fix it backs off from a running demand), but that does not change its size. - **The 04:28 timestamp:** the runtime never writes `pipeline_cache.bin`; the seed stays read-only (D3D-704). What it writes is `pipeline_cache.session.bin`, at run end with the device alive (#1950), plus the journal above. So an unchanged seed is expected; the stale seed against the 07:29 library is your other finding. So no new item from our side. Unless your install shows no journal line, the 3.7-20 s builds should be one-time per library rebuild. AI-assisted (Claude Code)
Author
Owner

@HasiKe commented on GitHub (Nov 26, 2026):

Follow-up to my terrain-draw finding: with that pipeline dropped, the hang moves to another draw of the same kind. So it is not one program. AI-assisted (Claude Code).

Setup: the same as before: RTX 2070 SUPER, NVIDIA 616.56, main a73a57e13 + #2195 + #2233, a cold boot, LEONIDA_ASYNC_PIPELINES=1, LEONIDA_COMPILE_GATE=0 and LEONIDA_DEVICE_FAULT=2. On top of that I added a local diagnostic patch, not proposed: LEONIDA_SKIP_GRAPHICS=<name part>. It works like LEONIDA_SKIP_COMPUTE for graphics. A pipeline with a stage whose library name matches is never built, and its draws are dropped the way async replay drops a pipeline that is still compiling. I skipped TransformTerrainNormalTint_e74ae427, which covers all 12 variants. Four of them were created in the boot.

Result:

  • Before the world: the boot now runs past the point where it used to die, at 226-250 s. It held 140-160 frames/s up to 314 s, with no device loss.
  • Into the world: the input script then presses up and A at 314.3 / 316.0 s and goes into the world. The frame rate falls from about 340 s on, and from 401 s no frames are presented.
  • Device loss: at t=404.7 s. The checkpoints again give the same marker at top-of-pipe and bottom-of-pipe: submission 88644, list 22, command 68, kind=draw, on the direct queue.
  • Pipeline: _MS_VS_TransformD_c5fd36bb_Wrapped~23 + %PS_DeferredTextured_c5fd36bb_Wrapped~1. As in the first boot, the vertex shader runs as a mesh shader (MeshShadingEXT, control_flow: emulated wave64 rounds), drawn with a deferred-textured pixel shader.

Reading: two boots, two different vertex shaders, both VS-as-mesh-shader draws in the deferred pass during the world load. Dropping one only moves the hang to the next. That points to something these draws share, not to one program's translation:

  • the wave64-round emulation of the VS-as-MS path, of which 9,282 mesh shaders in the corpus use;
  • the mesh draw's arguments or input, for example the clamp pass for indirect mesh records;
  • or the data these draws read while the world streams in.

I have not checked yet whether these are indirect mesh draws. That is the next cheap distinction, together with whether LEONIDA_INDIRECT_CLAMP or a direct DispatchMesh makes a difference.

Logs stay local; they name game shaders.

<!-- gh-comment-id:7191827311 --> @HasiKe commented on GitHub (Nov 26, 2026): Follow-up to [my terrain-draw finding](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7191314888): with that pipeline dropped, the hang **moves to another draw of the same kind**. So it is not one program. AI-assisted (Claude Code). **Setup:** the same as before: RTX 2070 SUPER, NVIDIA 616.56, `main` `a73a57e13` + #2195 + #2233, a cold boot, `LEONIDA_ASYNC_PIPELINES=1`, `LEONIDA_COMPILE_GATE=0` and `LEONIDA_DEVICE_FAULT=2`. On top of that I added a local diagnostic patch, not proposed: `LEONIDA_SKIP_GRAPHICS=<name part>`. It works like `LEONIDA_SKIP_COMPUTE` for graphics. A pipeline with a stage whose library name matches is never built, and its draws are dropped the way async replay drops a pipeline that is still compiling. I skipped `TransformTerrainNormalTint_e74ae427`, which covers all 12 variants. Four of them were created in the boot. **Result:** - **Before the world:** the boot now runs past the point where it used to die, at 226-250 s. It held 140-160 frames/s up to 314 s, with no device loss. - **Into the world:** the input script then presses up and A at 314.3 / 316.0 s and goes into the world. The frame rate falls from about 340 s on, and from 401 s no frames are presented. - **Device loss:** at t=404.7 s. The checkpoints again give the same marker at top-of-pipe and bottom-of-pipe: submission 88644, list 22, command 68, `kind=draw`, on the direct queue. - **Pipeline:** `_MS_VS_TransformD_c5fd36bb_Wrapped~23` + `%PS_DeferredTextured_c5fd36bb_Wrapped~1`. As in the first boot, the vertex shader runs as a mesh shader (`MeshShadingEXT`, `control_flow: emulated wave64 rounds`), drawn with a deferred-textured pixel shader. **Reading:** two boots, two different vertex shaders, both VS-as-mesh-shader draws in the deferred pass during the world load. Dropping one only moves the hang to the next. That points to something these draws share, not to one program's translation: - the wave64-round emulation of the VS-as-MS path, of which 9,282 mesh shaders in the corpus use; - the mesh draw's arguments or input, for example the clamp pass for indirect mesh records; - or the data these draws read while the world streams in. I have not checked yet whether these are indirect mesh draws. That is the next cheap distinction, together with whether `LEONIDA_INDIRECT_CLAMP` or a direct `DispatchMesh` makes a difference. Logs stay local; they name game shaders.
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: CLASSIFY-CARVE-ARGV-CASE-HEAD-AND-REALPATH-GUARD - tools/classify_carve.py: add main(argv=None), case-insensitive hex signature matching in classify(), upfront realpath directory/parent guard for types.json, trailing LF newline on JSON output, and unit tests in tests/test_classify_carve.py

<!-- gh-comment-id:7191951624 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: CLASSIFY-CARVE-ARGV-CASE-HEAD-AND-REALPATH-GUARD - `tools/classify_carve.py`: add `main(argv=None)`, case-insensitive hex signature matching in `classify()`, upfront `realpath` directory/parent guard for `types.json`, trailing LF newline on JSON output, and unit tests in `tests/test_classify_carve.py`
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: CLASSIFY-CARVE-ARGV-CASE-HEAD-AND-REALPATH-GUARD -> #2279

<!-- gh-comment-id:7191984616 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: CLASSIFY-CARVE-ARGV-CASE-HEAD-AND-REALPATH-GUARD -> #2279
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: SPIRV-STUBS-CLI-RECURSION-AND-TARGET-DIR-GUARD - tools/spirv_stubs.py: preflight stubs directory and target .spv directory collisions before writing stubs, reject unknown CLI flags and blank paths, catch RecursionError on json.load, and add unit tests in tests/test_spirv_stubs.py

<!-- gh-comment-id:7191999362 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: SPIRV-STUBS-CLI-RECURSION-AND-TARGET-DIR-GUARD - `tools/spirv_stubs.py`: preflight `stubs` directory and target `.spv` directory collisions before writing stubs, reject unknown CLI flags and blank paths, catch `RecursionError` on `json.load`, and add unit tests in `tests/test_spirv_stubs.py`
Author
Owner

@quartz-heron-58 commented on GitHub (Nov 26, 2026):

finding: follow-up to my 32 GB reproduction above (same tree, same machine: RTX 4080, 621.24, 32 GB). The device loss in the world was repeatable, went away when one more compute program was dropped, and the run then reaches the title's own "couldn't autosave" page. Counts only.

All runs: the settings from my earlier comment (the posted recipe with LEONIDA_HOST_IMAGE_COPY=1 and LEONIDA_COMPILE_WORKERS=2), warm caches, a window grab every 30 s.

run change end notes
3 - device lost at 465 s from my earlier comment
4 - device lost at 459 s same recipe again: the loss repeats at the same point
5 LEONIDA_DEVICE_FAULT=1 device lost at about 1,150 s (slow run: 85 compute builds over 2 s) report: one READ_INVALID address that is in no allocation (a sign-extended value), plus an instruction-pointer address; checkpoints on three queues, each at a compute dispatch of a different library program
6 one of those three programs (1.19 MB of SPIR-V) added to LEONIDA_SKIP_COMPUTE my free-RAM guard at 1,374 s, no device loss private memory 23.7 GB at 300 s, 28.0 GB at the end; the opening sequence plays on into a daytime scene
7 as 6 plus LEONIDA_SHADOW_ALIAS_MS=1000 stopped by me from about 480 s the window shows the title's "couldn't autosave" page, waiting for A or B; my script only pressed A
8 as 7 plus B pressed every 7 s from 300 s full 1,500 s, no device loss gets past that page into another scene; 27.8 GB private at the end
  • LEONIDA_SHADOW_ALIAS_MS=1000: between 300 and 800 s, run 7 made 7.7 submissions/s and 0.42 frames/s against 4.9 and 0.13 in run 6. The two runs are not in the same game state over that window, so that is indicative only.
  • The autosave page says something in the save path fails here. I have not looked at why.
  • Pictures in the later scenes are heavily noisy, as one would expect with 725 compute programs dropped.

Not checked: which of the three programs in run 5's report actually reads the bad address (run 6 dropped one and the loss went away, one run), why it is given that address, whether run 5's loss is the same one as runs 3 and 4 (the submission counts differ), and anything about memory growth.

AI-assisted (Claude Code).

<!-- gh-comment-id:7192014617 --> @quartz-heron-58 commented on GitHub (Nov 26, 2026): finding: follow-up to my 32 GB reproduction above (same tree, same machine: RTX 4080, 621.24, 32 GB). The device loss in the world was repeatable, went away when one more compute program was dropped, and the run then reaches the title's own "couldn't autosave" page. Counts only. All runs: the settings from my earlier comment (the posted recipe with LEONIDA_HOST_IMAGE_COPY=1 and LEONIDA_COMPILE_WORKERS=2), warm caches, a window grab every 30 s. | run | change | end | notes | |---|---|---|---| | 3 | - | device lost at 465 s | from my earlier comment | | 4 | - | device lost at 459 s | same recipe again: the loss repeats at the same point | | 5 | LEONIDA_DEVICE_FAULT=1 | device lost at about 1,150 s (slow run: 85 compute builds over 2 s) | report: one READ_INVALID address that is in no allocation (a sign-extended value), plus an instruction-pointer address; checkpoints on three queues, each at a compute dispatch of a different library program | | 6 | one of those three programs (1.19 MB of SPIR-V) added to LEONIDA_SKIP_COMPUTE | my free-RAM guard at 1,374 s, no device loss | private memory 23.7 GB at 300 s, 28.0 GB at the end; the opening sequence plays on into a daytime scene | | 7 | as 6 plus LEONIDA_SHADOW_ALIAS_MS=1000 | stopped by me | from about 480 s the window shows the title's "couldn't autosave" page, waiting for A or B; my script only pressed A | | 8 | as 7 plus B pressed every 7 s from 300 s | full 1,500 s, no device loss | gets past that page into another scene; 27.8 GB private at the end | - LEONIDA_SHADOW_ALIAS_MS=1000: between 300 and 800 s, run 7 made 7.7 submissions/s and 0.42 frames/s against 4.9 and 0.13 in run 6. The two runs are not in the same game state over that window, so that is indicative only. - The autosave page says something in the save path fails here. I have not looked at why. - Pictures in the later scenes are heavily noisy, as one would expect with 725 compute programs dropped. Not checked: which of the three programs in run 5's report actually reads the bad address (run 6 dropped one and the loss went away, one run), why it is given that address, whether run 5's loss is the same one as runs 3 and 4 (the submission counts differ), and anything about memory growth. AI-assisted (Claude Code).
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: SPIRV-STUBS-CLI-RECURSION-AND-TARGET-DIR-GUARD -> #2280

<!-- gh-comment-id:7192042729 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: SPIRV-STUBS-CLI-RECURSION-AND-TARGET-DIR-GUARD -> #2280
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: COMPUTE-FIXTURE-BOM-NEGATIVE-SHIFT-AND-GROUP-BOUNDS - runtime/test/shaders/compute_fixture.py: read .asm with utf-8-sig, validate ; group: dimensions in 1..0xFFFFFFFF, reject negative or bool shift in shift_user_data() / shifted_rsrc2(), reject inverted s[lo:hi] ranges, and add unit tests in tests/test_compute_fixture.py

<!-- gh-comment-id:7192043342 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: COMPUTE-FIXTURE-BOM-NEGATIVE-SHIFT-AND-GROUP-BOUNDS - `runtime/test/shaders/compute_fixture.py`: read `.asm` with `utf-8-sig`, validate `; group:` dimensions in `1..0xFFFFFFFF`, reject negative or `bool` `shift` in `shift_user_data()` / `shifted_rsrc2()`, reject inverted `s[lo:hi]` ranges, and add unit tests in `tests/test_compute_fixture.py`
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: COMPUTE-FIXTURE-BOM-NEGATIVE-SHIFT-AND-GROUP-BOUNDS -> #2281

<!-- gh-comment-id:7192086075 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: COMPUTE-FIXTURE-BOM-NEGATIVE-SHIFT-AND-GROUP-BOUNDS -> #2281
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: PAL-STAGES-INDEX-MESSAGE-CASE-LOOKUP-AND-PATH-GUARD - tools/pal_stages.py: add non-file/non-dir path guard, catch (OSError, ValueError, RecursionError) on stage_index(), add unambiguous case-folded stem lookup, distinguish no inspected blob in index.json vs no index.json found, and add unit tests in tests/test_pal_stages.py

<!-- gh-comment-id:7192117999 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: PAL-STAGES-INDEX-MESSAGE-CASE-LOOKUP-AND-PATH-GUARD - `tools/pal_stages.py`: add non-file/non-dir path guard, catch `(OSError, ValueError, RecursionError)` on `stage_index()`, add unambiguous case-folded stem lookup, distinguish `no inspected blob in index.json` vs `no index.json found`, and add unit tests in `tests/test_pal_stages.py`
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: PAL-STAGES-INDEX-MESSAGE-CASE-LOOKUP-AND-PATH-GUARD -> #2282

<!-- gh-comment-id:7192158446 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: PAL-STAGES-INDEX-MESSAGE-CASE-LOOKUP-AND-PATH-GUARD -> #2282
Author
Owner

@timbot103 commented on GitHub (Nov 26, 2026):

done: D3D-SPARSE-2D-COLOR-FORMATS -> #2283

<!-- gh-comment-id:7192225334 --> @timbot103 commented on GitHub (Nov 26, 2026): done: D3D-SPARSE-2D-COLOR-FORMATS -> #2283
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: PROBE-SIGNED-ZERO-CLI-SUBPROCESS-AND-VALIDATION - runtime/test/shaders/probe_signed_zero.py: add main(argv=None), upfront harness path/file validation before spirv-as, catch (OSError, subprocess.SubprocessError) with explicit timeout cleanly, and add stdlib unit tests in tests/test_probe_signed_zero.py

<!-- gh-comment-id:7192295032 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: PROBE-SIGNED-ZERO-CLI-SUBPROCESS-AND-VALIDATION - `runtime/test/shaders/probe_signed_zero.py`: add `main(argv=None)`, upfront harness path/file validation before `spirv-as`, catch `(OSError, subprocess.SubprocessError)` with explicit timeout cleanly, and add stdlib unit tests in `tests/test_probe_signed_zero.py`
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: PROBE-SIGNED-ZERO-CLI-SUBPROCESS-AND-VALIDATION -> #2284

<!-- gh-comment-id:7192330802 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: PROBE-SIGNED-ZERO-CLI-SUBPROCESS-AND-VALIDATION -> #2284
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: BCPACK-BPTC-STRICT-INT-VALIDATION-AND-BIT-BOUNDS - tools/bcpack_tables_bptc.py: reject bool, float, and malformed dict keys via _strict_int() and _iter_entries(), validate 0 <= cls <= 3 in load_bc6h() and endpoint/index bit depth bounds 0..8 / 0..4 in load_bc7(), and add unit tests in tests/test_bcpack_tables_bptc.py

<!-- gh-comment-id:7192331643 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: BCPACK-BPTC-STRICT-INT-VALIDATION-AND-BIT-BOUNDS - `tools/bcpack_tables_bptc.py`: reject `bool`, float, and malformed dict keys via `_strict_int()` and `_iter_entries()`, validate `0 <= cls <= 3` in `load_bc6h()` and endpoint/index bit depth bounds `0..8` / `0..4` in `load_bc7()`, and add unit tests in `tests/test_bcpack_tables_bptc.py`
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: BCPACK-BPTC-STRICT-INT-VALIDATION-AND-BIT-BOUNDS -> #2285

<!-- gh-comment-id:7192415821 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: BCPACK-BPTC-STRICT-INT-VALIDATION-AND-BIT-BOUNDS -> #2285
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: SHADER-STAGE-MANIFEST-CASE-SUFFIX-AND-CONFLICT-GUARD - tools/shader_stage_manifest.py: match suffix case-insensitively in _stem_rows(), treat conflicting duplicate stages for the same stem as None (ambiguous) instead of last-wins in shader_stages(), and add tests in tests/test_shader_stage_manifest.py

<!-- gh-comment-id:7192416492 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: SHADER-STAGE-MANIFEST-CASE-SUFFIX-AND-CONFLICT-GUARD - `tools/shader_stage_manifest.py`: match `suffix` case-insensitively in `_stem_rows()`, treat conflicting duplicate stages for the same stem as `None` (ambiguous) instead of last-wins in `shader_stages()`, and add tests in `tests/test_shader_stage_manifest.py`
Author
Owner

@DeadlyChirp commented on GitHub (Nov 26, 2026):

done: TEST-LEONIDA-TUI-SIGINT-LEAK -> #2286

<!-- gh-comment-id:7192426993 --> @DeadlyChirp commented on GitHub (Nov 26, 2026): done: TEST-LEONIDA-TUI-SIGINT-LEAK -> #2286
Author
Owner

@narekshaghoyandev commented on GitHub (Nov 26, 2026):

claiming: RT-DESC-RANGE-MERGE-ADJACENT — runtime/src/descriptor_range_changes.h: merge adjacent inclusive ranges in DescriptorRanges::merge() with UINT64_MAX overflow guard, skip inverted (first > last) ranges so lower_bound in overlaps() keeps its monotonic invariant, and add standalone C++20 unit test runtime/test/descriptor_range_changes_test.cpp registered in runtime/CMakeLists.txt. AI-assisted (Gemini).

<!-- gh-comment-id:7192440165 --> @narekshaghoyandev commented on GitHub (Nov 26, 2026): claiming: RT-DESC-RANGE-MERGE-ADJACENT — runtime/src/descriptor_range_changes.h: merge adjacent inclusive ranges in DescriptorRanges::merge() with UINT64_MAX overflow guard, skip inverted (first > last) ranges so lower_bound in overlaps() keeps its monotonic invariant, and add standalone C++20 unit test runtime/test/descriptor_range_changes_test.cpp registered in runtime/CMakeLists.txt. AI-assisted (Gemini).
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: SHADER-STAGE-MANIFEST-CASE-SUFFIX-AND-CONFLICT-GUARD -> #2287

<!-- gh-comment-id:7192450633 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: SHADER-STAGE-MANIFEST-CASE-SUFFIX-AND-CONFLICT-GUARD -> #2287
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: AB-CONTROL-FLOW-UPFRONT-OUT-AND-NAMES-EMPTY-GUARD - tools/ab_control_flow.py: reject empty/directory --harness, empty/missing --names, and bad/file out paths upfront before reading index.json, open .spvasm with utf-8-sig and OSError guard, and add unit tests in tests/test_ab_control_flow.py

<!-- gh-comment-id:7192453000 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: AB-CONTROL-FLOW-UPFRONT-OUT-AND-NAMES-EMPTY-GUARD - `tools/ab_control_flow.py`: reject empty/directory `--harness`, empty/missing `--names`, and bad/file `out` paths upfront before reading `index.json`, open `.spvasm` with `utf-8-sig` and `OSError` guard, and add unit tests in `tests/test_ab_control_flow.py`
Author
Owner

@DeadlyChirp commented on GitHub (Nov 26, 2026):

claiming: TOOLS-OSERROR-WINDOWS-PATH-TEXT: world_names, bink_names and opus_tags print str(OSError), which quotes the path with repr(), so on Windows every backslash is doubled ('C:\\Users\\...') and their unreadable-folder tests fail (test_an_unreadable_subtree_does_not_replace_the_dictionary, test_unreadable_mount_directory_preserves_the_report, test_cli_reports_incomplete_directory_discovery). Fix: print the path as written.

<!-- gh-comment-id:7192483187 --> @DeadlyChirp commented on GitHub (Nov 26, 2026): claiming: TOOLS-OSERROR-WINDOWS-PATH-TEXT: `world_names`, `bink_names` and `opus_tags` print `str(OSError)`, which quotes the path with `repr()`, so on Windows every backslash is doubled (`'C:\\Users\\...'`) and their unreadable-folder tests fail (`test_an_unreadable_subtree_does_not_replace_the_dictionary`, `test_unreadable_mount_directory_preserves_the_report`, `test_cli_reports_incomplete_directory_discovery`). Fix: print the path as written.
Author
Owner

@narekshaghoyandev commented on GitHub (Nov 26, 2026):

done: RT-DESC-RANGE-MERGE-ADJACENT -> #2288 AI-assisted (Gemini).

<!-- gh-comment-id:7192485800 --> @narekshaghoyandev commented on GitHub (Nov 26, 2026): done: RT-DESC-RANGE-MERGE-ADJACENT -> #2288 AI-assisted (Gemini).
Author
Owner

@narekshaghoyandev commented on GitHub (Nov 26, 2026):

claiming: RT-BUFFER-VA-INDEX-SIGNED-MAX-ID — runtime/src/buffer_va_index.h: use std::numeric_limits::max() instead of ~Id(0) in BufferVaIndex::max_id() so signed Id types do not evaluate to -1 and miss ranges starting at the queried VA in upper_bound(), and add regression coverage in runtime/test/buffer_va_index_test.cpp. AI-assisted (Gemini).

<!-- gh-comment-id:7192490144 --> @narekshaghoyandev commented on GitHub (Nov 26, 2026): claiming: RT-BUFFER-VA-INDEX-SIGNED-MAX-ID — runtime/src/buffer_va_index.h: use std::numeric_limits<Id>::max() instead of ~Id(0) in BufferVaIndex<Id>::max_id() so signed Id types do not evaluate to -1 and miss ranges starting at the queried VA in upper_bound(), and add regression coverage in runtime/test/buffer_va_index_test.cpp. AI-assisted (Gemini).
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: AB-CONTROL-FLOW-UPFRONT-OUT-AND-NAMES-EMPTY-GUARD -> #2289

<!-- gh-comment-id:7192515767 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: AB-CONTROL-FLOW-UPFRONT-OUT-AND-NAMES-EMPTY-GUARD -> #2289
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: GAMEDATA-SPS1-UPFRONT-JSON-ANCESTOR-AND-SHADERS-FILE-GUARD - tools/gamedata_sps1.py: walk existing ancestors of os.path.abspath(out_path) and os.path.realpath(out_path) in check_report_path() to catch non-directory/broken-symlink ancestors, reject directory/non-file --shaders and non-file/non-dir target upfront in main(), and add unit tests in tests/test_gamedata_sps1_atomic.py

<!-- gh-comment-id:7192516333 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: GAMEDATA-SPS1-UPFRONT-JSON-ANCESTOR-AND-SHADERS-FILE-GUARD - `tools/gamedata_sps1.py`: walk existing ancestors of `os.path.abspath(out_path)` and `os.path.realpath(out_path)` in `check_report_path()` to catch non-directory/broken-symlink ancestors, reject directory/non-file `--shaders` and non-file/non-dir `target` upfront in `main()`, and add unit tests in `tests/test_gamedata_sps1_atomic.py`
Author
Owner

@DeadlyChirp commented on GitHub (Nov 26, 2026):

(Posted by mistake; please ignore. The pull request for TOOLS-OSERROR-WINDOWS-PATH-TEXT is not open yet.)

<!-- gh-comment-id:7192524885 --> @DeadlyChirp commented on GitHub (Nov 26, 2026): (Posted by mistake; please ignore. The pull request for TOOLS-OSERROR-WINDOWS-PATH-TEXT is not open yet.)
Author
Owner

@narekshaghoyandev commented on GitHub (Nov 26, 2026):

done: RT-BUFFER-VA-INDEX-SIGNED-MAX-ID -> #2290 AI-assisted (Gemini).

<!-- gh-comment-id:7192527411 --> @narekshaghoyandev commented on GitHub (Nov 26, 2026): done: RT-BUFFER-VA-INDEX-SIGNED-MAX-ID -> #2290 AI-assisted (Gemini).
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: GAMEDATA-SPS1-UPFRONT-JSON-ANCESTOR-AND-SHADERS-FILE-GUARD -> #2291

<!-- gh-comment-id:7192549691 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: GAMEDATA-SPS1-UPFRONT-JSON-ANCESTOR-AND-SHADERS-FILE-GUARD -> #2291
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: INT-HW-PROBE-REALPATH-JSON-GUARD-AND-CLI-VALIDATION - tools/int_hw_probe.py: validate os.path.realpath() directory/ancestor targets in _validate_json_out(), reject --hw-arch with --oracle translator (exit 2), explicitly validate empty/whitespace --group values, and add tests in tests/test_int_hw_probe.py

<!-- gh-comment-id:7192551919 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: INT-HW-PROBE-REALPATH-JSON-GUARD-AND-CLI-VALIDATION - `tools/int_hw_probe.py`: validate `os.path.realpath()` directory/ancestor targets in `_validate_json_out()`, reject `--hw-arch` with `--oracle translator` (exit 2), explicitly validate empty/whitespace `--group` values, and add tests in `tests/test_int_hw_probe.py`
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: INT-HW-PROBE-REALPATH-JSON-GUARD-AND-CLI-VALIDATION -> #2293

<!-- gh-comment-id:7192589410 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: INT-HW-PROBE-REALPATH-JSON-GUARD-AND-CLI-VALIDATION -> #2293
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: SHADER-DIFF-DEDUP-OPS-AND-EMPTY-INPUT-GUARDS - tools/shader_diff.py: deduplicate --ops preserving order so repeats do not skew selection weight, reject negative n_ops and empty templates in generate_program(), reject invalid programs/max_ops/start/limit in run_suite(), and add stdlib unit tests in tests/test_shader_diff_exit.py

<!-- gh-comment-id:7192589921 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: SHADER-DIFF-DEDUP-OPS-AND-EMPTY-INPUT-GUARDS - `tools/shader_diff.py`: deduplicate `--ops` preserving order so repeats do not skew selection weight, reject negative `n_ops` and empty templates in `generate_program()`, reject invalid `programs`/`max_ops`/`start`/`limit` in `run_suite()`, and add stdlib unit tests in `tests/test_shader_diff_exit.py`
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: SHADER-DIFF-DEDUP-OPS-AND-EMPTY-INPUT-GUARDS -> #2294

<!-- gh-comment-id:7192644600 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: SHADER-DIFF-DEDUP-OPS-AND-EMPTY-INPUT-GUARDS -> #2294
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: CHECK-TINY-FRAME-CLI-TIMEOUT-BOM-AND-LINE-JOIN-SAFETY - runtime/test/check_tiny_frame.py: strip UTF-8 BOM in parse_trace()/check_output(), accept main(argv=None), validate loader/guest/--probe upfront (exit 2), handle (OSError, subprocess.TimeoutExpired) on subprocesses cleanly, join stdout/stderr with \n, fail exit 1 on unexpected --probe failures, and add tests in tests/test_check_tiny_frame.py

<!-- gh-comment-id:7192645242 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: CHECK-TINY-FRAME-CLI-TIMEOUT-BOM-AND-LINE-JOIN-SAFETY - `runtime/test/check_tiny_frame.py`: strip UTF-8 BOM in `parse_trace()`/`check_output()`, accept `main(argv=None)`, validate `loader`/`guest`/`--probe` upfront (exit 2), handle `(OSError, subprocess.TimeoutExpired)` on subprocesses cleanly, join stdout/stderr with `\n`, fail exit 1 on unexpected `--probe` failures, and add tests in `tests/test_check_tiny_frame.py`
Author
Owner

@star41905453-coder commented on GitHub (Nov 26, 2026):

done: CONSOLE-STREAM-ON-DEMAND-REREAD -> #2292

The deferred path now reads a console stream with the console's numbering (console-first; the PC-first rule stays on the eager path) and captures its record with the numbering taken, so LEONIDA_PIPELINE_COMPILE=on-demand no longer refuses every console PSO. d3d12_mesh_on_demand is the new ctest; on main it stops at the slot-86 console stream with E_NOTIMPL, now it passes.

PR is a draft because non-draft creation still answers 404 for this fork. on-demand is also the switch that carries #2234's extras, so the two together are what a title with console PSOs needs.

<!-- gh-comment-id:7192646509 --> @star41905453-coder commented on GitHub (Nov 26, 2026): done: CONSOLE-STREAM-ON-DEMAND-REREAD -> #2292 The deferred path now reads a console stream with the console's numbering (console-first; the PC-first rule stays on the eager path) and captures its record with the numbering taken, so `LEONIDA_PIPELINE_COMPILE=on-demand` no longer refuses every console PSO. `d3d12_mesh_on_demand` is the new ctest; on `main` it stops at the slot-86 console stream with E_NOTIMPL, now it passes. PR is a draft because non-draft creation still answers 404 for this fork. `on-demand` is also the switch that carries #2234's extras, so the two together are what a title with console PSOs needs.
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: CHECK-TINY-FRAME-CLI-TIMEOUT-BOM-AND-LINE-JOIN-SAFETY -> #2295

<!-- gh-comment-id:7192688017 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: CHECK-TINY-FRAME-CLI-TIMEOUT-BOM-AND-LINE-JOIN-SAFETY -> #2295
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: CHECK-SPARSE-QUEUE-FAMILY-LF-ARGV-AND-SORTED-TRACE - runtime/test/check_sparse_queue_family.py: add main(argv=None) -> int, write vk_layer_settings.txt with newline="\n", use sorted(path.glob("sparse_create_info.log*")), read traces with utf-8-sig, catch OSError in run_pass() raising AssertionError, and add tests in tests/test_check_sparse_queue_family.py

<!-- gh-comment-id:7192688642 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: CHECK-SPARSE-QUEUE-FAMILY-LF-ARGV-AND-SORTED-TRACE - `runtime/test/check_sparse_queue_family.py`: add `main(argv=None) -> int`, write `vk_layer_settings.txt` with `newline="\n"`, use `sorted(path.glob("sparse_create_info.log*"))`, read traces with `utf-8-sig`, catch `OSError` in `run_pass()` raising `AssertionError`, and add tests in `tests/test_check_sparse_queue_family.py`
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: CHECK-SPARSE-QUEUE-FAMILY-LF-ARGV-AND-SORTED-TRACE -> #2296

<!-- gh-comment-id:7192727606 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: CHECK-SPARSE-QUEUE-FAMILY-LF-ARGV-AND-SORTED-TRACE -> #2296
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: LINUX-BOOT-SH-MODE-TIMEOUT-PATH-AND-ARG-SAFETY - scripts/linux-boot/boot.sh: validate mode (dry-run|init|run), arg count, positive integer timeout SECS, $GTA6RT file and prerequisites before mkdir, support LEONIDA_OUT/LEONIDA_GAME_DIR/PYTHON3 overrides with LF-only preservation, and add unit tests in tests/test_linux_boot.py

<!-- gh-comment-id:7192730067 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: LINUX-BOOT-SH-MODE-TIMEOUT-PATH-AND-ARG-SAFETY - `scripts/linux-boot/boot.sh`: validate mode (`dry-run|init|run`), arg count, positive integer timeout `SECS`, `$GTA6RT` file and prerequisites before `mkdir`, support `LEONIDA_OUT`/`LEONIDA_GAME_DIR`/`PYTHON3` overrides with LF-only preservation, and add unit tests in `tests/test_linux_boot.py`
Author
Owner

@Ch1mpleo commented on GitHub (Nov 26, 2026):

claiming: ANIM-CLIPS-ATOMIC-JSON - write --out JSON atomically (preserving symlinks and permissions) in tools/anim_clips.py, with regression tests in tests/test_anim_clips.py. CPU-only, no game files. AI-assisted.

<!-- gh-comment-id:7192763047 --> @Ch1mpleo commented on GitHub (Nov 26, 2026): claiming: ANIM-CLIPS-ATOMIC-JSON - write --out JSON atomically (preserving symlinks and permissions) in tools/anim_clips.py, with regression tests in tests/test_anim_clips.py. CPU-only, no game files. AI-assisted.
Author
Owner

@Ch1mpleo commented on GitHub (Nov 26, 2026):

done: ANIM-CLIPS-ATOMIC-JSON -> #2297

<!-- gh-comment-id:7192790672 --> @Ch1mpleo commented on GitHub (Nov 26, 2026): done: ANIM-CLIPS-ATOMIC-JSON -> #2297
Author
Owner

@Ch1mpleo commented on GitHub (Nov 26, 2026):

claiming: FIRST-LIGHT-ATOMIC-MANIFEST - write manifest.json atomically (preserving symlinks and permissions) in tools/first_light.py, with regression tests in tests/test_first_light.py. CPU-only, no game files. AI-assisted.

<!-- gh-comment-id:7192791901 --> @Ch1mpleo commented on GitHub (Nov 26, 2026): claiming: FIRST-LIGHT-ATOMIC-MANIFEST - write manifest.json atomically (preserving symlinks and permissions) in tools/first_light.py, with regression tests in tests/test_first_light.py. CPU-only, no game files. AI-assisted.
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: LINUX-BOOT-SH-MODE-TIMEOUT-PATH-AND-ARG-SAFETY -> #2298

<!-- gh-comment-id:7192799850 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: LINUX-BOOT-SH-MODE-TIMEOUT-PATH-AND-ARG-SAFETY -> #2298
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: CHECK-MODULE-NAMES-ARGV-PREFLIGHT-BOM-AND-ATOMIC-REPORT - runtime/test/check_module_names.py: accept main(argv=None) -> int, upfront file/dir/report preflight before work_dir.mkdir (exit 2), handle OSError in run(), read JSONL trace with utf-8-sig, write --report atomically with trailing \n, return int(bool(failures)), and add unit tests in tests/test_check_module_names.py

<!-- gh-comment-id:7192800412 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: CHECK-MODULE-NAMES-ARGV-PREFLIGHT-BOM-AND-ATOMIC-REPORT - `runtime/test/check_module_names.py`: accept `main(argv=None) -> int`, upfront file/dir/report preflight before `work_dir.mkdir` (exit 2), handle `OSError` in `run()`, read JSONL trace with `utf-8-sig`, write `--report` atomically with trailing `\n`, return `int(bool(failures))`, and add unit tests in `tests/test_check_module_names.py`
Author
Owner

@Ch1mpleo commented on GitHub (Nov 26, 2026):

done: FIRST-LIGHT-ATOMIC-MANIFEST -> #2299

<!-- gh-comment-id:7192816121 --> @Ch1mpleo commented on GitHub (Nov 26, 2026): done: FIRST-LIGHT-ATOMIC-MANIFEST -> #2299
Author
Owner

@Zalthor commented on GitHub (Nov 26, 2026):

Verification batch 17: 10 open pull requests with tests and queued or no CI that nobody had verified in this issue (#850, #908, #910 and #2262–#2270), plus 8 that I'd verified earlier and that were force-pushed since (#895, #1013, #1423, #1446, #1659, #1733, #1749, #1876). Each diff (merge-base..head) was applied to its own clean worktree at main a73a57e13. Environment: Windows 10, CPU only, no game files, TEMP on C:. The python -I test files ran on CPython 3.12, as in CI's Windows job. AI-assisted (Claude Code). Same method as batches 1 to 16.

Summary: all 18 apply cleanly. #850 breaks 4 semantic test files that pass on main (below); the other 17 break no test. The four repo-wide checks pass with each one.

#850 (64-bit buffer addresses without Int64): 4 semantic files fail with it

The PR's own tests pass: 13 new tests in test_addr64_lowering.py and the files it changes. But with it applied (head c621105e6), the full semantic suite has 4 failed files out of 499. On main, each of these passes when run through the suite runner, and each fails with the PR when run the same way:

File Failing test Assertion
test_vsharp_sext48.py test_negative_base_and_carry_out_of_bit_47 len(extended) is 0, not 2
test_salu_chained_const_prop.py test_chained_propagation_and_folding OpShiftLeftLogical %uint now appears in the output
test_wave32_lane_select.py test_mask_63_is_undefined 4 not greater than or equal to 5
test_lds_subword_d16.py test_negative_controls_spirv_in_memory unexpectedly None

The PR is already based on current main (a73a57e13), and all four files exist there, so this isn't a stale branch. Some of these tests may only check the old 64-bit SPIR-V shape, which the new lowering changes, rather than behaviour. Either way, they need to be reconciled with the change (or updated in it) before it can merge.

New tests fail on unpatched main and pass with the change

#850, #895, #908, #910, #1013, #1423, #1446, #1659, #1749, #2262, #2263, #2264, #2265, #2266, #2269, #2270.

  • make_game PRs #1013 and #1446: with each one applied, all 50 make_game-related test files pass on 3.12. For #1446, test_make_game_argparse.py and test_make_game_platform.py hit the 900 s timeout in the parallel run. Both passed when re-run alone.

  • #1749 (run_semantic_tests: fail workers that exit without a result): its new test passes. tests/test_run_semantic_tests.py as a whole stays red with it, but only because of test_serial_interrupt_returns_130_and_prints_interrupted, which already fails on main on Windows (batch 15).

Change existing tests only (no new test functions)

  • #1876 (Windows fcntl load failure): still needed at its new head. On main, python -I tests/test_run_game_wine.py still stops with ModuleNotFoundError: No module named 'fcntl' on Windows. With the PR, the file loads and skips cleanly.
  • #1733 (test_lds_src2: feed llvm-mc through stdin): passes with and without the change. The case it targets (a WSL LLVM_MC) doesn't arise here.

#1923 was force-pushed again while this batch ran, so it's left out here and will be in the next batch.

Not covered: no Linux or macOS run, no runtime (C++) build, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.

<!-- gh-comment-id:7192838643 --> @Zalthor commented on GitHub (Nov 26, 2026): Verification batch 17: 10 open pull requests with tests and queued or no CI that nobody had verified in this issue (#850, #908, #910 and #2262–#2270), plus 8 that I'd verified earlier and that were force-pushed since (#895, #1013, #1423, #1446, #1659, #1733, #1749, #1876). Each diff (merge-base..head) was applied to its own clean worktree at `main` `a73a57e13`. Environment: Windows 10, CPU only, no game files, `TEMP` on `C:`. The `python -I` test files ran on CPython 3.12, as in CI's Windows job. AI-assisted (Claude Code). Same method as batches [1](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157070042) to [16](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7191368216). **Summary: all 18 apply cleanly. #850 breaks 4 semantic test files that pass on `main` (below); the other 17 break no test.** The four repo-wide checks pass with each one. ### #850 (64-bit buffer addresses without Int64): 4 semantic files fail with it The PR's own tests pass: 13 new tests in `test_addr64_lowering.py` and the files it changes. But with it applied (head `c621105e6`), the full semantic suite has 4 failed files out of 499. On `main`, each of these passes when run through the suite runner, and each fails with the PR when run the same way: | File | Failing test | Assertion | |---|---|---| | `test_vsharp_sext48.py` | `test_negative_base_and_carry_out_of_bit_47` | `len(extended)` is 0, not 2 | | `test_salu_chained_const_prop.py` | `test_chained_propagation_and_folding` | `OpShiftLeftLogical %uint` now appears in the output | | `test_wave32_lane_select.py` | `test_mask_63_is_undefined` | `4 not greater than or equal to 5` | | `test_lds_subword_d16.py` | `test_negative_controls_spirv_in_memory` | `unexpectedly None` | The PR is already based on current `main` (`a73a57e13`), and all four files exist there, so this isn't a stale branch. Some of these tests may only check the old 64-bit SPIR-V shape, which the new lowering changes, rather than behaviour. Either way, they need to be reconciled with the change (or updated in it) before it can merge. ### New tests fail on unpatched `main` and pass with the change #850, #895, #908, #910, #1013, #1423, #1446, #1659, #1749, #2262, #2263, #2264, #2265, #2266, #2269, #2270. - **`make_game` PRs #1013 and #1446:** with each one applied, all 50 `make_game`-related test files pass on 3.12. For #1446, `test_make_game_argparse.py` and `test_make_game_platform.py` hit the 900 s timeout in the parallel run. Both passed when re-run alone. - **#1749** (`run_semantic_tests`: fail workers that exit without a result): its new test passes. `tests/test_run_semantic_tests.py` as a whole stays red with it, but only because of `test_serial_interrupt_returns_130_and_prints_interrupted`, which already fails on `main` on Windows ([batch 15](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7190270503)). ### Change existing tests only (no new test functions) - **#1876** (Windows `fcntl` load failure): still needed at its new head. On `main`, `python -I tests/test_run_game_wine.py` still stops with `ModuleNotFoundError: No module named 'fcntl'` on Windows. With the PR, the file loads and skips cleanly. - **#1733** (`test_lds_src2`: feed `llvm-mc` through stdin): passes with and without the change. The case it targets (a WSL `LLVM_MC`) doesn't arise here. **#1923** was force-pushed again while this batch ran, so it's left out here and will be in the next batch. Not covered: no Linux or macOS run, no runtime (C++) build, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: CHECK-MODULE-NAMES-ARGV-PREFLIGHT-BOM-AND-ATOMIC-REPORT -> #2300

<!-- gh-comment-id:7192862405 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: CHECK-MODULE-NAMES-ARGV-PREFLIGHT-BOM-AND-ATOMIC-REPORT -> #2300
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: CHECK-ARGV-MODES-ARGV-TIMEOUT-WIN-ENV-AND-ATOMIC-REPORT - runtime/test/check_argv_modes.py: accept main(argv=None) -> int, catch (OSError, subprocess.TimeoutExpired) in run(), strip LEONIDA_GAME_DIR/LEONIDA_ARGV_SEQUENCE case-insensitively on Windows via _strip_env_keys(), preflight executable/dir/--report paths (exit 2), write --report atomically, and add unit tests in tests/test_check_argv_modes.py

<!-- gh-comment-id:7192863145 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: CHECK-ARGV-MODES-ARGV-TIMEOUT-WIN-ENV-AND-ATOMIC-REPORT - `runtime/test/check_argv_modes.py`: accept `main(argv=None) -> int`, catch `(OSError, subprocess.TimeoutExpired)` in `run()`, strip `LEONIDA_GAME_DIR`/`LEONIDA_ARGV_SEQUENCE` case-insensitively on Windows via `_strip_env_keys()`, preflight executable/dir/`--report` paths (exit 2), write `--report` atomically, and add unit tests in `tests/test_check_argv_modes.py`
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: CHECK-ARGV-MODES-ARGV-TIMEOUT-WIN-ENV-AND-ATOMIC-REPORT -> #2301

<!-- gh-comment-id:7192926750 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: CHECK-ARGV-MODES-ARGV-TIMEOUT-WIN-ENV-AND-ATOMIC-REPORT -> #2301
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: DSTORAGE-VECTORS-CLI-USAGE-AND-ATOMIC-WRITE - runtime/test/dstorage_vectors.py: add argparse main(argv=None) -> int with upfront output path validation before write(), write output atomically via write_file_atomic() with sibling temp, POSIX mode preservation, and Windows replace retry, and add tests in tests/test_dstorage_vectors.py

<!-- gh-comment-id:7192927392 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: DSTORAGE-VECTORS-CLI-USAGE-AND-ATOMIC-WRITE - `runtime/test/dstorage_vectors.py`: add `argparse` `main(argv=None) -> int` with upfront output path validation before `write()`, write output atomically via `write_file_atomic()` with sibling temp, POSIX mode preservation, and Windows replace retry, and add tests in `tests/test_dstorage_vectors.py`
Author
Owner

@Sangonapou commented on GitHub (Nov 26, 2026):

SHADER-F16-SPECIAL-RESULTS (claimed above) is done and tested on branch Sangonapou/leonida-continued:f16-special-results (b2d69cfc): new semantic test fails on main db1a22d2 and passes on the branch, semantic suite 492 files 0 failed, RTX 3080 Ti / NVIDIA 621.24 GPU check 8/16 → 16/16. The pull request opens as soon as my open one (#1231) is merged, per the one-open-PR rule; the claim still stands. AI-assisted.

<!-- gh-comment-id:7192944914 --> @Sangonapou commented on GitHub (Nov 26, 2026): SHADER-F16-SPECIAL-RESULTS (claimed above) is done and tested on branch `Sangonapou/leonida-continued:f16-special-results` (`b2d69cfc`): new semantic test fails on `main` `db1a22d2` and passes on the branch, semantic suite 492 files 0 failed, RTX 3080 Ti / NVIDIA 621.24 GPU check 8/16 → 16/16. The pull request opens as soon as my open one (#1231) is merged, per the one-open-PR rule; the claim still stands. AI-assisted.
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: DSTORAGE-VECTORS-CLI-USAGE-AND-ATOMIC-WRITE -> #2302

<!-- gh-comment-id:7193005057 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: DSTORAGE-VECTORS-CLI-USAGE-AND-ATOMIC-WRITE -> #2302
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: F16-REF-NEGATIVE-ZERO-SIGN-AND-MASK-SAFETY - Preserve negative-zero sign on exact -0.0/underflow/scale and mask 16-bit inputs in tests/semantic/f16_ref.py

<!-- gh-comment-id:7193007298 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: F16-REF-NEGATIVE-ZERO-SIGN-AND-MASK-SAFETY - Preserve negative-zero sign on exact -0.0/underflow/scale and mask 16-bit inputs in tests/semantic/f16_ref.py
Author
Owner

@narekshaghoyandev commented on GitHub (Nov 26, 2026):

claiming: RT-PIPELINE-JOURNAL-NULL-AND-KIND — runtime/src/pipeline_cache_journal.h: guard nullptr in Hasher::bytes(), handle nullptr/empty or long kind strings in entry_path() without truncation or UB, and add regression tests in runtime/test/pipeline_cache_journal_test.cpp. AI-assisted (Gemini).

<!-- gh-comment-id:7193017383 --> @narekshaghoyandev commented on GitHub (Nov 26, 2026): claiming: RT-PIPELINE-JOURNAL-NULL-AND-KIND — runtime/src/pipeline_cache_journal.h: guard nullptr in Hasher::bytes(), handle nullptr/empty or long kind strings in entry_path() without truncation or UB, and add regression tests in runtime/test/pipeline_cache_journal_test.cpp. AI-assisted (Gemini).
Author
Owner

@kawaii-shakal commented on GitHub (Nov 26, 2026):

finding: a fatal fault's report (#2276) prints only to stderr, without the registers or the host, so it is gone once the console closes; a ready but Windows-untested branch adds both and a crash log file (RT-CRASH-LOG)

Where: runtime/src/thread_stacks.cpp, rt::print_fault_stacks, as added by #2276. It is called from
save_caches_on_fatal_exception in runtime/src/main.cpp.

Why it matters: the report from #2276 (the fault as module+RVA, the faulting thread's chain, the other threads)
goes to stderr only. Run from a shortcut or from boot.ps1 without a log, it is lost when the window closes. It also
lacks things you need to read a fault:

  • the faulting context's registers: with module+RVA alone you can't tell which pointer was bad;
  • the host: Windows build and CPU brand. Intel or AMD decides which Zen 2 instructions are emulated
    (cpu_emulation.h);
  • what an exception other than an access violation carries. A C++ throw (0xE06D7363) names its type in its throw
    info, and an in-page error carries the status that failed the read.

What is already written: branch crash-log in kawaii-shakal/leonida, commit 4be68530, on top of #2276:
github.com/kawaii-shakal/leonida@4be68530

  • src/crash_report.h, pure and portable: registers, exception parameters (including the C++ throw's type), the host
    line, a dated header per report, and the LEONIDA_CRASH_LOG choice. Its test, crash_report_test, passes on
    Linux.
  • thread_stacks.cpp: fills these from the EXCEPTION_RECORD and CONTEXT. CPUID gives the CPU brand and
    RtlGetVersion the Windows build. The C++ throw's type is read under __try. The whole report is appended to
    %LOCALAPPDATA%\Leonida\crashes.log with CreateFileW, WriteFile and FlushFileBuffers only.
    LEONIDA_CRASH_LOG names another file, and 0 turns the file off.
  • thread_stacks_test.cpp points the crash log at a temporary file and checks that the registers, the host line and
    the whole report end up in it.
  • The new variable is documented in runtime/README.md.

What is needed: Windows and MSVC, no game files. The Windows half has never been compiled: I have no Windows
machine to test on any more. Someone with one should build it, run the tests below, fix what MSVC refuses, and open
the PR with Depends on: #2276:

cmake --build runtime/build --config RelWithDebInfo --target thread_stacks_test crash_report_test
ctest --test-dir runtime/build -C RelWithDebInfo -R "thread_stacks|crash_report" --output-on-failure

The idea of the crash log, registers and host line comes from Marvisak/VIctory (crates/victory-loader/src/crash.rs,
GPL-3.0). None of its code is used. Free to take: I'm not claiming RT-CRASH-LOG.

AI-assisted: the branch and this finding were written by Claude Code.


Generated by Claude Code

<!-- gh-comment-id:7193044882 --> @kawaii-shakal commented on GitHub (Nov 26, 2026): finding: a fatal fault's report (#2276) prints only to stderr, without the registers or the host, so it is gone once the console closes; a ready but Windows-untested branch adds both and a crash log file (RT-CRASH-LOG) **Where:** `runtime/src/thread_stacks.cpp`, `rt::print_fault_stacks`, as added by #2276. It is called from `save_caches_on_fatal_exception` in `runtime/src/main.cpp`. **Why it matters:** the report from #2276 (the fault as `module+RVA`, the faulting thread's chain, the other threads) goes to stderr only. Run from a shortcut or from `boot.ps1` without a log, it is lost when the window closes. It also lacks things you need to read a fault: - the faulting context's registers: with `module+RVA` alone you can't tell which pointer was bad; - the host: Windows build and CPU brand. Intel or AMD decides which Zen 2 instructions are emulated (`cpu_emulation.h`); - what an exception other than an access violation carries. A C++ throw (0xE06D7363) names its type in its throw info, and an in-page error carries the status that failed the read. **What is already written:** branch `crash-log` in kawaii-shakal/leonida, commit 4be68530, on top of #2276: https://github.com/kawaii-shakal/leonida/commit/4be68530 - `src/crash_report.h`, pure and portable: registers, exception parameters (including the C++ throw's type), the host line, a dated header per report, and the `LEONIDA_CRASH_LOG` choice. Its test, `crash_report_test`, passes on Linux. - `thread_stacks.cpp`: fills these from the EXCEPTION_RECORD and CONTEXT. CPUID gives the CPU brand and `RtlGetVersion` the Windows build. The C++ throw's type is read under `__try`. The whole report is appended to `%LOCALAPPDATA%\Leonida\crashes.log` with `CreateFileW`, `WriteFile` and `FlushFileBuffers` only. `LEONIDA_CRASH_LOG` names another file, and `0` turns the file off. - `thread_stacks_test.cpp` points the crash log at a temporary file and checks that the registers, the host line and the whole report end up in it. - The new variable is documented in `runtime/README.md`. **What is needed:** Windows and MSVC, no game files. The Windows half has **never been compiled**: I have no Windows machine to test on any more. Someone with one should build it, run the tests below, fix what MSVC refuses, and open the PR with `Depends on: #2276`: cmake --build runtime/build --config RelWithDebInfo --target thread_stacks_test crash_report_test ctest --test-dir runtime/build -C RelWithDebInfo -R "thread_stacks|crash_report" --output-on-failure The idea of the crash log, registers and host line comes from Marvisak/VIctory (`crates/victory-loader/src/crash.rs`, GPL-3.0). None of its code is used. Free to take: I'm not claiming RT-CRASH-LOG. AI-assisted: the branch and this finding were written by Claude Code. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: F16-REF-NEGATIVE-ZERO-SIGN-AND-MASK-SAFETY -> #2303

<!-- gh-comment-id:7193108349 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: F16-REF-NEGATIVE-ZERO-SIGN-AND-MASK-SAFETY -> #2303
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: LINUX-BOOT-INNER-AND-CONFIGURE-WORKTREE-SAFETY - Harden scripts/linux-boot/boot-inner.sh and configure-worktree.sh with arg/env validation, safe cgroup/array handling, and unit tests

<!-- gh-comment-id:7193109369 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: LINUX-BOOT-INNER-AND-CONFIGURE-WORKTREE-SAFETY - Harden scripts/linux-boot/boot-inner.sh and configure-worktree.sh with arg/env validation, safe cgroup/array handling, and unit tests
Author
Owner

@Tyrannys commented on GitHub (Nov 26, 2026):

claiming: RT-CRASH-LOG (Windows build and PR, finishing kawaii-shakal's crash-log branch 4be68530)

Thanks @kawaii-shakal for the branch and the write-up. I'll keep your commits as they are, build the Windows half with MSVC, fix only what it refuses in separate commits, run thread_stacks_test and crash_report_test, and open the PR with Depends on: #2276.

AI-assisted (Claude Code)

<!-- gh-comment-id:7193120655 --> @Tyrannys commented on GitHub (Nov 26, 2026): claiming: RT-CRASH-LOG (Windows build and PR, finishing kawaii-shakal's crash-log branch 4be68530) Thanks @kawaii-shakal for the branch and the write-up. I'll keep your commits as they are, build the Windows half with MSVC, fix only what it refuses in separate commits, run `thread_stacks_test` and `crash_report_test`, and open the PR with `Depends on: #2276`. AI-assisted (Claude Code)
Author
Owner

@ecox982745 commented on GitHub (Nov 26, 2026):

done: RT-BARY-FALLBACK-MIXED-DISTANCES -> #2304 (draft, depends on #1930).

This carries ZroIsHere's original commit from mrgenty/leonida#1, with independent RTX 4090 verification. The upstream draft tracks the rebase with #1930. Original claim

<!-- gh-comment-id:7193146235 --> @ecox982745 commented on GitHub (Nov 26, 2026): done: RT-BARY-FALLBACK-MIXED-DISTANCES -> #2304 (draft, depends on #1930). This carries ZroIsHere's original commit from [mrgenty/leonida#1](https://github.com/mrgenty/leonida/pull/1), with independent RTX 4090 verification. The upstream draft tracks the rebase with #1930. [Original claim](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7178530779)
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: LINUX-BOOT-INNER-AND-CONFIGURE-WORKTREE-SAFETY -> #2305

<!-- gh-comment-id:7193214409 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: LINUX-BOOT-INNER-AND-CONFIGURE-WORKTREE-SAFETY -> #2305
Author
Owner

@Tyrannys commented on GitHub (Nov 26, 2026):

@kawaii-shakal your crash-log branch is up as #2306, your commits unchanged (Depends on: #2276). Good news: MSVC 19.52 took the Windows half as written, with no errors and no warnings in those files at /W4, so no fixes were needed. thread_stacks_test and crash_report_test pass. A real unhandled access violation and an unhandled C++ throw both land in %LOCALAPPDATA%\Leonida\crashes.log (the throw with its type name), and LEONIDA_CRASH_LOG=0 writes no file. Thanks for the clean branch.

AI-assisted (Claude Code)

<!-- gh-comment-id:7193245509 --> @Tyrannys commented on GitHub (Nov 26, 2026): @kawaii-shakal your `crash-log` branch is up as #2306, your commits unchanged (`Depends on: #2276`). Good news: MSVC 19.52 took the Windows half as written, with no errors and no warnings in those files at /W4, so no fixes were needed. `thread_stacks_test` and `crash_report_test` pass. A real unhandled access violation and an unhandled C++ throw both land in `%LOCALAPPDATA%\Leonida\crashes.log` (the throw with its type name), and `LEONIDA_CRASH_LOG=0` writes no file. Thanks for the clean branch. AI-assisted (Claude Code)
Author
Owner

@Tyrannys commented on GitHub (Nov 26, 2026):

done: RT-CRASH-LOG -> #2306

AI-assisted (Claude Code)

<!-- gh-comment-id:7193245996 --> @Tyrannys commented on GitHub (Nov 26, 2026): done: RT-CRASH-LOG -> #2306 AI-assisted (Claude Code)
Author
Owner

@Zalthor commented on GitHub (Nov 26, 2026):

Verification batch 18: 23 open pull requests with tests and queued or no CI that nobody had verified in this issue (#1990 and #2272–#2300), plus 3 that were force-pushed since I verified them (#1923, #2220, #2260). Each diff (merge-base..head) was applied to its own clean worktree at main 73516a290. Environment: Windows 10, CPU only, no game files, TEMP on C:. The python -I test files ran on CPython 3.12, as in CI's Windows job. AI-assisted (Claude Code). Same method as batches 1 to 17.

Summary: all 26 apply cleanly. #1990 breaks an existing semantic test, and #2273's own new test fails on any OS (both below). The other 24 break no test. The four repo-wide checks pass with each one. On main 73516a290, the full semantic suite has 0 failed files and all 50 make_game-related test files pass.

#1990 (VCC data sources on the 64-bit path): breaks test_wave64_emulate_opt.py

Its own new tests in test_salu64_vcc_data_src.py pass with it. On main they fail, with 51 failures. But with it applied (head 74031f03c), the full semantic suite has 1 failed file. Run alone through the suite runner, test_wave64_emulate_opt.py passes twice on main and fails twice with the PR:

  • test_negative_live_in_pair_and_unmasked_vcc_scc_not_folded (LocalExecFoldTests): AssertionError: 1 not greater than or equal to 2

That test is already in the PR's merge base (a73a57e13), so the PR breaks an existing test rather than one added after it branched.

#2273 (inline_scan: validate --base): its new test fails

test_negative_base_and_oserror_return_2 calls inline_scan.main([path, "--base", "-0x1000"]) and expects the new "non-negative" error. But argparse treats -0x1000 as an option string, because it isn't a plain negative decimal number. So parsing stops first with argument --base: expected one argument, and the PR's validation never runs. The test fails with the PR. This is argparse behaviour, not Windows-specific, so CI should see it on every platform.

Passing the value as "--base=-0x1000" in the test would reach the new check. The other 2 new tests pass.

New tests fail on unpatched main and pass with the change

#1923, #1990, #2220, #2260, #2272, #2274, #2278, #2279, #2280, #2281, #2282, #2284, #2285, #2287, #2289, #2291, #2293, #2294, #2295, #2296, #2297, #2298, #2299, #2300.

  • #1923 (build llvm-mc 23.1.5 by default), re-tested at its newest head: all 50 make_game-related test files pass on 3.12. Its 4 changed test files fail on main and pass with it.

Tests that already pass on main

#2286: its new test passes on main too.

Not covered: no Linux or macOS run, no runtime (C++) build, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.

<!-- gh-comment-id:7193409176 --> @Zalthor commented on GitHub (Nov 26, 2026): Verification batch 18: 23 open pull requests with tests and queued or no CI that nobody had verified in this issue (#1990 and #2272–#2300), plus 3 that were force-pushed since I verified them (#1923, #2220, #2260). Each diff (merge-base..head) was applied to its own clean worktree at `main` `73516a290`. Environment: Windows 10, CPU only, no game files, `TEMP` on `C:`. The `python -I` test files ran on CPython 3.12, as in CI's Windows job. AI-assisted (Claude Code). Same method as batches [1](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157070042) to [17](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7192838643). **Summary: all 26 apply cleanly. #1990 breaks an existing semantic test, and #2273's own new test fails on any OS (both below). The other 24 break no test.** The four repo-wide checks pass with each one. On `main` `73516a290`, the full semantic suite has 0 failed files and all 50 `make_game`-related test files pass. ### #1990 (VCC data sources on the 64-bit path): breaks `test_wave64_emulate_opt.py` Its own new tests in `test_salu64_vcc_data_src.py` pass with it. On `main` they fail, with 51 failures. But with it applied (head `74031f03c`), the full semantic suite has 1 failed file. Run alone through the suite runner, `test_wave64_emulate_opt.py` passes twice on `main` and fails twice with the PR: - `test_negative_live_in_pair_and_unmasked_vcc_scc_not_folded` (`LocalExecFoldTests`): `AssertionError: 1 not greater than or equal to 2` That test is already in the PR's merge base (`a73a57e13`), so the PR breaks an existing test rather than one added after it branched. ### #2273 (`inline_scan`: validate `--base`): its new test fails `test_negative_base_and_oserror_return_2` calls `inline_scan.main([path, "--base", "-0x1000"])` and expects the new "non-negative" error. But `argparse` treats `-0x1000` as an option string, because it isn't a plain negative decimal number. So parsing stops first with `argument --base: expected one argument`, and the PR's validation never runs. The test fails with the PR. This is `argparse` behaviour, not Windows-specific, so CI should see it on every platform. Passing the value as `"--base=-0x1000"` in the test would reach the new check. The other 2 new tests pass. ### New tests fail on unpatched `main` and pass with the change #1923, #1990, #2220, #2260, #2272, #2274, #2278, #2279, #2280, #2281, #2282, #2284, #2285, #2287, #2289, #2291, #2293, #2294, #2295, #2296, #2297, #2298, #2299, #2300. - **#1923** (build `llvm-mc` 23.1.5 by default), re-tested at its newest head: all 50 `make_game`-related test files pass on 3.12. Its 4 changed test files fail on `main` and pass with it. ### Tests that already pass on `main` **#2286:** its new test passes on `main` too. Not covered: no Linux or macOS run, no runtime (C++) build, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.
Author
Owner

@whoalin1 commented on GitHub (Nov 26, 2026):

consolidation note (whoalin1): reduced the open review surface from 37 to 28 by folding small related follow-ups into their primary PRs. #2194 was fast-forwarded into #2154 exactly; #2202 into #2196 exactly; #2209/#2217 were cherry-picked into #2208; #2212/#2213 into #2205; #1467 into #1449; #2206 into #2203. #2221 was closed in favor of the older tested #1022. No new feature code was written during consolidation; the surviving branches remain mergeable. AI-assisted with Devin.

<!-- gh-comment-id:7193419117 --> @whoalin1 commented on GitHub (Nov 26, 2026): consolidation note (whoalin1): reduced the open review surface from 37 to 28 by folding small related follow-ups into their primary PRs. #2194 was fast-forwarded into #2154 exactly; #2202 into #2196 exactly; #2209/#2217 were cherry-picked into #2208; #2212/#2213 into #2205; #1467 into #1449; #2206 into #2203. #2221 was closed in favor of the older tested #1022. No new feature code was written during consolidation; the surviving branches remain mergeable. AI-assisted with Devin.
Author
Owner

@qhukz13 commented on GitHub (Nov 26, 2026):

finding: the wave64-emulated mesh control flow does not hang on the CPU model. Every loop shape I tried, including never-ending ones, ends under the loop guard and gives the ISA's values. So the world-load hang in VS-as-MS draws (HasiKe, fiestorra above) is more likely a loop that ends, but only after up to 65,536 visits per loop. That would be a slow shader rather than a scheduler deadlock, and one cheap run tells the two apart.

What I ran. CPU only, no GPU, no game data, on main a73a57e13. These are hand-written NGG mesh listings with 128 threads, i.e. 2 waves: GS_ALLOC_REQ, an s_barrier, a loop, then the exports. I translated them with --wave64-emulate, in both the default form and the forced round-loop form (STRUCTURED = False, the emulated wave64 rounds the hanging draws report). Each workgroup ran in spirv_mini_interp.run_workgroup with 32-wide subgroups. That interpreter raises on an OpControlBarrier or subgroup op that not every invocation reaches at the same point, and on a runaway loop. I compared every thread's exported position with a model of the ISA.

  1. Loops that end match in both forms:

    • waterfall v_readfirstlane / s_and_saveexec / s_xor exec loops, including ones decided only by lanes 32-63;
    • execnz and v_cmpx latches;
    • loops closed by a whole-wave VCC vote, including a block that is only the vote, and two votes chained;
    • SCC loops over a ballot count;
    • a loop with s_barrier and LDS traffic inside;
    • a whole wave skipping to s_endpgm.

    The cases that matter most for a scheduler deadlock are the four loops whose trip count differs between the two waves:

    • a vote-closed loop;
    • one with v_readfirstlane in the body;
    • an SGPR loop from the wave id with v_mbcnt inside;
    • an execnz loop with s_bcnt1 of EXEC inside.

    They also match, with no non-uniform barrier.

  2. tools/cf_diff.py's generated programs (FUZZ-8 shapes, depth 3 and 4) were wrapped as the same 2-wave mesh shader and compared lane by lane with cf_ref. That was 1,200 programs (seeds 11-14, 300 each), each in three forms: default, forced rounds, and default without the extra s_barrier. 3,600 runs, 1,410 of them in the rounds form: 3,600 match, 0 mismatches, 0 non-uniform barriers, 0 runaway loops, 0 skipped.

  3. Never-ending loops (--loop-limit 40) all stop, in both forms, and the work grows linearly with the limit (20 / 40 / 80). There is no product of two counters:

    • a vote loop that is always true;
    • an execnz loop that never narrows;
    • an SGPR loop;
    • a v_readfirstlane loop;
    • a loop around s_barrier;
    • a loop that is infinite only for wave 1, with a vote inside and with s_barrier inside.

One difference worth knowing. When the guard stops the round loop itself, the invocation leaves without running the rest of its program, so its vertex is never exported (position 0 in the interpreter). In the structured form the same loop exits at the limit and the export still runs. It does not hang, but in the rounds form a guarded draw comes out empty instead of wrong.

So the cheap check for whoever has the hang: translate just the two programs HasiKe named (TransformTerrainNormalTint_e74ae427, TransformD_c5fd36bb) with --loop-limit 256 and boot the same recipe.

  • The TDR goes away (geometry may look wrong): one of their loops runs to its guard. 65,536 visits per loop per invocation, in a VS that runs for every vertex of the terrain, is far past the 2 s TDR even though it terminates. The next step is then the loop's trip count: what it is read from, and why it is huge. #2183's --loop-total would also bound it, minus the scheduler-barrier issue djrolfes raised there.
  • The TDR stays: it is not iteration count in the translated code, and the per-wave control flow above is unlikely too. The input data or the indirect mesh arguments HasiKe mentioned come next.

The same check fits quartz-heron-58's run above, where the loss went away when one more compute program was dropped: translate only that program with --loop-limit 256.

The harness is about 300 lines of test-local Python (harness.py, cases.py, meshfuzz.py). I can put it up as a semantic test if it is useful.

No game data. AI-assisted (Claude Code).

<!-- gh-comment-id:7193487275 --> @qhukz13 commented on GitHub (Nov 26, 2026): finding: the wave64-emulated mesh control flow does not hang on the CPU model. Every loop shape I tried, including never-ending ones, ends under the loop guard and gives the ISA's values. So the world-load hang in VS-as-MS draws (HasiKe, fiestorra above) is more likely a loop that *ends*, but only after up to 65,536 visits per loop. That would be a slow shader rather than a scheduler deadlock, and one cheap run tells the two apart. **What I ran.** CPU only, no GPU, no game data, on main `a73a57e13`. These are hand-written NGG mesh listings with 128 threads, i.e. 2 waves: `GS_ALLOC_REQ`, an `s_barrier`, a loop, then the exports. I translated them with `--wave64-emulate`, in both the default form and the forced round-loop form (`STRUCTURED = False`, the `emulated wave64 rounds` the hanging draws report). Each workgroup ran in `spirv_mini_interp.run_workgroup` with 32-wide subgroups. That interpreter raises on an `OpControlBarrier` or subgroup op that not every invocation reaches at the same point, and on a runaway loop. I compared every thread's exported position with a model of the ISA. 1. **Loops that end** match in both forms: - waterfall `v_readfirstlane` / `s_and_saveexec` / `s_xor exec` loops, including ones decided only by lanes 32-63; - `execnz` and `v_cmpx` latches; - loops closed by a whole-wave VCC vote, including a block that is only the vote, and two votes chained; - SCC loops over a ballot count; - a loop with `s_barrier` and LDS traffic inside; - a whole wave skipping to `s_endpgm`. The cases that matter most for a scheduler deadlock are the four loops whose trip count **differs between the two waves**: - a vote-closed loop; - one with `v_readfirstlane` in the body; - an SGPR loop from the wave id with `v_mbcnt` inside; - an `execnz` loop with `s_bcnt1` of EXEC inside. They also match, with no non-uniform barrier. 2. **`tools/cf_diff.py`'s generated programs** (FUZZ-8 shapes, depth 3 and 4) were wrapped as the same 2-wave mesh shader and compared lane by lane with `cf_ref`. That was 1,200 programs (seeds 11-14, 300 each), each in three forms: default, forced rounds, and default without the extra `s_barrier`. 3,600 runs, 1,410 of them in the rounds form: **3,600 match, 0 mismatches, 0 non-uniform barriers, 0 runaway loops, 0 skipped**. 3. **Never-ending loops** (`--loop-limit 40`) all stop, in both forms, and the work grows linearly with the limit (20 / 40 / 80). There is no product of two counters: - a vote loop that is always true; - an `execnz` loop that never narrows; - an SGPR loop; - a `v_readfirstlane` loop; - a loop around `s_barrier`; - a loop that is infinite **only for wave 1**, with a vote inside and with `s_barrier` inside. **One difference worth knowing.** When the guard stops the round loop itself, the invocation leaves without running the rest of its program, so its vertex is never exported (position 0 in the interpreter). In the structured form the same loop exits at the limit and the export still runs. It does not hang, but in the rounds form a guarded draw comes out empty instead of wrong. **So the cheap check for whoever has the hang:** translate just the two programs HasiKe named (`TransformTerrainNormalTint_e74ae427`, `TransformD_c5fd36bb`) with `--loop-limit 256` and boot the same recipe. - **The TDR goes away** (geometry may look wrong): one of their loops runs to its guard. 65,536 visits per loop per invocation, in a VS that runs for every vertex of the terrain, is far past the 2 s TDR even though it terminates. The next step is then the loop's trip count: what it is read from, and why it is huge. #2183's `--loop-total` would also bound it, minus the scheduler-barrier issue djrolfes raised there. - **The TDR stays:** it is not iteration count in the translated code, and the per-wave control flow above is unlikely too. The input data or the indirect mesh arguments HasiKe mentioned come next. The same check fits quartz-heron-58's run above, where the loss went away when one more compute program was dropped: translate only that program with `--loop-limit 256`. The harness is about 300 lines of test-local Python (`harness.py`, `cases.py`, `meshfuzz.py`). I can put it up as a semantic test if it is useful. No game data. AI-assisted (Claude Code).
Author
Owner

@narekshaghoyandev commented on GitHub (Nov 26, 2026):

done: RT-PIPELINE-JOURNAL-NULL-AND-KIND -> #2307 AI-assisted (Gemini).

<!-- gh-comment-id:7193551807 --> @narekshaghoyandev commented on GitHub (Nov 26, 2026): done: RT-PIPELINE-JOURNAL-NULL-AND-KIND -> #2307 AI-assisted (Gemini).
Author
Owner

@narekshaghoyandev commented on GitHub (Nov 26, 2026):

claiming: RT-VULKAN-DEVICE-MARKERS-BOUNDS-AND-UNMAP — clamp memoryTypeCount to VK_MAX_MEMORY_TYPES, guard null get/device/MarkerTarget and unmapped vkUnmapMemory in vulkan_device_markers.h. AI-assisted (Gemini).

<!-- gh-comment-id:7193601247 --> @narekshaghoyandev commented on GitHub (Nov 26, 2026): claiming: RT-VULKAN-DEVICE-MARKERS-BOUNDS-AND-UNMAP — clamp memoryTypeCount to VK_MAX_MEMORY_TYPES, guard null get/device/MarkerTarget and unmapped vkUnmapMemory in vulkan_device_markers.h. AI-assisted (Gemini).
Author
Owner

@narekshaghoyandev commented on GitHub (Nov 26, 2026):

done: RT-VULKAN-DEVICE-MARKERS-BOUNDS-AND-UNMAP -> #2308 AI-assisted (Gemini).

<!-- gh-comment-id:7193647399 --> @narekshaghoyandev commented on GitHub (Nov 26, 2026): done: RT-VULKAN-DEVICE-MARKERS-BOUNDS-AND-UNMAP -> #2308 AI-assisted (Gemini).
Author
Owner

@narekshaghoyandev commented on GitHub (Nov 26, 2026):

claiming: RT-INDIRECT-DRAW-STATS-BOUNDS-AND-NULL — guard null FILE* in Counts::report and out-of-range Event in note()/skip() in runtime/src/indirect_draw_stats.h, with unit tests. AI-assisted (Gemini).

<!-- gh-comment-id:7193658432 --> @narekshaghoyandev commented on GitHub (Nov 26, 2026): claiming: RT-INDIRECT-DRAW-STATS-BOUNDS-AND-NULL — guard null FILE* in Counts::report and out-of-range Event in note()/skip() in runtime/src/indirect_draw_stats.h, with unit tests. AI-assisted (Gemini).
Author
Owner

@narekshaghoyandev commented on GitHub (Nov 26, 2026):

done: RT-INDIRECT-DRAW-STATS-BOUNDS-AND-NULL -> #2309 AI-assisted (Gemini).

<!-- gh-comment-id:7193687265 --> @narekshaghoyandev commented on GitHub (Nov 26, 2026): done: RT-INDIRECT-DRAW-STATS-BOUNDS-AND-NULL -> #2309 AI-assisted (Gemini).
Author
Owner

@narekshaghoyandev commented on GitHub (Nov 26, 2026):

claiming: RT-QUEUE-FAMILIES-SLOT-MAX — fix pick_queue_slot returning SIZE_MAX when all non-empty pool slots have UINT32_MAX users in runtime/src/queue_families.h, with unit tests. AI-assisted (Gemini).

<!-- gh-comment-id:7193699762 --> @narekshaghoyandev commented on GitHub (Nov 26, 2026): claiming: RT-QUEUE-FAMILIES-SLOT-MAX — fix pick_queue_slot returning SIZE_MAX when all non-empty pool slots have UINT32_MAX users in runtime/src/queue_families.h, with unit tests. AI-assisted (Gemini).
Author
Owner

@real-rusher commented on GitHub (Nov 26, 2026):

dropping: TOOL-STAGE-TIMELINE-TESTS, a duplicate of #1789; #2232 is closed.

<!-- gh-comment-id:7193715985 --> @real-rusher commented on GitHub (Nov 26, 2026): dropping: TOOL-STAGE-TIMELINE-TESTS, a duplicate of #1789; #2232 is closed.
Author
Owner

@narekshaghoyandev commented on GitHub (Nov 26, 2026):

done: RT-QUEUE-FAMILIES-SLOT-MAX -> #2310 AI-assisted (Gemini).

<!-- gh-comment-id:7193723206 --> @narekshaghoyandev commented on GitHub (Nov 26, 2026): done: RT-QUEUE-FAMILIES-SLOT-MAX -> #2310 AI-assisted (Gemini).
Author
Owner

@narekshaghoyandev commented on GitHub (Nov 26, 2026):

claiming: RT-DEV-STATUS-NULL-NAME — guard nullptr in Builds::name() / Build() in runtime/src/dev_status.h, with unit tests. AI-assisted (Gemini).

<!-- gh-comment-id:7193761192 --> @narekshaghoyandev commented on GitHub (Nov 26, 2026): claiming: RT-DEV-STATUS-NULL-NAME — guard nullptr in Builds::name() / Build() in runtime/src/dev_status.h, with unit tests. AI-assisted (Gemini).
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: INLINE-SCAN-COPY-BEFORE-LOAD - tools/inline_scan.py classify() walks back from a cursor store-back and accepts the load mov rax,[rcx+18h] only if rcx is already known to hold the list. When this is copied first (mov rbx,rcx, then the load through rcx, the shape test_list_copied_to_another_register_is_followed uses for a checked write), the walk meets the load before the copy, so an unchecked write of that shape is reported as unrelated and the summary says "UNCHECKED 0", the false-clean answer the day-one check in docs/design.md relies on. Check the load's base after the walk instead. Synthetic dumpbin-style listings; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7193762634 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: INLINE-SCAN-COPY-BEFORE-LOAD - tools/inline_scan.py `classify()` walks back from a cursor store-back and accepts the load `mov rax,[rcx+18h]` only if rcx is already known to hold the list. When `this` is copied first (`mov rbx,rcx`, then the load through rcx, the shape test_list_copied_to_another_register_is_followed uses for a checked write), the walk meets the load before the copy, so an unchecked write of that shape is reported as `unrelated` and the summary says "UNCHECKED 0", the false-clean answer the day-one check in docs/design.md relies on. Check the load's base after the walk instead. Synthetic dumpbin-style listings; no game files, no GPU. AI-assisted.
Author
Owner

@Zalthor commented on GitHub (Nov 26, 2026):

Verification batch 19: 4 open pull requests with tests and queued or no CI that nobody had verified in this issue (#2301, #2302, #2303, #2305), plus 6 that were force-pushed since I verified them (#1930, #2154, #2196, #2203, #2205, #2208). Each diff (merge-base..head) was applied to its own clean worktree at main 73516a290. Environment: Windows 10, CPU only, no game files, TEMP on C:. The python -I test files ran on CPython 3.12, as in CI's Windows job. AI-assisted (Claude Code). Same method as batches 1 to 18.

Summary: all 10 apply cleanly, and none breaks a test. The four repo-wide checks pass with each one.

New tests fail on unpatched main and pass with the change

#1930, #2154, #2196, #2203, #2205, #2208, #2301, #2302, #2303, #2305.

  • #1930 (--bary-fallback computed I/J, re-tested at its new head): the full semantic suite has 0 failed files (498 files, 6,357 tests), and all 50 make_game-related test files pass on 3.12. Its semantic file fails only when run on its own, outside the suite runner (support import).

  • #2154 (cache shader stages per carve root): full semantic suite, 0 failed files.

  • #2208 (make_game crash-report handling): all 50 make_game-related test files pass on 3.12.

  • #2305 (linux_boot inner/configure tests): in the parallel run, 1 of its new tests failed under pytest after 46 s. Re-run alone, the file passes under both pytest (4 passed) and python -I on 3.12.

Still red on main on Windows

tests/test_run_semantic_tests.py still fails on the new main 73516a290. test_serial_interrupt_returns_130_and_prints_interrupted took 11.95 s against its 5 s bound (batch 15 has the details).

Not covered: no Linux or macOS run, no runtime (C++) build, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.

<!-- gh-comment-id:7193784543 --> @Zalthor commented on GitHub (Nov 26, 2026): Verification batch 19: 4 open pull requests with tests and queued or no CI that nobody had verified in this issue (#2301, #2302, #2303, #2305), plus 6 that were force-pushed since I verified them (#1930, #2154, #2196, #2203, #2205, #2208). Each diff (merge-base..head) was applied to its own clean worktree at `main` `73516a290`. Environment: Windows 10, CPU only, no game files, `TEMP` on `C:`. The `python -I` test files ran on CPython 3.12, as in CI's Windows job. AI-assisted (Claude Code). Same method as batches [1](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157070042) to [18](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7193409176). **Summary: all 10 apply cleanly, and none breaks a test.** The four repo-wide checks pass with each one. ### New tests fail on unpatched `main` and pass with the change #1930, #2154, #2196, #2203, #2205, #2208, #2301, #2302, #2303, #2305. - **#1930** (`--bary-fallback` computed I/J, re-tested at its new head): the full semantic suite has 0 failed files (498 files, 6,357 tests), and all 50 `make_game`-related test files pass on 3.12. Its semantic file fails only when run on its own, outside the suite runner (`support` import). - **#2154** (cache shader stages per carve root): full semantic suite, 0 failed files. - **#2208** (`make_game` crash-report handling): all 50 `make_game`-related test files pass on 3.12. - **#2305** (`linux_boot` inner/configure tests): in the parallel run, 1 of its new tests failed under pytest after 46 s. Re-run alone, the file passes under both pytest (4 passed) and `python -I` on 3.12. ### Still red on `main` on Windows `tests/test_run_semantic_tests.py` still fails on the new `main` `73516a290`. `test_serial_interrupt_returns_130_and_prints_interrupted` took 11.95 s against its 5 s bound ([batch 15](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7190270503) has the details). Not covered: no Linux or macOS run, no runtime (C++) build, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.
Author
Owner

@narekshaghoyandev commented on GitHub (Nov 26, 2026):

done: RT-DEV-STATUS-NULL-NAME -> #2313 AI-assisted (Gemini).

<!-- gh-comment-id:7193785466 --> @narekshaghoyandev commented on GitHub (Nov 26, 2026): done: RT-DEV-STATUS-NULL-NAME -> #2313 AI-assisted (Gemini).
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: HW-ORACLE-ASM-GFX12-RAW-LOAD-AND-KERNEL-WAVE-METADATA - Fix GFX12 raw-kernel scalar load mnemonic, per-kernel .wavefront_size metadata, and Kernel argument validation in tools/hw_oracle/asm.py

<!-- gh-comment-id:7193821284 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: HW-ORACLE-ASM-GFX12-RAW-LOAD-AND-KERNEL-WAVE-METADATA - Fix GFX12 raw-kernel scalar load mnemonic, per-kernel .wavefront_size metadata, and Kernel argument validation in tools/hw_oracle/asm.py
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: INLINE-SCAN-COPY-BEFORE-LOAD -> #2318 (draft while #2084 is open: one non-draft PR per account)

<!-- gh-comment-id:7193824478 --> @syfyra commented on GitHub (Nov 26, 2026): done: INLINE-SCAN-COPY-BEFORE-LOAD -> #2318 (draft while #2084 is open: one non-draft PR per account)
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: CALIBRATED-TEXTURE-NPOT-DDS - tools/calibrated_texture.py LocalDecoder.dds writes each mip's stored block grid under a DDS header. For NPOT chains the stored grid is wider or taller than the DDS mip (17x13 BC1 stores its 8x6 mip 1 as 3x2 blocks, DDS holds 2x2), so the payload is too long and every later mip is shifted; in the mode-1 array branch the DDS width is used as the tile pitch, so rows past the first tile row come from the wrong tile. Read on the stored grid and crop to the DDS grid, as ttpf_mips._visible_rows does for the regular export. Synthetic pools only; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7193838373 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: CALIBRATED-TEXTURE-NPOT-DDS - tools/calibrated_texture.py `LocalDecoder.dds` writes each mip's stored block grid under a DDS header. For NPOT chains the stored grid is wider or taller than the DDS mip (17x13 BC1 stores its 8x6 mip 1 as 3x2 blocks, DDS holds 2x2), so the payload is too long and every later mip is shifted; in the mode-1 array branch the DDS width is used as the tile pitch, so rows past the first tile row come from the wrong tile. Read on the stored grid and crop to the DDS grid, as ttpf_mips._visible_rows does for the regular export. Synthetic pools only; no game files, no GPU. AI-assisted.
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: HW-ORACLE-ASM-GFX12-RAW-LOAD-AND-KERNEL-WAVE-METADATA -> #2326

<!-- gh-comment-id:7193869785 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: HW-ORACLE-ASM-GFX12-RAW-LOAD-AND-KERNEL-WAVE-METADATA -> #2326
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: HW-ORACLE-DRM-ELF-BOUNDS-TIMEOUT-AND-TEMP-CLEANUP - Validate ELF64 section/symbol/descriptor bounds, bound subprocess timeouts, and clean temp binaries on failure in tools/hw_oracle/drm.py

<!-- gh-comment-id:7193870891 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: HW-ORACLE-DRM-ELF-BOUNDS-TIMEOUT-AND-TEMP-CLEANUP - Validate ELF64 section/symbol/descriptor bounds, bound subprocess timeouts, and clean temp binaries on failure in tools/hw_oracle/drm.py
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: CALIBRATED-TEXTURE-NPOT-DDS -> #2325 (draft while #2084 is open: one non-draft PR per account)

<!-- gh-comment-id:7193872600 --> @syfyra commented on GitHub (Nov 26, 2026): done: CALIBRATED-TEXTURE-NPOT-DDS -> #2325 (draft while #2084 is open: one non-draft PR per account)
Author
Owner

@Zalthor commented on GitHub (Nov 26, 2026):

Verification batch 20: the last 2 open pull requests that change Python code, have queued CI, and that nobody had verified in this issue: #2072 and #2198. Both are mainly runtime (C++) changes, and each adds a Python check script without tests. Each diff (merge-base..head) was applied to its own clean worktree at main 73516a290. Environment: Windows 10, CPU only, no game files. AI-assisted (Claude Code). Same method as batches 1 to 19.

Summary: both apply cleanly, compile, and pass the game-data check, but both turn tests/test_tool_stdout_encoding.py red. That check passes on main.

PR New script flagged by test_every_main_block_reconfigures_stdout
#2072 (d3d12: name compute modules for selective GPU validation) scripts/check_compute_gpuav_selection.py
#2198 (runtime: verify offline compute pipeline journal hits) scripts/check_precompile_verify.py

In each case the new script's __main__ block doesn't set errors='replace' on stdout, as every other tool does. This is the same issue as #1253 in batch 16. Adding the stdout reconfigure fixes it.

Not covered: the C++ side of both PRs needs a runtime build, which I didn't do. No Linux or macOS run, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.

<!-- gh-comment-id:7193874548 --> @Zalthor commented on GitHub (Nov 26, 2026): Verification batch 20: the last 2 open pull requests that change Python code, have queued CI, and that nobody had verified in this issue: #2072 and #2198. Both are mainly runtime (C++) changes, and each adds a Python check script without tests. Each diff (merge-base..head) was applied to its own clean worktree at `main` `73516a290`. Environment: Windows 10, CPU only, no game files. AI-assisted (Claude Code). Same method as batches [1](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157070042) to [19](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7193784543). **Summary: both apply cleanly, compile, and pass the game-data check, but both turn `tests/test_tool_stdout_encoding.py` red.** That check passes on `main`. | PR | New script flagged by `test_every_main_block_reconfigures_stdout` | |---|---| | #2072 (d3d12: name compute modules for selective GPU validation) | `scripts/check_compute_gpuav_selection.py` | | #2198 (runtime: verify offline compute pipeline journal hits) | `scripts/check_precompile_verify.py` | In each case the new script's `__main__` block doesn't set `errors='replace'` on stdout, as every other tool does. This is the same issue as #1253 in [batch 16](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7191368216). Adding the stdout reconfigure fixes it. Not covered: the C++ side of both PRs needs a runtime build, which I didn't do. No Linux or macOS run, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.
Author
Owner

@narekshaghoyandev commented on GitHub (Nov 26, 2026):

claiming: RT-DEV-OVERLAY-PHASE-FOR-OVERFLOW — avoid float-to-int overflow UB when formatting large or non-finite phase_for in dev_overlay::lines() in runtime/src/dev_overlay.h. AI-assisted (Gemini).

<!-- gh-comment-id:7193877669 --> @narekshaghoyandev commented on GitHub (Nov 26, 2026): claiming: RT-DEV-OVERLAY-PHASE-FOR-OVERFLOW — avoid float-to-int overflow UB when formatting large or non-finite phase_for in dev_overlay::lines() in runtime/src/dev_overlay.h. AI-assisted (Gemini).
Author
Owner

@narekshaghoyandev commented on GitHub (Nov 26, 2026):

done: RT-DEV-OVERLAY-PHASE-FOR-OVERFLOW -> #2327 AI-assisted (Gemini).

<!-- gh-comment-id:7193920852 --> @narekshaghoyandev commented on GitHub (Nov 26, 2026): done: RT-DEV-OVERLAY-PHASE-FOR-OVERFLOW -> #2327 AI-assisted (Gemini).
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: HW-ORACLE-DRM-ELF-BOUNDS-TIMEOUT-AND-TEMP-CLEANUP -> #2328

<!-- gh-comment-id:7193933402 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: HW-ORACLE-DRM-ELF-BOUNDS-TIMEOUT-AND-TEMP-CLEANUP -> #2328
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: RUN-GAME-WINE-UPPERCASE-DEVICE-INNER-BASH-AND-SUMMARY-EXIT - Harden scripts/run_game_wine.sh (--inner arg checks, WINESERVER resolution, case-insensitive PCI match, #!/usr/bin/env bash inner script, lock parent creation, and summary exit propagation)

<!-- gh-comment-id:7193935612 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: RUN-GAME-WINE-UPPERCASE-DEVICE-INNER-BASH-AND-SUMMARY-EXIT - Harden scripts/run_game_wine.sh (--inner arg checks, WINESERVER resolution, case-insensitive PCI match, #!/usr/bin/env bash inner script, lock parent creation, and summary exit propagation)
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: VIEWER-OVERVIEW-MAP - the map viewer (viewer/index.html) has no way to see where the world's chunks are, or to reach a far one, except by flying there. A new M key opens a top-down overview drawn from the chunk bounds in world.json (not loaded, loading, loaded, failed), with the camera's position and heading; a click on it moves the camera there and the wheel zooms it. Synthetic Node tests in a new tests/test_viewer_map.cjs, so the open pull requests on tests/test_viewer_streaming.cjs are not touched; no game files or GPU. AI-assisted.

<!-- gh-comment-id:7193940963 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: VIEWER-OVERVIEW-MAP - the map viewer (`viewer/index.html`) has no way to see where the world's chunks are, or to reach a far one, except by flying there. A new `M` key opens a top-down overview drawn from the chunk bounds in `world.json` (not loaded, loading, loaded, failed), with the camera's position and heading; a click on it moves the camera there and the wheel zooms it. Synthetic Node tests in a new `tests/test_viewer_map.cjs`, so the open pull requests on `tests/test_viewer_streaming.cjs` are not touched; no game files or GPU. AI-assisted.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: VIEWER-FOLLOW-CAM-LINK - viewer/index.html reads the camera link (#cam=x,y,z,yaw,pitch) once at startup. A link pasted into the address bar of a tab that already shows the viewer, or Back/Forward between two links, changes only the hash, so the page does not reload and the camera stays where it was (the VIEWER-HUNT finding listed this as an untested edge). Apply the hash again on hashchange; a hash that is not a camera link is ignored, as at startup. Node test plus a check in Chromium; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7193948329 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: VIEWER-FOLLOW-CAM-LINK - viewer/index.html reads the camera link (#cam=x,y,z,yaw,pitch) once at startup. A link pasted into the address bar of a tab that already shows the viewer, or Back/Forward between two links, changes only the hash, so the page does not reload and the camera stays where it was (the VIEWER-HUNT finding listed this as an untested edge). Apply the hash again on hashchange; a hash that is not a camera link is ignored, as at startup. Node test plus a check in Chromium; no game files, no GPU. AI-assisted.
Author
Owner

@narekshaghoyandev commented on GitHub (Nov 26, 2026):

claiming: TOOLS-POOL-WORKERS-NONE-JOBS — handle jobs=None in tools/pool_workers.py:process_workers() without TypeError when MAX_PROCESS_WORKERS is set. AI-assisted (Gemini).

<!-- gh-comment-id:7193958665 --> @narekshaghoyandev commented on GitHub (Nov 26, 2026): claiming: TOOLS-POOL-WORKERS-NONE-JOBS — handle jobs=None in tools/pool_workers.py:process_workers() without TypeError when MAX_PROCESS_WORKERS is set. AI-assisted (Gemini).
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: STUDIO-MODEL-DETAILS - viewer/studio.html shows a model's triangles, vertices and file size, but not what checking an export needs next: its size in scene units (metres for glTF), how many meshes and materials it has, and which textures each material uses at what resolution. Add those to the stats panel (dimensions, counts, a collapsible material list that marks materials without any texture), read from the loaded glTF only, with RU/EU strings, and node tests on synthetic objects in tests/test_viewer_studio.cjs. Feature, not a fix; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7193990202 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: STUDIO-MODEL-DETAILS - viewer/studio.html shows a model's triangles, vertices and file size, but not what checking an export needs next: its size in scene units (metres for glTF), how many meshes and materials it has, and which textures each material uses at what resolution. Add those to the stats panel (dimensions, counts, a collapsible material list that marks materials without any texture), read from the loaded glTF only, with RU/EU strings, and node tests on synthetic objects in tests/test_viewer_studio.cjs. Feature, not a fix; no game files, no GPU. AI-assisted.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: VIEWER-FOLLOW-CAM-LINK -> #2329 (draft)

<!-- gh-comment-id:7193991477 --> @syfyra commented on GitHub (Nov 26, 2026): done: VIEWER-FOLLOW-CAM-LINK -> #2329 (draft)
Author
Owner

@narekshaghoyandev commented on GitHub (Nov 26, 2026):

done: TOOLS-POOL-WORKERS-NONE-JOBS -> #2330 AI-assisted (Gemini).

<!-- gh-comment-id:7193994396 --> @narekshaghoyandev commented on GitHub (Nov 26, 2026): done: TOOLS-POOL-WORKERS-NONE-JOBS -> #2330 AI-assisted (Gemini).
Author
Owner

@narekshaghoyandev commented on GitHub (Nov 26, 2026):

claiming: RT-KEYBOARD-PAD-RETRY-UNDERFLOW — guard b.now() < failed_at_ unsigned underflow in KeyboardPadConnection::update() in runtime/shims/keyboard_pad_connection.h. AI-assisted (Gemini).

<!-- gh-comment-id:7194009753 --> @narekshaghoyandev commented on GitHub (Nov 26, 2026): claiming: RT-KEYBOARD-PAD-RETRY-UNDERFLOW — guard b.now() < failed_at_ unsigned underflow in KeyboardPadConnection::update() in runtime/shims/keyboard_pad_connection.h. AI-assisted (Gemini).
Author
Owner

@narekshaghoyandev commented on GitHub (Nov 26, 2026):

releasing: RT-KEYBOARD-PAD-RETRY-UNDERFLOW — uint64_t rollover in b.now() - failed_at_ is intentional and explicitly covered by elapsed_clock_rollover() in runtime/test/keyboard_pad_retry_test.cpp; no change needed. AI-assisted (Gemini).

<!-- gh-comment-id:7194020007 --> @narekshaghoyandev commented on GitHub (Nov 26, 2026): releasing: RT-KEYBOARD-PAD-RETRY-UNDERFLOW — uint64_t rollover in b.now() - failed_at_ is intentional and explicitly covered by elapsed_clock_rollover() in runtime/test/keyboard_pad_retry_test.cpp; no change needed. AI-assisted (Gemini).
Author
Owner

@real-rusher commented on GitHub (Nov 26, 2026):

claiming: GPU-RTXPRO3000-ARL-WIN: gpu-test-results for the NVIDIA RTX PRO 3000 Blackwell Generation Laptop GPU and the Intel Arrow Lake iGPU (Core Ultra 9 285HX) on Windows 10, full run_gpu_tests.py suite native and LEONIDA_W64_EMULATE=1 with locally built Vulkan test programs (gpu-test-results/). AI-assisted: yes (Claude Code).

<!-- gh-comment-id:7194021837 --> @real-rusher commented on GitHub (Nov 26, 2026): claiming: GPU-RTXPRO3000-ARL-WIN: gpu-test-results for the NVIDIA RTX PRO 3000 Blackwell Generation Laptop GPU and the Intel Arrow Lake iGPU (Core Ultra 9 285HX) on Windows 10, full run_gpu_tests.py suite native and LEONIDA_W64_EMULATE=1 with locally built Vulkan test programs (gpu-test-results/). AI-assisted: yes (Claude Code).
Author
Owner

@narekshaghoyandev commented on GitHub (Nov 26, 2026):

claiming: RT-TITLE-IMAGE-CENSUS-NULL-GUARDS — guard null registry entries and null resource pointers in log_title_image_uses() and use stable_sort for deterministic tie-breaking in runtime/shims/d3d12_title_image_census.h, with unit tests. AI-assisted (Gemini).

<!-- gh-comment-id:7194035099 --> @narekshaghoyandev commented on GitHub (Nov 26, 2026): claiming: RT-TITLE-IMAGE-CENSUS-NULL-GUARDS — guard null registry entries and null resource pointers in log_title_image_uses() and use stable_sort for deterministic tie-breaking in runtime/shims/d3d12_title_image_census.h, with unit tests. AI-assisted (Gemini).
Author
Owner

@narekshaghoyandev commented on GitHub (Nov 26, 2026):

done: RT-TITLE-IMAGE-CENSUS-NULL-GUARDS -> #2331 AI-assisted (Gemini).

<!-- gh-comment-id:7194068226 --> @narekshaghoyandev commented on GitHub (Nov 26, 2026): done: RT-TITLE-IMAGE-CENSUS-NULL-GUARDS -> #2331 AI-assisted (Gemini).
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: RUN-GAME-WINE-UPPERCASE-DEVICE-INNER-BASH-AND-SUMMARY-EXIT -> #2332

<!-- gh-comment-id:7194082804 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: RUN-GAME-WINE-UPPERCASE-DEVICE-INNER-BASH-AND-SUMMARY-EXIT -> #2332
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: MERGE-CHECK-OPTION-INJECTION-BOUNDS-AND-GIT-TIMEOUT - Harden scripts/merge_check.py against git option injection in refs, reject nonpositive --depth/--min-length/PR numbers, add git subprocess timeouts, and add unit tests

<!-- gh-comment-id:7194083451 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: MERGE-CHECK-OPTION-INJECTION-BOUNDS-AND-GIT-TIMEOUT - Harden scripts/merge_check.py against git option injection in refs, reject nonpositive --depth/--min-length/PR numbers, add git subprocess timeouts, and add unit tests
Author
Owner

@narekshaghoyandev commented on GitHub (Nov 26, 2026):

claiming: RT-VULKAN-MEMORY-BUDGET-SATURATE — use saturating uint64_t addition in sum_vram_budget() in runtime/src/vulkan_memory_budget.h so multi-heap sums cannot wrap local_budget to 0 or overflow usage counters, with unit tests. AI-assisted (Gemini).

<!-- gh-comment-id:7194106445 --> @narekshaghoyandev commented on GitHub (Nov 26, 2026): claiming: RT-VULKAN-MEMORY-BUDGET-SATURATE — use saturating uint64_t addition in sum_vram_budget() in runtime/src/vulkan_memory_budget.h so multi-heap sums cannot wrap local_budget to 0 or overflow usage counters, with unit tests. AI-assisted (Gemini).
Author
Owner

@HasiKe commented on GitHub (Nov 26, 2026):

@qhukz13, I ran your --loop-limit check. The TDR stays, so iteration count in the translated loops is not the cause. AI-assisted (Claude Code).

Translation:

  • I took the 174 programs behind the two names (TransformTerrainNormalTint_e74ae427 and TransformD_c5fd36bb, every ~N variant) from my work folder.
  • I translated them with the translator these shaders were built with, 71a769d7d, using --no-asm --wave64-emulate. A baseline translation without the limit is byte-identical to the shipped .spv for all 174, so the flags match.
  • With --loop-limit 256, all 174 change and all pass spirv-val. Their index entries are identical.
  • I swapped the 174 .spv files into the game's shader folder for one boot and restored them afterwards, checked by hash.

Boot: RTX 2070 SUPER, NVIDIA 616.56. Runtime main a73a57e13 + #2195 + #2233 + #2275, plus my local LEONIDA_SKIP_GRAPHICS patch, unset here. The same cold recipe as before: no caches, LEONIDA_ASYNC_PIPELINES=1, LEONIDA_COMPILE_GATE=0, LEONIDA_DEVICE_FAULT=2.

Result:

  • Device loss: at t=157.5 s. vkDeviceWaitIdle saw a fence counter of UINT64_MAX, and nvlddmkm 153 came in the same minute. That is earlier than the two unlimited boots (226 s and 249.7 s), but one run each, so I would not read anything into the timing.
  • Direct queue: top-of-pipe and bottom-of-pipe both name submission 5020, list 15, command 29, a draw. Its pipeline is again _MS_VS_TransformD_c5fd36bb_Wrapped~23 + %PS_DeferredTextured_c5fd36bb_Wrapped~1, now with the loop-limited VS.
  • Fault addresses: 10 instruction-pointer addresses of type 4. There is no READ_INVALID.
  • New this time: two compute queues also have checkpoints. Both sit at the same dispatch, command 16 of library/lib_cs_01468, in submissions 5022 and 5023, with top-of-pipe and bottom-of-pipe equal. That is either a second stuck program or work waiting on the stuck draw. One run can't tell them apart.

So, by your own split: no loop in these VS-as-MS programs runs long enough to cause this, even after the guard caps every loop at 256 visits. What is left is input data or the mesh draw's arguments.

The next cheap check is whether those draws are indirect: DispatchMesh versus ExecuteIndirect with mesh records, and whether the clamp pass touches them. After that, whether lib_cs_01468 writes what they read. I'll look at the indirect question next.

Logs stay local; they name game shaders.

<!-- gh-comment-id:7194136534 --> @HasiKe commented on GitHub (Nov 26, 2026): @qhukz13, I ran your [`--loop-limit` check](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7193487275). **The TDR stays**, so iteration count in the translated loops is not the cause. AI-assisted (Claude Code). **Translation:** - I took the 174 programs behind the two names (`TransformTerrainNormalTint_e74ae427` and `TransformD_c5fd36bb`, every `~N` variant) from my work folder. - I translated them with the translator these shaders were built with, `71a769d7d`, using `--no-asm --wave64-emulate`. A baseline translation without the limit is byte-identical to the shipped `.spv` for all 174, so the flags match. - With `--loop-limit 256`, all 174 change and all pass `spirv-val`. Their index entries are identical. - I swapped the 174 `.spv` files into the game's shader folder for one boot and restored them afterwards, checked by hash. **Boot:** RTX 2070 SUPER, NVIDIA 616.56. Runtime `main` `a73a57e13` + #2195 + #2233 + #2275, plus my local `LEONIDA_SKIP_GRAPHICS` patch, unset here. The same cold recipe as before: no caches, `LEONIDA_ASYNC_PIPELINES=1`, `LEONIDA_COMPILE_GATE=0`, `LEONIDA_DEVICE_FAULT=2`. **Result:** - **Device loss:** at t=157.5 s. `vkDeviceWaitIdle` saw a fence counter of UINT64_MAX, and `nvlddmkm` 153 came in the same minute. That is earlier than the two unlimited boots (226 s and 249.7 s), but one run each, so I would not read anything into the timing. - **Direct queue:** top-of-pipe and bottom-of-pipe both name submission 5020, list 15, command 29, a draw. Its pipeline is again `_MS_VS_TransformD_c5fd36bb_Wrapped~23` + `%PS_DeferredTextured_c5fd36bb_Wrapped~1`, now with the loop-limited VS. - **Fault addresses:** 10 instruction-pointer addresses of type 4. There is no READ_INVALID. - **New this time:** two compute queues also have checkpoints. Both sit at the same dispatch, command 16 of `library/lib_cs_01468`, in submissions 5022 and 5023, with top-of-pipe and bottom-of-pipe equal. That is either a second stuck program or work waiting on the stuck draw. One run can't tell them apart. **So, by your own split:** no loop in these VS-as-MS programs runs long enough to cause this, even after the guard caps every loop at 256 visits. What is left is input data or the mesh draw's arguments. The next cheap check is whether those draws are indirect: `DispatchMesh` versus `ExecuteIndirect` with mesh records, and whether the clamp pass touches them. After that, whether `lib_cs_01468` writes what they read. I'll look at the indirect question next. Logs stay local; they name game shaders.
Author
Owner

@narekshaghoyandev commented on GitHub (Nov 26, 2026):

done: RT-VULKAN-MEMORY-BUDGET-SATURATE -> #2333 AI-assisted (Gemini).

<!-- gh-comment-id:7194143541 --> @narekshaghoyandev commented on GitHub (Nov 26, 2026): done: RT-VULKAN-MEMORY-BUDGET-SATURATE -> #2333 AI-assisted (Gemini).
Author
Owner

@narekshaghoyandev commented on GitHub (Nov 26, 2026):

claiming: RT-PIPELINE-WAIT-SIGNED-SUB-AND-WINDOW — guard non-positive within_ns and signed int64_t subtraction overflow UB in title_submitting() in runtime/src/pipeline_wait.h, with unit tests. AI-assisted (Gemini).

<!-- gh-comment-id:7194149264 --> @narekshaghoyandev commented on GitHub (Nov 26, 2026): claiming: RT-PIPELINE-WAIT-SIGNED-SUB-AND-WINDOW — guard non-positive within_ns and signed int64_t subtraction overflow UB in title_submitting() in runtime/src/pipeline_wait.h, with unit tests. AI-assisted (Gemini).
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: MERGE-CHECK-OPTION-INJECTION-BOUNDS-AND-GIT-TIMEOUT -> #2334

<!-- gh-comment-id:7194173654 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: MERGE-CHECK-OPTION-INJECTION-BOUNDS-AND-GIT-TIMEOUT -> #2334
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: CONFORMANCE-RUN-PS1-EXIT-PROPAGATION-AND-WHITESPACE-GUARD - Propagate renderer exit status, refuse whitespace-only -Output, and guard resolved native folder in tools/conformance/native/scripts/run.ps1

<!-- gh-comment-id:7194174248 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: CONFORMANCE-RUN-PS1-EXIT-PROPAGATION-AND-WHITESPACE-GUARD - Propagate renderer exit status, refuse whitespace-only -Output, and guard resolved native folder in tools/conformance/native/scripts/run.ps1
Author
Owner

@narekshaghoyandev commented on GitHub (Nov 26, 2026):

done: RT-PIPELINE-WAIT-SIGNED-SUB-AND-WINDOW -> #2336 AI-assisted (Gemini).

<!-- gh-comment-id:7194180156 --> @narekshaghoyandev commented on GitHub (Nov 26, 2026): done: RT-PIPELINE-WAIT-SIGNED-SUB-AND-WINDOW -> #2336 AI-assisted (Gemini).
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: STUDIO-MODEL-DETAILS -> #2335 (draft while #2084 is open: one non-draft PR per account)

<!-- gh-comment-id:7194188836 --> @syfyra commented on GitHub (Nov 26, 2026): done: STUDIO-MODEL-DETAILS -> #2335 (draft while #2084 is open: one non-draft PR per account)
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: CONFORMANCE-RUN-PS1-EXIT-PROPAGATION-AND-WHITESPACE-GUARD -> #2337

<!-- gh-comment-id:7194261103 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: CONFORMANCE-RUN-PS1-EXIT-PROPAGATION-AND-WHITESPACE-GUARD -> #2337
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: CONFORMANCE-VERIFY-AND-FAILURE-LOG-SAFETY - Harden tools/conformance/native/scripts/verify.ps1 (-LiteralPath, symmetric run A/B file list checks, manifest guard, configurable adapter params) and failure-log.cmd (quoted vars, preflight EXE check)

<!-- gh-comment-id:7194263351 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: CONFORMANCE-VERIFY-AND-FAILURE-LOG-SAFETY - Harden tools/conformance/native/scripts/verify.ps1 (-LiteralPath, symmetric run A/B file list checks, manifest guard, configurable adapter params) and failure-log.cmd (quoted vars, preflight EXE check)
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: STUDIO-EU-STRINGS - viewer/studio.html has an RU/EU switch and an I18N table, but several entries are never applied, so the EU page keeps Russian text: the five stats labels (I18N.statModel ... statSize exist, applyTranslations never sets them), the reset-camera button, the texture gallery heading, the "Все" chip, the texture count and the empty-list messages; the "show all" button and the texture load error have no entries. Apply them without changing the markup (each stats label is the text node in front of its value), with a node test. Category names and the download alert are left out (the alert sits in #2100's hunk). No game files, no GPU. AI-assisted.

<!-- gh-comment-id:7194265327 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: STUDIO-EU-STRINGS - viewer/studio.html has an RU/EU switch and an I18N table, but several entries are never applied, so the EU page keeps Russian text: the five stats labels (`I18N.statModel` ... `statSize` exist, `applyTranslations` never sets them), the reset-camera button, the texture gallery heading, the "Все" chip, the texture count and the empty-list messages; the "show all" button and the texture load error have no entries. Apply them without changing the markup (each stats label is the text node in front of its value), with a node test. Category names and the download alert are left out (the alert sits in #2100's hunk). No game files, no GPU. AI-assisted.
Author
Owner

@budanga commented on GitHub (Nov 26, 2026):

claiming: GPU-RX9060XT-WIN — first record of an AMD Radeon RX 9060 XT (RDNA4 / GFX1200, Navi 44, PCI 1002:7590), AMD 26.11.2 (LLPC), Vulkan 1.4.359, Windows 11 26300: gpu-test-results/RX9060XT.txt plus a row in docs/gpu_test_results.md, from scripts/run_gpu_tests.py (native and LEONIDA_W64_EMULATE=1), build.py/check.py and ctest at current main. No other 9060 XT record, claim or pull request found. AI-assisted: yes.

<!-- gh-comment-id:7194271954 --> @budanga commented on GitHub (Nov 26, 2026): claiming: GPU-RX9060XT-WIN — first record of an AMD Radeon RX 9060 XT (RDNA4 / GFX1200, Navi 44, PCI 1002:7590), AMD 26.11.2 (LLPC), Vulkan 1.4.359, Windows 11 26300: `gpu-test-results/RX9060XT.txt` plus a row in `docs/gpu_test_results.md`, from `scripts/run_gpu_tests.py` (native and `LEONIDA_W64_EMULATE=1`), `build.py`/`check.py` and ctest at current `main`. No other 9060 XT record, claim or pull request found. AI-assisted: yes.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: VIEWER-OVERVIEW-MAP -> #2338 (draft)

<!-- gh-comment-id:7194278205 --> @syfyra commented on GitHub (Nov 26, 2026): done: VIEWER-OVERVIEW-MAP -> #2338 (draft)
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: STUDIO-EU-STRINGS -> #2339 (draft while #2084 is open: one non-draft PR per account)

<!-- gh-comment-id:7194295996 --> @syfyra commented on GitHub (Nov 26, 2026): done: STUDIO-EU-STRINGS -> #2339 (draft while #2084 is open: one non-draft PR per account)
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: DNS-OFFLINE - docs/runtime_imports.md lists dnsapi.dll as the known gap next to the WinHTTP and Winsock2 offline shims: a title that calls it reaches the host's DNS client, which queries any name and also sends dynamic updates, server checks and DNS-SD (multicast DNS). Add runtime/shims/dnsapi_offline.cpp: DnsQuery_A/W/UTF8 and DnsQueryEx answer localhost and loopback literals through the host with the network switched off and fail every other name with DNS_ERROR_RECORD_DOES_NOT_EXIST (the host's own answer without the wire, measured); DnsQueryRaw, the update functions, DnsService* and DnsStartMulticastQuery fail with ERROR_NETWORK_UNREACHABLE. dnsapi.dll stays host-owned like ws2_32.dll. New ctest dnsapi_offline; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7194333625 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: DNS-OFFLINE - docs/runtime_imports.md lists dnsapi.dll as the known gap next to the WinHTTP and Winsock2 offline shims: a title that calls it reaches the host's DNS client, which queries any name and also sends dynamic updates, server checks and DNS-SD (multicast DNS). Add runtime/shims/dnsapi_offline.cpp: DnsQuery_A/W/UTF8 and DnsQueryEx answer localhost and loopback literals through the host with the network switched off and fail every other name with DNS_ERROR_RECORD_DOES_NOT_EXIST (the host's own answer without the wire, measured); DnsQueryRaw, the update functions, DnsService* and DnsStartMulticastQuery fail with ERROR_NETWORK_UNREACHABLE. dnsapi.dll stays host-owned like ws2_32.dll. New ctest dnsapi_offline; no game files, no GPU. AI-assisted.
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: CONFORMANCE-VERIFY-AND-FAILURE-LOG-SAFETY -> #2340

<!-- gh-comment-id:7194336432 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: CONFORMANCE-VERIFY-AND-FAILURE-LOG-SAFETY -> #2340
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: WIN-LAUNCHERS-BUILD-MODS-BAT-QUOTING-USER-PYTHON-AND-NO-PAUSE - Fix unquoted per-user Python assignment in Build.bat, add per-user Python lookup to Mods.bat, add LEONIDA_NO_PAUSE support, and add Windows launcher tests

<!-- gh-comment-id:7194337029 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: WIN-LAUNCHERS-BUILD-MODS-BAT-QUOTING-USER-PYTHON-AND-NO-PAUSE - Fix unquoted per-user Python assignment in Build.bat, add per-user Python lookup to Mods.bat, add LEONIDA_NO_PAUSE support, and add Windows launcher tests
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: DNS-OFFLINE -> #2341 (draft)

<!-- gh-comment-id:7194361378 --> @syfyra commented on GitHub (Nov 26, 2026): done: DNS-OFFLINE -> #2341 (draft)
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: PR-OVERLAP-CHECK - there is no working way to find the open pull requests that touch a file: gh search prs 'path:...' returns nothing here (the VIEWER-HUNT finding lost a round to it), and with about 1,480 open pull requests reading them all is not an option. A new stdlib scripts/pr_overlap.py answers it from git alone, with no API call and no token: the open pull requests are the ones with a refs/pull/N/merge on the remote (1,485 such refs against 1,484 open pull requests today), their heads are fetched into a ref namespace of the tool, and it lists the ones that change the given paths, or the files of the current branch, and whether each merges cleanly with that branch (git merge-tree). Synthetic tests on local repositories; no game files or GPU. AI-assisted.

<!-- gh-comment-id:7194375468 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: PR-OVERLAP-CHECK - there is no working way to find the open pull requests that touch a file: `gh search prs 'path:...'` returns nothing here (the VIEWER-HUNT finding lost a round to it), and with about 1,480 open pull requests reading them all is not an option. A new stdlib `scripts/pr_overlap.py` answers it from git alone, with no API call and no token: the open pull requests are the ones with a `refs/pull/N/merge` on the remote (1,485 such refs against 1,484 open pull requests today), their heads are fetched into a ref namespace of the tool, and it lists the ones that change the given paths, or the files of the current branch, and whether each merges cleanly with that branch (`git merge-tree`). Synthetic tests on local repositories; no game files or GPU. AI-assisted.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: D3D12-DEVICE-CALLS-STALE-SLOT - tools/d3d12_device_calls.py keeps a stack slot that held the device across calls and forgets it only on a plain store to its exact address. A call given the slot's address (device->CreateCommandQueue(&desc, riid, &out) with out in the reused frame slot) and an SSE/AVX store over it (movups [rsp+40h],xmm0) leave it marked, so the next call through the slot (the queue's SetName) is reported as a device slot, the guess the report says it never makes. Forget slots passed in rcx/rdx/r8/r9 at a call and any slot a store overlaps, vector stores included. Different topic from #2262 (--out/atomic reports), merges cleanly with it. Synthetic PE fixture only; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7194420859 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: D3D12-DEVICE-CALLS-STALE-SLOT - tools/d3d12_device_calls.py keeps a stack slot that held the device across calls and forgets it only on a plain store to its exact address. A call given the slot's address (`device->CreateCommandQueue(&desc, riid, &out)` with `out` in the reused frame slot) and an SSE/AVX store over it (`movups [rsp+40h],xmm0`) leave it marked, so the next call through the slot (the queue's `SetName`) is reported as a device slot, the guess the report says it never makes. Forget slots passed in rcx/rdx/r8/r9 at a call and any slot a store overlaps, vector stores included. Different topic from #2262 (--out/atomic reports), merges cleanly with it. Synthetic PE fixture only; no game files, no GPU. AI-assisted.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: D3D12-DEVICE-CALLS-STALE-SLOT -> #2343 (draft while #2084 is open: one non-draft PR per account)

<!-- gh-comment-id:7194444237 --> @syfyra commented on GitHub (Nov 26, 2026): done: D3D12-DEVICE-CALLS-STALE-SLOT -> #2343 (draft while #2084 is open: one non-draft PR per account)
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: WIN-LAUNCHERS-BUILD-MODS-BAT-QUOTING-USER-PYTHON-AND-NO-PAUSE -> #2342

<!-- gh-comment-id:7194522831 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: WIN-LAUNCHERS-BUILD-MODS-BAT-QUOTING-USER-PYTHON-AND-NO-PAUSE -> #2342
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: FIRST-LOOK-PS1-GAMEDIR-VALIDATION-HANDLE-CLEANUP-AND-REPORT-CHECK - Validate explicit -GameDir upfront, guard file-occupied report folders, dispose PE stream handle cleanly, check build_runtime.ps1/pe_inspect report before use in scripts/first_look.ps1

<!-- gh-comment-id:7194523743 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: FIRST-LOOK-PS1-GAMEDIR-VALIDATION-HANDLE-CLEANUP-AND-REPORT-CHECK - Validate explicit -GameDir upfront, guard file-occupied report folders, dispose PE stream handle cleanly, check build_runtime.ps1/pe_inspect report before use in scripts/first_look.ps1
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: LIFECYCLE-ANSI-SUBCLASS - runtime/shims/lifecycle.cpp hooks the title window for SC_CLOSE with SetWindowLongPtrW. The retail title creates that window with CreateWindowExA, and a W procedure on an ANSI window (an A class) makes it a Unicode window (IsWindowUnicode turns TRUE), so the title's WM_CHAR codes pass through Unicode on their way to its own procedure. Under a UTF-8 ANSI code page (Windows' "Use Unicode UTF-8" option) the bytes C3 A9 E2 82 AC arrive as 83 C3 A9 C2 A2 C3 80 E2 AC C2 (measured). Subclass in the window's own character set; new lifecycle_utf8_test with an activeCodePage manifest. No game files, no GPU. AI-assisted.

<!-- gh-comment-id:7194571568 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: LIFECYCLE-ANSI-SUBCLASS - runtime/shims/lifecycle.cpp hooks the title window for SC_CLOSE with SetWindowLongPtrW. The retail title creates that window with CreateWindowExA, and a W procedure on an ANSI window (an A class) makes it a Unicode window (IsWindowUnicode turns TRUE), so the title's WM_CHAR codes pass through Unicode on their way to its own procedure. Under a UTF-8 ANSI code page (Windows' "Use Unicode UTF-8" option) the bytes C3 A9 E2 82 AC arrive as 83 C3 A9 C2 A2 C3 80 E2 AC C2 (measured). Subclass in the window's own character set; new lifecycle_utf8_test with an activeCodePage manifest. No game files, no GPU. AI-assisted.
Author
Owner

@Bonchaloo commented on GitHub (Nov 26, 2026):

finding: M5 Max readback for the literal f16 multiply-add in runtime/test/shaders/cs_fma_fused.asm (output word 7). On macOS 27.3 (26C5047e), Leonida 1e0de21b0, the stock synthetic fixture returned 0x0000 instead of 0x7351 on both MoltenVK 1.4.2 and the upstream macOS CI build of 5189f8de (reports 1.4.3). Two runs per build, same SPIR-V SHA-256 ad64838ef2eba8f3ba6a0a563d1bae603266760658a08b3cc8e2a8be2a660c18. Verified the newer dylib was loaded. Words 0–6 matched the fused reference.

Diagnostic: change only v_mov_b32_e32 v17, 0x8004 to v_mov_b32_e32 v17, s10. Run the translated shader with VKC_SGPRS=0x3f800800,0x3f800001,0x3f7ffffe,0xbf800002,0,0,0x8004 vk_compute_test cs_fma_fused.spv 1 dump. Word 7 becomes 0x7351 on both drivers. Set s10 to zero as a control and it becomes 0x7352 on both. This narrows the discrepancy to how the literal case is compiled or executed. The fixture's literal case remains valuable coverage. No game data needed.

AI-assisted: yes.

M5 Max follow-up: removing the seven preceding f32 cases and retaining the original f16 instructions, output offset and a zero address register makes the literal case pass (0x7351) on both 1.4.2 and 5189f8de. The reduced case with the same addend supplied in s4 also passes on both. Please use the full fixture for cross-GPU comparisons: the surrounding shader instructions affect the result on this machine.

Reduced on M5 Max: keep the stock fixture header and the f16 tail starting at v_mov_b32_e32 v15, 0x6ce1. Replace everything between them with this prefix:

v_mov_b32_e32 v0, s4
v_mul_f32_e32 v3, v0, v0
v_mov_b32_e32 v20, 0
v_mov_b32_e32 v5, s5
v_mov_b32_e32 v6, s6
v_fma_f32 v7, v5, v6, -1.0
buffer_store_dword v7, v20, s[0:3], 0 offen offset:4

Use the stock SGPR inputs. Word 7 reads 0x0000 in 3/3 dispatches on each driver. Delete only the v_mul_f32_e32 line (v3 is never read in this reduction) and it reads 0x7351 in 3/3 on each. On 5189f8de, replacing that multiply with a float add also passes, as does keeping the multiply and removing the store of v7. The reduced fixture intentionally leaves earlier output slots unwritten; compare word 7 directly. This isolates a compiler-sensitive instruction combination; it does not identify which compilation stage is responsible.

M5 Max compiler comparison and verified fix: captured the MSL with MVK_CONFIG_SHADER_DUMP_DIR, then compiled and dispatched the two sources directly with Metal safe math. The old reduced source with the unused multiply gave word 7 = 0x0000; deleting that line from the emitted MSL gave 0x7351. Removing only clang::optnone from scalar spvFMul also gave 0x7351. Changing only its +0 addend to -0, or removing the attribute only from spvFAdd or spvFSub, still gave zero. Restoring the attribute on spvFMul in the updated MSL turned the pass back into a failure. This localizes the trigger to Metal compilation/execution of the old helper pattern; the exact backend pass is undetermined.

KhronosGroup/MoltenVK#2917 pins SPIRV-Cross 57e4efcc, including the precise-helper change. With the PR's macOS dylib (head b56e3a35, artifact 14752559608), the unchanged stock shader matched all eight fused reference words, and the reduced shader passed 3/3. The full synthetic suite at Leonida 1e0de21b0 passed 197/268 (70 skipped) by default and 231/268 (36 skipped) with wave64 emulation. In both modes the only remaining failure was the separate cs_imgatomic_ext fixture tracked in #1518.

<!-- gh-comment-id:7194581035 --> @Bonchaloo commented on GitHub (Nov 26, 2026): finding: M5 Max readback for the literal f16 multiply-add in `runtime/test/shaders/cs_fma_fused.asm` (output word 7). On macOS 27.3 (26C5047e), Leonida `1e0de21b0`, the stock synthetic fixture returned `0x0000` instead of `0x7351` on both MoltenVK 1.4.2 and the upstream macOS CI build of `5189f8de` (reports 1.4.3). Two runs per build, same SPIR-V SHA-256 `ad64838ef2eba8f3ba6a0a563d1bae603266760658a08b3cc8e2a8be2a660c18`. Verified the newer dylib was loaded. Words 0–6 matched the fused reference. Diagnostic: change only `v_mov_b32_e32 v17, 0x8004` to `v_mov_b32_e32 v17, s10`. Run the translated shader with `VKC_SGPRS=0x3f800800,0x3f800001,0x3f7ffffe,0xbf800002,0,0,0x8004 vk_compute_test cs_fma_fused.spv 1 dump`. Word 7 becomes `0x7351` on both drivers. Set s10 to zero as a control and it becomes `0x7352` on both. This narrows the discrepancy to how the literal case is compiled or executed. The fixture's literal case remains valuable coverage. No game data needed. AI-assisted: yes. M5 Max follow-up: removing the seven preceding f32 cases and retaining the original f16 instructions, output offset and a zero address register makes the literal case pass (0x7351) on both 1.4.2 and 5189f8de. The reduced case with the same addend supplied in s4 also passes on both. Please use the full fixture for cross-GPU comparisons: the surrounding shader instructions affect the result on this machine. Reduced on M5 Max: keep the stock fixture header and the f16 tail starting at `v_mov_b32_e32 v15, 0x6ce1`. Replace everything between them with this prefix: ```asm v_mov_b32_e32 v0, s4 v_mul_f32_e32 v3, v0, v0 v_mov_b32_e32 v20, 0 v_mov_b32_e32 v5, s5 v_mov_b32_e32 v6, s6 v_fma_f32 v7, v5, v6, -1.0 buffer_store_dword v7, v20, s[0:3], 0 offen offset:4 ``` Use the stock SGPR inputs. Word 7 reads 0x0000 in 3/3 dispatches on each driver. Delete only the v_mul_f32_e32 line (v3 is never read in this reduction) and it reads 0x7351 in 3/3 on each. On 5189f8de, replacing that multiply with a float add also passes, as does keeping the multiply and removing the store of v7. The reduced fixture intentionally leaves earlier output slots unwritten; compare word 7 directly. This isolates a compiler-sensitive instruction combination; it does not identify which compilation stage is responsible. M5 Max compiler comparison and verified fix: captured the MSL with MVK_CONFIG_SHADER_DUMP_DIR, then compiled and dispatched the two sources directly with Metal safe math. The old reduced source with the unused multiply gave word 7 = 0x0000; deleting that line from the emitted MSL gave 0x7351. Removing only [[clang::optnone]] from scalar spvFMul also gave 0x7351. Changing only its +0 addend to -0, or removing the attribute only from spvFAdd or spvFSub, still gave zero. Restoring the attribute on spvFMul in the updated MSL turned the pass back into a failure. This localizes the trigger to Metal compilation/execution of the old helper pattern; the exact backend pass is undetermined. [KhronosGroup/MoltenVK#2917](https://github.com/KhronosGroup/MoltenVK/pull/2917) pins SPIRV-Cross 57e4efcc, including the [precise-helper change](https://github.com/KhronosGroup/SPIRV-Cross/commit/98cbb7c02be35364ecacc23dc0c038d2360b0ed0). With the PR's macOS dylib (head b56e3a35, artifact 14752559608), the unchanged stock shader matched all eight fused reference words, and the reduced shader passed 3/3. The full synthetic suite at Leonida 1e0de21b0 passed 197/268 (70 skipped) by default and 231/268 (36 skipped) with wave64 emulation. In both modes the only remaining failure was the separate cs_imgatomic_ext fixture tracked in #1518.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: LIFECYCLE-ANSI-SUBCLASS -> #2344 (draft)

<!-- gh-comment-id:7194610607 --> @syfyra commented on GitHub (Nov 26, 2026): done: LIFECYCLE-ANSI-SUBCLASS -> #2344 (draft)
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: REPLACE-RETRY-LOCK-VIOLATION-AND-SECONDS-VALIDATION - Retry Windows ERROR_LOCK_VIOLATION (winerror 33) and reject negative, boolean, or non-finite seconds upfront in tools/replace_retry.py

<!-- gh-comment-id:7194632590 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: REPLACE-RETRY-LOCK-VIOLATION-AND-SECONDS-VALIDATION - Retry Windows ERROR_LOCK_VIOLATION (winerror 33) and reject negative, boolean, or non-finite seconds upfront in tools/replace_retry.py
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: FIRST-LOOK-PS1-GAMEDIR-VALIDATION-HANDLE-CLEANUP-AND-REPORT-CHECK -> #2345

<!-- gh-comment-id:7194644871 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: FIRST-LOOK-PS1-GAMEDIR-VALIDATION-HANDLE-CLEANUP-AND-REPORT-CHECK -> #2345
Author
Owner

@HasiKe commented on GitHub (Nov 26, 2026):

Follow-up to the loop-limit check: the indirect question, and a boot that hung in a different way. AI-assisted (Claude Code).

Setup: same machine and cold, ungated recipe as before: RTX 2070 SUPER, NVIDIA 616.56, main a73a57e13 + #2195 + #2233 + #2275, LEONIDA_COMPILE_GATE=0, LEONIDA_DEVICE_FAULT=2, original shaders. A second local diagnostic patch, not proposed: LEONIDA_TRACE_MESH_DRAWS=1 logs, once per VkPipeline, how replay emits a mesh draw, either direct vkCmdDrawMeshTasksEXT groups, or indirect with records, stride, count buffer and whether the clamp pass ran.

1. Every mesh draw in this boot is indirect and goes through the clamp pass.

  • There are 16 distinct mesh pipelines up to the loss.
  • All 16 show kind=indirect: one record, stride 12 (VkDrawMeshTasksIndirectCommandEXT), no count buffer, clamped.
  • There is not a single direct DispatchMesh.
  • So the VS-as-MS draws that hung in the earlier boots very likely read their group counts from a GPU buffer, through the clamp copy. That fits the data-dependence reading, but it is not proof that the arguments are bad: the clamp bounds x and sets y = z = 1.

2. This boot did not end in a draw. Its shape differs from the earlier three:

  • Timing: the frame rate fell from about 105 s, and from 196 s no frames were presented. The device loss came only at t=470.5 s, together with nvlddmkm 153 at that time. The report says the submit lock was held by the reporting thread for 270,020 ms.
  • Checkpoints: every queue with checkpoints sits at a compute dispatch, with top-of-pipe and bottom-of-pipe equal:
    • direct: lib_cs_01449, command 24 of list 17. It and its neighbours lib_cs_01451/01461 are indirect dispatches, one record of stride 12, from one argument buffer at offsets 0xcb00, 0xcc00 and so on.
    • three compute queues: lib_cs_01468 at command 15/16 of list 0. That is the same program and command index as in the loop-limit boot.
    • one compute queue: lib_cs_02229, command 55/56.
  • No running waves: vkGetDeviceFaultInfoEXT lists no addresses this time. The earlier losses had 32 and 10 instruction-pointer addresses.
  • Reading: about 270 s with no frames and no TDR, then a loss with no wave executing, looks more like queues waiting on each other, a semaphore or fence that is never signalled, than like a shader that does not end. A queue that is waiting does not trip the TDR; only work that runs does.

3. Across the four boots, two shapes show up:

  • (a) a VS-as-MS deferred draw on the direct queue, with waves still running and a TDR soon after. Seen in three boots, twice with two different programs.
  • (b) this one: all queues at compute dispatches, no waves, a long stall before the loss. lib_cs_01468 command 16 shows up in both the loop-limit boot and this one.

They could be one cause with two symptoms, for example indirect arguments or a cross-queue value that one queue never gets. One cheap way to tell them apart is a boot with LEONIDA_DEVICE_FAULT=2 plus the list-value/queue-wait tracing, if someone knows the right switch for it. That would show what the direct queue waits on when (b) happens.

Logs stay local; they name game shaders.

<!-- gh-comment-id:7194674556 --> @HasiKe commented on GitHub (Nov 26, 2026): Follow-up to [the loop-limit check](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7194136534): the indirect question, and a boot that hung in a different way. AI-assisted (Claude Code). **Setup:** same machine and cold, ungated recipe as before: RTX 2070 SUPER, NVIDIA 616.56, `main` `a73a57e13` + #2195 + #2233 + #2275, `LEONIDA_COMPILE_GATE=0`, `LEONIDA_DEVICE_FAULT=2`, original shaders. A second local diagnostic patch, not proposed: `LEONIDA_TRACE_MESH_DRAWS=1` logs, once per `VkPipeline`, how replay emits a mesh draw, either direct `vkCmdDrawMeshTasksEXT` groups, or indirect with records, stride, count buffer and whether the clamp pass ran. **1. Every mesh draw in this boot is indirect and goes through the clamp pass.** - There are 16 distinct mesh pipelines up to the loss. - All 16 show `kind=indirect`: one record, stride 12 (`VkDrawMeshTasksIndirectCommandEXT`), no count buffer, clamped. - There is not a single direct `DispatchMesh`. - So the VS-as-MS draws that hung in the earlier boots very likely read their group counts from a GPU buffer, through the clamp copy. That fits the data-dependence reading, but it is not proof that the arguments are bad: the clamp bounds x and sets y = z = 1. **2. This boot did not end in a draw.** Its shape differs from the earlier three: - **Timing:** the frame rate fell from about 105 s, and from 196 s no frames were presented. The device loss came only at t=470.5 s, together with `nvlddmkm` 153 at that time. The report says the submit lock was held by the reporting thread for 270,020 ms. - **Checkpoints:** every queue with checkpoints sits at a compute dispatch, with top-of-pipe and bottom-of-pipe equal: - direct: `lib_cs_01449`, command 24 of list 17. It and its neighbours `lib_cs_01451`/`01461` are indirect dispatches, one record of stride 12, from one argument buffer at offsets 0xcb00, 0xcc00 and so on. - three compute queues: `lib_cs_01468` at command 15/16 of list 0. That is the same program and command index as in the loop-limit boot. - one compute queue: `lib_cs_02229`, command 55/56. - **No running waves:** `vkGetDeviceFaultInfoEXT` lists no addresses this time. The earlier losses had 32 and 10 instruction-pointer addresses. - **Reading:** about 270 s with no frames and no TDR, then a loss with no wave executing, looks more like queues waiting on each other, a semaphore or fence that is never signalled, than like a shader that does not end. A queue that is waiting does not trip the TDR; only work that runs does. **3. Across the four boots,** two shapes show up: - **(a)** a VS-as-MS deferred draw on the direct queue, with waves still running and a TDR soon after. Seen in three boots, twice with two different programs. - **(b)** this one: all queues at compute dispatches, no waves, a long stall before the loss. `lib_cs_01468` command 16 shows up in both the loop-limit boot and this one. They could be one cause with two symptoms, for example indirect arguments or a cross-queue value that one queue never gets. One cheap way to tell them apart is a boot with `LEONIDA_DEVICE_FAULT=2` plus the list-value/queue-wait tracing, if someone knows the right switch for it. That would show what the direct queue waits on when (b) happens. Logs stay local; they name game shaders.
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: REPLACE-RETRY-LOCK-VIOLATION-AND-SECONDS-VALIDATION -> #2346

<!-- gh-comment-id:7194727609 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: REPLACE-RETRY-LOCK-VIOLATION-AND-SECONDS-VALIDATION -> #2346
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

claiming: F16-UNARY-CASES-16BIT-MASKING-AND-REF-TESTS - Mask 16-bit inputs in f16_unary_cases reference helpers, validate exact_sqrt_ratio domain, and add direct unit tests

<!-- gh-comment-id:7194729737 --> @kirigayakazima commented on GitHub (Nov 26, 2026): claiming: F16-UNARY-CASES-16BIT-MASKING-AND-REF-TESTS - Mask 16-bit inputs in f16_unary_cases reference helpers, validate exact_sqrt_ratio domain, and add direct unit tests
Author
Owner

@real-rusher commented on GitHub (Nov 26, 2026):

done: GPU-RTXPRO3000-ARL-WIN -> #2348

claiming: GPU-TEXTURE-UAV-STANDALONE-SKIP: check.py's cs_texture_uav reports SKIP instead of "missing d3d12_texture_uav_test.exe" when the build folder has no d3d12_*_test program at all (the standalone Vulkan tools with LEONIDA_BUILD_WINDOWS_RUNTIME=OFF, or build_runtime.ps1's cl.exe fallback); a full build that lost the program still fails (runtime/test/shaders/check.py, docs/testing.md, tests/test_check_texture_uav_build.py, tests/test_shader_checks.py, tests/test_run_gpu_tests.py). The setup failure #2204 and #2348 report. AI-assisted: yes (Claude Code).

<!-- gh-comment-id:7194799881 --> @real-rusher commented on GitHub (Nov 26, 2026): done: GPU-RTXPRO3000-ARL-WIN -> #2348 claiming: GPU-TEXTURE-UAV-STANDALONE-SKIP: check.py's cs_texture_uav reports SKIP instead of "missing d3d12_texture_uav_test.exe" when the build folder has no d3d12_*_test program at all (the standalone Vulkan tools with LEONIDA_BUILD_WINDOWS_RUNTIME=OFF, or build_runtime.ps1's cl.exe fallback); a full build that lost the program still fails (runtime/test/shaders/check.py, docs/testing.md, tests/test_check_texture_uav_build.py, tests/test_shader_checks.py, tests/test_run_gpu_tests.py). The setup failure #2204 and #2348 report. AI-assisted: yes (Claude Code).
Author
Owner

@kirigayakazima commented on GitHub (Nov 26, 2026):

done: F16-UNARY-CASES-16BIT-MASKING-AND-REF-TESTS -> #2347

<!-- gh-comment-id:7194811955 --> @kirigayakazima commented on GitHub (Nov 26, 2026): done: F16-UNARY-CASES-16BIT-MASKING-AND-REF-TESTS -> #2347
Author
Owner

@Zalthor commented on GitHub (Nov 26, 2026):

Verification batch 21: 9 open pull requests with Python changes and queued or no CI that nobody had verified in this issue (#2326–#2345), plus 2 that were force-pushed since I verified them (#1086, #1774). Each diff (merge-base..head) was applied to its own clean worktree at main 73516a290. Environment: Windows 10, CPU only, no game files, TEMP on C:. The python -I test files ran on CPython 3.12, as in CI's Windows job. AI-assisted (Claude Code). Same method as batches 1 to 20.

Summary: all 11 apply cleanly, and none breaks a test. The four repo-wide checks pass with each one.

New tests fail on unpatched main and pass with the change

#1774, #2326, #2328, #2330, #2332, #2334, #2337, #2340, #2342, #2345.

#1774 (explicit LOD bias), re-tested at its new head:

  • the full semantic suite has 0 failed files (499 files, 6,359 tests);
  • all 50 make_game-related test files pass on 3.12;
  • its new semantic file fails only when run on its own, outside the suite runner (support import).

No Python tests to run

#1086 (Wine/Proton leftovers, mostly C++ runtime tests): at its new head it applies, its Python helper runtime/test/check_device_filter_tools.py compiles, and the repo-wide checks pass. The C++ side needs a runtime build, which I didn't do.

Not covered: no Linux or macOS run, no runtime (C++) build, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.

<!-- gh-comment-id:7194961600 --> @Zalthor commented on GitHub (Nov 26, 2026): Verification batch 21: 9 open pull requests with Python changes and queued or no CI that nobody had verified in this issue (#2326–#2345), plus 2 that were force-pushed since I verified them (#1086, #1774). Each diff (merge-base..head) was applied to its own clean worktree at `main` `73516a290`. Environment: Windows 10, CPU only, no game files, `TEMP` on `C:`. The `python -I` test files ran on CPython 3.12, as in CI's Windows job. AI-assisted (Claude Code). Same method as batches [1](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157070042) to [20](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7193874548). **Summary: all 11 apply cleanly, and none breaks a test.** The four repo-wide checks pass with each one. ### New tests fail on unpatched `main` and pass with the change #1774, #2326, #2328, #2330, #2332, #2334, #2337, #2340, #2342, #2345. **#1774** (explicit LOD bias), re-tested at its new head: - the full semantic suite has 0 failed files (499 files, 6,359 tests); - all 50 `make_game`-related test files pass on 3.12; - its new semantic file fails only when run on its own, outside the suite runner (`support` import). ### No Python tests to run **#1086** (Wine/Proton leftovers, mostly C++ runtime tests): at its new head it applies, its Python helper `runtime/test/check_device_filter_tools.py` compiles, and the repo-wide checks pass. The C++ side needs a runtime build, which I didn't do. Not covered: no Linux or macOS run, no runtime (C++) build, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: PR-OVERLAP-CHECK -> #2349 (draft)

<!-- gh-comment-id:7195007416 --> @syfyra commented on GitHub (Nov 26, 2026): done: PR-OVERLAP-CHECK -> #2349 (draft)
Author
Owner

@aslan2142 commented on GitHub (Nov 26, 2026):

claiming: RT-LINUX-AMD-WORLD — integration PR: the first world frames on Linux/AMD (RX 7900 XTX, RADV, Wine) — the single-wave translator fix, make_game.py's wave64 choice without llvmpipe, the address guard and night diagnostics, docs/running.md, plus #1914 #2195 #2240 #2044 (with #1144) #1957 #2097 #2162 #2129 #2124 #2144 #1972 merged with their authors' commits (the open ones to be closed in its favour, with credit)

<!-- gh-comment-id:7195092212 --> @aslan2142 commented on GitHub (Nov 26, 2026): claiming: RT-LINUX-AMD-WORLD — integration PR: the first world frames on Linux/AMD (RX 7900 XTX, RADV, Wine) — the single-wave translator fix, `make_game.py`'s wave64 choice without llvmpipe, the address guard and night diagnostics, docs/running.md, plus #1914 #2195 #2240 #2044 (with #1144) #1957 #2097 #2162 #2129 #2124 #2144 #1972 merged with their authors' commits (the open ones to be closed in its favour, with credit)
Author
Owner

@ecox982745 commented on GitHub (Nov 26, 2026):

claiming: RT-TITLE-WRITEBACK-ADJACENT-RANGES

I’ll take the two-adjacent-buffers follow-up from #2129 on current main. I’ll fix range coalescing and its byte accounting, add a regression for submitting the higher address first, and check both address orders on an RTX 4090 with synthetic buffers.

AI-assisted by OpenAI Codex (GPT-6).

<!-- gh-comment-id:7195278154 --> @ecox982745 commented on GitHub (Nov 26, 2026): claiming: RT-TITLE-WRITEBACK-ADJACENT-RANGES I’ll take the [two-adjacent-buffers follow-up from #2129](https://github.com/ubiquitarianism/leonida/pull/2129#issuecomment-7195197576) on current main. I’ll fix range coalescing and its byte accounting, add a regression for submitting the higher address first, and check both address orders on an RTX 4090 with synthetic buffers. AI-assisted by OpenAI Codex (GPT-6).
Author
Owner

@ecox982745 commented on GitHub (Nov 26, 2026):

done: RT-TITLE-WRITEBACK-ADJACENT-RANGES -> #2352 (draft).

The follow-up to #2129 fixes the missing lower buffer when two adjacent GPU writes arrive in descending address order. The RTX 4090 regression failed on current main and passed in both orders with the fix. GitHub’s test merge matches the locally tested tree.

<!-- gh-comment-id:7195507957 --> @ecox982745 commented on GitHub (Nov 26, 2026): done: RT-TITLE-WRITEBACK-ADJACENT-RANGES -> #2352 (draft). The follow-up to #2129 fixes the missing lower buffer when two adjacent GPU writes arrive in descending address order. The RTX 4090 regression failed on current main and passed in both orders with the fix. GitHub’s test merge matches the locally tested tree.
Author
Owner

@ERROR890 commented on GitHub (Nov 26, 2026):

claiming: BOOT-TLS-ATEXIT-CALLBACK - process: keep the game's _register_thread_local_exe_atexit_callback and run it when its thread ends (runtime/shims/process.cpp, runtime/shims/process_shim.h, runtime/src/pe_loader.cpp, regression case in runtime/test/process_cmdline_test.cpp).

This is the coverage shims/process.cpp's header lists as "Not covered yet" today. It also happens to be where the title died on a73a57e1: the host UCRT took the registration, its own state check failed, and _register_thread_local_exe_atexit_callback reached ucrtbase!terminate -> abort (0xC0000409) after the static initialisers and before the first D3D12 call. On current main (fbf100b1b) that stop is gone, fixed elsewhere upstream (f5113e3da and the TLS/thread work), so I am not claiming a crash fix: the pull request is the promised coverage (the callback is kept per thread and run from the loader's DLL_THREAD_DETACH path, where the UCRT would run it) plus a test that fails on main and passes with it. Evidence that it was the old stop is in the PR description.

claiming: GPU-RESULT-RTX5070-62140 - gpu-test-results/RTX5070-62140-Windows.txt: NVIDIA GeForce RTX 5070, driver 621.40, Windows 11 26H2 (build 26300.9974), commit a73a57e1. 277/277 test shaders translate and pass spirv-val; native 211/268 passed (55 skipped, 2 failed), LEONIDA_W64_EMULATE=1 246/268 (20 skipped, 2 failed). The two failures are cs_imgatomic_ext (the known 0x0badf00d/0x00000101 mismatch of #1518) and cs_texture_uav (formatless storage for R9G9B9E5-UAV refused on 621.40; the RTX 5070 result already in the tree passed it on 621.14, so it is worth a second 621.40 host before anyone calls it a regression).

Both pull requests are AI-assisted, contain no game data, and are based on current main. I checked the open work table and the open pull requests; I have not found an existing claim or PR for either item.

<!-- gh-comment-id:7195615051 --> @ERROR890 commented on GitHub (Nov 26, 2026): claiming: BOOT-TLS-ATEXIT-CALLBACK - process: keep the game's `_register_thread_local_exe_atexit_callback` and run it when its thread ends (`runtime/shims/process.cpp`, `runtime/shims/process_shim.h`, `runtime/src/pe_loader.cpp`, regression case in `runtime/test/process_cmdline_test.cpp`). This is the coverage `shims/process.cpp`'s header lists as "Not covered yet" today. It also happens to be where the title died on `a73a57e1`: the host UCRT took the registration, its own state check failed, and `_register_thread_local_exe_atexit_callback` reached `ucrtbase!terminate` -> `abort` (0xC0000409) after the static initialisers and before the first D3D12 call. On current `main` (`fbf100b1b`) that stop is gone, fixed elsewhere upstream (`f5113e3da` and the TLS/thread work), so I am **not** claiming a crash fix: the pull request is the promised coverage (the callback is kept per thread and run from the loader's `DLL_THREAD_DETACH` path, where the UCRT would run it) plus a test that fails on `main` and passes with it. Evidence that it was the old stop is in the PR description. claiming: GPU-RESULT-RTX5070-62140 - `gpu-test-results/RTX5070-62140-Windows.txt`: NVIDIA GeForce RTX 5070, driver 621.40, Windows 11 26H2 (build 26300.9974), commit `a73a57e1`. 277/277 test shaders translate and pass `spirv-val`; native 211/268 passed (55 skipped, 2 failed), `LEONIDA_W64_EMULATE=1` 246/268 (20 skipped, 2 failed). The two failures are `cs_imgatomic_ext` (the known `0x0badf00d`/`0x00000101` mismatch of #1518) and `cs_texture_uav` (formatless storage for R9G9B9E5-UAV refused on 621.40; the RTX 5070 result already in the tree passed it on 621.14, so it is worth a second 621.40 host before anyone calls it a regression). Both pull requests are AI-assisted, contain no game data, and are based on current `main`. I checked the open work table and the open pull requests; I have not found an existing claim or PR for either item.
Author
Owner

@budanga commented on GitHub (Nov 26, 2026):

done: GPU-RX9060XT-WIN -> #2353

<!-- gh-comment-id:7195617660 --> @budanga commented on GitHub (Nov 26, 2026): done: GPU-RX9060XT-WIN -> #2353
Author
Owner

@ShotTechOp commented on GitHub (Nov 26, 2026):

claiming: SHADER-BITSET32-MASK-AND-DST — handle lane-mask destinations (vcc_lo/vcc_hi/exec_lo/exec_hi/mask SGPRs) and lane-mask bit-index sources in s_bitset0_b32/s_bitset1_b32 in tools/rdna2spirv.py and tools/lane_masks.py. AI-assisted.

<!-- gh-comment-id:7195779628 --> @ShotTechOp commented on GitHub (Nov 26, 2026): claiming: SHADER-BITSET32-MASK-AND-DST — handle lane-mask destinations (vcc_lo/vcc_hi/exec_lo/exec_hi/mask SGPRs) and lane-mask bit-index sources in `s_bitset0_b32`/`s_bitset1_b32` in `tools/rdna2spirv.py` and `tools/lane_masks.py`. AI-assisted.
Author
Owner

@ShotTechOp commented on GitHub (Nov 26, 2026):

done: SHADER-BITSET32-MASK-AND-DST -> #2355

<!-- gh-comment-id:7195782260 --> @ShotTechOp commented on GitHub (Nov 26, 2026): done: SHADER-BITSET32-MASK-AND-DST -> #2355
Author
Owner

@nicoco23 commented on GitHub (Nov 26, 2026):

update: DOC-RELATED-VICTORY — #1078 rebased on main (3bbeb5529). It now completes #824's ## Marvisak/VIctory section instead of adding a second one (technical summary, bcpack-tables.bin exclusion, AcpHal/xapu/chad/XCRDAPI/xg_xs import mapping). Ready for review.

done: RT-XAPU-CONNECT-LAYOUTS — #1144 merged (queue in xapu_queue.cpp via #2350).

next: RT-CHAD-DSP-LAYOUTS — rebasing on main onto xapu_chad.cpp, PR to follow.

<!-- gh-comment-id:7195788065 --> @nicoco23 commented on GitHub (Nov 26, 2026): update: DOC-RELATED-VICTORY — #1078 rebased on main (`3bbeb5529`). It now completes #824's `## Marvisak/VIctory` section instead of adding a second one (technical summary, `bcpack-tables.bin` exclusion, AcpHal/xapu/chad/XCRDAPI/xg_xs import mapping). Ready for review. done: RT-XAPU-CONNECT-LAYOUTS — #1144 merged (queue in `xapu_queue.cpp` via #2350). next: RT-CHAD-DSP-LAYOUTS — rebasing on main onto `xapu_chad.cpp`, PR to follow.
Author
Owner

@ShotTechOp commented on GitHub (Nov 26, 2026):

claiming: SHADER-SHORT-CO-CI-MASK-OPERANDS — handle 3-operand short-form v_add/sub/subrev_co_ci_u32 (implicit VCC carry-in/out) in lane_masks.step, rdna2spirv.widen_wave64_masks, rdna2spirv.writes_exec, and wave64_halves.operands. AI-assisted.

<!-- gh-comment-id:7195931804 --> @ShotTechOp commented on GitHub (Nov 26, 2026): claiming: SHADER-SHORT-CO-CI-MASK-OPERANDS — handle 3-operand short-form `v_add/sub/subrev_co_ci_u32` (implicit VCC carry-in/out) in `lane_masks.step`, `rdna2spirv.widen_wave64_masks`, `rdna2spirv.writes_exec`, and `wave64_halves.operands`. AI-assisted.
Author
Owner

@ShotTechOp commented on GitHub (Nov 26, 2026):

done: SHADER-SHORT-CO-CI-MASK-OPERANDS -> #2357

<!-- gh-comment-id:7195933855 --> @ShotTechOp commented on GitHub (Nov 26, 2026): done: SHADER-SHORT-CO-CI-MASK-OPERANDS -> #2357
Author
Owner

@HasiKe commented on GitHub (Nov 26, 2026):

finding: the "(b)" boot in my last comment, 270 s without frames before the loss, is the runtime's own UINT64_MAX confirmation, not a GPU wait chain. VulkanFence::completed called vkDeviceWaitIdle under the submit lock, and that call blocked for 270 s while the thread that releases held batches waited for the same lock. @quartz-heron-58, this is your path from 35e38baee, so I'd like your view before changing it. AI-assisted (Claude Code).

Where: runtime/src/vulkan_backend.h:2496-2505 (VulkanFence::completed, the value == UINT64_MAX branch), on main a73a57e13 + #2195 + #2233 + #2275. Same machine and recipe as before: RTX 2070 SUPER, NVIDIA 616.56, cold, LEONIDA_COMPILE_GATE=0, LEONIDA_DEVICE_FAULT=2.

Measured:

  • The lock: submit-lock: held 270089 ms by thread 17780, t=200.490..470.579 s, and the loss line is VK_ERROR_DEVICE_LOST from vkDeviceWaitIdle (a fence counter of UINT64_MAX). Frames stop at about 200 s.
  • The holder's stack: I took it from the runtime's own submit-lock stack dump and resolved it against my build's gta6rt.pdb (runtime frames only):
    nvoglv64 wait → VulkanFence::completed (vulkan_backend.h:2501, the vkDeviceWaitIdle under submit_mutex()) → list_values::Pump::take_landed (d3d12_xs_list_values.h:700) → Pump::pass → Pump::run.
    So it is the list-value pump, reading a queue's written fence.
  • Waiting for that lock, among others:
    • thread 15580: list_values::Pump::release_loop → Fence::Signal (d3d12_com.cpp:2269) → VulkanQueue::run → release_held → QueueHolds::pump_ready (queue_holds.h:180) → execute_now → completed_retire_ticket → SubmitMutex::lock. That is the releaser, in the middle of submitting a held batch.
    • thread 20020: another VulkanFence::completed, from refresh_mirror / on_fence_progress.
    • a compile worker at DriverTurn.
  • The other boot: the loop-limit boot took the same branch at 157.5 s and vkDeviceWaitIdle came back with VK_ERROR_DEVICE_LOST at once, with no long hold logged. So the branch works when the driver answers. Here the driver did not answer for 4.5 minutes.

Why it matters:

  • While vkDeviceWaitIdle runs under the submit lock, nothing can submit. That includes the releaser, whose held batch can be the very thing a submitted queue Wait is waiting for, since the gates and held Wait-before-Signal batches feed each other. Whether this was a true deadlock, which only the driver's eventual reset broke (nvlddmkm 153 came at 470 s, not at 200 s), or just a slow driver, I can't tell from one boot.
  • Either way, the title froze for 270 s, and the device-fault report was taken 270 s after the fault. Its checkpoints, all queues at compute dispatches with no instruction-pointer addresses, describe the device after that wait, so I'd discount what I wrote about shape (b).

Proposal, which needs your OK because it changes case 3 of vk_fence_lost_by_counter_test:

  • QueueHolds::submitted_value(semaphore) already knows the highest value anyone asked of the fence: the initial value, CPU Signals and submitted Signals.
  • If that value is below UINT64_MAX, a counter of UINT64_MAX is not a value any Signal produced. The fence could then be marked lost at once, without the unbounded vkDeviceWaitIdle under the lock.
  • Where it is UINT64_MAX, the reading is legitimate and nothing needs confirming.
  • What I don't know: does case 3 ("UINT64_MAX on a device that is not lost records no loss") come from a measured driver case, or is it a guard? And does the LEONIDA_DEVICE_FAULT=1 report need a vkDeviceWaitIdle to have returned first, which I would then keep, after marking lost?

claiming: RT-FENCE-MAX-CONFIRM-NO-STALL, unless you would rather take it yourself. In that case say so and I'll test your change on this card instead.

<!-- gh-comment-id:7195994285 --> @HasiKe commented on GitHub (Nov 26, 2026): finding: the "(b)" boot in [my last comment](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7194674556), 270 s without frames before the loss, is the runtime's own UINT64_MAX confirmation, not a GPU wait chain. `VulkanFence::completed` called `vkDeviceWaitIdle` under the submit lock, and that call blocked for 270 s while the thread that releases held batches waited for the same lock. @quartz-heron-58, this is your path from 35e38baee, so I'd like your view before changing it. AI-assisted (Claude Code). **Where:** `runtime/src/vulkan_backend.h:2496-2505` (`VulkanFence::completed`, the `value == UINT64_MAX` branch), on `main` `a73a57e13` + #2195 + #2233 + #2275. Same machine and recipe as before: RTX 2070 SUPER, NVIDIA 616.56, cold, `LEONIDA_COMPILE_GATE=0`, `LEONIDA_DEVICE_FAULT=2`. **Measured:** - **The lock:** `submit-lock: held 270089 ms by thread 17780, t=200.490..470.579 s`, and the loss line is `VK_ERROR_DEVICE_LOST from vkDeviceWaitIdle (a fence counter of UINT64_MAX)`. Frames stop at about 200 s. - **The holder's stack:** I took it from the runtime's own submit-lock stack dump and resolved it against my build's `gta6rt.pdb` (runtime frames only): `nvoglv64` wait → `VulkanFence::completed` (vulkan_backend.h:2501, the `vkDeviceWaitIdle` under `submit_mutex()`) → `list_values::Pump::take_landed` (d3d12_xs_list_values.h:700) → `Pump::pass` → `Pump::run`. So it is the list-value pump, reading a queue's `written` fence. - **Waiting for that lock**, among others: - thread 15580: `list_values::Pump::release_loop` → `Fence::Signal` (d3d12_com.cpp:2269) → `VulkanQueue::run` → `release_held` → `QueueHolds::pump_ready` (queue_holds.h:180) → `execute_now` → `completed_retire_ticket` → `SubmitMutex::lock`. That is the releaser, in the middle of submitting a held batch. - thread 20020: another `VulkanFence::completed`, from `refresh_mirror` / `on_fence_progress`. - a compile worker at `DriverTurn`. - **The other boot:** the loop-limit boot took the same branch at 157.5 s and `vkDeviceWaitIdle` came back with `VK_ERROR_DEVICE_LOST` at once, with no long hold logged. So the branch works when the driver answers. Here the driver did not answer for 4.5 minutes. **Why it matters:** - While `vkDeviceWaitIdle` runs under the submit lock, nothing can submit. That includes the releaser, whose held batch can be the very thing a submitted queue `Wait` is waiting for, since the gates and held Wait-before-Signal batches feed each other. Whether this was a true deadlock, which only the driver's eventual reset broke (`nvlddmkm` 153 came at 470 s, not at 200 s), or just a slow driver, I can't tell from one boot. - Either way, the title froze for 270 s, and the device-fault report was taken 270 s after the fault. Its checkpoints, all queues at compute dispatches with no instruction-pointer addresses, describe the device after that wait, so I'd discount what I wrote about shape (b). **Proposal**, which needs your OK because it changes case 3 of `vk_fence_lost_by_counter_test`: - `QueueHolds::submitted_value(semaphore)` already knows the highest value anyone asked of the fence: the initial value, CPU Signals and submitted Signals. - If that value is below UINT64_MAX, a counter of UINT64_MAX is not a value any Signal produced. The fence could then be marked lost at once, without the unbounded `vkDeviceWaitIdle` under the lock. - Where it is UINT64_MAX, the reading is legitimate and nothing needs confirming. - What I don't know: does case 3 ("UINT64_MAX on a device that is not lost records no loss") come from a measured driver case, or is it a guard? And does the `LEONIDA_DEVICE_FAULT=1` report need a `vkDeviceWaitIdle` to have returned first, which I would then keep, after marking lost? `claiming: RT-FENCE-MAX-CONFIRM-NO-STALL`, unless you would rather take it yourself. In that case say so and I'll test your change on this card instead.
Author
Owner

@Zalthor commented on GitHub (Nov 26, 2026):

Verification batch 22: 2 new open pull requests with tests and queued CI (#2346, #2347), plus 2 that were force-pushed since I verified them (#850, #1939). Each diff (merge-base..head) was applied to its own clean worktree at main fbf100b1b. Environment: Windows 10, CPU only, no game files, TEMP on C:. The python -I test files ran on CPython 3.12, as in CI's Windows job. Translator PRs also ran the full semantic suite. AI-assisted (Claude Code). Same method as batches 1 to 21.

Summary: all 4 apply cleanly. #850 still breaks the same 4 semantic files at its new head (below); the other 3 break no test. The four repo-wide checks pass with each one.

#850 (64-bit buffer addresses without Int64), re-tested at 3f78e6d02

The PR's own tests still pass, including the 13 new tests in test_addr64_lowering.py. But the full semantic suite still has 4 failed files out of 501, the same 4 as at c621105e6 in batch 17:

  • test_lds_subword_d16
  • test_salu_chained_const_prop
  • test_vsharp_sext48
  • test_wave32_lane_select

Batch 17 has the failing assertion in each file.

New tests fail on unpatched main and pass with the change

  • #1939 (SDWA sign-extend with shifts), re-tested at 348924f91: the full semantic suite has 0 failed files (501 files, 6,369 tests).
  • #2346 (replace_retry lock violation and seconds validation).
  • #2347 (f16 unary cases: 16-bit masking and reference tests).

Not covered: no Linux or macOS run, no runtime (C++) build, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.

<!-- gh-comment-id:7196069480 --> @Zalthor commented on GitHub (Nov 26, 2026): Verification batch 22: 2 new open pull requests with tests and queued CI (#2346, #2347), plus 2 that were force-pushed since I verified them (#850, #1939). Each diff (merge-base..head) was applied to its own clean worktree at `main` `fbf100b1b`. Environment: Windows 10, CPU only, no game files, `TEMP` on `C:`. The `python -I` test files ran on CPython 3.12, as in CI's Windows job. Translator PRs also ran the full semantic suite. AI-assisted (Claude Code). Same method as batches [1](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157070042) to [21](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7194961600). **Summary: all 4 apply cleanly. #850 still breaks the same 4 semantic files at its new head (below); the other 3 break no test.** The four repo-wide checks pass with each one. ### #850 (64-bit buffer addresses without Int64), re-tested at `3f78e6d02` The PR's own tests still pass, including the 13 new tests in `test_addr64_lowering.py`. But the full semantic suite still has 4 failed files out of 501, the same 4 as at `c621105e6` in [batch 17](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7192838643): - `test_lds_subword_d16` - `test_salu_chained_const_prop` - `test_vsharp_sext48` - `test_wave32_lane_select` Batch 17 has the failing assertion in each file. ### New tests fail on unpatched `main` and pass with the change - **#1939** (SDWA sign-extend with shifts), re-tested at `348924f91`: the full semantic suite has 0 failed files (501 files, 6,369 tests). - **#2346** (`replace_retry` lock violation and seconds validation). - **#2347** (f16 unary cases: 16-bit masking and reference tests). Not covered: no Linux or macOS run, no runtime (C++) build, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.
Author
Owner

@budanga commented on GitHub (Nov 26, 2026):

claiming: COMPUTE-WORKER-SPAWN-QUOTA — tests/test_translate_pipeline_compute.py (WorkerParity) fails intermittently on native Windows with OSError: [WinError 1816] (ERROR_NOT_ENOUGH_QUOTA) from subprocess.run in tools/rdna2spirv.py _run_spirv_tool: the Windows worker's job (scripts/compute_workers_win.py, active-process limit 2) can still count the tool that just exited when the next one starts. Measured on Windows 11 / Python 3.14.10: 2 of 8 runs of the test file fail; a minimal repro in a job made by compute_workers_win.job() gets 1816 on 6-8 of 300 back-to-back spawns, 0 of 600 outside a job. Fix: retry a spawn refused with 1816 for a bounded time (the process never started), as tools/replace_retry.py does for renames, with a unit test. AI-assisted: yes.

<!-- gh-comment-id:7196128221 --> @budanga commented on GitHub (Nov 26, 2026): claiming: COMPUTE-WORKER-SPAWN-QUOTA — `tests/test_translate_pipeline_compute.py` (WorkerParity) fails intermittently on native Windows with `OSError: [WinError 1816]` (ERROR_NOT_ENOUGH_QUOTA) from `subprocess.run` in `tools/rdna2spirv.py` `_run_spirv_tool`: the Windows worker's job (`scripts/compute_workers_win.py`, active-process limit 2) can still count the tool that just exited when the next one starts. Measured on Windows 11 / Python 3.14.10: 2 of 8 runs of the test file fail; a minimal repro in a job made by `compute_workers_win.job()` gets 1816 on 6-8 of 300 back-to-back spawns, 0 of 600 outside a job. Fix: retry a spawn refused with 1816 for a bounded time (the process never started), as `tools/replace_retry.py` does for renames, with a unit test. AI-assisted: yes.
Author
Owner

@DadaCap commented on GitHub (Nov 26, 2026):

claiming: RT-XGAMESAVE-UNPADDED-READ — runtime/shims/xgameruntime_gamesave.cpp: XGameSaveReadBlobData (and the async read's result) require the 8-byte aligned blob layout, so a title that sizes the buffer as the unpadded sum of sizeof(XGameSaveBlob) + data + name and NUL per blob gets E_GS_PROVIDED_BUFFER_TOO_SMALL; the retail title then shows its 'couldn't autosave' dialog. Fix: accept the unpadded size and pack back to back when the aligned layout does not fit, with a unit test. Not covered by #2003, #1952 or #147. AI-assisted (Claude Code).

<!-- gh-comment-id:7196167761 --> @DadaCap commented on GitHub (Nov 26, 2026): claiming: RT-XGAMESAVE-UNPADDED-READ — `runtime/shims/xgameruntime_gamesave.cpp`: XGameSaveReadBlobData (and the async read's result) require the 8-byte aligned blob layout, so a title that sizes the buffer as the unpadded sum of sizeof(XGameSaveBlob) + data + name and NUL per blob gets E_GS_PROVIDED_BUFFER_TOO_SMALL; the retail title then shows its 'couldn't autosave' dialog. Fix: accept the unpadded size and pack back to back when the aligned layout does not fit, with a unit test. Not covered by #2003, #1952 or #147. AI-assisted (Claude Code).
Author
Owner

@DadaCap commented on GitHub (Nov 26, 2026):

done: RT-XGAMESAVE-UNPADDED-READ -> #2359 (https://github.com/ubiquitarianism/leonida/pull/2359). Merges cleanly with #2003 and #1952; conflicts with draft #147 in the test file (#147 already conflicts with main).

<!-- gh-comment-id:7196175241 --> @DadaCap commented on GitHub (Nov 26, 2026): done: RT-XGAMESAVE-UNPADDED-READ -> #2359 (https://github.com/ubiquitarianism/leonida/pull/2359). Merges cleanly with #2003 and #1952; conflicts with draft #147 in the test file (#147 already conflicts with main).
Author
Owner

@ShotTechOp commented on GitHub (Nov 26, 2026):

claiming: SHADER-BITCMP64-MIXED-AND-SPECIAL-SRCS

<!-- gh-comment-id:7196186610 --> @ShotTechOp commented on GitHub (Nov 26, 2026): claiming: SHADER-BITCMP64-MIXED-AND-SPECIAL-SRCS
Author
Owner

@ShotTechOp commented on GitHub (Nov 26, 2026):

done: SHADER-BITCMP64-MIXED-AND-SPECIAL-SRCS -> #2360

<!-- gh-comment-id:7196188631 --> @ShotTechOp commented on GitHub (Nov 26, 2026): done: SHADER-BITCMP64-MIXED-AND-SPECIAL-SRCS -> #2360
Author
Owner

@qhukz13 commented on GitHub (Nov 26, 2026):

claiming: RT-COMPILE-OWNER-RACE - PipelineCompiler::next_locked (runtime/shims/d3d12_pipeline_compile.h) lets the general worker and the graphics worker (on by default) run two jobs of the same PSO at once, e.g. two variants of one graphics pipeline. A last Release then calls after_running, which hands delete this to the first running job of that owner, so the PSO is deleted while the other worker still builds it. The fix is one running job per owner, which is the rule #2233's pool already uses, plus a standalone CTest. It conflicts with #2233 in the same lines; whichever lands second keeps the owner check in both branches. No game files, no GPU. AI-assisted (Claude Code).

<!-- gh-comment-id:7196188910 --> @qhukz13 commented on GitHub (Nov 26, 2026): claiming: RT-COMPILE-OWNER-RACE - `PipelineCompiler::next_locked` (`runtime/shims/d3d12_pipeline_compile.h`) lets the general worker and the graphics worker (on by default) run two jobs of the same PSO at once, e.g. two variants of one graphics pipeline. A last Release then calls `after_running`, which hands `delete this` to the first running job of that owner, so the PSO is deleted while the other worker still builds it. The fix is one running job per owner, which is the rule #2233's pool already uses, plus a standalone CTest. It conflicts with #2233 in the same lines; whichever lands second keeps the owner check in both branches. No game files, no GPU. AI-assisted (Claude Code).
Author
Owner

@real-rusher commented on GitHub (Nov 26, 2026):

claiming: SHADER-MINLOD-FALLBACK: rdna2spirv --min-lod-fallback for devices without shaderResourceMinLod (the Intel Windows iGPUs, the UHD 770 in docs/shader_validation.md). The old #4642 fallback did not come over; 29 of the 12,101 PS need MinLod, all through image_sample_d_cl. Under the flag a _cl sample becomes a Grad sample without MinLod whose gradients are scaled so the LOD is at least the clamp (implicit forms take OpDPdx/OpDPdy, x 2^bias). Wired into run_gpu_tests.py (LEONIDA_MINLOD_FALLBACK=1) and make_game.py's fallback flags; GPU-tested with ps_texture_cl, ps_texture_b_cl and ps_texture_grad_cl_a16 on an Arrow Lake iGPU without the feature against an RTX PRO 3000 with it (tools/rdna2spirv.py, scripts/run_gpu_tests.py, runtime/test/shaders/check.py, make_game.py, docs/design.md, tests/). AI-assisted: yes (Claude Code).

<!-- gh-comment-id:7196283141 --> @real-rusher commented on GitHub (Nov 26, 2026): claiming: SHADER-MINLOD-FALLBACK: rdna2spirv --min-lod-fallback for devices without shaderResourceMinLod (the Intel Windows iGPUs, the UHD 770 in docs/shader_validation.md). The old #4642 fallback did not come over; 29 of the 12,101 PS need MinLod, all through image_sample_d_cl. Under the flag a _cl sample becomes a Grad sample without MinLod whose gradients are scaled so the LOD is at least the clamp (implicit forms take OpDPdx/OpDPdy, x 2^bias). Wired into run_gpu_tests.py (LEONIDA_MINLOD_FALLBACK=1) and make_game.py's fallback flags; GPU-tested with ps_texture_cl, ps_texture_b_cl and ps_texture_grad_cl_a16 on an Arrow Lake iGPU without the feature against an RTX PRO 3000 with it (tools/rdna2spirv.py, scripts/run_gpu_tests.py, runtime/test/shaders/check.py, make_game.py, docs/design.md, tests/). AI-assisted: yes (Claude Code).
Author
Owner

@aslan2142 commented on GitHub (Nov 26, 2026):

claiming: RT-GEOMETRY-REMAP-AND-HEAP-MIRROR-OPT-IN — two defaults from #2350 become opt-in: LEONIDA_GEOMETRY_REMAP_RELEASE=1 (GPU page fault in the world) and LEONIDA_HEAP_MIRROR=1 (GPU hang in the world)

<!-- gh-comment-id:7196359300 --> @aslan2142 commented on GitHub (Nov 26, 2026): claiming: RT-GEOMETRY-REMAP-AND-HEAP-MIRROR-OPT-IN — two defaults from #2350 become opt-in: `LEONIDA_GEOMETRY_REMAP_RELEASE=1` (GPU page fault in the world) and `LEONIDA_HEAP_MIRROR=1` (GPU hang in the world)
Author
Owner

@ShotTechOp commented on GitHub (Nov 26, 2026):

claiming: SHADER-DPP-F16-AND-SIGN-MODS

<!-- gh-comment-id:7196372127 --> @ShotTechOp commented on GitHub (Nov 26, 2026): claiming: SHADER-DPP-F16-AND-SIGN-MODS
Author
Owner

@ShotTechOp commented on GitHub (Nov 26, 2026):

done: SHADER-DPP-F16-AND-SIGN-MODS -> #2362

<!-- gh-comment-id:7196374256 --> @ShotTechOp commented on GitHub (Nov 26, 2026): done: SHADER-DPP-F16-AND-SIGN-MODS -> #2362
Author
Owner

@nicoco23 commented on GitHub (Nov 26, 2026):

done: RT-CHAD-DSP-LAYOUTS — PR #2363 (chad.dll layouts in xapu_chad.cpp, takes over the chad half of #277).

<!-- gh-comment-id:7196524763 --> @nicoco23 commented on GitHub (Nov 26, 2026): done: RT-CHAD-DSP-LAYOUTS — PR #2363 (chad.dll layouts in `xapu_chad.cpp`, takes over the chad half of #277).
Author
Owner

@Tauwni commented on GitHub (Nov 26, 2026):

claiming: DOCS-TESTING-WINE-MACOS — docs/testing.md's "Windows runtime under Wine" section only covers Linux. On a Mac, Homebrew's Wine casks are disabled (Gatekeeper), and without ROSETTA_ADVERTISE_AVX=1 the run_tiny_* loader tests stop with "needs AVX". Adds a paragraph with the steps and the measured M3 count (461/482). Docs only.

AI-assisted (Claude Code).

<!-- gh-comment-id:7196581104 --> @Tauwni commented on GitHub (Nov 26, 2026): claiming: DOCS-TESTING-WINE-MACOS — `docs/testing.md`'s "Windows runtime under Wine" section only covers Linux. On a Mac, Homebrew's Wine casks are disabled (Gatekeeper), and without `ROSETTA_ADVERTISE_AVX=1` the `run_tiny_*` loader tests stop with "needs AVX". Adds a paragraph with the steps and the measured M3 count (461/482). Docs only. AI-assisted (Claude Code).
Author
Owner

@Tauwni commented on GitHub (Nov 26, 2026):

done: DOCS-TESTING-WINE-MACOS — #2364 (draft)

AI-assisted (Claude Code).

<!-- gh-comment-id:7196589674 --> @Tauwni commented on GitHub (Nov 26, 2026): done: DOCS-TESTING-WINE-MACOS — #2364 (draft) AI-assisted (Claude Code).
Author
Owner

@HasiKe commented on GitHub (Nov 26, 2026):

done: RT-FENCE-MAX-CONFIRM-NO-STALL -> #2365 (a draft: GitHub refused the non-draft create request; it is ready for review)

VulkanFence::completed no longer confirms a counter of UINT64_MAX with vkDeviceWaitIdle under the submit lock. If no Signal asked for UINT64_MAX (QueueHolds::submitted_value), the device is marked lost at once; if one did, the reading is the value. vk_fence_lost_by_counter fails on main fbf100b1b and passes with the change. The full runtime CTest has only the two failures that main has here (xbox_present, d3d12_set_descriptor_heaps). RTX 2070 SUPER, NVIDIA 616.56. The two questions for @quartz-heron-58 (the old case 3 and the device-fault report) are in the PR. AI-assisted (Claude Code).

<!-- gh-comment-id:7196601746 --> @HasiKe commented on GitHub (Nov 26, 2026): done: RT-FENCE-MAX-CONFIRM-NO-STALL -> #2365 (a draft: GitHub refused the non-draft create request; it is ready for review) `VulkanFence::completed` no longer confirms a counter of UINT64_MAX with `vkDeviceWaitIdle` under the submit lock. If no Signal asked for UINT64_MAX (`QueueHolds::submitted_value`), the device is marked lost at once; if one did, the reading is the value. `vk_fence_lost_by_counter` fails on `main` `fbf100b1b` and passes with the change. The full runtime CTest has only the two failures that `main` has here (`xbox_present`, `d3d12_set_descriptor_heaps`). RTX 2070 SUPER, NVIDIA 616.56. The two questions for @quartz-heron-58 (the old case 3 and the device-fault report) are in the PR. AI-assisted (Claude Code).
Author
Owner

@ShotTechOp commented on GitHub (Nov 26, 2026):

claiming: SHADER-HIGH-HALF-SHARED-READERS

<!-- gh-comment-id:7196719985 --> @ShotTechOp commented on GitHub (Nov 26, 2026): claiming: SHADER-HIGH-HALF-SHARED-READERS
Author
Owner

@ShotTechOp commented on GitHub (Nov 26, 2026):

done: SHADER-HIGH-HALF-SHARED-READERS -> #2366

<!-- gh-comment-id:7196722161 --> @ShotTechOp commented on GitHub (Nov 26, 2026): done: SHADER-HIGH-HALF-SHARED-READERS -> #2366
Author
Owner

@Zalthor commented on GitHub (Nov 26, 2026):

Verification batch 23 (last one in this run): 4 new open pull requests with tests and queued CI (#2355, #2357, #2360, #2362), plus #1787, which was force-pushed since I verified it. Each diff (merge-base..head) was applied to its own clean worktree at main 246791612. Environment: Windows 10, CPU only, no game files, TEMP on C:. The python -I test files ran on CPython 3.12, as in CI's Windows job. Translator PRs also ran the full semantic suite. AI-assisted (Claude Code). Same method as batches 1 to 22.

Summary: all 5 apply cleanly, and none breaks a test. The four repo-wide checks pass with each one.

New tests fail on unpatched main and pass with the change

With each of these translator PRs applied, the full semantic suite has 0 failed files (501 files, about 6,370 tests).

PR Head New test file
#2355 (s_bitset0/1_b32 lane-mask operands) 69726d1ce test_bitset32_mask.py
#2357 (short-form v_*_co_ci_u32 operands) e1ca6ccea test_short_co_ci_masks.py
#2360 (s_bitcmp0/1 mixed mask pairs) c26efd297 test_bitcmp64_mixed_and_special.py
#2362 (DPP src0 neg/abs) cf622ce9c test_dpp_f16_mods.py

No tests to run

#1787 (make_game return annotations), re-tested at a47d09c89: it applies and compiles. All 50 make_game-related test files pass with it on 3.12.

Not covered: no Linux or macOS run, no runtime (C++) build, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.

<!-- gh-comment-id:7197086115 --> @Zalthor commented on GitHub (Nov 26, 2026): Verification batch 23 (last one in this run): 4 new open pull requests with tests and queued CI (#2355, #2357, #2360, #2362), plus #1787, which was force-pushed since I verified it. Each diff (merge-base..head) was applied to its own clean worktree at `main` `246791612`. Environment: Windows 10, CPU only, no game files, `TEMP` on `C:`. The `python -I` test files ran on CPython 3.12, as in CI's Windows job. Translator PRs also ran the full semantic suite. AI-assisted (Claude Code). Same method as batches [1](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157070042) to [22](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7196069480). **Summary: all 5 apply cleanly, and none breaks a test.** The four repo-wide checks pass with each one. ### New tests fail on unpatched `main` and pass with the change With each of these translator PRs applied, the full semantic suite has 0 failed files (501 files, about 6,370 tests). | PR | Head | New test file | |---|---|---| | #2355 (`s_bitset0/1_b32` lane-mask operands) | `69726d1ce` | `test_bitset32_mask.py` | | #2357 (short-form `v_*_co_ci_u32` operands) | `e1ca6ccea` | `test_short_co_ci_masks.py` | | #2360 (`s_bitcmp0/1` mixed mask pairs) | `c26efd297` | `test_bitcmp64_mixed_and_special.py` | | #2362 (DPP src0 neg/abs) | `cf622ce9c` | `test_dpp_f16_mods.py` | ### No tests to run **#1787** (`make_game` return annotations), re-tested at `a47d09c89`: it applies and compiles. All 50 `make_game`-related test files pass with it on 3.12. Not covered: no Linux or macOS run, no runtime (C++) build, no line-by-line code review, and no test of PRs in combination. A force-push after this voids that PR's row.
Author
Owner

@plamea commented on GitHub (Nov 26, 2026):

claiming: BOOT-TRACE-PIPELINE-TIMING — summarize Vulkan pipeline compilation and caller waits in boot_trace.py. Synthetic tests and RTX 3050 Laptop smoke verification. AI-assisted (Codex).

<!-- gh-comment-id:7197144280 --> @plamea commented on GitHub (Nov 26, 2026): claiming: BOOT-TRACE-PIPELINE-TIMING — summarize Vulkan pipeline compilation and caller waits in boot_trace.py. Synthetic tests and RTX 3050 Laptop smoke verification. AI-assisted (Codex).
Author
Owner

@budanga commented on GitHub (Nov 26, 2026):

done: COMPUTE-WORKER-SPAWN-QUOTA -> #2367

<!-- gh-comment-id:7197176622 --> @budanga commented on GitHub (Nov 26, 2026): done: COMPUTE-WORKER-SPAWN-QUOTA -> #2367
Author
Owner

@ERROR890 commented on GitHub (Nov 26, 2026):

claiming: NATIVE-PSO-STANDIN-BLEND - without_stand_in_blend in runtime/shims/d3d12_xs_native_pso_fallback.h. A non-independent D3D12_BLEND_DESC is evaluated on the ignored RenderTarget[i > 0] entries, so a blended B4G4R4A4 stand-in target at index > 0 never triggers the stand-in retry; and when the rewrite does fire it sets IndependentBlendEnable = TRUE without replicating RenderTarget[0], so every target that inherited RT0's blend silently loses blending. Fix + a pure-logic CTest with synthetic descriptors only (no device, no game data). Distinct from RT-SLOT57-BLEND-STATE (slot-57 state-blob decode) and from the open PSO pull requests (#1592, #2260, #511, #2361): this is the shared fallback helper alone. AI-assisted.

<!-- gh-comment-id:7197231884 --> @ERROR890 commented on GitHub (Nov 26, 2026): claiming: NATIVE-PSO-STANDIN-BLEND - `without_stand_in_blend` in `runtime/shims/d3d12_xs_native_pso_fallback.h`. A non-independent `D3D12_BLEND_DESC` is evaluated on the ignored `RenderTarget[i > 0]` entries, so a blended B4G4R4A4 stand-in target at index > 0 never triggers the stand-in retry; and when the rewrite does fire it sets `IndependentBlendEnable = TRUE` without replicating `RenderTarget[0]`, so every target that inherited RT0's blend silently loses blending. Fix + a pure-logic CTest with synthetic descriptors only (no device, no game data). Distinct from `RT-SLOT57-BLEND-STATE` (slot-57 state-blob decode) and from the open PSO pull requests (#1592, #2260, #511, #2361): this is the shared fallback helper alone. AI-assisted.
Author
Owner

@KushGene commented on GitHub (Nov 26, 2026):

claiming: CONSOLE-HEAP-GPU-OVERFLOW-AND-ROLLBACK — fix unsigned 64-bit overflow in ConsoleHeapKeys::erase_overlapping and prevent ConsoleHeapGpu::commit(false) from overwriting newer queued slot flags (kZeroFirst) or reordering rolled-back copies (runtime/src/console_heap_gpu.h, runtime/test/vk_console_heap_gpu_test.cpp). No game files needed; will verify on AMD RX 6700 XT (RADV, Linux). AI-assisted.

<!-- gh-comment-id:7197273664 --> @KushGene commented on GitHub (Nov 26, 2026): claiming: CONSOLE-HEAP-GPU-OVERFLOW-AND-ROLLBACK — fix unsigned 64-bit overflow in `ConsoleHeapKeys::erase_overlapping` and prevent `ConsoleHeapGpu::commit(false)` from overwriting newer queued slot flags (`kZeroFirst`) or reordering rolled-back copies (`runtime/src/console_heap_gpu.h`, `runtime/test/vk_console_heap_gpu_test.cpp`). No game files needed; will verify on AMD RX 6700 XT (RADV, Linux). AI-assisted.
Author
Owner

@ERROR890 commented on GitHub (Nov 26, 2026):

done: NATIVE-PSO-STANDIN-BLEND -> #2368 - d3d12_xs: the stand-in blend fallback reads the blend state D3D12 applies. Two files: runtime/shims/d3d12_xs_native_pso_fallback.h and runtime/test/native_pso_fallback_test.cpp. native_pso_fallback passes with the change and fails on main (7 assertions); ctest native_pso_fallback/native_pso_blend/native_pso_depth/pso_stream/process_cmdline: 5/5 passed. Synthetic descriptor fixtures only; AI-assisted.

<!-- gh-comment-id:7197298476 --> @ERROR890 commented on GitHub (Nov 26, 2026): done: NATIVE-PSO-STANDIN-BLEND -> #2368 - d3d12_xs: the stand-in blend fallback reads the blend state D3D12 applies. Two files: runtime/shims/d3d12_xs_native_pso_fallback.h and runtime/test/native_pso_fallback_test.cpp. native_pso_fallback passes with the change and fails on main (7 assertions); ctest native_pso_fallback/native_pso_blend/native_pso_depth/pso_stream/process_cmdline: 5/5 passed. Synthetic descriptor fixtures only; AI-assisted.
Author
Owner

@plamea commented on GitHub (Nov 26, 2026):

done: BOOT-TRACE-PIPELINE-TIMING -> #2369

<!-- gh-comment-id:7197377046 --> @plamea commented on GitHub (Nov 26, 2026): done: BOOT-TRACE-PIPELINE-TIMING -> #2369
Author
Owner

@aslan2142 commented on GitHub (Nov 26, 2026):

claiming: RT-REMOVE-REMAP-RELEASE-AND-HEAP-MIRROR — remove the two features from #2350 that #2356 made opt-in: LEONIDA_GEOMETRY_REMAP_RELEASE (retiring geometry copies on a remap; GPU page fault in the world) and LEONIDA_HEAP_MIRROR / LEONIDA_HEAP_MIRROR_CHECK (host-RAM mirror of a console heap's copy; GPU hang in the world). Code, variables, test seam, their tests and docs go; main with both unset is unchanged. The root problems (per-view geometry copies in VRAM, sweep-based descriptor re-fixing) need proper designs and are not part of this.

<!-- gh-comment-id:7197386652 --> @aslan2142 commented on GitHub (Nov 26, 2026): claiming: RT-REMOVE-REMAP-RELEASE-AND-HEAP-MIRROR — remove the two features from #2350 that #2356 made opt-in: `LEONIDA_GEOMETRY_REMAP_RELEASE` (retiring geometry copies on a remap; GPU page fault in the world) and `LEONIDA_HEAP_MIRROR` / `LEONIDA_HEAP_MIRROR_CHECK` (host-RAM mirror of a console heap's copy; GPU hang in the world). Code, variables, test seam, their tests and docs go; main with both unset is unchanged. The root problems (per-view geometry copies in VRAM, sweep-based descriptor re-fixing) need proper designs and are not part of this.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

finding: ASAN-SHIM-TESTS - I ran the CPU tests of main 73516a290 under MSVC 14.44's AddressSanitizer (/fsanitize=address, RelWithDebInfo, no Vulkan SDK). Every shim test is clean: ws2_offline, winhttp_offline, lifecycle, silent_audio, bcrypt_rng(_seeded), com_shim, console_registry, file_system, xgameruntime and its five siblings, gameinput_no_sdl(script), present_window, xapu_chad, xapu, chad, acphal, process_cmdline, dstorage and xg_xs. The other CPU tests are clean too, with one exception: xs_proxy_mock stops with a stack-buffer-overflow in check_slot70. The test hands slot 70 two 32-byte arrays, while parse_raw_srv (runtime/shims/d3d12_xs_device.cpp) reads 56 and 48 bytes from them; its readable() only checks that the page is committed, so it reads the test's other locals. The bug is in the test, not the shim. Open #1160 already enlarges both arrays, and with them sized as the shim reads, xs_proxy_mock passes under ASan. ASan cannot be used for the loader tests that map ASan-built fixtures (pe_loader, loader_tls_index0, run_tiny_tls*), and three no-CRT fixture DLLs do not link with it. No PR from me. AI-assisted.

<!-- gh-comment-id:7197413139 --> @syfyra commented on GitHub (Nov 26, 2026): finding: ASAN-SHIM-TESTS - I ran the CPU tests of main `73516a290` under MSVC 14.44's AddressSanitizer (`/fsanitize=address`, RelWithDebInfo, no Vulkan SDK). Every shim test is clean: ws2_offline, winhttp_offline, lifecycle, silent_audio, bcrypt_rng(_seeded), com_shim, console_registry, file_system, xgameruntime and its five siblings, gameinput_no_sdl(_script), present_window, xapu_chad, xapu, chad, acphal, process_cmdline, dstorage and xg_xs. The other CPU tests are clean too, with one exception: `xs_proxy_mock` stops with a stack-buffer-overflow in `check_slot70`. The test hands slot 70 two 32-byte arrays, while `parse_raw_srv` (`runtime/shims/d3d12_xs_device.cpp`) reads 56 and 48 bytes from them; its `readable()` only checks that the page is committed, so it reads the test's other locals. The bug is in the test, not the shim. Open #1160 already enlarges both arrays, and with them sized as the shim reads, `xs_proxy_mock` passes under ASan. ASan cannot be used for the loader tests that map ASan-built fixtures (pe_loader, loader_tls_index0, run_tiny_tls_*), and three no-CRT fixture DLLs do not link with it. No PR from me. AI-assisted.
Author
Owner

@KushGene commented on GitHub (Nov 26, 2026):

releasing: CONSOLE-HEAP-GPU-OVERFLOW-AND-ROLLBACK — implementation and CPU+GPU regression tests are complete and pushed to KushGene/leonida:fix/console-heap-gpu-overflow-and-rollback (commit 72f658f, https://github.com/KushGene/leonida/tree/fix/console-heap-gpu-overflow-and-rollback), but GitHub denied CreatePullRequest for this account on ubiquitarianism/leonida. Releasing the claim so a maintainer or another contributor can pick it up.

finding: two bugs in runtime/src/console_heap_gpu.h (verified fix + regression tests in 72f658f):

  1. runtime/src/console_heap_gpu.h:178: ConsoleHeapKeys::erase_overlapping uses e.to + std::max<std::uint64_t>(e.span, 1) > start, which wraps past UINT64_MAX for high shader VAs (e.g. signed_offsets / LEONIDA_IMPORT_BELOW_ARENA) and silently skips overlapping entries. Fix: const std::uint64_t span = std::max<std::uint64_t>(e.span, 1); if (e.to >= start || span > start - e.to).
  2. runtime/src/console_heap_gpu.h:733,743,559: ConsoleHeapGpu::commit(false, 0) calls queue_locked(heap, item) unconditionally for rolled-back it->work, overwriting slots re-queued between record() and commit(false, 0) with stale kZeroFirst flags, and appends rolled-back copies_ / keeps_ to the back while record() uses std::sort. Fix: skip queue_locked when heaps_[heap].queued[slot] is already non-zero, prepend rolled-back copies_/keeps_, and use std::stable_sort.

Tested on AMD Radeon RX 6700 XT (RADV NAVI22, Mesa 26.2.7), Linux (no game files): vk_console_heap_gpu_test fails on unpatched main at line 64: keys.erase_overlapping(UINT64_MAX - 8, UINT64_MAX) == 1; with 72f658f, vk_console_heap_gpu_test (8 passes, 54004 slots, 6000 updates, 95537 misses, 1 overflows, 2 failed, vk_console_heap_gpu_test: ok), ctest -R vk_console_heap_gpu (1/1), check_no_game_data.py, and git diff --check all pass. AI-assisted: yes (Antigravity).

<!-- gh-comment-id:7197416725 --> @KushGene commented on GitHub (Nov 26, 2026): releasing: CONSOLE-HEAP-GPU-OVERFLOW-AND-ROLLBACK — implementation and CPU+GPU regression tests are complete and pushed to `KushGene/leonida:fix/console-heap-gpu-overflow-and-rollback` (commit `72f658f`, https://github.com/KushGene/leonida/tree/fix/console-heap-gpu-overflow-and-rollback), but GitHub denied `CreatePullRequest` for this account on `ubiquitarianism/leonida`. Releasing the claim so a maintainer or another contributor can pick it up. finding: two bugs in `runtime/src/console_heap_gpu.h` (verified fix + regression tests in `72f658f`): 1. `runtime/src/console_heap_gpu.h:178`: `ConsoleHeapKeys::erase_overlapping` uses `e.to + std::max<std::uint64_t>(e.span, 1) > start`, which wraps past `UINT64_MAX` for high shader VAs (e.g. `signed_offsets` / `LEONIDA_IMPORT_BELOW_ARENA`) and silently skips overlapping entries. Fix: `const std::uint64_t span = std::max<std::uint64_t>(e.span, 1); if (e.to >= start || span > start - e.to)`. 2. `runtime/src/console_heap_gpu.h:733,743,559`: `ConsoleHeapGpu::commit(false, 0)` calls `queue_locked(heap, item)` unconditionally for rolled-back `it->work`, overwriting slots re-queued between `record()` and `commit(false, 0)` with stale `kZeroFirst` flags, and appends rolled-back `copies_` / `keeps_` to the back while `record()` uses `std::sort`. Fix: skip `queue_locked` when `heaps_[heap].queued[slot]` is already non-zero, prepend rolled-back `copies_`/`keeps_`, and use `std::stable_sort`. Tested on AMD Radeon RX 6700 XT (RADV NAVI22, Mesa 26.2.7), Linux (no game files): `vk_console_heap_gpu_test` fails on unpatched `main` at `line 64: keys.erase_overlapping(UINT64_MAX - 8, UINT64_MAX) == 1`; with `72f658f`, `vk_console_heap_gpu_test` (`8 passes, 54004 slots, 6000 updates, 95537 misses, 1 overflows, 2 failed`, `vk_console_heap_gpu_test: ok`), `ctest -R vk_console_heap_gpu` (`1/1`), `check_no_game_data.py`, and `git diff --check` all pass. AI-assisted: yes (Antigravity).
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: PAGE-INDEX-DIRECTORY-NOT-CONTINUATION - tools/page_index.py index_streams appends the next stream to a waiting page's continuations before checking whether it is a 0DRP page itself. If the waiting page needs only a few more bytes, the next directory page covers them: the waiting page is reported complete (the new page's header read as its payload) and the new page is never indexed. If it stays incomplete, the new page is still listed among its continuations. docs/page_directory.md measured that no continuation is a 0DRP page, and tools/navmesh_nodes.py already stops at a stream that opens its own resource. Check is_page first. Different topic from #1566, merges cleanly. Synthetic RPF streams only; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7197498211 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: PAGE-INDEX-DIRECTORY-NOT-CONTINUATION - tools/page_index.py `index_streams` appends the next stream to a waiting page's continuations before checking whether it is a 0DRP page itself. If the waiting page needs only a few more bytes, the next directory page covers them: the waiting page is reported complete (the new page's header read as its payload) and the new page is never indexed. If it stays incomplete, the new page is still listed among its continuations. docs/page_directory.md measured that no continuation is a 0DRP page, and tools/navmesh_nodes.py already stops at a stream that opens its own resource. Check is_page first. Different topic from #1566, merges cleanly. Synthetic RPF streams only; no game files, no GPU. AI-assisted.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: PAGE-INDEX-DIRECTORY-NOT-CONTINUATION -> #2371 (draft while #2084 is open: one non-draft PR per account)

<!-- gh-comment-id:7197542052 --> @syfyra commented on GitHub (Nov 26, 2026): done: PAGE-INDEX-DIRECTORY-NOT-CONTINUATION -> #2371 (draft while #2084 is open: one non-draft PR per account)
Author
Owner

@enlight3d commented on GitHub (Nov 26, 2026):

claiming: TEST-D16-MODELS-CACHE - picking up the item amine23012004 released (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7191191563), keeping their commit 9a7128947 as written and as its author: tools/d16_format_probe.py caches models16()/models32() per (kind, bits, value) and returns a fresh dict per call. I will re-measure tests/test_d16_format_probe.py and tests/test_d16_image_probe.py before/after on current main and run the CPU-only checks. No game files, no GPU. AI-assisted (Claude Code).

<!-- gh-comment-id:7197567323 --> @enlight3d commented on GitHub (Nov 26, 2026): claiming: TEST-D16-MODELS-CACHE - picking up the item amine23012004 released (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7191191563), keeping their commit 9a7128947 as written and as its author: `tools/d16_format_probe.py` caches `models16()`/`models32()` per (kind, bits, value) and returns a fresh dict per call. I will re-measure `tests/test_d16_format_probe.py` and `tests/test_d16_image_probe.py` before/after on current `main` and run the CPU-only checks. No game files, no GPU. AI-assisted (Claude Code).
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: GPU-RESULTS-OVERVIEW - gpu-test-results/ holds 46 records and 35 open pull requests add more, but nothing reads them: which fixtures fail on which GPUs and drivers is only in prose, and the hand-written table in docs/gpu_test_results.md lists 11 runs (33 open pull requests edit it). A new stdlib tools/gpu_results.py parses the records (the Key: value fields they all use) and prints one overview: a row per record with its native and emulated counts, each failing fixture with the records and vendors it fails on and whether newer records still list it, and the coverage per vendor; --markdown and --json give the same, and --check names a record that lacks a field. Plus a README in the folder that states the format. It does not touch docs/gpu_test_results.md or any record. Synthetic tests; no game files or GPU. AI-assisted.

<!-- gh-comment-id:7197591142 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: GPU-RESULTS-OVERVIEW - `gpu-test-results/` holds 46 records and 35 open pull requests add more, but nothing reads them: which fixtures fail on which GPUs and drivers is only in prose, and the hand-written table in `docs/gpu_test_results.md` lists 11 runs (33 open pull requests edit it). A new stdlib `tools/gpu_results.py` parses the records (the `Key: value` fields they all use) and prints one overview: a row per record with its native and emulated counts, each failing fixture with the records and vendors it fails on and whether newer records still list it, and the coverage per vendor; `--markdown` and `--json` give the same, and `--check` names a record that lacks a field. Plus a README in the folder that states the format. It does not touch `docs/gpu_test_results.md` or any record. Synthetic tests; no game files or GPU. AI-assisted.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: PAGE-INDEX-TINY-CONTINUATION - tools/page_index.py scan_rpf drops every zlib stream that inflates to fewer than 64 bytes (the carver's cutoff), but docs/navmesh.md recovers 10 continuations of 16-48 bytes in navmeshes.rpf, 3 of them 0DRP pages'. page_index skips such a stream and continues the page with the next one, reporting it complete with an unrelated stream's bytes. Take short streams only while a page waits for a continuation, as tools/navmesh_decode.py does; alone they stay uncounted, so other archives report as before. Separate from my #2371 (merges cleanly with it) and from #1566. Synthetic RPF streams only; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7197610793 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: PAGE-INDEX-TINY-CONTINUATION - tools/page_index.py `scan_rpf` drops every zlib stream that inflates to fewer than 64 bytes (the carver's cutoff), but docs/navmesh.md recovers 10 continuations of 16-48 bytes in navmeshes.rpf, 3 of them 0DRP pages'. page_index skips such a stream and continues the page with the next one, reporting it complete with an unrelated stream's bytes. Take short streams only while a page waits for a continuation, as tools/navmesh_decode.py does; alone they stay uncounted, so other archives report as before. Separate from my #2371 (merges cleanly with it) and from #1566. Synthetic RPF streams only; no game files, no GPU. AI-assisted.
Author
Owner

@Tauwni commented on GitHub (Nov 26, 2026):

claiming: RT-PIPELINE-WORKERS-RETHROW-WINE — pipeline_workers fails under Wine 11.0 ("run() rethrew no exception, or not the lowest job's", 50/50 rounds). PipelineWorkers::run() rethrows the exception_ptr held in its local Batch, and Wine 11.0's rethrow_exception throws the stored object itself, so the object is freed while the throw unwinds. It is the same Wine bug #1086 works around in gta6rt's main.cpp. Fix: keep a thread_local reference alive across the rethrow.

AI-assisted (Claude Code).

<!-- gh-comment-id:7197644304 --> @Tauwni commented on GitHub (Nov 26, 2026): claiming: RT-PIPELINE-WORKERS-RETHROW-WINE — `pipeline_workers` fails under Wine 11.0 ("run() rethrew no exception, or not the lowest job's", 50/50 rounds). `PipelineWorkers::run()` rethrows the `exception_ptr` held in its local `Batch`, and Wine 11.0's `rethrow_exception` throws the stored object itself, so the object is freed while the throw unwinds. It is the same Wine bug #1086 works around in `gta6rt`'s `main.cpp`. Fix: keep a `thread_local` reference alive across the rethrow. AI-assisted (Claude Code).
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: PAGE-INDEX-TINY-CONTINUATION -> #2373 (draft while #2084 is open: one non-draft PR per account)

<!-- gh-comment-id:7197646030 --> @syfyra commented on GitHub (Nov 26, 2026): done: PAGE-INDEX-TINY-CONTINUATION -> #2373 (draft while #2084 is open: one non-draft PR per account)
Author
Owner

@Tauwni commented on GitHub (Nov 26, 2026):

done: RT-PIPELINE-WORKERS-RETHROW-WINE — #2374 (draft)

AI-assisted (Claude Code).

<!-- gh-comment-id:7197656900 --> @Tauwni commented on GitHub (Nov 26, 2026): done: RT-PIPELINE-WORKERS-RETHROW-WINE — #2374 (draft) AI-assisted (Claude Code).
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: FS-MOVE-ONTO-FOLDER - runtime/shims/file_system.cpp MoveFileExW answers a move onto an existing GAME: folder with ERROR_ACCESS_DENIED whatever the flags. The host reports any existing destination, a folder too, as ERROR_ALREADY_EXISTS without MOVEFILE_REPLACE_EXISTING and gives ERROR_ACCESS_DENIED only with it (measured on Windows 11, file and folder sources, empty and non-empty target folders). Check the replace flag first. Unit test only; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7197657230 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: FS-MOVE-ONTO-FOLDER - runtime/shims/file_system.cpp `MoveFileExW` answers a move onto an existing GAME: folder with ERROR_ACCESS_DENIED whatever the flags. The host reports any existing destination, a folder too, as ERROR_ALREADY_EXISTS without MOVEFILE_REPLACE_EXISTING and gives ERROR_ACCESS_DENIED only with it (measured on Windows 11, file and folder sources, empty and non-empty target folders). Check the replace flag first. Unit test only; no game files, no GPU. AI-assisted.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: FS-MOVE-ONTO-FOLDER -> #2375 (draft)

<!-- gh-comment-id:7197686173 --> @syfyra commented on GitHub (Nov 26, 2026): done: FS-MOVE-ONTO-FOLDER -> #2375 (draft)
Author
Owner

@enlight3d commented on GitHub (Nov 26, 2026):

done: TEST-D16-MODELS-CACHE -> #2376

AI-assisted (Claude Code)

<!-- gh-comment-id:7197709749 --> @enlight3d commented on GitHub (Nov 26, 2026): done: TEST-D16-MODELS-CACHE -> #2376 AI-assisted (Claude Code)
Author
Owner

@kawaii-shakal commented on GitHub (Nov 26, 2026):

claiming: RT-INDIRECT-DRAW-UNFILLED-COUNT - indirect_clamp.comp cuts a garbage draw count to 2^24 vertices and charges that against the list's 2^27 budget, so eight unfilled slots use up the list and every real draw after them runs empty (missing objects, flicker). A draw record of 2^23 vertices an instance or more becomes empty and free; draws under 2^23 are unchanged. Tested with indirect_clamp_test on lavapipe. Branch ready: kawaii-shakal:indirect-draw-unfilled-count. AI-assisted (Claude Code).

<!-- gh-comment-id:7197717403 --> @kawaii-shakal commented on GitHub (Nov 26, 2026): claiming: RT-INDIRECT-DRAW-UNFILLED-COUNT - indirect_clamp.comp cuts a garbage draw count to 2^24 vertices and charges that against the list's 2^27 budget, so eight unfilled slots use up the list and every real draw after them runs empty (missing objects, flicker). A draw record of 2^23 vertices an instance or more becomes empty and free; draws under 2^23 are unchanged. Tested with indirect_clamp_test on lavapipe. Branch ready: kawaii-shakal:indirect-draw-unfilled-count. AI-assisted (Claude Code).
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: STUDIO-CATEGORY-NAMES - viewer/studio.html defines catNames for both languages ("Транспорт (Vehicles)" -> "Транспорт" / "Vehicles") but never uses them: the category chips and the model list headers show the server's two-language name in RU and EU alike. Show the catNames label, keep the server name as the filter key, relabel the chips on a language switch. The follow-up I left out of #2339 (STUDIO-EU-STRINGS); depends on it. Node test; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7197726846 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: STUDIO-CATEGORY-NAMES - viewer/studio.html defines `catNames` for both languages ("Транспорт (Vehicles)" -> "Транспорт" / "Vehicles") but never uses them: the category chips and the model list headers show the server's two-language name in RU and EU alike. Show the catNames label, keep the server name as the filter key, relabel the chips on a language switch. The follow-up I left out of #2339 (STUDIO-EU-STRINGS); depends on it. Node test; no game files, no GPU. AI-assisted.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: STUDIO-CATEGORY-NAMES -> #2377 (draft, depends on #2339; draft while #2084 is open: one non-draft PR per account)

<!-- gh-comment-id:7197758981 --> @syfyra commented on GitHub (Nov 26, 2026): done: STUDIO-CATEGORY-NAMES -> #2377 (draft, depends on #2339; draft while #2084 is open: one non-draft PR per account)
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: GPU-RESULTS-OVERVIEW -> #2379 (draft)

<!-- gh-comment-id:7197848659 --> @syfyra commented on GitHub (Nov 26, 2026): done: GPU-RESULTS-OVERVIEW -> #2379 (draft)
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: BCRYPT-GEN-RANDOM-FLAGS - runtime/shims/bcrypt_rng.cpp gen_random passes any flags to the host's BCryptGenRandom, and the host's STATUS_INVALID_PARAMETER for a flag other than BCRYPT_RNG_USE_ENTROPY_IN_BUFFER / BCRYPT_USE_SYSTEM_PREFERRED_RNG (measured on Windows 11: 0x4, 0x10, 0x80000000) falls through to the SystemFunction036 fallback, so the call returns STATUS_SUCCESS with random bytes; the seeded mode ignores flags too. Check them where the host does. Unit test only; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7197852377 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: BCRYPT-GEN-RANDOM-FLAGS - runtime/shims/bcrypt_rng.cpp `gen_random` passes any flags to the host's BCryptGenRandom, and the host's STATUS_INVALID_PARAMETER for a flag other than BCRYPT_RNG_USE_ENTROPY_IN_BUFFER / BCRYPT_USE_SYSTEM_PREFERRED_RNG (measured on Windows 11: 0x4, 0x10, 0x80000000) falls through to the SystemFunction036 fallback, so the call returns STATUS_SUCCESS with random bytes; the seeded mode ignores flags too. Check them where the host does. Unit test only; no game files, no GPU. AI-assisted.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: BCRYPT-GEN-RANDOM-FLAGS -> #2381 (draft)

<!-- gh-comment-id:7197882267 --> @syfyra commented on GitHub (Nov 26, 2026): done: BCRYPT-GEN-RANDOM-FLAGS -> #2381 (draft)
Author
Owner

@kawaii-shakal commented on GitHub (Nov 26, 2026):

finding: GPU-written textures that the title's CPU code reads (the ocean's height and displacement maps, sampled by
boat physics) may still never reach title memory now that #2129 brings buffers back

Where: docs/d3d12_vulkan.md, "What the GPU wrote goes back" (around line 1701 on main fbf100b1). Since #2129
(RT-TITLE-WINDOW-WRITE-BACK, merged through #2350), a window's and a slot-133 shadow's GPU writes go back to the
title's pages. That covers buffers. The paragraph names no texture path, and I found none for an image a compute pass
writes and the CPU then reads from title memory.

Why it matters: in a VIctory fork (codec-d/cool_fox's, docs/findings.md), boats sank and the seaplane went
under in every run until the ocean's height and displacement maps were read back to title memory. Those maps are
textures that compute passes write and the title's physics samples on the CPU. With the read-back the boat stayed
up for a whole run. This is their measurement, on their D3D12 layer. Whether leonida has the same gap is a
hypothesis: if those maps reach the GPU as buffers in a window, #2129 already covers them.

What is needed: the game and any GPU. Reaching the first boat mission is enough to see it: the boat sinking or
staying afloat. Windows or Linux/Wine both work, on main at fbf100b1 or later.

AI-assisted (Claude Code).


Generated by Claude Code

<!-- gh-comment-id:7197892060 --> @kawaii-shakal commented on GitHub (Nov 26, 2026): finding: GPU-written textures that the title's CPU code reads (the ocean's height and displacement maps, sampled by boat physics) may still never reach title memory now that #2129 brings buffers back **Where:** `docs/d3d12_vulkan.md`, "What the GPU wrote goes back" (around line 1701 on main fbf100b1). Since #2129 (RT-TITLE-WINDOW-WRITE-BACK, merged through #2350), a window's and a slot-133 shadow's GPU writes go back to the title's pages. That covers buffers. The paragraph names no texture path, and I found none for an image a compute pass writes and the CPU then reads from title memory. **Why it matters:** in a VIctory fork (codec-d/cool_fox's, `docs/findings.md`), boats sank and the seaplane went under in every run until the ocean's height and displacement maps were read back to title memory. Those maps are textures that compute passes write and the title's physics samples on the CPU. With the read-back the boat stayed up for a whole run. This is their measurement, on their D3D12 layer. Whether leonida has the same gap is a hypothesis: if those maps reach the GPU as buffers in a window, #2129 already covers them. **What is needed:** the game and any GPU. Reaching the first boat mission is enough to see it: the boat sinking or staying afloat. Windows or Linux/Wine both work, on main at fbf100b1 or later. AI-assisted (Claude Code). --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@kawaii-shakal commented on GitHub (Nov 26, 2026):

finding: GPU-written textures that the title's CPU code reads (the ocean's height and displacement maps, sampled by
boat physics) may still never reach title memory now that #2129 brings buffers back

Where: docs/d3d12_vulkan.md, "What the GPU wrote goes back" (around line 1701 on main fbf100b1). Since #2129
(RT-TITLE-WINDOW-WRITE-BACK, merged through #2350), a window's and a slot-133 shadow's GPU writes go back to the
title's pages. That covers buffers. The paragraph names no texture path, and I found none for an image a compute pass
writes and the CPU then reads from title memory.

Why it matters: in a VIctory fork (codec-d/cool_fox's, docs/findings.md), boats sank and the seaplane went
under in every run until the ocean's height and displacement maps were read back to title memory. Those maps are
textures that compute passes write and the title's physics samples on the CPU. With the read-back the boat stayed
up for a whole run. This is their measurement, on their D3D12 layer. Whether leonida has the same gap is a
hypothesis: if those maps reach the GPU as buffers in a window, #2129 already covers them.

What is needed: the game and any GPU. Reaching the first boat mission is enough to see it: the boat sinking or
staying afloat. Windows or Linux/Wine both work, on main at fbf100b1 or later.

AI-assisted (Claude Code).


Generated by Claude Code

<!-- gh-comment-id:7197896708 --> @kawaii-shakal commented on GitHub (Nov 26, 2026): finding: GPU-written textures that the title's CPU code reads (the ocean's height and displacement maps, sampled by boat physics) may still never reach title memory now that #2129 brings buffers back **Where:** `docs/d3d12_vulkan.md`, "What the GPU wrote goes back" (around line 1701 on main fbf100b1). Since #2129 (RT-TITLE-WINDOW-WRITE-BACK, merged through #2350), a window's and a slot-133 shadow's GPU writes go back to the title's pages. That covers buffers. The paragraph names no texture path, and I found none for an image a compute pass writes and the CPU then reads from title memory. **Why it matters:** in a VIctory fork (codec-d/cool_fox's, `docs/findings.md`), boats sank and the seaplane went under in every run until the ocean's height and displacement maps were read back to title memory. Those maps are textures that compute passes write and the title's physics samples on the CPU. With the read-back the boat stayed up for a whole run. This is their measurement, on their D3D12 layer. Whether leonida has the same gap is a hypothesis: if those maps reach the GPU as buffers in a window, #2129 already covers them. **What is needed:** the game and any GPU. Reaching the first boat mission is enough to see it: the boat sinking or staying afloat. Windows or Linux/Wine both work, on main at fbf100b1 or later. AI-assisted (Claude Code). --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: TESTS-FOR-CHANGE - a reviewer is asked to run "the pull request's own tests" and a contributor the tests of what they changed, but which ones those are is guesswork: tests are found by their name, and a helper such as tools/report_paths.py is exercised by the tests of every tool that imports it. A new stdlib scripts/tests_for.py answers it for the paths you name or for the current branch: the Python and Node tests that import or name each changed file (directly, through the tools that import it, or by reading its folder), and for runtime/ the ctest tests whose programs are built from it according to runtime/CMakeLists.txt (sources, headers through their includes, libraries). It then prints the commands that run them, split the way CI splits them (python -I, pytest, the semantic runner, node --test, ctest -R). It reads files and runs nothing. Synthetic tests; no game files or GPU. AI-assisted.

<!-- gh-comment-id:7197929842 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: TESTS-FOR-CHANGE - a reviewer is asked to run "the pull request's own tests" and a contributor the tests of what they changed, but which ones those are is guesswork: tests are found by their name, and a helper such as `tools/report_paths.py` is exercised by the tests of every tool that imports it. A new stdlib `scripts/tests_for.py` answers it for the paths you name or for the current branch: the Python and Node tests that import or name each changed file (directly, through the tools that import it, or by reading its folder), and for `runtime/` the ctest tests whose programs are built from it according to `runtime/CMakeLists.txt` (sources, headers through their includes, libraries). It then prints the commands that run them, split the way CI splits them (`python -I`, pytest, the semantic runner, `node --test`, `ctest -R`). It reads files and runs nothing. Synthetic tests; no game files or GPU. AI-assisted.
Author
Owner

@kawaii-shakal commented on GitHub (Nov 26, 2026):

done: RT-INDIRECT-DRAW-UNFILLED-COUNT -> #2378

<!-- gh-comment-id:7197933331 --> @kawaii-shakal commented on GitHub (Nov 26, 2026): done: RT-INDIRECT-DRAW-UNFILLED-COUNT -> #2378
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: WORLD-ARCHETYPES-FOLDER-CONTINUATION - tools/world_archetypes.py on a folder of carved streams: world_index.scan_path joins a 0x7a resource whose blocks run past its stream with the next carved file (index.json) and reports the joined size, but iter_resources re-reads only the first file, so archetype definitions (and the map entity blocks --check-extents needs) in the continuation are lost silently; the same streams in an RPF9 window are read in full. docs/world_census.md counts 2,868 maps that join a continuation. Join the same files in iter_resources. Different topic from #1555, merges cleanly. Synthetic carve folder; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7197984448 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: WORLD-ARCHETYPES-FOLDER-CONTINUATION - tools/world_archetypes.py on a folder of carved streams: world_index.scan_path joins a 0x7a resource whose blocks run past its stream with the next carved file (index.json) and reports the joined size, but iter_resources re-reads only the first file, so archetype definitions (and the map entity blocks --check-extents needs) in the continuation are lost silently; the same streams in an RPF9 window are read in full. docs/world_census.md counts 2,868 maps that join a continuation. Join the same files in iter_resources. Different topic from #1555, merges cleanly. Synthetic carve folder; no game files, no GPU. AI-assisted.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: WINHTTP-ARG-CHECKS - runtime/shims/winhttp_offline.cpp answers two argument checks differently from the host's winhttp.dll (measured on Windows 11): WinHttpConnect with an empty server name fails with ERROR_INVALID_PARAMETER where the host gives ERROR_WINHTTP_INVALID_URL, and WinHttpSetOption(WINHTTP_OPTION_CONTEXT_VALUE) accepts any length of at least 8 bytes where the host takes exactly a DWORD_PTR (16 bytes is ERROR_INSUFFICIENT_BUFFER, like 4). Match both. Unit test only; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7197993796 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: WINHTTP-ARG-CHECKS - runtime/shims/winhttp_offline.cpp answers two argument checks differently from the host's winhttp.dll (measured on Windows 11): WinHttpConnect with an empty server name fails with ERROR_INVALID_PARAMETER where the host gives ERROR_WINHTTP_INVALID_URL, and WinHttpSetOption(WINHTTP_OPTION_CONTEXT_VALUE) accepts any length of at least 8 bytes where the host takes exactly a DWORD_PTR (16 bytes is ERROR_INSUFFICIENT_BUFFER, like 4). Match both. Unit test only; no game files, no GPU. AI-assisted.
Author
Owner

@MoonEyes commented on GitHub (Nov 26, 2026):

finding: on an 8 GB card the large library compute programs precompile offline at a measured cost; with them served from the journal the load gets past the compile freeze, and the device was then lost in the next two runs (the second had extra diagnostics on)

Machine: RTX 4060 8 GB, NVIDIA 610.88, Windows 11, 32 GB RAM. Tree: main a73a57e13 plus a local stack (#2195, #1851, #1957, #2097, #1918, #1867, #2117, #2020, #443, #1874, #2267, #2166, #1734, #1914). main has moved since (69 commits at 246791612); none of this is rerun on it yet.

Precompile, with gta6rt --precompile-pipelines, the skip list unset, LEONIDA_DEVICE_FAULT=1:

  • 136 library compute programs of 2.1 to 5.7 MiB of SPIR-V, the ones one load asked for and LEONIDA_SKIP_COMPUTE dropped. 136 of 136 built, none failed.
  • 8 of them, two at a time: 499 s, 61 s for the smallest and 162 s for the largest, about 27.7 s per MiB. 127 more, four at a time: 4,477 s, about 32 s per MiB on average (11 to 92). Peak private memory of the process 11.8 GB, free RAM never under 8.6 GB.
  • A second pass of the same command finds them in the journal in 4 s.

In game, with those 136 taken off the skip list (588 left on it):

  • The load asks for 132 of them between 259 and 301 s. All are served from the journal; none of the 132 is built in game.
  • It is not all of them: 31 to 35 other large programs (2.5 to 5.7 MiB) are still asked for and dropped in each run, so a load asks for about 170. In the first run 43 smaller compute programs were also built in game (847 s in total, 1.0 to 1.6 MiB library programs at about 20 s each, and 5 of the upscaler).
  • First run (1,209 s, no loss): 245 graphics pipelines built at draw (968 s, longest 34.9 s). The cache written by the earlier runs did not hold them; those runs skipped the large programs. Second run, same recipe, with the cache #1914 writes while the game runs: 90 built (233 s), 483 served.

The loss:

  • Second run: a submission sent at 411.6 s never completes; the submit lock is taken at 416.4 s and held 260 s; the loss is seen at 676.4 s. Third run (same recipe plus LEONIDA_DEVICE_MARKERS=1 and LEONIDA_STALL_CHECKPOINTS=1): loss seen at 343.2 s, lock held 93 ms. Windows logged a LiveKernelEvent for both.
  • Markers of the third run: the four compute queues read "nothing started after it"; the direct queue reads finished at one dispatch, next one not started. This is consistent with unfinished work on the direct queue rather than a compute dispatch in flight, but the markers are best-effort (a reset may lose the last writes) and only cover dispatches.
  • System RAM was almost gone in both runs: 26 GB private, 243 MB free at 373 s in the second run, 452 MB free at 343 s in the third. A raw fact, not a cause I can show.

Follow-up, one run, replayed by no second agent yet: the third run's recipe plus LEONIDA_INDIRECT_DRAWS=off (the runtime logs "indirect graphics ... [disabled=N]"). It ran its 906 s with no device loss and no crash: 4,661 presents (3,531 at most in the runs above), 9 to 11 frames/s between 300 and 400 s where the two runs above lost the device, and the loading picture fades out around frame 4,500 (no run got past frame 3,301 before). The picture after that is dark, as expected with those draws off. Free RAM was 3.5 GB or more between 330 and 420 s, and fell to 0.4 GB at 769 s without a loss, so low RAM alone does not lose the device here.

Limits: one run per condition; the local stack is not separated (six of those PRs touch memory); no picture of the world in any run; the command that hangs is not named. No control: the run with the large programs skipped on this tree (one run, colder graphics cache) froze from 287 s to its 907 s limit, so it never reached the point of the loss.

Open question: has anyone run the large library programs (not skipped) on a card with more memory and kept the device past the point where the world's mesh draws start? That would tell whether the loss here needs them or only comes sooner because the load gets there faster.

AI-assisted: yes (Claude Code. Claude Fable 5.2 ran the measurements through sub-agents and read the logs; a sub-agent drafted this text; a separate agent replayed the numbers on the raw logs and its corrections are applied.)

<!-- gh-comment-id:7198006861 --> @MoonEyes commented on GitHub (Nov 26, 2026): finding: on an 8 GB card the large library compute programs precompile offline at a measured cost; with them served from the journal the load gets past the compile freeze, and the device was then lost in the next two runs (the second had extra diagnostics on) Machine: RTX 4060 8 GB, NVIDIA 610.88, Windows 11, 32 GB RAM. Tree: main a73a57e13 plus a local stack (#2195, #1851, #1957, #2097, #1918, #1867, #2117, #2020, #443, #1874, #2267, #2166, #1734, #1914). main has moved since (69 commits at 246791612); none of this is rerun on it yet. Precompile, with `gta6rt --precompile-pipelines`, the skip list unset, LEONIDA_DEVICE_FAULT=1: - 136 library compute programs of 2.1 to 5.7 MiB of SPIR-V, the ones one load asked for and LEONIDA_SKIP_COMPUTE dropped. 136 of 136 built, none failed. - 8 of them, two at a time: 499 s, 61 s for the smallest and 162 s for the largest, about 27.7 s per MiB. 127 more, four at a time: 4,477 s, about 32 s per MiB on average (11 to 92). Peak private memory of the process 11.8 GB, free RAM never under 8.6 GB. - A second pass of the same command finds them in the journal in 4 s. In game, with those 136 taken off the skip list (588 left on it): - The load asks for 132 of them between 259 and 301 s. All are served from the journal; none of the 132 is built in game. - It is not all of them: 31 to 35 other large programs (2.5 to 5.7 MiB) are still asked for and dropped in each run, so a load asks for about 170. In the first run 43 smaller compute programs were also built in game (847 s in total, 1.0 to 1.6 MiB library programs at about 20 s each, and 5 of the upscaler). - First run (1,209 s, no loss): 245 graphics pipelines built at draw (968 s, longest 34.9 s). The cache written by the earlier runs did not hold them; those runs skipped the large programs. Second run, same recipe, with the cache #1914 writes while the game runs: 90 built (233 s), 483 served. The loss: - Second run: a submission sent at 411.6 s never completes; the submit lock is taken at 416.4 s and held 260 s; the loss is seen at 676.4 s. Third run (same recipe plus LEONIDA_DEVICE_MARKERS=1 and LEONIDA_STALL_CHECKPOINTS=1): loss seen at 343.2 s, lock held 93 ms. Windows logged a LiveKernelEvent for both. - Markers of the third run: the four compute queues read "nothing started after it"; the direct queue reads finished at one dispatch, next one not started. This is consistent with unfinished work on the direct queue rather than a compute dispatch in flight, but the markers are best-effort (a reset may lose the last writes) and only cover dispatches. - System RAM was almost gone in both runs: 26 GB private, 243 MB free at 373 s in the second run, 452 MB free at 343 s in the third. A raw fact, not a cause I can show. Follow-up, one run, replayed by no second agent yet: the third run's recipe plus LEONIDA_INDIRECT_DRAWS=off (the runtime logs "indirect graphics ... [disabled=N]"). It ran its 906 s with no device loss and no crash: 4,661 presents (3,531 at most in the runs above), 9 to 11 frames/s between 300 and 400 s where the two runs above lost the device, and the loading picture fades out around frame 4,500 (no run got past frame 3,301 before). The picture after that is dark, as expected with those draws off. Free RAM was 3.5 GB or more between 330 and 420 s, and fell to 0.4 GB at 769 s without a loss, so low RAM alone does not lose the device here. Limits: one run per condition; the local stack is not separated (six of those PRs touch memory); no picture of the world in any run; the command that hangs is not named. No control: the run with the large programs skipped on this tree (one run, colder graphics cache) froze from 287 s to its 907 s limit, so it never reached the point of the loss. Open question: has anyone run the large library programs (not skipped) on a card with more memory and kept the device past the point where the world's mesh draws start? That would tell whether the loss here needs them or only comes sooner because the load gets there faster. AI-assisted: yes (Claude Code. Claude Fable 5.2 ran the measurements through sub-agents and read the logs; a sub-agent drafted this text; a separate agent replayed the numbers on the raw logs and its corrections are applied.)
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: WORLD-ARCHETYPES-FOLDER-CONTINUATION -> #2382 (draft while #2084 is open: one non-draft PR per account)

<!-- gh-comment-id:7198010563 --> @syfyra commented on GitHub (Nov 26, 2026): done: WORLD-ARCHETYPES-FOLDER-CONTINUATION -> #2382 (draft while #2084 is open: one non-draft PR per account)
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: WINHTTP-ARG-CHECKS -> #2383 (draft)

<!-- gh-comment-id:7198022869 --> @syfyra commented on GitHub (Nov 26, 2026): done: WINHTTP-ARG-CHECKS -> #2383 (draft)
Author
Owner

@qhukz13 commented on GitHub (Nov 26, 2026):

claiming: MAKE-GAME-PIPELINES-VIA-RUNTIME - make make_game.py --stages pipelines fill the runtime's own compute journal with gta6rt --precompile-pipelines, instead of a second implementation in vk_pipeline_check whose cache the runtime never hits. That is the maintainers' status line "vk_pipeline_check never matches the runtime's cache keys"; docs/running.md already tells players to skip the stage for this reason.

Why it misses, with file and line on main 246791612:

  • Different store. The stage writes one pipeline_cache.bin (make_game.py:2770). The runtime looks a compute pipeline up in pipeline_cache.d/cs-<key>.bin, keyed by its SPIR-V, flags, subgroup size, user-data size and bindless layout (pipeline_cache_journal.h, d3d12_vulkan_device.cpp build_compute_pipeline).
  • Different device, so different driver keys. The checker has no pApplicationName, runs as vk_pipeline_check.exe, turns robustness off, uses a different extension set and bindless set-0 layout, VK_SHADER_STAGE_ALL push constants for bound compute, and none of decide_subgroup_size / REQUIRE_FULL_SUBGROUPS.
  • Patching the checker would not converge. Open PRs (#1833 robustness, #1308 a runtime device) each close one of these differences. The checker would have to copy the runtime's device and layout code to converge.

Plan:

  • The stage runs the gta6rt the runtime stage just built: gta6rt.exe --precompile-pipelines, natively on Windows and through the existing Wine wrapper elsewhere. LEONIDA_SHADERS / shader_path.txt and LEONIDA_PIPELINE_CACHE_DIR point at the output folder. That is the same device, layouts, build function and journal names as play.

  • It keeps what the stage has now:

    • progress;
    • --jobs as --threads;
    • resuming after an interruption (already in --precompile-pipelines: journaled entries are skipped);
    • a module that kills the driver gets skipped on the next run and is reported.

    The last one is the only new runtime piece: the stale requests/<name>.building lock a crashed build leaves names its entry.

  • Graphics pipelines are dropped from the stage. The runtime builds them at the title's draw from the PSO and the bound formats. The stage's stub-paired pipelines never matched those (docs/d3d12_vulkan.md).

  • vk_pipeline_check stays as it is: a driver-acceptance checker for spirv-val-valid modules, run by hand and in CI. It no longer pretends to warm a cache.

  • Tests for the new stage on Windows and POSIX, with a fake gta6rt for the argument and resume logic; docs/running.md and the stage's help text updated.

I'll coordinate with the open pipelines-stage claims (PIPELINES-STAGE-SHARDS-AND-DONE-LIST, PIPELINE-INDEX-TOP-LEVEL-OBJECT, MAKE-GAME-PIPELINE-CRASH-REPORT-LOCK), whose code paths this replaces. Objections to the plan are welcome before code. No game files needed (synthetic shaders); I'll test on a GTX 1050 Ti / Windows 10. AI-assisted (Claude Code).

<!-- gh-comment-id:7198052250 --> @qhukz13 commented on GitHub (Nov 26, 2026): claiming: MAKE-GAME-PIPELINES-VIA-RUNTIME - make `make_game.py --stages pipelines` fill the runtime's own compute journal with `gta6rt --precompile-pipelines`, instead of a second implementation in `vk_pipeline_check` whose cache the runtime never hits. That is the maintainers' status line "vk_pipeline_check never matches the runtime's cache keys"; `docs/running.md` already tells players to skip the stage for this reason. Why it misses, with file and line on main `246791612`: - **Different store.** The stage writes one `pipeline_cache.bin` (`make_game.py:2770`). The runtime looks a compute pipeline up in `pipeline_cache.d/cs-<key>.bin`, keyed by its SPIR-V, flags, subgroup size, user-data size and bindless layout (`pipeline_cache_journal.h`, `d3d12_vulkan_device.cpp` `build_compute_pipeline`). - **Different device, so different driver keys.** The checker has no `pApplicationName`, runs as `vk_pipeline_check.exe`, turns robustness off, uses a different extension set and bindless set-0 layout, `VK_SHADER_STAGE_ALL` push constants for bound compute, and none of `decide_subgroup_size` / `REQUIRE_FULL_SUBGROUPS`. - **Patching the checker would not converge.** Open PRs (#1833 robustness, #1308 a runtime device) each close one of these differences. The checker would have to copy the runtime's device and layout code to converge. Plan: - The stage runs the `gta6rt` the runtime stage just built: `gta6rt.exe --precompile-pipelines`, natively on Windows and through the existing Wine wrapper elsewhere. `LEONIDA_SHADERS` / `shader_path.txt` and `LEONIDA_PIPELINE_CACHE_DIR` point at the output folder. That is the same device, layouts, build function and journal names as play. - It keeps what the stage has now: - progress; - `--jobs` as `--threads`; - resuming after an interruption (already in `--precompile-pipelines`: journaled entries are skipped); - a module that kills the driver gets skipped on the next run and is reported. The last one is the only new runtime piece: the stale `requests/<name>.building` lock a crashed build leaves names its entry. - Graphics pipelines are dropped from the stage. The runtime builds them at the title's draw from the PSO and the bound formats. The stage's stub-paired pipelines never matched those (docs/d3d12_vulkan.md). - `vk_pipeline_check` stays as it is: a driver-acceptance checker for `spirv-val`-valid modules, run by hand and in CI. It no longer pretends to warm a cache. - Tests for the new stage on Windows and POSIX, with a fake `gta6rt` for the argument and resume logic; docs/running.md and the stage's help text updated. I'll coordinate with the open pipelines-stage claims (PIPELINES-STAGE-SHARDS-AND-DONE-LIST, PIPELINE-INDEX-TOP-LEVEL-OBJECT, MAKE-GAME-PIPELINE-CRASH-REPORT-LOCK), whose code paths this replaces. Objections to the plan are welcome before code. No game files needed (synthetic shaders); I'll test on a GTX 1050 Ti / Windows 10. AI-assisted (Claude Code).
Author
Owner

@ecox982745 commented on GitHub (Nov 26, 2026):

claiming: SHADER-FMA-MIX-LITERAL-SOURCE — follow up on the maintainer's note in #2142. Tie the low-half text check to the operand whose encoded source selects the literal. I will add a regression for an adjacent inline constant and check the synthetic draws on an RTX 4090.

AI-assisted with OpenAI Codex (GPT-6).

<!-- gh-comment-id:7198052748 --> @ecox982745 commented on GitHub (Nov 26, 2026): claiming: SHADER-FMA-MIX-LITERAL-SOURCE — follow up on the maintainer's note in #2142. Tie the low-half text check to the operand whose encoded source selects the literal. I will add a regression for an adjacent inline constant and check the synthetic draws on an RTX 4090. AI-assisted with OpenAI Codex (GPT-6).
Author
Owner

@enlight3d commented on GitHub (Nov 26, 2026):

claiming: CONSOLE-HEAP-GPU-OVERFLOW-AND-ROLLBACK - picking up the item KushGene released (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7197416725) because GitHub would not let their account open the pull request; keeping their commit 72f658fb5 as written and as its author: ConsoleHeapKeys::erase_overlapping no longer wraps to + span past UINT64_MAX, and ConsoleHeapGpu::commit(false, 0) no longer overwrites slots re-queued after record() or puts rolled-back copies behind newer ones (runtime/src/console_heap_gpu.h, runtime/test/vk_console_heap_gpu_test.cpp). I will add a native Windows run: MSVC build, vk_console_heap_gpu_test with and without the header fix on an NVIDIA RTX 3090, plus the related ctest entries. No game files. AI-assisted (Claude Code).

<!-- gh-comment-id:7198052814 --> @enlight3d commented on GitHub (Nov 26, 2026): claiming: CONSOLE-HEAP-GPU-OVERFLOW-AND-ROLLBACK - picking up the item KushGene released (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7197416725) because GitHub would not let their account open the pull request; keeping their commit 72f658fb5 as written and as its author: `ConsoleHeapKeys::erase_overlapping` no longer wraps `to + span` past UINT64_MAX, and `ConsoleHeapGpu::commit(false, 0)` no longer overwrites slots re-queued after `record()` or puts rolled-back copies behind newer ones (`runtime/src/console_heap_gpu.h`, `runtime/test/vk_console_heap_gpu_test.cpp`). I will add a native Windows run: MSVC build, `vk_console_heap_gpu_test` with and without the header fix on an NVIDIA RTX 3090, plus the related ctest entries. No game files. AI-assisted (Claude Code).
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: AWC-NAMES-FAMILY-SUFFIX-NUMBER - tools/awc_names.py family_ok reads each member's number from the whole name, so when a base ends in a digit its unsuffixed member counts as numbered: amb_1 + amb_1_02 is accepted as an adjacent pair while the same shape without a digit (horn + horn_02) is rejected. The rule (docstring, docs/audio.md: "2 with adjacent numbers") counts numbered suffixes. Pass family_ok the members' suffixes. Different topic from #780, merges cleanly. Synthetic dictionary and ids; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7198059484 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: AWC-NAMES-FAMILY-SUFFIX-NUMBER - tools/awc_names.py `family_ok` reads each member's number from the whole name, so when a base ends in a digit its unsuffixed member counts as numbered: `amb_1` + `amb_1_02` is accepted as an adjacent pair while the same shape without a digit (`horn` + `horn_02`) is rejected. The rule (docstring, docs/audio.md: "2 with adjacent numbers") counts numbered suffixes. Pass family_ok the members' suffixes. Different topic from #780, merges cleanly. Synthetic dictionary and ids; no game files, no GPU. AI-assisted.
Author
Owner

@Snooozs commented on GitHub (Nov 26, 2026):

finding: pixel-shader quad_perm DPP is translated to OpGroupNonUniformShuffle, which Vulkan does not require helper invocations to take part in.

Where: tools/rdna2spirv.py, Gen.dpp_insn (line 7563; the shuffle is emitted at line 7797), on main 935a2cd5b. A hand-written pixel shader with two quad_perm ... fi:1 moves translates to two OpGroupNonUniformShuffle, no quad operation and no reconvergence execution mode.

Why it matters: the Vulkan spec (Shaders, helper invocations) says that without MaximallyReconvergesKHR, helpers may be treated as inactive for group operations other than derivative and quad ones. A pixel that reads a helper neighbour can then get an undefined value, for example in hand-written derivatives at triangle edges. The s_wqm path already uses OpGroupNonUniformQuadSwap.

How common (1.0.2.1, counts only):

  • Pipeline-library graphics (shaders/fspx_gfx): 5,806 of 9,996 pixel programs use quad_perm, 134,133 instructions, all fi:1. Ten selectors: the three swaps, [0,0,0,0] / [1,1,1,1] / [2,2,2,2], and [1,1,3,3], [2,3,2,3], [0,0,2,2], [0,1,0,1].
  • shaders/dxbc: 2,414 of 12,101 pixel listings, 29,716 instructions, all fi:1 bound_ctrl:1, swaps only.

Possible fix: in fragment shaders use OpGroupNonUniformQuadSwap for the swaps, OpGroupNonUniformQuadBroadcast for the broadcasts, and a select between two broadcasts for the other four. The spec puts a quad at four consecutive subgroup indices starting at a multiple of 4, which is the lane & ~3 the translator assumes. Requiring MaximallyReconvergesKHR would be the other way, but needs device support.

Not verified: nothing was run on a GPU, and I have not seen wrong output on any Vulkan driver. The notes of VIctory, a separate D3D12 runtime, report holes and dashed edges in shadows on AMD from wave reads of quad neighbours; that is D3D12, so only a hint.

Needs: a GPU check, ideally on AMD. A semantic test needs no game files. #1647 is open and changes the same function. I am not claiming this.

AI-assisted (Claude Code). Counts only, no game data.

<!-- gh-comment-id:7198062450 --> @Snooozs commented on GitHub (Nov 26, 2026): finding: pixel-shader `quad_perm` DPP is translated to `OpGroupNonUniformShuffle`, which Vulkan does not require helper invocations to take part in. **Where:** `tools/rdna2spirv.py`, `Gen.dpp_insn` (line 7563; the shuffle is emitted at line 7797), on `main` `935a2cd5b`. A hand-written pixel shader with two `quad_perm ... fi:1` moves translates to two `OpGroupNonUniformShuffle`, no quad operation and no reconvergence execution mode. **Why it matters:** the Vulkan spec ([Shaders, helper invocations](https://docs.vulkan.org/spec/latest/chapters/shaders.html)) says that without `MaximallyReconvergesKHR`, helpers may be treated as inactive for group operations other than derivative and quad ones. A pixel that reads a helper neighbour can then get an undefined value, for example in hand-written derivatives at triangle edges. The `s_wqm` path already uses `OpGroupNonUniformQuadSwap`. **How common (1.0.2.1, counts only):** - Pipeline-library graphics (`shaders/fspx_gfx`): 5,806 of 9,996 pixel programs use `quad_perm`, 134,133 instructions, all `fi:1`. Ten selectors: the three swaps, `[0,0,0,0]` / `[1,1,1,1]` / `[2,2,2,2]`, and `[1,1,3,3]`, `[2,3,2,3]`, `[0,0,2,2]`, `[0,1,0,1]`. - `shaders/dxbc`: 2,414 of 12,101 pixel listings, 29,716 instructions, all `fi:1 bound_ctrl:1`, swaps only. **Possible fix:** in fragment shaders use `OpGroupNonUniformQuadSwap` for the swaps, `OpGroupNonUniformQuadBroadcast` for the broadcasts, and a select between two broadcasts for the other four. The spec puts a quad at four consecutive subgroup indices starting at a multiple of 4, which is the `lane & ~3` the translator assumes. Requiring `MaximallyReconvergesKHR` would be the other way, but needs device support. **Not verified:** nothing was run on a GPU, and I have not seen wrong output on any Vulkan driver. The notes of VIctory, a separate D3D12 runtime, report holes and dashed edges in shadows on AMD from wave reads of quad neighbours; that is D3D12, so only a hint. **Needs:** a GPU check, ideally on AMD. A semantic test needs no game files. #1647 is open and changes the same function. I am not claiming this. AI-assisted (Claude Code). Counts only, no game data.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: AWC-NAMES-FAMILY-SUFFIX-NUMBER -> #2384 (draft while #2084 is open: one non-draft PR per account)

<!-- gh-comment-id:7198085128 --> @syfyra commented on GitHub (Nov 26, 2026): done: AWC-NAMES-FAMILY-SUFFIX-NUMBER -> #2384 (draft while #2084 is open: one non-draft PR per account)
Author
Owner

@HasiKe commented on GitHub (Nov 26, 2026):

Follow-up on the world-load hang in VS-as-MS draws: it is not draw size. A mesh draw of at most 1,024 groups hangs the same way. AI-assisted (Claude Code).

Setup: RTX 2070 SUPER, NVIDIA 616.56, cold boot, LEONIDA_COMPILE_GATE=0, LEONIDA_DEVICE_FAULT=2. Tree: main a73a57e13 + #2195 + #2233 + #2275, plus a local diagnostic that is not proposed: LEONIDA_MESH_GROUP_BUDGET=<groups>. It passes the existing per-dispatch group budget of indirect_clamp.comp (flags bits 1..16) for indirect_clamp_mesh jobs as well. Until now only LEONIDA_INDIRECT_GROUP_BUDGET did that, for compute dispatches only. With =1024, the clamp caps each indirect mesh record's x at 1,024.

Result:

  • No record needed the cap. The clamp's own counters say 0 records clamped, 0 zeroed, 0 over list budget. That holds for every observed frame, and in every earlier boot as well. With the 1,024 cap in place, that means no mesh record that completed ever asked for more than 1,024 groups. The indirect clamp mesh lines confirm y = z = 1 throughout.
  • The hang is unchanged:
    • Device lost at t=153.9 s.
    • The direct-queue checkpoints are again a draw: _MS_VS_TransformD_c5fd36bb_Wrapped~23 + %PS_DeferredTextured_c5fd36bb_Wrapped~1, the same pipeline as in two earlier boots.
    • The compute queues are again at lib_cs_01468.

Ruled out so far for this hang, each by one boot on this card:

  • Draw size: this boot.
  • Loop trip count: --loop-limit 256 (earlier).
  • One specific program: dropping TransformTerrainNormalTint moved the hang to TransformD.
  • The 270 s stall: that was the runtime's own wait, fixed by #2365.

What is left: a small mesh workgroup that never finishes on the GPU while waves are still resident. The fault addresses in the earlier boots were all instruction pointers. That points at something the CPU model (qhukz13's harness) does not reproduce: a barrier or a subgroup op that not every invocation reaches on real NVIDIA hardware, or a wait on memory that lib_cs_01468 (always in flight at the same time) is meant to write.

Next, I'll compare the barrier and loop structure of the hanging programs with mesh programs that ran fine in the same boots, from the local disassembly. I'll post counts only.

<!-- gh-comment-id:7198111731 --> @HasiKe commented on GitHub (Nov 26, 2026): Follow-up on the world-load hang in VS-as-MS draws: **it is not draw size**. A mesh draw of at most 1,024 groups hangs the same way. AI-assisted (Claude Code). **Setup:** RTX 2070 SUPER, NVIDIA 616.56, cold boot, `LEONIDA_COMPILE_GATE=0`, `LEONIDA_DEVICE_FAULT=2`. Tree: `main` `a73a57e13` + #2195 + #2233 + #2275, plus a local diagnostic that is not proposed: `LEONIDA_MESH_GROUP_BUDGET=<groups>`. It passes the existing per-dispatch group budget of `indirect_clamp.comp` (flags bits 1..16) for `indirect_clamp_mesh` jobs as well. Until now only `LEONIDA_INDIRECT_GROUP_BUDGET` did that, for compute dispatches only. With `=1024`, the clamp caps each indirect mesh record's x at 1,024. **Result:** - **No record needed the cap.** The clamp's own counters say `0 records clamped, 0 zeroed, 0 over list budget`. That holds for every observed frame, and in every earlier boot as well. With the 1,024 cap in place, that means no mesh record that completed ever asked for more than 1,024 groups. The `indirect clamp mesh` lines confirm y = z = 1 throughout. - **The hang is unchanged:** - Device lost at t=153.9 s. - The direct-queue checkpoints are again a draw: `_MS_VS_TransformD_c5fd36bb_Wrapped~23` + `%PS_DeferredTextured_c5fd36bb_Wrapped~1`, the same pipeline as in two earlier boots. - The compute queues are again at `lib_cs_01468`. **Ruled out so far for this hang, each by one boot on this card:** - **Draw size:** this boot. - **Loop trip count:** `--loop-limit 256` ([earlier](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7194136534)). - **One specific program:** dropping `TransformTerrainNormalTint` moved the hang to `TransformD`. - **The 270 s stall:** that was the runtime's own wait, fixed by #2365. **What is left:** a small mesh workgroup that never finishes on the GPU while waves are still resident. The fault addresses in the earlier boots were all instruction pointers. That points at something the CPU model (qhukz13's harness) does not reproduce: a barrier or a subgroup op that not every invocation reaches on real NVIDIA hardware, or a wait on memory that `lib_cs_01468` (always in flight at the same time) is meant to write. Next, I'll compare the barrier and loop structure of the hanging programs with mesh programs that ran fine in the same boots, from the local disassembly. I'll post counts only.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: DOC-AWC-FAMILY-CLAIM-RULE - docs/audio.md says that when two accepted families claim the same AWC id in one bank, "the first family in sorted base order keeps it"; since 58a981e25 tools/awc_names.py keeps the larger family, and only a tie goes to the first base. One-sentence doc fix. No game files. AI-assisted.

<!-- gh-comment-id:7198130080 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: DOC-AWC-FAMILY-CLAIM-RULE - docs/audio.md says that when two accepted families claim the same AWC id in one bank, "the first family in sorted base order keeps it"; since 58a981e25 tools/awc_names.py keeps the larger family, and only a tie goes to the first base. One-sentence doc fix. No game files. AI-assisted.
Author
Owner

@aslan2142 commented on GitHub (Nov 26, 2026):

claiming: RT-PRECOMPILE-SKIP-LIST-EXPLICIT — gta6rt --precompile-pipelines drops every entry that matches LEONIDA_SKIP_COMPUTE (precompile_compute_pipelines, d3d12_vulkan_device.cpp), with no summary and no override. The variable is about dispatching a program at play, so a player's skip list keeps those programs out of the journal for good, and a stage that calls the precompile inherits it.

  • Runtime: the precompile builds every compute entry by default, leaves entries out only when asked to, and prints how many it left out and why.
  • Docs: docs/running.md and docs/linux_proton.md give compile time as the reason to skip the large library/ programs. Measured today on an RX 7900 XTX (RADV, Mesa 26.3.1, Wine) with a native wave64 pack: all 721 programs of 2 MiB or more build, 360 of them in 170 s on 32 threads, 2.5 to 32 s each, peak 14 GiB of RAM. The minutes per program came from wave64-emulated packs. The docs get these numbers, and the skip list keeps only the reasons that still hold.
  • Next to MAKE-GAME-PIPELINES-VIA-RUNTIME (@qhukz13), which calls the same precompile: this touches the entry selection in the runtime and the skip-list lines in the docs, not the stage. I'll keep the docs edits apart from the stage's lines.

AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)

<!-- gh-comment-id:7198146296 --> @aslan2142 commented on GitHub (Nov 26, 2026): claiming: RT-PRECOMPILE-SKIP-LIST-EXPLICIT — `gta6rt --precompile-pipelines` drops every entry that matches `LEONIDA_SKIP_COMPUTE` (`precompile_compute_pipelines`, `d3d12_vulkan_device.cpp`), with no summary and no override. The variable is about dispatching a program at play, so a player's skip list keeps those programs out of the journal for good, and a stage that calls the precompile inherits it. - **Runtime:** the precompile builds every compute entry by default, leaves entries out only when asked to, and prints how many it left out and why. - **Docs:** `docs/running.md` and `docs/linux_proton.md` give compile time as the reason to skip the large `library/` programs. Measured today on an RX 7900 XTX (RADV, Mesa 26.3.1, Wine) with a native wave64 pack: all 721 programs of 2 MiB or more build, 360 of them in 170 s on 32 threads, 2.5 to 32 s each, peak 14 GiB of RAM. The minutes per program came from wave64-emulated packs. The docs get these numbers, and the skip list keeps only the reasons that still hold. - Next to MAKE-GAME-PIPELINES-VIA-RUNTIME (@qhukz13), which calls the same precompile: this touches the entry selection in the runtime and the skip-list lines in the docs, not the stage. I'll keep the docs edits apart from the stage's lines. AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: DOC-AWC-FAMILY-CLAIM-RULE -> #2385 (draft while #2084 is open: one non-draft PR per account)

<!-- gh-comment-id:7198154215 --> @syfyra commented on GitHub (Nov 26, 2026): done: DOC-AWC-FAMILY-CLAIM-RULE -> #2385 (draft while #2084 is open: one non-draft PR per account)
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: RBF0-ENCODE-SHORT-COUNT-CONTENT - tools/rbf0_encode.py refuses every element rbf0_tree flags with attribute_order_violation, but the tree also sets that flag when text or a child element arrives before a short attribute count is reached. docs/rbf0.md 9.6 refuses a short-count element only when a value is in its content; with text or a child the bytes write back exactly. Refuse on the flag only when an attribute record actually follows the content (or offsets are missing). Different topic from #1574, merges cleanly. Synthetic streams; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7198218440 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: RBF0-ENCODE-SHORT-COUNT-CONTENT - tools/rbf0_encode.py refuses every element rbf0_tree flags with attribute_order_violation, but the tree also sets that flag when text or a child element arrives before a short attribute count is reached. docs/rbf0.md 9.6 refuses a short-count element only when a value is in its content; with text or a child the bytes write back exactly. Refuse on the flag only when an attribute record actually follows the content (or offsets are missing). Different topic from #1574, merges cleanly. Synthetic streams; no game files, no GPU. AI-assisted.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: RBF0-ENCODE-SHORT-COUNT-CONTENT -> #2386 (draft while #2084 is open: one non-draft PR per account)

<!-- gh-comment-id:7198244434 --> @syfyra commented on GitHub (Nov 26, 2026): done: RBF0-ENCODE-SHORT-COUNT-CONTENT -> #2386 (draft while #2084 is open: one non-draft PR per account)
Author
Owner

@qhukz13 commented on GitHub (Nov 26, 2026):

@aslan2142 thanks, that split works for me, and it helps the stage: once it calls the precompile, a player's LEONIDA_SKIP_COMPUTE would otherwise silently thin out the journal.

The one place we could meet is precompile_compute_pipelines. My plan has one small runtime piece there: on a rerun, skip and report an entry whose stale requests/<name>.building lock shows the driver died building it. I'll keep that apart from entry selection, in the lock handling, and base it on your PR if yours lands first. The stage-side code and its docs lines are mine; the skip-list text and numbers in the docs are yours.

AI-assisted (Claude Code).

<!-- gh-comment-id:7198255812 --> @qhukz13 commented on GitHub (Nov 26, 2026): @aslan2142 thanks, that split works for me, and it helps the stage: once it calls the precompile, a player's `LEONIDA_SKIP_COMPUTE` would otherwise silently thin out the journal. The one place we could meet is `precompile_compute_pipelines`. My plan has one small runtime piece there: on a rerun, skip and report an entry whose stale `requests/<name>.building` lock shows the driver died building it. I'll keep that apart from entry selection, in the lock handling, and base it on your PR if yours lands first. The stage-side code and its docs lines are mine; the skip-list text and numbers in the docs are yours. AI-assisted (Claude Code).
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: SILENT-AUDIO-HOST-ANSWERS - runtime/shims/silent_audio.cpp's silent endpoint answers four argument checks unlike the host's render endpoint (measured side by side on Windows 11): a malformed WAVEFORMATEX is E_INVALIDARG on the host but AUDCLNT_E_UNSUPPORTED_FORMAT here (a wrong nAvgBytesPerSec is even accepted); GetService(IAudioCaptureClient) is AUDCLNT_E_WRONG_ENDPOINT_TYPE, not E_NOINTERFACE; Reset with nothing to reset is S_OK, not S_FALSE; ReleaseBuffer refuses flags other than SILENT with E_INVALIDARG and keeps the packet, where the shim ignores them. Match the host. Unit test only; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7198257185 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: SILENT-AUDIO-HOST-ANSWERS - runtime/shims/silent_audio.cpp's silent endpoint answers four argument checks unlike the host's render endpoint (measured side by side on Windows 11): a malformed WAVEFORMATEX is E_INVALIDARG on the host but AUDCLNT_E_UNSUPPORTED_FORMAT here (a wrong nAvgBytesPerSec is even accepted); GetService(IAudioCaptureClient) is AUDCLNT_E_WRONG_ENDPOINT_TYPE, not E_NOINTERFACE; Reset with nothing to reset is S_OK, not S_FALSE; ReleaseBuffer refuses flags other than SILENT with E_INVALIDARG and keeps the packet, where the shim ignores them. Match the host. Unit test only; no game files, no GPU. AI-assisted.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: RESTOFWORLD-INDEX-TEXT-SAMPLE - tools/restofworld_index.py _printable judges "text" on a stream's first 512 bytes, but scan_rpf keeps only a 256-byte head for streams it does not keep whole, so the same stream can read as "text" from an archive and "raw:..." from its carved file (306 printable bytes then binary). af55ea1b4 removed the same split for PSIN. Keep a 512-byte head. Different topic from #1535, merges cleanly. Synthetic streams; no game files, no GPU. AI-assisted.

<!-- gh-comment-id:7198290287 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: RESTOFWORLD-INDEX-TEXT-SAMPLE - tools/restofworld_index.py `_printable` judges "text" on a stream's first 512 bytes, but `scan_rpf` keeps only a 256-byte head for streams it does not keep whole, so the same stream can read as "text" from an archive and "raw:..." from its carved file (306 printable bytes then binary). af55ea1b4 removed the same split for PSIN. Keep a 512-byte head. Different topic from #1535, merges cleanly. Synthetic streams; no game files, no GPU. AI-assisted.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: SILENT-AUDIO-HOST-ANSWERS -> #2387 (draft)

<!-- gh-comment-id:7198291963 --> @syfyra commented on GitHub (Nov 26, 2026): done: SILENT-AUDIO-HOST-ANSWERS -> #2387 (draft)
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: RESTOFWORLD-INDEX-TEXT-SAMPLE -> #2388 (draft while #2084 is open: one non-draft PR per account)

<!-- gh-comment-id:7198315656 --> @syfyra commented on GitHub (Nov 26, 2026): done: RESTOFWORLD-INDEX-TEXT-SAMPLE -> #2388 (draft while #2084 is open: one non-draft PR per account)
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

claiming: GPU-TEST-SETUP - run_gpu_tests.py can already run the fixtures kept as listings without llvm-mc (--disasm-dir tests/semantic/fixtures/disasm) and assembles with tools/spirv_asm.py without SPIRV-Tools, but nothing tells a newcomer that this is enough for a first result; what is missing shows only when a run stops. A new stdlib scripts/gpu_test_setup.py looks once (llvm-mc and its AMDGPU target, spirv-as, spirv-val, the three test programs in the build folders the runner searches, the listings, the devices of vulkaninfo with their subgroup range) and prints three levels, semantic, subset and full, each with its command or what it still needs, and when a device needs the second run with LEONIDA_W64_EMULATE=1. It builds nothing and runs no test. Tests with stand-in tools; no game files or GPU. AI-assisted.

<!-- gh-comment-id:7198352545 --> @syfyra commented on GitHub (Nov 26, 2026): claiming: GPU-TEST-SETUP - `run_gpu_tests.py` can already run the fixtures kept as listings without llvm-mc (`--disasm-dir tests/semantic/fixtures/disasm`) and assembles with `tools/spirv_asm.py` without SPIRV-Tools, but nothing tells a newcomer that this is enough for a first result; what is missing shows only when a run stops. A new stdlib `scripts/gpu_test_setup.py` looks once (llvm-mc and its AMDGPU target, spirv-as, spirv-val, the three test programs in the build folders the runner searches, the listings, the devices of `vulkaninfo` with their subgroup range) and prints three levels, semantic, subset and full, each with its command or what it still needs, and when a device needs the second run with `LEONIDA_W64_EMULATE=1`. It builds nothing and runs no test. Tests with stand-in tools; no game files or GPU. AI-assisted.
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: GPU-TEST-SETUP -> #2389 (draft)

<!-- gh-comment-id:7198371703 --> @syfyra commented on GitHub (Nov 26, 2026): done: GPU-TEST-SETUP -> #2389 (draft)
Author
Owner

@syfyra commented on GitHub (Nov 26, 2026):

done: TESTS-FOR-CHANGE -> #2390 (draft)

<!-- gh-comment-id:7198419661 --> @syfyra commented on GitHub (Nov 26, 2026): done: TESTS-FOR-CHANGE -> #2390 (draft)
Author
Owner

@azsekazvamdimitar commented on GitHub (Nov 26, 2026):

claiming: RT-SHADOW-RESERVATION-SKIP - under Wine most of the slot-133 shadow walk after the story load is VirtualQuery of reserved pages: the stream pools' unmapped 64 KiB slots inside xmem's physical-page windows, 450-7,500 of them a refresh, 1.5 us each when quiet and 15-70 us under Wine's virtual-memory lock while the title maps memory (walks of 100-330 ms a submission, RTX 3090, Wine 11). xmem records the title's placeholders and windows, and the walk passes over a page there that it found reserved until the title memory journal names it; every change of such a page goes through xmem's or the title's journalled memory calls. On my runs it cuts the queries a refresh from 443-1,616 to 70-136 and the walk from 16.5-40.4 to 10-21 ms in the first world minute. A local check that asked about every passed-over page again found 77 changed ones in 9.5 million, all journalled after the walk had looked; an A/B of the same build hung the same way with the pass-over off and on (the runs on this setting mostly end in a GPU hang). AI-assisted. Draft PR follows.

<!-- gh-comment-id:7198477484 --> @azsekazvamdimitar commented on GitHub (Nov 26, 2026): claiming: RT-SHADOW-RESERVATION-SKIP - under Wine most of the slot-133 shadow walk after the story load is VirtualQuery of reserved pages: the stream pools' unmapped 64 KiB slots inside xmem's physical-page windows, 450-7,500 of them a refresh, 1.5 us each when quiet and 15-70 us under Wine's virtual-memory lock while the title maps memory (walks of 100-330 ms a submission, RTX 3090, Wine 11). xmem records the title's placeholders and windows, and the walk passes over a page there that it found reserved until the title memory journal names it; every change of such a page goes through xmem's or the title's journalled memory calls. On my runs it cuts the queries a refresh from 443-1,616 to 70-136 and the walk from 16.5-40.4 to 10-21 ms in the first world minute. A local check that asked about every passed-over page again found 77 changed ones in 9.5 million, all journalled after the walk had looked; an A/B of the same build hung the same way with the pass-over off and on (the runs on this setting mostly end in a GPU hang). AI-assisted. Draft PR follows.
Author
Owner

@azsekazvamdimitar commented on GitHub (Nov 26, 2026):

done: RT-SHADOW-RESERVATION-SKIP -> #2391 (a draft: this account already has one open non-draft pull request). On main 935a2cd5b; shadow tests pass under WineHQ 11.22 and GE-Proton11-14 (RTX 3090), not run on Windows. AI-assisted.

<!-- gh-comment-id:7198503386 --> @azsekazvamdimitar commented on GitHub (Nov 26, 2026): done: RT-SHADOW-RESERVATION-SKIP -> #2391 (a draft: this account already has one open non-draft pull request). On `main` 935a2cd5b; shadow tests pass under WineHQ 11.22 and GE-Proton11-14 (RTX 3090), not run on Windows. AI-assisted.
Author
Owner

@x2Tweek commented on GitHub (Nov 26, 2026):

claiming: RT-PLS-TRAILING-SEPARATOR. Make XPersistentLocalStorage GetPath return a directory path ending in a backslash and GetPathSize include the separator and terminating NUL. A caller can then append a relative name without creating a sibling path. Extend the Windows shim test for the returned path and exact and short buffers. AI-assisted.

<!-- gh-comment-id:7198520146 --> @x2Tweek commented on GitHub (Nov 26, 2026): claiming: RT-PLS-TRAILING-SEPARATOR. Make XPersistentLocalStorage GetPath return a directory path ending in a backslash and GetPathSize include the separator and terminating NUL. A caller can then append a relative name without creating a sibling path. Extend the Windows shim test for the returned path and exact and short buffers. AI-assisted.
Author
Owner

@x2Tweek commented on GitHub (Nov 26, 2026):

finding: #2359 was present in a Windows 11 run on an NVIDIA RTX 5090 (driver 621.24) that passed the autosave point without the error dialog. The title wrote one new 243,296-byte story save around seven minutes into the run. The build also carried local changes, so this is an additional in-game observation alongside #2359's own before/after test. AI-assisted.

<!-- gh-comment-id:7198521232 --> @x2Tweek commented on GitHub (Nov 26, 2026): finding: #2359 was present in a Windows 11 run on an NVIDIA RTX 5090 (driver 621.24) that passed the autosave point without the error dialog. The title wrote one new 243,296-byte story save around seven minutes into the run. The build also carried local changes, so this is an additional in-game observation alongside #2359's own before/after test. AI-assisted.
Author
Owner

@qhukz13 commented on GitHub (Nov 26, 2026):

Correction to MAKE-GAME-PIPELINES-VIA-RUNTIME and my note to @aslan2142 above. A crashed build does not leave a stale requests/<name>.building. mark_building opens it with FILE_FLAG_DELETE_ON_CLOSE (runtime/shims/d3d12_compile_helper.h:159), so Windows removes it when the process dies, crash or not. As things are, a rerun would build the same module again and crash again.

So the crash-skip piece will be its own small record instead: the precompile notes an entry as in flight, flushed to disk, before the driver call, and clears it after. That is how vk_pipeline_check --inflight-file works today. A rerun skips what a dead process left listed and reports it. It stays in the precompile's build loop, not in entry selection or the skip-list, so the split with RT-PRECOMPILE-SKIP-LIST-EXPLICIT is unchanged. Everything else in the plan stands.

AI-assisted (Claude Code).

<!-- gh-comment-id:7198532316 --> @qhukz13 commented on GitHub (Nov 26, 2026): Correction to MAKE-GAME-PIPELINES-VIA-RUNTIME and my note to @aslan2142 above. A crashed build does **not** leave a stale `requests/<name>.building`. `mark_building` opens it with `FILE_FLAG_DELETE_ON_CLOSE` (`runtime/shims/d3d12_compile_helper.h:159`), so Windows removes it when the process dies, crash or not. As things are, a rerun would build the same module again and crash again. So the crash-skip piece will be its own small record instead: the precompile notes an entry as in flight, flushed to disk, before the driver call, and clears it after. That is how `vk_pipeline_check --inflight-file` works today. A rerun skips what a dead process left listed and reports it. It stays in the precompile's build loop, not in entry selection or the skip-list, so the split with RT-PRECOMPILE-SKIP-LIST-EXPLICIT is unchanged. Everything else in the plan stands. AI-assisted (Claude Code).
Author
Owner

@x2Tweek commented on GitHub (Nov 26, 2026):

Observation: #2359 removes the autosave prompt on Windows / RTX 5090

<!-- gh-comment-id:7198852914 --> @x2Tweek commented on GitHub (Nov 26, 2026): ## Observation: #2359 removes the autosave prompt on Windows / RTX 5090
Author
Owner

@nicoco23 commented on GitHub (Nov 26, 2026):

claiming: TOOLS-DSTORAGE-HISTORY-JOBS — tools/build_dstorage_history.py runs every phase (calibrate_from_pools, fit_slices, fit_decoded_neighbors, collect) on one core; on a 20-thread machine with 57 TTPF pools it sits at 100 % of one core for tens of minutes. Add --jobs N (multiprocessing, spawn-safe, --jobs 1 = current behaviour), results merged in pool order so history.bcph stays byte-identical to the sequential run (capped observation lists concatenated in pool order before the cap), and pass make_game.py --jobs through. Only phases that measure as costly get parallelised. Overlaps in file with #2148, #2236 (fit_slices) and #1538 (pool dedup); I'll rebase onto whichever lands first. AI-assisted.

<!-- gh-comment-id:7199107964 --> @nicoco23 commented on GitHub (Nov 26, 2026): claiming: TOOLS-DSTORAGE-HISTORY-JOBS — `tools/build_dstorage_history.py` runs every phase (`calibrate_from_pools`, `fit_slices`, `fit_decoded_neighbors`, `collect`) on one core; on a 20-thread machine with 57 TTPF pools it sits at 100 % of one core for tens of minutes. Add `--jobs N` (multiprocessing, spawn-safe, `--jobs 1` = current behaviour), results merged in pool order so `history.bcph` stays byte-identical to the sequential run (capped observation lists concatenated in pool order before the cap), and pass `make_game.py --jobs` through. Only phases that measure as costly get parallelised. Overlaps in file with #2148, #2236 (`fit_slices`) and #1538 (pool dedup); I'll rebase onto whichever lands first. AI-assisted.
Author
Owner

@HasiKe commented on GitHub (Nov 26, 2026):

finding, and a correction to my --loop-limit 256 result: the world-load hang in VS-as-MS draws does go away when loops are bounded tightly enough. 256 was not tight, because the loops are nested. @qhukz13, your first reading, a loop that ends but takes too long, looks right after all. AI-assisted (Claude Code).

Structure: local disassembly, opcode-level counts only. Every mesh program I looked at has the same layout:

  • The programs: the two that hung, TransformD_c5fd36bb~23/~153 and TransformTerrainNormalTint_e74ae427~11, plus eight that did not.
  • The outer loop: the round loop of the wave64 emulation. It holds 1 of the program's 3 OpControlBarriers (Workgroup scope, semantics 0x948). It has a single exit after that barrier, decided from Workgroup memory, plus its guard counter.
  • The inner loop: nested in the outer one, about 119 blocks with no barrier. Its exit is a per-invocation Function variable AND its own guard counter.
  • The guards: both counters are limited by --loop-limit, 65,536 by default. So the worst case is the product. At --loop-limit 256 that is still 65,536 passes of a very large body per invocation, plenty for a 2 s TDR even though every loop ends. That made my 256 run inconclusive.
  • Code versus data: ~23 is byte-identical SPIR-V to ~104, which is built from a different FSSM and was compiled in more of the same boots than ~23 was. So the code alone does not hang; the trip counts are data-dependent.

Runs: RTX 2070 SUPER, NVIDIA 616.56, cold, LEONIDA_COMPILE_GATE=0, LEONIDA_DEVICE_FAULT=2, main a73a57e13 + #2195 + #2233 + #2275. The translator was 71a769d7d, the one the shipped SPIR-V came from (byte-identical without the limit), with --no-asm --wave64-emulate --loop-limit 8. The swapped files were restored afterwards and checked by hash.

--loop-limit 8 on Result
the 174 programs behind those two names No hang in them. The hang moved to an unlimited mesh program (!MS_VS_Transform_4dbafe93~6 + its deferred PS) at 222 s.
all mesh programs in my work folder: 8,666 of the corpus' 9,282 (the rest come from other containers) No mesh-draw hang. The boot passed the point where every earlier boot died (the TDR always came at 5,000-5,200 submissions, 150-250 s) and ran to 6,884 submissions. The device was lost only at t=635.5 s, in a compute dispatch of lib_cs_01144. That is the known "crash B" program, even with LEONIDA_CONSOLE_FIX_US=0.

Caveat: with 8 passes per loop the mesh programs presumably compute wrong results. From about 135 s the boot ran at about 4 submissions/s and almost 0 frames/s. So it says what causes the TDR, not what a correct fix looks like.

What I think follows:

  • The fix is not a tighter limit, since that would cut legitimate work. It is finding out what the inner loop's trip count is read from in these VS-as-MS programs. The trip count is per invocation (a Function variable) and data-dependent, and the two-level structure multiplies it.
  • #2183's --loop-total, a bound on the total rather than per loop, would at least turn the product into a sum. djrolfes' scheduler-barrier concern there applies to the outer round loop, which holds the barrier.
  • I can rerun with intermediate limits (32, 64) to find where the TDR comes back. Or someone who knows the NGG/VS-as-MS lowering can say which ISA loop the inner one is; it may be a waterfall loop over something that, here, never converges in a few passes.

Logs stay local; they name game shaders.

<!-- gh-comment-id:7199209045 --> @HasiKe commented on GitHub (Nov 26, 2026): finding, and a correction to my [`--loop-limit 256` result](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7194136534): the world-load hang in VS-as-MS draws **does go away when loops are bounded tightly enough**. 256 was not tight, because the loops are nested. @qhukz13, your first reading, a loop that ends but takes too long, looks right after all. AI-assisted (Claude Code). **Structure:** local disassembly, opcode-level counts only. Every mesh program I looked at has the same layout: - **The programs:** the two that hung, `TransformD_c5fd36bb~23`/`~153` and `TransformTerrainNormalTint_e74ae427~11`, plus eight that did not. - **The outer loop:** the round loop of the wave64 emulation. It holds 1 of the program's 3 `OpControlBarrier`s (Workgroup scope, semantics 0x948). It has a single exit after that barrier, decided from Workgroup memory, plus its guard counter. - **The inner loop:** nested in the outer one, about 119 blocks with no barrier. Its exit is a per-invocation Function variable AND its own guard counter. - **The guards:** both counters are limited by `--loop-limit`, 65,536 by default. So the worst case is the **product**. At `--loop-limit 256` that is still 65,536 passes of a very large body per invocation, plenty for a 2 s TDR even though every loop ends. That made my 256 run inconclusive. - **Code versus data:** `~23` is byte-identical SPIR-V to `~104`, which is built from a different FSSM and was compiled in more of the same boots than `~23` was. So the code alone does not hang; the trip counts are data-dependent. **Runs:** RTX 2070 SUPER, NVIDIA 616.56, cold, `LEONIDA_COMPILE_GATE=0`, `LEONIDA_DEVICE_FAULT=2`, `main` `a73a57e13` + #2195 + #2233 + #2275. The translator was `71a769d7d`, the one the shipped SPIR-V came from (byte-identical without the limit), with `--no-asm --wave64-emulate --loop-limit 8`. The swapped files were restored afterwards and checked by hash. | `--loop-limit 8` on | Result | |---|---| | the 174 programs behind those two names | No hang in them. The hang moved to an **unlimited** mesh program (`!MS_VS_Transform_4dbafe93~6` + its deferred PS) at 222 s. | | all mesh programs in my work folder: 8,666 of the corpus' 9,282 (the rest come from other containers) | **No mesh-draw hang.** The boot passed the point where every earlier boot died (the TDR always came at 5,000-5,200 submissions, 150-250 s) and ran to 6,884 submissions. The device was lost only at t=635.5 s, in a **compute** dispatch of `lib_cs_01144`. That is the known "crash B" program, even with `LEONIDA_CONSOLE_FIX_US=0`. | Caveat: with 8 passes per loop the mesh programs presumably compute wrong results. From about 135 s the boot ran at about 4 submissions/s and almost 0 frames/s. So it says what causes the TDR, not what a correct fix looks like. **What I think follows:** - The fix is not a tighter limit, since that would cut legitimate work. It is finding out what the inner loop's trip count is read from in these VS-as-MS programs. The trip count is per invocation (a Function variable) and data-dependent, and the two-level structure multiplies it. - `#2183`'s `--loop-total`, a bound on the total rather than per loop, would at least turn the product into a sum. djrolfes' scheduler-barrier concern there applies to the outer round loop, which holds the barrier. - I can rerun with intermediate limits (32, 64) to find where the TDR comes back. Or someone who knows the NGG/VS-as-MS lowering can say which ISA loop the inner one is; it may be a waterfall loop over something that, here, never converges in a few passes. Logs stay local; they name game shaders.
Author
Owner

@qhukz13 commented on GitHub (Nov 26, 2026):

@HasiKe thanks, that structure narrows it a lot. In the round-loop form (Gen.x_scheduler), the only barrier-free loop nested in the round loop that switches over every segment is the chain loop: %x_ch_head / %x_ch_body / %x_ch_cont in x_round_loop_head / x_scheduler_tail (tools/rdna2spirv.py). Its body is the OpSwitch %pcv over all segment ids, which would be your ~119 blocks. It exits on the per-invocation Function variable %x_chain. Could you check that the inner loop's header in the .spvasm is %x_ch_head?

If it is, it should not run long at all. %x_chain is set only by a segment that reads a VCC/EXEC vote and picks the next block (the OpStore %x_chain %true after branch_condition, around rdna2spirv.py:19085). The block it picks then runs until its own next exchange, which ends the segment without setting it again. So by construction the chain loop makes 1-2 passes per round, and a loop that needs a new vote needs a new round. If it runs for thousands of passes in these programs, that is a translator bug in the chain, not data.

A cheap way to tell, without cutting legitimate work: give only the chain loop a tiny guard, 4 passes, and leave the round loop and everything else at the default 65,536. Locally, that is a second add_guards limit keyed on the %x_ch_head header.

  • The TDR goes away: the chain is the runaway loop, and which segment it keeps re-entering is the bug to fix.
  • It stays: the long loop is the round loop itself, so the data is in the title's own loop.

I can't reproduce it on hand-written mesh programs: 1,200 generated ones and every vote/waterfall shape I wrote end in 1-2 chain passes. So the exact segment sequence of TransformD_c5fd36bb~23 is what's missing. If you can share it without the shader itself, the control-flow skeleton would do: which blocks have a voted branch and their successors, opcodes only. I'll turn it into a test.

AI-assisted (Claude Code).

<!-- gh-comment-id:7199500682 --> @qhukz13 commented on GitHub (Nov 26, 2026): @HasiKe thanks, that structure narrows it a lot. In the round-loop form (`Gen.x_scheduler`), the only barrier-free loop nested in the round loop that switches over every segment is the **chain loop**: `%x_ch_head` / `%x_ch_body` / `%x_ch_cont` in `x_round_loop_head` / `x_scheduler_tail` (`tools/rdna2spirv.py`). Its body is the `OpSwitch %pcv` over all segment ids, which would be your ~119 blocks. It exits on the per-invocation Function variable `%x_chain`. Could you check that the inner loop's header in the `.spvasm` is `%x_ch_head`? If it is, it should not run long at all. `%x_chain` is set only by a segment that reads a VCC/EXEC vote and picks the next block (the `OpStore %x_chain %true` after `branch_condition`, around `rdna2spirv.py:19085`). The block it picks then runs until its own next exchange, which ends the segment without setting it again. So by construction the chain loop makes 1-2 passes per round, and a loop that needs a new vote needs a new round. If it runs for thousands of passes in these programs, that is a translator bug in the chain, not data. A cheap way to tell, without cutting legitimate work: give only the chain loop a tiny guard, 4 passes, and leave the round loop and everything else at the default 65,536. Locally, that is a second `add_guards` limit keyed on the `%x_ch_head` header. - **The TDR goes away:** the chain is the runaway loop, and which segment it keeps re-entering is the bug to fix. - **It stays:** the long loop is the round loop itself, so the data is in the title's own loop. I can't reproduce it on hand-written mesh programs: 1,200 generated ones and every vote/waterfall shape I wrote end in 1-2 chain passes. So the exact segment sequence of `TransformD_c5fd36bb~23` is what's missing. If you can share it without the shader itself, the control-flow skeleton would do: which blocks have a voted branch and their successors, opcodes only. I'll turn it into a test. AI-assisted (Claude Code).
Author
Owner

@aslan2142 commented on GitHub (Nov 26, 2026):

done: RT-PRECOMPILE-SKIP-LIST-EXPLICIT -> #2393

@MoonEyes, on your open question about running the large library programs on a card with more memory: we tried it today.

Machine: RX 7900 XTX 24 GB, Linux, Wine, RADV (Mesa 26.3.1), native wave64 pack, LEONIDA_RT_AS=off.

  • Precompile: all 721 library/ programs of 2 MiB or more build offline with the skip list unset. 360 of them took 170 s on 32 threads, 2.5 to 32 s each, with a peak of 14 GiB of RAM. The minutes per program we had seen came from wave64-emulated packs.
  • In game, skip list unset: the journal serves them all. 2,700 compute pipelines came from the journal, against 1,900 with the skip list, and none was built in the game. The load reaches the world.
  • Does it get further? No. One run per condition:
    • a local build of main 56bdd7e88 plus four then-open PRs stopped submitting at 404 s with the GPU idle and no fault. A lock in the runtime is suspected; the cause is not found;
    • main bd6ba97ab took a read page fault at about 214 s, then a graphics-ring timeout 30 s later and a lost device, with every queue idle in the dispatch markers.
  • Is the loss caused by the large programs? Not on this card. The same idle-queue loss happens with them skipped: two more runs today, one of them with acceleration structures built. With the skip list, our best runs reach about 11 minutes and stop on a title breakpoint.
  • Not measured: whether the programs' output is correct, and which command hangs. The markers only cover dispatches, as you noted. A run with RADV's own hang report is next here.

AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)

<!-- gh-comment-id:7199571525 --> @aslan2142 commented on GitHub (Nov 26, 2026): done: RT-PRECOMPILE-SKIP-LIST-EXPLICIT -> #2393 @MoonEyes, on your [open question](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7198006861) about running the large library programs on a card with more memory: we tried it today. Machine: RX 7900 XTX 24 GB, Linux, Wine, RADV (Mesa 26.3.1), native wave64 pack, `LEONIDA_RT_AS=off`. - **Precompile:** all 721 `library/` programs of 2 MiB or more build offline with the skip list unset. 360 of them took 170 s on 32 threads, 2.5 to 32 s each, with a peak of 14 GiB of RAM. The minutes per program we had seen came from wave64-emulated packs. - **In game, skip list unset:** the journal serves them all. 2,700 compute pipelines came from the journal, against 1,900 with the skip list, and none was built in the game. The load reaches the world. - **Does it get further? No.** One run per condition: - a local build of `main` `56bdd7e88` plus four then-open PRs stopped submitting at 404 s with the GPU idle and no fault. A lock in the runtime is suspected; the cause is not found; - `main` `bd6ba97ab` took a read page fault at about 214 s, then a graphics-ring timeout 30 s later and a lost device, with every queue idle in the dispatch markers. - **Is the loss caused by the large programs? Not on this card.** The same idle-queue loss happens with them skipped: two more runs today, one of them with acceleration structures built. With the skip list, our best runs reach about 11 minutes and stop on a title breakpoint. - **Not measured:** whether the programs' output is correct, and which command hangs. The markers only cover dispatches, as you noted. A run with RADV's own hang report is next here. AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)
Author
Owner

@aslan2142 commented on GitHub (Nov 26, 2026):

claiming: INTEGRATION-ZRO-DRAFTS — two integration PRs built by the maintainers from @ZroIsHere's draft and closed PRs, each tested as a whole, with credit on every included PR:

Left out, with the reason:

  • #2312: breaks the d3d12_trace test (review by @lixonik).
  • #2311: open review point about BUILD_TESTING.
  • #2170: extends the checker path that MAKE-GAME-PIPELINES-VIA-RUNTIME replaces.
  • #2322 and #2316: the same formats as #2247.

AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)

<!-- gh-comment-id:7200103121 --> @aslan2142 commented on GitHub (Nov 26, 2026): claiming: INTEGRATION-ZRO-DRAFTS — two integration PRs built by the maintainers from @ZroIsHere's draft and closed PRs, each tested as a whole, with credit on every included PR: - **DDS preview formats** (Python tools only): #2157, #2158, #2218, #2314, #2317, #2319, #2320, #2321, #2323, #2324, on top of #2247 (@kirigayakazima) for R8 and RG8 UNORM. - **Runtime:** #2315 (the runtime owns the executable's TLS exit callback) and #2372 (scripted input timing), each only if its review and tests hold. Left out, with the reason: - #2312: breaks the `d3d12_trace` test (review by @lixonik). - #2311: open review point about `BUILD_TESTING`. - #2170: extends the checker path that MAKE-GAME-PIPELINES-VIA-RUNTIME replaces. - #2322 and #2316: the same formats as #2247. AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)
Author
Owner

@wavehs commented on GitHub (Nov 26, 2026):

finding: a clean parallel runtime build fails at vk_null_descriptor_test because nothing creates build/generated before glslangValidator writes into it

Where: runtime/CMakeLists.txt:2266-2273 - the cs_null_descriptors.spv custom command writes ${CMAKE_CURRENT_BINARY_DIR}/generated/cs_null_descriptors.spv with no COMMAND ${CMAKE_COMMAND} -E make_directory ...; the only place that creates generated/ is another target's command at runtime/CMakeLists.txt:4170 (cs_depth_uav_*), so on a fresh build dir with -j the null-descriptor target can run first. The same pattern is used by other generated/*.spv commands (:2484, :3003, :3184, :3209, :3241), which happen to be ordered after it today.

Why it matters: cmake -S runtime -B runtime/build && cmake --build runtime/build -j8 on macOS arm64 (Vulkan SDK / Homebrew glslangValidator present) fails on a fresh directory, 2 of 2 runs, with ERROR: Failed to open file: .../build/generated/cs_null_descriptors.spv and the build stops at ~62%. mkdir -p runtime/build/generated and the same command then reaches 100% (1 of 1). A contributor's first build is red, and CI may hide it behind a generated/ left by an earlier target or an older build dir. Fix: add COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/generated to that custom command, or a configure-time file(MAKE_DIRECTORY ...).

Needs: only CMake and glslangValidator (no game files, no GPU). Reproduced on macOS 27.2.1 arm64, CMake 4.5.0; should affect any platform whose glslangValidator is found.

<!-- gh-comment-id:7200181096 --> @wavehs commented on GitHub (Nov 26, 2026): finding: a clean parallel runtime build fails at `vk_null_descriptor_test` because nothing creates `build/generated` before glslangValidator writes into it Where: `runtime/CMakeLists.txt:2266-2273` - the `cs_null_descriptors.spv` custom command writes `${CMAKE_CURRENT_BINARY_DIR}/generated/cs_null_descriptors.spv` with no `COMMAND ${CMAKE_COMMAND} -E make_directory ...`; the only place that creates `generated/` is another target's command at `runtime/CMakeLists.txt:4170` (`cs_depth_uav_*`), so on a fresh build dir with `-j` the null-descriptor target can run first. The same pattern is used by other `generated/*.spv` commands (`:2484`, `:3003`, `:3184`, `:3209`, `:3241`), which happen to be ordered after it today. Why it matters: `cmake -S runtime -B runtime/build && cmake --build runtime/build -j8` on macOS arm64 (Vulkan SDK / Homebrew glslangValidator present) fails on a fresh directory, 2 of 2 runs, with `ERROR: Failed to open file: .../build/generated/cs_null_descriptors.spv` and the build stops at ~62%. `mkdir -p runtime/build/generated` and the same command then reaches 100% (1 of 1). A contributor's first build is red, and CI may hide it behind a `generated/` left by an earlier target or an older build dir. Fix: add `COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/generated` to that custom command, or a configure-time `file(MAKE_DIRECTORY ...)`. Needs: only CMake and glslangValidator (no game files, no GPU). Reproduced on macOS 27.2.1 arm64, CMake 4.5.0; should affect any platform whose glslangValidator is found.
Author
Owner

@ecox982745 commented on GitHub (Nov 26, 2026):

The fresh-build failure reported above already has a one-line fix in #2096. I applied its head beffaa9a47 change to main bdbc7e9236 and tested four empty build directories on Windows 11, with MSVC, CMake 3.31.6 and glslang 16.6.0. I built only vk_null_descriptor_test in each directory so another target could not create the output directory first.

CMake generator Main Main with #2096
NMake Makefiles Exit 2. glslang could not open generated/cs_null_descriptors.spv. The shader and executable were both absent. Build and GPU test passed.
Ninja Build and GPU test passed. Build and GPU test passed.

The three successful builds produced byte-identical SPIR-V modules, each validated for Vulkan 1.3. In all three, ctest -R '^vk_null_descriptor$' ran on a physical RTX 4090 with Vulkan validation enabled (NVIDIA 616.64). The failing NMake run was serial, so parallel scheduling is unnecessary to reproduce this particular missing-directory error.

AI-assisted verification with OpenAI Codex (GPT-6).

<!-- gh-comment-id:7200276586 --> @ecox982745 commented on GitHub (Nov 26, 2026): The [fresh-build failure reported above](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7200181096) already has a one-line fix in #2096. I applied its head `beffaa9a47` change to `main` `bdbc7e9236` and tested four empty build directories on Windows 11, with MSVC, CMake 3.31.6 and glslang 16.6.0. I built only `vk_null_descriptor_test` in each directory so another target could not create the output directory first. | CMake generator | Main | Main with #2096 | | --- | --- | --- | | NMake Makefiles | Exit 2. glslang could not open `generated/cs_null_descriptors.spv`. The shader and executable were both absent. | Build and GPU test passed. | | Ninja | Build and GPU test passed. | Build and GPU test passed. | The three successful builds produced byte-identical SPIR-V modules, each validated for Vulkan 1.3. In all three, `ctest -R '^vk_null_descriptor$'` ran on a physical RTX 4090 with Vulkan validation enabled (NVIDIA 616.64). The failing NMake run was serial, so parallel scheduling is unnecessary to reproduce this particular missing-directory error. AI-assisted verification with OpenAI Codex (GPT-6).
Author
Owner

@wavehs commented on GitHub (Nov 26, 2026):

finding: the macos-python job has exactly three red files on main bd6ba97ab, and each already has an open PR; merging those three makes the job green without a runner:

  1. tests/test_mod_pack_output_alias.py:41 — ModsError not raised (2 subtests). The fake samefile compares tempfile's spelling, but report_paths.same_report_path (tools/report_paths.py:89) hands it realpath names, so /var/... vs /private/var/... never matches. #1412 (earlier, also covers the Windows RUNNER~1 vs runneradmin spelling) fixes it; #2175 is a later duplicate of the same three lines. Reproduce: python3 -I tests/test_mod_pack_output_alias.py.
  2. tests/test_calibrated_texture_extra.py:2237 — OSError not raised. Without numpy, _load_calibrated_texture() runs the module under mock.patch.dict(sys.modules, {"numpy": fake_np}), which on exit removes replace_retry from sys.modules; the test then patches a second copy. #2101 patches ct.replace_retry, and the same file is red in the Windows check job, which also runs the stdlib loop before installing numpy. Reproduce: python3 -I tests/test_calibrated_texture_extra.py.
  3. tests/test_translate.py::*[cs_dpp_cmp.asm] — llvm-mc 23 rejects v_cmp_gt_f32_dpp ... with dpp variant of this instruction is not supported, before the translator runs. #1375 makes the marked text-only sample its listing as run_gpu_tests.py already does. Reproduce: python -m pytest tests/test_translate.py -k cs_dpp_cmp.

My full local runs at that commit: translator suite 500 files, 6367 tests, 0 files failed; workflow pytest list 1919 passed, 20 skipped plus exactly those 2 failures; node --test tests/test_*.cjs 69 pass; ctest 112/112 (macOS portable subset). The standard-library loop fails only items 1 and 2 (545 files).

Separate, not a main red: #1978's new guard test is red on current main because scripts/run_address_guard_gpu_test.py:71 (from #2350, after the PR opened) still defaults --llvm-mc to the plain name; the PR needs that third script folded in. Details are in the PR comment.

AI-assisted (verification only).

<!-- gh-comment-id:7200312965 --> @wavehs commented on GitHub (Nov 26, 2026): finding: the `macos-python` job has exactly three red files on `main` `bd6ba97ab`, and each already has an open PR; merging those three makes the job green without a runner: 1. `tests/test_mod_pack_output_alias.py:41` — `ModsError not raised` (2 subtests). The fake `samefile` compares `tempfile`'s spelling, but `report_paths.same_report_path` (`tools/report_paths.py:89`) hands it `realpath` names, so `/var/...` vs `/private/var/...` never matches. #1412 (earlier, also covers the Windows `RUNNER~1` vs `runneradmin` spelling) fixes it; #2175 is a later duplicate of the same three lines. Reproduce: `python3 -I tests/test_mod_pack_output_alias.py`. 2. `tests/test_calibrated_texture_extra.py:2237` — `OSError not raised`. Without numpy, `_load_calibrated_texture()` runs the module under `mock.patch.dict(sys.modules, {"numpy": fake_np})`, which on exit removes `replace_retry` from `sys.modules`; the test then patches a second copy. #2101 patches `ct.replace_retry`, and the same file is red in the Windows `check` job, which also runs the stdlib loop before installing numpy. Reproduce: `python3 -I tests/test_calibrated_texture_extra.py`. 3. `tests/test_translate.py::*[cs_dpp_cmp.asm]` — `llvm-mc` 23 rejects `v_cmp_gt_f32_dpp ...` with `dpp variant of this instruction is not supported`, before the translator runs. #1375 makes the marked text-only sample its listing as `run_gpu_tests.py` already does. Reproduce: `python -m pytest tests/test_translate.py -k cs_dpp_cmp`. My full local runs at that commit: translator suite `500 files, 6367 tests, 0 files failed`; workflow pytest list `1919 passed, 20 skipped` plus exactly those 2 failures; `node --test tests/test_*.cjs` 69 pass; ctest 112/112 (macOS portable subset). The standard-library loop fails only items 1 and 2 (545 files). Separate, not a main red: #1978's new guard test is red on current main because `scripts/run_address_guard_gpu_test.py:71` (from #2350, after the PR opened) still defaults `--llvm-mc` to the plain name; the PR needs that third script folded in. Details are in the PR comment. AI-assisted (verification only).
Author
Owner

@wavehs commented on GitHub (Nov 26, 2026):

Follow-up on the Windows reds, since Actions still has no completed check job: str(OSError) reprs its filename, so a Windows path has every separator doubled and a test that asserts the plain path fails only there. That can be reproduced on POSIX by pointing TMPDIR at a folder whose name contains one backslash (legal on POSIX), then running the standard-library loop. On main bd6ba97ab the complete loop gives exactly these real failures:

  • tests/test_bink_names.py::test_unreadable_mount_directory_preserves_the_report
  • tests/test_opus_tags.py::test_cli_reports_incomplete_directory_discovery
  • tests/test_world_names.py::test_an_unreadable_subtree_does_not_replace_the_dictionary

all three with assertIn(blocked, stderr) seeing ...back\\\\slash... where the test expects ...back\\slash... — the Windows check reds owned by #128. With #128 applied, the same three files are OK under the same TMPDIR.

  • tests/test_calibrated_texture_extra.py::test_export_file_replacement_failure_cleans_temporary_file — the numpy-less shim red, #2101 (unrelated to the path spelling).

tests/test_mod_pack_output_alias.py does not need the backslash: on macOS it is already red for the /var vs /private/var spelling, and on Windows for RUNNER~1 vs runneradmin; #1412 fixes both.

Caveat for anyone reusing the trick: it also turns test_cmake_*, test_run_wine_tests and test_texture_readback_sync red because CMake/shlex unescape the \\s; those are artifacts of a POSIX path holding a backslash, not Windows failures (a C:\\Users\\... path has no \\s/\\t escape there, and the Windows jobs are green for them).

The pytest file list under the same TMPDIR has no additional path failures (only the two cs_dpp_cmp llvm-mc 23 ones, #1375). So #128 + #1412 + #2101 + #1375 should be the whole Windows/macOS red set for the Python jobs.

AI-assisted (verification only).

<!-- gh-comment-id:7200549478 --> @wavehs commented on GitHub (Nov 26, 2026): Follow-up on the Windows reds, since Actions still has no completed `check` job: `str(OSError)` reprs its filename, so a Windows path has every separator doubled and a test that asserts the plain path fails only there. That can be reproduced on POSIX by pointing `TMPDIR` at a folder whose name contains one backslash (legal on POSIX), then running the standard-library loop. On `main` `bd6ba97ab` the complete loop gives exactly these real failures: - `tests/test_bink_names.py::test_unreadable_mount_directory_preserves_the_report` - `tests/test_opus_tags.py::test_cli_reports_incomplete_directory_discovery` - `tests/test_world_names.py::test_an_unreadable_subtree_does_not_replace_the_dictionary` all three with `assertIn(blocked, stderr)` seeing `...back\\\\slash...` where the test expects `...back\\slash...` — the Windows `check` reds owned by #128. With #128 applied, the same three files are `OK` under the same `TMPDIR`. - `tests/test_calibrated_texture_extra.py::test_export_file_replacement_failure_cleans_temporary_file` — the numpy-less shim red, #2101 (unrelated to the path spelling). `tests/test_mod_pack_output_alias.py` does not need the backslash: on macOS it is already red for the `/var` vs `/private/var` spelling, and on Windows for `RUNNER~1` vs `runneradmin`; #1412 fixes both. Caveat for anyone reusing the trick: it also turns `test_cmake_*`, `test_run_wine_tests` and `test_texture_readback_sync` red because CMake/`shlex` unescape the `\\s`; those are artifacts of a POSIX path holding a backslash, not Windows failures (a `C:\\Users\\...` path has no `\\s`/`\\t` escape there, and the Windows jobs are green for them). The pytest file list under the same `TMPDIR` has no additional path failures (only the two `cs_dpp_cmp` llvm-mc 23 ones, #1375). So #128 + #1412 + #2101 + #1375 should be the whole Windows/macOS red set for the Python jobs. AI-assisted (verification only).
Author
Owner

@budanga commented on GitHub (Nov 26, 2026):

claiming: BOOT-PS1-PYTHON-ALIAS - scripts/windows-boot/boot.ps1 Resolve-Python takes python as soon as Get-Command finds it, so on a machine where python is only the Microsoft Store app execution alias (%LOCALAPPDATA%\Microsoft\WindowsApps\python.exe, exit 9009) and Python is installed through py, tools/boot_trace.py never runs and <name>.summary.txt holds only "Python was not found; ...". Seen on Windows 11 26300 with Python 3.14 from the install manager. Fix: check that the candidate actually starts and is 3.12+ before choosing it, else fall back to py -3; a test for the choice.

<!-- gh-comment-id:7200607660 --> @budanga commented on GitHub (Nov 26, 2026): claiming: BOOT-PS1-PYTHON-ALIAS - `scripts/windows-boot/boot.ps1` `Resolve-Python` takes `python` as soon as `Get-Command` finds it, so on a machine where `python` is only the Microsoft Store app execution alias (`%LOCALAPPDATA%\Microsoft\WindowsApps\python.exe`, exit 9009) and Python is installed through `py`, `tools/boot_trace.py` never runs and `<name>.summary.txt` holds only "Python was not found; ...". Seen on Windows 11 26300 with Python 3.14 from the install manager. Fix: check that the candidate actually starts and is 3.12+ before choosing it, else fall back to `py -3`; a test for the choice.
Author
Owner

@wavehs commented on GitHub (Nov 26, 2026):

finding: five duplicate/overlapping reland groups in the open PR queue, from grouping the 1,496 open titles by their OLD-#### id and diffing the patches. All apply cleanly to main f107ae044; the verdicts below are from local runs.

Byte-identical pairs (one is redundant):

  • OLD-9792: #696 (2026-11-24 12:17) == #1268 (21:05). find_hash_lookup; #696 tested OK. Keep #696.
  • OLD-9920: #1330 (21:58) == #1338 (22:00). check_d3d12_trace; #1330 tested OK. Keep #1330.
  • OLD-10050: #718 (12:51) == #1303 (21:34), both replace draft #316. mods::joaat; #718 builds and ctest -R '^mods$' passes, and its test alone fails to compile against the old mods.h (12 static_asserts). Keep #718.

Not identical; pick the stronger one:

  • OLD-2528: #765 (13:35) vs #1295 (21:24). Same --pc-tail-ubo address fix; #765 requires two distinct dwords in 0..63 and tests [4,4], [64,65], [70000,70001], #1295 accepts any non-negative pair. #765 is safer.
  • OLD-8385: #703 (12:24) vs #1280 (21:14). Same doc_notes fix; #703 handles ~~~ fences, unclosed fences and nested markers with tests, #1280 only toggles on ```. #703 is more complete.

Earlier dupes already noted in comments: #128 (draft) vs #1792 for OLD-9861, and #1412 vs #2175 (the mod-pack alias test). The test-side #1425 is mutually exclusive with #1792 (it asserts the repr that #1792 removes).

This is only the OLD-####-in-title subset; pairs whose titles omit the id (e.g. #1412/#2175) need the file-level check. I did not close anything — the pairs are for the coordinator/owners to pick from.

AI-assisted (verification only).

<!-- gh-comment-id:7200868801 --> @wavehs commented on GitHub (Nov 26, 2026): finding: five duplicate/overlapping reland groups in the open PR queue, from grouping the 1,496 open titles by their `OLD-####` id and diffing the patches. All apply cleanly to `main` `f107ae044`; the verdicts below are from local runs. **Byte-identical pairs (one is redundant):** - OLD-9792: **#696** (2026-11-24 12:17) == **#1268** (21:05). `find_hash_lookup`; #696 tested OK. Keep #696. - OLD-9920: **#1330** (21:58) == **#1338** (22:00). `check_d3d12_trace`; #1330 tested OK. Keep #1330. - OLD-10050: **#718** (12:51) == **#1303** (21:34), both replace draft **#316**. `mods::joaat`; #718 builds and `ctest -R '^mods$'` passes, and its test alone fails to compile against the old `mods.h` (12 `static_assert`s). Keep #718. **Not identical; pick the stronger one:** - OLD-2528: **#765** (13:35) vs **#1295** (21:24). Same `--pc-tail-ubo` address fix; #765 requires two distinct dwords in `0..63` and tests `[4,4]`, `[64,65]`, `[70000,70001]`, #1295 accepts any non-negative pair. #765 is safer. - OLD-8385: **#703** (12:24) vs **#1280** (21:14). Same `doc_notes` fix; #703 handles `~~~` fences, unclosed fences and nested markers with tests, #1280 only toggles on ```. #703 is more complete. Earlier dupes already noted in comments: #128 (draft) vs **#1792** for OLD-9861, and **#1412** vs #2175 (the mod-pack alias test). The test-side #1425 is mutually exclusive with #1792 (it asserts the repr that #1792 removes). This is only the `OLD-####`-in-title subset; pairs whose titles omit the id (e.g. #1412/#2175) need the file-level check. I did not close anything — the pairs are for the coordinator/owners to pick from. AI-assisted (verification only).
Author
Owner

@wavehs commented on GitHub (Nov 26, 2026):

Correction/completion to my duplicate list above: grouping all 1,496 open titles by their normalized text (and by OLD-####) gives exactly six pairs where both copies are non-draft, not five. The missing one is:

  • OLD-10067: #736 (13:10) vs #937 (15:17), make_game.wave64_settings partial-vulkaninfo output. They are the same content, and both now conflict with main f107ae044: the function moved to make_game.py:1932 and max_subgroup_decider() now returns size, decider, left_out. The bug is still live on main — mocking vulkaninfo with returncode=1 plus a partial 64-wide real_format(...) yields (False, True) where (True, True) is wanted. Rebase guide is in the #736 comment.

So the active duplicate set is: #696/#1268, #1330/#1338, #718/#1303, #736/#937 (earlier one is the keeper in each; the later one closes), plus #765/#1295 and #703/#1280 where the earlier PR is also the stronger one. Details per pair are in the PR comments.

The 263 draft PRs (the preserved old-pr/* carries, e.g. #316, #128, #188, #332) are not duplicates to close until a non-draft replacement lands; that is the pattern the OLD-id titles show.

AI-assisted (verification only).

<!-- gh-comment-id:7200894947 --> @wavehs commented on GitHub (Nov 26, 2026): Correction/completion to my duplicate list above: grouping all 1,496 open titles by their normalized text (and by `OLD-####`) gives exactly **six** pairs where both copies are non-draft, not five. The missing one is: - OLD-10067: **#736** (13:10) vs **#937** (15:17), `make_game.wave64_settings` partial-`vulkaninfo` output. They are the same content, and **both now conflict** with `main` `f107ae044`: the function moved to `make_game.py:1932` and `max_subgroup_decider()` now returns `size, decider, left_out`. The bug is still live on main — mocking `vulkaninfo` with `returncode=1` plus a partial 64-wide `real_format(...)` yields `(False, True)` where `(True, True)` is wanted. Rebase guide is in the #736 comment. So the active duplicate set is: #696/#1268, #1330/#1338, #718/#1303, #736/#937 (earlier one is the keeper in each; the later one closes), plus #765/#1295 and #703/#1280 where the earlier PR is also the stronger one. Details per pair are in the PR comments. The 263 draft PRs (the preserved `old-pr/*` carries, e.g. #316, #128, #188, #332) are not duplicates to close until a non-draft replacement lands; that is the pattern the OLD-id titles show. AI-assisted (verification only).
Author
Owner

@HasiKe commented on GitHub (Nov 26, 2026):

finding: since #2356 made LEONIDA_GEOMETRY_REMAP_RELEASE and LEONIDA_HEAP_MIRROR opt-in, the title crashes on the CPU about 80-160 s into a boot on an RTX 2070 SUPER (NVIDIA 616.56). With both set to 1 (the defaults before #2356), it does not crash. @aslan2142, this is the NVIDIA side of your AMD fix. AI-assisted (Claude Code).

Setup: my own 1.0.2.1 package, the portable play-folder recipe: warm 9.4 GB seed cache plus journal, LEONIDA_CONSOLE_D16S8=native, keyboard pad, 4096 MB title windows and arena, the watchdog kicked, LEONIDA_CONSOLE_FIX_US=0, gate on. Boots of 200-240 s.

Bisect, with only main merges and #2195 where the base lacked it:

Build Boots Unhandled exceptions
73516a290 (#1886) + #2195 2 0
fbf100b1b (#2350) 2 0 (one boot stalled at 100 s with no exception)
246791612 (#2356) 2 1 (0xc0000005 at about 161 s)
bd6ba97ab + #2365 #2233 #2275 #2276 #2306 3 3 (0xc0000005 at 107-120 s)

Same latest build, switches set per boot:

LEONIDA_GEOMETRY_REMAP_RELEASE / LEONIDA_HEAP_MIRROR Boots Exceptions Steady frames/s
unset / unset (the default now) 3 3 -
1 / unset 3 1 69-74 in the two clean boots
1 / 1 (the defaults before #2356) 3 0 55-87, 17,000-27,000 submissions in 200 s

What the crashes look like:

  • The crash log (#2306): the faults are in the title's own code, at three different sites: a read of 0x0, of 0x18 and of 0xffffffffffffffff. The 0x18 site came back with REMAP_RELEASE=1 alone.
  • The threads: every faulting thread started at the same title entry point, a worker pool.
  • No device loss: no device loss and no runtime refusal before any of them.

That looks like the title reading stale or overwritten data rather than one API answering wrong. One plausible path: without the remap release, a geometry copy follows a page that has since been remapped to another frame. Whatever lands back in title memory from it then lands in someone else's data. I have not traced which write it is.

Suggestion: keep both switches as you have them for AMD, but make the default per vendor, or at least list both switches in the NVIDIA notes. For players on NVIDIA I've set LEONIDA_GEOMETRY_REMAP_RELEASE=1 and LEONIDA_HEAP_MIRROR=1 in my launcher. I can test any narrower change on this card, for example remap release on but with the root-view/placed-view cases you found excluded.

Counts and module offsets only; logs stay local.

<!-- gh-comment-id:7200925575 --> @HasiKe commented on GitHub (Nov 26, 2026): finding: since #2356 made `LEONIDA_GEOMETRY_REMAP_RELEASE` and `LEONIDA_HEAP_MIRROR` opt-in, the title crashes on the **CPU** about 80-160 s into a boot on an RTX 2070 SUPER (NVIDIA 616.56). With both set to `1` (the defaults before #2356), it does not crash. @aslan2142, this is the NVIDIA side of your AMD fix. AI-assisted (Claude Code). **Setup:** my own 1.0.2.1 package, the portable play-folder recipe: warm 9.4 GB seed cache plus journal, `LEONIDA_CONSOLE_D16S8=native`, keyboard pad, 4096 MB title windows and arena, the watchdog kicked, `LEONIDA_CONSOLE_FIX_US=0`, gate on. Boots of 200-240 s. **Bisect, with only main merges and #2195 where the base lacked it:** | Build | Boots | Unhandled exceptions | |---|---|---| | `73516a290` (#1886) + #2195 | 2 | 0 | | `fbf100b1b` (#2350) | 2 | 0 (one boot stalled at 100 s with no exception) | | `246791612` (#2356) | 2 | **1** (`0xc0000005` at about 161 s) | | `bd6ba97ab` + #2365 #2233 #2275 #2276 #2306 | 3 | **3** (`0xc0000005` at 107-120 s) | **Same latest build, switches set per boot:** | `LEONIDA_GEOMETRY_REMAP_RELEASE` / `LEONIDA_HEAP_MIRROR` | Boots | Exceptions | Steady frames/s | |---|---|---|---| | unset / unset (the default now) | 3 | 3 | - | | `1` / unset | 3 | 1 | 69-74 in the two clean boots | | `1` / `1` (the defaults before #2356) | 3 | **0** | 55-87, 17,000-27,000 submissions in 200 s | **What the crashes look like:** - **The crash log (#2306):** the faults are in the title's own code, at three different sites: a read of 0x0, of 0x18 and of 0xffffffffffffffff. The 0x18 site came back with `REMAP_RELEASE=1` alone. - **The threads:** every faulting thread started at the same title entry point, a worker pool. - **No device loss:** no device loss and no runtime refusal before any of them. That looks like the title reading stale or overwritten data rather than one API answering wrong. One plausible path: without the remap release, a geometry copy follows a page that has since been remapped to another frame. Whatever lands back in title memory from it then lands in someone else's data. I have not traced which write it is. **Suggestion:** keep both switches as you have them for AMD, but make the default per vendor, or at least list both switches in the NVIDIA notes. For players on NVIDIA I've set `LEONIDA_GEOMETRY_REMAP_RELEASE=1` and `LEONIDA_HEAP_MIRROR=1` in my launcher. I can test any narrower change on this card, for example remap release on but with the root-view/placed-view cases you found excluded. Counts and module offsets only; logs stay local.
Author
Owner

@OreoFR commented on GitHub (Nov 26, 2026):

finding: LEONIDA_COMPILE_GATE is on by default, but runtime/README.md says it is off.

  • Code: runtime/src/vulkan_device_fault.h:425, compile_gate_enabled() returns true unless the value is 0 (from #2098, 9f98dcc61).
  • README: runtime/README.md:421 lists the default as unset and says "1: ... Unset: the asynchronous workers compile while other queues submit".
  • Why it matters: with the gate on, every vkQueueSubmit waits while a pipeline create is in the driver. On the first boot after retranslating the shaders (compute warm-up all cache misses), my run logged 1,056 submissions that waited, 434 s in all, longest 13 s. The intro ran at 0.4-0.8 fps and the world was not reached in 600 s. RTX 4070 Laptop 8 GB, NVIDIA 621.40, main aa663c4c5 (+ #2102 and #1647, translator only).

Either the README or the default should change; I can't tell which one #2098 meant. Checking the mismatch needs no game files. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7200928835 --> @OreoFR commented on GitHub (Nov 26, 2026): finding: `LEONIDA_COMPILE_GATE` is on by default, but `runtime/README.md` says it is off. - **Code:** `runtime/src/vulkan_device_fault.h:425`, `compile_gate_enabled()` returns true unless the value is `0` (from #2098, `9f98dcc61`). - **README:** `runtime/README.md:421` lists the default as `unset` and says "`1`: ... Unset: the asynchronous workers compile while other queues submit". - **Why it matters:** with the gate on, every `vkQueueSubmit` waits while a pipeline create is in the driver. On the first boot after retranslating the shaders (compute warm-up all cache misses), my run logged 1,056 submissions that waited, 434 s in all, longest 13 s. The intro ran at 0.4-0.8 fps and the world was not reached in 600 s. RTX 4070 Laptop 8 GB, NVIDIA 621.40, `main` `aa663c4c5` (+ #2102 and #1647, translator only). Either the README or the default should change; I can't tell which one #2098 meant. Checking the mismatch needs no game files. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@wavehs commented on GitHub (Nov 26, 2026):

finding: test_export_file_replacement_failure_cleans_temporary_file patches a replace_retry module instance the code does not use, and fails without numpy

  • Where: tests/test_calibrated_texture_extra.py:2230-2241 (mock.patch("replace_retry.replace", ...)), with _load_calibrated_texture() at :949-964 and its mock.patch.dict(sys.modules, {"numpy": fake_np}) at :959; the code under test is tools/calibrated_texture.py export_file -> replace_retry.replace.
  • Why: when numpy is absent the stdlib-shim loader runs tools/calibrated_texture.py inside mock.patch.dict(sys.modules, ...); on exit patch.dict restores sys.modules and drops the replace_retry module that was first imported in that block, so ct.replace_retry is an orphaned module object and the test's later mock.patch("replace_retry.replace") patches a different one. export_file returns 0 and the test fails with AssertionError: OSError not raised. It passes where numpy is installed (the plain-import branch), so CI does not see it. Confirmed on a clean main bdbc7e923: the global patch has no effect; mock.patch.object(T.ct.replace_retry, "replace", ...) makes the test pass.
  • Fix, when someone owns that file: patch the module object (mock.patch.object(ct.replace_retry, "replace", ...)) like the neighbouring tests do with mock.patch.object(ct, ...).
  • Needs: nothing - no game files, no GPU, no specific hardware. Reproduced on macOS arm64 / CPython 3.15.2 without numpy; a CPython interpreter without numpy on any OS is enough.
<!-- gh-comment-id:7200983259 --> @wavehs commented on GitHub (Nov 26, 2026): finding: `test_export_file_replacement_failure_cleans_temporary_file` patches a `replace_retry` module instance the code does not use, and fails without numpy - Where: `tests/test_calibrated_texture_extra.py:2230-2241` (`mock.patch("replace_retry.replace", ...)`), with `_load_calibrated_texture()` at `:949-964` and its `mock.patch.dict(sys.modules, {"numpy": fake_np})` at `:959`; the code under test is `tools/calibrated_texture.py` `export_file` -> `replace_retry.replace`. - Why: when numpy is absent the stdlib-shim loader runs `tools/calibrated_texture.py` inside `mock.patch.dict(sys.modules, ...)`; on exit `patch.dict` restores `sys.modules` and drops the `replace_retry` module that was first imported in that block, so `ct.replace_retry` is an orphaned module object and the test's later `mock.patch("replace_retry.replace")` patches a different one. `export_file` returns 0 and the test fails with `AssertionError: OSError not raised`. It passes where numpy is installed (the plain-import branch), so CI does not see it. Confirmed on a clean `main` `bdbc7e923`: the global patch has no effect; `mock.patch.object(T.ct.replace_retry, "replace", ...)` makes the test pass. - Fix, when someone owns that file: patch the module object (`mock.patch.object(ct.replace_retry, "replace", ...)`) like the neighbouring tests do with `mock.patch.object(ct, ...)`. - Needs: nothing - no game files, no GPU, no specific hardware. Reproduced on macOS arm64 / CPython 3.15.2 without numpy; a CPython interpreter without numpy on any OS is enough.
Author
Owner

@OreoFR commented on GitHub (Nov 26, 2026):

@zmasi a data point for your deliberate-break finding (7180486160): RTX 4070 Laptop 8 GB, NVIDIA 621.40, main aa663c4c5 runtime, shaders regenerated with #2102 + #1647, LEONIDA_COMPUTE_WARMUP=0 (intro now at 18-20 fps, no compile-gate stalls). The title hits 0x80000003 at game_scarlett_master.exe+0x2474ce1 at t≈104 s, still in the intro, before any world load. No device loss, no long stall, no dstorage error before it. Top frames: +0x2474ce1, +0x2474c42, +0x188523. Which site does your break hit? If it's the same, it isn't tied to world load. A second run is going now to see if it repeats. AI-assisted (Claude Code, Claude Opus 5.5).

<!-- gh-comment-id:7201121458 --> @OreoFR commented on GitHub (Nov 26, 2026): @zmasi a data point for your deliberate-break finding (7180486160): RTX 4070 Laptop 8 GB, NVIDIA 621.40, `main` `aa663c4c5` runtime, shaders regenerated with #2102 + #1647, `LEONIDA_COMPUTE_WARMUP=0` (intro now at 18-20 fps, no compile-gate stalls). The title hits `0x80000003` at `game_scarlett_master.exe+0x2474ce1` at t≈104 s, still in the intro, before any world load. No device loss, no long stall, no dstorage error before it. Top frames: `+0x2474ce1`, `+0x2474c42`, `+0x188523`. Which site does your break hit? If it's the same, it isn't tied to world load. A second run is going now to see if it repeats. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@ERROR890 commented on GitHub (Nov 26, 2026):

releasing: BOOT-TLS-ATEXIT-CALLBACK - superseded upstream by #2315 (338dc11ea, 48f87a9c9, merged through #2395): the runtime now keeps the EXE's thread-local destructor callback with the UCRT's real signature and runs it from exit()/_cexit() before the atexit handlers. PR #2354 is closed, not merged.

Worth recording for anyone who touches this path: an extra call from the loader's DLL_THREAD_DETACH handler is harmful: the executable's callback is already in its TLS directory, which the loader runs there, so calling it again double-runs vcruntime's thread-local destructors. Measured on 1.0.2.1, RTX 5070 / driver 621.40 / Windows 11 26H2: with the extra call an unhandled 0xC0000005 inside a minute, twice; the same tree without it ran its full window and presented.

Still open from my claims: NATIVE-PSO-STANDIN-BLEND (#2368) and GPU-RESULT-RTX5070-62140 (#2358).

<!-- gh-comment-id:7201163234 --> @ERROR890 commented on GitHub (Nov 26, 2026): releasing: BOOT-TLS-ATEXIT-CALLBACK - superseded upstream by #2315 (`338dc11ea`, `48f87a9c9`, merged through #2395): the runtime now keeps the EXE's thread-local destructor callback with the UCRT's real signature and runs it from `exit()`/`_cexit()` before the atexit handlers. PR #2354 is closed, not merged. Worth recording for anyone who touches this path: an extra call from the loader's `DLL_THREAD_DETACH` handler is harmful: the executable's callback is already in its TLS directory, which the loader runs there, so calling it again double-runs vcruntime's thread-local destructors. Measured on 1.0.2.1, RTX 5070 / driver 621.40 / Windows 11 26H2: with the extra call an unhandled `0xC0000005` inside a minute, twice; the same tree without it ran its full window and presented. Still open from my claims: NATIVE-PSO-STANDIN-BLEND (#2368) and GPU-RESULT-RTX5070-62140 (#2358).
Author
Owner

@wavehs commented on GitHub (Nov 26, 2026):

Status update, one item from the red-set finding above is fixed: #1375 merged (2026-11-26 18:53), and on main 2d43417d4 the workflow's own pytest file list is now fully green locally — 1927 passed, 20 skipped, 129 subtests passed, with llvm-mc 23.1.5 (the two cs_dpp_cmp failures are gone). The translator suite is 500 files, 6373 tests, 0 files failed, including with a backslash in TMPDIR.

The standard-library loop still has exactly two reds, both with open PRs:

  • tests/test_calibrated_texture_extra.py -> #2101 (numpy-less patch.dict(sys.modules) orphaning replace_retry);
  • tests/test_mod_pack_output_alias.py -> #1412 (also #2175 duplicate).

Under the backslash-TMPDIR Windows simulation, bink_names/opus_tags/world_names still fail as before: that is #1792 (product-side, rebased, verified) vs #1425 (test-side, mutually exclusive); #128 is the duplicate draft of #1792. Everything else that turns red in that simulation (test_cmake_*, run_wine_tests, texture_readback_sync) is the \s-unescaping artifact, not a Windows failure.

So the Python jobs need #1412 + #2101, and either #1792 or #1425 for Windows, to be green.

AI-assisted (verification only).

<!-- gh-comment-id:7201247240 --> @wavehs commented on GitHub (Nov 26, 2026): Status update, one item from the red-set finding above is fixed: **#1375 merged** (2026-11-26 18:53), and on `main` `2d43417d4` the workflow's own pytest file list is now fully green locally — `1927 passed, 20 skipped, 129 subtests passed`, with llvm-mc 23.1.5 (the two `cs_dpp_cmp` failures are gone). The translator suite is `500 files, 6373 tests, 0 files failed`, including with a backslash in `TMPDIR`. The standard-library loop still has exactly two reds, both with open PRs: - `tests/test_calibrated_texture_extra.py` -> #2101 (numpy-less `patch.dict(sys.modules)` orphaning `replace_retry`); - `tests/test_mod_pack_output_alias.py` -> #1412 (also #2175 duplicate). Under the backslash-`TMPDIR` Windows simulation, `bink_names`/`opus_tags`/`world_names` still fail as before: that is #1792 (product-side, rebased, verified) vs #1425 (test-side, mutually exclusive); #128 is the duplicate draft of #1792. Everything else that turns red in that simulation (`test_cmake_*`, `run_wine_tests`, `texture_readback_sync`) is the `\s`-unescaping artifact, not a Windows failure. So the Python jobs need #1412 + #2101, and either #1792 or #1425 for Windows, to be green. AI-assisted (verification only).
Author
Owner

@ERROR890 commented on GitHub (Nov 26, 2026):

claiming: PSO-STREAM-VIEW-INSTANCING - runtime/shims/d3d12_xs_pso_stream.cpp: layout_of does not model D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_VIEW_INSTANCING, while the stream parser that decides creation (runtime/shims/d3d12_vulkan_device.cpp, the VIEW_INSTANCING case) accepts that subobject when ViewInstanceCount == 0. A stream with one therefore creates a PSO and is never captured by PsoStreamRecord::capture, so the PSO carries no kept stream and every CreateDerivedPipelineState on it fails with E_FAIL ("base PSO has no kept stream"). The fix models the subobject's size and alignment in the capture walker and covers it in pso_stream_test with a synthetic stream; the ViewInstanceCount == 0 restriction means the payload's pointer field is never dereferenced. Distinct from #496 (console stream numbering, d3d12_vulkan_device.cpp) and from #2292/#1818 (on-demand console streams): this is the capture-side layout table alone. No game data, CPU-only test. AI-assisted.

<!-- gh-comment-id:7201353671 --> @ERROR890 commented on GitHub (Nov 26, 2026): claiming: PSO-STREAM-VIEW-INSTANCING - `runtime/shims/d3d12_xs_pso_stream.cpp`: `layout_of` does not model `D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_VIEW_INSTANCING`, while the stream parser that decides creation (`runtime/shims/d3d12_vulkan_device.cpp`, the `VIEW_INSTANCING` case) accepts that subobject when `ViewInstanceCount == 0`. A stream with one therefore creates a PSO and is never captured by `PsoStreamRecord::capture`, so the PSO carries no kept stream and every `CreateDerivedPipelineState` on it fails with E_FAIL ("base PSO has no kept stream"). The fix models the subobject's size and alignment in the capture walker and covers it in `pso_stream_test` with a synthetic stream; the `ViewInstanceCount == 0` restriction means the payload's pointer field is never dereferenced. Distinct from #496 (console stream *numbering*, `d3d12_vulkan_device.cpp`) and from #2292/#1818 (on-demand console streams): this is the capture-side layout table alone. No game data, CPU-only test. AI-assisted.
Author
Owner

@aslan2142 commented on GitHub (Nov 26, 2026):

claiming three items, from measurements on main 2d43417d4 (RX 7900 XTX, RADV, Wine) with the title in play:

  • RT-VSHARP-SLOT-RECORDS — after any arena release or alias change, the next submission walks every live V# slot of the console heaps (about 580,000 here) and reads each from the heap copy to test it. That is 1.1 to 1.5 s per walk and most of a 5 s frame. The runtime will keep a record per slot of what it resolved to, indexed by resolved address and by title address, and fix only the slots a change touches. The live_vsharps walk, LEONIDA_CONSOLE_RELEASE_FILTER and the round-robin retries go.
  • RT-BINDLESS-DIMENSION-LIMITS — the bindless image array of 3D textures holds 4,096 entries and fills a few minutes into the world; every 3D T# after that reads the fallback, which shows as black ground and black near objects, and the log names it as "no view for the T#'s format or range". Each dimension's array will be sized from the device's limits, and a full array gets its own reason in the log.
  • RT-MEMORY-BREAKDOWN-AND-SPARSE-ARENA — the GPU address arena is allocated in full at start (4 GB here, of which about 3 GB is never touched). The arena becomes sparse where the device supports it, and the memory probe gains one line that breaks our Vulkan allocations down by consumer.

No game files are needed for the tests. AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)

<!-- gh-comment-id:7201355992 --> @aslan2142 commented on GitHub (Nov 26, 2026): claiming three items, from measurements on `main` `2d43417d4` (RX 7900 XTX, RADV, Wine) with the title in play: - **RT-VSHARP-SLOT-RECORDS** — after any arena release or alias change, the next submission walks every live V# slot of the console heaps (about 580,000 here) and reads each from the heap copy to test it. That is 1.1 to 1.5 s per walk and most of a 5 s frame. The runtime will keep a record per slot of what it resolved to, indexed by resolved address and by title address, and fix only the slots a change touches. The `live_vsharps` walk, `LEONIDA_CONSOLE_RELEASE_FILTER` and the round-robin retries go. - **RT-BINDLESS-DIMENSION-LIMITS** — the bindless image array of 3D textures holds 4,096 entries and fills a few minutes into the world; every 3D T# after that reads the fallback, which shows as black ground and black near objects, and the log names it as "no view for the T#'s format or range". Each dimension's array will be sized from the device's limits, and a full array gets its own reason in the log. - **RT-MEMORY-BREAKDOWN-AND-SPARSE-ARENA** — the GPU address arena is allocated in full at start (4 GB here, of which about 3 GB is never touched). The arena becomes sparse where the device supports it, and the memory probe gains one line that breaks our Vulkan allocations down by consumer. No game files are needed for the tests. AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)
Author
Owner

@DadaCap commented on GitHub (Nov 26, 2026):

claiming: SHADER-MESH-PRIM-INDEX-CLAMP — tools/rdna2spirv.py: a mesh program's null primitive (bit 31 set by the program's own range check) keeps its out-of-range index fields, and the translator writes fields & 0x1FF into PrimitiveTriangleIndicesEXT (up to 511 against the declared OutputVertices) with only CullPrimitiveEXT set; Vulkan leaves indices >= the vertex count undefined even for culled primitives (the docs/design.md Open item; Mesa clamps in ac_nir_lower_ngg.c). Rule: null -> 0, else umin(field, vertex count - 1); primitive count 0 when the vertex count is 0; both finales (MeshEXT and --mesh-compute), with a semantic test. Suspected (not yet GPU-confirmed) cause of NVIDIA device losses inside indirect mesh draws, seen on two machines. AI-assisted (Claude Code).

<!-- gh-comment-id:7201444406 --> @DadaCap commented on GitHub (Nov 26, 2026): claiming: SHADER-MESH-PRIM-INDEX-CLAMP — `tools/rdna2spirv.py`: a mesh program's null primitive (bit 31 set by the program's own range check) keeps its out-of-range index fields, and the translator writes `fields & 0x1FF` into PrimitiveTriangleIndicesEXT (up to 511 against the declared OutputVertices) with only CullPrimitiveEXT set; Vulkan leaves indices >= the vertex count undefined even for culled primitives (the `docs/design.md` Open item; Mesa clamps in ac_nir_lower_ngg.c). Rule: null -> 0, else umin(field, vertex count - 1); primitive count 0 when the vertex count is 0; both finales (MeshEXT and --mesh-compute), with a semantic test. Suspected (not yet GPU-confirmed) cause of NVIDIA device losses inside indirect mesh draws, seen on two machines. AI-assisted (Claude Code).
Author
Owner

@DadaCap commented on GitHub (Nov 26, 2026):

done: SHADER-MESH-PRIM-INDEX-CLAMP -> #2397 (https://github.com/ubiquitarianism/leonida/pull/2397). Semantic suite 500 files / 6,375 tests green; new fixture fails on main and passes; GPU confirmation in the retail game pending (an A/B with a draw marker is planned on an RTX 4060).

<!-- gh-comment-id:7201447224 --> @DadaCap commented on GitHub (Nov 26, 2026): done: SHADER-MESH-PRIM-INDEX-CLAMP -> #2397 (https://github.com/ubiquitarianism/leonida/pull/2397). Semantic suite 500 files / 6,375 tests green; new fixture fails on main and passes; GPU confirmation in the retail game pending (an A/B with a draw marker is planned on an RTX 4060).
Author
Owner

@wavehs commented on GitHub (Nov 26, 2026):

finding: v_interp_p1lv_f16's vsrc2 (its P_0) is never read by the translator, although docs/design.md says it supplies P_0 — and #2239 repeats that claim for the new lowering.

Where: tools/rdna2spirv.py:11781-11800 (the p1lv/p1ll/p2_f16 branch calls attribute() and never touches a[2]); tools/rdna2spirv.py:15140 and :15151 (the --f16-interp-fallback and per-vertex reads the p1lv path ends in); docs/design.md:522 ("v_interp_p1lv_f16 ... taking P0.half from vsrc2") and docs/design.md:524 ("still overrides P_0 with the half decoded from vsrc2 (Gen.f16_in)").

Why it matters: on hardware p1lv takes P_0 from the VGPR pair named by its fourth operand, not from LDS. The translator always reconstructs P_0 from the attribute (per-vertex array, smooth input, or the new derivative lowering), so any shader whose src2 differs from the attribute's vertex-0 value is translated wrong, silently, in every mode. I confirmed the register is dead: translating a computed-I/J p1lv pair with v10 = 0 and with v10 = 0x3f800000 differs only in OpStore %reg_v10 ... and its constant, and %reg_v10 is never loaded. The new tests/semantic/test_interp_p1lv_f16.py and test_interp_computed_ij_fallback.py both encode the ignore-src2 behaviour (their v10 is 0 and the oracle's P_0 is the attribute's vertex 0), so no test can catch it.

Needs: a shader (game or hand-written) whose p1lv src2 differs from vertex 0's half to decide whether to implement the override; the fix itself then needs no game files. Corpus count of such sites needs a game copy; #2239's row says 0 computed *_f16 ops, so at least the computed-pair case is empty today. Hardware needed only if the supplied value's interaction with high is in doubt (a gfx1036 v_interp_hw_probe-style run).

<!-- gh-comment-id:7201461556 --> @wavehs commented on GitHub (Nov 26, 2026): finding: `v_interp_p1lv_f16`'s `vsrc2` (its `P_0`) is never read by the translator, although `docs/design.md` says it supplies `P_0` — and #2239 repeats that claim for the new lowering. Where: `tools/rdna2spirv.py:11781-11800` (the p1lv/p1ll/p2_f16 branch calls `attribute()` and never touches `a[2]`); `tools/rdna2spirv.py:15140` and `:15151` (the `--f16-interp-fallback` and per-vertex reads the p1lv path ends in); `docs/design.md:522` ("`v_interp_p1lv_f16` ... taking `P0.half` from `vsrc2`") and `docs/design.md:524` ("still overrides `P_0` with the half decoded from `vsrc2` (`Gen.f16_in`)"). Why it matters: on hardware p1lv takes `P_0` from the VGPR pair named by its fourth operand, not from LDS. The translator always reconstructs `P_0` from the attribute (per-vertex array, smooth input, or the new derivative lowering), so any shader whose `src2` differs from the attribute's vertex-0 value is translated wrong, silently, in every mode. I confirmed the register is dead: translating a computed-I/J p1lv pair with `v10 = 0` and with `v10 = 0x3f800000` differs only in `OpStore %reg_v10 ...` and its constant, and `%reg_v10` is never loaded. The new `tests/semantic/test_interp_p1lv_f16.py` and `test_interp_computed_ij_fallback.py` both encode the ignore-`src2` behaviour (their `v10` is 0 and the oracle's `P_0` is the attribute's vertex 0), so no test can catch it. Needs: a shader (game or hand-written) whose p1lv `src2` differs from vertex 0's half to decide whether to implement the override; the fix itself then needs no game files. Corpus count of such sites needs a game copy; #2239's row says 0 computed `*_f16` ops, so at least the computed-pair case is empty today. Hardware needed only if the supplied value's interaction with `high` is in doubt (a gfx1036 `v_interp_hw_probe`-style run).
Author
Owner

@DadaCap commented on GitHub (Nov 26, 2026):

finding: reading retirement waits on the submit lock. VulkanContext::completed_retire_ticket (runtime/src/vulkan_backend.h ~2017-2030 on main 2d43417d4) reads retire_tickets_ under the submit lock, so any path that only wants to know what retired (the held-work releaser inside a gate Signal, via vulkan_device.cpp ~14783) blocks behind whoever holds the submit lock, including a vkDeviceWaitIdle under it (the cycle HasiKe proved, fixed by #2365) or a long submit. A separate innermost lock for retire_tickets_ (written in record_submit_locked, read in completed_retire_ticket) would remove that hop independently of #2365 and of RT-RELEASER-HELD-REPLAY (tiguan26). Needs no game files or GPU: a submit_mutex_test-style unit test (completed_retire_ticket returns while another thread holds the submit lock). Not claimed by me. AI-assisted (Claude Code).

<!-- gh-comment-id:7201612637 --> @DadaCap commented on GitHub (Nov 26, 2026): finding: reading retirement waits on the submit lock. `VulkanContext::completed_retire_ticket` (runtime/src/vulkan_backend.h ~2017-2030 on main 2d43417d4) reads `retire_tickets_` under the submit lock, so any path that only wants to know what retired (the held-work releaser inside a gate Signal, via vulkan_device.cpp ~14783) blocks behind whoever holds the submit lock, including a `vkDeviceWaitIdle` under it (the cycle HasiKe proved, fixed by #2365) or a long submit. A separate innermost lock for `retire_tickets_` (written in `record_submit_locked`, read in `completed_retire_ticket`) would remove that hop independently of #2365 and of RT-RELEASER-HELD-REPLAY (tiguan26). Needs no game files or GPU: a `submit_mutex_test`-style unit test (`completed_retire_ticket` returns while another thread holds the submit lock). Not claimed by me. AI-assisted (Claude Code).
Author
Owner

@ERROR890 commented on GitHub (Nov 26, 2026):

done: PSO-STREAM-VIEW-INSTANCING -> #2399 - d3d12_xs: capture a pipeline stream that carries a VIEW_INSTANCING subobject. layout_of in runtime/shims/d3d12_xs_pso_stream.cpp now models the subobject (size and alignment) that the creation parser accepts with ViewInstanceCount == 0; before, such a stream created a PSO that was never captured, so every CreateDerivedPipelineState on it failed with E_FAIL ("base PSO has no kept stream"). pso_stream_test gains test_view_instancing_is_captured, which fails on main (1 failure) and passes with the change; ctest pso_stream/native_pso/process_cmdline 5/5. Synthetic streams only, no device, no game data. AI-assisted.

<!-- gh-comment-id:7201663282 --> @ERROR890 commented on GitHub (Nov 26, 2026): done: PSO-STREAM-VIEW-INSTANCING -> #2399 - d3d12_xs: capture a pipeline stream that carries a VIEW_INSTANCING subobject. `layout_of` in runtime/shims/d3d12_xs_pso_stream.cpp now models the subobject (size and alignment) that the creation parser accepts with `ViewInstanceCount == 0`; before, such a stream created a PSO that was never captured, so every CreateDerivedPipelineState on it failed with E_FAIL ("base PSO has no kept stream"). pso_stream_test gains `test_view_instancing_is_captured`, which fails on main (1 failure) and passes with the change; ctest pso_stream/native_pso/process_cmdline 5/5. Synthetic streams only, no device, no game data. AI-assisted.
Author
Owner

@wavehs commented on GitHub (Nov 26, 2026):

claiming: DOC-COMPILE-GATE-DEFAULT — runtime/README.md still documents LEONIDA_COMPILE_GATE as unset=off ("the asynchronous workers compile while other queues submit"), but SubmitMutex::compile_gate_enabled() (runtime/src/vulkan_device_fault.h:425) and the DriverTurn around vkCreateComputePipelines make the gate on unless the value is 0; OreoFR measured 1,056 submissions waiting on a default run above. The README row is the stale half (the default itself is deliberate: #2098 added the gate for the NVIDIA 630.20 device loss). Fix: document the real default, keep 0 as the off switch, and keep the sentence about what off means. Docs only, no game files. AI-assisted.

<!-- gh-comment-id:7201716102 --> @wavehs commented on GitHub (Nov 26, 2026): claiming: DOC-COMPILE-GATE-DEFAULT — runtime/README.md still documents `LEONIDA_COMPILE_GATE` as unset=off ("the asynchronous workers compile while other queues submit"), but `SubmitMutex::compile_gate_enabled()` (runtime/src/vulkan_device_fault.h:425) and the `DriverTurn` around `vkCreateComputePipelines` make the gate on unless the value is `0`; OreoFR measured 1,056 submissions waiting on a default run above. The README row is the stale half (the default itself is deliberate: #2098 added the gate for the NVIDIA 630.20 device loss). Fix: document the real default, keep `0` as the off switch, and keep the sentence about what off means. Docs only, no game files. AI-assisted.
Author
Owner

@wavehs commented on GitHub (Nov 26, 2026):

done: DOC-COMPILE-GATE-DEFAULT -> #2400 (runtime/README.md now says LEONIDA_COMPILE_GATE is on by default and 0 turns it off; docs tests and the game-data scan pass on macOS). AI-assisted.

<!-- gh-comment-id:7201780582 --> @wavehs commented on GitHub (Nov 26, 2026): done: DOC-COMPILE-GATE-DEFAULT -> #2400 (runtime/README.md now says `LEONIDA_COMPILE_GATE` is on by default and `0` turns it off; docs tests and the game-data scan pass on macOS). AI-assisted.
Author
Owner

@nicoco23 commented on GitHub (Nov 26, 2026):

update: TOOLS-DSTORAGE-HISTORY-JOBS — done and pushed (nicoco23/leonidaRe:dstorage-history-jobs, merges cleanly): history.bcph 3.2x faster with --jobs 16 (1128 s -> 355 s on 57 pools), byte-identical profile. I can't open the pull request yet: I'm at the repository's open pull request limit with #1206, #1078 and #2363. #1206 is ready (review addressed, no conflict) and #1078 now completes #824's section; a review or merge of either would free a slot.

<!-- gh-comment-id:7201836410 --> @nicoco23 commented on GitHub (Nov 26, 2026): update: TOOLS-DSTORAGE-HISTORY-JOBS — done and pushed (nicoco23/leonidaRe:dstorage-history-jobs, merges cleanly): history.bcph 3.2x faster with --jobs 16 (1128 s -> 355 s on 57 pools), byte-identical profile. I can't open the pull request yet: I'm at the repository's open pull request limit with #1206, #1078 and #2363. #1206 is ready (review addressed, no conflict) and #1078 now completes #824's section; a review or merge of either would free a slot.
Author
Owner

@wavehs commented on GitHub (Nov 26, 2026):

finding: tests/test_ctest_registration.py cannot see a test file that was never given a CMake target, so a new runtime/test/*_test.cpp can land unbuilt and still pass the guard.

Where: tests/test_ctest_registration.py:38-40 (test_all_test_executables_have_an_add_test) compares add_executable(*_test) targets found in runtime/CMakeLists.txt against add_test(... COMMAND ...); a source file with no add_executable at all is in neither set. Example in flight: #2333 adds runtime/test/vulkan_memory_budget_test.cpp with no entry in runtime/CMakeLists.txt, and this guard passes on that merge (Ran 6 tests ... OK), as does ctest -N (112 tests, none named memory_budget).

Why it matters: the test that is supposed to prove a fix stays dead in ctest, the Windows runtime job and Wine, while the PR can honestly say it added and ran a test. The comment above the guard already cites d3d12_indirect_rt_test as the last case of exactly this; it only catches the variant where someone remembered add_executable.

Fix: in the same test, collect runtime/test/*_test.cpp from disk and require each Path(p).stem to be in built_test_executables(cmake) (minus the documented NOT_IN_CTEST exception, and with any intentionally-excluded source listed explicitly). That makes the guard catch the "no target" case as well as the "no add_test" case.

No game files needed. No particular hardware.

<!-- gh-comment-id:7201852533 --> @wavehs commented on GitHub (Nov 26, 2026): finding: `tests/test_ctest_registration.py` cannot see a test file that was never given a CMake target, so a new `runtime/test/*_test.cpp` can land unbuilt and still pass the guard. Where: `tests/test_ctest_registration.py:38-40` (`test_all_test_executables_have_an_add_test`) compares `add_executable(*_test)` targets found in `runtime/CMakeLists.txt` against `add_test(... COMMAND ...)`; a source file with no `add_executable` at all is in neither set. Example in flight: #2333 adds `runtime/test/vulkan_memory_budget_test.cpp` with no entry in `runtime/CMakeLists.txt`, and this guard passes on that merge (`Ran 6 tests ... OK`), as does `ctest -N` (112 tests, none named `memory_budget`). Why it matters: the test that is supposed to prove a fix stays dead in ctest, the Windows runtime job and Wine, while the PR can honestly say it added and ran a test. The comment above the guard already cites `d3d12_indirect_rt_test` as the last case of exactly this; it only catches the variant where someone remembered `add_executable`. Fix: in the same test, collect `runtime/test/*_test.cpp` from disk and require each `Path(p).stem` to be in `built_test_executables(cmake)` (minus the documented `NOT_IN_CTEST` exception, and with any intentionally-excluded source listed explicitly). That makes the guard catch the "no target" case as well as the "no add_test" case. No game files needed. No particular hardware.
Author
Owner

@wavehs commented on GitHub (Nov 26, 2026):

claiming: RT-RETIRE-TICKET-LOCK — follow-up to DadaCap's finding above (completed_retire_ticket reads retire_tickets_ under the submit lock). I will give retire_tickets_ its own innermost mutex: record_submit_locked/retire_queue_idle_locked/wait_submitted_locked take submit -> retire, while completed_retire_ticket, wait_retire_ticket and the progress watch take retire alone (no path takes retire -> submit). This removes the hop that makes a retirement read wait behind a submission or a vkDeviceWaitIdle under the submit lock, independently of #2365 and RT-RELEASER-HELD-REPLAY. Test: a new CPU-only retire_ticket_lock ctest holds submit_mutex() in one thread for 500 ms and asserts completed_retire_ticket() returns in under 200 ms with ticket 0; it fails on main and passes with the change, and the existing retire_tickets, submit_mutex and Vulkan portability tests stay green. No game files, no GPU. AI-assisted.

<!-- gh-comment-id:7201897573 --> @wavehs commented on GitHub (Nov 26, 2026): claiming: RT-RETIRE-TICKET-LOCK — follow-up to DadaCap's finding above (`completed_retire_ticket` reads `retire_tickets_` under the submit lock). I will give `retire_tickets_` its own innermost mutex: `record_submit_locked`/`retire_queue_idle_locked`/`wait_submitted_locked` take submit -> retire, while `completed_retire_ticket`, `wait_retire_ticket` and the progress watch take retire alone (no path takes retire -> submit). This removes the hop that makes a retirement read wait behind a submission or a `vkDeviceWaitIdle` under the submit lock, independently of #2365 and RT-RELEASER-HELD-REPLAY. Test: a new CPU-only `retire_ticket_lock` ctest holds `submit_mutex()` in one thread for 500 ms and asserts `completed_retire_ticket()` returns in under 200 ms with ticket 0; it fails on `main` and passes with the change, and the existing `retire_tickets`, `submit_mutex` and Vulkan portability tests stay green. No game files, no GPU. AI-assisted.
Author
Owner

@aslan2142 commented on GitHub (Nov 26, 2026):

claiming: RT-INDIRECT-DISPATCH-WIDTH — the indirect clamp (runtime/src/indirect_clamp.comp) cuts a dispatch record's group count at 65,535 in each dimension. The title issues tile dispatches wider than that in x, so the cut drops the last tiles of the pass, and what they should have written keeps stale content: a candidate for the coarse blocky regions seen while the world streams in. The bound will follow what the device allows (maxComputeWorkGroupCount), and a dispatch the device cannot take in one call will be split so that every group still runs, instead of being cut. With tests on synthetic records. Next to #2230, which regenerates the same generated header.

AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)

<!-- gh-comment-id:7201917775 --> @aslan2142 commented on GitHub (Nov 26, 2026): claiming: RT-INDIRECT-DISPATCH-WIDTH — the indirect clamp (`runtime/src/indirect_clamp.comp`) cuts a dispatch record's group count at 65,535 in each dimension. The title issues tile dispatches wider than that in x, so the cut drops the last tiles of the pass, and what they should have written keeps stale content: a candidate for the coarse blocky regions seen while the world streams in. The bound will follow what the device allows (`maxComputeWorkGroupCount`), and a dispatch the device cannot take in one call will be split so that every group still runs, instead of being cut. With tests on synthetic records. Next to #2230, which regenerates the same generated header. AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)
Author
Owner

@marcelofrayha commented on GitHub (Nov 26, 2026):

claiming: RT-BARY-FALLBACK-PACK-GS-INPUTS — link FP16 before packing the synthesized barycentric VS→GS interface, so the 64-component RADV geometry input limit does not exhaust the ordinary FP16 allocator. Add a regression for literal SPIR-V operands aliasing an unused input ID. Stacked on #1497; builds on the unused-PS-input work in robot00f/leonida#1. Synthetic tests only.

<!-- gh-comment-id:7202021553 --> @marcelofrayha commented on GitHub (Nov 26, 2026): claiming: RT-BARY-FALLBACK-PACK-GS-INPUTS — link FP16 before packing the synthesized barycentric VS→GS interface, so the 64-component RADV geometry input limit does not exhaust the ordinary FP16 allocator. Add a regression for literal SPIR-V operands aliasing an unused input ID. Stacked on #1497; builds on the unused-PS-input work in robot00f/leonida#1. Synthetic tests only.
Author
Owner

@marcelofrayha commented on GitHub (Nov 26, 2026):

done: RT-BARY-FALLBACK-PACK-GS-INPUTS -> https://github.com/robot00f/leonida/pull/2 (stacked on #1497). Synthetic draws pass in eager and lazy modes on RX 5700 XT / RADV 26.0.8 under Wine 10.0, and on Lavapipe. No retail files tested. AI-assisted.

<!-- gh-comment-id:7202105480 --> @marcelofrayha commented on GitHub (Nov 26, 2026): done: RT-BARY-FALLBACK-PACK-GS-INPUTS -> https://github.com/robot00f/leonida/pull/2 (stacked on #1497). Synthetic draws pass in eager and lazy modes on RX 5700 XT / RADV 26.0.8 under Wine 10.0, and on Lavapipe. No retail files tested. AI-assisted.
Author
Owner

@wavehs commented on GitHub (Nov 26, 2026):

done: RT-RETIRE-TICKET-LOCK -> #2402 — retire_tickets_ has its own innermost retire_mutex_; completed_retire_ticket/wait_retire_ticket no longer take the submit lock, and the progress watch try-locks the retirement lock so a stuck query cannot hold the submit lock. New retire_ticket_lock ctest: 505 ms and exit 1 on main, 0 ms and pass with the change; portable ctest 114/114 on macOS. AI-assisted.

<!-- gh-comment-id:7202118524 --> @wavehs commented on GitHub (Nov 26, 2026): done: RT-RETIRE-TICKET-LOCK -> #2402 — `retire_tickets_` has its own innermost `retire_mutex_`; `completed_retire_ticket`/`wait_retire_ticket` no longer take the submit lock, and the progress watch try-locks the retirement lock so a stuck query cannot hold the submit lock. New `retire_ticket_lock` ctest: 505 ms and exit 1 on main, 0 ms and pass with the change; portable ctest 114/114 on macOS. AI-assisted.
Author
Owner

@aslan2142 commented on GitHub (Nov 26, 2026):

Withdrawing my claim RT-INDIRECT-DISPATCH-WIDTH from earlier today: it duplicates @Tyrannys's RT-INDIRECT-DISPATCH-GROUP-LIMIT (#2230), which already bounds dispatch records by maxComputeWorkGroupCount. I should have read #2230 before claiming. We will finish #2230 instead (merge main, regenerate the header, test) and credit it.

Measured while checking, for whoever needs it:

  • maxComputeWorkGroupCount on RADV (Mesa 26.3.1, RX 7900 XTX and the integrated RDNA2 GPU) is 4294967295 × 65535 × 65535; on llvmpipe 65535 in each dimension. So on RADV only the bound in x has to follow the device; a split is only a question on llvmpipe.
  • The 65,535 in indirect_clamp.comp is Vulkan's guaranteed minimum, not a console or device limit.
  • A direct Dispatch passes its counts to vkCmdDispatch unchanged.

AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)

<!-- gh-comment-id:7202240624 --> @aslan2142 commented on GitHub (Nov 26, 2026): Withdrawing my claim RT-INDIRECT-DISPATCH-WIDTH from earlier today: it duplicates @Tyrannys's RT-INDIRECT-DISPATCH-GROUP-LIMIT (#2230), which already bounds dispatch records by `maxComputeWorkGroupCount`. I should have read #2230 before claiming. We will finish #2230 instead (merge `main`, regenerate the header, test) and credit it. Measured while checking, for whoever needs it: - `maxComputeWorkGroupCount` on RADV (Mesa 26.3.1, RX 7900 XTX and the integrated RDNA2 GPU) is 4294967295 × 65535 × 65535; on llvmpipe 65535 in each dimension. So on RADV only the bound in x has to follow the device; a split is only a question on llvmpipe. - The 65,535 in `indirect_clamp.comp` is Vulkan's guaranteed minimum, not a console or device limit. - A direct `Dispatch` passes its counts to `vkCmdDispatch` unchanged. AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)
Author
Owner

@marcelofrayha commented on GitHub (Nov 26, 2026):

@jaspergates17-source: is the RDNA1 mesh-compute runtime replay claim still active? I can run synthetic D3D12/Vulkan tests on an RX 5700 XT (RADV under Wine). If you have a branch, could you share it for testing? If you are no longer working on it, would you be open to handing it off so I can take direct replay first and scope indirect replay as a follow-up? I will not start a duplicate implementation. No retail files involved. AI-assisted.

<!-- gh-comment-id:7202266968 --> @marcelofrayha commented on GitHub (Nov 26, 2026): @jaspergates17-source: is the [RDNA1 mesh-compute runtime replay claim](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7125047089) still active? I can run synthetic D3D12/Vulkan tests on an RX 5700 XT (RADV under Wine). If you have a branch, could you share it for testing? If you are no longer working on it, would you be open to handing it off so I can take direct replay first and scope indirect replay as a follow-up? I will not start a duplicate implementation. No retail files involved. AI-assisted.
Author
Owner

@bimo0o commented on GitHub (Nov 26, 2026):

claiming: VERIFY-FLAT-FILES — Fix manifest_verifier.py treating a flat entry for a file named files as the nested manifest wrapper. Reproduced on main fac8b4b with synthetic bytes. I’ll add a regression test for the flat entry and verify that wrapped manifests still work. AI-assisted with Codex.

<!-- gh-comment-id:7202418131 --> @bimo0o commented on GitHub (Nov 26, 2026): claiming: VERIFY-FLAT-FILES — Fix manifest_verifier.py treating a flat entry for a file named `files` as the nested manifest wrapper. Reproduced on main fac8b4b with synthetic bytes. I’ll add a regression test for the flat entry and verify that wrapped manifests still work. AI-assisted with Codex.
Author
Owner

@bimo0o commented on GitHub (Nov 26, 2026):

done: VERIFY-FLAT-FILES -> #2403

AI-assisted with Codex.

<!-- gh-comment-id:7202511222 --> @bimo0o commented on GitHub (Nov 26, 2026): done: VERIFY-FLAT-FILES -> #2403 AI-assisted with Codex.
Author
Owner

@bimo0o commented on GitHub (Nov 26, 2026):

claiming: DASH-JUNIT-ROOT — Mark non-JUnit XML passed to progress_dashboard.py --junit as invalid. Reproduced on main fac8b4b with a synthetic report. Add regression coverage for both unrelated XML and valid empty JUnit. AI-assisted with Codex.

<!-- gh-comment-id:7202561061 --> @bimo0o commented on GitHub (Nov 26, 2026): claiming: DASH-JUNIT-ROOT — Mark non-JUnit XML passed to progress_dashboard.py --junit as invalid. Reproduced on main fac8b4b with a synthetic <coverage/> report. Add regression coverage for both unrelated XML and valid empty JUnit. AI-assisted with Codex.
Author
Owner

@nicoco23 commented on GitHub (Nov 26, 2026):

claiming: RT-TITLE-TEXTURE-REFRESH — refresh_title_textures costs ~18.7 ms per submission on Windows/NVIDIA (synchronous, every-pass visits unbounded by default). Per-pass counters first, then a bounded pass and a correctness-preserving async path. Agreed with the maintainer on Discord. AI-assisted.

claiming: RT-SHADOW-READONLY-PAGES — ShadowPages recopies every read-only page it did not protect itself on each refresh (~10.5 MB per submission here) although such a page cannot change without a journaled protection change. Skip them unless a requery, alias, pin or write-back covers them; kept inside the refresh path so it merges with the one-tracker-per-page change. Agreed with the maintainer on Discord. AI-assisted.

<!-- gh-comment-id:7202629370 --> @nicoco23 commented on GitHub (Nov 26, 2026): claiming: RT-TITLE-TEXTURE-REFRESH — refresh_title_textures costs ~18.7 ms per submission on Windows/NVIDIA (synchronous, every-pass visits unbounded by default). Per-pass counters first, then a bounded pass and a correctness-preserving async path. Agreed with the maintainer on Discord. AI-assisted. claiming: RT-SHADOW-READONLY-PAGES — ShadowPages recopies every read-only page it did not protect itself on each refresh (~10.5 MB per submission here) although such a page cannot change without a journaled protection change. Skip them unless a requery, alias, pin or write-back covers them; kept inside the refresh path so it merges with the one-tracker-per-page change. Agreed with the maintainer on Discord. AI-assisted.
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#44
No description provided.