swr/rast: Correctly allocate SWR_STATS memory as cacheline aligned
authorTim Rowley <timothy.o.rowley@intel.com>
Thu, 6 Jul 2017 18:16:18 +0000 (13:16 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Thu, 6 Jul 2017 20:01:00 +0000 (15:01 -0500)
commitbab03c06fc79ec5624982777684d0c5f123c127c
treed4fd3b19abf9bfe55ba11d2474998dd7f1e9e7e8
parent1f0680b51ef445a06f990684142f52286ce4a314
swr/rast: Correctly allocate SWR_STATS memory as cacheline aligned

Cacheline alignment of SWR_STATS to prevent sharing of cachelines
between threads (performance).

Gets rid of gcc-7.1 warning about using c++17's over-aligned new
feature.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/core/api.cpp
src/gallium/drivers/swr/rasterizer/core/threads.cpp