Files
NX2navi/runtime/vk_pipeline.c
chrg6 bc28416fc0 Destroy a fast-linked pipeline once its optimised build has replaced it and the GPU is done with it.
With the graphics pipeline library a draw's first pipeline is linked from stage libraries, and the optimised build
replaces it when ready. The fast link was kept until the process ended, so each pipeline a run drew held the driver
memory of two: one play session replaced 907 fast links while the video memory outside the allocator, where the
driver keeps compiled pipelines, grew by 491 MiB, and a 68,400-frame session grew it from 1,672 to 2,485 MiB.

The replaced fast link is now destroyed on the completion thread once the GPU is past the submission being recorded
and one after it. The draws read the pipeline from the cache entry each time they record and keep no handle past
their submission, so none can name the old one later. The gpl log line counts the fast links given back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 00:39:28 -05:00

512 KiB