commit 7e5c9bdf73e4185ac4cf7f044da0793a5cc3e62c
Author: Keith Packard <keithp@keithp.com>
Date:   Tue Nov 15 08:12:05 2016 -0800

    Bump version to 1.19.0
    
    Signed-off-by: Keith Packard <keithp@keithp.com>

commit ea8efb3a997e15d27d362762e6c85d59487f9864
Author: Keith Packard <keithp@keithp.com>
Date:   Wed Nov 2 13:25:33 2016 -0700

    dix: Make sure client is not in output_pending chain after closed (RH 1382444)
    
    I think it is possible that output could get queued to a client during
    CloseDownClient. After it is removed from the pending queue, active
    grabs are released, the client is awoken if sleeping and any work
    queue entries related to the client are processed.
    
    To fix this, move the call removing it from the output_pending chain
    until after clientGone has been set and then check clientGone in
    output_pending_mark.
    
    Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1382444
    Signed-off-by: Keith Packard <keithp@keithp.com>
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>

commit 7513da40a656317ad3aa101651d29373de99c798
Author: Timo Aaltonen <tjaalton@ubuntu.com>
Date:   Wed Nov 2 17:18:11 2016 +0200

    dri2: Sync i965_pci_ids.h from mesa
    
    Import changes from these mesa commits:
    85ea8deb26da420 i965: Removing PCI IDs that are no longer listed as Kabylake.
    bdff2e554735ed9 i956: Add more Kabylake PCI IDs.
    f1fa8b4a1ca73fa i965/bxt: Add 2x6 variant
    d1ab544bb883d04 i965/chv: Display proper branding
    20e8ee36627f874 i965/skl: Update Skylake renderer strings
    644c8a515192d28 i965/skl: Add two missing device IDs
    
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Signed-off-by: Timo Aaltonen <tjaalton@ubuntu.com>

commit 4cfee398726adf89db4b632ade7d6cab8b78282e
Author: Ian Ray <ian.ray@ge.com>
Date:   Wed May 25 10:41:53 2016 +0300

    xwayland-shm: block signals during fallocate
    
    posix_fallocate() does an explicit rollback if it gets EINTR, and
    this is a problem on slow systems because when the allocation size
    is sufficiently large posix_fallocate() will always be interrupted
    by the smart scheduler's SIGALRM.
    
    Changes since v1 - big comment in the code to explain what is going on
    
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Signed-off-by: Ian Ray <ian.ray@ge.com>
    Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
    Acked-by: Daniel Stone <daniels@collabora.com>

commit 512e75a23b7f6339593c3ae6942f0c420a975fd3
Author: Keith Packard <keithp@keithp.com>
Date:   Fri Oct 28 09:32:42 2016 -0700

    Bump to 1.18.99.902 (1.19 RC2)
    
    Signed-off-by: Keith Packard <keithp@keithp.com>

commit c85f81825e196e96337347e0ce3a538fb2e38f16
Author: Keith Packard <keithp@keithp.com>
Date:   Fri Oct 28 09:28:32 2016 -0700

    dix: Bump MAXHASHSIZE for the resource db [v2]
    
    [This was originally a workaround for a client-side resource leak:
    
    http://lists.freedesktop.org/archives/xorg-devel/2012-November/034555.html
    
    Obviously that's a broken app, but the performance problem it
    illustrates - that walking the linked list ends up burning all your CPU
    time - is real enough. - ajax]
    
    v2: Replace with a shorter code sequence which computes the same
        results for all but numBits == 7
    
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Signed-off-by: Keith Packard <keithp@keithp.com>

commit 356db2340f5b473a7191c7969586ca5b0396c48f
Merge: 9ed5b26 03d99ef
Author: Keith Packard <keithp@keithp.com>
Date:   Fri Oct 28 09:05:54 2016 -0700

    Merge remote-tracking branch 'jturney/master'

commit 9ed5b263542e5245317927828f0515db6c0a54c8
Author: Keith Packard <keithp@keithp.com>
Date:   Fri Oct 28 08:04:43 2016 -0700

    os: Recompute whether any clients are ready after ProcessWorkQueue() (bug 98030)
    
    If a work proc wakes up a sleeping client and it is ready to execute,
    we need to re-compute the local 'are_ready' value before deciding
    what timeout value to use in WaitForSomething.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98030
    Signed-off-by: Keith Packard <keithp@keithp.com>
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>

commit 2c91f3235a4e1655e18cb014922529161051ffbb
Author: Keith Packard <keithp@keithp.com>
Date:   Wed Oct 5 09:41:44 2016 -0700

    ephyr: Leave window unmapped for -glamor-skip-present [v2]
    
    If we're never painting anything in the window, we probably don't need
    to map it.
    
    v2: Drop ephyr_glamor_gles2 from hostx.c
    
    Signed-off-by: Keith Packard <keithp@keithp.com>
    Reviewed-by: Eric Anholt <eric@anholt.net>

commit cba5a10fd93310702cad9dbe1e6d48da99f5552f
Author: Alex Goins <agoins@nvidia.com>
Date:   Wed Oct 26 11:03:49 2016 -0700

    ramdac: Check sPriv != NULL in xf86CheckHWCursor()
    
    xf86CheckHWCursor() would dereference sPriv without NULL checking it. If Option
    "SWCursor" is specified, sPriv == NULL. In this case we should assume that HW
    cursors are not supported.
    
    Signed-off-by: Alex Goins <agoins@nvidia.com>
    Reviewed-by: Andy Ritger <aritger@nvidia.com>
    Signed-off-by: Keith Packard <keithp@keithp.com>

commit 03d99ef729178dd99268f185fb45320a29382091
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Thu Oct 6 22:13:07 2016 +0100

    glx/dri2: Don't build DRI loader if DRI2 isn't enabled
    
    This partially reverts 501d8e2b.
    
    Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
    Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>

commit 5cb328338684d8e5b03913c47475bfcd7acffec4
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date:   Wed Oct 26 12:21:16 2016 +0200

    inputthread: On Linux leave the main thread's name as-is
    
    On Linux, setting the main thread's name changes the program name
    (/proc/self/comm). Setting it to MainThread breaks scripts that rely on
    the command name, e.g. ps -C Xorg.
    
    Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>

commit 007f8ee61a35ceda36b43e772a9a1074b8e27a06
Author: Olivier Fourdan <ofourdan@redhat.com>
Date:   Fri Oct 21 10:11:45 2016 +0200

    xwayland: Activate and enable touch devices
    
    On some random condition, a touch event may trigger a crash in Xwayland
    in GetTouchEvents().
    
    The (simplified) backtrace goes as follow:
    
     (gdb) bt
     #0  GetTouchEvents() at getevents.c:1892
     #1  QueueTouchEvents() at getevents.c:1866
     #2  xwl_touch_send_event() at xwayland-input.c:652
     #5  wl_closure_invoke() from libwayland-client.so.0
     #6  dispatch_event() from libwayland-client.so.0
     #7  wl_display_dispatch_queue_pending() from libwayland-client.so.0
     #8  xwl_read_events() at xwayland.c:483
     #9  ospoll_wait() at ospoll.c:412
     #10 WaitForSomething() at WaitFor.c:222
     #11 Dispatch() at dispatch.c:412
     #12 dix_main() at main.c:287
     #13 __libc_start_main() at libc-start.c:289
     #14 _start ()
    
    The crash occurs when trying to access the sprite associated with the
    touch device, which appears to be NULL. Reason being the device itself
    is more a keyboard device than a touch device.
    
    Moreover, it appears the device is neither enabled nor activated
    (inited=0, enabled=0) which doesn't seem right, but matches the code in
    init_touch() from xwayland-input.c which would enable the device if it
    was previously existing and otherwise would create the device but not
    activate it.
    
    Make sure we do activate and enable touch devices just like we do for
    other input devices such as keyboard and pointer.
    
    Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>

commit f68ba7b81ffe765380664fccc92f3e689c6c48c2
Author: Rui Matos <tiagomatos@gmail.com>
Date:   Tue Oct 25 19:24:49 2016 +0200

    xwayland: Transform pointer enter event coordinates
    
    Pointer enter event coordinates are surface relative and we need them to
    be screen relative for pScreen->SetCursorPosition().
    
    https://bugzilla.gnome.org/show_bug.cgi?id=758283
    
    Signed-off-by: Rui Matos <tiagomatos@gmail.com>
    Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
    Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>

commit f5c6d751d08c6de77c2ca49ba2a48f8023758cef
Author: Nikhil Mahale <nmahale@nvidia.com>
Date:   Sat Oct 22 17:40:51 2016 +0530

    modesetting: unifdef MODESETTING_OUTPUT_SLAVE_SUPPORT
    
    Commit c7e8d4a6ee9542f56cd241cf7a960fb8223a6b22 had already unifdef
    MODESETTING_OUTPUT_SLAVE_SUPPORT but commit
    9257b1252da9092ddc676fec9aabe2b33dfad272 didn't notice that.
    
    Signed-off-by: Nikhil Mahale <nmahale@nvidia.com>
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>

commit 4aaeeda4774397dd6d80aa240ca623ae795ec5dc
Author: Hans de Goede <hdegoede@redhat.com>
Date:   Tue Oct 18 16:10:19 2016 +0200

    xfree86: Xorg.wrap: Do not require root rights for cards with 0 outputs
    
    Prior to this commit the Xorg.wrap code to detect if root rights are
    necessary checked for DRM_IOCTL_MODE_GETRESOURCES succeeding *and*
    reporting more then 0 output connectors.
    
    DRM_IOCTL_MODE_GETRESOURCES succeeding alone is enough to differentiate
    between old drm only cards (which need ums and thus root) and kms capable
    cards.
    
    Some hybrid gfx laptops have 0 output connectors on one of their 2 GPUs,
    resulting in Xorg needlessly running as root. This commits removes the
    res.count_connectors > 0 check, fixing this.
    
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>

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

    DRI2: Sync radeonsi_pci_ids.h from Mesa
    
    Fixes DRI2 client driver name mapping for newer AMD GPUs with the
    modesetting driver, allowing the DRI2 extension to initialize.
    
    Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>

commit f6ff2e974c5de3071c899eba828789f1d4d8645a
Author: Mihail Konev <k.mvc@ya.ru>
Date:   Sat Oct 15 04:13:43 2016 +0000

    modesetting: fix glamor ifdef
    
    Add a missing ifdef needed for --disable-glamor.
    
    Signed-off-by: Mihail Konev <k.mvc@ya.ru>
    Reviewed-by: Jon Turney <jon.turney@dronecode.org.uk>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>

commit 8fee6a917b6468e1b116d922f86484498874fb5c
Author: Mihail Konev <k.mvc@ya.ru>
Date:   Fri Oct 14 02:40:59 2016 +0000

    xwin: make glx optional again
    
    Commit 501d8e2b removed --enable-aiglx, but made xwin always be
    --enable-glx.
    
    Signed-off-by: Mihail Konev <k.mvc@ya.ru>
    Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
    Reviewed-by: Jon Turney <jon.turney@dronecode.org.uk>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>

commit d13cb974426f7f1110b0bdb08c4ebb46ff8975f7
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date:   Fri Oct 21 06:27:57 2016 +1000

    ddx: add new call to purge input devices that weren't added
    
    Special case for the systemd-logind case in xfree86: when we're vt-switched
    away and a device is plugged in, we get a paused fd from logind. Since we
    can't probe the device or do anything with it, we store that device in the
    xfree86 and handle it later when we vt-switch back. The device is not added to
    inputInfo.devices until that time.
    
    When the device is removed while still vt-switched away, the the config system
    never notifies the DDX. It only runs through inputInfo.devices and our device
    was never added to that.
    
    When a device is plugged in, removed, and plugged in again while vt-switched
    away, we have two entries in the xfree86-specific list that refer to the same
    device node, both pending for addition later. On VT switch back, the first one
    (the already removed one) will be added successfully, the second one (the
    still plugged-in one) fails. Since the fd is correct, the device works until
    it is removed again. The removed devices' config_info (i.e. the syspath)
    doesn't match the actual device we addded tough (the input number increases
    with each plug), it doesn't get removed, the fd remains open and we lose track
    of the fd count. Plugging the device in again leads to a dead device.
    
    Fix this by adding a call to notify the DDX to purge any remainders of devices
    with the given config_info, that's the only identifiable bit we have at this
    point.
    
    https://bugs.freedesktop.org/show_bug.cgi?id=97928
    
    Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>

commit 8fcf2fa78f09257933b17e7dc9a03a2034e3076f
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date:   Thu Oct 20 15:45:46 2016 +1000

    xfree86: swap the list of paused devices to an xorg_list
    
    No functional changes but it makes it easier to remove elements from the
    middle of the list (future patch).
    
    We don't have an init call into this file, so the list is manually
    initialized.
    
    Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>

commit 28d8855cd4e3be8831fb1c17bf1d205bd8465d1e
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date:   Thu Oct 20 15:25:51 2016 +1000

    xfree86: use the right option traversal list to search for an option
    
    They're identically laid-out structs but let's use the right type to search
    for our desired value.
    
    Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>

commit 7fc96fb02dade4a86f2fc038f3cf5f2d9c0cda00
Author: Emil Velikov <emil.velikov@collabora.com>
Date:   Fri Oct 21 19:06:00 2016 +0100

    glamor: don't look for non-existing EGL_KHR_platform_base
    
    The extension does not exist in the registry, thus needs to know they're
    using EGL 1.5 in order to determine the eglGetPlatformDisplay function
    pointer is valid.
    
    Thus brings us into some lovely circular dependency.
    
    Since mesa won't be able (in the foreseeable future) to export the KHR
    flavour of extension (another way one could assume that EGL 1.5 is
    available) just drop all the heuristics and use the
    EGL_EXT_platform_base extension.
    
    In practise (checked with the Mali driver) any EGL 1.5 driver will
    advertise support for EGL_EXT_platform_base.
    
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>

commit 5dcb0666b82f5ab00f3d22e86f05ac14b0d5341e
Author: Mihail Konev <k.mvc@ya.ru>
Date:   Sat Oct 15 17:59:05 2016 +0000

    os/inputthread: Ensure pollfd refreshing
    
    When putting a device node into a poll-request list, do not overwrite a
    "please-remove" element with the same fd, so that a closed device file
    is ospoll_remove'd prior to being ospoll_add'ed.
    
    Before, the opposite order was possible, resulting in ospoll_add
    considering the newly opened file being already polled, should it have a
    fd for which the "please-remove" has not been procesed yet. In this
    case, no further events would be seen from the device.
    
    Signed-off-by: Mihail Konev <k.mvc@ya.ru>
    Regressed-in: 52d6a1e832a5e62289dd4f32824ae16a78dfd7e8
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97880
    Patchwork: https://patchwork.freedesktop.org/patch/113763/
    Hit-and-Reduced-by: Hans de Goede <hdegoede@redhat.com>
    Reviewed-and-Reduced-by: Peter Hutterer <peter.hutterer@who-t.net>
    Reviewed-by: Keith Packard <keithp@keithp.com>
    Signed-off-by: Keith Packard <keithp@keithp.com>

commit 9cf0bd4d4507dca6234024605b14724713f2109e
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Oct 5 18:28:45 2016 +0900

    xf86Cursor: Take the input lock in xf86Set/MoveCursor
    
    Prevents the HW cursor from intermittently jumping around when the
    cursor image is changed while the cursor is being moved. This is hardly
    noticeable in normal operation but can be quite confusing when stepping
    through these codepaths in a debugger.
    
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>

commit 011ce3297d924e78ef0254b0451561946bd8be8d
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Oct 5 18:01:29 2016 +0900

    xf86Cursor: Use PRIME master xf86CursorScreenRec::HotX/Y for slaves
    
    xf86CursorScreenRec::HotX/Y contain 0 for PRIME slave screens.
    
    Fixes incorrect HW cursor position on PRIME slave screens.
    
    Also hoist the hotspot translation out from xf86ScreenSet/MoveCursor to
    xf86Set/MoveCursor, since the hotspot position is a property of the
    cursor, not the screen.
    
    v2:
    * Squash patches 1 & 2 of the v1 series, since it's basically the same
      problem
    * Use the master screen's xf86CursorScreenRec::HotX/Y instead of
      CursorRec::bits->x/yhot, since CursorRec::bits can be NULL (Hans de
      Goede)
    
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>

commit e3f53aa3a8dfc323c75837cd41e35b8e895d547e
Author: Adam Jackson <ajax@redhat.com>
Date:   Thu Oct 6 14:42:34 2016 -0400

    glx/dri2: Don't include drm headers
    
    They're not needed, and they won't be present on win32.
    
    Signed-off-by: Adam Jackson <ajax@redhat.com>
    Reviewed-by: Emil Velikov <emil.l.veikov@gmail.com>

commit 97a8353ec1192d8d3bd2ebb99e5687cb91427e09
Author: Peter Harris <pharris@opentext.com>
Date:   Thu Sep 29 11:17:48 2016 -0400

    Fix id in error when resource does not exist
    
    Always set client->errorValue before returning an error.
    
    Test program:
    
    int main(int argc, char *argv[]) {
        int screen = 0;
        xcb_connection_t *c = xcb_connect(NULL, &screen);
        if (!c) {
            printf("Cannot connect\n");
            return 1;
        }
    
        xcb_void_cookie_t tok = xcb_free_gc_checked(c, BAD_VALUE);
        xcb_g_context_error_t *err = (xcb_g_context_error_t *)xcb_request_check(c, tok);
        if (!err) {
            printf("Unexpected request success\n");
            return 1;
        }
        if (err->bad_value != BAD_VALUE) {
            printf("Error: Got 0x%X, expected 0x%X\n", err->bad_value, BAD_VALUE);
            return 1;
        }
        printf("Success! Got expected bad value of 0x%X\n", BAD_VALUE);
        return 0;
    }
    
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Signed-off-by: Peter Harris <pharris@opentext.com>

commit f4a41155479e68bf55740c1dfffafc78e4c02087
Author: Adam Jackson <ajax@redhat.com>
Date:   Wed Oct 5 12:34:34 2016 -0400

    glamor: Use eglGetPlatformDisplay{,EXT} if we can
    
    eglGetDisplay forces the implementation to guess which kind of display
    it's been handed. glvnd does something different from Mesa, and in
    general it's impossible for the library to get this right. Add a new
    inline that gets the logic right, and works around a quirk in epoxy.
    
    Signed-off-by: Adam Jackson <ajax@redhat.com>
    Reviewed-by: Eric Anholt <eric@anholt.net>

commit 95d3980c7c991b2cc8dcadac173635641ae15865
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Oct 5 17:29:36 2016 +0900

    test: Use $XSERVER_BUILDDIR for Xvfb executable path
    
    Fixes make check with out-of-tree builds.
    
    Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
    Reviewed-by: Keith Packard <keithp@keithp.com>
    Reviewed-by: Eric Anholt <eric@anholt.net>

commit cc69d4f110bd8a87b9e6c238ebebf8d85cbd93ec
Author: Emil Velikov <emil.l.velikov@gmail.com>
Date:   Thu Sep 29 18:35:04 2016 +0100

    xfree86/dri: remove libdrm runtime checks
    
    As of last commit all the places in our configure.ac require version
    2.3.1 (released back in 2007) or later. With the latter introducing the
    1.3.0 version, as returned by drmGetLibVersion.
    
    Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
    Reviewed-by: Adam Jackson <ajax@redhat.com>

commit 962962e978e5cededc20e577a36f77eb24d14bda
Author: Emil Velikov <emil.l.velikov@gmail.com>
Date:   Thu Sep 29 18:35:03 2016 +0100

    configure.ac: bump the required libdrm version to 2.3.1
    
    It fixes a bug where the version reported by drmGetLibVersion() was
    'wrong'. See libdrm commit 79038751ffe("libdrm: add support for server
    side functionality in libdrm") for details.
    
    Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
    Reviewed-by: Adam Jackson <ajax@redhat.com>

commit 74a8b320fa5068cd86d8b8b8e73fa92caae9a8a6
Author: Emil Velikov <emil.l.velikov@gmail.com>
Date:   Thu Sep 29 18:35:02 2016 +0100

    configure.ac: use $LIBDRM over libdrm when using pkg-config
    
    The former contains the minimum required version which is required.
    Strictly speaking Xephyr/Xwayland may require version greater than the
    current 2.3.0, although I've personally haven't checked the specifics.
    
    Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
    Reviewed-by: Adam Jackson <ajax@redhat.com>

commit 45e1220486139c483a69366323f8f590beffa19d
Author: Emil Velikov <emil.l.velikov@gmail.com>
Date:   Thu Sep 29 18:35:01 2016 +0100

    configure.ac: default to DRI=yes on solaris platforms
    
    Afaict there's little-to-no reason/way one would want xserver without
    DRI support on Solaris platforms.
    
    This will allow us to simplify/fix all the libdrm detection in the next
    commit.
    
    Cc: Alan Coopersmith <alan.coopersmith@oracle.com>
    Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
    Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    Reviewed-by: Adam Jackson <ajax@redhat.com>

commit 501d8e2beb337e072c93c9310fcd927a099b9c3b
Author: Emil Velikov <emil.l.velikov@gmail.com>
Date:   Thu Sep 29 18:41:19 2016 +0100

    configure.ac: remove --enable-aiglx option
    
    Presently the option guards both direct and accelerated indirect GLX. As
    such when one toggles it off they end up without any acceleration.
    
    Remove the option all together until we have the time to split/rework
    things.
    
    Cc: Jon Turney <jon.turney@dronecode.org.uk>
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>

commit 7ec350ddd42479595f0ea88f86085af941913617
Author: Emil Velikov <emil.l.velikov@gmail.com>
Date:   Thu Sep 29 18:41:18 2016 +0100

    xfree86: remove aiglx cmd/xorg.conf option
    
    The option is misleading and using it leads to disabling both direct and
    accelerated indirect GLX. In such cases the xserver GLX attempts to
    match DRISW (IGLX) configs with the DRI2/3 ones (direct GLX) leading to
    all sorts of fun experience.
    
    Remove the option until we get a clear split and control over direct vs
    indirect GLX.
    
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>

commit 04ef8558a731bf070abf1b40c7e6b54aad8f5f31
Author: Emil Velikov <emil.l.velikov@gmail.com>
Date:   Thu Sep 29 18:41:17 2016 +0100

    glx: drisw is not accelerated IGLX, reflect that in log messages
    
    The messages from glxdricommon.c (used by drisw) still have the A, but
    at least we're don't have it locally.
    
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>

commit 1c2fcb95484777ca9aa80b3f814ad64e81f825f1
Author: Olivier Fourdan <ofourdan@redhat.com>
Date:   Wed Oct 5 08:36:21 2016 +0200

    glamor: Fix pixmap offset for bitplane in glamor_copy_fbo_cpu
    
    Commit cba28d5 - "glamor: Handle bitplane in glamor_copy_fbo_cpu"
    introduced a regression as the computed pixmap offset would not match
    the actual coordinates and write data elsewhere in memory causing a
    segfault in fbBltOne().
    
    Translate the pixmap coordinates so that the data is read and written at
    the correct location.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97974
    Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
    Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer@amd.com>

commit a6e85e6330adcdcbcd939c0963daaecc96d41a2a
Author: Jonas Ådahl <jadahl@gmail.com>
Date:   Tue Sep 13 15:17:08 2016 +0800

    xwayland: Add pointer warp emulator
    
    Emulate pointer warps by locking the pointer and sending relative
    motion events instead of absolute. X will keep track of the "fake"
    pointer cursor position given the relative motion events, and the
    client warping the cursor will warp the faked cursor position.
    
    Various requirements need to be met for the pointer warp emulator to
    enable:
    
    The cursor must be invisible: since it would not be acceptable that a
    fake cursor position would be different from the visual representation
    of the cursor, emulation can only be done when there is no visual
    representation done by the Wayland compositor. Thus, for the emulator
    to enable, the cursor must be hidden, and would the cursor be displayed
    while the emulator is active, the emulator would be destroyed.
    
    The window that is warped within must be likely to have pointer focus.
    For example, warping outside of the window region will be ignored.
    
    The pointer warp emulator will disable itself once the fake cursor
    position leaves the window region, or the cursor is made visible.
    
    This makes various games depending on pointer warping (such as 3D
    first-person shooters and stategy games using click-to-drag-map like
    things) work.
    
    Signed-off-by: Jonas Ådahl <jadahl@gmail.com>

commit 467ab142fff926e1475440dd5f649a49f45808fa
Author: Jonas Ådahl <jadahl@gmail.com>
Date:   Tue Sep 13 15:17:07 2016 +0800

    xwayland: Translate a pointer grab with confineTo to pointer confinement
    
    Translate grabbing a pointer device with confineTo set to a window into
    confining the Wayland pointer using the pointer constraints protocol.
    This makes clients that depend on the pointer not going outside of the
    window region, such as certain games and virtual machines viewers, to
    function more properly.
    
    Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
    Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>

commit ca7b593fbe54bc9a0b44037e62e4b4401cbd375e
Author: Jonas Ådahl <jadahl@gmail.com>
Date:   Thu Sep 29 10:42:13 2016 +0800

    xwayland: Bind pointer constraints global
    
    Will be used by the pointer warp emulator.
    
    Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
    Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>

commit c14a8c6cc0fcd56c380d1220c2a8f04b74edee93
Author: Jonas Ådahl <jadahl@gmail.com>
Date:   Tue Sep 13 15:17:05 2016 +0800

    xwayland: Put getting a xwl_window from a Window in a helper
    
    Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
    Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>

commit b4644ce8d3420447a8e5a2339238968da0a59de7
Author: Jonas Ådahl <jadahl@gmail.com>
Date:   Tue Sep 13 15:17:04 2016 +0800

    xwayland: Set unaccelerated pointer motion delta if available
    
    If there was an relative pointer motion within the same frame as an
    absolute pointer motion, provide both the absolute coordinate and the
    unaccelerated delta when setting the valuator mask.
    
    If a frame contained only a relative motion, queue an absolute motion
    with an unchanged position, but still pass the unaccelerated motion
    event.
    
    If the wl_seat advertised by the compositor is not new enough, assume
    each relative and absolute pointer motion arrives within their own
    separate frames.
    
    Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
    Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>

commit aa9634d03bc2434dfd25476529eccb14e46fcfdc
Author: Jonas Ådahl <jadahl@gmail.com>
Date:   Tue Sep 13 15:17:03 2016 +0800

    xwayland: Dispatch pointer motion events on wl_pointer.frame if possible
    
    Wait until wl_pointer.frame with dispatching the pointer motion event,
    if wl_pointer.frame is supported by the compositor. This will later be
    used to combine unaccelerated motion deltas with the absolute motion
    delta.
    
    Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
    Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>

commit 42e8902395cb27af5c28306abd577a92c467a62d
Author: Krzysztof Sobiecki <sobkas@gmail.com>
Date:   Tue Sep 13 22:23:49 2016 +0800

    xwayland: Add a new input device used for pointer warping/locking
    
    Generating relative and absolute movement events from the same input
    device is problematic, because an absolute pointer device doesn't
    expect to see any relative motion events. To be able to generate
    relative pointer motion events including unaccelerated deltas, create a
    secondary pointer device 'xwayland-relative-pointer', and use that for
    emitting relative motion events.
    
    Signed-off-by: Krzysztof Sobiecki <sobkas@gmail.com>
    Signed-off-by: Jonas Ådahl <jadahl@gmail.com>

commit 011ada724afdba8955f1d4844b306e61390eead8
Author: Jonas Ådahl <jadahl@gmail.com>
Date:   Tue Sep 13 15:17:01 2016 +0800

    xwayland: Move pointer button initialization into helper
    
    We'll later use this for initializing buttons for the relative pointer
    since they need to be the same.
    
    Signed-off-by: Jonas Ådahl <jadahl@gmail.com>

commit a77d0715c6272cc1778a54dccd8cb68dc28cd761
Author: Jonas Ådahl <jadahl@gmail.com>
Date:   Tue Sep 13 15:17:00 2016 +0800

    xwayland: Split up device class init/release into functions
    
    Put device class initialization in init_[device_class](xwl_seat) and
    releasing in release_[device class](xwl_seat). The purpose is to make
    it easier to add more type of initialization here later, without making
    the function too large.
    
    Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
    Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>

commit 9037ba736a0424feee2fb6ac20cf7687613dc452
Author: Jonas Ådahl <jadahl@gmail.com>
Date:   Thu Sep 29 10:40:01 2016 +0800

    xwayland: Bind the relative pointer manager
    
    Will be used for getting unaccelerated motion events and later for
    relative motions used by a pointer warp emulator.
    
    Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
    Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>

commit 0fae3be0686cae746e03d6e4592f97278cc2275d
Author: Jonas Ådahl <jadahl@gmail.com>
Date:   Tue Sep 13 15:16:57 2016 +0800

    dix: Add valuator_mask_set_absolute_unaccelerated
    
    Add a valuator mask setter for setting absolute coordinate combined
    with unaccelerated motion deltas. This will later be used by Xwayland
    to combine a wl_pointer.motion() event with the unaccelerated delta of
    a wp_relative_pointer.relative_motion() event.
    
    Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
    Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>

commit bbd4854f81ebba1119202c5f6ff4679c62afec1f
Author: Carlos Garnacho <carlosg@gnome.org>
Date:   Tue Sep 27 19:03:26 2016 +0200

    xwayland: Apply touch abs axes transformation before posting events
    
    The way we map the touch absolute device to screen coordinates can't
    work across wl_output mode and geometry events. Instead, set up
    a fixed coordinate space, and transform touch events according to
    the screen coordinate space as they happen.
    
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Signed-off-by: Carlos Garnacho <carlosg@gnome.org>

commit ee526285882995289846648f3122c4295e3e8284
Author: Carlos Garnacho <carlosg@gnome.org>
Date:   Wed Sep 28 12:35:36 2016 +0200

    xwayland: Apply "last pointer window" check only to the pointer device
    
    The checks in xwayland's XYToWindow handler pretty much assumes that the
    sprite is managed by the wl_pointer, which is not entirely right, given
    1) The Virtual Core Pointer may be controlled from other interfaces, and
    2) there may be other SpriteRecs than the VCP's.
    
    This makes XYToWindow calls return a sprite trace with just the root
    window if any of those two assumptions are broken, eg. on touch events.
    
    So turn the check upside down, first assume that the default XYToWindow
    proc behavior is right, and later cut down the spriteTrace if the
    current device happens to be the pointer and is out of focus. We work
    our way to the device's lastSlave here so as not to break assumption #1
    above.
    
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Signed-off-by: Carlos Garnacho <carlosg@gnome.org>
    Acked-by: Olivier Fourdan <ofourdan@redhat.com>

commit 2b6a068d21997ca812e665ed058e72eb4626c129
Author: Keith Packard <keithp@keithp.com>
Date:   Mon Oct 3 15:37:03 2016 -0700

    fb: XYPixmap format PutImage includes all planes in depth
    
    Unlike GetImage, for which the provided planemask restricts the data
    delivered, for PutImage in XYPixmap format, all of the planes in the
    drawable depth are sent and those outside the plane mask are simply
    ignored.
    
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Signed-off-by: Keith Packard <keithp@keithp.com>

commit c9b8ce73927a43ed82b267d1c1985445f24827cc
Author: Mark Yao <mark.yao@rock-chips.com>
Date:   Fri Sep 30 16:42:35 2016 +0800

    glamor: spans: fixup wrong count on glDrawArrays
    
    In commit 9e9fcf5 (glamor: Add a helper function for the common
    GL_QUADS fallback pattern.), the glDrawArrays count change was
    accidentally changed to nbox.
    
    Fixes xlogo with MESA_GL_VERSION_OVERRIDE=2.1 and
    MESA_GLSL_VERSION_OVERRIDE=120
    
    Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
    Reviewed-by: Eric Anholt <eric@anholt.net>

commit 2aca2dadda4cc9c378049457885d33a4eede9768
Author: Eric Anholt <eric@anholt.net>
Date:   Sat Sep 24 14:42:28 2016 -0700

    glamor: Fix link failure on GLES2.
    
    Current Mesa requires that the precision qualifier on uniforms matches
    between stages, even if (as in this case) the uniform isn't used in
    one of the stages.
    
    Signed-off-by: Eric Anholt <eric@anholt.net>
    Reviewed-by: Keith Packard <keithp@keithp.com>

commit 20fcdfcf39497fe44d2a3200338523effb8e2bc6
Author: Eric Anholt <eric@anholt.net>
Date:   Sat Sep 24 14:30:27 2016 -0700

    glamor: Remove #if 0-ed picture dumping code.
    
    I don't think anybody has run this code since it was pulled into the
    server.
    
    Signed-off-by: Eric Anholt <eric@anholt.net>
    Reviewed-by: Keith Packard <keithp@keithp.com>

commit 4b5326aeba539249fcded91bf7806a708eeca651
Author: Eric Anholt <eric@anholt.net>
Date:   Sat Sep 24 14:04:14 2016 -0700

    glamor: Remove many unused glamor util functions.
    
    Signed-off-by: Eric Anholt <eric@anholt.net>
    Reviewed-by: Keith Packard <keithp@keithp.com>

commit 117d614d1ba324bdb02c50a430c2e0d22a384f03
Author: Eric Anholt <eric@anholt.net>
Date:   Sat Sep 24 22:26:17 2016 +0300

    glamor: Require GL_OES_texture_border_clamp for GLES2.
    
    The extension came out in 2000, and all Mesa-supported hardware that
    can do glamor supports it.  We were already relying on the ARB version
    being present on desktop.
    
    Signed-off-by: Eric Anholt <eric@anholt.net>
    Reviewed-by: Keith Packard <keithp@keithp.com>

commit 7a5ddf8da5ed817aa2dd6f7af1b9197a5ceec60b
Author: Adam Jackson <ajax@redhat.com>
Date:   Wed Sep 28 15:27:20 2016 -0400

    test: Re-enable a couple of GetImage tests
    
    Fixed in 6c6f09aac.
    
    Signed-off-by: Adam Jackson <ajax@redhat.com>
    Reviewed-by: Eric Anholt <eric@anholt.net>

commit c7a9161da5eb80ef0444601621b52314255b0ce5
Author: Francois Tigeot <ftigeot@wolfpond.org>
Date:   Fri Sep 23 11:36:49 2016 +0200

    Enable XTRANS_SEND_FDS on FreeBSD, DragonFly and OpenBSD
    
    This code is based on local patches which had been sitting in
    FreeBSD and OpenBSD ports.
    
    Reviewed-by: Matthieu Herrb <matthieu@herrb.eu>
    Signed-off-by: François Tigeot <ftigeot@wolfpond.org>

commit 6c6f09aac7f1d1367a042087b7681c7fdf1d1e0f
Author: Keith Packard <keithp@keithp.com>
Date:   Sun Sep 25 14:19:08 2016 +0300

    xace: Don't censor window borders
    
    GetImage is allowed to return window border contents, so don't remove
    that from the returned image.
    
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Signed-off-by: Keith Packard <keithp@keithp.com>

commit 380c2ca25ec4dd330f938e382ff4af60bc253785
Author: Hans de Goede <hdegoede@redhat.com>
Date:   Fri Sep 23 14:11:52 2016 +0300

    XF86VidMode: Fix free() on walked pointer
    
    Based on: https://patchwork.freedesktop.org/patch/85636/
    
    Rewritten to just not walk the pointer.
    
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Reviewed-by: Emi Velikov <emil.l.velikov@gmail.com>

commit 220d327ee00ec1278d50d4ba8cd20612e8b77c8f
Author: Hans de Goede <hdegoede@redhat.com>
Date:   Fri Sep 23 14:06:52 2016 +0300

    Xext: Fix a memory leak
    
    Based on: https://patchwork.freedesktop.org/patch/85636/
    
    Rewritten to also free the resources allocated by
    panoramix_setup_ids().
    
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Reviewed-by: Emi Velikov <emil.l.velikov@gmail.com>

commit 3abf791ab82cb3dc7eacd0317fe0262a71340753
Author: Michael Thayer <michael.thayer@oracle.com>
Date:   Fri Sep 16 17:51:25 2016 +0200

    modesetting: only fall back to drmModeSetCursor() on -EINVAL
    
    This change effectively reverts commit 074cf58.  We were falling back from
    drmModeSetCursor2() to drmModeSetCursor() whenever the first failed.  This
    fall-back only makes sense on pre-mid-2013 kernels which implemented the
    cursor_set hook but not cursor_set2, and in this case the call to
    drmModeSetCursor2() will always return -EINVAL.  Specifically, a return
    value of -ENXIO usually means that neither are supported.
    
    Signed-off-by: Michael Thayer <michael.thayer@oracle.com>
    [hdegoede@redhat.com: initialize ret to -EINVAL]
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>

commit 363f4273dd4aec3e26cc57ecb6c20f27e6c813d8
Author: Daniel Martin <consume.noise@gmail.com>
Date:   Fri Dec 11 12:05:22 2015 +0100

