runtime: verify offline compute pipeline journal hits (RT-NATIVE-COMPUTE-WARMUP) #2198

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

@⁠sodove on GitHub · 2026-11-26 05:23 UTC · original
sodove:feat/verify-native-pipeline-journal → main · +310 −22 · 6 files · 1 commits · open

Claimed in the coordination issue as RT-NATIVE-COMPUTE-WARMUP.

What and why

The offline compute compiler from #2098 can skip an entry when the cache file has a compatible header. A compatible file can still miss the requested pipeline on the next boot. This adds gta6rt --precompile-pipelines --verify to check the selected entries in a fresh process before starting the game. It uses the existing shader library, pipeline keys, layouts, and selection options.

Each probe supplies just that entry’s local journal file to Vulkan and sets FAIL_ON_PIPELINE_COMPILE_REQUIRED. A verified entry requires valid application-cache-hit feedback from the driver. The command reports missing files, unconfirmed hits, and errors. It exits successfully only for a nonempty, fully verified selection. The probe leaves journal bytes and modification times intact and performs no cache repair. This also lets someone measure what a repair such as #2179 accomplished.

The new mode is based directly on main. It has no dependency on the open DXBC helper in #1308.

Tested

  • Built gta6rt with MSVC, RelWithDebInfo, on Windows 11.
  • Ran the fresh-process synthetic fixture with --require-hit on an NVIDIA GeForce RTX 5070 Ti (610.74) and AMD Radeon(TM) Graphics (32.0.21045.29003). Both drivers confirmed the intended hit. The fixture also covers a valid cache from a different shader, missing files, header-only files, mixed selections with missing input, and unchanged contents and timestamps.
  • An offline check over eight selected local compute entries confirmed 8/8 hits and preserved all five distinct journal files.
  • Five focused CTests passed, including precompile_verify and the four pipeline-cache file, store, journal, and snapshot tests. The semantic suite ran 6,351 tests across 498 files with zero failing files. All three text line-ending tests passed. The changed-file game-data scan and git diff --check passed.

AI-assisted: yes.

**@⁠sodove** on GitHub · 2026-11-26 05:23 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2198) `sodove:feat/verify-native-pipeline-journal` → `main` · +310 −22 · 6 files · 1 commits · open Claimed in the coordination issue as [RT-NATIVE-COMPUTE-WARMUP](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608). ### What and why The offline compute compiler from #2098 can skip an entry when the cache file has a compatible header. A compatible file can still miss the requested pipeline on the next boot. This adds `gta6rt --precompile-pipelines --verify` to check the selected entries in a fresh process before starting the game. It uses the existing shader library, pipeline keys, layouts, and selection options. Each probe supplies just that entry’s local journal file to Vulkan and sets `FAIL_ON_PIPELINE_COMPILE_REQUIRED`. A verified entry requires valid application-cache-hit feedback from the driver. The command reports missing files, unconfirmed hits, and errors. It exits successfully only for a nonempty, fully verified selection. The probe leaves journal bytes and modification times intact and performs no cache repair. This also lets someone measure what a repair such as #2179 accomplished. The new mode is based directly on main. It has no dependency on the open DXBC helper in #1308. ### Tested - Built `gta6rt` with MSVC, RelWithDebInfo, on Windows 11. - Ran the fresh-process synthetic fixture with `--require-hit` on an NVIDIA GeForce RTX 5070 Ti (610.74) and AMD Radeon(TM) Graphics (32.0.21045.29003). Both drivers confirmed the intended hit. The fixture also covers a valid cache from a different shader, missing files, header-only files, mixed selections with missing input, and unchanged contents and timestamps. - An offline check over eight selected local compute entries confirmed 8/8 hits and preserved all five distinct journal files. - Five focused CTests passed, including `precompile_verify` and the four pipeline-cache file, store, journal, and snapshot tests. The semantic suite ran 6,351 tests across 498 files with zero failing files. All three text line-ending tests passed. The changed-file game-data scan and `git diff --check` passed. AI-assisted: yes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:22:02 +00:00
Author
Owner

@⁠lixonik on GitHub · 2026-11-26 11:03 UTC · original · reviewed

Built gta6rt with MSVC at this head and ran its fresh-process fixture with --require-hit on Windows 11. It confirmed an application-cache hit and passed the negative cases for a different shader cache, missing/header-only entries, a mixed selection, and external seed data. The fixture also verified that journal contents and timestamps stayed unchanged. GPU: NVIDIA GeForce RTX 5070, driver 610.88. No findings from these synthetic checks.

AI-assisted.

**@⁠lixonik** on GitHub · 2026-11-26 11:03 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2198#pullrequestreview-6072989345) · **reviewed** Built `gta6rt` with MSVC at this head and ran its fresh-process fixture with `--require-hit` on Windows 11. It confirmed an application-cache hit and passed the negative cases for a different shader cache, missing/header-only entries, a mixed selection, and external seed data. The fixture also verified that journal contents and timestamps stayed unchanged. GPU: NVIDIA GeForce RTX 5070, driver 610.88. No findings from these synthetic checks. AI-assisted.
Author
Owner

@⁠Tyrannys on GitHub · 2026-11-26 13:23 UTC · original

Independent verification of head 95267b8c7bba786e356bef364dc25862a26ebab8, with current main (a73a57e13) merged in, no conflicts.

Windows 11 Pro, RTX 4070 SUPER (NVIDIA 621.01), MSVC 19.52.37029, RelWithDebInfo.

  • New precompile_verify (ctest): passes, 24 s. Output: "Verified read-only journal checks; driver reported application-cache hit: True". So NVIDIA 621.01 does set the application-cache-hit feedback bit for a journal entry.
  • Neighbours pipeline_cache_file, pipeline_cache_store, pipeline_cache_journal, compile_helper and the run_tiny_* tests pass.
  • Full suite with the PR: 475/478. xbox_present and d3d12_set_descriptor_heaps fail on plain main too. d3d12_queue_wait_timeout timed out once under ctest -j 4 and passed when run alone.
  • No run against main: the test drives the new --verify option, which main does not have.

Diff read: the verify path opens the journal entry read-only, with a size limit, and pipeline_cache_path(false) no longer creates the cache folder only to name a journal file. No problem found.

No game files used. AI-assisted (Claude Code).

**@⁠Tyrannys** on GitHub · 2026-11-26 13:23 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2198#issuecomment-7193290837) **Independent verification** of head `95267b8c7bba786e356bef364dc25862a26ebab8`, with current `main` (`a73a57e13`) merged in, no conflicts. Windows 11 Pro, RTX 4070 SUPER (NVIDIA 621.01), MSVC 19.52.37029, RelWithDebInfo. - New `precompile_verify` (ctest): **passes**, 24 s. Output: "Verified read-only journal checks; driver reported application-cache hit: True". So NVIDIA 621.01 does set the application-cache-hit feedback bit for a journal entry. - Neighbours `pipeline_cache_file`, `pipeline_cache_store`, `pipeline_cache_journal`, `compile_helper` and the `run_tiny_*` tests pass. - Full suite with the PR: 475/478. `xbox_present` and `d3d12_set_descriptor_heaps` fail on plain `main` too. `d3d12_queue_wait_timeout` timed out once under `ctest -j 4` and passed when run alone. - No run against `main`: the test drives the new `--verify` option, which `main` does not have. Diff read: the verify path opens the journal entry read-only, with a size limit, and `pipeline_cache_path(false)` no longer creates the cache folder only to name a journal file. No problem found. No game files used. AI-assisted (Claude Code).
This pull request has changes conflicting with the target branch.
  • docs/d3d12_vulkan.md
  • runtime/shims/d3d12_vulkan_device.cpp
  • runtime/src/main.cpp
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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