That we don't have a background disk cache does not mean we should
prevent the app caching anything.
CC: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
* MESA_GLSL_CACHE_DISABLE=1, and when VK_AMD_shader_info is requested.
*/
return (device->instance->debug_flags & RADV_DEBUG_NO_CACHE) ||
- !device->physical_device->disk_cache ||
device->keep_shader_info;
}
/* Don't cache when we want debug info, since this isn't
* present in the cache.
*/
- if (radv_is_cache_disabled(device)) {
+ if (radv_is_cache_disabled(device) || !device->physical_device->disk_cache) {
pthread_mutex_unlock(&cache->mutex);
return false;
}