1. 22 Jun, 2019 1 commit
  2. 18 Jun, 2019 1 commit
    • Ulrich Sibiller's avatar
      mi/miinitext.c: fix memleaks: remove (double) glx initialization · 5cb49714
      Ulrich Sibiller authored
      Fix these memory leaks:
      
      ==30021== 128 bytes in 1 blocks are definitely lost in loss record 230 of 302
      ==30021==    at 0x483577F: malloc (vg_replace_malloc.c:299)
      ==30021==    by 0x2EF89C: init_visuals (xf86glx.c:390)
      ==30021==    by 0x2EF89C: __MESA_initVisuals (xf86glx.c:541)
      ==30021==    by 0x17C922: GlxInitVisuals (glxext.c:317)
      ==30021==    by 0x218E73: fbInitVisuals (fbcmap.c:668)
      ==30021==    by 0x20BEB1: fbFinishScreenInit (fbscreen.c:229)
      ==30021==    by 0x20C275: fbScreenInit (fbscreen.c:273)
      ==30021==    by 0x1E0317: nxagentOpenScreen (Screen.c:1357)
      ==30021==    by 0x16D848: AddScreen (dispatch.c:4171)
      ==30021==    by 0x1DB7FF: InitOutput (Init.c:396)
      ==30021==    by 0x14DB12: main (main.c:279)
      ==30021==
      ==30021== 3,072 (192 direct, 2,880 indirect) bytes in 1 blocks are definitely lost in loss record 290 of 302
      ==30021==    at 0x483577F: malloc (vg_replace_malloc.c:299)
      ==30021==    by 0x2CCCC7: _gl_context_modes_create (glcontextmodes.c:364)
      ==30021==    by 0x2EF87C: init_visuals (xf86glx.c:381)
      ==30021==    by 0x2EF87C: __MESA_initVisuals (xf86glx.c:541)
      ==30021==    by 0x17C922: GlxInitVisuals (glxext.c:317)
      ==30021==    by 0x218E73: fbInitVisuals (fbcmap.c:668)
      ==30021==    by 0x20BEB1: fbFinishScreenInit (fbscreen.c:229)
      ==30021==    by 0x20C275: fbScreenInit (fbscreen.c:273)
      ==30021==    by 0x1E0317: nxagentOpenScreen (Screen.c:1357)
      ==30021==    by 0x16D848: AddScreen (dispatch.c:4171)
      ==30021==    by 0x1DB7FF: InitOutput (Init.c:396)
      ==30021==    by 0x14DB12: main (main.c:279)
      
      The problem here is that GlxInitVisuals is called twice. First via
      fbScreenInit and then again via nxagentInitGlxExtension. We remove the
      first one to ensure the code in nxagenOpenScreen works as initially
      intended.
      
      There's an xorg upstream patch that does the same
      (7d74690536b64f7b8e8036507ab7790807349c50), but it also cleans up
      other stuff we do not even have in out source (yet?).
      5cb49714
  3. 12 Jun, 2019 3 commits
    • Ulrich Sibiller's avatar
      b961e190
    • Ulrich Sibiller's avatar
      mi: Hush an almost certainly bogus warning · 28e42b3b
      Ulrich Sibiller authored
        commit 57e872301f5e836be2efb8f952f9c9711650b447
        Author: Adam Jackson <ajax@redhat.com>
        Date:   Thu Apr 5 13:07:09 2018 -0400
      
          mi: Hush an almost certainly bogus warning
      
          In file included from ../mi/miexpose.c:83:
          ../mi/miexpose.c: In function ‘miHandleExposures’:
          ../include/regionstr.h:174:22: warning: ‘expBox.y2’ may be used uninitialized in this function [-Wmaybe-uninitialized]
               (_pReg)->extents = *(_pBox);
               ~~~~~~~~~~~~~~~~~^~~~~~~~~~
          ../mi/miexpose.c:139:12: note: ‘expBox.y2’ was declared here
               BoxRec expBox;
                      ^~~~~~
      
          etc. It's initialized if (extents), and then only read if (extents),
          but gcc doesn't seem to figure that out. Whatever, bzero it to be
          explicit.
      Signed-off-by: 's avatarAdam Jackson <ajax@redhat.com>
      Acked-by: 's avatarKeith Packard <keithp@keithp.com>
      28e42b3b
    • Ulrich Sibiller's avatar
      Remove the Must_have_memory hack. · a765857a
      Ulrich Sibiller authored
      We are not using any alloc function that respects that variable, so
      lets drop it. Backport of this commit:
      
        commit 0ce61e21d6d7dcca0090e319bbcdb678570f2c3f
        Author: Adam Jackson <ajax@redhat.com>
        Date:   Fri Oct 3 16:05:19 2008 -0400
      
          Remove the Must_have_memory hack.
      
          Also remove an astonishing amount of misunderstanding of how casts work.
      a765857a
  4. 11 Jun, 2019 3 commits
  5. 10 May, 2019 1 commit
    • Ulrich Sibiller's avatar
      Die XTESTEXT1, die! · b32a984f
      Ulrich Sibiller authored
        commit a73e0f8cdfec1c9199ffe696146ba7d677c4c10d
        Author: Daniel Stone <daniel@fooishbar.org>
        Date:   Thu Jun 1 18:47:47 2006 +0000
      
          Die XTESTEXT1, die!
      
      Citing an email from the xorg-modular mailing list:
      
      On Tuesday 21 February 2006 23:04, Enrico Weigelt wrote:
      > Hi folks,
      >
      > I'm wondering what's the difference between XTEST and XTESTEXT1
      > (the second one can be configured w/ my current patch ...)
      > Are they both the same ( -> XTest extension ) ?
      > Can I put both symbols together ?
      
      They're not the same extension.  XTest is the one you want, if you want
      either.  The other hasn't been built by default in ages and I should probably
      go ahead and nuke it from the tree.
      
      - ajax
      b32a984f
  6. 07 Jul, 2018 1 commit
  7. 03 Jul, 2018 1 commit
  8. 27 Feb, 2018 4 commits
  9. 27 Dec, 2017 1 commit
  10. 16 Dec, 2017 2 commits
  11. 19 Apr, 2017 1 commit
  12. 10 Apr, 2017 4 commits
    • Mike Gabriel's avatar
      Regression fix for added libXfont2 API support: · d63b4a5b
      Mike Gabriel authored
       - Move FONT_DEFINES and XLIBFONT definition to from Server.tmpl to
         Imake.tmpl.
       - Add FONT_DEFINES to ALLDEFINES.
       - Drop SpecialCObjectRules with FONT_DEFINES from various Imakefiles
         again, FONT_DEFINES is now set "globally".
       - Hand over FONT_DEFINES from main Makefile to nx-X11's make BuildEnv
         to make gccmakedep happy.
      d63b4a5b
    • Aaron Plattner's avatar
      Add CreatePixmap allocation hints. · 3ef6d512
      Aaron Plattner authored
       Backported from X.org:
      
       commit f2e310132fbe1520c1b5f3da4faa2d2d47835e72
       Author: Aaron Plattner <aplattner@nvidia.com>
       Date:   Wed Oct 31 14:15:35 2007 -0700
      
          Add CreatePixmap allocation hints.
      
          These hints allow an acceleration architecture to optimize allocation of certain
          types of pixmaps, such as pixmaps that will serve as backing pixmaps for
          redirected windows.
      Backported-to-NX-by: 's avatarMike Gabriel <mike.gabriel@das-netzwerkteam.de>
      3ef6d512
    • Mike Gabriel's avatar
      Xserver: Support building against libXfont2 (v2) API and old libXfont(1) API alike. · f4c80a78
      Mike Gabriel authored
       Fixes ArcticaProject/nx-libs#296.
      
       Inspired by the following X.org commit. Other than X.org, we will continue
       support for building nx-libs against libXfont1 for a while.
      
       commit 05a793f5b3c40747d5a92a076def7f4fb673c7e7
       Author: Keith Packard <keithp@keithp.com>
       Date:   Tue Sep 1 18:50:55 2015 -0700
      
          dix: Switch to the libXfont2 API (v2)
      
          This new libXfont API eliminates exposing internal X server symbols to
          the font library, replacing those with a struct full of the entire API
          needed to use that library.
      
          v2: Use libXfont2 instead of libXfont_2
      Signed-off-by: 's avatarKeith Packard <keithp@keithp.com>
      Reviewed-by: 's avatarAdam Jackson <ajax@redhat.com>
      f4c80a78
    • Dave Airlie's avatar
      xserver: remove index from CloseScreen (API/ABI breakage) · 93ea74e5
      Dave Airlie authored
       Extracted from X.org bulk commit:
      
       commit 1f0e8bd5eb1a5539689cfc4f5a6b86b530907ec5
       Author: Dave Airlie <airlied@redhat.com>
       Date:   Tue Jun 5 13:22:18 2012 +0100
      
          api: rework the X server driver API to avoid global arrays.
      
          This is a squash merge containing all the API changes, as
          well as the video ABI bump.
      
          Its been squashed to make bisection easier.
      
          Full patch log below:
      
          [...]
      
          commit 06729dbbc804a20242e6499f446acb5d94023c3c
          Author: Dave Airlie <airlied@gmail.com>
          Date:   Tue Apr 10 14:04:59 2012 +0100
      
              xserver: remove index from CloseScreen (API/ABI breakage)
      
              This drops the index from the CloseScreen callback,
              its always been useless really, since the pScreen contains it.
      Reviewed-by: 's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      Acked-by: 's avatarAaron Plattner <aplattner@nvidia.com>
      Reviewed-by: 's avatarAdam Jackson <ajax@redhat.com>
      Signed-off-by: 's avatarDave Airlie <airlied@redhat.com>
      93ea74e5
  13. 17 Mar, 2017 1 commit
  14. 03 Mar, 2017 4 commits
    • Ulrich Sibiller's avatar
      replace (DE)ALLOCATE_LOCAL by malloc/free · 06bb154d
      Ulrich Sibiller authored
      This is basically a backport of the following commits + replacing
      xalloc/xfree by malloc/free. Fixes ArcticaProject/nx-libs#358.
      
         commit 2761c103311a1160bc483fd0367d654733df8598
         Author: Daniel Stone <daniel@fooishbar.org>
         Date:   Mon Nov 5 14:03:26 2007 +0000
      
             OS: Remove usage of alloca
      
             Replace with heap allocations.
      
         commit 5e363500c86042c394595e1a6633581eb8fcd1bb
         Author: Daniel Stone <daniel@fooishbar.org>
         Date:   Mon Nov 5 14:38:28 2007 +0000
      
             OS: Remove ALLOCATE_LOCAL from os.h
      
             Remove ALLOCATE_LOCAL_FALLBACK and DEALLOCATE_LOCAL_FALLBACK from os.h, and
             remove the include of Xalloca.h as well.
      06bb154d
    • Ulrich Sibiller's avatar
      replace (DE)ALLOCATE_LOCAL by malloc/free · 09ef9991
      Ulrich Sibiller authored
      This is basically a backport of the following commits + replacing
      xalloc/xfree by malloc/free. Fixes ArcticaProject/nx-libs#358.
      
         commit 2761c103311a1160bc483fd0367d654733df8598
         Author: Daniel Stone <daniel@fooishbar.org>
         Date:   Mon Nov 5 14:03:26 2007 +0000
      
             OS: Remove usage of alloca
      
             Replace with heap allocations.
      
         commit 5e363500c86042c394595e1a6633581eb8fcd1bb
         Author: Daniel Stone <daniel@fooishbar.org>
         Date:   Mon Nov 5 14:38:28 2007 +0000
      
             OS: Remove ALLOCATE_LOCAL from os.h
      
             Remove ALLOCATE_LOCAL_FALLBACK and DEALLOCATE_LOCAL_FALLBACK from os.h, and
             remove the include of Xalloca.h as well.
      09ef9991
    • Mike Gabriel's avatar
    • Mihai Moldovan's avatar
      nx-X11/programs/Xserver/mi/{Imakefile,mibank.{c,h}}: backport… · d5a222b6
      Mihai Moldovan authored
      nx-X11/programs/Xserver/mi/{Imakefile,mibank.{c,h}}: backport ffaae7c0c69a51a53a76146c79f3630ae197a443.
      
       Down with mibank!
      
       Fixes ArcticaProject/nx-libs#366.
      d5a222b6
  15. 01 Mar, 2017 2 commits
  16. 08 Feb, 2017 2 commits
  17. 04 Dec, 2016 1 commit
  18. 02 Nov, 2016 1 commit
  19. 30 Oct, 2016 1 commit
  20. 19 Oct, 2016 1 commit
  21. 05 Jul, 2016 4 commits