Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/xsrc/rev/9b541ba7f893
branches:  xorg
changeset: 10040:9b541ba7f893
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Dec 30 07:33:48 2018 +0000

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

diffstat:

 external/mit/xf86-video-ati-kms/dist/ChangeLog                           |  789 ++++++++++
 external/mit/xf86-video-ati-kms/dist/Makefile.in                         |   19 +-
 external/mit/xf86-video-ati-kms/dist/aclocal.m4                          |  189 +-
 external/mit/xf86-video-ati-kms/dist/compile                             |   13 +-
 external/mit/xf86-video-ati-kms/dist/conf/Makefile.in                    |   17 +-
 external/mit/xf86-video-ati-kms/dist/config.h.in                         |    3 +
 external/mit/xf86-video-ati-kms/dist/configure                           |  439 ++++-
 external/mit/xf86-video-ati-kms/dist/configure.ac                        |   16 +-
 external/mit/xf86-video-ati-kms/dist/depcomp                             |    8 +-
 external/mit/xf86-video-ati-kms/dist/install-sh                          |   36 +-
 external/mit/xf86-video-ati-kms/dist/man/Makefile.in                     |   17 +-
 external/mit/xf86-video-ati-kms/dist/missing                             |   16 +-
 external/mit/xf86-video-ati-kms/dist/src/Makefile.am                     |    4 +-
 external/mit/xf86-video-ati-kms/dist/src/Makefile.in                     |  177 +-
 external/mit/xf86-video-ati-kms/dist/src/ati.c                           |    4 +-
 external/mit/xf86-video-ati-kms/dist/src/drmmode_display.c               |  733 +++++---
 external/mit/xf86-video-ati-kms/dist/src/drmmode_display.h               |   29 +-
 external/mit/xf86-video-ati-kms/dist/src/evergreen_exa.c                 |   51 +-
 external/mit/xf86-video-ati-kms/dist/src/evergreen_state.h               |    2 -
 external/mit/xf86-video-ati-kms/dist/src/evergreen_textured_videofuncs.c |    2 +-
 external/mit/xf86-video-ati-kms/dist/src/r600_exa.c                      |   51 +-
 external/mit/xf86-video-ati-kms/dist/src/r600_state.h                    |    2 -
 external/mit/xf86-video-ati-kms/dist/src/r600_textured_videofuncs.c      |    2 +-
 external/mit/xf86-video-ati-kms/dist/src/radeon.h                        |   74 +-
 external/mit/xf86-video-ati-kms/dist/src/radeon_bo_helper.c              |  405 +++-
 external/mit/xf86-video-ati-kms/dist/src/radeon_bo_helper.h              |   55 +-
 external/mit/xf86-video-ati-kms/dist/src/radeon_dri2.c                   |  133 +-
 external/mit/xf86-video-ati-kms/dist/src/radeon_dri3.c                   |   18 +-
 external/mit/xf86-video-ati-kms/dist/src/radeon_drm_queue.c              |  169 +-
 external/mit/xf86-video-ati-kms/dist/src/radeon_drm_queue.h              |    8 +-
 external/mit/xf86-video-ati-kms/dist/src/radeon_exa.c                    |   51 +-
 external/mit/xf86-video-ati-kms/dist/src/radeon_exa_funcs.c              |   52 +-
 external/mit/xf86-video-ati-kms/dist/src/radeon_exa_render.c             |    6 +-
 external/mit/xf86-video-ati-kms/dist/src/radeon_exa_shared.c             |    2 +-
 external/mit/xf86-video-ati-kms/dist/src/radeon_exa_shared.h             |    3 +-
 external/mit/xf86-video-ati-kms/dist/src/radeon_glamor.c                 |   70 +-
 external/mit/xf86-video-ati-kms/dist/src/radeon_glamor.h                 |   28 +-
 external/mit/xf86-video-ati-kms/dist/src/radeon_glamor_wrappers.c        |   31 +-
 external/mit/xf86-video-ati-kms/dist/src/radeon_kms.c                    |  300 +--
 external/mit/xf86-video-ati-kms/dist/src/radeon_present.c                |   40 +-
 external/mit/xf86-video-ati-kms/dist/src/radeon_probe.c                  |    2 +-
 external/mit/xf86-video-ati-kms/dist/src/radeon_textured_video.c         |   10 +-
 external/mit/xf86-video-ati-kms/dist/src/radeon_textured_videofuncs.c    |   24 +-
 external/mit/xf86-video-ati-kms/dist/src/radeon_video.c                  |    6 +-
 44 files changed, 2789 insertions(+), 1317 deletions(-)

diffs (truncated from 7294 to 300 lines):

diff -r b7009e00a65b -r 9b541ba7f893 external/mit/xf86-video-ati-kms/dist/ChangeLog
--- a/external/mit/xf86-video-ati-kms/dist/ChangeLog    Sun Dec 30 06:05:30 2018 +0000
+++ b/external/mit/xf86-video-ati-kms/dist/ChangeLog    Sun Dec 30 07:33:48 2018 +0000
@@ -1,3 +1,792 @@
+commit 80514b7b1b88f46f3965ff023035dea83b57e652
+Author: Michel Dänzer <michel.daenzer%amd.com@localhost>
+Date:   Fri Sep 14 17:48:49 2018 +0200
+
+    Bump version for 18.1.0 release
+
+commit 2d58830c3feafc54dccc0b7bf761a466437d4a09
+Author: Michel Dänzer <michel.daenzer%amd.com@localhost>
+Date:   Wed Sep 5 18:23:29 2018 +0200
+
+    Fix uninitialized use of local variable pitch in radeon_setup_kernel_mem
+    
+    Fixes server reset.
+    
+    Pointed out by clang:
+    
+    ../../src/radeon_kms.c:2721:9: warning: variable 'pitch' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
+        if (!info->front_buffer) {
+            ^~~~~~~~~~~~~~~~~~~
+    ../../src/radeon_kms.c:2765:27: note: uninitialized use occurs here
+        pScrn->displayWidth = pitch / cpp;
+                              ^~~~~
+
+commit 5d5d883496842da84d9418e91cb13454751da625
+Author: Michel Dänzer <michel.daenzer%amd.com@localhost>
+Date:   Fri Sep 7 18:16:22 2018 +0200
+
+    Bail early from drm_wait_pending_flip if there's no pending flip
+    
+    No need to process any events in that case.
+    
+    (Ported from amdgpu commit ca5eb9894fff153c0a1df7bdc4a4745713309e27)
+
+commit 4c7d5e50a5e469a541bc463cecb505fe850c0824
+Author: Michel Dänzer <michel.daenzer%amd.com@localhost>
+Date:   Wed Sep 5 11:29:43 2018 +0200
+
+    Don't use xorg_list_for_each_entry_safe for signalled flips
+    
+    drm_wait_pending_flip can get called from drm_handle_event, in which
+    case xorg_list_for_each_entry_safe can end up processing the same entry
+    in both. To avoid this, just process the first list entry until the list
+    is empty.
+    
+    (Ported from amdgpu commit 26770be44b89b83bf39c28f2fe284c8cb92ed0c0)
+
+commit 87b9a3e516d19dd1b89a64f6cac990fae53fc1b3
+Author: Michel Dänzer <michel.daenzer%amd.com@localhost>
+Date:   Wed Sep 5 11:27:25 2018 +0200
+
+    Always delete entry from list in drm_queue_handler
+    
+    We left entries without a handler hook in the list, so the list could
+    keep taking longer to process and use up more memory.
+    
+    (Ported from amdgpu commit 7eea3e2cd74eed22e982319144e18ae5b1087b78)
+
+commit de88ea2755611bdcb18d91d8234d2ab5be8ff2e9
+Author: Michel Dänzer <michel.daenzer%amd.com@localhost>
+Date:   Fri Aug 24 11:00:16 2018 +0200
+
+    glamor: Handle ihandle == -1 in radeon_glamor_set_shared_pixmap_backing
+
+commit 84bde2df5b453f8aab35aa18b0cf1f20b8d20488
+Author: Michel Dänzer <michel.daenzer%amd.com@localhost>
+Date:   Fri Aug 24 10:58:51 2018 +0200
+
+    EXA: Handle ihandle == -1 in RADEONEXASharePixmapBacking
+
+commit 1799680f7bd84e0618f34f4c7486799521ddaf83
+Author: Michel Dänzer <michel.daenzer%amd.com@localhost>
+Date:   Fri Aug 24 10:56:58 2018 +0200
+
+    Handle ihandle == -1 in radeon_set_shared_pixmap_backing
+    
+    It means to stop using the shared pixmap backing.
+    
+    Fixes crash when changing PRIME slave output configuration.
+
+commit 3c42bd04800211f64a17640c7ce7c4111ffd4978
+Author: Michel Dänzer <michel.daenzer%amd.com@localhost>
+Date:   Fri Aug 24 10:55:49 2018 +0200
+
+    EXA: Handle NULL BO pointer in radeon_set_pixmap_bo
+
+commit cba8fe4d64819aaa8ba516aa68dbe6d2aa153046
+Author: Michel Dänzer <michel.daenzer%amd.com@localhost>
+Date:   Thu Aug 23 18:59:18 2018 +0200
+
+    Use AC_CONFIG_MACRO_DIR instead of AC_CONFIG_MACRO_DIRS
+    
+    Older versions of autoconf only supported the former.
+    
+    Acked-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
+commit 7b01c10137aba24c8f61dd9b2a19ea257ad24371
+Author: Michel Dänzer <michel.daenzer%amd.com@localhost>
+Date:   Thu Aug 23 18:42:28 2018 +0200
+
+    Add m4 directory
+    
+    Although normally it only warns about it, under some circumstances,
+    aclocal can error out if this directory doesn't exist.
+    
+    Reported-by: John Lumby <johnlumby%hotmail.com@localhost>
+    Acked-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
+commit 60cd28bbbe4f9db391b4f27c5ff9289d5c2bef40
+Author: Michel Dänzer <michel.daenzer%amd.com@localhost>
+Date:   Thu Aug 16 18:06:31 2018 +0200
+
+    Remove drmmode_crtc_private_rec::present_vblank_* related code
+    
+    Not needed anymore with the more robust mechanisms for preventing nested
+    drmHandleEvent calls introduced in the previous changes.
+    
+    (Ported from amdgpu commit 85cd8eef0cbed7b409b07f58d76dacd34aa3ddea)
+    Acked-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
+commit c42f6e2e61d166c8d3ef3fcad175d7050a00288b
+Author: Michel Dänzer <michel.daenzer%amd.com@localhost>
+Date:   Fri Jul 20 16:56:22 2018 +0200
+
+    Defer vblank event handling while waiting for a pending flip
+    
+    This is to avoid submitting more flips while we are waiting for pending
+    ones to complete.
+    
+    (Ported from amdgpu commit e52872da69ecc84dafb3355839e35b0383f0d228)
+    Acked-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
+commit ba83a866af5a3784fc4822614375cc081e93197c
+Author: Michel Dänzer <michel.daenzer%amd.com@localhost>
+Date:   Thu Aug 16 17:44:45 2018 +0200
+
+    Add radeon_drm_handle_event wrapper for drmHandleEvent
+    
+    Instead of processing DRM events directly from drmHandleEvent's
+    callbacks, there are three phases:
+    
+    1. drmHandleEvent is called, and signalled events are re-queued to
+       _signalled lists from its callbacks.
+    2. Signalled page flip completion events are processed.
+    3. Signalled vblank events are processed.
+    
+    This should make sure that we never call drmHandleEvent from one of its
+    callbacks, which would usually result in blocking forever.
+    
+    (Ported from amdgpu commit 739181c8d3334ff14b5a607895dfdeb29b0d9020)
+    Acked-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
+commit 93621e408c17dd9e082236c17f051c06558d7f4d
+Author: Michel Dänzer <michel.daenzer%amd.com@localhost>
+Date:   Thu Aug 16 17:27:06 2018 +0200
+
+    Add radeon_drm_wait_pending_flip function
+    
+    Replacing the drmmode_crtc_wait_pending_event macro.
+    
+    (Ported from amdgpu commit 6029794e8a35417faf825491a89b85f713c77fc1)
+    Acked-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
+commit ecdf0b7ec9378bc386ce8276f16fb16d09f72812
+Author: Michel Dänzer <michel.daenzer%amd.com@localhost>
+Date:   Thu Aug 16 17:14:42 2018 +0200
+
+    Move DRM event queue related initialization to radeon_drm_queue_init
+    
+    And make radeon_drm_queue_handler not directly accessible outside of
+    radeon_drm_queue.c.
+    
+    (Ported from amdgpu commit 0148283984c77f7a6e97026edc3093497547e0a4)
+    Acked-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
+commit 824189b3da9edc33e1a4f5c6130a043da73c1a4c
+Author: Michel Dänzer <michel.daenzer%amd.com@localhost>
+Date:   Thu Aug 16 18:22:27 2018 +0200
+
+    Use correct FB handle in radeon_do_pageflip
+    
+    We were always using the handle of the client provided FB, which
+    prevented RandR transforms from working, and could result in a black
+    screen.
+    
+    Bugzilla: https://bugs.freedesktop.org/107519
+    Fixes: 740f0850f1e4 "Store FB for each CRTC in drmmode_flipdata_rec"
+    (Ported from amdgpu commit f6cd72e64e85896b6d155bee0930e59771dcb701)
+    Reviewed-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
+commit 740f0850f1e40403c8dd727e074eae36caeb1f63
+Author: Michel Dänzer <michel.daenzer%amd.com@localhost>
+Date:   Thu Aug 2 18:49:48 2018 +0200
+
+    Store FB for each CRTC in drmmode_flipdata_rec
+    
+    We were only storing the FB provided by the client, but on CRTCs with
+    TearFree enabled, we use a separate FB. This could cause
+    drmmode_flip_handler to fail to clear drmmode_crtc->flip_pending, which
+    could result in a hang when waiting for the pending flip to complete. We
+    were trying to avoid that by always clearing drmmode_crtc->flip_pending
+    when TearFree is enabled, but that wasn't reliable, because
+    drmmode_crtc->tear_free can already be FALSE at this point when
+    disabling TearFree.
+    
+    Now that we're keeping track of each CRTC's flip FB separately,
+    drmmode_flip_handler can reliably clear flip_pending, and we no longer
+    need the TearFree hack.
+    
+    (Ported from amdgpu commit 9b6782c821e0bdc53336d98f87ddde752faf7902)
+    Reviewed-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
+commit ef2a6b818fa47ad571bb0bc105aa8193d51a2190
+Author: Michel Dänzer <michel.daenzer%amd.com@localhost>
+Date:   Thu Aug 2 18:48:04 2018 +0200
+
+    glamor: Set RADEON_CREATE_PIXMAP_DRI2 for DRI3 pixmaps
+    
+    Not doing this resulted in falling back to software for DRI3 client
+    presentation operations with ShadowPrimary.
+    
+    (Ported from amdgpu commit 2989d40ef74d9966e8e8df2ef7727b2cc48d4960)
+    Reviewed-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
+commit db28d35ce9fd07a2a4703f3df0633d4c8291ff9b
+Author: Michel Dänzer <michel.daenzer%amd.com@localhost>
+Date:   Fri Jul 27 11:30:57 2018 +0200
+
+    glamor: Use glamor_egl_create_textured_pixmap_from_gbm_bo when possible
+    
+    Inspired by the modesetting driver.
+    
+    Fixes screen pixmap corruption with Xorg < 1.20, and as a bonus,
+    simplifies the code slightly.
+    
+    Bugzilla: https://bugs.freedesktop.org/107385
+    Reviewed-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
+commit 7de4ea15880565c6536ed6859fd32ec89ce0b4c0
+Author: Michel Dänzer <michel.daenzer%amd.com@localhost>
+Date:   Fri Jul 27 09:13:12 2018 +0200
+
+    Bump version to 18.0.99
+    
+    Forgot to do this after the 18.0.1 release.
+
+commit fed411290b696ecf9f0e799ec4bad054e4a95017
+Author: Michel Dänzer <michel.daenzer%amd.com@localhost>
+Date:   Tue Jul 24 17:28:46 2018 +0200
+
+    Use strcpy for RandR output property names
+    
+    Instead of strncpy with the string length. Avoids new warnings with GCC
+    8:
+    
+    ../../src/drmmode_display.c: In function â??drmmode_output_create_resourcesâ??:
+    ../../src/drmmode_display.c:2240:2: warning: â??strncpyâ?? output truncated before terminating nul copying 8 bytes from a string of the same length [-Wstringop-truncation]
+      strncpy(tearfree_prop->name, "TearFree", 8);
+      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+    ../../src/drmmode_display.c:2244:2: warning: â??strncpyâ?? output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation]
+      strncpy(tearfree_prop->enums[0].name, "off", 3);
+      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+    ../../src/drmmode_display.c:2245:2: warning: â??strncpyâ?? output truncated before terminating nul copying 2 bytes from a string of the same length [-Wstringop-truncation]
+      strncpy(tearfree_prop->enums[1].name, "on", 2);
+      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+    ../../src/drmmode_display.c:2247:2: warning: â??strncpyâ?? output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
+      strncpy(tearfree_prop->enums[2].name, "auto", 4);
+      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+    
+    (Ported from amdgpu commit f3b2ed37d683f8616a0a31ff63133ddb8fe1a4a3)
+    Reviewed-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
+commit d258413c956cd46a237d4b5b94a35817ca7ce8f4
+Author: Michel Dänzer <michel.daenzer%amd.com@localhost>
+Date:   Mon Jul 23 18:54:40 2018 +0200
+
+    Remove drmmode_terminate_leases
+    
+    The RandR screen private is already freed when our CloseScreen runs, so
+    this can't do anything useful. This cleanup has to be done by the X
+    server itself.
+    
+    (Ported from amdgpu commit 5f06d6b8ba570b500956ad26fee711d5ac427818)
+    Acked-by: Alex Deucher <alexander.deucher%amd.com@localhost>
+
+commit ffdbd46b0abcf8cbe73eb8930ddcd7fd2485d9b5
+Author: Michel Dänzer <michel.daenzer%amd.com@localhost>
+Date:   Mon Jul 23 11:02:32 2018 +0200
+
+    Hardcode "non-desktop" RandR property name
+    
+    It's a bit silly to require current randrproto just for this definition,
+    which can't really change anyway.
+    
+    Suggested-by: Qiang Yu <qiang.yu%amd.com@localhost>
+    (Ported from amdgpu commit ae8e02c6fc4ef5d5340b8cd4739e66b19b9e3386)
+    Reviewed-by: Alex Deucher <alexander.deucher%amd.com@localhost>



Home | Main Index | Thread Index | Old Index