<div dir="auto">If there is a hash collision, it will cause a GPU hang. A cryptographic hash function reduces that chance to practically zero.<div dir="auto"><br></div><div dir="auto">Marek</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 29, 2023, 07:04 mikolajlubiak1337 <<a href="mailto:mikolajlubiak1337@proton.me">mikolajlubiak1337@proton.me</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I have recently read Phoronix article[1] about you switching to BLAKE3 instead of SHA1.<br>
If BLAKE3 is a cryptographic hash function wouldn't it be faster to use a non cryptographic hash function or even a checksum function? Do you need the benefits of cryptographic hash functions over other hash/checksum functions for the purpose of uniquely identifing Vulkan shaders?<br>
<br>
[1]: <a href="https://www.phoronix.com/news/Mesa-BLAKE3-Shader-Hashing" rel="noreferrer noreferrer" target="_blank">https://www.phoronix.com/news/Mesa-BLAKE3-Shader-Hashing</a><br>
<br>
-- me<br>
<br>
</blockquote></div>