From 7f91555d4c9657db0334d25e78089cf22dec5962 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 9 Sep 2022 16:28:50 +0200 Subject: [PATCH] radv: enable the VS prologs cache if graphicsPipelineLibrary is enabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GPL will re-use most of the VS prologs code. Signed-off-by: Samuel Pitoiset Reviewed-by: Timur Kristóf Part-of: --- src/amd/vulkan/radv_device.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 02238c07d47..86d724d4082 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -3458,6 +3458,12 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr use_dgc = true; break; } + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GRAPHICS_PIPELINE_LIBRARY_FEATURES_EXT: { + const VkPhysicalDeviceGraphicsPipelineLibraryFeaturesEXT *features = (const void *)ext; + if (features->graphicsPipelineLibrary) + vs_prologs = true; + break; + } default: break; }