Repository navigation
Report driver feedback for application pipeline-cache hits - #912
Conversation
|
Checked Input: 12 synthetic compute modules, i.e. 4 byte-identical copies each of the three
Each row adds up to the 12 ok pipelines. There were no validation messages, and without the flag nothing extra is printed. Code read: Not covered: the graphics path (I had no partner stubs for this synthetic set) and a pre-1.3 device going through the extension path. |
quackottu
left a comment
There was a problem hiding this comment.
Tested 53d2c61 on NVIDIA GeForce RTX 5070, driver 621.24, Windows 11 Pro (26300), VS 2022 Build Tools, Vulkan SDK 1.4.363.0, with LEONIDA_VK_VALIDATION=1 and LEONIDA_D3D12=vulkan: pass
ctest -C RelWithDebInfo: 100% tests passed, 0 tests failed out of 32- 33 test programs in the build pass with 0 validation errors
d3d12_clear_testfails (R8G8B8A8_UNORM/SNORM 0.5 ties and a D16 clear byte differ from WARP) exactly as onmain4a36bb1 here, so not from this PR; #521 addresses it
Implicit Vulkan layers (overlays) were off through an empty VK_IMPLICIT_LAYER_PATH.
|
Tested Checked graphics pipeline-cache feedback on Linux RTX 5090 (595.99.02) at With one worker, the driver reported the following application-cache feedback. Each row accounts for all eight successful graphics pipeline creations.
The first process saved 25,774 bytes and the second loaded that size. Repeated pairs allow in-run hits even with a fresh file. A third run without AI-assisted verification. |
|
Tested 53d2c61 on RTX 4090 (driver 621.14), Windows 11 26200, MSVC 19.44: pass (no regression against main).
The |
|
Tested 53d2c61 on AMD RDNA2 iGPU and RTX 5070: pass, and the feedback behaves as docs/pipeline_check.md describes on both drivers. Windows 11 Home 10.0.26300, MSVC 14.44.35207, Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0, Ninja RelWithDebInfo (
All pipelines succeeded in all four runs (exit 0), so the AMD proprietary driver gives valid feedback too, not only NVIDIA's. ctest with AI-assisted (Claude Code). No game files. |
|
Tested Repeated the graphics cache check from 53d2c61 with the checker rebuilt at
The counts match the earlier head. This check covered graphics pipeline creation and cache accounting on the core Vulkan path. It did not measure draw output or compile-time speedup. AI-assisted. AI-assisted verification. |
The checker reports that it read the seed file, but that alone cannot tell whether the graphics driver found a particular pipeline in the application cache. #367 used a private diagnostic to answer this for a runtime pipeline.
Add an opt-in
--cache-feedbacksummary, grouped by translated stage. For successful creations it counts valid application-cache hits, valid replies without the hit flag, and unavailable feedback. The three counts sum to the number of successful pipelines. A driver may also use an internal cache. A hit can reflect work earlier in the same run. Skips and failures stay separate.Verification. Ran the committed checker on five synthetic pipelines with three compute, one vertex and one pixel shader. On native Windows 11, the RTX 5090 (621.14) reported zero application-cache hits for a fresh application cache and five after the saved cache was reopened. The same counts held with three workers and with compiler statistics enabled on both runs. On Mesa llvmpipe, all five pipelines succeeded in both runs and the driver reported zero hits each time. The default invocation produced no feedback lines. Limits that skipped every module contributed no hits.
AI-assisted. This extends the offline corpus checker. Coordination claim
RTX 5090 package sample. On native Windows 11 with driver 621.14, I selected six compute, six vertex and six pixel shaders before translation, spaced by container size within each stage among distinct programs in containers of at most 8,192 bytes. All 18 translated, passed SPIR-V validation and produced pipelines on both runs. The fresh application cache reported 0 of 18 hits. After reopening the saved cache, the driver reported 18 of 18 hits. Both runs had zero failures and zero capability skips. Graphics pipelines used the checker’s synthetic partner stages. This measures pipeline creation and cache feedback for these 18 small shaders. Draws, gameplay and larger shaders were outside the test.