gallium: Force blend color to 16-byte alignment
authorChuck Atkins <chuck.atkins@kitware.com>
Wed, 29 Jun 2016 02:32:02 +0000 (22:32 -0400)
committerTim Rowley <timothy.o.rowley@intel.com>
Thu, 30 Jun 2016 22:04:41 +0000 (17:04 -0500)
commitd8d6091a846ac2a40a011d512d6d57f6c8442e6a
tree2a3e233fc4a8d15da0bb4f30b1a1d71004171e77
parentc1bf6692beb662e5749e5680e0ebd15af2cd032a
gallium: Force blend color to 16-byte alignment

This aligns the 4-element color float array to 16 byte boundaries.  This
should allow compiler vectorizers to generate better optimizations.
Also fixes broken vectorization generated by Intel compiler.

v2: Fixed indentation and added a lengthy comment explaining the
    reason for the alignment.

Cc: <mesa-stable@lists.freedesktop.org>
Reported-by: Tim Rowley <timothy.o.rowley@intel.com>
Tested-by: Tim Rowley <timothy.o.rowley@intel.com>
Signed-off-by: Chuck Atkins <chuck.atkins@kitware.com>
Acked-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/include/pipe/p_state.h