diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2016-06-06 11:20:44 -0700 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2016-06-10 09:43:10 -0700 |
commit | 4f5bbf804b5590631abb7ff36b74871a0725f8fa (patch) | |
tree | 52502bf3fe267387b5ff9964f69acb6bcb112817 /src/intel | |
parent | a1a25db69926604d579139d1d497f1566ec16ac7 (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.c | 5 |
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 |