summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_pipeline_cache.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-10-12 05:10:53 +0100
committerDave Airlie <[email protected]>2017-10-12 23:46:55 +0100
commitfb972ed4e51f7570210b523264e927a378265a2a (patch)
tree6925dcf08ea8f30b6e933e781f239674a753a3f9 /src/amd/vulkan/radv_pipeline_cache.c
parent26f1ba94a384718e0e5974c10d4f758459ef0b10 (diff)
radv: take unsafe_math and sisched into account when hashing shaders.
We want to generate different variants for sisched and unsafe_math shader variants, so add them to the hash key. Reviewed-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_pipeline_cache.c')
-rw-r--r--src/amd/vulkan/radv_pipeline_cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_pipeline_cache.c b/src/amd/vulkan/radv_pipeline_cache.c
index fabff9ed815..fc99b43fff0 100644
--- a/src/amd/vulkan/radv_pipeline_cache.c
+++ b/src/amd/vulkan/radv_pipeline_cache.c
@@ -93,7 +93,7 @@ radv_hash_shader(unsigned char *hash, struct radv_shader_module *module,
const VkSpecializationInfo *spec_info,
const struct radv_pipeline_layout *layout,
const struct ac_shader_variant_key *key,
- uint32_t is_geom_copy_shader)
+ uint32_t flags)
{
struct mesa_sha1 ctx;
@@ -109,7 +109,7 @@ radv_hash_shader(unsigned char *hash, struct radv_shader_module *module,
spec_info->mapEntryCount * sizeof spec_info->pMapEntries[0]);
_mesa_sha1_update(&ctx, spec_info->pData, spec_info->dataSize);
}
- _mesa_sha1_update(&ctx, &is_geom_copy_shader, 4);
+ _mesa_sha1_update(&ctx, &flags, 4);
_mesa_sha1_final(&ctx, hash);
}