This gets ANV_ENABLE_PIPELINE_CACHE=false working again.
Signed-off-by: Jason Ekstrand <[email protected]>
Cc: Kristian Høgsberg Kristensen <[email protected]>
---
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
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev