radv: Use build ID if available for cache UUID.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 16 Sep 2018 00:50:34 +0000 (02:50 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 17 Sep 2018 18:19:52 +0000 (20:19 +0200)
commitd17443a459383fdd7018fa879134f05b5daff1e1
tree6fa16255c4d095804dc04929d3bbb806d9de4fe8
parent08103c5f652b7f0a5fa85c6b7067cd08ec19444a
radv: Use build ID if available for cache UUID.

To get an useful UUID for systems that have a non-useful mtime
for the binaries.

I started using SHA1 to ensure we get reasonable mixing in the
various possibilities and the various build id lengths.

CC: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/amd/vulkan/radv_device.c