aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-06-06 11:20:44 -0700
committerJason Ekstrand <[email protected]>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 <[email protected]> Cc: "12.0" <[email protected]>
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 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