anv: properly store the engine_class_supported_count values
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: 5b8b4f7878
("intel/dev: Add engine_class_supported_count to intel_device_info")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29927>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user