anv: avoid partially compiled warning with GPL

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28318>
This commit is contained in:
Lionel Landwerlin 2024-03-21 12:24:06 +02:00 committed by Marge Bot
parent 3983ae89e9
commit 098136e52a

View file

@ -1972,11 +1972,16 @@ anv_graphics_pipeline_load_cached_shaders(struct anv_graphics_base_pipeline *pip
*/
assert(found < __builtin_popcount(pipeline->base.active_stages));
vk_perf(VK_LOG_OBJS(cache ? &cache->base :
&pipeline->base.device->vk.base),
"Found a partial pipeline in the cache. This is "
"most likely caused by an incomplete pipeline cache "
"import or export");
/* With GPL, this might well happen if the app does an optimized
* link.
*/
if (!pipeline->base.device->vk.enabled_extensions.EXT_graphics_pipeline_library) {
vk_perf(VK_LOG_OBJS(cache ? &cache->base :
&pipeline->base.device->vk.base),
"Found a partial pipeline in the cache. This is "
"most likely caused by an incomplete pipeline cache "
"import or export");
}
/* We're going to have to recompile anyway, so just throw away our
* references to the shaders in the cache. We'll get them out of the