Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/trunk]: xsrc/external/mit/xf86-video-ati-kms/dist initial import of xf8...



details:   https://anonhg.NetBSD.org/xsrc/rev/bb3a255f76dd
branches:  trunk
changeset: 7552:bb3a255f76dd
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Jun 19 08:19:55 2023 +0000

description:
initial import of xf86-video-ati-22.0.0

diffstat:

 external/mit/xf86-video-ati-kms/dist/ChangeLog                        |    325 +-
 external/mit/xf86-video-ati-kms/dist/Makefile.in                      |     61 +-
 external/mit/xf86-video-ati-kms/dist/README.md                        |      2 +-
 external/mit/xf86-video-ati-kms/dist/aclocal.m4                       |    272 +-
 external/mit/xf86-video-ati-kms/dist/compile                          |      6 +-
 external/mit/xf86-video-ati-kms/dist/conf/Makefile.in                 |     10 +-
 external/mit/xf86-video-ati-kms/dist/config.guess                     |   1522 +-
 external/mit/xf86-video-ati-kms/dist/config.h.in                      |     15 +-
 external/mit/xf86-video-ati-kms/dist/config.sub                       |   2910 +-
 external/mit/xf86-video-ati-kms/dist/configure                        |  14841 +++++----
 external/mit/xf86-video-ati-kms/dist/configure.ac                     |      4 +-
 external/mit/xf86-video-ati-kms/dist/depcomp                          |      2 +-
 external/mit/xf86-video-ati-kms/dist/install-sh                       |    157 +-
 external/mit/xf86-video-ati-kms/dist/ltmain.sh                        |    140 +-
 external/mit/xf86-video-ati-kms/dist/m4/libtool.m4                    |    188 +-
 external/mit/xf86-video-ati-kms/dist/m4/ltoptions.m4                  |      4 +-
 external/mit/xf86-video-ati-kms/dist/m4/ltsugar.m4                    |      2 +-
 external/mit/xf86-video-ati-kms/dist/m4/ltversion.m4                  |     13 +-
 external/mit/xf86-video-ati-kms/dist/m4/lt~obsolete.m4                |      4 +-
 external/mit/xf86-video-ati-kms/dist/man/Makefile.in                  |     10 +-
 external/mit/xf86-video-ati-kms/dist/man/radeon.man                   |      2 +-
 external/mit/xf86-video-ati-kms/dist/missing                          |      2 +-
 external/mit/xf86-video-ati-kms/dist/src/Makefile.in                  |     12 +-
 external/mit/xf86-video-ati-kms/dist/src/cayman_shader.h              |      2 +-
 external/mit/xf86-video-ati-kms/dist/src/evergreen_shader.h           |      2 +-
 external/mit/xf86-video-ati-kms/dist/src/evergreen_state.h            |      2 +-
 external/mit/xf86-video-ati-kms/dist/src/r600_shader.h                |      6 +-
 external/mit/xf86-video-ati-kms/dist/src/r600_state.h                 |      2 +-
 external/mit/xf86-video-ati-kms/dist/src/radeon_dri2.c                |      5 +-
 external/mit/xf86-video-ati-kms/dist/src/radeon_exa.c                 |      2 +-
 external/mit/xf86-video-ati-kms/dist/src/radeon_exa_render.c          |      2 +-
 external/mit/xf86-video-ati-kms/dist/src/radeon_glamor_wrappers.c     |      8 +-
 external/mit/xf86-video-ati-kms/dist/src/radeon_present.c             |      6 +
 external/mit/xf86-video-ati-kms/dist/src/radeon_textured_videofuncs.c |      4 +-
 external/mit/xf86-video-ati-kms/dist/src/simple_list.h                |     10 +-
 35 files changed, 11143 insertions(+), 9412 deletions(-)

diffs (truncated from 28997 to 300 lines):

diff -r 888075d2ccf9 -r bb3a255f76dd external/mit/xf86-video-ati-kms/dist/ChangeLog
--- a/external/mit/xf86-video-ati-kms/dist/ChangeLog    Mon Jun 19 08:02:08 2023 +0000
+++ b/external/mit/xf86-video-ati-kms/dist/ChangeLog    Mon Jun 19 08:19:55 2023 +0000
@@ -1,3 +1,220 @@
+commit 0c01893774031d8429f0a138048fda7957f15706
+Author: Matt Turner <mattst88%gmail.com@localhost>
+Date:   Tue Apr 25 14:40:08 2023 -0400
+
+    Bump version for 22.0.0 release
+    
+    Signed-off-by: Matt Turner <mattst88%gmail.com@localhost>
+
+commit 7a6a34af026f0bef8080b91baf97a729380bca01
+Author: Matthieu Herrb <matthieu.herrb%laas.fr@localhost>
+Date:   Sun Nov 14 17:38:24 2021 +0100
+
+    Don't set SourceValidate pointer to NULL
+    
+    inspired from similar code in amdgpu, fixes a crash when xrandr(1)
+    is invoqued with X server 21.1.1
+    
+    Signed-off-by: Matthieu Herrb <matthieu.herrb%laas.fr@localhost>
+
+commit 983a779b7a5b2153d995727a0ed3da09732e15d5
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sat Jul 23 18:39:20 2022 -0700
+
+    radeon_glamor_wrappers.c: Convert from ISO-8859-1 to UTF-8
+    
+    Allows Flawfinder to analyze source instead of erroring out on encoding
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit a25ca015e6b46bcf6560abe273cfb529c4bdd287
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sat Jul 23 18:35:08 2022 -0700
+
+    gitlab CI: enable gitlab's builtin static analysis
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 7b940097545ea60e5089ae67f593311f136ae271
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sat Jul 23 18:29:13 2022 -0700
+
+    gitlab CI: enable commit & merge request checks
+    
+    Uses ci-fairy from freedesktop/ci-templates
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 8fc442d6a67a35b031be7e725a0999a7e0403b4f
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sat Jan 22 09:36:23 2022 -0800
+
+    Fix spelling/wording issues
+    
+    Found by using:
+        codespell --builtin clear,rare,usage,informal,code,names
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 11d549d591c7a6f19d2b39d069e99febbd3113da
+Author: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+Date:   Sat Jan 22 09:24:46 2022 -0800
+
+    Build xz tarballs instead of bzip2
+    
+    Signed-off-by: Alan Coopersmith <alan.coopersmith%oracle.com@localhost>
+
+commit 5eba006e4129e8015b822f9e1d2f1e613e252cda
+Author: Michel Dänzer <mdaenzer%redhat.com@localhost>
+Date:   Tue Feb 2 12:45:54 2021 +0100
+
+    Only include dri.h with older versions of xserver
+    
+    Not needed anymore with current versions.
+
+commit ecced3b3c6af501c4c90265f8404b6898f3cf037
+Author: Michel Dänzer <mdaenzer%redhat.com@localhost>
+Date:   Fri Mar 26 17:16:32 2021 +0100
+
+    Add GitLab CI pipeline
+    
+    Based on xf86-video-amdgpu, but applying experience gained in the
+    meantime in other projects and taking advantage of new features
+    available with current versions of GitLab.
+
+commit 77d9ab03ca20e683be4c40ccc879e201b538f7e5
+Author: Michel Dänzer <mdaenzer%redhat.com@localhost>
+Date:   Fri Mar 26 17:37:53 2021 +0100
+
+    Guard local variable info only used with glamor
+    
+    Fixes compiler warning with glamor disabled:
+    
+    radeon_dri2.c: In function 'radeon_dri2_exchange_buffers':
+    radeon_dri2.c:732:19: error: unused variable 'info' [-Werror=unused-variable]
+         RADEONInfoPtr info = RADEONPTR(xf86ScreenToScrn(screen));
+                       ^~~~
+
+commit 3c7c84ed49564907a148ae99b03200e0be350060
+Author: Michel Dänzer <mdaenzer%redhat.com@localhost>
+Date:   Fri Mar 26 17:42:10 2021 +0100
+
+    Guard local variable priv only used with glamor
+    
+    Fixes compile errors with glamor disabled:
+    
+    ../../src/radeon_present.c: In function ‘radeon_present_check_flip’:
+    ../../src/radeon_present.c:281:21: error: invalid use of undefined type ‘struct radeon_pixmap’
+      281 |     if (priv && priv->fb_failed)
+          |                     ^~
+    ../../src/radeon_present.c:288:19: error: invalid use of undefined type ‘struct radeon_pixmap’
+      288 |  if (priv && !priv->fb_failed) {
+          |                   ^~
+    ../../src/radeon_present.c:292:10: error: invalid use of undefined type ‘struct radeon_pixmap’
+      292 |      priv->fb_failed = TRUE;
+          |          ^~
+
+commit 8da3e4561ef82bb78c9a17b8cd8bf139b9cfd680
+Author: Dave Airlie <airlied%redhat.com@localhost>
+Date:   Mon Jul 13 09:11:28 2020 +1000
+
+    ati: cleanup terminology to use primary/secondary
+    
+    The X server changed some API/ABIs here.
+    
+    Based on amdgpu patch by Michel
+
+commit 3845392426e9798c1fb2a6fc5e97bf5dfd5c443d
+Author: Niclas Zeising <zeising%daemonic.se@localhost>
+Date:   Tue Apr 14 17:01:57 2020 +0200
+
+    Fix return value check of drmIoctl()
+    
+    When the drmModeSetCursor2() call was replaced with bare drmIoctl() call in
+    92df7097, a bug was introduced.  With the use of drmModeSetCursor2(),
+    the return value from drmIoctl() (which calls ioctl()) were mangled, if
+    they were negative, they were replaced by -errno by a wrapper function
+    in xf86drMode.c in libdrm.  After replacing drmModeSetCursor2() with the
+    call to drmIoctl(), this mangling no longer happens, and we need to
+    explicitly check if the call to drmIoctl() fails, which is indicated by
+    returning -1, and then why it failed, by checking errno.
+    If the error indicated by errno is EINVAL, then we can't use the
+    DRM_IOCTL_MODE_CURSOR2 ioctl(), and need to fall back to the
+    DRM_IOCTL_MODE_CURSOR ioctl().
+    
+    This bug can manifest itself by an invisible hw cursor on systems where the
+    DRM_IOCTL_MODE_CURSOR2 is not implemented by the graphics driver.
+    
+    Credit also to Alexey Dokuchaev for help with developing the fix and
+    testing.
+    
+    This fixes #190
+    
+    Signed-off-by: Niclas Zeising <zeising%daemonic.se@localhost>
+    Reviewed-by: Michel Dänzer <mdaenzer%redhat.com@localhost>
+
+commit c0eb5dbd9c1db6b6d5b1574bcd8c584170d7ab54
+Author: Alexey Sheplyakov <asheplyakov%altlinux.org@localhost>
+Date:   Wed Nov 27 20:50:58 2019 +0400
+
+    Don't crash X server if GPU acceleration is not available
+    
+    Commit d1d8e3c8d0a0a0394d395eba171460501745209b causes X server
+    to fail on startup when GPU acceleration is not working (or is
+    disabled). The reason is that `radeon_get_pixmap_bo` function
+    gets called too early (before EXA has been initialized) and
+    fails with an assert:
+    
+     #0  __GI_raise (sig=<optimized out>) at ../sysdeps/unix/sysv/linux/raise.c:50
+     #1  0x76ab1c6c in __GI_abort () at abort.c:79
+     #2  0x76ac0b64 in __assert_fail_base (fmt=0x76bfbce4 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x7658c80c "key->initialized", file=<optimized out>, line=121,
+         function=0x7658d040 <__PRETTY_FUNCTION__.10607> "dixGetPrivateAddr") at assert.c:92
+     #3  0x76ac0c0c in __GI___assert_fail (assertion=0x7658c80c "key->initialized", file=0x7658c9d0 "../include/privates.h", line=121,
+         function=0x7658d040 <__PRETTY_FUNCTION__.10607> "dixGetPrivateAddr") at assert.c:101
+     #4  0x76579e6c in dixGetPrivateAddr (key=<optimized out>, key=<optimized out>, privates=<optimized out>) at ../include/privates.h:121
+     #5  0x7657a954 in dixGetPrivateAddr (key=<optimized out>, key=<optimized out>, privates=<optimized out>) at exa.c:70
+     #6  dixGetPrivate (key=<optimized out>, privates=<optimized out>) at ../include/privates.h:136
+     #7  exaGetPixmapDriverPrivate (pPix=<optimized out>) at exa.c:68
+     #8  0x7623d460 in radeon_get_pixmap_bo (pPix=0x71c1b8) at radeon.h:804
+     #9  radeon_get_pixmap_handle (pixmap=0x71c1b8, handle=0x7fa22328) at radeon_bo_helper.c:357
+     #10 0x76244458 in radeon_pixmap_get_fb (pix=0x71c1b8) at radeon.h:886
+     #11 drmmode_set_mode_major (crtc=0x691860, mode=0x69191c, rotation=<optimized out>, x=<optimized out>, y=<optimized out>) at drmmode_display.c:918
+     #12 0x762467e8 in drmmode_set_desired_modes (pScrn=0x67c678, drmmode=<optimized out>, set_hw=1) at drmmode_display.c:3128
+     #13 0x0047bfa4 in MapWindow (client=0x669ec8, pWin=0x7206c0) at window.c:2722
+     #14 MapWindow (pWin=0x7206c0, client=0x669ec8) at window.c:2665
+     #15 0x00449650 in dix_main (argc=3, argv=0x7fa22604, envp=<optimized out>) at main.c:247
+     #16 0x76ab2198 in __libc_start_main (main=0x42db10 <main>, argc=3, argv=0x7fa22604, init=<optimized out>, fini=0x606434 <__libc_csu_fini>, rtld_fini=0x77229930 <_dl_fini>,
+         stack_end=0x7fa225e0) at libc-start.c:308
+     #17 0x0042db80 in __start () at ../sysdeps/mips/start.S:110
+    
+    Don't call `exaGetPixmapDriverPrivate` if the acceleration (EXA) is not
+    enabled [yet] to avoid the problem.
+    
+    Closes: https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/issues/188
+    Closes: https://bugzilla.altlinux.org/show_bug.cgi?id=37539
+
+commit 4d84cf438e7f1bebf0053035ef0292e9fed257d1
+Author: Michel Dänzer <mdaenzer%redhat.com@localhost>
+Date:   Fri Nov 29 16:37:32 2019 +0100
+
+    Handle NULL fb_ptr in pixmap_get_fb
+    
+    This can happen when HW acceleration is disabled.
+    
+    Fixes https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/issues/188
+
+commit f223035f4ffcff2a9296d1e907a5193f8e8845a3
+Author: Adam Jackson <ajax%redhat.com@localhost>
+Date:   Tue Feb 4 16:38:06 2020 -0500
+
+    Fix link failure with gcc 10
+    
+    Without the 'extern' this looks like a definition not just a
+    declaration, in every file that includes the header. gcc 10 is stricter
+    about this kind of multiple definition.
+    
+    Reviewed-by: Michel Dänzer <mdaenzer%redhat.com@localhost>
+
 commit b9bd8097e1d2c088b081f1b81799ea3892406214
 Author: Michel Dänzer <mdaenzer%redhat.com@localhost>
 Date:   Tue Oct 15 17:54:12 2019 +0200
@@ -8047,7 +8264,7 @@ Date:   Fri Jun 29 15:00:44 2012 +0100
     Signed-off-by: Dave Airlie <airlied%redhat.com@localhost>
 
 commit 50689ec8dbd4a68527b2ac16cecac298b8d441d0
-Merge: 6a60fcdf0 ae682a6a1
+Merge: 6a60fcdf ae682a6a
 Author: Dave Airlie <airlied%redhat.com@localhost>
 Date:   Fri Jun 29 14:59:47 2012 +0100
 
@@ -10636,7 +10853,7 @@ Date:   Tue Jan 11 14:42:17 2011 -0500
     radeon: fix pitch align in pageflip code
 
 commit e5d0a400d08da2358fac9c2ad12042f125525736
-Merge: 0e432dff9 e27e9b4e5
+Merge: 0e432dff e27e9b4e
 Author: Alex Deucher <alexdeucher%gmail.com@localhost>
 Date:   Mon Jan 10 18:16:49 2011 -0500
 
@@ -11270,7 +11487,7 @@ Date:   Mon Oct 4 12:31:51 2010 -0400
     evergreen: port Karl's UTS/DFS changes to evergreen
 
 commit be8f45cbd313b68ad663f303c64edb4525b8f981
-Merge: e843faf35 ff5f466e6
+Merge: e843faf3 ff5f466e
 Author: Alex Deucher <alexdeucher%gmail.com@localhost>
 Date:   Mon Oct 4 12:36:56 2010 -0400
 
@@ -13497,7 +13714,7 @@ Date:   Wed Dec 2 01:36:37 2009 -0500
     The cause is that 2048 is hardcoded in RADEONQueryImageAttributes.
 
 commit efbc2c80ab02879edf3b7b3d65b16c45ddce5017
-Merge: 88a50a30d a612813c5
+Merge: 88a50a30 a612813c
 Author: Dave Airlie <airlied%redhat.com@localhost>
 Date:   Wed Dec 2 14:30:36 2009 +1000
 
@@ -14683,7 +14900,7 @@ Date:   Tue Sep 8 13:21:07 2009 +1000
     radeon: fix dri2 struct zeroing
 
 commit 6990f2ac6478bf92929a4400ef84fb2142699204
-Merge: 917f2d7cd 853f4c3d1
+Merge: 917f2d7c 853f4c3d
 Author: Dave Airlie <airlied%redhat.com@localhost>
 Date:   Tue Sep 8 11:26:32 2009 +1000
 
@@ -17434,7 +17651,7 @@ Date:   Thu Feb 26 12:10:08 2009 -0500
     R6xx/R7xx: use shadowfb if DRI is disabled
 
 commit 000756e052a291230e5c95e48b69a5aa9c4fab0e
-Merge: 22d7746bf 8373f4399
+Merge: 22d7746b 8373f439
 Author: Alex Deucher <alexdeucher%gmail.com@localhost>
 Date:   Thu Feb 26 11:44:13 2009 -0500
 
@@ -18143,7 +18360,7 @@ Date:   Fri Jan 30 07:56:14 2009 +1000
     fixes it.
 
 commit bd8021d46e9066e4cd116c03a7b7adcfe2557aff
-Merge: 4f88dd83f 20d5dd387
+Merge: 4f88dd83 20d5dd38
 Author: Alex Deucher <alexdeucher%gmail.com@localhost>
 Date:   Wed Jan 28 14:33:14 2009 -0500
 
@@ -18156,7 +18373,7 @@ Date:   Wed Jan 28 14:12:26 2009 -0500
     Move encoder specific data to encoder dev_priv
 
 commit 4f88dd83f290fb38e41256a7f1804008c0f28139
-Merge: 1c5678fc4 2ca970c7a
+Merge: 1c5678fc 2ca970c7
 Author: Alex Deucher <alexdeucher%gmail.com@localhost>
 Date:   Wed Jan 28 13:13:13 2009 -0500
 
@@ -18614,7 +18831,7 @@ Date:   Mon Dec 22 02:18:43 2008 -0500
                then use quad.
 
 commit 4d009d14c9c72f6e1bc8100ec8d9b8037ee4e514


Home | Main Index | Thread Index | Old Index