http://www.mesa3d.org/cell.html
This is not a detailed guide of every step, but here's some info on what I did:
First, you need git to fetch the development code, so if you don't have that use yum install git (you'll need third party repos -- it's in fedora-extras).
Get an initial local copy of the repository with:
(source will be downloaded to your current working directory, so you might want to create a source folder first as shown here)
- Code: Select all
mkdir ~/source
- Code: Select all
cd ~/source
- Code: Select all
git clone git://anongit.freedesktop.org/git/mesa/mesa
Change to the mesa folder and check out the gallium-0.2 branch with:
- Code: Select all
cd mesa
- Code: Select all
git-checkout -b gallium-0.2 origin/gallium-0.2
Compile it with:
- Code: Select all
make linux-cell
This is where I ran into trouble at first ... you'll need ppu-gcc32 installed -- to get all the ppu and spu packages I used yum install *ppu* *spu*. Also I had an error regarding a missing libmisc.h which is from the Cell SDK (/opt/cell/sdk/usr/include/libmisc.h), so I followed this post for installing IBM's Cell SDK). After that I was able to compile with no errors.
With compiling finished, the driver is located in the lib folder, and example programs are in the progs folder. To run the examples without actually installing the driver on your system, you can set the LD_LIBRARY_PATH in your terminal window before running the examples. For example:
- Code: Select all
LD_LIBRARY_PATH=/home/bill/source/mesa/lib
- Code: Select all
export LD_LIBRARY_PATH
(replace /home/bill/source/mesa/lib with the correct location on your system)
Then try some of the example programs, for example:
- Code: Select all
cd progs/xdemos
- Code: Select all
./glxinfo
If it's working you should see:
OpenGL vendor string: Tungsten Graphics, Inc.
OpenGL renderer string: Gallium 0.2, Cell on Xlib
OpenGL version string: 1.3 Mesa 7.3-devel
Some things to try:
./glxgears
./glxheads
Other demos:
cd ../demos
./texcyl
(right click in the window for options)
Screenshot of texcyl running with the "textured" option:
http://pleasantfiction.com/Gallery/albu ... ll_0_2.png
Also, you can try:
CELL_DEBUG=checker
export CELL_DEBUG
which "lets you see which SPU is rendering which screen tiles" as shown here:
./gears
http://pleasantfiction.com/Gallery/albu ... ell0_2.png
I haven't been able to get any non-demo programs running properly with it yet, and some of the demos don't work either. Anyway, it was interesting to see it working and hopefully we'll see continued development that will eventually lead to the ability to run OpenGL applications like foobillard, celestia, 3d chess, etc. Or maybe even Quake 3 could be playable one day?