diff options
| -rw-r--r-- | meta-oe/recipes-graphics/xorg-driver/xf86-video-nouveau/0001-nouveau-fixup-driver-for-new-X-server-ABI.patch | 66 | ||||
| -rw-r--r-- | meta-oe/recipes-graphics/xorg-driver/xf86-video-nouveau_1.0.17.bb | 1 |
2 files changed, 67 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 0000000000..e49c99574e --- /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 | |||
diff --git a/meta-oe/recipes-graphics/xorg-driver/xf86-video-nouveau_1.0.17.bb b/meta-oe/recipes-graphics/xorg-driver/xf86-video-nouveau_1.0.17.bb index d9d09a242f..d471610bab 100644 --- a/meta-oe/recipes-graphics/xorg-driver/xf86-video-nouveau_1.0.17.bb +++ b/meta-oe/recipes-graphics/xorg-driver/xf86-video-nouveau_1.0.17.bb | |||
| @@ -15,4 +15,5 @@ REQUIRED_DISTRO_FEATURES += "opengl" | |||
| 15 | 15 | ||
| 16 | COMPATIBLE_HOST = '(i.86|x86_64).*-linux' | 16 | COMPATIBLE_HOST = '(i.86|x86_64).*-linux' |
| 17 | 17 | ||
| 18 | SRC_URI += "file://0001-nouveau-fixup-driver-for-new-X-server-ABI.patch" | ||
| 18 | SRC_URI[sha256sum] = "499322e27a55c8183166bf2dd1e47d085eb834143e0d7036baba8427b90c156b" | 19 | SRC_URI[sha256sum] = "499322e27a55c8183166bf2dd1e47d085eb834143e0d7036baba8427b90c156b" |
