Revert "gallium: Force blend color to 16-byte alignment"
authorTim Rowley <timothy.o.rowley@intel.com>
Wed, 13 Jul 2016 15:30:46 +0000 (10:30 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Wed, 13 Jul 2016 18:55:33 +0000 (13:55 -0500)
commit29f53d793781b67a92bb95fe66d7d38adc5488bb
tree5b9a778dd99f8aebd4c974b56e37072bb034cae2
parent48ed8b6f26a40da40cb72b90cb52c9a653ff1e13
Revert "gallium: Force blend color to 16-byte alignment"

This reverts commit d8d6091a846ac2a40a011d512d6d57f6c8442e6a.

Heap allocations may be only 8-byte aligned on 32-bit system, and so having
members with 16-byte alignment (such as in the case where pipe_blend_color is
embedded in radeonsi's si_context) is undefined behavior which indeed causes
crashes when compiled with gcc -O3.

Cc: <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96835
Signed-off-by: Tim Rowley <timothy.o.rowley@intel.com>
Acked-by: Chuck Atkins <chuck.atkins@kitware.com>
src/gallium/include/pipe/p_state.h