Mesa (master): radv: add radv_create_shaders() to radv_shader.h

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Oct 26 02:39:18 UTC 2019


Module: Mesa
Branch: master
Commit: 2d2b113e86c91a75afa5f5d98e408eff5bae216f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2d2b113e86c91a75afa5f5d98e408eff5bae216f

Author: Timothy Arceri <tarceri at itsqueeze.com>
Date:   Wed Jul 31 13:39:52 2019 +1000

radv: add radv_create_shaders() to radv_shader.h

In a follwing commit we want to be able to call this for secure
compiles from radv_device.c

Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

---

 src/amd/vulkan/radv_pipeline.c |  1 -
 src/amd/vulkan/radv_shader.h   | 10 ++++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index f6a70a87926..20e24113796 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -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,
diff --git a/src/amd/vulkan/radv_shader.h b/src/amd/vulkan/radv_shader.h
index fe23728cb66..5af3296150e 100644
--- a/src/amd/vulkan/radv_shader.h
+++ b/src/amd/vulkan/radv_shader.h
@@ -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,




More information about the mesa-commit mailing list