Module: Mesa Branch: main Commit: 1c29200a15e3e70b03c21501635bdf392104fd0a URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1c29200a15e3e70b03c21501635bdf392104fd0a
Author: Mike Blumenkrantz <[email protected]> Date: Mon Jun 19 11:47:22 2023 -0400 vk/wsi: add error logging for syncfile import/export failures these are otherwise pretty obscure Acked-by: Daniel Stone <[email protected]> Reviewed-by: Joshua Ashton <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23835> --- src/vulkan/wsi/wsi_common_drm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vulkan/wsi/wsi_common_drm.c b/src/vulkan/wsi/wsi_common_drm.c index 35fa913d606..b53d485ef3a 100644 --- a/src/vulkan/wsi/wsi_common_drm.c +++ b/src/vulkan/wsi/wsi_common_drm.c @@ -25,6 +25,7 @@ #include "wsi_common_drm.h" #include "util/macros.h" #include "util/os_file.h" +#include "util/log.h" #include "util/xmlconfig.h" #include "vk_device.h" #include "vk_physical_device.h" @@ -57,6 +58,7 @@ wsi_dma_buf_export_sync_file(int dma_buf_fd, int *sync_file_fd) no_dma_buf_sync_file = true; return VK_ERROR_FEATURE_NOT_PRESENT; } else { + mesa_loge("MESA: failed to export sync file '%s'", strerror(errno)); return VK_ERROR_OUT_OF_HOST_MEMORY; } } @@ -84,6 +86,7 @@ wsi_dma_buf_import_sync_file(int dma_buf_fd, int sync_file_fd) no_dma_buf_sync_file = true; return VK_ERROR_FEATURE_NOT_PRESENT; } else { + mesa_loge("MESA: failed to import sync file '%s'", strerror(errno)); return VK_ERROR_OUT_OF_HOST_MEMORY; } }
