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 <sagar.ghuge@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27660>
This commit is contained in:
Sagar Ghuge
2024-02-16 09:31:08 -08:00
committed by Marge Bot
parent 876db91350
commit 24db040a49
+7 -11
View File
@@ -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);