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>
This commit is contained in:
parent
a1a25db699
commit
4f5bbf804b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue