vk_pipeline_check: match runtime device features and restore pipeline_cache_seed test (RT-PIPELINE-CACHE-SEED) #821
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!821
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/821/head"
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?
@Taffyyy-ops on GitHub · 2026-11-24 14:12 UTC · original
Taffyyy-ops:fix/vk-pipeline-cache-seed→main· +473 −13 · 4 files · 1 commits · merged 2026-11-24 20:31 UTCClaimed in the coordination issue as: RT-PIPELINE-CACHE-SEED (#14)
What and why
Restores the
vk_pipeline_check/ runtime Vulkan device cache-key parity fix andpipeline_cache_seedregression test from ancestor commitc8a102d0cf(Senne Cools), which had been dropped frommainby bulk merge6dece9231, and fixes an additional NVIDIA Blackwell cache-key mismatch uncovered on currentmain(after #577):runtime/test/vk_pipeline_check.cpp(matchingc8a102d0cf/ RX 9070 XT findings):f2.features.robustBufferAccess = VK_FALSE;f12.scalarBlockLayout = VK_FALSE;f13.robustImageAccess = VK_FALSE;meshShaderQueriesonruntime/test/vk_pipeline_check.cpp(measured on NVIDIA GeForce RTX 5060 Laptop GPU, driver 621.24):VkApplicationInfo::pApplicationName), a cache written byvk_pipeline_checkstill missed on RTX 5060 while a self-written cache hit.VK_EXT_mesh_shader(includingmeshShaderQueries = VK_TRUE, whichcreate_vulkan_device_standaloneenables since #577) andVK_KHR_maintenance8into the pipeline cache key even for compute pipelines.vk_pipeline_checkpreviously enabled both extensions only when selected shaders requested them and forcedmesh.meshShaderQueries = VK_FALSE. It now enables both whenever supported and preservesmeshShaderQueries.pipeline_cache_seedCTest (runtime/test/pipeline_cache_seed_test.cpp+runtime/CMakeLists.txt):LocalSize(1, 1, 1)), so the test builds and runs withoutglslangValidatoror CMake script wrappers while matchingtests/test_ctest_registration.py(everySKIPprints and returns77).vk_pipeline_check.exeviaCopyFileWunder its own executable filename into a temporary directory, runs it viaCreateProcessW(inheriting environment /LEONIDA_VK_DEVICE), seeds aVkPipelineCacheoncreate_vulkan_device_standalone, and assertsVK_PIPELINE_CREATION_FEEDBACK_APPLICATION_PIPELINE_CACHE_HIT_BIT(or skips with 77 where no Vulkan 1.3 device or self-cache-hit support exists).docs/pipeline_check.md):### The cache and the runtime's deviceand adds the Windows 11 Intel RaptorLake-S iGPU and NVIDIA GeForce RTX 5060 Laptop GPU (driver 621.24) measurements.Tested
vcvars64.bat && cmake --build runtime/build, MSVC 19.44, RelWithDebInfo): clean, 0 errors, 0/W4 /permissive- /utf-8warnings in all touched targets.pipeline_cache_seedond0da7dadebefore any feature clears):NVIDIA GeForce RTX 5060 Laptop GPU: FAIL (exit 8 / 1 —vk_pipeline_checkcache missed on runtime device while self-written cache hit).Intel(R) RaptorLake-S Mobile Graphics Controller: FAIL (exit 8 / 1 — cache missed).robustBufferAccess,scalarBlockLayout,robustImageAccess):Intel(R) RaptorLake-S Mobile Graphics Controller: PASS (ok: vk_pipeline_check cache hits on the runtime's device, exit 0).NVIDIA GeForce RTX 5060 Laptop GPU(driver 621.24): still FAIL (exit 8 / 1).VK_EXT_mesh_shaderwithmeshShaderQueries+VK_KHR_maintenance8when supported):NVIDIA GeForce RTX 5060 Laptop GPU):vk_pipeline_check_cli,vk_pipeline_check_stack,pipeline_cache_seed-> 3/3 Passed (ok: vk_pipeline_check cache hits on the runtime's device (NVIDIA GeForce RTX 5060 Laptop GPU)).LEONIDA_VK_DEVICE="RTX 5060":pipeline_cache_seed-> 1/1 Passed (exit 0).LEONIDA_VK_DEVICE="Intel":pipeline_cache_seed-> 1/1 Passed (ok: vk_pipeline_check cache hits on the runtime's device (Intel(R) RaptorLake-S Mobile Graphics Controller), exit 0).python -I tests/test_ctest_registration.py-> 4/4 OKpython -I tests/test_docs_list_items.py-> 3/3 OKpython -I tests/test_docs_repeated_lines.py-> 2/2 OKpython -I tests/test_docs_table_ids.py-> 2/2 OKpython -I tests/test_text_write_line_endings.py-> 3/3 OKpython -I scripts/check_no_game_data.py runtime/test/vk_pipeline_check.cpp runtime/test/pipeline_cache_seed_test.cpp runtime/CMakeLists.txt docs/pipeline_check.md-> exit 0git diff --check-> cleanGPUs tested: NVIDIA GeForce RTX 5060 Laptop GPU (driver 621.24) and Intel(R) RaptorLake-S Mobile Graphics Controller on Windows 11, MSVC 19.44 RelWithDebInfo. No game files.
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)@abnalstlll-byte on GitHub · 2026-11-24 14:21 UTC · original · approved these changes
Clean-Room Peer Review for PR #821 (vk_pipeline_check: match runtime device features and restore pipeline_cache_seed test)
Outstanding empirical driver analysis and pipeline cache reconciliation:
obustBufferAccess, scalarBlockLayout, and
obustImageAccess in k_pipeline_check, matching create_vulkan_device_standalone.
LGTM! Superb contribution. Approved.
@abnalstlll-byte on GitHub · 2026-11-24 14:23 UTC · original · approved these changes
Clean-room verified (zero game data, synthetic SPIR-V compute shader fixture only). Critical Vulkan driver pipeline cache key alignment (disabling robustBufferAccess/scalarBlockLayout/robustImageAccess and enabling maintenance8/meshShaderQueries to match runtime device) and comprehensive pipeline_cache_seed_test restoring verification.
@towade on GitHub · 2026-11-24 18:21 UTC · original
checked:
e00d9d05bon two more vendors, Windows 11 26300, MSVC 19.44 (CMake + Ninja),main3aa975421with this PR merged, device picked withLEONIDA_VK_DEVICE. The newpipeline_cache_seed_testwas run once againstmain'svk_pipeline_checkand once against this PR's.vk_pipeline_checkfrommaincache does not hit on the runtime's device ... differs from the runtime's in something the driver makes part of a pipeline's cache keycache hits on the runtime's devicecache hits on the runtime's deviceSo the cache-key mismatch is not NVIDIA-only: on
mainit is there on the AMD and the Intel Windows drivers too, and this PR removes it on both.Not run: a full
vk_pipeline_checkover the corpus with a warm cache.AI-assisted (Claude Code).
@aslan2142 on GitHub · 2026-11-24 20:31 UTC · original
Merged. Nothing blocks this: the claim is valid and first, and it merges cleanly.
ctestgives 72 passed, 2 skipped, 0 failed on bothmainandmain+ this PR. The checker passes on llvmpipe and on an RDNA2 iGPU (RADV) with 0 validation errors.mainfails.pipeline_cache_seed_testis Windows-only and could not be run here.Three small edge cases where the checker and the runtime's device still differ, for a follow-up:
VK_EXT_mesh_shaderandVK_KHR_maintenance8: the checker enables the extension whenever it is listed (link(..., true)).create_vulkan_device_standaloneenables it only whenmeshShader/maintenance8isVK_TRUE. Gating on the feature, as the runtime does, would close that gap.meshShaderQueries: the checker clears it whenpipelineStatisticsQueryis missing; the runtime has no such condition. Either drop the guard or put the same rule in both, and say which onedocs/pipeline_check.mddescribes.pipeline_cache_seed_test.cpplines 340 and 346: clang-cl gives-Wmissing-field-initializersfor the brace initialisers. MSVC/W4is quiet; this matters only for the clang-cl cross-build.AI-assisted (Claude Code, Claude Fable 5.2 and Claude Opus 5.5).