mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
lvp: import_memory_fd returns a boolean
also drop the unnecessary cast Reviewed-by: Lucas Fryzek <lfryzek@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40426>
This commit is contained in:
parent
ec06d0b634
commit
6347a0d538
1 changed files with 2 additions and 2 deletions
|
|
@ -125,8 +125,8 @@ lvp_import_ahb_memory(struct lvp_device *device, struct lvp_device_memory *mem)
|
|||
return VK_ERROR_INVALID_EXTERNAL_HANDLE;
|
||||
|
||||
uint64_t size;
|
||||
int result = device->pscreen->import_memory_fd(device->pscreen, dma_buf, (struct pipe_memory_allocation**)&mem->pmem, &size, true);
|
||||
if (!result)
|
||||
if (!device->pscreen->import_memory_fd(device->pscreen, dma_buf, &mem->pmem,
|
||||
&size, true))
|
||||
return VK_ERROR_INVALID_EXTERNAL_HANDLE;
|
||||
|
||||
mem->vk.size = size;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue