From a68dc013a33d867e65a7e76b3eec5947b862a5b4 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Sun, 30 Jul 2006 11:08:47 +0300 Subject: [PATCH 01/10] remove README (which doesn't exist) from EXTRA_DIST --- hw/xfree86/exa/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/exa/Makefile.am b/hw/xfree86/exa/Makefile.am index 1a2831c10..31682c425 100644 --- a/hw/xfree86/exa/Makefile.am +++ b/hw/xfree86/exa/Makefile.am @@ -25,4 +25,4 @@ exa.$(DRIVER_MAN_SUFFIX): exa.man -rm -f exa.$(DRIVER_MAN_SUFFIX) $(LN_S) exa.man exa.$(DRIVER_MAN_SUFFIX) -EXTRA_DIST = exa.man.pre README +EXTRA_DIST = exa.man.pre From ed0c807de9f07468385fcbd2e8a9c0737759a461 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Sun, 30 Jul 2006 11:08:54 +0300 Subject: [PATCH 02/10] bump to 1.1.99.3 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c14187eb7..46b128059 100644 --- a/configure.ac +++ b/configure.ac @@ -25,7 +25,7 @@ dnl Process this file with autoconf to create configure. AC_PREREQ(2.57) dnl This is the not the Xorg version number, it's the server version number. dnl Yes, that's weird. -AC_INIT([xorg-server], 1.1.99.2, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], xorg-server) +AC_INIT([xorg-server], 1.1.99.3, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], xorg-server) AC_CONFIG_SRCDIR([Makefile.am]) AM_INIT_AUTOMAKE([dist-bzip2 foreign]) AM_MAINTAINER_MODE From e87e68634d8eb66ab783e2802e2d5d12ff1031be Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Sun, 30 Jul 2006 11:11:59 +0300 Subject: [PATCH 03/10] remove .cvsignores from EXTRA_DIST --- hw/darwin/Makefile.am | 5 ----- 1 file changed, 5 deletions(-) diff --git a/hw/darwin/Makefile.am b/hw/darwin/Makefile.am index 8a5e981fe..542bfdb24 100644 --- a/hw/darwin/Makefile.am +++ b/hw/darwin/Makefile.am @@ -54,7 +54,6 @@ EXTRA_DIST = \ darwinKeyboard.c \ darwinKeyboard.h \ darwinXinput.c \ - iokit/.cvsignore \ iokit/xfIOKit.c \ iokit/xfIOKitCursor.c \ iokit/xfIOKit.h \ @@ -66,11 +65,8 @@ EXTRA_DIST = \ quartz/cr/crFrame.m \ quartz/cr/cr.h \ quartz/cr/crScreen.m \ - quartz/cr/.cvsignore \ quartz/cr/XView.h \ quartz/cr/XView.m \ - quartz/.cvsignore \ - quartz/fullscreen/.cvsignore \ quartz/fullscreen/fullscreen.c \ quartz/fullscreen/quartzCursor.c \ quartz/fullscreen/quartzCursor.h \ @@ -98,7 +94,6 @@ EXTRA_DIST = \ quartz/XDarwinStartup.c \ quartz/XDarwinStartup.man \ quartz/xpr/appledri.c \ - quartz/xpr/.cvsignore \ quartz/xpr/dri.c \ quartz/xpr/dri.h \ quartz/xpr/dristruct.h \ From bf2d7499c84c94f228d03b21448f5688b3cda1a8 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Sun, 30 Jul 2006 11:17:02 +0300 Subject: [PATCH 04/10] add securitysrv.h --- Xext/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xext/Makefile.am b/Xext/Makefile.am index fde0550ee..ad3f98edf 100644 --- a/Xext/Makefile.am +++ b/Xext/Makefile.am @@ -66,7 +66,7 @@ BUILTIN_SRCS += $(XINERAMA_SRCS) endif # Security extension: multi-level security to protect clients from each other -XCSECURITY_SRCS = security.c +XCSECURITY_SRCS = security.c securitysrv.h if XCSECURITY BUILTIN_SRCS += $(XCSECURITY_SRCS) From ecb7d43a76d507d04891ab7f189b23be5eccda51 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Sun, 30 Jul 2006 11:52:41 +0300 Subject: [PATCH 05/10] add sym.h to sources --- hw/xfree86/loader/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/xfree86/loader/Makefile.am b/hw/xfree86/loader/Makefile.am index 357af77b6..030672389 100644 --- a/hw/xfree86/loader/Makefile.am +++ b/hw/xfree86/loader/Makefile.am @@ -30,4 +30,5 @@ libloader_a_SOURCES = \ fontsym.c \ misym.c \ xf86sym.c \ + sym.h \ $(SPARC_SOURCES) From 24051ef97406f28c102cf46a78223400b61fdae2 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Sun, 30 Jul 2006 12:15:33 +0300 Subject: [PATCH 06/10] remove filename that's too long for tar --- hw/xprint/config/C/print/models/PSdefault/fonts/Makefile.am | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/xprint/config/C/print/models/PSdefault/fonts/Makefile.am b/hw/xprint/config/C/print/models/PSdefault/fonts/Makefile.am index 7cdfd8ee9..e7ddb6c0f 100644 --- a/hw/xprint/config/C/print/models/PSdefault/fonts/Makefile.am +++ b/hw/xprint/config/C/print/models/PSdefault/fonts/Makefile.am @@ -17,7 +17,6 @@ dist_xpc_DATA = \ LubalinGraph-Book.pmf \ LubalinGraph-DemiOblique.pmf \ LubalinGraph-Demi.pmf \ - NewCenturySchlbk-BoldItalic.pmf \ NewCenturySchlbk-Bold.pmf \ NewCenturySchlbk-Italic.pmf \ NewCenturySchlbk-Roman.pmf \ From 02daa6bb103e53e5a33db2bb6acbe57d0bf2c30e Mon Sep 17 00:00:00 2001 From: Matthew Allum Date: Mon, 31 Jul 2006 17:32:05 +0100 Subject: [PATCH 07/10] Improve XRes to; - Better estimate general pixmap memory usage. - Account for pixmaps shared between clients. - Account for window background and border pixmaps, and GC stripple and tile pixmaps. --- Xext/xres.c | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 63 insertions(+), 1 deletion(-) diff --git a/Xext/xres.c b/Xext/xres.c index 3e8231621..1617337bf 100644 --- a/Xext/xres.c +++ b/Xext/xres.c @@ -19,6 +19,8 @@ #include "swaprep.h" #include #include "pixmapstr.h" +#include "windowstr.h" +#include "gcstruct.h" #include "modinit.h" static int @@ -154,6 +156,7 @@ ProcXResQueryClientResources (ClientPtr client) swapl (&rep.length, n); swapl (&rep.num_types, n); } + WriteToClient (client,sizeof(xXResQueryClientResourcesReply),(char*)&rep); if(num_types) { @@ -185,13 +188,54 @@ ProcXResQueryClientResources (ClientPtr client) return (client->noClientException); } +static unsigned long +ResGetApproxPixmapBytes (PixmapPtr pix) +{ + unsigned long nPixels; + int bytesPerPixel; + + bytesPerPixel = pix->drawable.bitsPerPixel>>3; + nPixels = pix->drawable.width * pix->drawable.height; + + /* Divide by refcnt as pixmap could be shared between clients, + * so total pixmap mem is shared between these. + */ + return ( nPixels * bytesPerPixel ) / pix->refcnt; +} + static void ResFindPixmaps (pointer value, XID id, pointer cdata) { unsigned long *bytes = (unsigned long *)cdata; PixmapPtr pix = (PixmapPtr)value; - *bytes += (pix->devKind * pix->drawable.height); + *bytes += ResGetApproxPixmapBytes(pix); +} + +static void +ResFindWindowPixmaps (pointer value, XID id, pointer cdata) +{ + unsigned long *bytes = (unsigned long *)cdata; + WindowPtr pWin = (WindowPtr)value; + + if (pWin->backgroundState == BackgroundPixmap) + *bytes += ResGetApproxPixmapBytes(pWin->background.pixmap); + + if (pWin->border.pixmap != NULL && !pWin->borderIsPixel) + *bytes += ResGetApproxPixmapBytes(pWin->border.pixmap); +} + +static void +ResFindGCPixmaps (pointer value, XID id, pointer cdata) +{ + unsigned long *bytes = (unsigned long *)cdata; + GCPtr pGC = (GCPtr)value; + + if (pGC->stipple != NULL) + *bytes += ResGetApproxPixmapBytes(pGC->stipple); + + if (pGC->tile.pixmap != NULL && !pGC->tileIsPixel) + *bytes += ResGetApproxPixmapBytes(pGC->tile.pixmap); } static int @@ -218,6 +262,24 @@ ProcXResQueryClientPixmapBytes (ClientPtr client) FindClientResourcesByType(clients[clientID], RT_PIXMAP, ResFindPixmaps, (pointer)(&bytes)); + /* + * Make sure win background pixmaps also held to account. + */ + FindClientResourcesByType(clients[clientID], RT_WINDOW, + ResFindWindowPixmaps, + (pointer)(&bytes)); + + /* + * GC Tile & Stipple pixmaps too. + */ + FindClientResourcesByType(clients[clientID], RT_GC, + ResFindGCPixmaps, + (pointer)(&bytes)); + +#ifdef COMPOSITE + /* FIXME: include composite pixmaps too */ +#endif + rep.type = X_Reply; rep.sequenceNumber = client->sequence; rep.length = 0; From 3112a6c4f26d5e9258b8def7ce4109b4bd408c67 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 31 Jul 2006 10:25:31 -0700 Subject: [PATCH 08/10] Noting uses libdummy.a, so don't build it. Only libdummy-nonserver.a is actually used. --- hw/xfree86/Makefile.am | 1 - hw/xfree86/dummylib/Makefile.am | 11 +---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/hw/xfree86/Makefile.am b/hw/xfree86/Makefile.am index 525c4e0a2..67bfd80d9 100644 --- a/hw/xfree86/Makefile.am +++ b/hw/xfree86/Makefile.am @@ -40,7 +40,6 @@ XORG_LIBS = \ libosandcommon.la \ rac/librac.a \ parser/libxf86config.a \ - dummylib/libdummy.a \ dixmods/libdixmods.la \ @XORG_LIBS@ diff --git a/hw/xfree86/dummylib/Makefile.am b/hw/xfree86/dummylib/Makefile.am index bd69b570a..d89ee59a8 100644 --- a/hw/xfree86/dummylib/Makefile.am +++ b/hw/xfree86/dummylib/Makefile.am @@ -2,7 +2,7 @@ # libdummy-nonserver.a contains additional routines normally found in the # server for use in building the utilities like scanpci & the config tools -noinst_LIBRARIES = libdummy.a libdummy-nonserver.a +noinst_LIBRARIES = libdummy-nonserver.a INCLUDES = $(XORG_INCS) @@ -12,15 +12,6 @@ if NEED_STRLCAT STRL_SRCS = $(top_srcdir)/os/strlcat.c $(top_srcdir)/os/strlcpy.c endif -libdummy_a_SOURCES = getvalidbios.c getemptypci.c \ - pcitestmulti.c xf86allocscripi.c \ - xf86addrestolist.c xf86drvmsg.c xf86drvmsgverb.c \ - xf86getverb.c \ - xf86opt.c xf86screens.c xf86servisinit.c xf86verbose.c \ - #xf86errorf.c xf86errorfverb.c xf86msg.c xf86msgverb.c \ - #logvwrite.c verrorf.c xf86info.c xalloc.c fatalerror.c \ - #$(srcdir)/../os-support/shared/sigiostubs.c - libdummy_nonserver_a_SOURCES = \ fatalerror.c \ getvalidbios.c \ From 39169fd373b97f34923f6494d697d9429d0b8aa3 Mon Sep 17 00:00:00 2001 From: Matthew Allum Date: Tue, 1 Aug 2006 13:39:22 +0100 Subject: [PATCH 09/10] Back out 'mystery' spurious host window hints. --- hw/kdrive/ephyr/hostx.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/hw/kdrive/ephyr/hostx.c b/hw/kdrive/ephyr/hostx.c index 32a46dcf4..d0a2f2f95 100644 --- a/hw/kdrive/ephyr/hostx.c +++ b/hw/kdrive/ephyr/hostx.c @@ -533,15 +533,9 @@ hostx_screen_init (int width, int height, int buffer_height) /* Ask the WM to keep our size static */ size_hints = XAllocSizeHints(); -#if 0 size_hints->max_width = size_hints->min_width = width; size_hints->max_height = size_hints->min_height = height; size_hints->flags = PMinSize|PMaxSize; -#else - size_hints->min_width = 100; - size_hints->min_height = 100; - size_hints->flags = PMinSize; -#endif XSetWMNormalHints(HostX.dpy, HostX.win, size_hints); XFree(size_hints); From f54b71b772a1f587394ae3968782b611e52f0e2d Mon Sep 17 00:00:00 2001 From: David Nusinow Date: Sun, 6 Aug 2006 18:11:00 +0000 Subject: [PATCH 10/10] Document enable/disable flag for AIGLX in xorg.conf manpage. --- hw/xfree86/doc/man/xorg.conf.man.pre | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/xfree86/doc/man/xorg.conf.man.pre b/hw/xfree86/doc/man/xorg.conf.man.pre index 77d485665..3340af0b5 100644 --- a/hw/xfree86/doc/man/xorg.conf.man.pre +++ b/hw/xfree86/doc/man/xorg.conf.man.pre @@ -602,6 +602,9 @@ the keymap for a mapping to the .B Terminate action and, if found, use XKEYBOARD for processing actions, otherwise the builtin handler will be used. +.TP 7 +.BI "Option \*qAIGLX\*q \*q" boolean \*q +enable or disable AIGLX. AIGLX is enabled by default. .SH MODULE SECTION The .B Module