[Mesa-stable] [Mesa-dev] [PATCH] radv: Fix driver UUID SHA1 init.
Samuel Pitoiset
samuel.pitoiset at gmail.com
Thu Sep 20 17:41:24 UTC 2018
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
On 9/20/18 7:17 PM, Bas Nieuwenhuizen wrote:
> Was missing the init, found by Emil.
>
> Fixes: d17443a4593 "radv: Use build ID if available for cache UUID."
> CC: <mesa-stable at lists.freedesktop.org>
> ---
> src/amd/vulkan/radv_device.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
> index 7e46a57fb57..31d9bb59637 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))
>
More information about the mesa-stable
mailing list