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

Open
opened 2026-11-26 21:20:23 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2198
Author: @sodove
Created: 11/26/2026
Status: 🔄 Open

Base: main ← Head: feat/verify-native-pipeline-journal


📝 Commits (1)

  • 95267b8 runtime: verify offline compute pipeline journal hits without rebuilding

📊 Changes

6 files changed (+310 additions, -22 deletions)

View changed files

📝 docs/d3d12_vulkan.md (+13 -0)
📝 runtime/CMakeLists.txt (+5 -0)
📝 runtime/shims/d3d12_precompile.h (+2 -1)
📝 runtime/shims/d3d12_vulkan_device.cpp (+115 -19)
📝 runtime/src/main.cpp (+4 -2)
➕ scripts/check_precompile_verify.py (+171 -0)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2198 **Author:** [@sodove](https://github.com/sodove) **Created:** 11/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/verify-native-pipeline-journal` --- ### 📝 Commits (1) - [`95267b8`](https://github.com/ubiquitarianism/leonida/commit/95267b8c7bba786e356bef364dc25862a26ebab8) runtime: verify offline compute pipeline journal hits without rebuilding ### 📊 Changes **6 files changed** (+310 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `docs/d3d12_vulkan.md` (+13 -0) 📝 `runtime/CMakeLists.txt` (+5 -0) 📝 `runtime/shims/d3d12_precompile.h` (+2 -1) 📝 `runtime/shims/d3d12_vulkan_device.cpp` (+115 -19) 📝 `runtime/src/main.cpp` (+4 -2) ➕ `scripts/check_precompile_verify.py` (+171 -0) </details> ### 📄 Description Claimed in the coordination issue as [RT-NATIVE-COMPUTE-WARMUP](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7183219099). ### 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#2201
No description provided.