Hi Justin.
No, it's not broken, at least not the last time I tested.
Take care that /dev/mem also contains shared data, so you need to do 
some phys/virt stuff, not sure how you can avoid that without mmap. Your 
warnings might point to out-of-memory issues (check with dfbdump using 
some options) but I cannot tell without seeing which problems you are 
encountering.

hth
Niels

Justin Dick wrote:
> Hi everyone -
>
> I'm having issues with the SurfacePools in DFB 1.3 with devmem.  I'm 
> attempting to modify devmem slightly to use a simple block of memory 
> that I provide rather than /dev/mem, but I get errors when running 
> some of the test utilities.
>
> (*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (directfb.org 
> <http://directfb.org>)
> (*) DirectFB/Core/WM: Default 0.3 (directfb.org <http://directfb.org>)
> (!) DirectFB/DirectFBCreate: Setting desktop buffer mode failed!
>      -> No virtual resolution support or not enough memory?
>         Falling back to system back buffer.
> (!) DirectFB/DirectFBCreate: Setting system memory desktop back buffer 
> failed!
>      -> Using front buffer only mode.
>  (!!!)  *** WARNING [workaround] *** [surfacemanager.c:194 in 
> dfb_surfacemanager_allocate()]
>  (!!!)  *** UNIMPLEMENTED [dfb_surface_pool_displace] *** 
> [surface_pool.c:745]
> (!) Core/SurfBuffer: Buffer allocation failed!
>     --> General failure!
>
> In devmemInitPool(), it calls dfb_surfacemanager_create() with 
> dfb_config->video_length, which I have set to the byte-size of my 
> memory block.  This isn't big enough, however, as 
> dfb_gfxcard_calc_buffer_size() in dfb_surfacemanager_allocate() 
> returns a size slightly larger as the needed size.
>
> Even punting on this and creating a surfacemanager with a size double 
> the video_length, I still get the various warnings and eventual failures.
>
> The test program I am using is dfbteset_window.  Does anybody have any 
> ideas what's going on?  Is devmem broken in DFB 1.3?
>
> Thanks,
> Justin
> ------------------------------------------------------------------------
>
> _______________________________________________
> directfb-dev mailing list
> directfb-dev@directfb.org
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
>   


-- 

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------" 

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

Reply via email to