Hi everybody!
This is my first post, but I really don't know any further anymore...
I've build and installed Mesa and DRM as described on r300.sf.net and
dri.freedesktop.org/wiki/Building, loaded the modules and do still not have 3D
acceleration (framebuffer (glxgears: ~340fps) is faster than radeon (glxgears:
~170fps)). There's a known issue with Gentoo opengl-update -> I've installed
it, even if it is not very usefull on ppc -> only xorg-x11. (I never installed
the mesa drivers from Gentoo.)
System:
PowerBook G4 (with a r300 Chipset)
Kernel: gentoo-dev-sources 2.6.9-r9
xorg-x11: 6.8.2 with standard Gentoo patches ~ppc
DRM:
Build the sources from cvs.freedesktop.org in drm/linux-core, copied them to my
kernel
modprobed drm and radeon
depmod
modules-update
Mesa:
Got the sources from cvs.sourceforge.net:/cvsroot/r300
Linked them as described in the r300_driver/README:
mkdir /cvs/xorg/Mesa/src/mesa/drivers/dri/r300
lndir /cvs/xorg/r300 /cvs/xorg/src/mesa/drivers/dri/r300
Applied the mesa.patch and build the sources from cvs.freedesktop.org in Mesa
with "make linux-dri-ppc"
Mesa/configs/linux-dri-ppc:
OPT_FLAGS = -O2 -pipe -mcpu=7450 -maltivec -mabi=altivec
-mpowerpc-gfxopt \
-fsigned-char -mstring -mmultiple
DRM_SOURCE_PATH = /cvs/xorg/r300_driver/drm
SRC_DIRS = mesa
DRI_DIRS = dri_client r300
Copied the drivers:
cp <Mesa>/lib/*_dri.so /usr/X11R6/lib/modules/dri/
Some hints:
glxinfo:
direct rendering: No
server glx version string: 1.2
client glx version string: 1.4
OpenGL version string: 1.2 (1.5 Mesa 6.2.1) -> Shouldn't this be 1.3
Mesa 6.3
glu version: 1.3
glxgears loads following drivers (strace glxgears -> full output as attachement
"glxgears-output"):
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/usr/lib/opengl/xorg-x11/lib/libGL.so.1", O_RDONLY) = 3
open("/usr/lib/libXp.so.6", O_RDONLY) = 3
open("/usr/lib/libXext.so.6", O_RDONLY) = 3
open("/usr/lib/libX11.so.6", O_RDONLY) = 3
open("/lib/libpthread.so.0", O_RDONLY) = 3
open("/lib/libm.so.6", O_RDONLY) = 3
open("/lib/libc.so.6", O_RDONLY) = 3
open("/usr/lib/libXxf86vm.so.1", O_RDONLY) = 3
open("/lib/libdl.so.2", O_RDONLY) = 3
-> Shouldn't it load drivers from "/usr/X11R6/lib/modules/dri/" ?
compiling tuxracer breaks:
checking for GL library... no
checking for GL library (with pthreads)... no
checking for MesaGL library... no
checking for MesaGL library (with pthreads)... no
checking for opengl32 library... nou
checking for opengl32 library (with pthreads)... no
configure: error: Cannot find GL library
After all, I think there are simply some messed-up symlinks that have to be
corrected. Looking forward to some useful hints.
Thanks to the developer-team for their great work. Without you I would never be
able to play tuxracer on a RISC-based processor!
Special thanks to Benjamin Herrenschmidt for his ultimative sleep-patch and his
great work for Linux-ppc in general!
Bye
Marc-André
linux-dri-ppc
Description: Binary data
xorg.conf
Description: Binary data
glxgears-output
Description: Binary data