Mesa Turns To BLAKE3 For Faster Vulkan Shader Hashing

Written by Michael Larabel in Mesa on 23 June 2023 at 06:11 AM EDT. 38 Comments
MESA
Mesa has switched from SHA1 to BLAKE3 for its shader hashing to deliver better performance.

Mesa has relied upon SHA1 for hashing of Vulkan shaders to uniquely identify them for the purposes of caching and other factors. But given the increasing size of Vulkan shaders, switching to a faster hashing algorithm can be beneficial.

Mesa developers decided to switch to BLAKE3, which is derived from BLAKE2 and Bao. The three year old hashing function is extremely fast and can also handle parallelism.

This merge request that landed this morning into Mesa 23.2-devel shifts the Vulkan shader module hashing from SHA1 to BLAKE3.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week