v3dv: return out of host memory if we fail to create event pipelines

Fixes: ecb01d53fd ('v3dv: refactor events')
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19366>
This commit is contained in:
Iago Toral Quiroga 2022-10-28 12:10:17 +02:00 committed by Marge Bot
parent 40e683b907
commit 6748d22a7b

View file

@ -3191,8 +3191,10 @@ device_allocate_event_resources(struct v3dv_device *device)
bind_buffer_memory(&bind_info);
/* Pipelines */
if (!device_create_event_pipelines(device))
if (!device_create_event_pipelines(device)) {
result = VK_ERROR_OUT_OF_HOST_MEMORY;
goto fail;
}
/* Descriptor pool & set to access the buffer */
VkDescriptorPoolSize pool_size = {