[cairo] Re: [RFC] altivec optimization
Ross Burton
ross at burtonini.com
Wed Jan 24 08:45:21 PST 2007
On Wed, 2007-01-24 at 15:20 +0100, Luca Barbato wrote:
> I'm writing optimizations for altivec, basically processing 4 pixels at
> time, the problem is that I have to call back the scalar version to
> finish the processing in case the width isn't multiple of 4.
>
> Which is the best course of action? straight copy the scalar code inside
> the vector functions or call the scalar function passing the remaining
> pixels?
>
> I'll try to provide a working patch soon, for now the source is just a
> testcase that compares scalar and vector function outputs.
Wouldn't it be a good idea to use liboil for this sort of optimisations?
It has some pixel operations already and I'm sure if the operations
Cairo requires are not present, they can be added:
http://liboil.freedesktop.org/documentation/liboil-liboilfuncs-pixel.html
Ross
--
Ross Burton mail: ross at burtonini.com
jabber: ross at burtonini.com
www: http://www.burtonini.com./
PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF
More information about the cairo
mailing list