anv: don't use default pipeline cache for hits for VK_EXT_pipeline_creation_feedback
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: 6601e5d6fc
("anv: implement VK_EXT_pipeline_creation_feedback")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
@@ -621,7 +621,7 @@ anv_device_search_for_kernel(struct anv_device *device,
|
|||||||
if (cache) {
|
if (cache) {
|
||||||
bin = anv_pipeline_cache_search(cache, key_data, key_size);
|
bin = anv_pipeline_cache_search(cache, key_data, key_size);
|
||||||
if (bin) {
|
if (bin) {
|
||||||
*user_cache_hit = true;
|
*user_cache_hit = cache != &device->default_pipeline_cache;
|
||||||
return bin;
|
return bin;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user