[PATCH] add EXA relocation function

Jesse Barnes jbarnes at virtuousgeek.org
Fri Dec 7 13:33:56 PST 2007


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?

Jesse
-------------- next part --------------
A non-text attachment was scrubbed...
Name: exa-base-update.patch
Type: text/x-diff
Size: 1289 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20071207/8186f476/attachment.patch>


More information about the xorg mailing list