On Thu, 28 Jun 2007 17:22:40 +0200
Treviño <[EMAIL PROTECTED]> wrote:

> Vladimir ha scritto:
> > Latest amd/ati drivers (8.37|8.38) supports composite with dri.
> > So, after patching beryl (cause he can work without tfp) to make it use 
> > direct rendering on "aiglx method" and removed check for GLX_SGIX_fbconfig, 
> > which fails. - I was able to run beryl on fglrx WITHOUT Xgl.
> Which patch do you apply exactly to Beryl?
> If we're OT here, simply reply on private...
> 
> --
> Trevino's Blog - Life and Linux
> http://3v1n0.tuxfamily.org/blog/
> 
> _______________________________________________
> compiz mailing list
> compiz@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/compiz
> 

Here is a patch, for beryl-0.2.0, but should work and with 0.2.1
I run it  - beryl --force-aiglx --use-copy
or just beryl - it will use same parametrs.
diff -urN beryl/src/main.c beryl_new/src/main.c
--- beryl/src/main.c	2007-01-22 19:44:02.000000000 +0400
+++ beryl_new/src/main.c	2007-06-28 16:37:24.000000000 +0500
@@ -251,7 +251,7 @@
 			break;
 		case OPT_FORCE_AIGLX:
 			forceAiglx = TRUE;
-			indirectRendering = TRUE;
+			indirectRendering = FALSE;
 			useCow = TRUE;
 			strictBinding = TRUE;
 			break;
diff -urN beryl/src/screen.c beryl_new/src/screen.c
--- beryl/src/screen.c	2007-02-07 18:09:58.000000000 +0400
+++ beryl_new/src/screen.c	2007-06-28 16:46:11.000000000 +0500
@@ -1415,6 +1415,7 @@
 		shareList = display->screens->ctx;
 
 	XUngrabServer(dpy);
+	indirectRendering=FALSE;
 	s->ctx = glXCreateContext(dpy, visinfo, shareList, !indirectRendering);
 
 	if (!s->ctx)
@@ -1447,7 +1448,7 @@
 	if (!strstr(glxExtensions, "GLX_SGIX_fbconfig"))
 	{
 		fprintf(stderr, _("%s: GLX_SGIX_fbconfig is missing\n"), programName);
-		return FALSE;
+//		return FALSE;
 	}
 
 	s->getProcAddress = (GLXGetProcAddressProc)
diff -urN beryl/src/syscheck.c beryl_new/src/syscheck.c
--- beryl/src/syscheck.c	2007-02-05 19:27:12.000000000 +0400
+++ beryl_new/src/syscheck.c	2007-06-28 16:45:28.000000000 +0500
@@ -163,7 +163,7 @@
 	}
 
 	// indirect rendering works always
-	ctx = glXCreateContext(dpy, visinfo, NULL, 0);
+	ctx = glXCreateContext(dpy, visinfo, NULL, 1);
 
 	if (!ctx)
 	{
_______________________________________________
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz

Reply via email to