Source-Changes-HG archive

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

[xsrc/xorg]: xsrc/external/mit/xorg-server/dist initial import of xorg-server...



details:   https://anonhg.NetBSD.org/xsrc/rev/9a5a3e9a5232
branches:  xorg
changeset: 10790:9a5a3e9a5232
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Aug 23 22:30:42 2021 +0000

description:
initial import of xorg-server-1.20.13

diffstat:

 external/mit/xorg-server/dist/ChangeLog                                |  31 ++++++++++
 external/mit/xorg-server/dist/configure                                |  30 ++++----
 external/mit/xorg-server/dist/configure.ac                             |   4 +-
 external/mit/xorg-server/dist/hw/xfree86/drivers/modesetting/present.c |   3 +
 external/mit/xorg-server/dist/m4/libtool.m4                            |   2 +-
 external/mit/xorg-server/dist/meson.build                              |   2 +-
 external/mit/xorg-server/dist/present/present.c                        |  10 ++-
 external/mit/xorg-server/dist/randr/randr.c                            |  27 ++++++++
 external/mit/xorg-server/dist/randr/randrstr.h                         |   2 +
 9 files changed, 91 insertions(+), 20 deletions(-)

diffs (287 lines):

diff -r 139d7f4b7d14 -r 9a5a3e9a5232 external/mit/xorg-server/dist/ChangeLog
--- a/external/mit/xorg-server/dist/ChangeLog   Mon Aug 23 22:21:45 2021 +0000
+++ b/external/mit/xorg-server/dist/ChangeLog   Mon Aug 23 22:30:42 2021 +0000
@@ -1,3 +1,34 @@
+commit 86a72cb1927dd91132d231bb7920b651704601ef
+Author: Matt Turner <mattst88%gmail.com@localhost>
+Date:   Thu Jul 29 11:23:15 2021 -0700
+
+    xserver 1.20.13
+    
+    Signed-off-by: Matt Turner <mattst88%gmail.com@localhost>
+
+commit f85e4edba489316950fc3422f39e3c2ef8fb1ac5
+Author: Łukasz Spintzyk <lukasz.spintzyk%synaptics.com@localhost>
+Date:   Thu Jul 22 13:12:05 2021 +0200
+
+    modesetting: unflip not possible when glamor is not set
+    
+    This is fixing crashes of xfce when running under qemu
+    
+    (cherry picked from commit 8836b9d243444031b6396d39d345f2f83b5fa6a9)
+
+commit b03d7184b7906121a432b05473675937ab6c0f1e
+Author: Łukasz Spintzyk <lukasz.spintzyk%synaptics.com@localhost>
+Date:   Mon Jul 19 14:25:28 2021 +0200
+
+    present: fallback get_crtc to return crtc belonging to screen with present extension
+    
+    Since crtc can belong to secondary output that may not have present
+    extension enabled we should fallback to first enabled crtc or fake crtc.
+    
+    Fix for issue xorg/xserver#1195
+    
+    (cherry picked from commit d6c02ffd9c910637f6b3b7249507998e9e45f93c)
+
 commit b88ad0b342c954109bfd4b1d32c04ff55545cb0f
 Author: Matt Turner <mattst88%gmail.com@localhost>
 Date:   Thu Jul 8 12:15:21 2021 -0700
diff -r 139d7f4b7d14 -r 9a5a3e9a5232 external/mit/xorg-server/dist/configure
--- a/external/mit/xorg-server/dist/configure   Mon Aug 23 22:21:45 2021 +0000
+++ b/external/mit/xorg-server/dist/configure   Mon Aug 23 22:30:42 2021 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for xorg-server 1.20.12.
+# Generated by GNU Autoconf 2.69 for xorg-server 1.20.13.
 #
 # Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>.
 #
@@ -651,8 +651,8 @@
 # Identity of this package.
 PACKAGE_NAME='xorg-server'
 PACKAGE_TARNAME='xorg-server'
-PACKAGE_VERSION='1.20.12'
-PACKAGE_STRING='xorg-server 1.20.12'
+PACKAGE_VERSION='1.20.13'
+PACKAGE_STRING='xorg-server 1.20.13'
 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/xserver/issues'
 PACKAGE_URL=''
 
@@ -2045,7 +2045,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures xorg-server 1.20.12 to adapt to many kinds of systems.
+\`configure' configures xorg-server 1.20.13 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -2116,7 +2116,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of xorg-server 1.20.12:";;
+     short | recursive ) echo "Configuration of xorg-server 1.20.13:";;
    esac
   cat <<\_ACEOF
 
@@ -2307,10 +2307,10 @@
                           org.x)
   --with-bundle-version=VERSION
                           Version to use for X11.app's CFBundleVersion
-                          (default: 1.20.12)
+                          (default: 1.20.13)
   --with-bundle-version-string=VERSION
                           Version to use for X11.app's
-                          CFBundleShortVersionString (default: 1.20.12)
+                          CFBundleShortVersionString (default: 1.20.13)
   --with-sparkle-feed-url=URL
                           URL for the Sparkle feed (default:
                           https://www.xquartz.org/releases/sparkle/release.xml)
@@ -2567,7 +2567,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-xorg-server configure 1.20.12
+xorg-server configure 1.20.13
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -3276,7 +3276,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by xorg-server $as_me 1.20.12, which was
+It was created by xorg-server $as_me 1.20.13, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -3624,7 +3624,7 @@
 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 
-RELEASE_DATE="2021-07-08"
+RELEASE_DATE="2021-07-29"
 RELEASE_NAME="Lemon Pepper Chicken"
 
 
@@ -4138,7 +4138,7 @@
 
 # Define the identity of the package.
  PACKAGE='xorg-server'
- VERSION='1.20.12'
+ VERSION='1.20.13'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -16502,7 +16502,7 @@
          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
        10.[012][,.]*)
          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
-       10.*)
+       10.*|11.*)
          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
       esac
     ;;
@@ -23773,7 +23773,7 @@
 if test "${with_bundle_version+set}" = set; then :
   withval=$with_bundle_version;  BUNDLE_VERSION="${withval}"
 else
-   BUNDLE_VERSION="1.20.12"
+   BUNDLE_VERSION="1.20.13"
 fi
 
 
@@ -33618,7 +33618,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by xorg-server $as_me 1.20.12, which was
+This file was extended by xorg-server $as_me 1.20.13, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -33684,7 +33684,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-xorg-server config.status 1.20.12
+xorg-server config.status 1.20.13
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
diff -r 139d7f4b7d14 -r 9a5a3e9a5232 external/mit/xorg-server/dist/configure.ac
--- a/external/mit/xorg-server/dist/configure.ac        Mon Aug 23 22:21:45 2021 +0000
+++ b/external/mit/xorg-server/dist/configure.ac        Mon Aug 23 22:30:42 2021 +0000
@@ -26,8 +26,8 @@
 dnl Process this file with autoconf to create configure.
 
 AC_PREREQ(2.60)
-AC_INIT([xorg-server], 1.20.12, [https://gitlab.freedesktop.org/xorg/xserver/issues], xorg-server)
-RELEASE_DATE="2021-07-08"
+AC_INIT([xorg-server], 1.20.13, [https://gitlab.freedesktop.org/xorg/xserver/issues], xorg-server)
+RELEASE_DATE="2021-07-29"
 RELEASE_NAME="Lemon Pepper Chicken"
 AC_CONFIG_SRCDIR([Makefile.am])
 AC_CONFIG_MACRO_DIR([m4])
diff -r 139d7f4b7d14 -r 9a5a3e9a5232 external/mit/xorg-server/dist/hw/xfree86/drivers/modesetting/present.c
--- a/external/mit/xorg-server/dist/hw/xfree86/drivers/modesetting/present.c    Mon Aug 23 22:21:45 2021 +0000
+++ b/external/mit/xorg-server/dist/hw/xfree86/drivers/modesetting/present.c    Mon Aug 23 22:30:42 2021 +0000
@@ -257,6 +257,9 @@
         pixmap->devKind != drmmode_bo_get_pitch(&ms->drmmode.front_bo))
         return FALSE;
 
+    if (!ms->drmmode.glamor)
+        return FALSE;
+
 #ifdef GBM_BO_WITH_MODIFIERS
     /* Check if buffer format/modifier is supported by all active CRTCs */
     gbm = glamor_gbm_bo_from_pixmap(screen, pixmap);
diff -r 139d7f4b7d14 -r 9a5a3e9a5232 external/mit/xorg-server/dist/m4/libtool.m4
--- a/external/mit/xorg-server/dist/m4/libtool.m4       Mon Aug 23 22:21:45 2021 +0000
+++ b/external/mit/xorg-server/dist/m4/libtool.m4       Mon Aug 23 22:30:42 2021 +0000
@@ -1076,7 +1076,7 @@
          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
        10.[[012]][[,.]]*)
          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
-       10.*)
+       10.*|11.*)
          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
       esac
     ;;
diff -r 139d7f4b7d14 -r 9a5a3e9a5232 external/mit/xorg-server/dist/meson.build
--- a/external/mit/xorg-server/dist/meson.build Mon Aug 23 22:21:45 2021 +0000
+++ b/external/mit/xorg-server/dist/meson.build Mon Aug 23 22:30:42 2021 +0000
@@ -3,7 +3,7 @@
             'buildtype=debugoptimized',
             'c_std=gnu99',
         ],
-        version: '1.20.12',
+        version: '1.20.13',
         meson_version: '>= 0.42.0',
 )
 add_project_arguments('-DHAVE_DIX_CONFIG_H', language: 'c')
diff -r 139d7f4b7d14 -r 9a5a3e9a5232 external/mit/xorg-server/dist/present/present.c
--- a/external/mit/xorg-server/dist/present/present.c   Mon Aug 23 22:21:45 2021 +0000
+++ b/external/mit/xorg-server/dist/present/present.c   Mon Aug 23 22:30:42 2021 +0000
@@ -59,11 +59,19 @@
 {
     ScreenPtr                   screen = window->drawable.pScreen;
     present_screen_priv_ptr     screen_priv = present_screen_priv(screen);
+    RRCrtcPtr                   crtc = NULL;
 
     if (!screen_priv)
         return NULL;
 
-    return screen_priv->get_crtc(screen_priv, window);
+    crtc = screen_priv->get_crtc(screen_priv, window);
+    if (crtc && !present_screen_priv(crtc->pScreen)) {
+        crtc = RRFirstEnabledCrtc(screen);
+    }
+    if (crtc && !present_screen_priv(crtc->pScreen)) {
+        crtc = NULL;
+    }
+    return crtc;
 }
 
 /*
diff -r 139d7f4b7d14 -r 9a5a3e9a5232 external/mit/xorg-server/dist/randr/randr.c
--- a/external/mit/xorg-server/dist/randr/randr.c       Mon Aug 23 22:21:45 2021 +0000
+++ b/external/mit/xorg-server/dist/randr/randr.c       Mon Aug 23 22:30:42 2021 +0000
@@ -693,6 +693,33 @@
     return NULL;
 }
 
+RRCrtcPtr
+RRFirstEnabledCrtc(ScreenPtr pScreen)
+{
+    rrScrPriv(pScreen);
+    RROutputPtr output;
+    int i, j;
+
+    if (!pScrPriv)
+        return NULL;
+
+    if (pScrPriv->primaryOutput && pScrPriv->primaryOutput->crtc &&
+        pScrPriv->primaryOutput->pScreen == pScreen)
+        return pScrPriv->primaryOutput->crtc;
+
+    for (i = 0; i < pScrPriv->numCrtcs; i++) {
+        RRCrtcPtr crtc = pScrPriv->crtcs[i];
+
+        for (j = 0; j < pScrPriv->numOutputs; j++) {
+            output = pScrPriv->outputs[j];
+            if (output->crtc == crtc && crtc->mode)
+                return crtc;
+        }
+    }
+    return NULL;
+}
+
+
 CARD16
 RRVerticalRefresh(xRRModeInfo * mode)
 {
diff -r 139d7f4b7d14 -r 9a5a3e9a5232 external/mit/xorg-server/dist/randr/randrstr.h
--- a/external/mit/xorg-server/dist/randr/randrstr.h    Mon Aug 23 22:21:45 2021 +0000
+++ b/external/mit/xorg-server/dist/randr/randrstr.h    Mon Aug 23 22:30:42 2021 +0000
@@ -593,6 +593,8 @@
 
 extern _X_EXPORT RROutputPtr RRFirstOutput(ScreenPtr pScreen);
 
+extern _X_EXPORT RRCrtcPtr RRFirstEnabledCrtc(ScreenPtr pScreen);
+
 extern _X_EXPORT Bool RROutputSetNonDesktop(RROutputPtr output, Bool non_desktop);
 
 extern _X_EXPORT CARD16


Home | Main Index | Thread Index | Old Index