From 098136e52a5975ab09618be9c313475cc948a9ad Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Thu, 21 Mar 2024 12:24:06 +0200 Subject: [PATCH] anv: avoid partially compiled warning with GPL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lionel Landwerlin Reviewed-by: José Roberto de Souza Part-of: --- src/intel/vulkan/anv_pipeline.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 65aca90f1ce..df8786f2562 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -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