Don't enable the VRR support code for GPU screens

Windows aren't associated with GPU screens, and amdgpu_present_flip is
never called for them, so VRR can never actually be enabled for them.

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
This commit is contained in:
Michel Dänzer
2019-02-12 13:01:04 +01:00
committed by Michel Dänzer
parent 2a3d00dc7e
commit 09a45ff8fe

View File

@@ -1551,11 +1551,13 @@ Bool AMDGPUPreInit_KMS(ScrnInfoPtr pScrn, int flags)
if (info->shadow_primary)
xf86DrvMsg(pScrn->scrnIndex, X_CONFIG, "ShadowPrimary enabled\n");
from = xf86GetOptValBool(info->Options, OPTION_VARIABLE_REFRESH,
&info->vrr_support) ? X_CONFIG : X_DEFAULT;
if (!pScrn->is_gpu) {
from = xf86GetOptValBool(info->Options, OPTION_VARIABLE_REFRESH,
&info->vrr_support) ? X_CONFIG : X_DEFAULT;
xf86DrvMsg(pScrn->scrnIndex, from, "VariableRefresh: %sabled\n",
info->vrr_support ? "en" : "dis");
xf86DrvMsg(pScrn->scrnIndex, from, "VariableRefresh: %sabled\n",
info->vrr_support ? "en" : "dis");
}
}
if (!pScrn->is_gpu) {