If the user didn't provide a pipeline cache and we're using the
default internal pipeline cache, then we shouldn't consider a cache
hit for VK_EXT_pipeline_creation_feedback as the application did not
provide a cache.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 6601e5d6fc68cd ("anv: implement VK_EXT_pipeline_creation_feedback")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
if (cache) {
bin = anv_pipeline_cache_search(cache, key_data, key_size);
if (bin) {
- *user_cache_hit = true;
+ *user_cache_hit = cache != &device->default_pipeline_cache;
return bin;
}
}