swr: Align swr_context allocation to SIMD alignment.
authorBruce Cherniak <bruce.cherniak@intel.com>
Wed, 12 Apr 2017 23:43:25 +0000 (18:43 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Fri, 14 Apr 2017 20:22:44 +0000 (15:22 -0500)
commit97bbb7b6a3afadc22ef956f507f70998629fe99a
treec44f7732d99ec82c85d1b921d761ad0fca3847d8
parent4dcfa83114df1026c715c2eb8a6168084fd2e5ac
swr: Align swr_context allocation to SIMD alignment.

The context now contains SIMD vectors which must be aligned (specifically
samplePositions in the rastState in the derived state).  Failure to align
can result in segv crash on unaligned memory access in vector
instructions.

Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/swr_context.cpp