aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0794-drm-amd-dal-Correctly-interpret-rotation-as-bit-set.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0794-drm-amd-dal-Correctly-interpret-rotation-as-bit-set.patch')
-rw-r--r--common/recipes-kernel/linux/files/0794-drm-amd-dal-Correctly-interpret-rotation-as-bit-set.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0794-drm-amd-dal-Correctly-interpret-rotation-as-bit-set.patch b/common/recipes-kernel/linux/files/0794-drm-amd-dal-Correctly-interpret-rotation-as-bit-set.patch
new file mode 100644
index 00000000..9151f573
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0794-drm-amd-dal-Correctly-interpret-rotation-as-bit-set.patch
@@ -0,0 +1,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
+