glsl: Fix calculation of std140 offset alignment for mat2s.
authorEric Anholt <eric@anholt.net>
Mon, 23 Jul 2012 21:11:38 +0000 (14:11 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 7 Aug 2012 20:54:50 +0000 (13:54 -0700)
commitffb2d430596258aaeaf3b7ae7f295036ea4094d5
tree683965ca98192074aa70473bcdf9b4b2bd9cf4df
parent300315fe69ba275dda8a4786783c2bdd007d0758
glsl: Fix calculation of std140 offset alignment for mat2s.

We were getting the base offset of a vec2, not of a vec2[2] like the quoted
spec text says we should.

v2: Fix swapped then/else cases.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/glsl_types.cpp