Module: Mesa
Branch: master
Commit: 28b8c18d841795dc158233b7aaf986c7f73068ae
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=28b8c18d841795dc158233b7aaf986c7f73068ae

Author: Bas Nieuwenhuizen <[email protected]>
Date:   Tue Jul 24 14:57:42 2018 +0200

radv: Still enable inmemory & API level caching if disk cache is not enabled.

That we don't have a background disk cache does not mean we should
prevent the app caching anything.

CC: <[email protected]>
Reviewed-by: Samuel Pitoiset <[email protected]>

---

 src/amd/vulkan/radv_pipeline_cache.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/amd/vulkan/radv_pipeline_cache.c 
b/src/amd/vulkan/radv_pipeline_cache.c
index 6858d37eba..7e2c305b1a 100644
--- a/src/amd/vulkan/radv_pipeline_cache.c
+++ b/src/amd/vulkan/radv_pipeline_cache.c
@@ -248,7 +248,6 @@ radv_is_cache_disabled(struct radv_device *device)
         * 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;
 }
 
@@ -271,7 +270,7 @@ radv_create_shader_variants_from_pipeline_cache(struct 
radv_device *device,
                /* 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;
                }

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to