Ok, now I remember that in directfb 1.4, buffers are allocated at the
last moment. So you need to make at least one operation on your buffers
to be sure they have been allocated.

For example you can that :

surface = SuperSurface->CreateSurface(...)
ret = surface->Clear(...)
/* check if ret == DFB_NOVIDEOMEMORY */

or 

surface = SuperSurface->CreateSurface(...)
ret = surface->Lock(...)
/* check if ret == DFB_NOVIDEOMEMORY */
surface->Unlock(...)


Le jeudi 12 novembre 2009 à 10:55 +0530, Lindo Lonappan a écrit :
> Dear Lionel/All,
> 
>   Our configuration is "system=fbdev" and gfxdriver is a proprietary
> one.
> 
> Regards,
> Lindo
> > ------------------------------
> > 
> > Message: 5
> > Date: Wed, 11 Nov 2009 14:04:05 +0100
> > From: Lionel Landwerlin <llandwer...@gmail.com>
> > Subject: Re: [directfb-dev] For CreateSurface, DFB_NOVIDEOMEMORY error
> >     is not getting even if there is no video memory( In DirectFB-1.4.2)
> > To: directfb-dev@directfb.org
> > Message-ID: <1257944645.24296.10.ca...@coalu.atr>
> > Content-Type: text/plain; charset="UTF-8"
> > 
> > Le mercredi 11 novembre 2009 ? 17:56 +0530, Lindo Lonappan a ?crit :
> >   
> > > Dear all,
> > > 
> > > Our question is related to DirectFB-1.4.2.
> > > 
> > > We are working in an embedded platform.
> > > 
> > > We are creating IDirectFBSurface using CreateSurface() API. In the test 
> > > application we are creating a lot of surfaces. We are using the 
> > > following settings in DFBSurfaceDescription,
> > > ....
> > > surfaceDesc.flags       =  DSDESC_CAPS | ....;
> > > surfaceDesc.caps        = DSCAPS_VIDEOONLY;
> > > ....
> > > 
> > > But even after complete usage of  video memory, the CreateSurface() is 
> > > not returning any error. We expect an DFBResult DFB_NOVIDEOMEMORY in 
> > > this scenario. We get this DFBResult when we test with DirectFB-1.0.
> > > 
> > > Is this is a bug in DirectFB-1.4?
> > > 
> > > If yes, can any one please tell, what should we do to solve this or 
> > > where should we look?
> > > 
> > > If this is not a bug, what should we do to know video memory underflow 
> > > happened?
> > > 
> > >     
> > 
> > What system/gfxdriver are you using ?
> >   
> _______________________________________________
> directfb-dev mailing list
> directfb-dev@directfb.org
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev


_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to