radv: enable the VS prologs cache if graphicsPipelineLibrary is enabled
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 9 Sep 2022 14:28:50 +0000 (16:28 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 16 Sep 2022 08:22:16 +0000 (08:22 +0000)
GPL will re-use most of the VS prologs code.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18519>

src/amd/vulkan/radv_device.c

index 02238c0..86d724d 100644 (file)
@@ -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;
       }