From 60c9044697fae98d1de1c3e09f3b153774cdc676 Mon Sep 17 00:00:00 2001 From: Andrey Grodzovsky Date: Fri, 12 May 2017 16:19:15 -0400 Subject: [PATCH] drm/amd/display: Fix slow FPS. Typo in expresion. Change-Id: I156388e19ccfa40996a16383c1532ffde687427e Signed-off-by: Andrey Grodzovsky --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 9813688fdec1..cd06229bef2e 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -141,8 +141,8 @@ static int dm_crtc_get_scanoutpos(struct amdgpu_device *adev, int crtc, &h_position, &v_position); - *position = (v_position) || (h_position << 16); - *vbl = (v_blank_start) || (v_blank_end << 16); + *position = v_position | (h_position << 16); + *vbl = v_blank_start | (v_blank_end << 16); } return 0; -- 2.11.0