Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-drivers/xf86-video-nouveau/, x11-drivers/xf86-video-nouveau/files/
Date: Wed, 01 Dec 2021 11:49:48
Message-Id: 1638359323.73c3566d9a4e3fc9775a6158162b89f4a8a96223.sam@gentoo
1 commit: 73c3566d9a4e3fc9775a6158162b89f4a8a96223
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 1 11:48:43 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 1 11:48:43 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73c3566d
7
8 x11-drivers/xf86-video-nouveau: fix build with newer xorg-server
9
10 Closes: https://bugs.gentoo.org/827878
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 ...deo-nouveau-1.0.17-xorg-server-API-rename.patch | 52 ++++++++++++++++++++++
14 .../xf86-video-nouveau-1.0.17.ebuild | 4 ++
15 2 files changed, 56 insertions(+)
16
17 diff --git a/x11-drivers/xf86-video-nouveau/files/xf86-video-nouveau-1.0.17-xorg-server-API-rename.patch b/x11-drivers/xf86-video-nouveau/files/xf86-video-nouveau-1.0.17-xorg-server-API-rename.patch
18 new file mode 100644
19 index 000000000000..cb9b6e0f4eec
20 --- /dev/null
21 +++ b/x11-drivers/xf86-video-nouveau/files/xf86-video-nouveau-1.0.17-xorg-server-API-rename.patch
22 @@ -0,0 +1,52 @@
23 +https://cgit.freedesktop.org/nouveau/xf86-video-nouveau/commit/?id=e80e73ced69b15662103d0fd6837db4ce6c6eb5b
24 +https://bugs.gentoo.org/827878
25 +
26 +From: Dave Airlie <airlied@××××××.com>
27 +Date: Mon, 13 Jul 2020 09:20:15 +1000
28 +Subject: nouveau: fixup driver for new X server ABI
29 +
30 +--- a/src/compat-api.h
31 ++++ b/src/compat-api.h
32 +@@ -102,4 +102,8 @@
33 +
34 + #endif
35 +
36 ++#if ABI_VIDEODRV_VERSION < SET_ABI_VERSION(25, 2)
37 ++#define secondary_dst slave_dst
38 ++#endif
39 ++
40 + #endif
41 +--- a/src/nouveau_exa.c
42 ++++ b/src/nouveau_exa.c
43 +@@ -157,7 +157,7 @@ nouveau_exa_destroy_pixmap(ScreenPtr pScreen, void *priv)
44 +
45 + #ifdef NOUVEAU_PIXMAP_SHARING
46 + static Bool
47 +-nouveau_exa_share_pixmap_backing(PixmapPtr ppix, ScreenPtr slave, void **handle_p)
48 ++nouveau_exa_share_pixmap_backing(PixmapPtr ppix, ScreenPtr secondary, void **handle_p)
49 + {
50 + struct nouveau_bo *bo = nouveau_pixmap_bo(ppix);
51 + struct nouveau_pixmap *nvpix = nouveau_pixmap(ppix);
52 +--- a/src/nv_driver.c
53 ++++ b/src/nv_driver.c
54 +@@ -559,16 +559,16 @@ redisplay_dirty(ScreenPtr screen, PixmapDirtyUpdatePtr dirty)
55 + {
56 + RegionRec pixregion;
57 +
58 +- PixmapRegionInit(&pixregion, dirty->slave_dst);
59 ++ PixmapRegionInit(&pixregion, dirty->secondary_dst);
60 +
61 +- DamageRegionAppend(&dirty->slave_dst->drawable, &pixregion);
62 ++ DamageRegionAppend(&dirty->secondary_dst->drawable, &pixregion);
63 + #ifdef HAS_DIRTYTRACKING_ROTATION
64 + PixmapSyncDirtyHelper(dirty);
65 + #else
66 + PixmapSyncDirtyHelper(dirty, &pixregion);
67 + #endif
68 +
69 +- DamageRegionProcessPending(&dirty->slave_dst->drawable);
70 ++ DamageRegionProcessPending(&dirty->secondary_dst->drawable);
71 + RegionUninit(&pixregion);
72 + }
73 +
74 +cgit v1.2.1
75
76 diff --git a/x11-drivers/xf86-video-nouveau/xf86-video-nouveau-1.0.17.ebuild b/x11-drivers/xf86-video-nouveau/xf86-video-nouveau-1.0.17.ebuild
77 index af511dafe0b2..c9a67c0af74d 100644
78 --- a/x11-drivers/xf86-video-nouveau/xf86-video-nouveau-1.0.17.ebuild
79 +++ b/x11-drivers/xf86-video-nouveau/xf86-video-nouveau-1.0.17.ebuild
80 @@ -22,3 +22,7 @@ RDEPEND=">=x11-libs/libdrm-2.4.60[video_cards_nouveau]
81 >=x11-libs/libpciaccess-0.10
82 virtual/libudev:="
83 DEPEND="${RDEPEND}"
84 +
85 +PATCHES=(
86 + "${FILESDIR}"/${P}-xorg-server-API-rename.patch
87 +)