On Fri, Jun 22, 2007 at 11:07:26AM -0500, Lloyd Sargent wrote: > On Friday 22 June 2007 10:48, Ville Syrjälä wrote: > > On Fri, Jun 22, 2007 at 09:29:55AM -0500, Lloyd Sargent wrote: > > > On Friday 22 June 2007 03:28, Ville Syrjälä wrote: > > > > On Thu, Jun 21, 2007 at 03:43:54PM -0500, Lloyd Sargent wrote: > > > > I've added DSCAPS_VIDEOONLY and now I get an error "OUT OF VIDEO MEMORY". > > > > > > What does directfb depend on to determine the video memory size? > > > > The fbdev driver will provide that information. > > I think we are getting closer to the problem. The person that wrote the video > driver claims it is correct. That the problem is in DFB. > > I'm trying to determine WHAT it is that is wrong so I can tell him "look, > here > is why it doesn't work". > > As an aside, I've printed out the contents of > > FBIOPUT_VSCREENINFO data: > > xres: 1024 > yres: 768 > xres virtual: 1024 > yres virtual: 1536 > xoffset 0 > yoffset 0 > bit per pixel 16 > grayscale 0 > nonstd 0 > activate 0 > height -1 > width -1 > > FBIOGET_FSCREENINFO data: > > phys. start 86800000 > phys. len 3145728 > type 0 > ID embedded_fb
If your phys len is smem_len then that's the one you need to look at. So it's 3 MB in your case. It's precisely enough for double buffered 1024x768 @ 16bpp. That doesn't leave any offscreen memory though so all your windows' surfaces have to go to system memory. > (#) DirectFBError [Error]: Out of video memory! > > What I'm concerned about is that the height and the width shouldn't be -1. They are supposed to be the physical display size (in mm). I don't think most fbdev drivers set them. Although now that you mention it -1 isn't really appropriate considering their type is supposed to be __u32. It looks like they are initialized to -1 in the kernel's common fb code. I noticed some other signed vs. unsigned issued in the fb code. I'll change them to 0 and send a patch to the fb maintainer. > Perhaps that doesn't matter. It doesn't matter. -- Ville Syrjälä [EMAIL PROTECTED] http://www.sci.fi/~syrjala/ _______________________________________________ directfb-users mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
