glsl: Make sure fields after small structs have correct padding
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 8 Sep 2014 19:23:39 +0000 (12:23 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 26 Sep 2014 14:59:25 +0000 (07:59 -0700)
commit8e01c66da6c780601f941aa5b9939962c219fdbd
treed234a06dd2c53799d99ea50faae7e855c4a8d7fa
parent24653bcd7d70c92eff85db66c58dec79bbd10234
glsl: Make sure fields after small structs have correct padding

Previously the linker would correctly calculate the layout, but the
lower_ubo_reference pass would not apply correct alignment to fields
following small (less than 16-byte) nested structures.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83533
Cc: mesa-stable@lists.freedesktop.org
src/glsl/lower_ubo_reference.cpp