Module: Mesa Branch: main Commit: 7f91555d4c9657db0334d25e78089cf22dec5962 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7f91555d4c9657db0334d25e78089cf22dec5962
Author: Samuel Pitoiset <[email protected]> Date: Fri Sep 9 16:28:50 2022 +0200 radv: enable the VS prologs cache if graphicsPipelineLibrary is enabled GPL will re-use most of the VS prologs code. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timur Kristóf <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18519> --- 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; }
