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

[Git][xorg-team/xserver/xorg-server][debian-unstable] 10 commits: Fix RandR leasing for more than 1 simultaneously active lease.



Title: GitLab

Timo Aaltonen pushed to branch debian-unstable at X Strike Force / xserver / xorg-server

Commits:

7 changed files:

Changes:

  • configure.ac
    ... ... @@ -26,8 +26,8 @@ dnl
    26 26
     dnl Process this file with autoconf to create configure.
    
    27 27
     
    
    28 28
     AC_PREREQ(2.60)
    
    29
    -AC_INIT([xorg-server], 1.20.13, [https://gitlab.freedesktop.org/xorg/xserver/issues], xorg-server)
    
    30
    -RELEASE_DATE="2021-07-29"
    
    29
    +AC_INIT([xorg-server], 1.20.14, [https://gitlab.freedesktop.org/xorg/xserver/issues], xorg-server)
    
    30
    +RELEASE_DATE="2021-12-15"
    
    31 31
     RELEASE_NAME="Lemon Pepper Chicken"
    
    32 32
     AC_CONFIG_SRCDIR([Makefile.am])
    
    33 33
     AC_CONFIG_MACRO_DIR([m4])
    

  • debian/changelog
    1
    +xorg-server (2:1.20.14-1) unstable; urgency=medium
    
    2
    +
    
    3
    +  * New upstream release.
    
    4
    +
    
    5
    + -- Timo Aaltonen <tjaalton@debian.org>  Tue, 11 Jan 2022 16:21:08 +0200
    
    6
    +
    
    1 7
     xorg-server (2:1.20.13-3) unstable; urgency=high
    
    2 8
     
    
    3 9
       * Team upload.
    

  • hw/xfree86/drivers/modesetting/driver.c
    ... ... @@ -1040,6 +1040,14 @@ PreInit(ScrnInfoPtr pScrn, int flags)
    1040 1040
     #endif
    
    1041 1041
         }
    
    1042 1042
     
    
    1043
    +    /*
    
    1044
    +     * Use "atomic modesetting disable" request to detect if the kms driver is
    
    1045
    +     * atomic capable, regardless if we will actually use atomic modesetting.
    
    1046
    +     * This is effectively a no-op, we only care about the return status code.
    
    1047
    +     */
    
    1048
    +    ret = drmSetClientCap(ms->fd, DRM_CLIENT_CAP_ATOMIC, 0);
    
    1049
    +    ms->atomic_modeset_capable = (ret == 0);
    
    1050
    +
    
    1043 1051
         if (xf86ReturnOptValBool(ms->drmmode.Options, OPTION_ATOMIC, FALSE)) {
    
    1044 1052
             ret = drmSetClientCap(ms->fd, DRM_CLIENT_CAP_ATOMIC, 1);
    
    1045 1053
             ms->atomic_modeset = (ret == 0);
    

  • hw/xfree86/drivers/modesetting/driver.h
    ... ... @@ -108,6 +108,7 @@ typedef struct _modesettingRec {
    108 108
          * Page flipping stuff.
    
    109 109
          *  @{
    
    110 110
          */
    
    111
    +    Bool atomic_modeset_capable;
    
    111 112
         Bool atomic_modeset;
    
    112 113
         Bool pending_modeset;
    
    113 114
         /** @} */
    

  • hw/xfree86/drivers/modesetting/present.c
    ... ... @@ -252,8 +252,11 @@ ms_present_check_unflip(RRCrtcPtr crtc,
    252 252
         if (num_crtcs_on == 0)
    
    253 253
             return FALSE;
    
    254 254
     
    
    255
    -    /* Check stride, can't change that on flip */
    
    256
    -    if (!ms->atomic_modeset &&
    
    255
    +    /*
    
    256
    +     * Check stride, can't change that reliably on flip on some drivers, unless
    
    257
    +     * the kms driver is atomic_modeset_capable.
    
    258
    +     */
    
    259
    +    if (!ms->atomic_modeset_capable &&
    
    257 260
             pixmap->devKind != drmmode_bo_get_pitch(&ms->drmmode.front_bo))
    
    258 261
             return FALSE;
    
    259 262
     
    

  • meson.build
    ... ... @@ -3,7 +3,7 @@ project('xserver', 'c',
    3 3
                 'buildtype=debugoptimized',
    
    4 4
                 'c_std=gnu99',
    
    5 5
             ],
    
    6
    -        version: '1.20.13',
    
    6
    +        version: '1.20.14',
    
    7 7
             meson_version: '>= 0.42.0',
    
    8 8
     )
    
    9 9
     add_project_arguments('-DHAVE_DIX_CONFIG_H', language: 'c')
    

  • randr/rrlease.c
    ... ... @@ -295,7 +295,7 @@ ProcRRCreateLease(ClientPtr client)
    295 295
         if (rc != Success)
    
    296 296
             goto bail_lease;
    
    297 297
     
    
    298
    -    xorg_list_add(&scr_priv->leases, &lease->list);
    
    298
    +    xorg_list_add(&lease->list, &scr_priv->leases);
    
    299 299
     
    
    300 300
         if (!AddResource(stuff->lid, RRLeaseType, lease)) {
    
    301 301
             close(fd);
    


  • Reply to: