diff --git a/.pick_status.json b/.pick_status.json index 1fd363467ad..782dbc05511 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -472,7 +472,7 @@ "description": "vulkan/runtime: don't lookup the pipeline disk cache if disabled", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "591da9877900c56434f9e23e0ad0058b118b0be8" }, diff --git a/src/vulkan/runtime/vk_pipeline_cache.c b/src/vulkan/runtime/vk_pipeline_cache.c index 6fa9b3ff632..f837ed3d482 100644 --- a/src/vulkan/runtime/vk_pipeline_cache.c +++ b/src/vulkan/runtime/vk_pipeline_cache.c @@ -337,7 +337,7 @@ vk_pipeline_cache_lookup_object(struct vk_pipeline_cache *cache, if (object == NULL) { #ifdef ENABLE_SHADER_CACHE struct disk_cache *disk_cache = cache->base.device->physical->disk_cache; - if (disk_cache != NULL) { + if (disk_cache != NULL && cache->object_cache != NULL) { cache_key cache_key; disk_cache_compute_key(disk_cache, key_data, key_size, cache_key);