summary refs log tree commit diff
path: root/pkgs/os-specific/linux/amdgpu-pro/patches/0011-Fix-drm_atomic_helper_swap_state-for-4.8.0.patch
diff options
context:
space:
mode:
authorDavid McFarland <corngood@gmail.com>2016-10-27 23:10:44 -0300
committerDavid McFarland <corngood@gmail.com>2016-11-13 12:44:28 -0400
commit3d4a280c354bb21b711055ca7e02ee3e7999292b (patch)
tree82166f6873d6e1f0a0415bbe171c4720db4ab636 /pkgs/os-specific/linux/amdgpu-pro/patches/0011-Fix-drm_atomic_helper_swap_state-for-4.8.0.patch
parente1a25aeb656d7f458936a83d1c2937a8778714a1 (diff)
downloadnixpkgs-3d4a280c354bb21b711055ca7e02ee3e7999292b.tar
nixpkgs-3d4a280c354bb21b711055ca7e02ee3e7999292b.tar.gz
nixpkgs-3d4a280c354bb21b711055ca7e02ee3e7999292b.tar.bz2
nixpkgs-3d4a280c354bb21b711055ca7e02ee3e7999292b.tar.lz
nixpkgs-3d4a280c354bb21b711055ca7e02ee3e7999292b.tar.xz
nixpkgs-3d4a280c354bb21b711055ca7e02ee3e7999292b.tar.zst
nixpkgs-3d4a280c354bb21b711055ca7e02ee3e7999292b.zip
amdgpu-pro: 16.30.3-315407 -> 16.40-348864
Diffstat (limited to 'pkgs/os-specific/linux/amdgpu-pro/patches/0011-Fix-drm_atomic_helper_swap_state-for-4.8.0.patch')
-rw-r--r--pkgs/os-specific/linux/amdgpu-pro/patches/0011-Fix-drm_atomic_helper_swap_state-for-4.8.0.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/amdgpu-pro/patches/0011-Fix-drm_atomic_helper_swap_state-for-4.8.0.patch b/pkgs/os-specific/linux/amdgpu-pro/patches/0011-Fix-drm_atomic_helper_swap_state-for-4.8.0.patch
new file mode 100644
index 00000000000..d205fc3189c
--- /dev/null
+++ b/pkgs/os-specific/linux/amdgpu-pro/patches/0011-Fix-drm_atomic_helper_swap_state-for-4.8.0.patch
@@ -0,0 +1,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
+