summaryrefslogtreecommitdiffstats
path: root/nvidia-kernel/build/patches/kernel-5.13-use-atomic-state.patch
blob: 7874e3571e346b284c09d01e45352c74185ca6be (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
--- a/nvidia-drm/nvidia-drm-crtc.c	2021-05-15 13:13:07.232982414 +0100
+++ b/nvidia-drm/nvidia-drm-crtc.c	2021-05-15 13:31:57.488175454 +0100
@@ -289,11 +289,13 @@
 }
 
 static int nv_drm_plane_atomic_check(struct drm_plane *plane,
-                                     struct drm_plane_state *plane_state)
+                                     struct drm_atomic_state *state)
 {
     int i;
     struct drm_crtc *crtc;
     struct drm_crtc_state *crtc_state;
+    struct drm_plane_state *plane_state = drm_atomic_get_new_plane_state(state,
+								         plane);
     NvKmsKapiLayerType type;
     int ret;
 
@@ -342,12 +344,12 @@
 }
 
 static void nv_drm_plane_atomic_update(struct drm_plane *plane,
-                                       struct drm_plane_state *old_state)
+                                       struct drm_atomic_state *old_state)
 {
 }
 
 static void nv_drm_plane_atomic_disable(struct drm_plane *plane,
-                                        struct drm_plane_state *old_state)
+                                        struct drm_atomic_state *old_state)
 {
 }