OSDN Git Service

util: add disk_cache_get_function_identifier()
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 19 Sep 2018 01:44:12 +0000 (11:44 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 2 Oct 2018 23:49:21 +0000 (09:49 +1000)
commit83ea8dd99bb16e5d9bb880e64cd2047abc536b70
tree8edd3d176fa8d553ab6396d54adb3cd8d13b01cb
parent6a884014e46ab0ccca5c900f692898ffb02469e6
util: add disk_cache_get_function_identifier()

This can be used as a drop in replacement for
disk_cache_get_function_timestamp().

Here we use build-id to generate a driver-id rather than build
timestamp if available. This should resolve issues such as
distros using reproducable builds and flatpak not having
real build timestamps.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/util/disk_cache.h