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 

Direct GPU frame buffer access

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



Joined: 02 Jun 2005
Posts: 121

PostPosted: Sat Apr 28, 2007 9:47 am    Post subject: Direct GPU frame buffer access Reply with quote

As noted by others, when allocating and mapping DDR, a chunk of memory at the beginning of the area seemed only to retain values for a suspiciously short period of time, presumably being overwritten by the frame buffer blit.

I've had ps3fb disabled in my kernel for the past week or so, but I've only just this evening got round to trying this out and can confirm that this does appear to be the case. I tried writing values to the area below 20MB - the values were retained and my TV screen turned a nice shade of purple :)

The pixel format is 32bit XRGB, where the X value has no effect on the displayed image. lv1_gpu_context_attribute(L1GPU_CONTEXT_ATTRIBUTE_DISPLAY_FLIP) can be used to specify the offset in bytes from the start of the memory area that the GPU pulls pixel data from. I've not tested this extensively, but I was able to flip between displaying two different areas of memory filled with known values.

Disabling ps3fb is very straightforward - I replaced ps3fb.c with:
Code:
#include <linux/module.h>

void ps3fb_flip_ctl(int on)
{
}
EXPORT_SYMBOL_GPL(ps3fb_flip_ctl);

void ps3fb_cleanup(void)
{
}
EXPORT_SYMBOL_GPL(ps3fb_cleanup);
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