swr: Align query results allocation
authorGeorge Kyriazis <george.kyriazis@intel.com>
Wed, 18 Jan 2017 23:09:08 +0000 (17:09 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Mon, 23 Jan 2017 20:15:54 +0000 (14:15 -0600)
commit00847e4f14dd237dfcdb2c3d15be1325a08ccf5a
treef1e08469f88d95e17970ba53ef5ad7179910a791
parentb829206b0739925501bcc68233437d6d03b79795
swr: Align query results allocation

Some query results struct contents are declared as cache line aligned.
Use aligned malloc, and align the whole struct, to be safe.

Fixes crash when compiling with clang.

CC: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/swr_query.cpp
src/gallium/drivers/swr/swr_query.h