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 

The state of 3D using the RSX

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



Joined: 09 Jan 2008
Posts: 10

PostPosted: Tue Mar 11, 2008 6:32 am    Post subject: The state of 3D using the RSX Reply with quote

I'm relatively new to PS3 development having just bought a PS3 and installed ubuntu on it about a week ago. My PS3 is at 2.00 and I'm not going to upgrade it to 2.10 for the obvious reasons.

I have a lot of experience with NVIDIA's GPUs (my day job is writing OpenGL drivers for a GPU very similar to the RSX) and I'd like to help out with libraries for using the RSX if I can. I've heard that there is a fair amount of progress made on 3D support which I'm guessing came from the Nouveau project. What is left to have real 3D functionality on the PS3 now? What prevents us from running aiglx and a compositing window manager (like Compiz)? Why are we still stuck in the world of a coupld of demos and no real applications yet?
Back to top
View user's profile Send private message
IronPeter



Joined: 06 Aug 2007
Posts: 207

PostPosted: Tue Mar 11, 2008 5:22 pm    Post subject: Reply with quote

There is simple 3D API with vertex/index buffer support, texture support, shader compiler:

svn co svn://svn.ps2dev.org/ps3ware/trunk/libps3rsx libps3rsx

I do not know any difference between NV40 and RSX. I think that it is easy to port Nouveau high-level stuff. Just recompile it.

The main problem is DRI level stuff. I do not know any attempts to write DRI interface for PS3. You may try to implement DRI interfaces with pre-2.1 hw.

Some advanced features will be missed ( we do not have *outer* register access - TILE and ZCOMP setup can not be done ).
Back to top
View user's profile Send private message Send e-mail Visit poster's website
phaielip



Joined: 11 Apr 2008
Posts: 6

PostPosted: Sat Apr 12, 2008 1:08 am    Post subject: Reply with quote

ok, I don't want to open a new topic so I will use this one :
I'm trying to run the examples of the libps3rsx and I have some problems with that...
So first, if there is another topic speaking about my problems, just tell me, I'll check, but I haven't see them (the problem is that I don't speak nor read english very fluently, so I miss a lot of information when reading theses posts).

Ok here are my questions :
I'm using Kubuntu (7.10), with a playstation 3 60 Gb.
I've downloaded the libps3rsx folder, and all I think I needed to run the examples (libspe, ...)
But it don't run ! when I run all the exemples, my screen move to the left, and nothing happen...
when I force to quit, a segmentation fault appear.

I thought that's why I haven't applied the " Glaurung's kernel patch", but here is another problem : I can't find the "ps3fb.c" file on my system to apply the patch, and I don't even hnow were it is supposed to be ?
I think I miss a big thing, but I don't know why, is someone have an idea ?

another question is about the use of libps3rsx and the driver ps3rsx. When I try to run an example of libps3rsx, if the driver ps3 is activated, then an error message appeard "RSX is busy...".
So, it isn't possible to use libps3rsx when the ps3 driver is executed ?

i'm sorry for the bad english...
Back to top
View user's profile Send private message
ldesnogu



Joined: 17 Apr 2004
Posts: 95

PostPosted: Sat Apr 12, 2008 1:37 am    Post subject: Reply with quote

phaielip wrote:
I thought that's why I haven't applied the " Glaurung's kernel patch", but here is another problem : I can't find the "ps3fb.c" file on my system to apply the patch, and I don't even hnow were it is supposed to be ?

It's in the kernel sources (first hit with google :-) )
_________________
Laurent
Back to top
View user's profile Send private message
phaielip



Joined: 11 Apr 2008
Posts: 6

PostPosted: Sat Apr 12, 2008 2:13 am    Post subject: Reply with quote

Hum, ok, I already know that. but my problem is that, in the kernel sources, I can find the ps3fb.h file, I can find the ps3fb driver, but I don't have any ps3fb.c file to patch...
when I try to find this file :
Code:

playstation@localhost:/$ sudo find / -name *ps3fb* -print

/usr/include/asm/ps3fb.h
/usr/src/linux-headers-2.6.22-14/include/asm-powerpc/ps3fb.h
/usr/src/linux-headers-2.6.22-14-powerpc/include/asm-powerpc/ps3fb.h
/usr/src/linux-headers-2.6.22-14-powerpc64-smp/include/asm-powerpc/ps3fb.h
/sys/module/ps3fb
/sys/bus/ps3_system_bus/drivers/ps3fb
/proc/irq/22/ps3fb
/home/playstation/.kde/share/apps/RecentDocuments/ps3fb.diff.desktop
/home/playstation/Desktop/ps3fb.diff

That's what I have when I am looking on my ubuntu.
I had the same thing (nearly) whith my old Yellow dog
Back to top
View user's profile Send private message
ldesnogu



Joined: 17 Apr 2004
Posts: 95

PostPosted: Sat Apr 12, 2008 2:52 am    Post subject: Reply with quote

It seems you only have the kernel headers installed, not the source.
_________________
Laurent
Back to top
View user's profile Send private message
phaielip



Joined: 11 Apr 2008
Posts: 6

PostPosted: Sat Apr 12, 2008 3:01 am    Post subject: Reply with quote

that's it, and I've been looking the source for one day, I have found ps3fb.c on the net, but... How should I install it ?
Back to top
View user's profile Send private message
ldesnogu



Joined: 17 Apr 2004
Posts: 95

PostPosted: Sat Apr 12, 2008 3:08 am    Post subject: Reply with quote

phaielip wrote:
that's it, and I've been looking the source for one day, I have found ps3fb.c on the net, but... How should I install it ?

No... You have to install the kernel source package (sorry don't know how to do that for Ubuntu, I only use rpm based distros).

I am afraid that if you don't know what I mean, then you should refrain from playing that game, because the next step will be kernel configuration, then kernel compilation, then installation for booting that kernel.
_________________
Laurent
Back to top
View user's profile Send private message
phaielip



Joined: 11 Apr 2008
Posts: 6

PostPosted: Sat Apr 12, 2008 3:19 am    Post subject: Reply with quote

don't worry, I know what you mean. But, the thing is that I don't find any package whith that ps3fb...
well, I haven't use Linux for a while, so I'm just missing something I don't remember... that's makes me crazy !
I think I will try a debian or a gentoo... It will be more efficient than a ubuntu... even if I have to compile the kernel or whatever else.
Back to top
View user's profile Send private message
ldesnogu



Joined: 17 Apr 2004
Posts: 95

PostPosted: Sat Apr 12, 2008 3:41 am    Post subject: Reply with quote

That's a bit extreme :)

Try something like this: apt-get install linux-source-2.6.12 (replacing the version number with the kernel you have).
But if you really don't feel at home using Ubuntu, I am not sure other distros will make it easier for you.

I am not trying to look negative, I just warn you ;)
_________________
Laurent
Back to top
View user's profile Send private message
androvsky



Joined: 11 Nov 2007
Posts: 33

PostPosted: Sat Apr 12, 2008 9:38 am    Post subject: Reply with quote

Agreed, stick with Ubuntu. You'll have much more trouble with other distros, I promise :)

try: apt-get install linux-source-`uname -r`
Back to top
View user's profile Send private message
IronPeter



Joined: 06 Aug 2007
Posts: 207

PostPosted: Sat Apr 12, 2008 11:00 pm    Post subject: Reply with quote

Now you do not need to modify kernel sources.

Init kernel module is integrated into libps3rsx package. Just run cd src/init && ./startup.sh
from libps3rsx root.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
phaielip



Joined: 11 Apr 2008
Posts: 6

PostPosted: Tue Apr 15, 2008 12:51 am    Post subject: Reply with quote

Ok, it works, I just missed the startup.sh... didn't see him !
thanks ironPeter. Now I'll check what I fun I could find with that !
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