[cairo] Regarding Cairo Optimization for ARM PXA320

Sandeep Agrawal sandeep.a at samsung.com
Tue Oct 30 00:12:44 PDT 2007


Thanks for all your help.

It seems obtaining profiling data should be my first priority.

Regarding permissions.. its too difficult since the platform I am using is
proprietary and getting the permission would be a lot of bureaucratic
trouble. 

Aneways I gained access to a Trace32 and an ETM. Any ideas on how I can
profile text rendering in cairo using that?

My last option would be timestamps on my use case path. I really don't want
to do that :(

Thanks.
Sandeep Agrawal,
Wireless Terminal Division,
Samsung India Software Operations.

-----Original Message-----
From: Behdad Esfahbod [mailto:behdad.esfahbod at gmail.com] On Behalf Of Behdad
Esfahbod
Sent: Tuesday, October 30, 2007 7:46 AM
To: Sandeep Agrawal
Cc: 'Dan Amelang'; cairo at cairographics.org
Subject: Re: [cairo] Regarding Cairo Optimization for ARM PXA320

On Mon, 2007-10-29 at 01:01 -0400, Sandeep Agrawal wrote:
> Hi,

Hi,

> Actually I am unable to generate profiling data because of certain
problems
> with the platform I am working on. I don't have permissions to create a
new
> device and so opcontrol --init fails.

Then your first task should be to go get that permission.  As others
already pointed out, optimization without profiling makes little, if
any, sense.

> I am new to the text rendering field. Since Monahans does not have an FPU,
I
> made the assumption that the affine transformations happening in floating
> point may be optimized to work in fixed point. Am I wrong in my
assumption?

Yes.  We've optimized most of the easy fruit.  Only profiling your
specific use case shows what you should be working on.


behdad


> If so can you please give some hints as to where I can perform
> optimizations? I am sure that it would be possible to do some processor
> specific optimizations as well as Cairo has been written to cater to a
large
> community.
> 
> Thanks.
> Sandeep Agrawal,
> Wireless Terminal Division,
> Samsung India Software Operations.
> 
> -----Original Message-----
> From: Dan Amelang [mailto:daniel.amelang at gmail.com] 
> Sent: Saturday, October 27, 2007 12:46 AM
> To: Sandeep Agrawal
> Cc: cairo at cairographics.org
> Subject: Re: [cairo] Regarding Cairo Optimization for ARM PXA320
> 
> On 10/26/07, Sandeep Agrawal <sandeep.a at samsung.com> wrote:
> >
> > I am currently optimizing text rendering in Cairo for the PXA320
Monahans
> > processor.
> >
> > I just want to know that is it possible to convert the double
computations
> > (specifically affine) to 16.16 or 26.6 fixed point format (any chance of
> > overflow or precision loss?)
> 
> Yes, there is a chance of overflow and precision loss.
> 
> > or do I have to go with processor specific
> > assembly optimizations?
> 
> I don't see how this is an either/or situation. How did converting
> doubles to fixed-point and using assembly optimizations become your
> two options for text rendering improvement?
> 
> I assume that your profiles show that floating-point emulation is the
> bottleneck? Can you share with us your data?
> 
> Dan
> 
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759







More information about the cairo mailing list