platforms/drm: only print error for direct scanout when useful
Most wayland-native apps provide buffers that aren't suitable for direct scanout; the message usually only spams the log full without proper reason or useful informationicc-effect-5.26.4
parent
af6f95b2eb
commit
40eb0e4f0e
|
@ -726,7 +726,9 @@ bool EglGbmBackend::scanout(int screenId, SurfaceItem *surfaceItem)
|
||||||
importedBuffer = gbm_bo_import(m_gpu->gbmDevice(), GBM_BO_IMPORT_FD, &data, GBM_BO_USE_SCANOUT);
|
importedBuffer = gbm_bo_import(m_gpu->gbmDevice(), GBM_BO_IMPORT_FD, &data, GBM_BO_USE_SCANOUT);
|
||||||
}
|
}
|
||||||
if (!importedBuffer) {
|
if (!importedBuffer) {
|
||||||
qCDebug(KWIN_DRM) << "importing the dmabuf for direct scanout failed:" << strerror(errno);
|
if (errno != EINVAL) {
|
||||||
|
qCWarning(KWIN_DRM) << "Importing buffer for direct scanout failed!" << strerror(errno);
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// damage tracking for screen casting
|
// damage tracking for screen casting
|
||||||
|
|
Loading…
Reference in New Issue