From e23408538d3d2121fcd66c244013315ed15e030b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Wed, 3 Nov 2021 16:58:57 +0100 Subject: [PATCH] - adjust API for political correctness of xserver 21, rel 3 --- pc.patch | 22 ++++++++++++++++++++++ xorg-driver-video-nouveau.spec | 4 +++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 pc.patch diff --git a/pc.patch b/pc.patch new file mode 100644 index 0000000..d051b00 --- /dev/null +++ b/pc.patch @@ -0,0 +1,22 @@ +--- xf86-video-nouveau-1.0.17/src/nv_driver.c~ 2021-01-23 19:24:38.000000000 +0100 ++++ xf86-video-nouveau-1.0.17/src/nv_driver.c 2021-11-03 16:57:15.022450372 +0100 +@@ -559,16 +559,16 @@ + { + RegionRec pixregion; + +- PixmapRegionInit(&pixregion, dirty->slave_dst); ++ PixmapRegionInit(&pixregion, dirty->secondary_dst); + +- DamageRegionAppend(&dirty->slave_dst->drawable, &pixregion); ++ DamageRegionAppend(&dirty->secondary_dst->drawable, &pixregion); + #ifdef HAS_DIRTYTRACKING_ROTATION + PixmapSyncDirtyHelper(dirty); + #else + PixmapSyncDirtyHelper(dirty, &pixregion); + #endif + +- DamageRegionProcessPending(&dirty->slave_dst->drawable); ++ DamageRegionProcessPending(&dirty->secondary_dst->drawable); + RegionUninit(&pixregion); + } + diff --git a/xorg-driver-video-nouveau.spec b/xorg-driver-video-nouveau.spec index f662544..b376a0a 100644 --- a/xorg-driver-video-nouveau.spec +++ b/xorg-driver-video-nouveau.spec @@ -2,11 +2,12 @@ Summary: X.org video driver for NVIDIA graphics chipsets Summary(pl.UTF-8): Sterownik obrazu X.org dla układów graficznych NVIDIA Name: xorg-driver-video-nouveau Version: 1.0.17 -Release: 2 +Release: 3 License: MIT Group: X11/Applications Source0: https://xorg.freedesktop.org/archive/individual/driver/xf86-video-nouveau-%{version}.tar.bz2 # Source0-md5: b08633be9af9ee819077c278dfc55648 +Patch0: pc.patch URL: https://nouveau.freedesktop.org/ BuildRequires: Mesa-libGL-devel BuildRequires: autoconf >= 2.60 @@ -82,6 +83,7 @@ PCI, PCI-Express i AGP oparte na następujących układach: %prep %setup -q -n xf86-video-nouveau-%{version} +%patch0 -p1 %build %{__libtoolize} -- 2.44.0