mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
pvr: move some asserts in pvr_srv_alloc_display_pmr
Don't assert if the pvr_srv_physmem_import_dmabuf bridge call fails. Signed-off-by: Brendan King <brendan.king@imgtec.com> Reviewed-by: Frank Binns <frank.binns@imgtec.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41236>
This commit is contained in:
parent
01ba4867fa
commit
443c259630
1 changed files with 3 additions and 3 deletions
|
|
@ -76,15 +76,15 @@ static VkResult pvr_srv_alloc_display_pmr(struct pvr_srv_winsys *srv_ws,
|
|||
&size_out,
|
||||
&aligment_out);
|
||||
|
||||
assert(size_out >= size);
|
||||
assert(aligment_out == srv_ws->base.page_size);
|
||||
|
||||
/* close fd, not needed anymore */
|
||||
close(fd);
|
||||
|
||||
if (result != VK_SUCCESS)
|
||||
goto err_display_buffer_destroy;
|
||||
|
||||
assert(size_out >= size);
|
||||
assert(aligment_out == srv_ws->base.page_size);
|
||||
|
||||
*handle_out = handle;
|
||||
|
||||
return VK_SUCCESS;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue