Add more cases for block/non-block uniforms match
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Tue, 30 Jan 2018 09:55:40 +0000 (10:55 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 14 Feb 2018 08:54:14 +0000 (03:54 -0500)
commite1d87d965cc8d9648ce6e188d40517e1167388b9
treeb609fca9520697332236d558f5ce6d4f7a031bcd
parent0dd89ea7126f19cca176ffaa6bb47a259671570f
Add more cases for block/non-block uniforms match

Cover more situations as described in GLSL 3.20 spec, section 4.3.9.

- It is a link-error when using the same name inside a block with non
instance name and outside a block, but it is correct if the block has
instance name.

- It is a link-error when using the same name inside two different
blocks with non instance name.

Components: OpenGL

VK-GL-CTS issue: 972

Affects:
KHR-GLES3.shaders.uniform_block.common.name_matching
KHR-GL33.shaders.uniform_block.common.name_matching

Change-Id: Ie91300685e807774a9cc9bbb9139936133a8ae1c
external/openglcts/modules/common/glcUniformBlockTests.cpp