diff options
author | Bas Nieuwenhuizen <[email protected]> | 2017-10-14 12:42:40 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-10-18 09:19:35 +1100 |
commit | ed9218f1541ff35fb34b5e7dd60a509b5a4144a4 (patch) | |
tree | 9d3ed6ab83ee534a71a83db0a3546ad826d63d57 /src/amd/vulkan/radv_private.h | |
parent | 7f29055751e6b89f4c87bc5e4602046c2cbdc08c (diff) |
radv: add radv_hash_shaders() helper
This will be used to create a hash of the combined shaders in the
pipeline.
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.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index 5be07063407..3fb182b4e3b 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -986,6 +986,13 @@ radv_hash_shader(unsigned char *hash, struct radv_shader_module *module, const struct ac_shader_variant_key *key, uint32_t flags); +void +radv_hash_shaders(unsigned char *hash, + const VkPipelineShaderStageCreateInfo **stages, + const struct radv_pipeline_layout *layout, + const struct ac_shader_variant_key *keys, + uint32_t flags); + static inline gl_shader_stage vk_to_mesa_shader_stage(VkShaderStageFlagBits vk_stage) { |