[Mesa-dev] [PATCH 5/5] anv/pipeline_cache: Allow for an zero-sized cache
Jason Ekstrand
jason at jlekstrand.net
Mon Jun 6 18:26:32 UTC 2016
This gets ANV_ENABLE_PIPELINE_CACHE=false working again.
Signed-off-by: Jason Ekstrand <jason at jlekstrand.net>
Cc: Kristian Høgsberg Kristensen <krh at bitplanet.net>
---
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 62dbe3e..fbca311 100644
--- a/src/intel/vulkan/anv_pipeline_cache.c
+++ b/src/intel/vulkan/anv_pipeline_cache.c
@@ -153,7 +153,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.5.0.400.gff86faf
More information about the mesa-dev
mailing list