mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +00:00
Don't register a window private if VRR is disabled
It's not used in that case. Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
This commit is contained in:
committed by
Michel Dänzer
parent
5f91be77e0
commit
2a3d00dc7e
@@ -365,7 +365,8 @@ static Bool AMDGPUCreateScreenResources_KMS(ScreenPtr pScreen)
|
||||
}
|
||||
}
|
||||
|
||||
if (!dixRegisterPrivateKey(&amdgpu_window_private_key,
|
||||
if (info->vrr_support &&
|
||||
!dixRegisterPrivateKey(&amdgpu_window_private_key,
|
||||
PRIVATE_WINDOW,
|
||||
sizeof(struct amdgpu_window_priv)))
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user