From 746f41e70514bcb896f90bd7c7e765e097902285 Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Wed, 26 Jun 2024 16:03:03 -0700 Subject: [PATCH] anv: properly store the engine_class_supported_count values MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Function anv_physical_device_try_create() creates the devinfo variable and then at some point 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") Reviewed-by: Tapani Pälli Reviewed-by: José Roberto de Souza Signed-off-by: Paulo Zanoni Part-of: --- src/intel/vulkan/anv_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 4fa32fc0d40..4f5e2e56a79 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -2576,7 +2576,7 @@ anv_physical_device_try_create(struct vk_instance *vk_instance, device->master_fd = master_fd; device->engine_info = intel_engine_get_info(fd, device->info.kmd_type); - intel_common_update_device_info(fd, &devinfo); + intel_common_update_device_info(fd, &device->info); anv_physical_device_init_queue_families(device);