Skip to content

anv: properly store the engine_class_supported_count values

Paulo Zanoni requested to merge pzanoni/mesa:anv-fix-queue-counts into main
anv: properly store the engine_class_supported_count values

Function anv_physical_device_try_create() creates the devinfo variable
and then at some points it copies its contents to device->info:

  device->info = devinfo;

Much much later we're calling:

  intel_common_update_device_info(fd, &devinfo);

... which is updating devinfo but not device->info. As a consequence,
we're only creating one queue, as engine_class_supported_count[klass]
is zero for everybody.

Fixes: 5b8b4f78782e ("intel/dev: Add engine_class_supported_count to intel_device_info")

Cc: @zehortigoza @llandwerlin

Merge request reports