Hi all,

 

I've been trying to write a graphic driver for DirectFB for some time
now but always end up with the same problems. It seems that the memory
addresses I get from the underlying architecture are not working when I
perform operations on them (I used state->src->phys/state->dest->phys).
The result is just black/transparent (0x00000000) for some regions on
the screen. 

Anyway I looked around and found the sh7722 driver in the system. Till
now I used fbdev as a system. So now I want to give it a try with
devmem.

The thing I don't completely understand though is the different parts of
the architecture I have to implement there, like screen and layers. So
what does each of them really stand for? What part of the system would
be the memory region that actually maps into the framebuffer (I guess
this is the frontbuffer) and what part stands for the composition buffer
(I guess the backbuffer?!)? How do I have to set up the screen and the
layers so that the frontbuffer lies in the (visible) framebuffer region
and the backbuffer lies in the rest of the allocated framebuffer region
that is not visible. I reserve 20MB of space when initializing the
frambuffer device. Of these 20MB 8MB are used for a 1920x1080x32 visible
framebuffer. Maybe I'm doing this completely wrong?!

The goal would be to have all regions of memory that are drawn into in
that 20MB framebuffer memory region. Or do I have to have the
framebuffer as 8MB and create another memory region with ?? MB as
backbuffer to do the window creation there and have blitting operations
move stuff in between the two of them?!

I'd be very grateful for any advise or help anybody can give me on this!

 

-Bernd




-----------------------------------------
This message (including any attachments) may contain confidential
information intended for a specific individual and purpose.  If you
are not the intended recipient, delete this message.  If you are
not the intended recipient, disclosing, copying, distributing, or
taking any action based on this message is strictly prohibited.
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to