fix(agc): skip the background pipeline relink on NVIDIA's proprietary driver #3434
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3434"
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 Yuva1024 on 2026-10-11T10:30:32Z.
What
Works around #2866 for NVIDIA's proprietary driver by not queuing the background link-time-optimized relink of pipelines built from libraries. The fast-linked pipeline stays in use; the relink is the only thing skipped.
PipelineLinkTimeOptimizationUsable(VkDriverId)returns false forVK_DRIVER_ID_NVIDIA_PROPRIETARYand true for every other driver, next to the existingFragmentShaderBarycentricUsableandNarrowSubgroupClockquirks.Context. IfVK_KHR_driver_propertiesis absent the relink stays on.LinkPipelineFromLibrariesqueues the relink only when the context allows it.APS5_NO_PIPELINE_LTOstill disables it everywhere.agc_pipeline_link_optimizationtests the driver table. The pipeline library test now expects no relink when the context disallows it.Why: on an RTX 4060 the optimized link loses the device (
vkWaitForFences graphics: Vulkan result -4) when it is bound, even for a color-only pipeline with no depth attachment, so #2866's depth-attachment workaround does not cover it. A masked pixel shader (kill) drawn twice loses the device on its second draw in 6 of 6 runs at wave64 and wave32; the same shader without the kill, drawn six times, does not.The scope is wider than the evidence: it covers every GPU on NVIDIA's proprietary driver. The reports so far are Ada (this PR) and Ampere (#2866) losing the device, and two Blackwell cards (RTX 5060 and RTX 5080) not losing it on the same driver. There is no standard Vulkan query for the architecture, so I did not guess at device ID ranges. If maintainers have a reliable way to separate Blackwell, the table is the one place to narrow.
Tested
Windows 11 (26200), WinLibs GCC 15.2.0 r7, Release,
BUILD_TESTING=ON, RTX 4060 (Ada, driver 617.42), rebased onmaina7d80e74.agc_driver_pixel_valid_mask: before 0 of 20 pass (16 of 20 failed onmainac2c5c08, 0 of 20 pass on the later base used for the A/B). After 30 of 30 pass.ctest --parallel 3: 827 of 828 pass. The failure iswindows_exceptions(exit 0xc0000409), which fails the same way without this change and is reported in #3411 with a fix in #3415. Fivevideo_outtests are skipped, as onmain.tools/check_conventions.py --base origin/mainpasses;tools/check_test_registration.pyreports no new unregistered test.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 repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T11:45:01Z.
Checked the driver table test (it fails if NVIDIA is not excluded), the scoped Linux build and ctest after rebasing on
main; all pass. The change only skips the background relink, so the fast-linked pipeline and its results are unchanged.Added a TechnicalDebt line (Functional): the skip covers every GPU on NVIDIA's proprietary driver while the reports are Ampere (#2866) and Ada (this PR), with Blackwell not affected, so the scope is wider than the evidence.
Merging once CI is green.