On Mon, Nov 17, 2008 at 03:01:09PM -0800, Bob Garrow wrote:
> Hello All,
> 
> Frequent listener, first time caller. I've been working on a gfxdriver for 
> our hardware, and would like to use its internal memory for everything, 
> boxes, rectangles, fonts, flipping, etc.
> 
> I've managed to piece together a solution, but it consists of patches to 
> everything that uses a layer to write on; changing the write requests with, 
> CSAF_CPU_WRITE to CSAF_GPU_WRITE. This works fine .. but I hate patches. I 
> could have sworn there was a small tutorial describing how to define your own 
> layer, and, presumably, support all types and set a priority for use, 
> eliminating requests to system type memory.

AFAICS that should happen if your surface pool description looks
something like this:

caps              = CSPCAPS_PHYSICAL | CSPCAPS_VIRTUAL;
access[CSAID_CPU] = CSAF_READ | CSAF_WRITE | CSAF_SHARED;
access[CSAID_GPU] = CSAF_READ | CSAF_WRITE | CSAF_SHARED;
types             = CSTF_LAYER | CSTF_WINDOW | CSTF_CURSOR | CSTF_FONT |
                    CSTF_SHARED | CSTF_INTERNAL | CSTF_EXTERNAL;
priority          = CSPP_ULTIMATE;

access[CSAID_LAYER0] = CSAF_READ;
...

-- 
Ville Syrjälä
[EMAIL PROTECTED]
http://www.sci.fi/~syrjala/
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to