linker: Add padding after the last field of a structure
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 16 Jul 2014 22:40:32 +0000 (15:40 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 4 Aug 2014 21:40:07 +0000 (14:40 -0700)
commit7f731340d25b0c4a86ec3cc7b9a33f66c4818c2b
tree566febb63703c9ee54540c7d2e6ff8cf6f79d0d3
parent47c6fc5b04774737404b55b01cbab5c3baf1c183
linker: Add padding after the last field of a structure

This causes the thing following the structure to be vec4-aligned.

Fixes gles3conform failures in:

ES3-CTS.shaders.uniform_block.random.nested_structs.2
ES3-CTS.shaders.uniform_block.random.all_shared_buffer.5

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/glsl_types.cpp
src/glsl/link_uniform_blocks.cpp
src/glsl/link_uniforms.cpp