mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:50:51 +01:00
[PR #821] [MERGED] vk_pipeline_check: match runtime device features and restore pipeline_cache_seed test (RT-PIPELINE-CACHE-SEED) #859
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#859
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/821
Author: @Taffyyy-ops
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @aslan2142
Base:
main← Head:fix/vk-pipeline-cache-seed📝 Commits (1)
e00d9d0vk_pipeline_check: match runtime device features and restore pipeline_cache_seed test (RT-PIPELINE-CACHE-SEED)📊 Changes
4 files changed (+473 additions, -13 deletions)
View changed files
📝
docs/pipeline_check.md(+23 -0)📝
runtime/CMakeLists.txt(+11 -0)➕
runtime/test/pipeline_cache_seed_test.cpp(+418 -0)📝
runtime/test/vk_pipeline_check.cpp(+21 -13)📄 Description
Claimed in the coordination issue as: RT-PIPELINE-CACHE-SEED (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7133460538)
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)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.