glsl: fix explicit uniform block alignment
authorTimothy Arceri <timothy.arceri@collabora.com>
Sat, 28 May 2016 01:40:22 +0000 (11:40 +1000)
committerTimothy Arceri <timothy.arceri@collabora.com>
Mon, 30 May 2016 01:01:32 +0000 (11:01 +1000)
commit8f4ac20b6fc29b7739b2eb909491316bc51ca1c3
tree26f3e9b63309618968274ad711465196a9d806dd
parent7398a32c501ed7fedb5619ee7505f9070551d4bd
glsl: fix explicit uniform block alignment

This stops the offset being bumped again when and an explicit
alignment has already been applied.

Fixes alignment issues in:
GL44-CTS.enhanced_layouts.uniform_block_alignment

Note the test still fails due to unrelated issues with doubles.

Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
src/compiler/glsl/ast_to_hir.cpp