xserver/hw/xgl/egl xeglinit.c,1.2,1.3

David Reveman xserver-commit at pdx.freedesktop.org
Tue Jan 3 08:16:39 PST 2006


Committed by: davidr

Update of /cvs/xserver/xserver/hw/xgl/egl
In directory gabe:/tmp/cvs-serv7161/hw/xgl/egl

Modified Files:
	xeglinit.c 
Log Message:
Make Xglx and Xegl build

Index: xeglinit.c
===================================================================
RCS file: /cvs/xserver/xserver/hw/xgl/egl/xeglinit.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- xeglinit.c	3 Jan 2006 10:15:54 -0000	1.2
+++ xeglinit.c	3 Jan 2006 16:16:37 -0000	1.3
@@ -24,8 +24,9 @@
  */
 
 #include "xegl.h"
+#include "xglglx.h"
 
-static xglScreenInfoRec xglScreenInfo = {
+xglScreenInfoRec xglScreenInfo = {
     NULL, 0, 0, 0, 0, 0,
     DEFAULT_GEOMETRY_DATA_TYPE,
     DEFAULT_GEOMETRY_USAGE,
@@ -42,6 +43,11 @@
 
 #ifdef GLXEXT
 static Bool loadGlx = TRUE;
+
+#ifndef NGLXEXTLOG
+static char *glxExtLogFile = 0;
+#endif
+
 #endif
 
 void
@@ -55,6 +61,18 @@
     {
 	if (!xglLoadGLXModules ())
 	    FatalError ("No GLX modules loaded");
+
+#ifndef NGLXEXTLOG
+	if (glxExtLogFile)
+	{
+	    __xglGLXLogFp = fopen (glxExtLogFile, "w");
+	    if (!__xglGLXLogFp)
+		perror ("InitOutput");
+	}
+	else
+	    __xglGLXLogFp = 0;
+#endif
+
     }
 #endif
 
@@ -88,6 +106,11 @@
 
 #ifdef GLXEXT
     ErrorF ("-noglx                 don't load glx extension\n");
+
+#ifndef NGLXEXTLOG
+    ErrorF ("-glxlog file           glx extension log file\n");
+#endif
+
 #endif
 
     xglUseMsg ();
@@ -108,6 +131,15 @@
 	loadGlx = FALSE;
 	return 1;
     }
+
+#ifndef NGLXEXTLOG
+    else if (!strcmp (argv[i], "-glxlog"))
+    {
+	if (++i < argc)
+	    glxExtLogFile = argv[i];
+    }
+#endif
+
 #endif
 
     skip = xglProcessArgument (argc, argv, i);



More information about the xserver-commit mailing list