summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_private.h
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2016-12-01 23:07:57 +0100
committerTimothy Arceri <[email protected]>2017-10-18 09:19:35 +1100
commit7f29055751e6b89f4c87bc5e4602046c2cbdc08c (patch)
treef623ba5b92eb8745bea3f47e34bfcbb26c768052 /src/amd/vulkan/radv_private.h
parent670c02b43011b4fc5d33ae91e08b7ff6636bf38c (diff)
radv: Add multiple shader cache store & load functions.
Signed-off-by: Timothy Arceri <[email protected]> Acked-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_private.h')
-rw-r--r--src/amd/vulkan/radv_private.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h
index ef0efae3674..5be07063407 100644
--- a/src/amd/vulkan/radv_private.h
+++ b/src/amd/vulkan/radv_private.h
@@ -336,6 +336,20 @@ radv_pipeline_cache_insert_shader(struct radv_device *device,
struct radv_shader_variant *variant,
const void *code, unsigned code_size);
+bool
+radv_create_shader_variants_from_pipeline_cache(struct radv_device *device,
+ struct radv_pipeline_cache *cache,
+ const unsigned char *sha1,
+ struct radv_shader_variant **variants);
+
+void
+radv_pipeline_cache_insert_shaders(struct radv_device *device,
+ struct radv_pipeline_cache *cache,
+ const unsigned char *sha1,
+ struct radv_shader_variant **variants,
+ const void *const *codes,
+ const unsigned *code_sizes);
+
struct radv_meta_state {
VkAllocationCallbacks alloc;