aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0794-drm-amd-dal-Correctly-interpret-rotation-as-bit-set.patch
blob: 9151f573490708bed14ad0598d305513bf189863 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From 5c8e0a6508d058c945177effc67645bac34a9248 Mon Sep 17 00:00:00 2001
From: Harry Wentland <harry.wentland@amd.com>
Date: Thu, 11 Feb 2016 11:48:46 -0500
Subject: [PATCH 0794/1110] drm/amd/dal: Correctly interpret rotation as bit
 set

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
---
 drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c b/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c
index 39490bf..7468990 100644
--- a/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c
+++ b/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c
@@ -366,16 +366,16 @@ static bool fill_rects_from_plane_state(
 	surface->clip_rect = surface->dst_rect;
 
 	switch (state->rotation) {
-	case DRM_ROTATE_0:
+	case BIT(DRM_ROTATE_0):
 		surface->rotation = ROTATION_ANGLE_0;
 		break;
-	case DRM_ROTATE_90:
+	case BIT(DRM_ROTATE_90):
 		surface->rotation = ROTATION_ANGLE_90;
 		break;
-	case DRM_ROTATE_180:
+	case BIT(DRM_ROTATE_180):
 		surface->rotation = ROTATION_ANGLE_180;
 		break;
-	case DRM_ROTATE_270:
+	case BIT(DRM_ROTATE_270):
 		surface->rotation = ROTATION_ANGLE_270;
 		break;
 	default:
-- 
2.7.4