pvr: Fix segfault in pvr_physical_device_init()

This was introduced (by me) in a previous commit. Part of pdevice->vk
was initialised before calling vk_physical_device_init() which then
overwrite our values.

Fixes: 4ba553ab9a ("pvr: Use common vkGetPhysicalDeviceFeatures2() implementation")

Signed-off-by: Matt Coster <matt.coster@imgtec.com>
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23366>
This commit is contained in:
Matt Coster
2023-05-16 09:07:48 +01:00
committed by Marge Bot
parent 84f2d26509
commit b5ac476b98
+2 -1
View File
@@ -396,7 +396,6 @@ static VkResult pvr_physical_device_init(struct pvr_physical_device *pdevice,
pdevice->render_path = render_path;
pdevice->display_path = display_path;
pdevice->ws = ws;
pdevice->vk.supported_sync_types = ws->sync_types;
result = ws->ops->device_info_init(ws,
&pdevice->dev_info,
@@ -426,6 +425,8 @@ static VkResult pvr_physical_device_init(struct pvr_physical_device *pdevice,
if (result != VK_SUCCESS)
goto err_pvr_winsys_destroy;
pdevice->vk.supported_sync_types = ws->sync_types;
result = pvr_physical_device_init_uuids(pdevice);
if (result != VK_SUCCESS)
goto err_vk_physical_device_finish;