Wang Dongli wrote:
> Hi, All
>
> I have wrote a gfx driver about Cirrus Logic's EP9315(arm9) cpu for the
> DirectFB-1.1.1 by myself.
> Now I got such a problem, When I run a example with WINDOW style as
> following, I can't get the accel function to run;
>
> int main(int argc, char **argv)
> {
> ......
>
> DirectFBInit(&argc, &argv);
> DirectFBCreate(&dfb);
>
> dfb->GetDisplayLayer(dfb, DLID_PRIMARY, &layer);
> layer->SetCooperativeLevel( layer, DLSCL_ADMINISTRATIVE );
> layer->GetConfiguration(layer, &layer_config);
> layer_config.flags = DLCONF_WIDTH | DLCONF_HEIGHT | DLCONF_PIXELFORMAT |
> DLCONF_BUFFERMODE | DLCONF_SURFACE_CAPS;
> layer_config.width = 800;
> layer_config.height = 600;
> layer_config.pixelformat = DSPF_LUT8;
> layer_config.buffermode = DLBM_FRONTONLY;
> layer_config.surface_caps = DSCAPS_PRIMARY; <== not needed
> layer->SetConfiguration(layer, &layer_config);
>
> ......
> }
If you support LUT8 fill, this should use acceleration. Did your fullscreen
test use another format?
--
Best regards,
Denis Oliver Kropp
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users