summaryrefslogtreecommitdiff
path: root/sys-kernel/nvidia-drivers-dkms
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-16 19:04:04 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-10-16 19:04:04 +0100
commit73b6dcbef81db994f790d20d5cc3838974032fbb (patch)
treef3ec4ca748da2ba2df5200405cfd99d80fdaf42c /sys-kernel/nvidia-drivers-dkms
parent2267a871d927432c30d4694c22b16b67c18e6cf6 (diff)
sys-kernel/nvidia-drivers-dkms (515) : kernel 6.0 compatibility
Diffstat (limited to 'sys-kernel/nvidia-drivers-dkms')
-rw-r--r--sys-kernel/nvidia-drivers-dkms/files/515-kernel6.patch28
-rw-r--r--sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-515.65.01.ebuild1
2 files changed, 29 insertions, 0 deletions
diff --git a/sys-kernel/nvidia-drivers-dkms/files/515-kernel6.patch b/sys-kernel/nvidia-drivers-dkms/files/515-kernel6.patch
new file mode 100644
index 00000000..71470fd0
--- /dev/null
+++ b/sys-kernel/nvidia-drivers-dkms/files/515-kernel6.patch
@@ -0,0 +1,28 @@
+diff -Nur a/kernel/nvidia-drm/nvidia-drm-helper.c b/kernel/nvidia-drm/nvidia-drm-helper.c
+--- a/kernel/nvidia-drm/nvidia-drm-helper.c 2022-07-20 14:42:53.000000000 +0100
++++ b/kernel/nvidia-drm/nvidia-drm-helper.c 2022-10-16 19:00:47.687049510 +0100
+@@ -41,6 +41,10 @@
+ #include <drm/drm_atomic_uapi.h>
+ #endif
+
++#if defined(NV_DRM_FRAMEBUFFER_GET_PRESENT)
++#include <drm/drm_framebuffer.h>
++#endif
++
+ static void __nv_drm_framebuffer_put(struct drm_framebuffer *fb)
+ {
+ #if defined(NV_DRM_FRAMEBUFFER_GET_PRESENT)
+diff -Nur a/kernel-open/nvidia-drm/nvidia-drm-helper.c b/kernel-open/nvidia-drm/nvidia-drm-helper.c
+--- a/kernel-open/nvidia-drm/nvidia-drm-helper.c 2022-07-20 14:43:40.000000000 +0100
++++ b/kernel-open/nvidia-drm/nvidia-drm-helper.c 2022-10-16 19:00:47.687049510 +0100
+@@ -41,6 +41,10 @@
+ #include <drm/drm_atomic_uapi.h>
+ #endif
+
++#if defined(NV_DRM_FRAMEBUFFER_GET_PRESENT)
++#include <drm/drm_framebuffer.h>
++#endif
++
+ static void __nv_drm_framebuffer_put(struct drm_framebuffer *fb)
+ {
+ #if defined(NV_DRM_FRAMEBUFFER_GET_PRESENT)
diff --git a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-515.65.01.ebuild b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-515.65.01.ebuild
index cb40e068..4268b1bf 100644
--- a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-515.65.01.ebuild
+++ b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-515.65.01.ebuild
@@ -24,6 +24,7 @@ RDEPEND="${DEPEND}
!!sys-kernel/nvidia-drivers-dkms:470"
PATCHES=(
+ "${FILESDIR}"/515-kernel6.patch
"${FILESDIR}"/dkms515.patch
)