From: Felix <fx...@gm...> - 2005-02-02 16:36:11
|
I attached an updated patch that applies to latest CVS and includes a fix along the lines of the one I just committed to texmem.c. I havn't heard any feedback in over a week. If no one objects I'll commit this tomorrow. Regards, Felix Am Mittwoch, den 26.01.2005, 00:26 +0100 schrieb Felix K=FChling: > Hi, >=20 > The attached patch is my first cut at implementing a fair strategy for > using all texture heaps. This solves my texture trashing problems with > Torcs on Savage4 and ProSavageDDR. Testing and comments are welcome. I'm > especially interested if anyone sees any performance regressions with > this. >=20 > Heaps are now weighted by their sizes. That is, the bigger a heap, the > more data will be kicked from/uploaded to it. If upload performance > differs greatly then it would be quite easy to multiply a heap-specific > factor to that weight in order to introduce a heap preference. This > could be done either directly in the driver just after allocating a > texture heap (heap->weight *=3D factor) or by adding a new parameter to > driCreateTextureHeap. >=20 > Note that the new code in my patch will not be active as long as there > is enough free space on any texture heap. So in order to see any > performance difference you will either have to test with a very > texture-hungry application or artificially reduce the amount of texture > memory on one or both heaps. Also note that you need at least two > texture heaps, so r200 is a bad candidate. ;-) >=20 > Regards, > Felix >=20 --=20 | Felix K=FChling <fx...@gm...> http://fxk.de.vu | | PGP Fingerprint: 6A3C 9566 5B30 DDED 73C3 B152 151C 5CC1 D888 E595 | |