Sync from SUSE:SLFO:Main xf86-video-amdgpu revision 8430cdac6934fb7f7fb6ccd39651e571

This commit is contained in:
Adrian Schröter 2024-05-04 02:05:26 +02:00
commit 1e6e333b9c
8 changed files with 656 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

View File

@ -0,0 +1,32 @@
From: Takashi Iwai <tiwai@suse.de>
Subject: present: Check tiling for newer versions, too
Patch-mainline: Never, temporary workaround
References: bsc#1169222
This is essentially a partial revert of the commit a2b32e72fdaf
present: Don't check tiling parameters with DC & DRM minor version >= 31
that caused a crash when DPMS is changed while an external HDMI
monitor is connected on the laptop.
Note that it's a temporary workaround until the actual cause gets
fixed in the kernel DRM side.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
src/amdgpu_present.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/src/amdgpu_present.c
+++ b/src/amdgpu_present.c
@@ -305,7 +305,8 @@ amdgpu_present_check_flip(RRCrtcPtr crtc
return FALSE;
}
- if (!dc_enabled || info->dri2.pKernelDRMVersion->version_minor < 31) {
+ /* FIXME: reverted the DRM minor version check below (bsc#1169222) */
+ if (1 /*!dc_enabled || info->dri2.pKernelDRMVersion->version_minor < 31*/) {
/* The kernel driver doesn't handle flipping between BOs with
* different tiling parameters correctly
*/

93
amdgpu.ids Normal file
View File

@ -0,0 +1,93 @@
# AMDGPU PCI Ids. To enable the amdgpu driver for your device
# find the PCI ID in the list and uncomment the entry (remove the '#').
# If your device is not enabled on the list and you find it to be working,
# please let us know in:
# http://bugzilla.opensuse.org/show_bug.cgi?id=972126
#10026640
#10026641
#10026649
#10026650
#10026651
#10026658
#1002665C
#1002665D
#1002665F
#10029830
#10029831
#10029832
#10029833
#10029834
#10029835
#10029836
#10029837
#10029838
#10029839
#1002983A
#1002983B
#1002983C
#1002983D
#1002983E
#1002983F
#10021304
#10021305
#10021306
#10021307
#10021309
#1002130A
#1002130B
#1002130C
#1002130D
#1002130E
#1002130F
#10021310
#10021311
#10021312
#10021313
#10021315
#10021316
#10021317
#1002131B
#1002131C
#1002131D
#100267A0
#100267A1
#100267A2
#100267A8
#100267A9
#100267AA
#100267B0
#100267B1
#100267B8
#100267B9
#100267BA
#100267BE
#100267E0
#100267E1
#100267E9
#100267E9
#100267EB
#100267EF
#100267C0
100267DF
#10026900
#10026901
#10026902
#10026903
#10026907
#10026920
#10026921
#10026928
#10026929
#1002692B
#1002692F
#10026930
#10026938
10026939
#10029851
#10029870
#10029874
#10029875
#10029876
#10029877
#10027300
#100298E4

BIN
xf86-video-amdgpu-23.0.0.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

365
xf86-video-amdgpu.changes Normal file
View File

@ -0,0 +1,365 @@
-------------------------------------------------------------------
Sun Feb 26 18:01:09 UTC 2023 - Stefan Dirsch <sndirsch@suse.com>
- Update to version 23.0.0
* bugfix release, see also for more details here:
https://lists.x.org/archives/dri-devel/2023-February/392659.html
- supersedes U_Use-DRM_CAP_CURSOR_WIDTH-HEIGHT-if-possible.patch
-------------------------------------------------------------------
Mon Jan 23 11:12:08 UTC 2023 - Stefan Dirsch <sndirsch@suse.com>
- U_Use-DRM_CAP_CURSOR_WIDTH-HEIGHT-if-possible.patch
* There's no need to hardcode the cursor size if the kernel can
report the value it wants. Fixes invisible cursor issue on
RDNA3 cards like Navi31/RX 7900 Series cards. (boo#1207388)
-------------------------------------------------------------------
Sat May 14 20:59:19 UTC 2022 - Stefan Dirsch <sndirsch@suse.com>
- remove hardware supplements for AMD GPUs; i.e. no longer install
by default on AMD hardware; instead use "modeset" driver
-------------------------------------------------------------------
Fri May 13 22:28:42 UTC 2022 - Dirk Müller <dmueller@suse.com>
- set SUSE_ZNOW to 0
- very tarball gpg signature
-------------------------------------------------------------------
Thu Feb 24 23:21:16 UTC 2022 - Giordano Boschetti <geekosdaw@gmail.com>
- Update to version 22.0.0
* "AsyncFlipSecondaries" To Deal With Crappy Multi-Monitor Experience
* Glamor Fixes
-------------------------------------------------------------------
Sat Jul 31 08:57:12 UTC 2021 - Stefan Dirsch <sndirsch@suse.com>
- Update to version 21.0.0
* bugfixes and minor improvements
- supersedes u_fno-common.patch
-------------------------------------------------------------------
Sat Apr 17 16:45:53 UTC 2021 - Dirk Müller <dmueller@suse.com>
- modernize spec file (move license to licensedir)
-------------------------------------------------------------------
Thu May 7 12:46:02 CEST 2020 - tiwai@suse.de
- N_amdgpu-present-Check-tiling-for-newer-versions-too.patch:
* fix crash with external HDMI and DPMS change (bsc#1169222)
-------------------------------------------------------------------
Thu Jan 9 23:39:11 UTC 2020 - Stefan Dirsch <sndirsch@suse.com>
- u_fno-common.patch
* fix build with gcc's -fno-common option (boo#1160421)
-------------------------------------------------------------------
Sat Oct 12 13:39:40 UTC 2019 - Stefan Dirsch <sndirsch@suse.com>
- Update to version 19.1.0
* bugfixes and minor improvements
-------------------------------------------------------------------
Tue Jul 30 12:49:36 UTC 2019 - Stefan Dirsch <sndirsch@suse.com>
- move xorg.conf.d snippet from /etc/X11/xorg.conf.d to
/usr/share/X11/xorg.conf.d (boo#1139692)
-------------------------------------------------------------------
Fri Mar 22 13:08:07 UTC 2019 - Stefan Dirsch <sndirsch@suse.com>
- Update to version 19.0.1
* Add support for RandR output tile properties, allowing
monitors using DisplayPort Multi Stream Transport tiling
to work better out of the box.
-------------------------------------------------------------------
Thu Mar 7 10:14:37 UTC 2019 - Stefan Dirsch <sndirsch@suse.com>
- Update to version 19.0.0
* Support for FreeSync variable refresh rate (this also requires the
amdgpu driver from kernel 5.0 or newer, and radeonsi from Mesa 19.0 or
newer).
* Various TearFree related fixes and robustness improvements.
* Support for scanout buffers using DCC colour compression.
* Up to six independent instances per GPU are now supported in "Zaphod"
style multi-head configurations.
* Other improvements and fixes
-------------------------------------------------------------------
Sat Sep 15 13:53:27 UTC 2018 - sndirsch@suse.com
- Update to version 18.1.0
* This release supports xserver versions 1.13-1.20.
* When using DC as of Linux 4.17:
- Support advanced colour management functionality.
- Support gamma correction and X11 colormaps when Xorg runs at depth
30 as well.
* Support for leasing RandR outputs to clients.
* Various robustness fixes for TearFree. In particular, fixed several
cases in which disabling TearFree at runtime would result in the Xorg
process freezing or crashing.
* Fixed some m4 related build issues with older versions of autotools.
-------------------------------------------------------------------
Fri Jul 13 14:50:48 UTC 2018 - sndirsch@suse.com
- fixed damageproto BuildRequires
-------------------------------------------------------------------
Wed Apr 4 12:40:11 UTC 2018 - sndirsch@suse.com
- Update to version 18.0.1
* This release supports xserver versions 1.13-1.19. It also works
with xserver 1.20 RC1, so unless something unexpected happens,
it should work with xserver 1.20 as well.
This is a bug-fix release addressing issues in 18.0.0. While
those issues shouldn't affect most users, I recommend that all
users of 18.0.0 update to 18.0.1.
+ The Xorg process could enter an infinite loop after a server
reset (in configurations where Xorg doesn't terminate when
the last client disconnects)
+ The Xorg process could crash when multiple primary screens
are configured in xorg.conf.
+ TearFree could trigger debugging messages in the pixman
library
-------------------------------------------------------------------
Mon Mar 5 14:41:29 UTC 2018 - sndirsch@suse.com
- Update to version 18.0.0
"I'm pleased to announce the 18.0.0 release of xf86-video-amdgpu, the
Xorg driver for AMD Radeon GPUs supported by the amdgpu kernel driver.
This release supports xserver versions 1.13-1.19. It also works with
xserver 1.20 RC1, so unless something unexpected happens, it should work
with xserver 1.20 as well.
Highlights:
* New year-based versioning scheme
* Page flipping can now be used even when the HW cursor can't be used in
some cases
* Support for 30-bit RGB colour output. Note that gamma correction is
currently not available with 30-bit colour. Also, hardware
acceleration is not available with 30-bit colour with xserver versions
before 1.20.
Plus other improvements and fixes. Thanks to everybody who contributed
to this release in any way!
-------------------------------------------------------------------
Tue Dec 12 13:44:43 UTC 2017 - msrb@suse.com
- Remove build dependency on Mesa-devel. The only part of it needed
is libgbm-devel and that is already BuildRequired by
'pkgconfig(gbm)'. Added explicit damageproto-devel dependency
which was before pulled in by Mesa-devel. Mesa-devel is too
general and is a bottleneck in distribution build. (bnc#1071297)
-------------------------------------------------------------------
Fri Sep 8 08:57:42 UTC 2017 - sndirsch@suse.com
- Update to version 1.4.0
* Clients can now use DRI page flipping even while TearFree is enabled
for any CRTC. This should improve performance of such clients
(including compositing managers) while TearFree is enabled, and avoid
other issues such as tearing on other CRTCs where TearFree isn't
enabled.
* The driver now takes measures to prevent other DRM master processes
(potentially from other local users) from accessing buffers created by
this driver while switched away to a different VT. Other DRM master
processes should only be able to access a single buffer anymore, which
contains only all-black pixels.
* The gamma ramp is now applied to the HW cursor as well, so the HW
cursor doesn't look odd when e.g. using Redshift or similar tools.
* Plus other improvements and fixes. Thanks to everybody who contributed
to this release in any way!
-------------------------------------------------------------------
Tue Apr 18 09:19:27 UTC 2017 - sndirsch@suse.com
- exclude build on s390/s390x (bsc#1034602)
-------------------------------------------------------------------
Thu Apr 13 10:11:02 UTC 2017 - sndirsch@suse.com
- SLE merge (missing fate entries)
* fate #320388 (added driver itself)
* fate #315643-315645, 319159-319161, 319618 (updates driver
to release 1.0.0, we're on 1.3.0 meanwhile)
-------------------------------------------------------------------
Thu Mar 16 11:57:28 UTC 2017 - mpluskal@suse.com
- Update to version 1.3.0:
* Allow TearFree to be toggled at runtime via an RandR output
property "TearFree". The xorg.conf option "TearFree" now
controls the default value of the output properties.
* Use libdrm_amdgpu functionality to determine the GPU marketing
name, remove corresponding tables from this driver.
* Use DRM render nodes for DRI3 clients when available.
* Plus many other improvements and fixes.
- Make building more verbose
-------------------------------------------------------------------
Wed Feb 22 01:54:59 UTC 2017 - sndirsch@suse.com
- specfile: added pci_ids_dir to filelist
-------------------------------------------------------------------
Fri Feb 3 11:05:07 UTC 2017 - sndirsch@suse.com
- make the driver default for Tumbleweed (upcoming Leap 42.3,
sle13, ...), if "amdgpu" is the kernel driver of the device;
still use device list specified in amdgpu.ids for older
distributions like Leap 42.2, sle12, ...
-------------------------------------------------------------------
Mon Jan 30 11:30:56 UTC 2017 - sndirsch@suse.com
- amdgpu.ids: enabled 100267DF (bnc #972126, comment #11)
-------------------------------------------------------------------
Mon Jan 16 13:04:21 UTC 2017 - sndirsch@suse.com
- introduced hardware supplements (bnc#1020075)
-------------------------------------------------------------------
Sat Nov 19 11:03:20 UTC 2016 - mimi.vx@gmail.com
- update to 1.2.0
* Use pAMDGPUEnt to find both screens of a GPU in amdgpu_mode_hotplug
* Refactor amdgpu_mode_hotplug
* Check Xorg version at runtime instead of build time in two places
* Require xserver 1.10 or newer
* present: Check tiling info for flips
* Consume all available udev events at once
* PRIME: Fix swapping of provider sink / source capabilities
* Always call PixmapStopDirtyTracking in drmmode_set_scanout_pixmap
* Don't rely on randr_crtc->scanout_pixmap in drmmode_set_scanout_pixmap
* Sayōnara, AM_MAINTAINER_MODE!
* Order unique chipsets according to first appearance in ati_pciids.csv
* Enable HW cursor support with PRIME slave output & Xorg > 1.18.99.901
* Rotate and reflect cursor hotspot position for drmModeSetCursor2
* Add support for ScreenPtr::SyncSharedPixmap
* Untangle HAS_XORG_CONF_DIR / --with-xorg-conf-dir lines in configure.ac
-------------------------------------------------------------------
Mon Sep 19 13:56:06 UTC 2016 - tobias.johannes.klausmann@mni.thm.de
- Update to version 1.1.2:
The only change in this release is a fix for issues with the configure option
--with-xorg-conf-dir which slipped into the 1.1.1 release.
- Packaging changes:
+ Check the signature for the driver release, as other drivers already do.
-------------------------------------------------------------------
Thu Sep 15 21:46:51 UTC 2016 - malcolmlewis@opensuse.org
- Update to version 1.1.1:
+ Use --with-xorg-conf-dir=$prefix/share/X11/xorg.conf.d by
default.
+ Fix cursor size for SI.
+ Add SI PCI IDs.
+ Add missing Kaveri PCI ID (1318).
+ Add Mullins PCI IDs (fdo#97472).
+ DRI2: Fix amdgpu_dri2_exchange_buffers width/height
copy'n'paste error.
+ DRI2: Add interpolated_vblanks in amdgpu_dri2_get_crtc_msc.
+ Only use RandR APIs if RandR is enabled (deb#827984).
+ Destroy all dedicated scanout buffers during CloseScreen.
+ glamor: Reallocate linear pixmap BO if necessary for DRI2
PRIME.
+ Move DRI2's local fixup_glamor helper to
amdgpu_glamor_set_pixmap_bo v2 so it can be used outside of the
DRI2 code.
+ Consolidate get_drawable_pixmap helper.
+ Add amdgpu_pixmap_get_tiling_info.
+ Remove amdgpu_share_pixmap_backing.
+ glamor: Fix amdgpu_glamor_share_pixmap_backing for priv->bo ==
NULL.
+ Add missing Bonaire PCI ID.
+ Add more Polaris 10 and 11 PCI IDs.
+ Fix amdgpu_mode_hotplug crash on multi GPU platform.
+ Handle Zaphod mode correctly in amdgpu_mode_hotplug
(fdo#93415).
+ Add Strato PCI ID.
+ Remove RR_Capability_SinkOutput for GPU without CRTC.
- Set amdgpu.ids as a config file to fix rpmlint warning.
-------------------------------------------------------------------
Fri Apr 8 13:12:22 UTC 2016 - sndirsch@suse.com
- amdgpu.ids: added new PCI IDs supported by driver release 1.1.0
-------------------------------------------------------------------
Thu Apr 7 19:07:08 UTC 2016 - mimi.vx@gmail.com
- update to 1.1.0
* Support for the upcoming Polaris family of GPUs.
* Option "TearFree" can now prevent tearing with rotation/reflection as
well (with Xorg >= 1.16).
* RandR CRTC transforms now work correctly (but for now still exhibit
tearing even with TearFree).
* The RandR 1.4 provider name is now no longer hardcoded to "amdgpu"
but constructed from the GPU chipset name and bus ID, allowing
several GPUs supported by this driver to be distinguished by name.
* The RandR primary output is now always explicitly marked as such.
* The driver can prevent clients trying to use the DRI3 extension over a
display connection forwarded via SSH from hanging.
* VDPAU/OpenGL interoperation can now work with DRI3 enabled.
* Many more fixes for issues using the DRI3/Present extensions.
* Plus many other small improvements and fixes. Thanks to everybody who
contributed to this release in any way!*
-------------------------------------------------------------------
Tue Mar 22 12:48:37 UTC 2016 - eich@suse.com
- Add amdgpu.ids which lists all supported PCI Id for server
(boo#972126).
-------------------------------------------------------------------
Tue Feb 23 18:19:10 UTC 2016 - mimi.vx@gmail.com
- update to 1.0.1
* sync: Check if miSyncShmScreenInit symbol is resolved at runtime
* Only map front buffer if glamor acceleration is disabled (v2)
* Don't advertise any PRIME offloading capabilities without acceleration
* Load fb module before glamoregl/shadow modules
* HAS_DIRTYTRACKING_ROTATION also supports multiple CRTCs
* Check for NULL koutput in drmmode_output_dpms
-------------------------------------------------------------------
Fri Nov 20 09:02:22 UTC 2015 - sndirsch@suse.com
- update to release 1.0.0
This is the initial release of the xf86-video-amdgpu driver.
It was forked from the xf86-video-ati radeon driver and modified to
support the amdgpu kernel driver via libdrm_amdgpu, and by extension
the latest AMD GPU families Tonga, Carrizo, Iceland, Fiji and Stoney.
Some functionality was removed because it's not relevant for the GPUs
supported by the amdgpu kernel driver, but other than that the two
drivers are more or less on par with respect to functionality and bug
fixes.
Thanks to everybody who contributed to this release!
- get rid of _service file (no longer needed with official release
now being available)
-------------------------------------------------------------------
Fri Nov 13 13:39:24 UTC 2015 - olaf@aepfle.de
- Use human readable timestamp %cd instead of %ct in _service file
-------------------------------------------------------------------
Tue Nov 10 10:14:04 UTC 2015 - mimi.vx@gmail.com
- update to 0.0.01~git.1446607417.92e7c93
* last upstream version -
http://cgit.freedesktop.org/xorg/driver/xf86-video-amdgpu/log/
-------------------------------------------------------------------
Sat Oct 24 18:03:36 UTC 2015 - mimi.vx@gmail.com
- initial commit

41
xf86-video-amdgpu.keyring Normal file
View File

@ -0,0 +1,41 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQGNBGIVDH0BDACcMpCMgnhnyCkKzcgczDbPzV54D5X76jsSwCDrG2vA6eqab3Bs
wUXbLIPIyD4e4ZbDFrgG6CcdRrv4km9hU6pnkvuVV6GzxoN9AJLXBNf/3jwkqwa/
OacFk1dI21x+bJT4rLtLHEF/a33ZZyZQPc4mxNmp/fodI7WKXN9I+org7TNStHFD
ogCdi1n0CLgv1XlrjD2pqPMWaL/RWM/xNatOPx61JlrOKV32C1VXWXBeDX1I/LZ2
zBbJwtOnonv6yvO/IXZgR6xAj3tE0JjrIhKVLoXndVvlEOMYrza6JBvWUgCCC3Lj
+1WBW8RBwS0axLAof2UpFOdc3FOP5o3K3Ejm8vqnrSloADWg1Six5OQ1EKW4eyJQ
NGUPi4DL4LF5B0h8lDRkz87chdo2LVmHEs5zoYhTvcRlwhoqA0HKQaZkpcPXOm+G
EkL+E6RKz78OGKMYDkC4NF+x229dyFatuddiqBcd8nu5eARIzuv31j9EU9ciNpef
SIB/RaGoAZAYv20AEQEAAbQxU2hhc2hhbmsgU2hhcm1hIDxjb250YWN0c2hhc2hh
bmtzaGFybWFAZ21haWwuY29tPokB1AQTAQoAPhYhBPERHkqvmEyXY3lf/ksltRgF
IrjZBQJiFQx9AhsDBQkDwmcABQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAAAoJEEsl
tRgFIrjZQ4IL/3Gi1Axp6PQlJxh5GKsCobd12sABYssR5fuF7MY5XLqpVQMSn+mp
6TgABdslsyS73me1SNWYUN8H7bpbQrI4jxZ9ZWFjbv/rdcwYho4uH3S0ccf1dhdL
tTHZjS8rFx0gKpoCl/FDrOWdsxjBHqrFmZLc97nU85gEr2+SsjLWpy++FG3zOv2V
MswuSk3nQKvF23yHOhA4MzJHi5247zrz23VCu3MtZuLGoPQlCQnh56lK23zHa8kP
o5SP4LhgcW1geScAEPSqpzH3Aq3sXfelvobg5jf6qe1UKnU6T3bkSvTeqiU6L5nZ
EWbWFqevNtZ9HvrQlk2zUR4cJ45PTmfpeau5bIiwu3vl4FJNd7vVdlXvCLbZUfnl
1/ogz5L5Lu5y4cLRjtyBVN+aTjTP1ZUB23Lh65jw0ZT66qoHRGp7vpDsBe1nAkqn
tzP1xzuEMAl5CcEeMh4rkvvSaUwd1zrwO1xvGW+h6yPmgi460TkVTUNJQ9IwJx4k
iWj9gboz5mcr3LkBjQRiFQx9AQwAwelFh6bM813T34zbtBksH9AhszWLyVXwGrIj
CAxpJr899Rbu9ySJjogxWrj8YqhDIvzH7HHXlhQw99DDixP0q5JUC/3wZyMPTN84
k/TIkTZ9tR2FwgmcS1FnhlNC1xGZ3Mw3Ec3LdQKniRatvDu2+4ASesWbpoHmT55E
8gn/ibBD8bHFAE4ksz6eL+4IOah6QYkCKL3V/cJzrV5PIXTHsp0FXNOQz4CjZDFd
U5Nv7vrsWw4wy9X5igjiREOX3jdDaayKfMJWkC0sf4+FP/e9pey2kT+qwH7k2tZg
FYRiTKYcv/maPE/kSUMjZIuXKMAkvIFVa+LOCST6L5MqKSoyq3jW9EDBBX97i75L
FJRkdooERSpYYtQJVQq10yAHldjQ+vdMD0zFEc7+zI93RxXKlLEM7Jisf8dOHtt8
xPM/rwyBK+FhM+jJWovdTqulpG95phIJDRV4rBpeyHRYsf0cgk8IFbGxvbxzs04O
NKzonx7SctvBcL7VwWtj+UUuXQ47ABEBAAGJAbwEGAEKACYWIQTxER5Kr5hMl2N5
X/5LJbUYBSK42QUCYhUMfQIbDAUJA8JnAAAKCRBLJbUYBSK42YvAC/9yH9mdy2Fk
kAsUgpTraP68kqjZHP76k6C0Z4vCFNDWvkQ2dV7EoR1aXQIDbQwxcWb9xKtVoabZ
NrH3uC+qaT4A7cLS00rixkw7n981uKCh6FVEhDpf0jG6uEHdywpMRXkKRDafMceB
ABZ53WwoxCsAsvh/Z0ND07Vy4yzdN4tIdpMaR1SdCOJP1KWyZnbCH0eN7XgLepQg
iO8ffkKYH9Q3XLfRbu18PtjZFR7I8FefyeBiSksWYdXtFo02M6oeiXDz9eXCxCWx
KOTNsq/Ay7W+2fqegota76H5Xtxbf0sXS8A6Wx39gSGLja+rFN1MKAd8hFodaEy/
MPV/+XAUrdsNycCMPg3B2Vuwu7a3gcGRjpU9jc2DslGZKZqec2ntO38KVWqkWxe5
RdMGOrE8SyZ25iBc/jTnqFE3AR9q31qihote0RaP6PUFkwl2cTxvP9jWKw3GnWS6
APl5bFFq/5+997ZkQUwQYi1CTu+gx1OjGy64h1NnTpgFOt0ZJGuEG9Q=
=16SP
-----END PGP PUBLIC KEY BLOCK-----

99
xf86-video-amdgpu.spec Normal file
View File

@ -0,0 +1,99 @@
#
# spec file for package xf86-video-amdgpu
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
#
%if 0%{?suse_version} < 1330
%define pci_ids_dir %{_sysconfdir}/X11/xorg_pci_ids
%endif
Name: xf86-video-amdgpu
Version: 23.0.0
Release: 0
Summary: AMDGPU video driver for the Xorg X server
License: MIT
Group: System/X11/Servers/XF86_4
URL: https://xorg.freedesktop.org/
Source: https://xorg.freedesktop.org/releases/individual/driver/%{name}-%{version}.tar.xz
Source1: https://xorg.freedesktop.org/releases/individual/driver/%{name}-%{version}.tar.xz.sig
Source2: %{name}.keyring
Source3: amdgpu.ids
Patch1: N_amdgpu-present-Check-tiling-for-newer-versions-too.patch
BuildRequires: autoconf >= 2.6.0
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: pkgconfig(damageproto)
BuildRequires: pkgconfig(fontsproto)
BuildRequires: pkgconfig(gbm)
BuildRequires: pkgconfig(libdrm) >= 2.4.58
BuildRequires: pkgconfig(libdrm_amdgpu)
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(pciaccess) >= 0.8.0
BuildRequires: pkgconfig(randrproto)
BuildRequires: pkgconfig(renderproto)
BuildRequires: pkgconfig(videoproto)
BuildRequires: pkgconfig(xextproto)
BuildRequires: pkgconfig(xf86driproto)
BuildRequires: pkgconfig(xorg-macros) >= 1.8
BuildRequires: pkgconfig(xorg-server) >= 1.16
BuildRequires: pkgconfig(xproto)
# This was part of the xorg-x11-driver-video package up to version 7.6
Conflicts: xorg-x11-driver-video <= 7.6
ExcludeArch: s390 s390x
%{x11_abi_videodrv_req}
%description
amdgpu is an Xorg driver for AMD video cards.
Its autodetects whether your hardware has a CI or newer AMD Graphics Card
%prep
%setup -q
%patch1 -p1
%build
# We have some -z now related errors during X default startup (boo#1197994):
# this is directly visible on startup, so easy to test later on.
export SUSE_ZNOW=0
autoreconf -fiv
%configure
%make_build
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%if 0%{?pci_ids_dir:1}
rm -f %{buildroot}%{_datadir}/X11/xorg.conf.d/10-amdgpu.conf
mkdir -p %{buildroot}%{pci_ids_dir}
cp %{SOURCE3} %{buildroot}%{pci_ids_dir}/
%endif
%files
%license COPYING
%doc README.md
%dir %{_libdir}/xorg/modules/drivers
%{_libdir}/xorg/modules/drivers/amdgpu_drv.so
%{_mandir}/man4/amdgpu.4%{?ext_man}
%if 0%{?pci_ids_dir:1}
%dir %{pci_ids_dir}
%{pci_ids_dir}/amdgpu.ids
%else
%dir %{_datadir}/X11/xorg.conf.d
%{_datadir}/X11/xorg.conf.d/10-amdgpu.conf
%endif
%changelog