From d476c96badae1ef1188a69efdfbd643c0a38fb39 Mon Sep 17 00:00:00 2001 From: Andrzej Datczuk Date: Thu, 23 Apr 2026 16:58:51 +0200 Subject: [PATCH] radv: enable advertising of VK_KHR_pipeline_library under llvm KHR_pipeline_library is a base extension whose semantics can only be exercised by extensions: EXT_graphics_pipeline_library and KHR_ray_tracing_pipeline. Both remain gated under LLVM, so advertising the KHR base extension is inert for conformant apps. The reason for the change is a hard requirement for KHR_pipeline_library in DXVK 2.7+. DX games under Proton, which uses DXVK, fail adapter creation if this extension is absent. DXVK supports scenario when KHR_pipeline_library is available but two dependent extensions aren't. The !use_llvm condition originated in f1095260a41 when KHR_pipeline_library was first wired up for ray tracing only. It was touched also in 045c96d8964 when EXT_graphics_pipeline_library also took it as a dependency. Part-of: --- src/amd/vulkan/radv_physical_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_physical_device.c b/src/amd/vulkan/radv_physical_device.c index 014d4a54e09..10521f8b1aa 100644 --- a/src/amd/vulkan/radv_physical_device.c +++ b/src/amd/vulkan/radv_physical_device.c @@ -681,7 +681,7 @@ radv_physical_device_get_supported_extensions(const struct radv_physical_device .KHR_performance_query = radv_perf_query_supported(pdev), .KHR_pipeline_binary = true, .KHR_pipeline_executable_properties = true, - .KHR_pipeline_library = !pdev->use_llvm, + .KHR_pipeline_library = true, #ifdef RADV_USE_WSI_PLATFORM .KHR_present_id = true, .KHR_present_id2 = true,