render/dmabuf: lower log level for sync file import/export failure

On platforms that lack the corresponding ioctl, this particular error
is expected and recoverable
This commit is contained in:
Félix Poisot 2026-04-22 17:25:02 +00:00
parent 9740ec61c8
commit 8d0597e3db

View file

@ -56,7 +56,8 @@ bool dmabuf_import_sync_file(int dmabuf_fd, uint32_t flags, int sync_file_fd) {
.fd = sync_file_fd, .fd = sync_file_fd,
}; };
if (drmIoctl(dmabuf_fd, DMA_BUF_IOCTL_IMPORT_SYNC_FILE, &data) != 0) { if (drmIoctl(dmabuf_fd, DMA_BUF_IOCTL_IMPORT_SYNC_FILE, &data) != 0) {
wlr_log_errno(WLR_ERROR, "drmIoctl(IMPORT_SYNC_FILE) failed"); enum wlr_log_importance importance = errno == ENOTTY ? WLR_DEBUG : WLR_ERROR;
wlr_log_errno(importance, "drmIoctl(IMPORT_SYNC_FILE) failed");
return false; return false;
} }
return true; return true;
@ -68,7 +69,8 @@ int dmabuf_export_sync_file(int dmabuf_fd, uint32_t flags) {
.fd = -1, .fd = -1,
}; };
if (drmIoctl(dmabuf_fd, DMA_BUF_IOCTL_EXPORT_SYNC_FILE, &data) != 0) { if (drmIoctl(dmabuf_fd, DMA_BUF_IOCTL_EXPORT_SYNC_FILE, &data) != 0) {
wlr_log_errno(WLR_ERROR, "drmIoctl(EXPORT_SYNC_FILE) failed"); enum wlr_log_importance importance = errno == ENOTTY ? WLR_DEBUG : WLR_ERROR;
wlr_log_errno(importance, "drmIoctl(EXPORT_SYNC_FILE) failed");
return -1; return -1;
} }
return data.fd; return data.fd;