From 4f5bbf804b5590631abb7ff36b74871a0725f8fa Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 6 Jun 2016 11:20:44 -0700 Subject: [PATCH] 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" --- src/intel/vulkan/anv_pipeline_cache.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.30.2