diff --git a/kscreen-rotation-fix.patch b/kscreen-rotation-fix.patch new file mode 100644 index 0000000..f8841cd --- /dev/null +++ b/kscreen-rotation-fix.patch @@ -0,0 +1,24 @@ +diff -Pdpru xf86-video-ati-19.1.0.orig/src/radeon_kms.c xf86-video-ati-19.1.0/src/radeon_kms.c +--- xf86-video-ati-19.1.0.orig/src/radeon_kms.c 2019-10-15 19:16:29.000000000 +0300 ++++ xf86-video-ati-19.1.0/src/radeon_kms.c 2022-02-03 08:50:51.890820918 +0300 +@@ -931,6 +931,11 @@ radeon_dirty_update(ScrnInfoPtr scrn) + } + } + ++static void ++radeonSourceValidate(DrawablePtr draw, int x, int y, int w, int h, ++ unsigned int subWindowMode) ++{ ++} + + Bool + radeon_scanout_do_update(xf86CrtcPtr xf86_crtc, int scanout_id, +@@ -993,7 +998,7 @@ radeon_scanout_do_update(xf86CrtcPtr xf8 + SetPicturePictFilter(src, xf86_crtc->filter, xf86_crtc->params, + xf86_crtc->nparams); + +- pScreen->SourceValidate = NULL; ++ pScreen->SourceValidate = radeonSourceValidate; + CompositePicture(PictOpSrc, + src, NULL, dst, + extents.x1, extents.y1, 0, 0, extents.x1, diff --git a/xf86-video-ati.changes b/xf86-video-ati.changes index dafbddb..5c1e0ca 100644 --- a/xf86-video-ati.changes +++ b/xf86-video-ati.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 3 06:46:11 UTC 2022 - Илья Индиго + +- Added patch kscreen-rotation-fix.patch (boo#1193145). + ------------------------------------------------------------------- Thu Oct 28 14:31:23 UTC 2021 - Stefan Dirsch @@ -682,4 +687,3 @@ Wed Apr 18 15:51:24 UTC 2012 - vuntz@opensuse.org - Split xf86-video-ati from xorg-x11-driver-video. Initial version: 6.14.3. - diff --git a/xf86-video-ati.spec b/xf86-video-ati.spec index cf58743..db78452 100644 --- a/xf86-video-ati.spec +++ b/xf86-video-ati.spec @@ -1,7 +1,7 @@ # # spec file for package xf86-video-ati # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,6 +29,7 @@ Source1: https://xorg.freedesktop.org/releases/individual/driver/%{name}- Source2: %{name}.keyring Patch0: u_fno-common.patch Patch1: U_ati-cleanup-terminology-to-use-primary-secondary.patch +Patch2: kscreen-rotation-fix.patch BuildRequires: autoconf >= 2.60 BuildRequires: automake BuildRequires: libtool @@ -67,9 +68,7 @@ or earlier class of chipset, and loads the radeon, r128, or mach64 driver as appropriate. %prep -%setup -q -%patch0 -p1 -%patch1 -p1 +%autosetup -p1 %build autoreconf -fiv