diff options
-rw-r--r-- | nvidia-kernel/build/patches/kernel-5.13-use-atomic-state.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/nvidia-kernel/build/patches/kernel-5.13-use-atomic-state.patch b/nvidia-kernel/build/patches/kernel-5.13-use-atomic-state.patch new file mode 100644 index 00000000..7874e357 --- /dev/null +++ b/nvidia-kernel/build/patches/kernel-5.13-use-atomic-state.patch @@ -0,0 +1,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) + { + } + |