Module: Mesa Branch: master Commit: e33f9dbc1afbfce6597a4c585cecbe084bca87af URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e33f9dbc1afbfce6597a4c585cecbe084bca87af
Author: Eric Anholt <[email protected]> Date: Tue Sep 22 11:28:02 2020 -0700 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> --- src/freedreno/vulkan/tu_kgsl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/freedreno/vulkan/tu_kgsl.c b/src/freedreno/vulkan/tu_kgsl.c index 6287e39b8bb..c85b157f3d6 100644 --- a/src/freedreno/vulkan/tu_kgsl.c +++ b/src/freedreno/vulkan/tu_kgsl.c @@ -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, _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
