X-Git-Url: http://git.pld-linux.org/?p=packages%2Fxorg-driver-video-nvidia-legacy-390xx.git;a=blobdiff_plain;f=kernel-5.13.patch;fp=kernel-5.13.patch;h=0000000000000000000000000000000000000000;hp=c18e5f0c481f4d8207e4c3055b90b2e276903cbb;hb=59862b5ca4f4fbfe79abb874dbefb36838886a25;hpb=b9b3ea8b19c1011b342dd49b478a2843b69359d3 diff --git a/kernel-5.13.patch b/kernel-5.13.patch deleted file mode 100644 index c18e5f0..0000000 --- a/kernel-5.13.patch +++ /dev/null @@ -1,52 +0,0 @@ ---- NVIDIA-Linux-x86_64-390.143-no-compat32/kernel/nvidia-drm/nvidia-drm-crtc.c~ 2021-03-12 08:31:39.000000000 +0100 -+++ NVIDIA-Linux-x86_64-390.143-no-compat32/kernel/nvidia-drm/nvidia-drm-crtc.c 2021-07-02 20:27:35.094061481 +0200 -@@ -39,6 +39,8 @@ - #include - #include - -+#include -+ - static const u32 nv_default_supported_plane_drm_formats[] = { - DRM_FORMAT_ARGB1555, - DRM_FORMAT_XRGB1555, -@@ -131,12 +133,19 @@ - } - - static int nv_drm_plane_atomic_check(struct drm_plane *plane, -+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 13, 0) - struct drm_plane_state *plane_state) -+#else -+ struct drm_atomic_state *state) -+#endif - { - int i; - struct drm_crtc *crtc; - struct drm_crtc_state *crtc_state; - NvKmsKapiPlaneType type; -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 13, 0) -+ struct drm_plane_state *plane_state = drm_atomic_get_new_plane_state(state, plane); -+#endif - - if (NV_DRM_WARN(!drm_plane_type_to_nvkms_plane_type(plane->type, &type))) { - goto done; -@@ -175,12 +175,20 @@ - } - - static void nv_drm_plane_atomic_update(struct drm_plane *plane, -+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 13, 0) - struct drm_plane_state *old_state) -+#else -+ struct drm_atomic_state *state) -+#endif - { - } - - static void nv_drm_plane_atomic_disable(struct drm_plane *plane, -+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 13, 0) - struct drm_plane_state *old_state) -+#else -+ struct drm_atomic_state *state) -+#endif - { - } -