I have moved to DirectFB 1.2.x and am testing my driver. I have got 2 framebuffers in my system and I have written a surface pool that uses them and have registered the functions to deal with them. The problem I have is the following: On PRIMARY layer (i.e FB0) I can do the following: /* Set the surface description - specify which fields are set and set them. */ surfaceDesc.flags = DSDESC_CAPS; surfaceDesc.caps = DSCAPS_PRIMARY | DSCAPS_STATIC_ALLOC | DSCAPS_DOUBLE | DSCAPS_FLIPPING;
/* Create the frame buffer primary surface by passing our surface description. */ DFBCHECK( pgfx_dfb->CreateSurface(pgfx_dfb, &surfaceDesc, &pgfx_frameBuffer) ); This works and I get a context etc and I can draw properly. However If I try to then do the following for Layer 1 (i.e FB1): DFBCHECK( pgfx_dfb->GetDisplayLayer(pgfx_dfb, 1, &pgfx_videoLayer[which]) ); /* Ensure we have access rights to the layer */ pgfx_videoLayer[which]->SetCooperativeLevel(pgfx_videoLayer[which], DLSCL_ADMINISTRATIVE); pImageLayer->GetSurface(pImageLayer, &pgfx_slideShowBuffer); It fails, what ends up happening is in DirectFB some context stuff happens and it calls my functions as if it were layer 0. However if i do the same but use: pgfx_videoLayer[which]->SetCooperativeLevel(pgfx_videoLayer[which], DLSCL_EXCLUSIVE); Then I get DirectFB to access the correct layers. Now whilst this works I am concerned that I do not really understand this issue and that If I was to start doing windowing etc on these layers that the choice of CooperativeLevel would impact this. Yet the choice of Cooperative level is impacting my driver. Effectively the driver is based on the Davinci driver so i have all the same SetRegion etc. I have just made it aware of the resource_id (defaults to layer num) and used that to control which FB I am acting on. Many thanks for the help Dan -- View this message in context: http://www.nabble.com/DFBDisplayLayerCooperativeLevel-issues-tp19326315p19326315.html Sent from the DirectFB Users mailing list archive at Nabble.com. _______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users