mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +00:00
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:
committed by
Michel Dänzer
parent
2a3d00dc7e
commit
09a45ff8fe
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user