- 02 Nov, 2019 1 commit
-
-
Ulrich Sibiller authored
instead of a full copy. We still have our own function because we need to handle the nxagentGlxTrap. This trap is now set before the start of the dispatcher while it has been set only directly before calling the dispatched function. Saves ~50 duplicated lines.
-
- 18 Jun, 2019 1 commit
-
-
Ulrich Sibiller authored
==10226== 3,337 bytes in 1 blocks are definitely lost in loss record 295 of 307 ==10226== at 0x483577F: malloc (vg_replace_malloc.c:299) ==10226== by 0x6281DB9: strdup (strdup.c:42) ==10226== by 0x2ABA9E: __glXClientInfo (glxcmds.c:2170) ==10226== by 0x17CA3E: __glXDispatch (NXglxext.c:128) ==10226== by 0x16EE77: Dispatch (NXdispatch.c:476) ==10226== by 0x14DCE0: main (main.c:353) There's no point in trying to free cl->* after memset(0). This one is a bug that is found identically in xorg upstream and has only been fixed during rework of the whole client resource freeing stuff. So we fix it in glxext.c.
-
- 28 Feb, 2019 1 commit
-
-
Ulrich Sibiller authored
commit cdf5bcd420e5bcf4a4a24a275d3133a4e16ce41e Author: Alan Coopersmith <alan.coopersmith@oracle.com> Date: Mon Jul 9 19:12:42 2012 -0700 Use calloc to zero fill buffers being allocated for replies & events Ensures padding bytes are zero-filled Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by:
Keith Packard <keithp@keithp.com> Tested-by:
Daniel Stone <daniel@fooishbar.org> Attributes ArcticaProject/nx-libs#382
-
- 27 Dec, 2017 1 commit
-
-
Ulrich Sibiller authored
as reported by valgrind
-
- 14 Dec, 2017 3 commits
-
-
Mike Gabriel authored
Picked from this X.org commit: commit b0dd6be2c8703f7062d45ac9fd646550c7d54e3b Author: Jamey Sharp <jamey@minilop.net> Date: Thu Oct 8 13:38:44 2009 +1100 Cast small-int values through intptr_t when passed as pointers On 64-bit systems, int and pointers don't have the same size, so GCC gives warnings about casts between int and pointer types. However, in the cases covered by this patch, it's always a value that fits in int being stored temporarily as a pointer and then converted back later, which is safe. Casting through the pointer-sized integer type intptr_t convinces the compiler that this is OK. Signed-off-by:
Jamey Sharp <jamey@minilop.net> Signed-off-by:
Daniel Stone <daniel@fooishbar.org> Backported-to-NX-by:
Mike Gabriel <mike.gabriel@das-netzwerkteam.de> (Only appropriate location for backporting: Xserver/GL/glx/glxcmds.c).
-
Mike Gabriel authored
commit 63ccaec2c39f4b5742383472c951ee2cd35c9e14 Author: Adam Jackson <ajax@redhat.com> Date: Tue Oct 19 11:59:23 2010 -0400 render2.c: In function ‘__glXDisp_Map2d’: render2.c:127: warning: ‘u1’ may be used uninitialized in this function render2.c: In function ‘__glXDisp_Map1d’: render2.c:90: warning: ‘u1’ may be used uninitialized in this function Remove unnecessary test, and change memcpy to memmove as all users were doing overlapping copies. Signed-off-by:
Adam Jackson <ajax@redhat.com> Reviewed-by:
Daniel Stone <daniel@fooishbar.org> Backported-to-NX-by:
Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
-
Mike Gabriel authored
glxfb.c: In function '__glXFBMemSwapBuffers': glxfb.c:117:5: warning: pointer targets in passing argument 10 of 'pGC->ops->PutImage' differ in signedness [-Wpointer-sign] buf); ^~~ glxfb.c:117:5: note: expected 'char *' but argument is of type 'GLubyte * {aka unsigned char *}'
-
- 17 Nov, 2017 2 commits
-
-
Ulrich Sibiller authored
-
Ulrich Sibiller authored
This has also been done in Xorg 7.1 This also fixes a little flaw for the swapped case: a check for glXRenderLarge was missing.
-
- 15 Jun, 2017 1 commit
-
-
Mike Gabriel authored
-
- 19 Apr, 2017 2 commits
-
-
Mike Gabriel authored
-
Mike Gabriel authored
-
- 03 Mar, 2017 1 commit
-
-
Mike Gabriel authored
Fixes ArcticaProject/nx-libs#324.
-
- 04 Dec, 2016 3 commits
-
-
Kristian Høgsberg authored
Derived from X.org commit... commit 28b95fd9d1c2f078aaaac75c310a27b17c74a6fc Author: Kristian Høgsberg <krh@redhat.com> Date: Thu Jul 6 03:25:38 2006 -0400 Drop unused GL/include subtree. Woo, less Makefile's to generate. Backported-to-NX-by:
Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
-
Kristian Høgsberg authored
commit 2d2d38d17cc2558f8a41166a4a1578bc4c663c37 Author: Kristian Høgsberg <krh@redhat.com> Date: Fri Mar 17 01:47:25 2006 +0000 Check for glproto when building GLX and make sure we have at least 1.4.6. Drop glx_ansic.h wrapper and call xalloc, xrealloc, xfree and str-funcs directly. We don't check the glproto version as we know what it is (we have our own proto file). Furthermore, we skip the switch from --glX<func> -> x<func> and directly switch to <func> (e.g. __glXMalloc() -> malloc()). Backported-to-NX-by:
Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
-
Eric Anholt authored
From c3d14036729fd186d4ec7ca1de603e1f2d174e2f Mon Sep 17 00:00:00 2001 From: Eric Anholt <anholt@freebsd.org> Date: Fri, 10 Feb 2006 22:00:30 +0000 Subject: Remove libcwrapper usage from xorg server modules. The libcwrapper is only of (marginal) use in the drivers, and that usage remains. Backported-to-NX-by:
Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Fixes ArcticaProject/nx-libs#246 (together with merge commit ecd335fa).
-
- 17 Nov, 2016 1 commit
-
-
Ulrich Sibiller authored
-
- 02 Nov, 2016 2 commits
-
-
Ulrich Sibiller authored
never used
-
Ulrich Sibiller authored
We do not build loadable modules, so we do not need them anywhere. Also remove the extra files requires for module builds.
-
- 31 Oct, 2016 1 commit
-
-
Mike Gabriel authored
Fixes ArcticaProject/nx-libs#250.
-
- 14 Oct, 2016 1 commit
-
-
Mihai Moldovan authored
The typo didn't cause immediate problems.
-
- 05 Jul, 2016 4 commits
-
-
Mike Gabriel authored
This has already been started while replacing copyright info in file headers and has now been completed with this commit.
-
Ulrich Sibiller authored
Remove defines of NEED_EVENTS and NEED_REPLIES because they are never used anywhere. Basically these three commits, but as they are newer and to not match the code structure the patches have not been applied but replaced by sed + manual intervention: From cb95642dc8edebb2935dd471f8b339cb98aa8481 Mon Sep 17 00:00:00 2001 From: Peter Hutterer <peter.hutterer@redhat.com> Date: Fri, 28 Nov 2008 22:28:32 +1000 Subject: Remove #define NEED_EVENTS and NEED_REPLIES A grep on xorg/* revealed there's no consumer of this define. Quote Alan Coopersmith: "The consumer was in past versions of the headers now located in proto/x11proto - for instance, in X11R6.0's xc/include/Xproto.h, all the event definitions were only available if NEED_EVENTS were defined, and all the reply definitions required NEED_REPLIES. Looks like Xproto.h dropped them by X11R6.3, which didn't have the #ifdef's anymore, so these are truly ancient now." Signed-off-by:
Peter Hutterer <peter.hutterer@redhat.com> Signed-off-by:
Adam Jackson <ajax@redhat.com> -- From 6de368c9aa7ccd2fcd62fca5a2b278913db4d03d Mon Sep 17 00:00:00 2001 From: Fernando Carrijo <fcarrijo@yahoo.com.br> Date: Thu, 1 Jul 2010 06:50:47 -0300 Subject: Purge macros NEED_EVENTS and NEED_REPLIES Signed-off-by:
Fernando Carrijo <fcarrijo@yahoo.com.br> Acked-by:
Tiago Vignatti <tiago.vignatti@nokia.com> Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com> -- From 57c03e52e6b4e3ed54df5fdd778865467d08e119 Mon Sep 17 00:00:00 2001 From: Fernando Carrijo <fcarrijo@yahoo.com.br> Date: Thu, 1 Jul 2010 06:59:48 -0300 Subject: Purge macro NEED_EVENTS Signed-off-by:
Fernando Carrijo <fcarrijo@yahoo.com.br> Acked-by:
Tiago Vignatti <tiago.vignatti@nokia.com> Reviewed-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Casting return to (void) was used to tell lint that you intended to ignore the return value, so it didn't warn you about it. Casting the third argument to (char *) was used as the most generic pointer type in the days before compilers supported C89 (void *) (except for a couple places it's used for byte-sized pointer math). Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by:
Keith Packard <keithp@keithp.com> Tested-by:
Daniel Stone <daniel@fooishbar.org> Backport to nx-libs: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
-
Tomas Carnecky authored
INITARGS was a hardcoded define to void. Since knowing the function signature for your extensions is kinda useful, just replace it with a hardcoded void, but leave the define there for API compatibility. Signed-off-by:
Tomas Carnecky <tom@dbservice.com> Reviewed-by:
Daniel Stone <daniel@fooishbar.org> Reviewed-by:
Cyril Brulebois <kibi@debian.org> Reviewed-by:
Jamey Sharp <jamey@minilop.net> Reviewed-by:
Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by:
Keith Packard <keithp@keithp.com> Backport to nx-libs: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
-
- 02 Jul, 2016 5 commits
-
-
Mike Gabriel authored
-
Mike Gabriel authored
-
Mike Gabriel authored
Fixes ArcticaProject/nx-libs#105
-
Mike Gabriel authored
Xserver/include/protocol-versions.h: Switch to having an Xserver-specific header file containing all use protocol versions.
-
Mike Gabriel authored
-
- 24 Jun, 2016 2 commits
-
-
Mike Gabriel authored
hw/nxagent/NXglxext.c: Shrink file, drop duplicate code that can identically be found in GL/glx/glxext.c.
-
Mike Gabriel authored
-
- 02 May, 2016 1 commit
-
-
Mike Gabriel authored
-
- 28 Dec, 2015 2 commits
-
-
Mike Gabriel authored
In the process of building nxagent against more and more system-wide installed X.org libraries, we come to the limit of including structs from this (bundled nx-X11) and that (system-wide X.Org) library. This commit introduces a clear namespace separation of headers provided by nx-X11 and headers provided by X.Org. This approach is only temporary as we want to drop all nx-X11 bundled libraries from nx-libs. However, for a while we need to make this separation clear and also ship some reduced fake X.Org headers that avoid pulling in libX* and libNX_X* symbols at the same time. This patch has been tested on Debian jessie and unstable and requires no overall testing on various distros and distro versions, as we finally will drop all libNX_X* libraries and build against X.org's client libs. For now, this hack eases our development / cleanup process.
-
Keith Packard authored
This lets us stop using the 'pointer' typedef in Xdefs.h as 'pointer' is used throughout the X server for other things, and having duplicate names generates compiler warnings. Signed-off-by:
Keith Packard <keithp@keithp.com> Reviewed-by:
Eric Anholt <eric@anholt.net> Rebased against NX: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
-
- 28 Sep, 2015 4 commits
-
-
Mike Gabriel authored
-
Mike Gabriel authored
imake clean-up: Enforce build of Mesa GLX extension. Drop all other GLX build methods (built-in DRI drivers, etc.).
-
Mike Gabriel authored
* MS Windows (non-tested) * Mac OS X (not provided) * SGISI / opengl (not provided) * DRI support (nxagent uses Mesa software emulation only)
-
Mike Gabriel authored
The client-side library libNX_GL.{a,so} is not built when building nx-libs. However, nx-X11/lib/GL/** ships several imake include files (Imakefile.inc) that are also used in nx-X11/programs/Xserver/GL/**. These files have been moved from the nx-X11/lib/GL/ code subtree to the nx-X11/programs/Xserver/GL/. Furthermore, we don't provide module builds of the GL extension anymore, as that feature is neither used in nx-libs.
-
- 21 Jun, 2015 1 commit
-
-
Mike Gabriel authored
-