BOOT-RENDER-DIAG: summarize render evidence in boot traces #498

Open
github-bot wants to merge 1 commit from github-bot/gh-498 into main AGit
Owner

@⁠bobcatchris on GitHub · 2026-11-24 06:28 UTC · original
bobcatchris:boot-render-diagnostics → main · +125 −13 · 3 files · 1 commits · open

Claimed in the coordination issue as: BOOT-RENDER-DIAG

What and why

boot_trace.py summarized D3D12 method calls but ignored the runtime's render diagnostics on the same stderr stream. A first-boot report therefore could not say whether captures were black, which shader classes were missing, or whether stub pipelines were being created without sharing the raw log.

This recognizes fixed categories of shader-lookup failures, the stub-pipeline milestone, and presenter capture measurements, then emits only aggregate counts in text and --counts-only. Raw log text, paths and game strings are not emitted.

Carried from the source patch in Sigtryggur-Mani-Gudmundsson's graphics-runtime-patches collection:
github.com/Sigtryggur-Mani-Gudmundsson/graphics-runtime-patches@33ab48d3ea/README.md (reading-black-frame-and-missing-shader-evidence-from-a-boot-log)

No game data, keys, or decryption are included.

Tested

  • python -I tests/test_boot_trace.py — 30 tests OK
  • baseline source + patched tests: 1 failure and 1 error in the two new cases; patched source passes
  • python -I tests/test_docs_links.py — 16 tests OK
  • python -I tests/test_docs_cli_flags.py — 4 tests OK
  • python -I tests/test_ci_registration.py — 15 tests OK
  • python -m compileall -q tools tests — OK
  • git diff --check clean
  • security sweep of the diff: 0 hits

The source report tested the parser on a saved synthetic presenter run. I reproduced the regression locally with the added synthetic log cases; no game files were used.

GPUs tested: n/a (CPU-only log parser)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.
  • Regression tests added for render logs without call tracing and mixed shader/call logs.
**@⁠bobcatchris** on GitHub · 2026-11-24 06:28 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/498) `bobcatchris:boot-render-diagnostics` → `main` · +125 −13 · 3 files · 1 commits · open Claimed in the coordination issue as: BOOT-RENDER-DIAG ### What and why `boot_trace.py` summarized D3D12 method calls but ignored the runtime's render diagnostics on the same stderr stream. A first-boot report therefore could not say whether captures were black, which shader classes were missing, or whether stub pipelines were being created without sharing the raw log. This recognizes fixed categories of shader-lookup failures, the stub-pipeline milestone, and presenter capture measurements, then emits only aggregate counts in text and `--counts-only`. Raw log text, paths and game strings are not emitted. Carried from the source patch in Sigtryggur-Mani-Gudmundsson's graphics-runtime-patches collection: https://github.com/Sigtryggur-Mani-Gudmundsson/graphics-runtime-patches/blob/33ab48d3ea90f9925351aeee8708181a71fb9634/README.md#reading-black-frame-and-missing-shader-evidence-from-a-boot-log No game data, keys, or decryption are included. ### Tested - `python -I tests/test_boot_trace.py` — 30 tests OK - baseline source + patched tests: 1 failure and 1 error in the two new cases; patched source passes - `python -I tests/test_docs_links.py` — 16 tests OK - `python -I tests/test_docs_cli_flags.py` — 4 tests OK - `python -I tests/test_ci_registration.py` — 15 tests OK - `python -m compileall -q tools tests` — OK - `git diff --check` clean - security sweep of the diff: 0 hits The source report tested the parser on a saved synthetic presenter run. I reproduced the regression locally with the added synthetic log cases; no game files were used. GPUs tested: n/a (CPU-only log parser) AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption. - [x] Regression tests added for render logs without call tracing and mixed shader/call logs.
A D3D12 stderr log can carry shader lookup failures, stub pipeline milestones and presenter capture measurements alongside the method trace. The old parser ignored them, so a first-boot report could not say whether the renderer was black or which shader classes were missing without sharing the raw log.

Parse those fixed categories into aggregate counts and include them in --counts-only and text output. No raw game strings or paths are emitted.

Carried from the source patch in Sigtryggur-Mani-Gudmundsson's graphics-runtime-patches collection:
33ab48d3ea/README.md (reading-black-frame-and-missing-shader-evidence-from-a-boot-log)

AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:04:15 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-24 21:55 UTC · original

Reviewed 42041b6: ran tests/test_boot_trace.py and the dev-boot-trace/docs-cli-flags/dev-discovery tests on the PR and on main (sandbox); the two added tests fail on main as expected, all others pass. Verified the new regexes against the in-repo emitters (d3d12_vulkan_device.cpp:791/3540/4004, vulkan_present.h:1136) and probed prefixed, UTF-16, truncated and legacy lines on both trees — counts as designed, no digests or paths in --counts-only. Heads-up: git merge-tree flags conflicts in docs/boot.md and tools/boot_trace.py against main's newer XMem/frame-pacing changes, so it needs a rebase; and the stub-milestone / nonzero_rgb_pixels formats have no in-repo emitter yet, so those parsers stay inert until the runtime lands them. AI-assisted review.

Recommendation: Fix first

**@⁠PierreEbele** on GitHub · 2026-11-24 21:55 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/498#issuecomment-7145560418) Reviewed 42041b6: ran tests/test_boot_trace.py and the dev-boot-trace/docs-cli-flags/dev-discovery tests on the PR and on main (sandbox); the two added tests fail on main as expected, all others pass. Verified the new regexes against the in-repo emitters (d3d12_vulkan_device.cpp:791/3540/4004, vulkan_present.h:1136) and probed prefixed, UTF-16, truncated and legacy lines on both trees — counts as designed, no digests or paths in --counts-only. Heads-up: git merge-tree flags conflicts in docs/boot.md and tools/boot_trace.py against main's newer XMem/frame-pacing changes, so it needs a rebase; and the stub-milestone / nonzero_rgb_pixels formats have no in-repo emitter yet, so those parsers stay inert until the runtime lands them. AI-assisted review. **Recommendation:** Fix first
Author
Owner

@⁠bobcatchris on GitHub · 2026-11-24 23:42 UTC · original

Rebased on current main; preserved both newer frame-pacing summaries and this PR’s render diagnostics. Verified: 36 boot-trace tests, docs CLI-flag 4/4, docs links 16/16, no-game-data and security checks clean.

**@⁠bobcatchris** on GitHub · 2026-11-24 23:42 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/498#issuecomment-7147710671) Rebased on current main; preserved both newer frame-pacing summaries and this PR’s render diagnostics. Verified: 36 boot-trace tests, docs CLI-flag 4/4, docs links 16/16, no-game-data and security checks clean.
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-25 00:08 UTC · original

Follow-up on 681dae3a: the rebase is clean. The branch merges into current main without conflicts, and docs/boot.md now keeps both main's frame-pacing paragraph and this PR's render-diagnostics text. In a no-network sandbox on the PR merged with main, these pass: test_boot_trace 36/36 (main's pacing tests plus the two new ones), test_dev_boot_trace 5, test_docs_cli_flags 4, test_docs_links 16 (1 skipped, git not available in the sandbox) and test_dev_discovery 4. check_no_game_data is clean on the changed files. With the PR's tests/test_boot_trace.py dropped onto current main, the two new tests fail (1 failure, 1 error). Not blocking, still true: the STUB_MILESTONE and capture-line formats have no emitter under runtime/ on main yet, so those counters stay at zero until the runtime prints them. AI-assisted review.

Recommendation: Merge

**@⁠PierreEbele** on GitHub · 2026-11-25 00:08 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/498#issuecomment-7148194351) Follow-up on 681dae3a: the rebase is clean. The branch merges into current main without conflicts, and `docs/boot.md` now keeps both main's frame-pacing paragraph and this PR's render-diagnostics text. In a no-network sandbox on the PR merged with main, these pass: `test_boot_trace` 36/36 (main's pacing tests plus the two new ones), `test_dev_boot_trace` 5, `test_docs_cli_flags` 4, `test_docs_links` 16 (1 skipped, git not available in the sandbox) and `test_dev_discovery` 4. `check_no_game_data` is clean on the changed files. With the PR's `tests/test_boot_trace.py` dropped onto current main, the two new tests fail (1 failure, 1 error). Not blocking, still true: the `STUB_MILESTONE` and capture-line formats have no emitter under `runtime/` on main yet, so those counters stay at zero until the runtime prints them. AI-assisted review. **Recommendation:** Merge
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/498/head:github-bot/gh-498'
git switch 'github-bot/gh-498'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-498'
git switch 'github-bot/gh-498'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-498'
git switch 'github-bot/gh-498'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-498'
git switch 'main'
git merge --squash 'github-bot/gh-498'
git switch 'main'
git merge --ff-only 'github-bot/gh-498'
git switch 'main'
git merge 'github-bot/gh-498'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.