[PATCH] add EXA relocation function
michel at tungstengraphics.com
Mon Dec 10 01:18:38 PST 2007
On Fri, 2007-12-07 at 13:33 -0800, Jesse Barnes wrote:
> In order to avoid having a fixed offset for the EXA offscreen area (which is
> nice if the driver is using TTM) drivers need to update the base offset of
> EXA memory in EnterVT, and may need to update any private pointers they've
> allocated as well (e.g. for the cursor or scanout buffers, etc.).
> Since the server already kicks out all the pixmaps at VT switch time, the
> relocation is trivial and will typically just involve the one, big free area
> and any locked driver allocations; this function reflects that.
> One possible enhancement would be to call back into a driver provided function
> to update the private allocations, but it wouldn't really save any code...
> Any thoughts on this?
I'm not sure it's really worth it, compared to using the existing
CreatePixmap hook for allocating pixmaps from a generic memory manager
such as TTM in the first place. Is there anything the latter can't do
that the former can?
Earthling Michel Dänzer | http://tungstengraphics.com
Libre software enthusiast | Debian, X and DRI developer
More information about the xorg