GL_ARB_enhanced_layouts: no def in untested stage
authorAndres Gomez <agomez@igalia.com>
Thu, 3 Jan 2019 13:19:17 +0000 (15:19 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 1 Mar 2019 11:42:51 +0000 (06:42 -0500)
commit4a4ac1686d2c2510b70ea7b5ef1d50face6c9b85
tree8c42b42dab881bf17fb56ee919bfe86546614228
parent7095280b0a0526515524e1e1a6d3c45ef77eb954
GL_ARB_enhanced_layouts: no def in untested stage

Currently we are trying to match the definition of the output block
with the input block. In a negative test this has the problem that we
cannot actually match without adding the same error we are trying to
test in both interfaces. Therefore, as it is right now, even if the
tested error wouldn't happen, a misleading linking error will happen.

We avoid this by removing the input definition when testing
outputs (no need to have them at all) and, in the reverse situation,
additionally, by not doing static use of the defined input variable.

Additionally, this simplifies the test a lot.

Finally, added a debugging macro to ease checking that we are testing
just the correct and only cause for a failure report.

Components: OpenGL

VK-GL-CTS issue: 1602

Affects:

KHR-GL44.enhanced_layouts.varying_block_member_locations

Change-Id: Ia2c0ba705e975817999aaa16c1ce129d616540f6
external/openglcts/modules/gl/gl4cEnhancedLayoutsTests.cpp