util: Change remaining uint32 cache ids to sha1
authorDavid McFarland <corngood@gmail.com>
Wed, 24 Oct 2018 00:51:09 +0000 (21:51 -0300)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 26 Oct 2018 03:49:22 +0000 (14:49 +1100)
commit07a00a8729d709a4c43c828c64242c226607f09a
treeec5fd349e3367c66aa3c5550eccffda1b853df0d
parent3d198926a487cefc0316c2c4d1ebb20ff8ebf535
util: Change remaining uint32 cache ids to sha1

After discussion with Timothy Arceri. disk_cache_get_function_identifier
was using only the first byte of the sha1 build-id.  Replace
disk_cache_get_function_identifier with implementation from
radv_get_build_id.  Instead of writing a uint32_t it now writes to a
mesa_sha1.  All drivers using disk_cache_get_function_identifier are
updated accordingly.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Fixes: 83ea8dd99bb1 ("util: add disk_cache_get_function_identifier()")
src/amd/vulkan/radv_device.c
src/gallium/drivers/nouveau/nouveau_screen.c
src/gallium/drivers/r600/r600_pipe_common.c
src/gallium/drivers/radeonsi/si_pipe.c
src/util/disk_cache.h