Philip Brown wrote:
On Tue, Mar 25, 2003 at 12:37:17PM -0800, Ian Romanick wrote:

This could also pave the way for the X server to use the new memory manager that is being developed. We could make some sort of a conduit for the X server to call into the DRI driver to allocate graphics / AGP memory. There are other ways to achieve this, but this would be an easy way.


Please do not do this. Choose the "clean" way, not the "easy" way.

There are already AGP (and memory alloc) related calls in the X server
framework; xf86BindGARTMemory(), xf86EnableAGP(), etc.

The core X server should not be making calls into extension modules.
Extension modules should be making calls to xfree-exported functions.
If there arent sufficient xfree-exported functions, extend or add new ones.

The idea is that the X server and the 3D driver can use the same memory manager for off-screen memory. That way pixmap cache, textures, and vertex buffers all get managed in the "same" way and share ALL of off screen memory. Currently, when DRI is enables, the pixmap cache is very, very small, even if there are no 3D clients running.


There are other benefits as well. It sure would be nice to be able to resize the amount of memory used when the screen mode is changed, for example. :)




------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to