radv: add radv_create_shaders() to radv_shader.h
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 31 Jul 2019 03:39:52 +0000 (13:39 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sat, 26 Oct 2019 02:04:12 +0000 (13:04 +1100)
In a follwing commit we want to be able to call this for secure
compiles from radv_device.c

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/radv_shader.h

index f6a70a87926c441956e7c6c6046694001395c5c4..20e241137967303db919cdffb93a305850cb1348 100644 (file)
@@ -2563,7 +2563,6 @@ bool radv_aco_supported_stage(gl_shader_stage stage, bool has_gs, bool has_ts)
               stage == MESA_SHADER_COMPUTE;
 }
 
-static
 void radv_create_shaders(struct radv_pipeline *pipeline,
                          struct radv_device *device,
                          struct radv_pipeline_cache *cache,
index fe23728cb6631a9bd99a9cd885ee998029d8fd47..5af3296150e3cc5a4f1945d0966b56dd8d5d46c0 100644 (file)
@@ -407,6 +407,16 @@ radv_alloc_shader_memory(struct radv_device *device,
 void
 radv_destroy_shader_slabs(struct radv_device *device);
 
+void
+radv_create_shaders(struct radv_pipeline *pipeline,
+                   struct radv_device *device,
+                   struct radv_pipeline_cache *cache,
+                   const struct radv_pipeline_key *key,
+                   const VkPipelineShaderStageCreateInfo **pStages,
+                   const VkPipelineCreateFlags flags,
+                   VkPipelineCreationFeedbackEXT *pipeline_feedback,
+                   VkPipelineCreationFeedbackEXT **stage_feedbacks);
+
 struct radv_shader_variant *
 radv_shader_variant_create(struct radv_device *device,
                           const struct radv_shader_binary *binary,