Always use display scaling with the KMSDRM video driver
This commit is contained in:
parent
b48cbd76f5
commit
c5960c3e15
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue