anv: setup syncobj fd via wsi_device_setup_syncobj_fd
Patch moves initialization of variable so that we have fd when calling wsi initialization. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12305>
This commit is contained in:
parent
01fb24d50e
commit
9f6764953b
|
@ -1000,6 +1000,8 @@ anv_physical_device_try_create(struct anv_instance *instance,
|
||||||
device->engine_info = anv_gem_get_engine_info(fd);
|
device->engine_info = anv_gem_get_engine_info(fd);
|
||||||
anv_physical_device_init_queue_families(device);
|
anv_physical_device_init_queue_families(device);
|
||||||
|
|
||||||
|
device->local_fd = fd;
|
||||||
|
|
||||||
result = anv_init_wsi(device);
|
result = anv_init_wsi(device);
|
||||||
if (result != VK_SUCCESS)
|
if (result != VK_SUCCESS)
|
||||||
goto fail_engine_info;
|
goto fail_engine_info;
|
||||||
|
@ -1010,8 +1012,6 @@ anv_physical_device_try_create(struct anv_instance *instance,
|
||||||
|
|
||||||
get_device_extensions(device, &device->vk.supported_extensions);
|
get_device_extensions(device, &device->vk.supported_extensions);
|
||||||
|
|
||||||
device->local_fd = fd;
|
|
||||||
|
|
||||||
anv_genX(&device->info, init_physical_device_state)(device);
|
anv_genX(&device->info, init_physical_device_state)(device);
|
||||||
|
|
||||||
*device_out = device;
|
*device_out = device;
|
||||||
|
|
|
@ -98,6 +98,9 @@ anv_init_wsi(struct anv_physical_device *physical_device)
|
||||||
|
|
||||||
physical_device->vk.wsi_device = &physical_device->wsi_device;
|
physical_device->vk.wsi_device = &physical_device->wsi_device;
|
||||||
|
|
||||||
|
wsi_device_setup_syncobj_fd(&physical_device->wsi_device,
|
||||||
|
physical_device->local_fd);
|
||||||
|
|
||||||
return VK_SUCCESS;
|
return VK_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue