Fix incorrect buffer size expectation in DSA XFB buffer test
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 14 Jun 2017 09:00:13 +0000 (11:00 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Sat, 1 Jul 2017 10:35:14 +0000 (06:35 -0400)
The test creates two buffers, both with a size 's_bo_size' in
BuffersTest::prepareTestSetup(), then binds the first buffer
to binding point 0 and each half of the other buffer to
binding points 1 and 2 respectively.

Later, the test queries buffer sizes for each binding and
expects the size of the buffer in the first binding to be 0
when it should be 's_bo_size'.

Components: OpenGL
VK-GL-CTS issue: 502

Affects:
KHR-GL45.direct_state_access.xfb_buffers

Change-Id: I394622bb7bba076c68c5cca968c6b1cbf34e2ea9

external/openglcts/modules/gl/gl4cDirectStateAccessXFBTests.cpp

index 026fda0..f71b258 100644 (file)
@@ -588,7 +588,7 @@ tcu::TestNode::IterateResult BuffersTest::iterate()
                        is_ok &= testStart(1, 0, "glTransformFeedbackBufferRange");
                        is_ok &= testStart(2, s_bo_size / 2, "glTransformFeedbackBufferRange");
 
-                       is_ok &= testSize(0, 0, "glTransformFeedbackBufferBase");
+                       is_ok &= testSize(0, s_bo_size, "glTransformFeedbackBufferBase");
                        is_ok &= testSize(1, s_bo_size / 2, "glTransformFeedbackBufferRange");
                        is_ok &= testSize(2, s_bo_size / 2, "glTransformFeedbackBufferRange");
                }