Don't prefetch from NULL in the SSE2 fast paths.
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>
Mon, 14 Sep 2009 19:52:29 +0000 (22:52 +0300)
committerM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>
Mon, 14 Sep 2009 21:35:14 +0000 (00:35 +0300)
commitec7c1affcc66c12af1fc29fd000f9885a5d48320
treee07e434adf36f6f9adac1f9437f2cbccf17c2392
parent1b5269a585d8dcdb8f5ff9f71113bcf2d5efab26
Don't prefetch from NULL in the SSE2 fast paths.

On an Athlon64 box prefetch from NULL slows down
the rgba OVER rgba fast for predominantly solid sources
by up to 3.5x in the one-rounded-rectangle test case
when run using a tiling polygon renderer.  This patch
conditionalises the prefetches of the mask everywhere
where the mask pointer may be NULL in a fast path.
pixman/pixman-sse2.c