util/disk_cache: move cache path strdup call back into disk_cache.c
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 2 Nov 2020 02:31:32 +0000 (13:31 +1100)
committerMarge Bot <eric+marge@anholt.net>
Sun, 21 Feb 2021 02:50:45 +0000 (02:50 +0000)
commitc1e4810221484c8e7b5e5a9423a5811a357d39dd
tree230f570260968ffb28c42ab70b5339d037bafaf4
parent48d7c4e0f3626a744bfa4434b3fd663d71c5824a
util/disk_cache: move cache path strdup call back into disk_cache.c

This code is already OS agnostic and moving it here enables code
sharing in the following patches.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7725>
src/util/disk_cache.c
src/util/disk_cache_os.c