Am Donnerstag, 11. September 2014, 08:52:39 schrieb Matt Turner:
> On Thu, Sep 11, 2014 at 6:58 AM, Marc Dietrich <marvi...@gmx.de> wrote:
> > File specific optimization as used for
> > src/mesa/main/streaming-load-memcpy.c currently will cause problems with
> > LTO in the future
> > (see: https://bugs.freedesktop.org/show_bug.cgi?id=83669). Replace it with
> > in-file target specification.
> 
> This is only available in gcc-4.8 and later.

no, it's there since 4.4 (4.8 has some runtime auto selection for c++ AFAIK). 
See https://gcc.gnu.org/gcc-4.4/changes.html (C family).

I guess we need a fallback for compilers supporting -msse4.1 (icc only?) and 
not __attribute__ (target). I have the feeling that the whole cpu specific 
optimization is often tied closely to the compiler used.

I wonder if there is a better solution we could choose, especially now that 
only one function causes problems. I remember a project called liboil (which 
is abandoned now) which provided some cpu specific accel paths. Also Mesa 
starts to use pixmap for certain routines.

Marc

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to