[Mesa-dev] [Bug 86788] (bisected) 32bit UrbanTerror 4.1 timedemo sse4.1 segfault...

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Nov 28 03:22:26 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=86788

José Fonseca <jfonseca at vmware.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jfonseca at vmware.com

--- Comment #6 from José Fonseca <jfonseca at vmware.com> ---
> ./ioUrbanTerror.i386
[..]
> unsigned vec_count __attribute__ ((aligned (16)));

This won;'t work on 32-bits unless you use -mstackrealign or
-mincoming-stack-boundary=2.

This is because some years ago gcc started to assume the stack alignment is
16-bytes.   But old applications were still built with 4-byte stack aligment. 
And because Mesa drivers can't get to choose, they must assume the worst, ie. 4
bytes stack alignment.



BTW, wefore we start investing on custom SSE code paths, we really should be
using -mfpmath=sse on Linux 32bits too.  It's recommend by Intel and the
default on MSVC.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20141128/636aeac8/attachment.html>


More information about the mesa-dev mailing list