forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

First triangle rendered by Gallium3D Cell/PS3 driver

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS3 Linux Development
View previous topic :: View next topic  
Author Message
chema



Joined: 06 Mar 2007
Posts: 4

PostPosted: Tue Dec 11, 2007 6:41 pm    Post subject: First triangle rendered by Gallium3D Cell/PS3 driver Reply with quote

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:
Quote:

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:
Back to top
View user's profile Send private message Visit poster's website
IronPeter



Joined: 06 Aug 2007
Posts: 207

PostPosted: Tue Dec 11, 2007 8:42 pm    Post subject: Reply with quote

Is the code public?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
chema



Joined: 06 Mar 2007
Posts: 4

PostPosted: Tue Dec 11, 2007 9:10 pm    Post subject: Reply with quote

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

URL:

http://gitweb.freedesktop.org/?p=mesa/mesa.git;a=commit;h=7d1894c6558c5cc7f503142cda11b8a12ea24e65
Back to top
View user's profile Send private message Visit poster's website
IronPeter



Joined: 06 Aug 2007
Posts: 207

PostPosted: Tue Dec 11, 2007 10:01 pm    Post subject: Reply with quote

Not very good spe codestyle.

This two-days exercise

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

has the same functionality and better perfomance.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ethernode



Joined: 16 Dec 2007
Posts: 1

PostPosted: Sun Dec 16, 2007 3:26 am    Post subject: Reply with quote

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

;)

Anyway keep up your awesome work !
Back to top
View user's profile Send private message
IronPeter



Joined: 06 Aug 2007
Posts: 207

PostPosted: Sun Dec 16, 2007 6:04 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
chema



Joined: 06 Mar 2007
Posts: 4

PostPosted: Thu Dec 20, 2007 8:25 pm    Post subject: Reply with quote

With the RSX disabled by now, only Gallium3d for Cell still alive :(
Back to top
View user's profile Send private message Visit poster's website
Compound



Joined: 12 May 2005
Posts: 48

PostPosted: Wed Jan 16, 2008 5:43 am    Post subject: Reply with quote

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

Quote:

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#
Back to top
View user's profile Send private message MSN Messenger
Compound



Joined: 12 May 2005
Posts: 48

PostPosted: Wed Jan 16, 2008 10:16 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message MSN Messenger
Compound



Joined: 12 May 2005
Posts: 48

PostPosted: Thu Jan 17, 2008 11:43 am    Post subject: Reply with quote

hmm, it only seems to render correctly inside of an xserver
Back to top
View user's profile Send private message MSN Messenger
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Thu Jan 17, 2008 12:41 pm    Post subject: Reply with quote

It's an SDL app, so it will work on X or directfb or whatever you have SDL compiled to support.
Back to top
View user's profile Send private message
Compound



Joined: 12 May 2005
Posts: 48

PostPosted: Thu Jan 17, 2008 9:29 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message MSN Messenger
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Fri Jan 18, 2008 1:30 am    Post subject: Reply with quote

Check SDL docs.
You may have had trouble outside X because of non-standard resolutions
http://www.libsdl.org/cgi/docwiki.cgi/FAQ_20Linux_20with_20non_2dstandard_20framebuffer_20device
You might have to pick your video driver manually
http://www.libsdl.org/faq.php?action=listentries&category=9
etc
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS3 Linux Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group