On Fri, Oct 10, 2003 at 11:24:24PM +0100, Alan Cox wrote:
> On Iau, 2003-10-09 at 17:16, Alan Hourihane wrote:
> > I've just committed a version of the DRI's common code mm.[ch] linear allocator
> > into the XFree86 CVS which extends the FBManager's ability to serve
> > real linear space rather than pinching it from the XY area's that's
> > usually occupied by the pixmap cache.
>
> Excellent, that will mean I can actually fix the VIA bug thats currently
> dependant on pixmap cache being < 2048 lines and other stuff wanting to
> use the memory too.
>
> Is there any good example/docs on changes I need to make to use this for
> the 2D driver I have (both setup and pulling non pixmap cache linear
> space) and will it make XFree 4.4 ?
It's in the XFree86 CVS now, so it will make 4.4 - yes. It's also
very simple to setup.......
After the call to the xf86InitFBManager() (or equivalent) for the XY Areas,
you then do.....
xf86InitFBManagerLinear(pScreen, <offset>, <size>);
The offset and size are pixel aligned for most hardware. So for 32bpp your
looking to divide offset & size by 4 to DWORD align it. This matches how XY
areas are handled and will make the fallback's to allocating XY areas continue
to work properly when no linear space is available. You'll then need to
multiply back in the driver to get the true offset. All because of area
fallbacks.
Let me know if there's anything you think is missing, or if there are
any problems for that matter.
Alan.
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel