Skip to content

fix(kyty): do not link graphics pipelines from libraries on RADV - #292

Open
relativespace2K wants to merge 1 commit into
simnJS:AnyKytyfrom
relativespace2K:fix/kyty-radv-no-pipeline-libraries
Open

relativespace2K wants to merge 1 commit into
simnJS:AnyKytyfrom
relativespace2K:fix/kyty-radv-no-pipeline-libraries

Conversation

@relativespace2K

@relativespace2K relativespace2K commented Nov 24, 2026 •

Copy link
Copy Markdown

What

On RADV (Radeon 780M, Mesa 26.0.8), some graphics pipelines that Kyty fast-links from VK_EXT_graphics_pipeline_library parts 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, then ErrorDeviceLost). 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:

Setting Hangs
Defaults (fast link) 1/1 (4/4 earlier runs)
Same libraries linked with VK_PIPELINE_CREATE_LINK_TIME_OPTIMIZATION_BIT_EXT 0/3
Library path on, no pipeline linked (local test filter) 0/1
KYTY_PIPELINE_LIBRARIES=0 0/2
This change 0/2

Cold, pirate island:

Hangs FPS Graphics pipeline stalls >=100 ms
This change (defaults) 0/2 6.9 / 6.6 19 / 22 (3.4 / 3.7 s)
Optimized link on RADV 0/3 6.1 / 6.2 / 5.8 28 / 27 / 31 (5.8 / 5.4 / 5.5 s)
KYTY_PIPELINE_LIBRARIES=0 0/2 6.4 / 6.7 17 / 19 (3.1 / 3.4 s)

The 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 skipped kyty_shim_rt_corpus.

tools/check_conventions.py, tools/check_kyty_settings.py and tools/pr_overlap.py --repo simnJS/AnyPS5 --base AnyKyty --branch fix/kyty-radv-no-pipeline-libraries are 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=0 without asking users to find the switch.

Checklist

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
relativespace2K force-pushed the fix/kyty-radv-no-pipeline-libraries branch from 0124c6e to 462273d Compare November 24, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

kyty: ASTRO BOT (PPSA21564) hangs the GPU on RADV (Radeon 780M) at 7de61e3451 (gfx ring timeout, ErrorDeviceLost)

2 participants