|
From: Philipp R. <li...@il...> - 2008-09-11 07:11:42
|
Brian Paul wrote: > li...@il... wrote: >> Hi, >> >> I'm trying to run the gallium/cell driver. So colned the mesa git and >> checked out the gallium-0.1 branch as described in [1]. Then i ran 'make >> linux-cell' with the cell-sdk-3.1-beta. after i installed many >> dependencies form the fedora9-ppc tree und changed ppu-gcc, ppu-g++ and >> spu-gcc to ppu-gcc43, ppu-g++43 and spu-gcc43 the build went fine. >> >> no is my problem, how to install this in the system. i want to test >> it in >> the simulator for now, but later check on a cell-blade. >> >> in the simulator runs a fedora9, is it sufficient to copy some files >> from >> the build or do i need to build a new xserver with the gallium >> integrated? >> is there a document/howto/... wich describs how to integrate gallium in >> the system? > > I haven't really used the Cell simulator yet so you're kind of on your > own. You shouldn't have to do anything with the X server. > > Once you've compiled Mesa/gallium, libGL.so contains the Cell driver. > There aren't any other pieces. You could put libGL.so* in /usr/local/lib I only try to use the simulator until my account to access the blades is enabled. When I compiled the source I did a little mistake, I forgot to change spu-gcc to spu-gcc43 and it compiled fine. Then I changed to spu-gcc43 an I got this error: spu-gcc43 -O3 -W -Wall -Winline -Wmissing-prototypes -Wno-main -I. -I/opt/cell/sysroot/opt/cell/sdk/usr//spu/include -I../../../../../src/mesa/ -I../../../../../src/mesa -I../../../../../src/gallium/include -I../../../../../src/gallium/auxiliary -I../../../../../src/gallium/drivers -DSPU_MAIN_PARAM_LONG_LONG -include spu_intrinsics.h -c spu_texture.c spu_texture.c: In function 'get_four_texels': spu_texture.c:100: error: parameter list does not match a valid signature for spu_splats() this is line 100 of : const qword tile_size = (qword) spu_splats(sizeof(tile_t)); spu_splats() is in gcc-4.3 a builtin an does not recognize size_t as valid argument-type. I changed the line as follows and it compiled fine. const qword tile_size = (qword) spu_splats((unsigned int)sizeof(tile_t)); I don't know if this is a good idea to simply cast it to unsigned int or if this is a a bug of the builtin spu_splats(). Kind regards, Philipp |