summaryrefslogtreecommitdiff
path: root/src/intel
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-06-06 11:20:44 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-06-10 09:43:10 -0700
commit4f5bbf804b5590631abb7ff36b74871a0725f8fa (patch)
tree52502bf3fe267387b5ff9964f69acb6bcb112817 /src/intel
parenta1a25db69926604d579139d1d497f1566ec16ac7 (diff)
anv/pipeline_cache: Allow for an zero-sized cache
This gets ANV_ENABLE_PIPELINE_CACHE=false working again. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/vulkan/anv_pipeline_cache.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_pipeline_cache.c b/src/intel/vulkan/anv_pipeline_cache.c
index f75c4233d4..6af15d440c 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