mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 00:30:11 +01:00
turnip/kgsl: Add strerror decode in BO init failure.
Just covering more of the error paths. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7014>
This commit is contained in:
parent
5d3aeafa77
commit
e33f9dbc1a
1 changed files with 4 additions and 2 deletions
|
|
@ -89,8 +89,10 @@ tu_bo_init_new(struct tu_device *dev, struct tu_bo *bo, uint64_t size, bool dump
|
|||
|
||||
ret = safe_ioctl(dev->physical_device->local_fd,
|
||||
IOCTL_KGSL_GPUMEM_ALLOC_ID, &req);
|
||||
if (ret)
|
||||
return vk_error(dev->instance, VK_ERROR_OUT_OF_DEVICE_MEMORY);
|
||||
if (ret) {
|
||||
return vk_errorf(dev->instance, VK_ERROR_OUT_OF_DEVICE_MEMORY,
|
||||
"GPUMEM_ALLOC_ID failed (%s)", strerror(errno));
|
||||
}
|
||||
|
||||
*bo = (struct tu_bo) {
|
||||
.gem_handle = req.id,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue