d3d12: stamp compute journal files with the writing build and device-create config; precompile re-checks other writers' files (RT-PIPELINE-JOURNAL-BUILD-ID) #2511
Closed
leonida/mandy
Tyrannys wants to merge 0 commits from
rt-pipeline-journal-build-id into main
pull from: rt-pipeline-journal-build-id
merge into: leonida:main
leonida:main
leonida:github-pr/3295
leonida:beta
leonida:docs/changelog-3483-3500
leonida:github-pr/3294
leonida:github-pr/2975
leonida:github-pr/2815
leonida:feat/gate-driver-start
leonida:feat/skip-pipelines-release
leonida:perf/lazy-compare
leonida:perf/mwaitx-wait
leonida:test/prio-ceiling-main
leonida:fix/ab-cpu-stdout
leonida:fix/gate-old-crashes
leonida:diag/ab-cpu
leonida:test/main-0312
leonida:github-pr/3291
leonida:diag/indirect-clamp-census
leonida:feat/barrier-enhanced
leonida:perf/texture-frame-ceiling
leonida:perf/dstorage-threads
leonida:fix/console-queue-dma-tables
leonida:fix/port-descriptors-record-parts
leonida:fix/frame-waits-fence
leonida:fix/console-sampler-words
leonida:fix/graphics-userdata-spill
leonida:fix/xg-reserved-layout-rotation
leonida:fix/barrier-console-flags
leonida:fix/switches-wait-test-child
leonida:test/list-value-waits
leonida:test/lot-gxdk-0412
leonida:fix/bvh-compacted-size
leonida:docs/i18n-quickstarts
leonida:feat/native-pipeline-slots
leonida:fix/clippy-leonida-gpu
leonida:fix/list-value-producers
leonida:fix/descriptor-page-straddle
leonida:fix/xmem-low-window
leonida:fix/ffx-jitter-never-zero
leonida:fix/run-stdout-closed
leonida:github-pr/2892
leonida:github-pr/2896
leonida:feat/warm-save-every
leonida:github-pr/2980
leonida:github-pr/2994
leonida:github-pr/3005
leonida:github-pr/3010
leonida:github-pr/3136
leonida:github-pr/3303
leonida:github-pr/3220
leonida:github-pr/3143
leonida:github-pr/3330
leonida:github-pr/3226
leonida:github-pr/3187
leonida:carry/3395
leonida:github-pr/2946
leonida:github-pr/2947
leonida:github-pr/2945
leonida:github-pr/2983
leonida:github-pr/3001
leonida:github-pr/3372
leonida:github-pr/3128
leonida:github-pr/3296
leonida:github-pr/2588
leonida:github-pr/3119
leonida:github-pr/3378
leonida:fix/crash-diagnostics
leonida:feat/dlss-mip-bias
leonida:fix/retired-out-of-order
leonida:fix/dxr-postbuild-barrier
leonida:fix/amd-relay-default
leonida:fix/removed-report-wait
leonida:feat/heap-twin
leonida:feat/vram-margin
leonida:github-pr/2472
leonida:github-pr/3123
leonida:github-pr/3088
leonida:assets/annonce-v1
leonida:github-pr/2794
leonida:github-pr/3300
leonida:github-pr/3304
leonida:github-pr/3308
leonida:github-pr/3367
leonida:github-pr/3369
leonida:fix/launcher-dlss-diagnostics
leonida:github-pr/3269
leonida:github-pr/2957
leonida:github-pr/3205
leonida:fix/crash-zero-guard
leonida:github-pr/3185
leonida:github-pr/3099
leonida:github-pr/3104
leonida:github-pr/3348
leonida:github-pr/3379
leonida:github-pr/3377
leonida:perf/darner-title-priority-ceiling
leonida:github-pr/3376
leonida:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
leonida:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
leonida:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
leonida:github-pr/3373
leonida:github-pr/3368
leonida:github-pr/3198
leonida:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
leonida:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
leonida:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
leonida:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
leonida:github-pr/3346
leonida:github-pr/3375
leonida:github-pr/2958
leonida:github-pr/3151
leonida:github-pr/3307
leonida:github-pr/3278
leonida:github-pr/3374
leonida:fix/runtime-test-conservative-fixtures
leonida:github-pr/3366
leonida:ci/shard-semantic-linux
leonida:github-pr/3354
leonida:docs/fg-limit-fps-switch
leonida:github-pr/3365
leonida:fix/read-file-hard-link
leonida:github-pr/3364
leonida:fix/book-slot-heap-never-read
leonida:github-pr/3361
leonida:github-pr/3263
leonida:github-pr/3360
leonida:github-pr/3353
leonida:github-pr/3331
leonida:fix/alias-later-queued-submissions
leonida:github-pr/3352
leonida:github-pr/3228
leonida:github-pr/3349
leonida:claude/gallant-sagan-aamatr
leonida:github-pr/3200
leonida:github-pr/3132
leonida:github-pr/3323
leonida:github-pr/3332
leonida:github-pr/3340
leonida:github-pr/3311
leonida:github-pr/3334
leonida:github-pr/3297
leonida:github-pr/3256
leonida:github-pr/2567
leonida:github-pr/2851
leonida:d3d12/agility-sdk-621
leonida:github-pr/3164
leonida:github-pr/3114
leonida:github-pr/3050
leonida:github-pr/3113
leonida:github-pr/3326
leonida:github-pr/3144
leonida:github-pr/2642
leonida:github-pr/3072
leonida:github-pr/2789
leonida:github-pr/2643
leonida:github-pr/3009
leonida:github-pr/3035
leonida:github-pr/3031
leonida:github-pr/2686
leonida:github-pr/2834
leonida:github-pr/3321
leonida:github-pr/3325
leonida:github-pr/3290
leonida:github-pr/3324
leonida:github-pr/3130
leonida:claude/fervent-curie-m19lnr
leonida:github-pr/3309
leonida:github-pr/3305
leonida:github-pr/3306
leonida:github-pr/3302
leonida:github-pr/3301
leonida:github-pr/3345
leonida:github-pr/3211
leonida:github-pr/3027
leonida:github-pr/3286
leonida:github-pr/3235
leonida:github-pr/3265
leonida:github-pr/3275
leonida:codex/skip-no-hit-ray-passes
leonida:github-pr/2823
leonida:github-pr/2911
leonida:github-pr/3262
leonida:github-pr/3125
leonida:github-pr/3206
leonida:github-pr/3250
leonida:github-pr/3238
leonida:github-pr/3188
leonida:github-pr/2952
leonida:github-pr/3217
leonida:github-pr/3168
leonida:t3/preserve-fsr-sdk-restart-path
leonida:t3/propagate-host-failure-hresult
leonida:github-pr/3209
leonida:t3/launcher-custom-parameters
leonida:github-pr/3207
leonida:github-pr/3183
leonida:github-pr/3160
leonida:github-pr/3201
leonida:ci/less-to-run
leonida:github-pr/2930
leonida:github-pr/2797
leonida:github-pr/2999
leonida:perf/native-compute-shader-forms
leonida:github-pr/3191
leonida:github-pr/3011
leonida:github-pr/3019
leonida:github-pr/2996
leonida:gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
leonida:claude/blissful-franklin-ukp7ag
leonida:github-pr/3141
leonida:github-pr/3156
leonida:github-pr/3150
leonida:github-pr/3153
leonida:github-pr/3163
leonida:github-pr/3142
leonida:github-pr/3139
leonida:github-pr/2841
leonida:github-pr/3069
leonida:github-pr/3098
leonida:github-pr/3107
leonida:github-pr/3071
leonida:github-pr/2774
leonida:github-pr/2889
leonida:github-pr/3075
leonida:github-pr/2661
leonida:github-pr/3064
leonida:github-pr/3054
leonida:github-pr/3049
leonida:github-pr/2855
leonida:github-pr/2943
leonida:github-pr/3016
leonida:github-pr/2887
leonida:github-pr/3006
leonida:github-pr/3003
leonida:github-pr/2993
leonida:notes/card-time-and-plant-flicker
leonida:github-pr/2989
leonida:feat/vulkan-rs
leonida:github-pr/2985
leonida:github-pr/2951
leonida:github-pr/2982
leonida:github-pr/752
leonida:github-pr/792
leonida:github-pr/2877
leonida:github-pr/2654
leonida:github-pr/2893
leonida:github-pr/2948
leonida:github-pr/2944
leonida:github-pr/2919
leonida:github-pr/2915
leonida:archive/ci/less-to-run/20261202T1121Z
leonida:github-pr/2800
leonida:github-pr/2822
leonida:github-pr/2833
leonida:github-pr/2840
leonida:github-pr/2831
leonida:github-pr/2832
leonida:github-pr/2801
leonida:github-pr/2890
leonida:github-pr/2891
leonida:github-pr/2664
leonida:github-pr/2807
leonida:rt-call-trace
leonida:github-pr/2755
leonida:perf/ahead-split
leonida:github-pr/2587
leonida:github-pr/2698
leonida:github-pr/2609
leonida:github-pr/3219
leonida:docs/readme-runtime-proposal
leonida:github-pr/2017
leonida:github-pr/1741
leonida:github-pr/1667
leonida:codex/coord-claim-check-20261124-7e48
No reviewers
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy!2511
Loading…
Reference in a new issue
No description provided.
Delete branch "rt-pipeline-journal-build-id"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request closed
This pull request cannot be reopened because the branch was deleted.
Claimed in the coordination issue as: RT-PIPELINE-JOURNAL-BUILD-ID (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7229115885)
What and why
From @enlight3d's finding in #1608 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7228721095). Thanks for the measurements.
On NVIDIA 621.40, a compute journal file in
pipeline_cache.dwas measured giving cache hits mostly to the gta6rt build that wrote it. The runtime checks only the blob header (vendor, device, pipeline-cache UUID).gta6rt --precompile-pipelinesskipped any file whose header matched as "journaled already". So after a rebuild it could report a complete journal that the new binary got few hits from.What our code gives the driver. Nothing in it changes from one build to the next:
VkApplicationInfohas only the namegta6rtand API 1.3, with no application or engine version.So there was no per-build input to make stable.
Measured here. A standalone Vulkan program, RTX 4070 SUPER, driver 621.01:
VkPipelineCacheblob written by one executable gave a cache hit (creation feedbackAPPLICATION_PIPELINE_CACHE_HIT, 3-75 ms instead of 2.6-22 s) to all of these:robustBufferAccessorshaderInt64enabled on the device.%LOCALAPPDATA%\NVIDIA\GLCache) did key on the executable. A renamed byte-identical copy got a file of its own there and compiled again (4.7 s) when given an emptyVkPipelineCache.So this driver did not show the effect. What the driver keys on in enlight3d's case is still open. Their same-binary drop (all compute pipelines from the journal at 20:16, 22 at 21:45) also points at something besides the binary.
Device-create config (second commit). A boot A/B on the same RTX 4070 SUPER (621.01), counts only:
LEONIDA_DEVICE_FAULT, boot withLEONIDA_DEVICE_FAULT=1: 10 compiled, 0 from the journal;The NVIDIA diagnostics config (
=1, orLEONIDA_AFTERMATH=1) already names its pipelines apart (since #2098), so such a boot simply had no file for those pipelines, and nothing said why.Change. Whatever the cause, the precompiler should not count a file as done without knowing the driver takes it for this binary.
Stamp (
pipeline_cache_journal.h). Each journal file now starts with 16 bytes:LPJ1and the stamp's size;file_build, computed once per process).read_entry_fileremoves the stamp before the blob goes to the driver.check_entry/entry_usableread the stamp and blob header. The newentry_currentis true only for a file this build wrote. A file without a stamp (an older runtime) is read as before and counts as from another build. An older runtime reading a new file sees a header it does not know and rebuilds that file.Precompile (
d3d12_vulkan_device.cpp). Withskip_journaled, onlyentry_currentfiles are skipped. A file from another build is built against, as at a dispatch:restamp_hits), so the next run skips it;After the existing
done:line (unchanged, so the existingcheck_precompile_skip_listpatterns still match), a second line follows when there were any:N journal file(s) from another gta6rt build or without a build stamp: H still found by the driver (now stamped as this build's), C compiled again.Runtime. The journal's "so far" line also gives
from another build: N, M of them found. A boot after a rebuild then shows directly whether that driver still takes another build's files. The runtime does not restamp, so files from another build keep counting until the precompiler runs.LEONIDA_PIPELINE_JOURNAL_BUILD=<hex>replaces the executable's hash. It is for tests: a second build without a second binary.docs/d3d12_vulkan.mdanddocs/running.mddescribe the stamp and say to run the precompiler again after a rebuild.Device-create config in the stamp (second commit). The stamp grows to 24 bytes: the build, then
device_create_configof theVkDeviceCreateInfo(newsrc/vulkan_device_config.h): the enabled extensions in any order,pEnabledFeatures, and eachpNextstructure by type, with the contents of the core 1.1/1.2/1.3 feature structures, robustness2, device fault and the diagnostics config (features and create info with its flags).entry_currentneeds both to match. A file this build wrote under another config (for exampleLEONIDA_DEVICE_FAULT=2, which adds fault info and checkpoints but keeps the names) is built against again and restamped on a hit, and counted apart from other builds:[precompile] N journal file(s) from this build under another device config (...): H still found by the driver (now stamped with this config), C compiled again, andfrom another device config: N, M of them foundin the runtime's line.The other diagnostics setting. Each build also names the file under the other diagnostics config setting. When the pipeline has no file but that one exists, it is reported once at boot (
<entry> has a journal file only for a device without NVIDIA's diagnostics config ...; run gta6rt --precompile-pipelines with this boot's setting), counted in the runtime's line (only under the other diagnostics config setting: N), and in a closing line of the precompiler (N entries had a journal file only for a device without NVIDIA's diagnostics config: built for this setting).Unchanged: the compile helper's readiness checks and the compile server's idle fill still use
entry_usable(any build). The helper is the same executable as the game, so its files carry the game's stamp.Overlap: #2198 (
--precompile-pipelines --verify), #2179 and #2228 (journal rewrite and stale-file probe), #2307 (pipeline_cache_journal.hguards) and #2392 (make_game pipelines via the runtime) touch the same files on other lines. #2179 matters here: on a seeded miss, NVIDIA returned the seeded data without the new pipeline, so a rewrite could keep a file that misses. With this change, such a file also gets this build's stamp. #2179 fixes the rewrite itself.Tested
Windows 11, MSVC (VS 18), RelWithDebInfo, on
main34e33d3dd. Short GPU runs only.pipeline_cache_journal_test(CPU) gainstest_stamp:entry_currentonly for the writing build, never for build 0;file_buildis the same for a copy under another name, differs for a one-byte change and for one byte fewer, and is 0 for a missing or empty file.check_precompile_skip_list.cmake(gta6rt, real device, two small synthetic modules) gains three checks:LEONIDA_PIPELINE_JOURNAL_BUILD), both files are built again, not counted as journaled already: 2 found in a cache, 0 compiled, and the new line reports 2 from another build;With
main's skip check (entry_usable) restored in this branch, the "another build" step fails on both of its patterns: the files are counted as journaled already and no other-build line is printed.Second commit:
vulkan_device_config_test(CPU): the same create info gives the same value; extension order does not matter, an added extension does; core and chained feature bits (including the last member of the 1.2 and 1.3 structures) count;LEONIDA_DEVICE_FAULT=1and=2(through the runtime'sDeviceFaultFeatures) differ from a plain device and from each other; Aftermath's extra flags count;=1on a device without the config equals=2; never 0.pipeline_cache_journal_test: the config in the stamp,other_configapart fromother_build(an unstamped file counts only as another build),entry_currentfalse for another config, a seed file's config.check_precompile_skip_list.cmakegains steps 6-9, run here (fault info, checkpoints and the diagnostics config are all on this device): withLEONIDA_DEVICE_FAULT=2, both files are reported from another device config (2 still found by the driver), then journaled already on the next run; withLEONIDA_DEVICE_FAULT=1, both are built (no file under the diagnostics names), the new line reports 2 with a file only without the config, the journal holds 4 files, and the next run counts 2 journaled already. Each step falls back to a note on a device without those extensions.entry_current, step 6 fails on both of its patterns.ctest -R "^(pipeline_cache_journal|pipeline_cache_store|pipeline_cache_file|pipeline_cache_seed|compile_helper|d3d12_compute_journal|precompile_skip_list|vulkan_device_config|vulkan_device_fault)$": 9/9 pass.scripts/check_no_game_data.py: clean.Not tested: NVIDIA 621.40 (enlight3d's driver), AMD or Intel, and a game boot with this branch (the A/B counts above are from a boot of
main). A boot after this lands, with a journal from the previous build, would show in the runtime's line how many of that build's files the driver still takes. Files written by the first commit's 16-byte stamp (never merged) read as unstamped.GPUs tested: profile M: NVIDIA GeForce RTX 4070 SUPER, 12 GB, desktop, driver 621.01, Windows 11
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code
Independently checked head
4a497c8f1on Windows 11 Pro 26200, MSVC 2022 (19.44.35230.0, RelWithDebInfo, Ninja), Vulkan SDK1.4.363.0, WSLllvm-mc 21.1.8, no game files.Local build & dual-GPU verification:
pipeline_cache_journal_test,vulkan_device_config_test, andd3d12_m4_compute_test(zero warnings in PR files).pipeline_cache_journal_test: PASS (pipeline_cache_journal_test: ok).vulkan_device_config_test: PASS (vulkan_device_config: ok).d3d12_m4_compute_test(LEONIDA_VK_VALIDATION=1): 1924/1924 words matched (error 0) on both NVIDIA GeForce RTX 5080 (616.64) and AMD Radeon(TM) Graphics (25.10.30.02), 0 validation errors.Code review notes:
LPJ1stamp (magic+ size validation, unstamped files still readable as another build, header mismatch clearingdata,check_entrybounds checks, one-time static content hash forfile_build) is clean and backwards-compatible going forward.vulkan_device_config.hproperly sorts/deduplicates enabled extensions, hashespEnabledFeatures(VkBool32fields) and listedpNextstructs from pastpNextto the last member without reading trailing padding, and caps chain traversal at 256 links.docs/running.mdnoting that an older runtime binary reading a newly stamped file will treat it as a header mismatch (harmless cache miss, no crash).VkPhysicalDeviceVulkan14Features(if present inpNext) is currently hashed by sType only, and the hash depends onpNextchain order (at worst a harmless rebuild).Overall looks clean and solid. AI-assisted.
Reviewed
4a497c8f1and tested both CPU unit tests and live Vulkan compute journal / precompile paths.Code audit:
runtime/src/vulkan_device_config.h: cleanly hashes sorted/deduplicated device extensions,pEnabledFeatures, and thepNextchain (using exact member ranges without reading trailing padding; bounded chain traversal; non-zero result).runtime/src/pipeline_cache_journal.h: 24-byteLPJ1stamp (magic,stamp_bytes, executablefile_build,device_create_config) is backward compatible with unstamped files,check_entryreads only stamp + cache header for fast precompile scans, andentry_currentproperly gates precompile skips.runtime/shims/d3d12_vulkan_device.cpp: restamping on hits from another build/config skips immutable seed files, updatesjournal_bytesatomically, and surfaces theother_diagnosticshint cleanly.Verification (Windows 11, MSVC 19.44, Ninja Release,
LEONIDA_VK_VALIDATION=1):pipeline_cache_journal_test,vulkan_device_config_test,d3d12_m4_compute_test, andgta6rt.ctest -R '^(pipeline_cache_journal|vulkan_device_config|d3d12_m4_compute|precompile_skip_list)$': 4/4 passed.python -I scripts/check_no_game_data.py: passed.GPUs tested: NVIDIA GeForce RTX 5070 12 GB (Windows 11, driver 610.88, Vulkan 1.4.341,
VK_LAYER_KHRONOS_validation1.4.363).AI-assisted (Antigravity, Gemini).
Independently verified head
4a497c8f1bebda53091413442a76d31ff3411c97merged cleanly ontoorigin/main(5825b02ff89bca1a2d1331d982818e3dbb74d597) on Windows 11 (10.0.26200), MSVC19.44.35207(RelWithDebInfo), NVIDIA GeForce RTX 3090 (driver595.79, fault info + buffer markers/checkpoints +VK_NV_device_diagnostics_configall supported), withVK_LAYER_KHRONOS_validation1.4.363.1(LEONIDA_VK_VALIDATION=1). No game files used.Red -> Green Verification
entry_usableskip check restored inbuild_compute_pipeline):ctest -C RelWithDebInfo -R "^precompile_skip_list$": FAILED (rc=8) on bothanother build(LEONIDA_PIPELINE_JOURNAL_BUILD) anddevice fault 2(LEONIDA_DEVICE_FAULT=2) checks (2 journaled alreadyinstead of rebuilding/restamping and reporting the other-build / other-config lines).#2511merged withorigin/main5825b02ff8,LEONIDA_VK_VALIDATION=1on RTX 3090):9/9CTests Passed (15.27 s,0Khronos validation errors):pipeline_cache_file(0.58 s),pipeline_cache_store(0.06 s),pipeline_cache_journal(0.20 s),compile_helper(0.65 s),vulkan_device_fault(0.22 s),vulkan_device_config(0.05 s),d3d12_compute_journal(0.60 s),pipeline_cache_seed, andprecompile_skip_list(10.77 s) — executing all 9 end-to-end steps on RTX 3090 includingLEONIDA_PIPELINE_JOURNAL_BUILDrestamping,LEONIDA_DEVICE_FAULT=2other-config restamping, andLEONIDA_DEVICE_FAULT=1NVIDIA diagnostics-config cross-setting detection (2 entries had a journal file only for a device without NVIDIA's diagnostics config: built for this setting->2 journaled alreadyon repeat).scripts/check_no_game_data.py&18/18doc/CTest checks (test_docs_encoding.py,test_docs_repo_paths.py,test_docs_env_vars.py,test_ctest_registration.py): Passed.Important Cross-PR Interaction Catch with Open PR
#2179(RT-JOURNAL-SEEDED-REWRITE)The PR body notes
#2179touchesJournalCacheon adjacent lines, andgit merge-tree --write-treebetween#2511(4a497c8f1b) and#2179(4212cf5ab3) auto-merges cleanly (rc=0) with zero text conflicts — however, combining them as-is silently disables#2179'srestart_empty()on everyLPJ1-stamped file:#2511'sread_entry_filesetsentry.bytes = sizeto the on-disk file size (stamp_bytes (24) + blob_size, needed byJournalCache::publish()forreplace_bytes(total, file_.bytes, file.size())) and erases the 24-byteLPJ1stamp fromentry.databeforeJournalCache::create()seedsvkCreatePipelineCachewithfile_.data.size()(file_.bytes - 24).#2179'sJournalCache::restart_empty()checkssize != file_.bytesagainstvkGetPipelineCacheData(..., &size, nullptr). On an unchanged seeded miss from anLPJ1-stamped file, the driver returnssize == file_.bytes - 24, sosize != file_.bytesis alwaystrueandrestart_empty()returnsfalse.#2179as well): whichever PR lands second should storeseeded_bytes_ = file_.data.size()inJournalCache::create()and comparesize != seeded_bytes_inJournalCache::restart_empty(), keepingfile_.bytesas the on-disk stamped byte count forpublish().AI-assisted: yes
CORRECTION to my earlier audit of
4a497c8f1: the hash records the type of every visited pNext structure, but it hashes member values only for the cases inadd_struct. My earlier wording overstated the coverage.On head
4a497c8f1bebda53091413442a76d31ff3411c97merged withmainc8bf0e7b65, two synthetic CPU controls confirmed the corresponding review findings:VkPhysicalDeviceShaderClockFeaturesKHR::shaderSubgroupClockleftdevice_create_configunchanged.entry_currentstill returned true, so a precompile scan can skip that header-only file.Windows 10, MSVC 19.29, Vulkan SDK headers 1.4.363.1, CPU only. These probes do not measure driver cache-hit behavior.
AI-assisted. Codex (GPT-6).
Verified by OreoFR — NO RED (tests do not compile on main)
vulkan_device_config_testneeds the newsrc/vulkan_device_config.h, andpipeline_cache_journal_testneeds the new journal writer API (94 compile errors on main).precompile_skip_listlaunches gta6rt, so it is excluded here.vulkan_device_configandpipeline_cache_journalpass; ctest (Ninja RelWithDebInfo, all targets, gta6rt launchers excluded) in package p6 = main + #2511 (no shared files): 495 tests, new failures vs main: none (main alone: 494 tests, 5 failures: loader, xs_proxy_mock, xmem_no_write_watch, api_ref_state timeout, xbox_present; xbox_present fails in every package as on main)LEONIDA_CARGO=OFF,LEONIDA_XMA2_DECODER_LIBempty), main + this PR alone; imports vs main: 2 more functions from msvcp140.dll (std::ios_base::bad,std::basic_istream::gcount, from the stamp reader), no new DLL, no WS2_32entry_currentandcheck_entrybounds, and the restamp path. Every journal reader goes throughentry_usableorread_entry_file.AI-assisted (Claude Code, Claude Opus 5.5), run for OreoFR.
Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (
d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools,d3d12/, or general docs), please feel free to reopen it.