From c5960c3e15f0a3659d74fd3a973a78e9ef4a2323 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 30 Dec 2025 15:39:32 -0600 Subject: [PATCH] Always use display scaling with the KMSDRM video driver --- app/streaming/session.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index d6c6415c..9578160a 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -1432,9 +1432,13 @@ void Session::updateOptimalWindowDisplayMode() // On devices with slow GPUs, we will try to match the display mode // to the video stream to offload the scaling work to the display. + // + // We also try to match the video resolution if we're using KMSDRM, + // because scaling on the display is generally higher quality than + // scaling performed by drmModeSetPlane(). bool matchVideo; if (!Utils::getEnvironmentVariableOverride("MATCH_DISPLAY_MODE_TO_VIDEO", &matchVideo)) { - matchVideo = WMUtils::isGpuSlow(); + matchVideo = WMUtils::isGpuSlow() || QString(SDL_GetCurrentVideoDriver()) == "KMSDRM"; } bestMode = desktopMode;