blob: 197fdd32b107babf228e1412c2ce3dde9c736a6a (
plain) (
blame)
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
|
From 7a5d45874b1e2bbbff2d2410f38203b5b0ae67c4 Mon Sep 17 00:00:00 2001
From: "Luke A. Guest" <laguest@archeia.com>
Date: Sun, 25 Sep 2016 17:00:32 +0100
Subject: [PATCH 07/11] Fix drm_atomic_helper_swap_state for 4.8.0
---
amd/dal/amdgpu_dm/amdgpu_dm_types.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/amd/dal/amdgpu_dm/amdgpu_dm_types.c b/amd/dal/amdgpu_dm/amdgpu_dm_types.c
index 32755a9..60ca073 100644
--- a/amd/dal/amdgpu_dm/amdgpu_dm_types.c
+++ b/amd/dal/amdgpu_dm/amdgpu_dm_types.c
@@ -2528,7 +2528,11 @@ int amdgpu_dm_atomic_commit(
* the software side now.
*/
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
+ drm_atomic_helper_swap_state(state, true);
+#else
drm_atomic_helper_swap_state(dev, state);
+#endif
/*
* From this point state become old state really. New state is
--
2.11.0
|