intel: compiler option msse2 and mstackrealign
authorSergii Romantsov <sergii.romantsov@gmail.com>
Thu, 6 Sep 2018 08:07:45 +0000 (11:07 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 7 Sep 2018 12:45:46 +0000 (13:45 +0100)
commitd709f127927cb0ad40d5bf4eaec33c3c27f7738a
treecf322d59e14b46e9fbae1add8a68d02c5de3b029
parent5404e0637f17fa7ae33db33760e10bf4f73b3095
intel: compiler option msse2 and mstackrealign

Seems in case of 32-bit library, usage of msse2 makes
some stack corruption or incorrect instructions.
Usage with mstackrealign fixes that case.

v2: Fixed meson.

v3: Definition of c_sse2_args moved on the top (L.Landwerlin).
    Added mstackrealign for Android's mks where msee4.1 is used.

v4: Added for Vulkan also.

v5: Commit message correction.

CC: <mesa-stable@lists.freedesktop.org>
Fixes: 6b05c080f202 (i965: Compile with -msse3)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107779
Signed-off-by: Sergii Romantsov <sergii.romantsov@globallogic.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/Makefile.vulkan.am
src/intel/meson.build
src/intel/vulkan/meson.build
src/mesa/Android.libmesa_dricore.mk
src/mesa/Android.libmesa_sse41.mk
src/mesa/drivers/dri/i965/Makefile.am
src/mesa/drivers/dri/i965/meson.build