Commit c952c3a3 authored by Xaver Hugl's avatar Xaver Hugl
Browse files

backends/drm: add environment variable KWIN_DRM_NO_DIRECT_SCANOUT

Can be useful for debugging
parent 52bc4606
......@@ -633,6 +633,11 @@ void EglGbmBackend::updateBufferAge(Output &output, const QRegion &dirty)
bool EglGbmBackend::scanout(AbstractOutput *drmOutput, SurfaceItem *surfaceItem)
{
static bool valid;
static const bool directScanoutDisabled = qEnvironmentVariableIntValue("KWIN_DRM_NO_DIRECT_SCANOUT", &valid) == 1 && valid;
if (directScanoutDisabled) {
return false;
}
Q_ASSERT(m_outputs.contains(drmOutput));
SurfaceItemWayland *item = qobject_cast<SurfaceItemWayland *>(surfaceItem);
if (!item) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment