From 24db040a49ec1fcf12a896b0ee4b8599b9c805fd Mon Sep 17 00:00:00 2001 From: Sagar Ghuge Date: Fri, 16 Feb 2024 09:31:08 -0800 Subject: [PATCH] anv: Drop warnings for engine initialization failure We don't have to spit out warnings for the end users. For compute if we fail to initialize, we are falling back to render for compute operation, Anyway end-user applications can query what the engines/queues are supported based on that they can choose to use a specific queue. Signed-off-by: Sagar Ghuge Reviewed-by: Paulo Zanoni Acked-By: Mike Blumenkrantz Part-of: --- src/intel/vulkan/anv_device.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 1abbca55eb4..0c48296fa97 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -2020,25 +2020,21 @@ anv_physical_device_init_queue_families(struct anv_physical_device *pdevice) kernel_supports_non_render_engines && sparse_supports_non_render_engines; - if (!can_use_non_render_engines) - mesa_logw("cannot initialize compute engine"); - else + if (can_use_non_render_engines) { c_count = intel_engines_supported_count(pdevice->local_fd, &pdevice->info, pdevice->engine_info, INTEL_ENGINE_CLASS_COMPUTE); + } enum intel_engine_class compute_class = c_count < 1 ? INTEL_ENGINE_CLASS_RENDER : INTEL_ENGINE_CLASS_COMPUTE; int blit_count = 0; - if (pdevice->info.verx10 >= 125) { - if (!can_use_non_render_engines) - mesa_logw("cannot initialize blitter engine"); - else - blit_count = intel_engines_supported_count(pdevice->local_fd, - &pdevice->info, - pdevice->engine_info, - INTEL_ENGINE_CLASS_COPY); + if (pdevice->info.verx10 >= 125 && can_use_non_render_engines) { + blit_count = intel_engines_supported_count(pdevice->local_fd, + &pdevice->info, + pdevice->engine_info, + INTEL_ENGINE_CLASS_COPY); } anv_override_engine_counts(&gc_count, &g_count, &c_count, &v_count);