gallium/util: fix crash with daz detection on x86
authorRoland Scheidegger <sroland@vmware.com>
Wed, 31 Dec 2014 16:39:57 +0000 (17:39 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Mon, 5 Jan 2015 16:58:38 +0000 (17:58 +0100)
commitb59c7ed0ab1ac5b6d9f8d409f1a90401ab7775b6
treeafe49946f645196706a00e2e31d039b3b6c5ba68
parent21a280f87c5c884eea7a2043d6ed10cdbab57a3e
gallium/util: fix crash with daz detection on x86

The code used PIPE_ALIGN_VAR for the variable used by fxsave, however this
does not work if the stack isn't aligned. Hence use PIPE_ALIGN_STACK function
decoration to fix the segfault which can happen if stack alignment is only
4 bytes.
This fixes https://bugs.freedesktop.org/show_bug.cgi?id=87658.

Cc: "10.4" <mesa-stable@lists.freedesktop.org>
src/gallium/auxiliary/util/u_cpu_detect.c