mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 08:08:06 +02:00
v3dv: remove unnecessary check for NULL
We are initializing the device, so we know this will be NULL. Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> Reviewed-by: Eric Engestrom <eric@igalia.com> cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19458>
This commit is contained in:
parent
c6c5949ff7
commit
c793d384c1
1 changed files with 3 additions and 5 deletions
|
|
@ -2104,11 +2104,9 @@ v3dv_CreateDevice(VkPhysicalDevice physicalDevice,
|
|||
device->device_address_mem_ctx);
|
||||
|
||||
mtx_init(&device->events.lock, mtx_plain);
|
||||
if (!device->events.bo) {
|
||||
result = v3dv_event_allocate_resources(device);
|
||||
if (result != VK_SUCCESS)
|
||||
goto fail;
|
||||
}
|
||||
result = v3dv_event_allocate_resources(device);
|
||||
if (result != VK_SUCCESS)
|
||||
goto fail;
|
||||
|
||||
if (list_is_empty(&device->events.free_list)) {
|
||||
result = vk_error(device, VK_ERROR_OUT_OF_DEVICE_MEMORY);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue