diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-11-12 13:22:05 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-11-13 01:17:26 -0800 |
commit | 32547c1fa7ba4bc2650ba4b1784ccf8181a5a0b7 (patch) | |
tree | 3e35e74ecd027ef559d03203a9ae4adcad1e1d49 /meta-oe/recipes-graphics/xorg-driver/xf86-video-nouveau | |
parent | c6d8fd96a35b0f6bdc1a000c21f592bd5361fcdf (diff) | |
download | meta-openembedded-32547c1fa7ba4bc2650ba4b1784ccf8181a5a0b7.tar.gz |
xf86-video-nouveau: fixup driver for new X server ABI
Backport relevant patch
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-graphics/xorg-driver/xf86-video-nouveau')
-rw-r--r-- | meta-oe/recipes-graphics/xorg-driver/xf86-video-nouveau/0001-nouveau-fixup-driver-for-new-X-server-ABI.patch | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/xorg-driver/xf86-video-nouveau/0001-nouveau-fixup-driver-for-new-X-server-ABI.patch b/meta-oe/recipes-graphics/xorg-driver/xf86-video-nouveau/0001-nouveau-fixup-driver-for-new-X-server-ABI.patch new file mode 100644 index 000000000..e49c99574 --- /dev/null +++ b/meta-oe/recipes-graphics/xorg-driver/xf86-video-nouveau/0001-nouveau-fixup-driver-for-new-X-server-ABI.patch | |||
@@ -0,0 +1,66 @@ | |||
1 | From 7ae2f6ba4cbf29fc3f1b08579b838679a3301cb3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Dave Airlie <airlied@redhat.com> | ||
3 | Date: Mon, 13 Jul 2020 09:20:15 +1000 | ||
4 | Subject: [PATCH] nouveau: fixup driver for new X server ABI | ||
5 | |||
6 | Upstream-Status: Backport [https://cgit.freedesktop.org/nouveau/xf86-video-nouveau/commit/?id=e80e73ced69b15662103d0fd6837db4ce6c6eb5b] | ||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | --- | ||
9 | src/compat-api.h | 4 ++++ | ||
10 | src/nouveau_exa.c | 2 +- | ||
11 | src/nv_driver.c | 6 +++--- | ||
12 | 3 files changed, 8 insertions(+), 4 deletions(-) | ||
13 | |||
14 | diff --git a/src/compat-api.h b/src/compat-api.h | ||
15 | index fde2f4b..8a1fcf9 100644 | ||
16 | --- a/src/compat-api.h | ||
17 | +++ b/src/compat-api.h | ||
18 | @@ -102,4 +102,8 @@ | ||
19 | |||
20 | #endif | ||
21 | |||
22 | +#if ABI_VIDEODRV_VERSION < SET_ABI_VERSION(25, 2) | ||
23 | +#define secondary_dst slave_dst | ||
24 | +#endif | ||
25 | + | ||
26 | #endif | ||
27 | diff --git a/src/nouveau_exa.c b/src/nouveau_exa.c | ||
28 | index 55df6f8..db3b112 100644 | ||
29 | --- a/src/nouveau_exa.c | ||
30 | +++ b/src/nouveau_exa.c | ||
31 | @@ -157,7 +157,7 @@ nouveau_exa_destroy_pixmap(ScreenPtr pScreen, void *priv) | ||
32 | |||
33 | #ifdef NOUVEAU_PIXMAP_SHARING | ||
34 | static Bool | ||
35 | -nouveau_exa_share_pixmap_backing(PixmapPtr ppix, ScreenPtr slave, void **handle_p) | ||
36 | +nouveau_exa_share_pixmap_backing(PixmapPtr ppix, ScreenPtr secondary, void **handle_p) | ||
37 | { | ||
38 | struct nouveau_bo *bo = nouveau_pixmap_bo(ppix); | ||
39 | struct nouveau_pixmap *nvpix = nouveau_pixmap(ppix); | ||
40 | diff --git a/src/nv_driver.c b/src/nv_driver.c | ||
41 | index e72a6b6..f9ab4af 100644 | ||
42 | --- a/src/nv_driver.c | ||
43 | +++ b/src/nv_driver.c | ||
44 | @@ -559,16 +559,16 @@ redisplay_dirty(ScreenPtr screen, PixmapDirtyUpdatePtr dirty) | ||
45 | { | ||
46 | RegionRec pixregion; | ||
47 | |||
48 | - PixmapRegionInit(&pixregion, dirty->slave_dst); | ||
49 | + PixmapRegionInit(&pixregion, dirty->secondary_dst); | ||
50 | |||
51 | - DamageRegionAppend(&dirty->slave_dst->drawable, &pixregion); | ||
52 | + DamageRegionAppend(&dirty->secondary_dst->drawable, &pixregion); | ||
53 | #ifdef HAS_DIRTYTRACKING_ROTATION | ||
54 | PixmapSyncDirtyHelper(dirty); | ||
55 | #else | ||
56 | PixmapSyncDirtyHelper(dirty, &pixregion); | ||
57 | #endif | ||
58 | |||
59 | - DamageRegionProcessPending(&dirty->slave_dst->drawable); | ||
60 | + DamageRegionProcessPending(&dirty->secondary_dst->drawable); | ||
61 | RegionUninit(&pixregion); | ||
62 | } | ||
63 | |||
64 | -- | ||
65 | 2.33.1 | ||
66 | |||