What's the current state of the gallium-0.2 branch for Cell?
Building it, I've seen the following :
Making programs for linux-cell
make[2]: Entering directory `/home/jonathan/src/mesa.git/progs/demos'
powerpc-unknown-linux-gnu-gcc -I../../include -O3 -Wall -Winline
-Wmissing-prototypes -fPIC -m32 -std=c99 -mabi=altivec -maltivec -I.
-I/home/jonathan/sdk-3.0/opt/cell/sdk/usr/include -DGALLIUM_CELL -DUSE_XSHM
-D_BSD_SOURCE -mcpu=cell arbfplight.c readtex.o -L../../lib -lglut -lGLU -lGL
-lm -o arbfplight
../../lib/libGL.so: undefined reference to `brw_create_screen'
../../lib/libGL.so: undefined reference to `brw_create'
collect2: ld returned 1 exit status
make[2]: *** [arbfplight] Error 1
brw_create appears to be i965 specific, and removing xmesa_create_i965simple
from src/gallium/winsys/xlib/xm_winsys_aub.c and its call in
src/gallium/winsys/xlib/xm_api.c gets past the above error and on to a somewhat
functional build: glxgears will run for 10-20 seconds before the screen goes
black and the framerate numbers seem to go a bit crazy. e.g.
~/gallium-0.2 $ DISPLAY=:0.0 LD_LIBRARY_PATH=. ./glxgears
318 frames in 5.0 seconds = 63.472 FPS
318 frames in 5.0 seconds = 63.487 FPS
318 frames in 5.0 seconds = 63.570 FPS
309 frames in 5.0 seconds = 61.644 FPS # Screen goes black
324 frames in 5.0 seconds = 64.714 FPS
324 frames in 5.0 seconds = 64.715 FPS
325 frames in 5.0 seconds = 64.855 FPS
96 frames in 17593.7 seconds = 0.005 FPS
1874 frames in 29.0 seconds = 64.617 FPS
388 frames in 6.0 seconds = 64.656 FPS
2519 frames in 39.0 seconds = 64.592 FPS
Also, I'm using a recent fsf gcc-4.4 snapshot and needed to make the following
change :
diff --git a/src/gallium/auxiliary/util/u_time.c
b/src/gallium/auxiliary/util/u_time.c
index 57b80e5..dde2c74 100644
--- a/src/gallium/auxiliary/util/u_time.c
+++ b/src/gallium/auxiliary/util/u_time.c
@@ -111,7 +111,7 @@ util_time_add(const struct util_time *t1,
#elif defined(PIPE_SUBSYSTEM_WINDOWS_MINIPORT)
/* 1 tick = 100 nano seconds. */
t2->counter = t1->counter + usecs * 10;
-#elif
+#else
LARGE_INTEGER temp;
LONGLONG freq;
freq = temp.QuadPart;
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev