From: Jason Ekstrand Date: Mon, 6 Jun 2016 18:20:44 +0000 (-0700) Subject: anv/pipeline_cache: Allow for an zero-sized cache X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f5bbf804b5590631abb7ff36b74871a0725f8fa;p=mesa.git anv/pipeline_cache: Allow for an zero-sized cache This gets ANV_ENABLE_PIPELINE_CACHE=false working again. Signed-off-by: Jason Ekstrand Cc: "12.0" --- diff --git a/src/intel/vulkan/anv_pipeline_cache.c b/src/intel/vulkan/anv_pipeline_cache.c index f75c4233d47..6af15d440c4 100644 --- a/src/intel/vulkan/anv_pipeline_cache.c +++ b/src/intel/vulkan/anv_pipeline_cache.c @@ -158,7 +158,10 @@ anv_pipeline_cache_search_unlocked(struct anv_pipeline_cache *cache, } } - unreachable("hash table should never be full"); + /* This can happen if the pipeline cache is disabled via + * ANV_ENABLE_PIPELINE_CACHE=false + */ + return NO_KERNEL; } uint32_t