radv: hash radv_shader_stage_key

This will allow us to remove the pipeline key completely for compute/rt
pipelines.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27036>
This commit is contained in:
Samuel Pitoiset
2024-01-12 13:49:00 +01:00
committed by Marge Bot
parent 853298edb1
commit 739c8eb681

View File

@@ -63,6 +63,7 @@ radv_hash_shaders(const struct radv_device *device, unsigned char *hash, const s
continue;
_mesa_sha1_update(&ctx, stages[s].shader_sha1, sizeof(stages[s].shader_sha1));
_mesa_sha1_update(&ctx, &stages[s].key, sizeof(stages[s].key));
}
_mesa_sha1_final(&ctx, hash);
}