Repository navigation
fix(kyty): do not link graphics pipelines from libraries on RADV - #292
Open
relativespace2K wants to merge 1 commit into
Open
relativespace2K wants to merge 1 commit into
relativespace2K wants to merge 1 commit into
Conversation
On RADV (Radeon 780M, Mesa 26.0.8) some fast-linked graphics pipelines hang the GPU: the gfx ring times out without a VM fault a few seconds into PPSA21564's pirate island when the Kyty pipeline cache and Mesa's shader cache are both cold. Linking the same libraries with link-time optimization does not hang, and neither does building the pipelines whole. Optimized links cost about 75 ms each on the draw thread and gave more pipeline stalls than whole pipelines, so RADV now builds whole pipelines, as with KYTY_PIPELINE_LIBRARIES=0. Other drivers are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EqZu9J6tUMvmRP7RkxVCQr
relativespace2K
force-pushed
the
fix/kyty-radv-no-pipeline-libraries
branch
from
November 24, 2026 14:08
0124c6e to
462273d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
On RADV (Radeon 780M, Mesa 26.0.8), some graphics pipelines that Kyty fast-links from
VK_EXT_graphics_pipeline_libraryparts hang the GPU: a few seconds into ASTRO BOT's pirate island, the gfx ring times out without a VM fault (amdgpu ... ring gfx_0.0.0 timeout, thenErrorDeviceLost). Kyty only fast-links while its pipeline cache is cold, which is why the hang needs both the Kyty shader store and Mesa's shader cache cold.This is the report and fix from #285, carried here with the author's commit. RADV now builds graphics pipelines whole, as with
KYTY_PIPELINE_LIBRARIES=0; every other driver keeps the library path. Optimized links also avoid the hang but cost about 75 ms per pipeline on the draw thread and produced more stalls than whole pipelines.Tested
Reported on Ubuntu 26.04.1, Ryzen 9 PRO 8945HS with Radeon 780M (RADV PHOENIX), Mesa 26.0.8, AnyKyty
7de61e3451, pirate island, both caches cold:VK_PIPELINE_CREATE_LINK_TIME_OPTIMIZATION_BIT_EXTKYTY_PIPELINE_LIBRARIES=0Cold, pirate island:
KYTY_PIPELINE_LIBRARIES=0The branch also builds on Linux with an RTX 3080 Ti; NVIDIA takes the unchanged path. On our side: Windows 11 IoT Enterprise LTSC 24H2, Ryzen 5 5600, RX 6800 XT (AMD proprietary 26.10.1, Vulkan 1.4.315), Release with WinLibs GCC 15.2.0 and LLVM 21.1.8; the full Windows build passes. The check only disables the library path when the driver is
eMesaRadv, so the AMD proprietary path used here is unchanged; the full shim suite on the same base passes 95 of 98 with the two pre-existing failures (#270 and open PR #268) and one skippedkyty_shim_rt_corpus.tools/check_conventions.py,tools/check_kyty_settings.pyandtools/pr_overlap.py --repo simnJS/AnyPS5 --base AnyKyty --branch fix/kyty-radv-no-pipeline-librariesare clean.Why not optimized links
They also avoid the hang, but each link costs about 75 ms on the draw thread and the run had more >=100 ms stalls and lower fps than whole pipelines. Whole pipelines match
KYTY_PIPELINE_LIBRARIES=0without asking users to find the switch.Checklist