First triangle rendered by Gallium3D Cell/PS3 driver

Investigation into how Linux on the PS3 might lead to homebrew development.

Moderators: cheriff, emoon

Post Reply
chema
Posts: 4
Joined: Tue Mar 06, 2007 6:52 pm
Contact:

First triangle rendered by Gallium3D Cell/PS3 driver

Post by chema »

Brian and the guys of tungsten graphics have release the first screenshot of Gallium3D for Cell. There is a lot of work to do.


Brian:
The Gallium/Cell driver is drawing its first triangle.

This is by no means "real" code but it exercises sending a drawing
command to the SPUs, get/putting framebuffer tiles and displaying the
results.

In the attachment, the background and triangle colors are tweaked a bit
per-SPU so you can see which SPU drew which tile.

-Brian
Screenshot:
Image
IronPeter
Posts: 207
Joined: Mon Aug 06, 2007 12:46 am
Contact:

Post by IronPeter »

Is the code public?
chema
Posts: 4
Joined: Tue Mar 06, 2007 6:52 pm
Contact:

Post by chema »

Yes, in the git mesa repository, branch gallium-0.1

URL:

http://gitweb.freedesktop.org/?p=mesa/m ... a12ea24e65
IronPeter
Posts: 207
Joined: Mon Aug 06, 2007 12:46 am
Contact:

Post by IronPeter »

Not very good spe codestyle.

This two-days exercise

http://spu-cell-rasterizer.googlecode.com/svn/trunk/

has the same functionality and better perfomance.
ethernode
Posts: 1
Joined: Sun Dec 16, 2007 3:24 am

Post by ethernode »

Heh IronPeter, why don't you go work at Tungsten Graphics ? Looks like they could use some help...

;)

Anyway keep up your awesome work !
IronPeter
Posts: 207
Joined: Mon Aug 06, 2007 12:46 am
Contact:

Post by IronPeter »

Hhm, my email is public. There are no mails with hiring offers :).

My point is very simple. It is easy to prototype spu based rasterizer. Two-days work, no more.

It is hard to write good spu code in large software project. Refactoring is myth on spu. Bad design means re-engineering.

Good luck for Tungsten guys.
chema
Posts: 4
Joined: Tue Mar 06, 2007 6:52 pm
Contact:

Post by chema »

With the RSX disabled by now, only Gallium3d for Cell still alive :(
Compound
Posts: 48
Joined: Thu May 12, 2005 10:29 am

Post by Compound »

IronPeter wrote:Not very good spe codestyle.

This two-days exercise

http://spu-cell-rasterizer.googlecode.com/svn/trunk/

has the same functionality and better perfomance.
does this need to be run from within a X desktop? im trying to run it from the shell and it just exits without doing anything
root@localhost:/mnt/share# cd triangle
root@localhost:/mnt/share/triangle# make
embedspu spu_handle spu-server spu_handle.o
g++ -O3 -Wall -lspe -lSDL -g host.cpp spu_handle.o -o development
root@localhost:/mnt/share/triangle# ./development
root@localhost:/mnt/share/triangle#
Compound
Posts: 48
Joined: Thu May 12, 2005 10:29 am

Post by Compound »

seems it is a resolution issue, im running on a standard def telly at the moment, and the only way this would run is setting

#define WIDTH 400
#define HEIGHT 300

but it just renders a corrupt display
Compound
Posts: 48
Joined: Thu May 12, 2005 10:29 am

Post by Compound »

hmm, it only seems to render correctly inside of an xserver
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

It's an SDL app, so it will work on X or directfb or whatever you have SDL compiled to support.
Compound
Posts: 48
Joined: Thu May 12, 2005 10:29 am

Post by Compound »

i just compiled SDL in the standard way, didnt realise there was any options for alternate configurations. im having the same problem with the ppc version of mesa3d as well, it says to run it without X compile it as linux-solo but i dont thik this is a ppc version, and it certainly doesnt want to build

whats this directfb, had a quick look at the site and couldnt work out what im supposed to do with it
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Check SDL docs.
You may have had trouble outside X because of non-standard resolutions
http://www.libsdl.org/cgi/docwiki.cgi/F ... r_20device
You might have to pick your video driver manually
http://www.libsdl.org/faq.php?action=li ... category=9
etc
Post Reply