Hi Tasos,
this is in fact a problem of your system module, not your graphics module.
I asume you use fbdev as your system module.
In that case, you need to have a /etc/fb.modes with a valid 320x240
resolution, you can check dfb_fbdev_read_modes() in fbdev.c.
Alternatively, you can try to wipe your fb.modes entirely and see if
this works for you, since it then defaults to the "current" mode which
should be 320x240 in your case.
Note that in some cases, notably with a MIPS processor, fusion shared
memory is mapped to 0x5000.0000; check your /proc/xxx/maps output.
hth
Niels
Tasos Parisinos wrote:
Hi devels
I'm currently trying to implement a gfxdriver for a custom design
based on an Leon chip on an Altera FPGA. I have managed to mmap the
video hardware I/O registers to the gfxdriver so it is succesfully
initialized, probed and started
I run an example directfb application that does some blits with
alphachannel blend which is the first function i want to accelerate. I
see the enginesync and checkstate functions get called but not the
setstate and blit functions
In checkstate i call
state->accel |= DFXL_BLIT;
and in setstate
state->set |= DFXL_BLIT;
state->mod_hw = 0;
also in blit i just return true
in initdriver is set
funcs->CheckState = sciensis_check_state;
funcs->SetState = sciensis_set_state;
funcs->EngineSync = sciensis_engine_sync;
funcs->Blit = sciensis_blit;
and finally in initdevice
dev_info->caps.flags = CCF_CLIPPING;
dev_info->caps.accel = DFXL_BLIT;
dev_info->caps.blitting = DSBLIT_ALL;
the last just to be sure
after the gfxdriver is initialized and probed i get
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
(!) DirectFB/DirectFBCreate: Setting desktop resolution to 320x240
failed!
-> Using default resolution.
(!) DirectFB/DirectFBCreate: Setting desktop format failed!
-> Using default format.
(!) DirectFB/DirectFBCreate: Setting desktop buffer mode failed!
-> No virtual resolution support or not enough memory?
Falling back to system back buffer.
that i saw comes from the layers module
i have a framebuffer fixed 320x240x32 @ 0x50000000 (address)
it has allocated 600k of mem
what could be the problem?
thanx in advance guys and girls
_______________________________________________
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