freedreno/uuid: Generate meaningful device and driver UUID
authorEduardo Lima Mitev <elima@igalia.com>
Wed, 13 May 2020 10:57:43 +0000 (12:57 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 14 May 2020 19:05:02 +0000 (19:05 +0000)
commite7458f19e1de7d40ff8aa72b6a141f24d33451c6
tree6173efa3387788bd03eefa31606921147533f357
parent9623debf48ae7dbea120389eae40d784d22eee24
freedreno/uuid: Generate meaningful device and driver UUID

Device UUID becomes SHA1('freedreno' + gpu_id).
Driver UUID becomes SHA1(mesa-version + git-head-sha1).

v2: Don't use build_id for driver UUID since it generates different
    values for vulkan and gl shared objects. (Kristian)

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4847>
src/freedreno/common/freedreno_uuid.c
src/freedreno/common/freedreno_uuid.h
src/freedreno/common/meson.build
src/freedreno/vulkan/tu_device.c