In mga_storm.c line 866 or so, whatever line it is before this :
pMGADRIServer->textureOffset = (pMga->FbMapSize -
pMGADRIServer->textureSize +
MGA_BUFFER_ALIGN) & ~MGA_BUFFER_ALIGN;
All you need on the line before that is the following command with your memory size in bytes you wanna fork over. The remaining memory can then be used by xaa and the server to do all the stuff you normally do when dri is not loaded.
pMGADRIServer->textureSize = SIZE_IN_BYTES;
This could easily just be coded into a configuration file option for the mga driver to give you the ability to change this without recompiling. I set it to 512KB, and i dont play any video games.
This is just a "just so ya know" post. I've been annoyed by the fact that using some drm/dri features meant i had to fight with 2d performance, some other people may too.
_______________________________________________ XFree86 mailing list XFree86@xxxxxxxxxxx http://XFree86.Org/mailman/listinfo/xfree86