summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2019-02-12 13:01:04 +0100
committerMichel Dänzer <michel@daenzer.net>2019-02-20 16:37:13 +0100
commit09a45ff8fe3ac07bafa3a0822b1598c41f9ca200 (patch)
tree1afe61fb683da8ead0037f9f5863ba1d9e644b35 /src
parent2a3d00dc7ed2b4fca698e2d699e1b94da6d0ddb8 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/amdgpu_kms.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c
index ea11ba8..3c83702 100644
--- a/src/amdgpu_kms.c
+++ b/src/amdgpu_kms.c
@@ -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) {