drm/amd/display: Fix slow FPS.
authorAndrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Fri, 12 May 2017 20:19:15 +0000 (16:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:07:11 +0000 (18:07 -0400)
Typo in expresion.

Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Reviewed-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 4ec86ed5622f348b359cde970c4ba659489a48d1..a2c00c0bf00784e332fb8d1fd469b574bccc8c7c 100644 (file)
@@ -135,8 +135,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;