[Mesa-dev] [PATCH v2 08/13] mesa/format_utils: Add a general format conversion function

Dieter Nützel Dieter at nuetzel-hh.de
Thu Aug 14 19:13:45 PDT 2014


Am 15.08.2014 02:36, schrieb Dave Airlie:
>>> On 08/02/2014 02:11 PM, Jason Ekstrand wrote:
>>>> 
>>>> Most format conversion operations required by GL can be performed by
>>>> converting one channel at a time, shuffling the channels around, and
>>>> optionally filling missing channels with zeros and ones.  This adds 
>>>> a
>>>> function to do just that in a general, yet efficient, way.
>>>> 
>>>> v2:
>>>>   * Add better comments including full docs for functions
>>>>   * Don't use __typeof__
>>>>   * Use inline helpers instead of writing out conversions by hand,
>>>>   * Force full loop unrolling for better performance
>>>> 
> 
> 
> This file seems to anger gcc a lot.
> 
> It seems to take upwards of a minute or two to compile here.
> 
> gcc 4.8.3 on 32-bit x86.
> 
> Dave.

For me (on our poor little Duron 1800/2 GB) it ran ~5 minutes...

gcc 4.8.1 on 32-bit x86.

Dieter


More information about the mesa-dev mailing list