From 31a092ae71371fb473a3a51f70fe58e1f42e283b Mon Sep 17 00:00:00 2001 From: Hamza Mahfooz Date: Thu, 7 Sep 2023 08:15:14 -0400 Subject: Enable TearFree if it's set to auto and VariableRefresh is enabled As of kernel commit 1ca67aba8d11 ("drm/amd/display: only accept async flips for fast updates"), we reject async flips that used to be silently degraded to vsync. However, this causes issues for VRR if TearFree isn't enabled, in particular we have seen that VRR fails to engage on a handful of tested applications and in one case we even observed an application soft hang. So, if TearFree is set to auto we should enable it if VariableRefresh is enabled and we should warn users if they try to enable VariableRefresh while TearFree is disabled. Signed-off-by: Hamza Mahfooz --- man/amdgpu.man | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'man') diff --git a/man/amdgpu.man b/man/amdgpu.man index 54b5bd4..4ec2074 100644 --- a/man/amdgpu.man +++ b/man/amdgpu.man @@ -81,7 +81,8 @@ on. If this option is set, the default value of the property is 'on' or 'off' accordingly. If this option isn't set, the default value of the property is .B auto, which means that TearFree is on for rotated outputs, outputs with RandR -transforms applied and for RandR 1.4 secondary outputs, otherwise off. +transforms applied, for RandR 1.4 secondary outputs and if 'VariableRefresh' +is enabled, otherwise it's off. .TP .BI "Option \*qVariableRefresh\*q \*q" boolean \*q Enables support for enabling variable refresh on the Screen's CRTCs -- cgit v1.2.3