Repository navigation
vk_pipeline_check: match the runtime's device so its cache hits on AMD, with a test (RT-575) - #7501
sennecools wants to merge 2 commits into
Conversation
…cache can hit On an RX 9070 XT (driver 32.0.32029.2010) robustBufferAccess, scalarBlockLayout and robustImageAccess are each part of the driver's pipeline cache key. The runtime's device enables none of them, so the checker's no longer does. New ctest pipeline_cache_seed: the checker compiles one synthetic compute shader, then the same pipeline is created on the runtime's device from the saved cache and the creation feedback has to report a hit. AI-assisted.
|
Independent Windows NVIDIA check of c8a102d0, with and without the #7474 checker patch. RTX 3080 Ti, driver 621.35, MSVC 19.44, Vulkan SDK 1.4.363.0.
I rebuilt only the checker for the second run. Both runs used the same shader, runtime test executable and matching executable filenames, with a fresh cache file each time. Vulkan core and synchronization validation reported zero diagnostics in both runs. Synthetic inputs only. AI-assisted. |
|
Independent native Windows check of #7501
All eight runs returned decisive results via application-cache feedback, with no skips. This independently confirms the NVIDIA dependency and provides a second AMD driver check. One build issue from a fresh targeted build: The older counted dispatch shader still reproduces #6162 in its own CTest. I also tried the |
|
Tested I used the same synthetic shader and Synthetic fixture only. AI-assisted testing. |
|
Independent Windows AMD verification of #7501 at I ran the PR's
The runtime hit its own cache in all four miss cases, so those tests failed with a confirmed miss. I also reproduced the executable basename effect using the combined checker build. With identical checker bytes, the same directory and the same cache path, |
|
Tested This confirms the "Depends on: #7474" note for NVIDIA:
Details: #7474 (comment) |
|
@ciagnij thank you, that build issue is real and I had missed it because I always did a full build. I cherry-picked your Checked here in two fresh build folders, building only
@Valentinlqx @thehollowedone thanks for the NVIDIA runs; the description now says plainly that #7474 has to merge first. AI-assisted. |
|
Follow-up to my earlier RX 6750 GRE check. Tested the exact #7501 head I configured an empty Ninja Release build directory. After configure all three artifacts were absent. I requested only
|
|
Tested
No game files. AI-assisted (Claude). |
|
Tested Standalone tools built with llvm-mingw 20261117 (clang, Ninja, Release,
The one GPU failure is on main too, not caused by this PR: AI-assisted (Claude Code). |
|
Tested This PR changes
No game files. AI-assisted (Claude Code). |
|
✅ Automated security review: CLEAN (commit
Scope: static analysis of added diff lines only; no code was executed. Please review findings manually. |
|
Tested
The NVIDIA failure is the one described: "vk_pipeline_check's device differs from the runtime's in something the driver makes part of a pipeline's cache key", so the description's "merge #7474 first" is right on Linux too. With both applied the checker reports For RADV the interesting bit is that main's checker already hits: Mesa does not put Small environment note: Synthetic shader only, no game data. AI-assisted. |
Claimed in the coordination issue as: RT-575 (claim)
Depends on: #7474. Please merge #7474 first: without its
maintenance8change the newpipeline_cache_seedtest fails (it does not skip) on NVIDIA, confirmed by testers on an RTX 3080 Ti, 4060 and 5070 Ti; with both it passes there. On AMD this PR alone is enough. The two apply together cleanly.What and why
The runtime seeds its pipeline cache from the file
vk_pipeline_checksaves, but on AMD the seed never hits. Measured on an RX 9070 XT with one synthetic compute shader:robustBufferAccess,scalarBlockLayoutandrobustImageAccessare each part of the driver's cache key. The checker enabled them; the runtime does not. The checker now leaves them off.pipeline_cache_seed: the checker writes a cache, then the same pipeline is created on the runtime's device from it and has to report an application-cache hit. It is skipped where the driver reports no hits at all.docs/pipeline_check.mdrecords it. The pipelines stage still writes asvk_pipeline_check.exe; the follow-up for that is make_game: on Windows the pipelines stage runs the checker under the runtime's file name, so its cache hits on AMD #7538.Tested
Windows 11, MSVC (VS 2022 Build Tools), RX 9070 XT (driver 32.0.32029.2010) and the Radeon gfx1036 iGPU.
pipeline_cache_seed: fails on main0433058a1, passes with this change on both GPUs; no messages underLEONIDA_VK_VALIDATION=1.vk_pipeline_check_cli,vk_pipeline_check_stack,pipeline_cache_file,pipeline_cache_snapshotpass.AI-assisted: yes
Checklist
docs/design.md, with how it was confirmed. (no translator rule here)