pvr: Remove logic to set vk_device::alloc.

The field is being already set by vk_device_init().

Signed-off-by: Rajnesh Kanwal <rajnesh.kanwal@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15768>
This commit is contained in:
Rajnesh Kanwal 2022-04-04 14:01:56 +01:00 committed by Marge Bot
parent 40f0c616e8
commit 748c1fdf1b

View file

@ -1054,11 +1054,6 @@ VkResult pvr_CreateDevice(VkPhysicalDevice physicalDevice,
device->instance = instance;
device->pdevice = pdevice;
if (pAllocator)
device->vk.alloc = *pAllocator;
else
device->vk.alloc = pdevice->vk.instance->alloc;
device->ws = pvr_winsys_create(device->master_fd,
device->render_fd,
&device->vk.alloc);