util/sha1: rework _mesa_sha1_{init,final}
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 24 Jan 2017 21:21:09 +0000 (21:21 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 15 Mar 2017 11:18:43 +0000 (11:18 +0000)
commita9a4028fd7136ee2ee7bf0efa8179e7a6312f008
tree453980dcab1abb0de018129f4b6a5fd6de8f8218
parentc96127e873584e6ea3808d5cdb661d2135de1ff2
util/sha1: rework _mesa_sha1_{init,final}

Rather than having an extra memory allocation [that we currently do not
and act accordingly] just make the API take an pointer to a stack
allocated instance.

This and follow-up steps will effectively make the _mesa_sha1_foo simple
define/inlines around their SHA1 counterparts.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Grazvydas Ignotas <notasas@gmail.com>
src/amd/vulkan/radv_descriptor_set.c
src/amd/vulkan/radv_pipeline_cache.c
src/intel/vulkan/anv_descriptor_set.c
src/intel/vulkan/anv_pipeline_cache.c
src/util/mesa-sha1.c
src/util/mesa-sha1.h