fix(agc): release shader modules after pipeline creation #2284
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2284"
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?
Imported from boykopovar/AnyPS5. Originally posted by eljackjoestar-cmd on 2026-10-09T14:32:35Z.
What
Successful compute and graphics pipeline creation currently keeps shader modules until the cached pipeline objects are destroyed. Release these modules immediately after creation and clear their handles so teardown cannot destroy them twice. Failed creation still uses the existing cleanup path; pipeline, layout, cache and recorded-command lifetimes remain intact.
This follows vkDestroyShaderModule: pipelines can continue using their shaders after the module is destroyed. No shader instruction semantics change.
Tested
Windows x86-64, WinLibs GCC 15.2.0, NVIDIA GeForce RTX 5070. Fresh Release build of
all,libsand the recorder target with SPIR-V validation enabled. Full CTest run with Vulkan required and a fresh shader-cache directory: 509 passed, 1 pre-existing no-surface display/Vulkan skip, 0 failures (160.13 s). This executes the existing compute and graphics homebrew fixtures after module destruction. No isolated game FPS or memory improvement is claimed.python tools/check_conventions.py --base origin/mainandgit diff --checkpass. One unchanged Windows dependency-diagnostics test took 31.84 s on its first run; no test or timeout is changed by this PR. Linux/lavapipe and the collaborator-triggered full CI workflow have not been run locally.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T14:39:08Z.
I reviewed the complete two-file diff. Destroying each module after successful pipeline creation is consistent with Vulkan’s module lifetime rule, and the existing cleanup remains active on creation failures. The Windows full build and CTest report plus the automatic relinker matrix are useful evidence. The remaining verification gap is Linux/lavapipe: this AGC system-library change has no Linux full build/CTest report, and the PR’s manual Linux job is skipped. Please add an exact-head Linux result or have a collaborator run Actions → Build before approval.