llvmpipe: fix lp_rast_plane alignment on 32bit
authorRoland Scheidegger <sroland@vmware.com>
Tue, 15 Mar 2016 15:39:55 +0000 (16:39 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Tue, 15 Mar 2016 18:42:15 +0000 (19:42 +0100)
commitbb2c5e657b5f4c55bcec49a8d96f352ed4c1e013
treeeeaa1b316d8089ba95e25d92c1c3aae0a7c434af
parent12a4f0bed6ff03031587e1eb6d69f18b131f5655
llvmpipe: fix lp_rast_plane alignment on 32bit

Some rasterization code relies (for sse) on the first and third planes
(but not the second for now) being 128bit aligned, and we didn't get that
on 32bit - I mistakenly thought the 64bit number in the struct would get
the thing aligned to 64bit even on 32bit archs.
Stephane Marchesin really figured this out.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
CC: <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/llvmpipe/lp_rast.h
src/gallium/drivers/llvmpipe/lp_setup_tri.c