關於我

我的相片

在此提供一些有關你的資訊,以便其他人確認你是他們要找的Fai。

2006/11/01

Fedora Core 6 with AIGLX on iBook

Finally found the reason of having a "blue" screen upon starting beryl-manager, it is due to some stupid coding in Xorg server, which has not considered big endian architectures, like PowerPC.
The patch to add is:
--- xorg-server-1.1.1/GL/glx/glxdri.c.ppc 2006-11-01 14:25:42.000000000 +0800
+++ xorg-server-1.1.1/GL/glx/glxdri.c 2006-11-01 14:29:40.000000000 +0800
@@ -401,7 +401,12 @@
if (pixmap->drawable.depth >= 24) {
bpp = 4;
format = GL_BGRA;
- type = GL_UNSIGNED_BYTE;
+ type =
+#if X_BYTE_ORDER == X_LITTLE_ENDIAN
+ GL_UNSIGNED_BYTE;
+#else
+ GL_UNSIGNED_INT_8_8_8_8_REV;
+#endif
} else {
bpp = 2;
format = GL_RGB;

At the same time, it is my first time to build RPM for Fedora Core 6, using pbuilder like program called "mock", it is so easy and tidy!