On 04/12/11 16:28, Thomas Block wrote: > Hi all, > > > > I’m new to DirectFB and have just implemented TextureTriangles in our > gfxdriver. I have everything working fairly well in the case where the > texture surface is > created out of the fbdev memory area. However, our graphics hardware can > perform operations on arbitrary system RAM areas (that are not in the fbdev > memory > range). Further, I’d like to avoid a texture copy from an arbitrary RAM > buffer into an fbdev memory area surface. Therefore, I’m now testing with a > texture > surface that is created with a pre-allocated RAM buffer, as follows:
At the moment pre-allocated surfaces are not are not transfered to any other pool, that's why we don't get acceleration. This has been working in DirectFB 1.0, but since DirectFB 1.2 and the new surface core which has introduced the surface pools, the feature is not working anymore. I thought about fixing it quite often recently :) > Does anyone have an idea regarding the creation of a pre-allocated buffer > (from system RAM) surface that would allow that buffer to be passed into my > gfxdriver? I guess an equivalent question would be: how do I get read/write > access flags set in the surface buffer pools for this pre-allocated buffer > surface? (That seems to be the point of failure in > dfb_surface_pools_negotiate). I'm not 100% sure yet, how to fix it, but I think the preallocated surface pool should be removed. Instead the system memory pool should pick up the memory with a flag for not freeing it by itself. The type flag CSTF_PREALLOCATED should then be removed, otherwise other pools fail as they don't support that flag. Regarding the system memory pool being accessible by the GPU, there has been a proposal from Timothy Strelchun, maybe he can elaborate. -- Best regards, Denis Oliver Kropp .------------------------------------------. | 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