commit 66227060872219c1a0dc84fa4cea6264f7548446
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Thu Mar 16 16:38:15 2017 +0900

    Bump version for 7.9.0 release

commit 9a71445094b728f3d78db8f6808b4782ee19a453
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Mar 8 17:42:56 2017 +0900

    Pass TRUE to drmmode_set_desired_modes the first time for GPU screens
    
    This is the only place we call drmmode_set_desired_modes for GPU screens
    during server startup. Without this change, the display outputs of
    secondary GPUs may stay on even while Xorg isn't using them.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 67ae5e00a748ad52cf92738d401afff2947b1891
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Mar 8 11:20:30 2017 +0900

    Skip some initialization steps for GPU screens
    
    Xorg doesn't use the following functionality of GPU screens, so don't
    bother initializing it:
    
    * DRI page flipping
    * DRI3 / Present / SYNC fences
    * XVideo / XvMC
    * Root window with background None
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit f0e7948e1c0e984fc27f235f365639e9cf628291
Author: Jochen Rollwagen <joro-2013@t-online.de>
Date:   Sun Mar 5 11:32:38 2017 +0100

    Fix build for XServer 1.13
    
    Latest git build stops with the error message
    
    radeon_kms.c: In function 'RADEONWindowExposures_oneshot':
    radeon_kms.c:1644:45: error: expected expression before 'RegionPtr'
         pScreen->WindowExposures(pWin, pRegion, RegionPtr pBSRegion);
    
    This patch fixes the build.
    
    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>

commit d63881623f0686a66a2e3e3c1f84e496aa52ec6b
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Thu Mar 2 16:22:51 2017 +0900

    Don't call radeon_cs_flush_indirect & radeon_bo_wait in drmmode_copy_fb
    
    RADEONWindowExposures_oneshot takes care of it.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit cc9d6b7db9c2078be1e530a64af6d517c6a42024
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Mar 1 17:35:59 2017 +0900

    Move DPMS check from radeon_scanout_do_update to radeon_scanout_flip
    
    When radeon_scanout_do_update is called from
    drmmode_crtc_scanout_update, drmmode_crtc->pending_dpms_mode may still
    be != DPMSModeOn, e.g. during server startup.
    
    Fixes intermittently showing garbage with TearFree enabled.

commit 0a12bf1085505017068dfdfd31d23133e51b45b9
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Mar 1 18:00:40 2017 +0900

    Call drmmode_set_desired_modes from a WindowExposures hook
    
    This is the earliest opportunity where the root window contents are
    guaranteed to be initialized, and prevents drmmode_set_mode_major from
    getting called before drmmode_set_desired_modes via RADEONUnblank ->
    drmmode_crtc_dpms. Also, in contrast to the BlockHandler hook, this is
    called when running Xorg with -pogo.
    
    Fixes intermittently showing garbage on server startup or after server
    reset.
    
    As a bonus, this avoids trouble due to higher layers (e.g. the tigervnc
    Xorg module) calling RADEONBlockHandler_oneshot repeatedly even after
    we set pScreen->BlockHandler = RADEONBlockHandler_KMS.
    
    v2:
    * Drop spaces between XORG_VERSION_NUMERIC arguments
    * Call radeon_bo_wait after radeon_cs_flush_indirect
    
    Bugzilla: https://bugs.freedesktop.org/99457
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v1)

commit df2d749a4db33298c8ce9f2cfb77c20c5538c9cc
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Thu Mar 2 16:05:42 2017 +0900

    Fix bogus indentation
    
    Trivial.
    
    Fixes: 58cd1600057e ("Allow toggling TearFree at runtime via output property")

commit 9035b6abea557828e672ee455f0c84e43da0906f
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Tue Feb 28 18:13:42 2017 +0900

    present: Flush before flipping
    
    This isn't necessary for DRI clients, but the Present extension can also
    be used for presenting normal pixmaps rendered to via the X11 protocol.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 0a4eb0e12f0c9c653cf4cea6fd62e1a507eb261c
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Fri Feb 10 12:52:02 2017 +0900

    present: Use async flip for unflip if possible
    
    In that case, unflip operations should finish faster in general.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 9a951a3e551db58ba50e7a594521ceac54d90615
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Tue Feb 28 18:06:55 2017 +0900

    present: Also flush before using a flip to unflip
    
    Not doing so might result in intermittently scanning out stale contents
    of the screen pixmap.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit f2bc882f1c1082bed9f496cfab6c8f07a76bc122
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Tue Feb 28 17:31:14 2017 +0900

    Handle rotation in the driver also with Xorg 1.12-1.18
    
    We cannot use the HW cursor in that case, but in turn we get more
    efficient and less teary updates of rotated outputs.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit ae921a3150f69c38b5b3c88a9e37d54fdf0d5093
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Tue Feb 28 17:47:09 2017 +0900

    Fold drmmode_crtc_scanout_allocate into drmmode_crtc_scanout_create
    
    Not used anywhere else anymore.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 987a34adb319923ad36e2b47a26837248f187c3e
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Tue Feb 28 17:17:20 2017 +0900

    Call drmmode_crtc_scanout_create in drmmode_crtc_shadow_allocate as well
    
    Calling drmmode_crtc_scanout_allocate in drmmode_crtc_shadow_allocate
    resulted in drmmode_crtc_scanout_create called from
    drmmode_crtc_shadow_create passing an uninitialized pitch value to
    drmmode_create_bo_pixmap.
    
    Fixes issues such as failure to allocate the scanout pixmap or visual
    corruption and GPUVM faults when attempting to use rotation with Xorg
    <1.19.
    
    Bugzilla: https://bugs.freedesktop.org/99916
    Fixes: ea30d856ba5e ("Pass pitch from drmmode_crtc_scanout_allocate to drmmode_create_bo_pixmap")
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 244d4bc7f8c8f6bc90f49556c0b9344c8aa40295
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Thu Feb 9 18:55:04 2017 +0900

    present: Wait for screen pixmap BO idle before setting modes for unflip
    
    To make sure the screen pixmap contents are up to date when it starts
    being scanned out.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 3ff29e5a14451916bc66b4e0028e9a317f0723f8
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Thu Feb 9 18:50:40 2017 +0900

    present: Only call drmModeRmFB after setting modes for unflip
    
    Fixes display intermittently blanking when a modeset is used for unflip.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 0c29deb5a97d9a57e994cc0053c49ddf7aca6ecb
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Tue Feb 21 16:56:27 2017 +0900

    Use drmmode_crtc_scanout_free in drmmode_fini
    
    We were leaking drmmode_crtc->scanout_damage, which caused trouble on
    server reset. Fixes server reset with active separate scanout pixmaps.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 58cd1600057e41aade0106d4acf78e23eac6e44f
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Thu Dec 1 18:37:57 2016 +0900

    Allow toggling TearFree at runtime via output property
    
    Option "TearFree" now sets the default value of the output property.
    See the manpage update for details.
    
    TearFree is now enabled by default for outputs using rotation or other
    RandR transforms, and for RandR 1.4 slave outputs.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 305e2cbf335837a2ab6a24e9ff65815afe038296
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Tue Feb 21 15:55:13 2017 +0900

    Factor out drmmode_crtc_scanout_update helper
    
    Cleanup in preparation for following change, no functional change
    intended.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 649644a88347a6d03de68f8c41db03a82deeb23b
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Tue Feb 14 17:36:31 2017 +0900

    Factor out radeon_prime_dirty_to_crtc helper
    
    Cleanup in preparation for the following change, no functional change
    intended.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 1351e48efe7a2c28eab447e16f36a00fbd02ae48
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Tue Feb 7 18:43:56 2017 +0900

    Don't destroy current FB if drmModeAddFB fails
    
    It would probably result in a black screen.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 481394e3c9f9f7d88bb66fe9ae8834c87952a8ab
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Tue Feb 7 18:39:05 2017 +0900

    Fix flip event data leak if calloc or drmModeAddFB fails
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 80fc78633962c1ec996b1721bfb757b98dc85bfc
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Tue Jan 31 16:25:37 2017 +0900

    Don't handle Option "SwapbuffersWait" at all with glamor
    
    It never had any effect with glamor.
    
    v2: Better formatting, no functional change from v1.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v1)

commit d611d21d9bf9aaa100ff7a5762e5980634846207
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Tue Jan 24 18:05:45 2017 +0900

    Enable tiling by default with glamor on PALM
    
    The DFS check is only relevant for EXA.
    
    The lack of tiling prevented DRI3 clients from using page flipping,
    resulting in tearing.
    
    Bugzilla: https://bugs.freedesktop.org/99491
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 55a33205cb9bd8091b4bcd478c2d1d191248681b
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Tue Jan 24 18:22:49 2017 +0900

    Add 10-radeon.conf xorg.conf.d snippet
    
    This instructs Xorg >= 1.16 to try loading the radeon driver for devices
    managed by the radeon kernel driver, even if the ati wrapper driver
    isn't available.
    
    Copied from the amdgpu driver.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 8e6a4e96b7b27559e186f71b5547abb0a80b96dd
Author: Mihail Konev <k.mvc@ya.ru>
Date:   Thu Jan 26 14:00:22 2017 +1000

    autogen: add default patch prefix
    
    Signed-off-by: Mihail Konev <k.mvc@ya.ru>

commit e062933b5489705bdcba7a266d14ba6fd3e767ba
Author: Emil Velikov <emil.l.velikov@gmail.com>
Date:   Mon Mar 9 12:00:52 2015 +0000

    autogen.sh: use quoted string variables
    
    Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent
    fall-outs, when they contain space.
    
    Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
    Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
    Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>

commit 4fe183111f82d412760b175b3c9c8583acba804a
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date:   Tue Jan 24 10:32:07 2017 +1000

    autogen.sh: use exec instead of waiting for configure to finish
    
    Syncs the invocation of configure with the one from the server.
    
    Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
    Reviewed-by: Emil Velikov <emil.velikov@collabora.com>

commit a1787e4615a76ab0bb12498be66591c86a6b07ae
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Jan 18 19:07:11 2017 +0900

    ati: Support loading the amdgpu driver from the ati wrapper
    
    If .../share/X11/xorg.conf.d/10-amdgpu.conf doesn't exist, but the ati
    wrapper is loaded, it will otherwise try to use the radeon driver even
    for GPUs driven by the amdgpu kernel driver. This can only fail,
    potentially in bad ways.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 41b82c776b571e1556f300d77c715aebdd87d8e6
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Tue Jan 24 18:14:23 2017 +0900

    .editorconfig: src/ati.c only uses spaces for indentation
    
    Trivial.

commit ea30d856ba5e7274c8ea499293b8b0e721b8e082
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Fri Jan 6 17:36:05 2017 +0900

    Pass pitch from drmmode_crtc_scanout_allocate to drmmode_create_bo_pixmap
    
    radeon_bo_get_tiling can fail, e.g. for linear BOs.
    
    Fixes TearFree not working in those cases.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97873
    Fixes: 040a7b80e1fc ("Explicitly set the fbcon pixmap pitch again")
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 720dd07e79b5f5cbbf3ef8bd92300578c485d583
Author: Jammy Zhou <Jammy.Zhou@amd.com>
Date:   Mon Dec 19 17:27:19 2016 +0900

    Use render node for DRI3 if available
    
    Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
    (ported from amdgpu commit ea558e645786b08d75307716036045170e97b43e)
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
    [ Second attempt, let's see if there's any fallout this time... ]

commit 92fc387a6256ce3c95d62142735783ea07162c54
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Thu Dec 15 12:44:47 2016 +0900

    Simplify drmmode_handle_uevents
    
    No functional change intended.
    
    Reviewed-by: Jim Qu <Jim.Qu@amd.com>
    (Cherry picked from amdgpu commit edd276185d42962a13faf9ec9eeebc754ef284e7.)

commit 404c64752774d23a2db9aa3134f6ada3155708c9
Author: jimqu <Jim.Qu@amd.com>
Date:   Wed Dec 14 11:46:16 2016 +0900

    udev_monitor_receive_device() will block when hotplug monitor
    
    udev_monitor_receive_device() will block and wait for the event of udev
    use select() to ensure that this will not block.
    
    Signed-off-by: JimQu <Jim.Qu@amd.com>
    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
    (Cherry picked from amdgpu commit 732cf4d3a248b288532ad0f3443da49e08dc7507)

commit a89c0bced423ce3e09f66edafc35642a7cc03b2f
Author: Jochen Rollwagen <joro-2013@t-online.de>
Date:   Fri Dec 2 10:56:39 2016 +0100

    Calculate log base 2 in radeon.h based on clz for all platforms
    
    This commit replaces the inline assembler code (for x86 platforms) and
    loop (for non-x86 platforms) in RADEONLog2 with a one-liner version
    based on clz (count leading zeroes).
    
    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>

commit e2942449171fe628a7726e59bcaab65e27d88563
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Mon Nov 21 18:47:53 2016 +0900

    Call radeon_drm_abort_entry on failure to flip to a scanout pixmap
    
    Fixes leaking the corresponding struct radeon_drm_queue list entry in
    that case.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 14c3f59f5157885ad8f941f0bad6c0c5e3db12f8
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Mon Nov 21 18:45:30 2016 +0900

    Call ValidateGC after ChangeClip in radeon_sync_scanout_pixmaps
    
    The wrong order meant that the clipping region wasn't actually applied,
    so it always copied the full contents from the other scanout pixmap.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit a995f5830916a0fee5126263d1bfe48632be3a15
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Mon Nov 21 18:39:00 2016 +0900

    Fix radeon_scanout_extents_intersect for GPU screens
    
    Fixes incorrect screen updates with TearFree enabled on PRIME slave
    outputs which are not located at (0, 0).
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit e543ef3a2fb304cbe3a965fb780632af2e4186f4
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Mon Nov 21 18:33:25 2016 +0900

    Take current scanout_id into account everywhere involved with TearFree
    
    Fixes various potential issues with TearFree enabled, e.g. outputs
    freezing after display configuration changes.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit f130b10e63f7526360b41aa0918b4940f63f662a
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Fri Nov 25 18:12:40 2016 +0900

    Add radeon_is_gpu_screen helper
    
    This will hopefully decrease the chance of accidentally breaking the
    build against xserver < 1.13 in the future.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 487aa62a2a23b86e4ea4714fdfd465c9e513141f
Author: Jochen Rollwagen <joro-2013@t-online.de>
Date:   Thu Nov 24 18:44:01 2016 +0100

    fix build for xserver < 1.13
    
    same procedure every few patches.....
    
    Fixes: 13c6bc5e3827 ("Don't install Flush/EventCallback for GPU screens")
    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>

commit 5fea5ef2f07eee4a0f94baab427010b936f1d4b4
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Thu Nov 24 18:45:22 2016 +0900

    Pass fb_id into drmmode_page_flip_target_absolute/relative
    
    drmmode->fb_id isn't what we need in the TearFree case. Fixes TearFree
    freezing with
    
    (WW) RADEON(0): flip queue failed in radeon_scanout_flip: No such file or directory
    
    in the log file.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98834
    Fixes: 1106b2f773ad ("Use DRM_MODE_PAGE_FLIP_TARGET_ABSOLUTE/RELATIVE flags when available")

commit 13c6bc5e382765fe567091e1c616c0a26eec04ca
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Mon Aug 1 18:11:57 2016 +0900

    Don't install Flush/EventCallback for GPU screens
    
    Their purpose is to flush GPU rendering commands corresponding to damage
    events, but there can be no damage events corresponding to GPU screen
    rendering operations.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit f11531c99fcd6473f58b4d10efaf3efd84304d8e
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Mon Nov 21 18:15:05 2016 +0900

    Enable glamor by default with >= R600 and Xorg >= 1.18.3
    
    glamor should now perform at least as well as EXA in general, and this
    allows DRI3 to be enabled by default for >= R600.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 1106b2f773ad0611c729b27f4c192a26b43ef1e7
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Jul 6 15:25:33 2016 +0900

    Use DRM_MODE_PAGE_FLIP_TARGET_ABSOLUTE/RELATIVE flags when available
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit aab80d2203efb8569b26dd02a1c651c792e1ef0c
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Fri Nov 18 12:11:38 2016 +0900

    Post-release version bump

commit 5cbe1ee8e499e1b6b2646e341946292721d07e69
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Thu Nov 17 11:27:16 2016 +0900

    Bump version for 7.8.0 release

commit 68023e01842ed7e5c798be77c25993bbe6a5a966
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Thu Nov 17 11:32:37 2016 +0900

    Update manpage entry for Option "TearFree"
    
    It's now effective for arbitrary transforms as well.

commit 9760ef33cba5795eddeda4d5c2fcbe2dcce21689
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Tue Nov 8 13:02:43 2016 +0900

    Use pRADEONEnt to find both screens of a GPU in radeon_mode_hotplug
    
    Fixes misbehaviour when hotplugging DisplayPort connectors on secondary
    GPUs.
    
    Fixes: c801f9f10a5d ("Handle Zaphod mode correctly in radeon_mode_hotplug")
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98626
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 35bec4937d89b48a79acfcb4f814b7370cb631b2
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Tue Nov 8 13:01:58 2016 +0900

    Refactor radeon_mode_hotplug
    
    Preparation for the next change, no functional change intended.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit be9f67339a19a6649eab52aa2e0c8971cd9b4727
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Mon Nov 7 16:34:37 2016 +0900

    Reindent code in radeon_dri2_create_buffer2
    
    Fixes warning about misleading indentation from recent versions of gcc:
    
    ../../src/radeon_dri2.c: In function ‘radeon_dri2_create_buffer2’:
    ../../src/radeon_dri2.c:224:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
      if (flags & RADEON_CREATE_PIXMAP_TILING_MACRO)
      ^~
    ../../src/radeon_dri2.c:227:6: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
          if (aligned_width == front_width)
          ^~
    
    No functional change intended.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 350a2645a1b127227ff294c0b62d20000d0fd48a
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Tue Nov 1 16:30:42 2016 +0900

    Check Xorg version at runtime instead of build time in two places
    
    This means that all possible paths can be handled as intended, no matter
    which Xorg version the driver happened to be compiled against.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 5df36de39952c3a26cb2fbc125f298139a9dd5bc
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Fri Aug 26 18:24:08 2016 +0900

    Require xserver 1.10 or newer
    
    1.10.0 was released in February 2011.
    
    We've been accidentally requiring 1.10 or newer since 121a6de72da5 ("Keep
    track of damage event related flushes per-client v2").
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 22b5ce9548393ba2ff73ee234ecd82eeaf0ef6c4
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Tue Oct 25 17:28:03 2016 +0900

    Consume all available udev events at once
    
    We get multiple udev events for actions like docking a laptop into its
    station or plugging a monitor to the station. By consuming as many
    events as we can, we reduce the number of output re-evalutions.
    
    It depends on the timing how many events can be consumed at once.
    
    (Inspired by xserver commit 363f4273dd4aec3e26cc57ecb6c20f27e6c813d8)
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 82d3c8f5500d2a6fb1495e217a0b79c396f1534c
Author: Hans de Goede <hdegoede@redhat.com>
Date:   Tue Oct 25 16:56:40 2016 +0900

    PRIME: Fix swapping of provider sink / source capabilities
    
    When a card has import capability it can be an offload _sink_, not a
    source and vice versa for export capability.
    
    This went unnoticed sofar because most gpus have both import and export
    capability.
    
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    (Ported from xserver commit 94a1c77259ce39ba59ad87615df39b570ffab435)
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 6c940446ddadf418ee4959e46fa552b6c1cf6704
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Tue Oct 25 16:42:03 2016 +0900

    Always call PixmapStopDirtyTracking in drmmode_set_scanout_pixmap
    
    Otherwise, we may leak screen->pixmap_dirty_list entries if
    drmmode_set_scanout_pixmap is called repatedly with ppix != NULL, which
    can happen from RRReplaceScanoutPixmap.
    
    (Inspired by xserver commit b773a9c8126222e5fed2904d012fbf917a9f22fd)
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 61df12e2377cbb19a19ca9d5624df8959822da9f
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Oct 19 18:55:33 2016 +0900

    Don't rely on randr_crtc->scanout_pixmap in drmmode_set_scanout_pixmap
    
    RRReplaceScanoutPixmap may set randr_crtc->scanout_pixmap = NULL before
    we get here.
    
    (Inspired by xserver commit f4c37eeee7953df1fe0e3196eda452acf0078e61)
    v2: Always return TRUE in the if (!ppix) block.
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v1)

commit 49cf3b5032a7ce40afe514b7092440e3e19e05aa
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Thu Oct 20 15:33:09 2016 +0900

    Sayōnara, AM_MAINTAINER_MODE!
    
    If --enable-maintainer-mode got lost from config.status for any reason,
    builds would fail in mysterious ways after changing between different
    Git commits.
    
    There are more reasons for dropping it in the automake manual:
    
    https://www.gnu.org/software/automake/manual/html_node/maintainer_002dmode.html
    
    I'm not aware of any reason why --disable-maintainer-mode would ever be
    useful with this project.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 4b17de1cad12e7be12f2c71e5149bfc04564702d
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Oct 19 18:09:14 2016 +0900

    Remove PCI IDs and bus type from ati_pciids.csv
    
    This cleans up the list of unique chipsets a little further.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 1ce1b1656acc6211deb2091ff7f28d51b6daf86b
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Oct 19 18:08:36 2016 +0900

    Order unique chipsets according to first appearance in ati_pciids.csv
    
    Instead of lexically. This makes it more likely for similar generations
    to be close to each other in the list of unique chipsets.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 7c66be961de3477fc685eb71b46265adbae923f0
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Mon Oct 17 18:38:55 2016 +0900

    Enable HW cursor support with PRIME slave output & Xorg > 1.18.99.901
    
    Supported since Xorg 1.18.99.2, but buggy until 1.18.99.901.
    
    (Ported from amdgpu commit 7cc04035c55788261cda89a915c433c2add6cad9)
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit d016f20b14ffe4f90f7457375b2d9f5cf0f5650f
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Thu Oct 13 16:33:45 2016 +0900

    Restore location of radeon_set_pixmap_bo call in drmmode_create_bo_pixmap
    
    radeon_set_pixmap_bo sets the tiling flags, so it needs to be called
    before radeon_get_pixmap_tiling_flags. Fixes a regression with EXA and
    TearFree.
    
    Fixes: 8523a733b6a5 ("Propagate failure from radeon_set_pixmap_bo")
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98097
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 937398f6cd50db105d5e53ab553eb284d44121f4
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Thu Oct 6 18:52:37 2016 +0900

    Rotate and reflect cursor hotspot position for drmModeSetCursor2
    
    We were always passing the hotspot position in the X screen coordinate
    space, but drmModeSetCursor2 needs it in the CRTC coordinate space. The
    wrong hotspot position would cause the kernel driver to adjust the
    HW cursor position incorrectly when the hotspot position changed.
    
    (Ported from amdgpu commit d42773eb45baff5933730e26878a0b45fcf07b65)
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 3fc839ff49f01c24eb94d5e1f0ab4065de47bc17
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Sep 21 17:50:36 2016 +0900

    Only list each unique chipset family once in the log file
    
    (Ported from amdgpu commit 6a1ba044c2b71081e6060d0c096917d6238f2145)

commit 9a5eb1915a240e3021ac38a6dacafef81e7bb743
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Sep 21 17:48:38 2016 +0900

    Clear damage in radeon_scanout_update if it doesn't intersect the CRTC
    
    There's no need to test that same damage again.
    
    (Ported from amdgpu commit a576430526cbc404de64b30e1377a356644e8024)

commit 792a30dbe5f7d7815ea14032dbab55b5de8eabca
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Sep 21 17:43:57 2016 +0900

    Remove w/h parameters from radeon_scanout_extents_intersect
    
    We can use the dimensions of the CRTC's mode instead.
    
    (Ported from amdgpu commit ede7f2bcae63be65e05e3029bfe7c742e5978932)

commit 80d794f11a5f047663897e4349da75d89ceff7c7
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Sep 21 17:38:57 2016 +0900

    Make the dedicated scanout mechanism work with arbitrary transforms
    
    This makes TearFree work with arbitrary transforms, and makes transforms
    work better even without TearFree, with xserver >= 1.12.
    
    (Ported from amdgpu commit bf000ea7ef91f5ecb59fc3c1ab8ed9eddcc0841d)

commit 09ba7b3b7b1b724aa386dbf2d33f567d7f26326b
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Sep 21 17:00:22 2016 +0900

    Remove drmmode_load_palette
    
    Not used by any supported version of xserver.
    
    (Ported from amdgpu commits 1091f28e1fa239ee1a973d84a8376fa4a95d7247
     and 5a4d3267ac3823fe58b51b0b9075b82375d7180c)

commit 730f443955cf2bcedd760c9fef5b11c81eacdd84
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Sep 21 16:48:49 2016 +0900

    present: Separate checks for flips vs unflips
    
    All unflip checks apply to flips as well, but not vice versa.
    
    (Ported from amdgpu commit 4d506c23c9a628204fa23607931557b07ada3e31)

commit 343d28672411a510de21fa57986324ef8bcdd1b6
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Sep 21 16:47:17 2016 +0900

    dri2: Don't allow flipping when using a dedicated scanout buffer
    
    Fixes issues when mixing rotation and page flipping with current xserver
    Git master.
    
    (Ported from amdgpu commit decabd574f90d3df397c80ec931b3fde8a4afb49)

commit 83e4781d15d66d6fa0e153eb4cd0e3d9e2ebed9f
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Sep 21 16:44:50 2016 +0900

    present: Don't allow flipping when using a dedicated scanout buffer
    
    Fixes issues when mixing rotation and page flipping with current xserver
    Git master.
    
    (Ported from amdgpu commit 3ed28ce7cd26f89969617ba901ff253091d0d469)

commit 8419db3de6157875f9a840773350ecd29cd42d83
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Sep 21 16:40:42 2016 +0900

    Make sure drmmode_crtc->scanout[] are destroyed when not needed
    
    We failed to do this when going back to scanning out directly from the
    screen pixmap.
    
    As a bonus, since we now destroy drmmode_crtc->scanout[] after setting
    the new scanout buffer, we may avoid the CRTC turning off intermittently
    in this case.
    
    (Ported from amdgpu commit 9c3324715fd395fd486ea341654d78f4f298b97f)

commit 956e03d6a6b9478dd8e77c81f426c0d371c5d7a1
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Sep 21 16:37:53 2016 +0900

    Simplify drmmode_set_mode_major error handling
    
    Initialize ret = FALSE and only set it to TRUE when we've succeeded.
    
    (Ported from amdgpu commit 3bce0519a4008cf87c0e31a7a579e10f5dcdd2f3)

commit ace455d1db4db3f9b8b434a3747acfa7e1273db4
Author: Hans de Goede <hdegoede@redhat.com>
Date:   Wed Sep 21 16:31:51 2016 +0900

    Only add main fb if necessary
    
    If we're doing reverse-prime; or doing rotation the main fb is not used,
    and there is no reason to add it in this case.
    
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    (Ported from xserver commit 4313122dea0df9affc280ee698e929489061ccc6)
    (Ported from amdgpu commit a3ca1500703837cbb8d49c554199a25dea7d5e1e)

commit eea370dc4f96e680cc29b416fe62d6e2ea09bc91
Author: Hans de Goede <hdegoede@redhat.com>
Date:   Wed Sep 21 16:27:11 2016 +0900

    Remove unnecessary fb addition from drmmode_xf86crtc_resize
    
    drmmode_set_mode_major() is the only user of drmmode->fb_id and will
    create it if necessary.
    
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    (Ported from xserver commit 877453212166fdc912e0d687cdecee11aba563b5)
    (Ported from amdgpu commit 9ca1c24235ff5ab2e028333fc326e2eff008c574)

commit cf52c76484a4adfa3e0b2271ea0c00f46d32ca48
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Tue Sep 13 18:21:37 2016 +0900

    Free priv in amdgpu_set_pixmap_bo also if priv->bo == NULL
    
    Fixes memory leak when destroying pixmaps with priv->bo == NULL.
    
    Reported-by: Qiang Yu <qiang.yu@amd.com>
    (Ported from amdgpu commit 7f7f9825caf3983902491da27c16d14cd8bf9b7d)

commit 50abcc19e29bb50451d031b2c9e99d691d4faf70
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Tue Sep 13 18:18:37 2016 +0900

    glamor: Fix leak of pixmap private when replacing BO
    
    Reported-by: Qiang Yu <qiang.yu@amd.com>
    (Ported from amdgpu commit 397aedafee437c125b8ac1feafb1c3b466842aeb)

commit 8523a733b6a5de6116a6332fefc871d4c32652d8
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Mon Sep 12 18:54:33 2016 +0900

    Propagate failure from radeon_set_pixmap_bo
    
    (Ported from amdgpu commits c315c00e44afc91a7c8e2eab5af836d9643ebb88
     and 0d42082108c264568e2aadd15ace70e72388bc65)

commit 53be26b00e83f871f0afd39caa5a7a1d6ec4aea1
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Aug 31 16:46:56 2016 +0900

    Add support for ScreenPtr::SyncSharedPixmap
    
    This allows deferring shared pixmap updates between different drivers.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 156b5bc00da2eecb71cad517136f8cd74cf5d2c9
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Tue Sep 20 17:50:20 2016 +0900

    Only define transform_region function for XF86_CRTC_VERSION >= 4
    
    We're not using it with older xserver.
    
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 80cc892ee1ce54fad3cb7dd11bd9df18c359136f
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Tue Sep 20 17:45:16 2016 +0900

    Use local implementation of RegionDuplicate for older xserver
    
    It was only added in xserver 1.15. Fixes build against older xserver.
    
    Reported-by: Pali Rohár <pali.rohar@gmail.com>
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 12d30eeb9711bd2b1609d6bbb74c4a1760596f72
Author: Qiang Yu <Qiang.Yu@amd.com>
Date:   Wed Sep 14 17:03:03 2016 +0900

    DRI2: Fix radeon_dri2_exchange_buffers width/height copy'n'paste error
    
    Signed-off-by: Qiang Yu <Qiang.Yu@amd.com>
    (Ported from amdgpu commit 73c8dc000ad6b2b53ba3aa7155f5e8f6b55623b7)
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 11cc6843aa3b745aa1361f1a65e465e16696b914
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Sep 14 17:01:13 2016 +0900

    DRI2: Add interpolated_vblanks in radeon_dri2_get_crtc_msc
    
    We need that in radeon_dri2_drawable_crtc as well for priv->vblank_delta
    to work as intended.
    
    radeon_dri2_get_msc was already doing this.
    
    Fixes hangs in some cases when using VDPAU via DRI2 and moving the
    window between CRTCs.
    
    (Ported from amdgpu commit abd1a7901c95e4bc78415cf1b7923623b9177152)
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 380daff43cfefe2a8e4d496eaf65673f2815c878
Author: Qiang Yu <Qiang.Yu@amd.com>
Date:   Wed Sep 14 16:59:38 2016 +0900

    Fix radeon_mode_hotplug crash on multi GPU platform.
    
    On multi GPU platform, some screen is created by other GPU DDX.
    
    Signed-off-by: Qiang Yu <Qiang.Yu@amd.com>
    (Ported from amdgpu commit 978242977e5dc905e1d5a46b1b0d34b356c7af26)
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 4a5fa37f74c233c6b9c6a08306688628a8e216e8
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Sep 14 16:56:22 2016 +0900

    Destroy all dedicated scanout buffers during CloseScreen
    
    Fixes leaking active scanout buffers across a server reset, which also
    fixes server reset with glamor and active scanout buffers.
    
    (Ported from amdgpu commit d96dabc71b1b32dc4b422a9633cdd4e0e95da052)
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

