android: Disable trying to read/write to the disk cache.
authorEric Anholt <eric@anholt.net>
Fri, 18 Sep 2020 17:42:52 +0000 (10:42 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 22 Sep 2020 20:41:25 +0000 (20:41 +0000)
commitee4cee6dbdfcafb0ec88fe010d4ae05ce06e2e52
treee168321667d71600384085e7dd3037a955deb0e8
parent25b36d900acb0d3d923bd0b99a6d8443b4616c73
android: Disable trying to read/write to the disk cache.

We need the disk cache enabled in Android to get EGL_ANDROID_blob_cache's
callbacks called, but we don't actually want to store anything on disk.
Fixes "Failed to create //.cache for shader cache (Read-only file
system)---disabling." spam on init.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6762>
src/compiler/glsl/tests/cache_test.c
src/util/disk_cache.c