altering mga to use less mem for texture with dri

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yes, most uses of DRI are 3d and all. But it has some 2D uses. You can achieve more 2d memory (the default mode i believe does not give adequeate memory to have multiple virtual desktops, multiple xvideo outputs and populate those desktops with a bunch of windows).
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

[Index of Archives]     [X Forum]     [Xorg]     [XFree86 Newbie]     [IETF Announce]     [Security]     [Font Config]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux Kernel]

  Powered by Linux