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:
Jason Ekstrand 2016-06-06 11:20:44 -07:00
parent a1a25db699
commit 4f5bbf804b
1 changed files with 4 additions and 1 deletions

View File

@ -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