Explicitly use std140 layout for uniform blocks
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 17 Feb 2017 16:32:25 +0000 (17:32 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 24 Mar 2017 15:51:16 +0000 (11:51 -0400)
commit6820206014efd4dd3bf1b9de0a98a0c2abac132d
tree8aaa8144eecd42a1c7a561c6e6df67edb9af89ec
parent62d8f6715f74a329423ddeaaddb7ee4449314961
Explicitly use std140 layout for uniform blocks

The exact memory layout of an array of uints in a uniform block is
implementation-defined, unless a layout is explictly specified.
So the UniformBufferStorageTestCase would previously fail on an
implementation that uses std140 by default.

Use std140 explicitly -- which implies changing the stride of the
array to 16 bytes -- since std140 is the only layout supported for
uniform blocks in core OpenGL.

Modules: OpenGL
Affects:
GL45-CTS.sparse_buffer_tests.BufferStorageTest

VK-GL-CTS issue: 179

Change-Id: Ib5a996aa55a4c589625c575a1b4a3d252ca8e30c
external/openglcts/modules/gl/gl4cSparseBufferTests.cpp