From 228afe1a2f57c6913a7b62de15ae18e0ed2ed6ee Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 14 Mar 2023 12:57:09 +0100 Subject: [PATCH] radv: make radv_shader_part_create() non-static It will be used when creating shaders from the cache. Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_shader.c | 2 +- src/amd/vulkan/radv_shader.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index 2a95713..0da4fe6 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -2521,7 +2521,7 @@ radv_shader_part_binary_upload(struct radv_device *device, const struct radv_sha return true; } -static struct radv_shader_part * +struct radv_shader_part * radv_shader_part_create(struct radv_device *device, struct radv_shader_part_binary *binary, unsigned wave_size) { diff --git a/src/amd/vulkan/radv_shader.h b/src/amd/vulkan/radv_shader.h index 52a3b2d..1380e2a 100644 --- a/src/amd/vulkan/radv_shader.h +++ b/src/amd/vulkan/radv_shader.h @@ -619,6 +619,10 @@ struct radv_shader *radv_create_trap_handler_shader(struct radv_device *device); struct radv_shader *radv_create_rt_prolog(struct radv_device *device); +struct radv_shader_part *radv_shader_part_create(struct radv_device *device, + struct radv_shader_part_binary *binary, + unsigned wave_size); + struct radv_shader_part *radv_create_vs_prolog(struct radv_device *device, const struct radv_vs_prolog_key *key); -- 2.7.4