diff options
author | Timothy Arceri <[email protected]> | 2018-09-20 08:54:32 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2018-10-02 22:07:55 +1000 |
commit | ea66bfda8801a0f5139c8e4655373117cdd7a1c0 (patch) | |
tree | 919e789f97f8084d904d1f1c8de70995a1f22271 /src/amd/vulkan | |
parent | 0bdf7b1d0fb957f69f2c3518399db17d59c5f183 (diff) |
util: disable cache if we have no build-id and timestamp is zero
Timestamp can be zero for example when Flatpak is used. In this
case just disable the cache rather then segfaulting when
incompatible cache items are loaded.
V2: actually return false when mtime is 0.
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r-- | src/amd/vulkan/radv_device.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 3e0d75bb1b6..429d47325a3 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -61,10 +61,6 @@ radv_get_build_id(void *ptr, struct mesa_sha1 *ctx) } else #endif if (disk_cache_get_function_timestamp(ptr, ×tamp)) { - if (!timestamp) { - fprintf(stderr, "radv: The provided filesystem timestamp for the cache is bogus!\n"); - } - _mesa_sha1_update(ctx, ×tamp, sizeof(timestamp)); } else return false; |