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.
Merging.
**Why merged:** BOOT-TRACE-XMEM-COUNT: boot_trace's --counts-only JSON now includes xmem_physical_pages_count, a one-line addition with a test. kawaii-shakal checked it on Windows (33 OK) and KernelSmoker approved it (33/33, 5/5).
**Why it's good:** test_boot_trace and test_dev_boot_trace: 39 passed.
Tested on Windows 11 / RTX 4070 SUPER: merged alone onto main 6293c1c4f. With it in, the repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests) gives 571 passed / 5 skipped / 0 failed, and check_no_game_data on the changed files is clean. Security read of the three-dot diff: no binaries, game data, downloads, network calls, new env vars or build/CI changes.
AI-assisted (Claude Code, Claude Opus 5.5).
Merging.
**Why merged:** OLD-5794: fixes the first-boot runbook in boot.md, and boot_trace now marks relocated modules in its text report. Oliwettoo checked the doc claims against the code ("Ship").
**Why it's good:** test_boot_trace plus the docs tests: 79 passed.
Tested on Windows 11 / RTX 4070 SUPER: merged alone onto main 82a2aabcc. With it in, the repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests) gives 566 passed / 5 skipped / 0 failed, and check_no_game_data on the changed files is clean. git merge-tree against current main 32950551e: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or build/CI changes.
AI-assisted (Claude Code, Claude Opus 5.5).
- Where gta6rt.exe is: runtime\build with build_runtime.ps1 (Ninja), runtime\build\RelWithDebInfo with the
direct CMake (Visual Studio generator) path.
- Without LEONIDA_D3D12=vulkan the trace is not empty: the Xbox-ABI proxy still records device creation, queue,
fence and allocator calls. Say so, and to check the log for "[rt] d3d12: Vulkan device:".
- The runtime writes no "partial" outcome yet (ExecuteCommandLists records ok or failed); only the tool knows it.
- --overlay: the default is already <game-dir>\overlay; the package is never written.
- d3d12_vulkan.md 8.2 no longer repeats questions 16, 19 and 20.
- Triage step 1 asks whether the executable is at its preferred base, but the text report printed module names
only; it now marks a relocated module.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PowerShell 5.1 wraps the first stderr line of a native program in an error
record: `d3d12_test.exe : [d3d12-trace] #1 ...`. The anchored tag match
counted that line as noise, so the summary lost call #1 and still exited 0.
The tag may now follow a `<name> : ` prefix; a fixture and a dedicated test
keep it.
docs/boot.md says the prefix is accepted and that the BOM from
Out-File -Encoding utf8 is stripped.
docs/boot.md: the 24 device words print only when --trace-d3d12 is off, so
the Q1 row says to run once without it; the D3D12 outcomes come from the
Vulkan backend and LEONIDA_UNIMPLEMENTED does not affect them; the Windows
command sets LEONIDA_D3D12 and writes the traces to %TEMP%; the page cites
the real runtime/README.md headings; refused has its own triage step; the
CheckFeatureSupport and PIX rows say what is actually logged.
tools/boot_trace.py: a method name with spaces no longer drops the line;
the outcome is taken as the last field. refused joins the failure buckets.
Exceptions print their access/address and a C++ throw as such. A file with
no [d3d12-trace] line exits 2 instead of reporting zero calls, a UTF-16 log
is named with the PowerShell fix, and a UTF-8 BOM is stripped. The tests
cover each of those shapes.
tools/boot_trace.py reads the `--trace` JSONL and the `[d3d12-trace]`
stderr lines and prints the units a first boot needs: modules, unimplemented
imports with their callers, DllMain/TLS results, exceptions with their
stack, the exit, and the D3D12 calls by outcome and first call per method.
It counts debug strings instead of printing them, so a real trace stays on
the player's machine; the tests use synthetic fixtures only.
docs/boot.md is the runbook around it: the Windows and Wine commands, the
LEONIDA_UNIMPLEMENTED and validation switches, the first-failure triage
order, and the Q1-Q22 table mapping each open question to the event to look
for. docs/README.md and runtime/README.md point at both.