blob: d205fc3189ce7186a1eeadd7d3348de17c4528f6 (
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 32422de1ddaf539d284b32de5fe43d07b7553499 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 11/14] 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 c1f3c27..60cba1a 100644
--- a/amd/dal/amdgpu_dm/amdgpu_dm_types.c
+++ b/amd/dal/amdgpu_dm/amdgpu_dm_types.c
@@ -2331,7 +2331,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.10.1
|