Am Mittwoch, 6. Oktober 2004 03:52 schrieb Ian Romanick:
Here's a simple patch that gives about a 50% (on my box) speed boost to
glReadPixels performance in 24-bit. I measured using the benchmark
built into progs/demos/readpix. The interesting thing is that the core
MMX & SSE2 routines can be used for other cards as well. For example,
it looks like MGA, Unichrome, and others can use the same code for 24-bit.
Stupid question - aren't newer versions of gcc capable of producing SSE/MMX code ? Would it be enough just to turn on appropriate flags ?
My original version used the MMX and SSE intrinsics in GCC 3.4.1. The MMX code it generated was 5 times *slower* than the vanilla C version, and the SSE version caused an internal compiler error. At this point, I don't have a lot of faith in the SIMD intrinsics in current versions of GCC. I fully expect that it will improve, but for now it is unusable. :(
------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl -- _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel