radv: expose radv_pipeline_capture_shaders()
authorDaniel Schürmann <daniel@schuermann.dev>
Tue, 7 Mar 2023 12:19:24 +0000 (13:19 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 7 Mar 2023 17:00:50 +0000 (17:00 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21764>

src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/radv_private.h

index 6c4db49..e88fae2 100644 (file)
@@ -3358,7 +3358,7 @@ radv_pipeline_create_ps_epilog(struct radv_graphics_pipeline *pipeline,
    return true;
 }
 
-static bool
+bool
 radv_pipeline_capture_shaders(const struct radv_device *device, VkPipelineCreateFlags flags)
 {
    return (flags & VK_PIPELINE_CREATE_CAPTURE_INTERNAL_REPRESENTATIONS_BIT_KHR) ||
index abce10b..5c4d2ff 100644 (file)
@@ -2343,6 +2343,7 @@ VkResult radv_compute_pipeline_create(VkDevice _device, VkPipelineCache _cache,
                                       const VkAllocationCallbacks *pAllocator,
                                       VkPipeline *pPipeline);
 
+bool radv_pipeline_capture_shaders(const struct radv_device *device, VkPipelineCreateFlags flags);
 bool radv_pipeline_capture_shader_stats(const struct radv_device *device,
                                         VkPipelineCreateFlags flags);