mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:40:52 +01:00
[GH-ISSUE #559] GPU test: NVIDIA GeForce RTX 3060 Ti (Vulkan 1.4, wave64-emulate) — 26497/26501 pass, 4 cs modules crash driver #15
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#15
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?
Originally created by @Luwaree on GitHub (Nov 24, 2026).
Original GitHub issue: https://github.com/ubiquitarianism/leonida/issues/559
What happens
k_pipeline_check exits with code 1 after 4 wrapped compute shader modules crash the NVIDIA Vulkan driver (0xC0000409), while 26497/26501 pipelines compile cleanly.
Commit
5aedbc2System
Windows 11 x64, NVIDIA GeForce RTX 3060 Ti (Driver 621.01, Vulkan 1.4, subgroup 32..32)
Where
pipelines
Command and steps
Ran the pipelines stage with 4 worker threads (reproduces consistently even when isolated with
--jobs 1):python -I make_game.py --game <GAME_DIR> --out <OUT_DIR> --work <WORK_DIR> --stages pipelines --jobs 4Output
@Luwaree commented on GitHub (Nov 24, 2026):
Added full
run_gpu_tests.pybaseline for RTX 3060 Ti (matchinggpu-test-results/RTX3070Ti.txtformat):@augustoluiz1423-dot commented on GitHub (Nov 24, 2026):
Additional AMD reproduction: disabling VkPipelineCache allows both compute pipelines to compile
I have a related finding on an AMD Radeon RX 9060 XT (16 GB) running Windows 11.
Leonida revision: "
a28927849" (November 24, 2026)Vulkan subgroup support: 32–64
Tool: "vk_pipeline_check.exe", built with Visual Studio 2026
Shader count in original index: 26,503
I can consistently reproduce "VK_ERROR_DEVICE_LOST (-4)" when compiling these two compute shaders sequentially using the same Vulkan device:
Observed behavior:
a28927849".The updated translator significantly changed the SPIR-V output:
Shader| Previous size| Updated size
ActivateProbes| 35,381,480 bytes| 24,415,476 bytes
ResolveGBuffer| 2,314,544 bytes| 2,419,504 bytes
Experiment: disabling the application pipeline cache
I made an isolated experimental modification to "runtime/test/vk_pipeline_check.cpp", adding a "--no-pipeline-cache" option that passes "VK_NULL_HANDLE" instead of an application "VkPipelineCache" to pipeline creation calls. The default behavior remains unchanged.
Using the same two newly translated shaders, in the same order:
This suggests that application pipeline-cache usage, or its interaction with the AMD Vulkan driver, may contribute to the failure.
It does not yet establish a definitive root cause. The successful no-cache configuration has been tested once, and driver-internal caching or other state may also matter.
Importantly, the successful experiment required no modifications to shader instructions, no disabling of rendering functionality, and no changes to the game runtime.
Would it be useful to investigate optional cache disabling or per-pipeline cache isolation in "vk_pipeline_check"? I can provide the verifier-only source diff and sanitized diagnostic output if helpful.
No game files or shader binaries are attached.
@NinsonD commented on GitHub (Nov 24, 2026):
The cache experiment is interesting, especially since ResolveGBuffer passes on its own but fails after ActivateProbes.
Before changing the default cache behavior, it might be worth repeating the same two-shader sequence with cache enabled/disabled a few times to rule out driver state or timing.
Would adding a small regression test for cache isolation in vk_pipeline_check be useful? I could look into that side if nobody’s working on it yet.
@augustoluiz1423-dot commented on GitHub (Nov 24, 2026):
Thanks for the feedback! I agree that additional controlled A/B runs would be useful before drawing a firm conclusion.
So far, the cache-enabled configuration has failed repeatedly on my RX 9060 XT, while the first run with "--no-pipeline-cache" succeeded with both pipelines passing (2/2, exit code 0).
However, I agree that one successful no-cache run isn't enough to establish the root cause, especially considering possible driver-internal caching and GPU state differences.
A regression test for cache isolation in "vk_pipeline_check" would definitely be useful. I haven't started working on one myself, so I'd appreciate it if you'd like to investigate that side.
I already have an experimental implementation of "--no-pipeline-cache" that leaves the default behavior unchanged. I can share the source diff and diagnostic logs if that helps.
I can also perform a limited number of additional A/B runs locally to confirm reproducibility, since compiling ActivateProbes can take around 17–27 minutes per run.
@ZroIsHere commented on GitHub (Nov 26, 2026):
I added an opt-in
--no-pipeline-cachemode to vk_pipeline_check for an app-cache A/B run; it uses VK_NULL_HANDLE and passes the mode through --isolate. Draft PR: https://github.com/ubiquitarianism/leonida/pull/2170. Driver-internal caches remain enabled, so this isolates only the application VkPipelineCache.