mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 23:30:10 +01:00
zink: add error for bo allocation failure
Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13849>
This commit is contained in:
parent
83278b5661
commit
4fc216b4ba
1 changed files with 3 additions and 1 deletions
|
|
@ -272,8 +272,10 @@ bo_create_internal(struct zink_screen *screen,
|
|||
}
|
||||
|
||||
VkResult ret = VKSCR(AllocateMemory)(screen->dev, &mai, NULL, &bo->mem);
|
||||
if (!zink_screen_handle_vkresult(screen, ret))
|
||||
if (!zink_screen_handle_vkresult(screen, ret)) {
|
||||
mesa_loge("zink: couldn't allocate memory!");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
simple_mtx_init(&bo->lock, mtx_plain);
|
||||
pipe_reference_init(&bo->base.reference, 1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue