summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2018-09-20 19:15:58 +0200
committerJuan A. Suarez Romero <[email protected]>2018-09-21 09:20:51 +0200
commit6c355700fda968237ea398ded7351013287a027c (patch)
treef6d49ed7f1e3ba0b8be69470d4242fbef6198cb9 /src/amd
parent5f2764356796a8a50fba75840d03968a4bf23652 (diff)
radv: Fix driver UUID SHA1 init.
Was missing the init, found by Emil. Fixes: d17443a4593 "radv: Use build ID if available for cache UUID." CC: <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]> (cherry picked from commit 0a77e70d1040eb98253a172908785303c3abdbd5)
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/vulkan/radv_device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 401a1e66df2..5cc5ddb9c07 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -77,7 +77,9 @@ radv_device_get_cache_uuid(enum radeon_family family, void *uuid)
struct mesa_sha1 ctx;
unsigned char sha1[20];
unsigned ptr_size = sizeof(void*);
+
memset(uuid, 0, VK_UUID_SIZE);
+ _mesa_sha1_init(&ctx);
if (!radv_get_build_id(radv_device_get_cache_uuid, &ctx) ||
!radv_get_build_id(LLVMInitializeAMDGPUTargetInfo, &ctx))