Do not require max components to be divisible by 4
authorKalle Raita <kraita@google.com>
Thu, 4 Jun 2015 22:58:50 +0000 (15:58 -0700)
committerKalle Raita <kraita@google.com>
Mon, 8 Jun 2015 16:54:25 +0000 (09:54 -0700)
Spec language only has the requirement that max number of vectors is
the max number of components divided by four.

Bug: 21445539
Change-Id: I6f2c630bfbdb43e06667fa8cea5c6209922b6285

modules/gles3/functional/es3fShaderBuiltinVarTests.cpp

index 44127d6..c6d3dff 100644 (file)
@@ -73,7 +73,7 @@ static int getVectorsFromComps (const glw::Functions& gl, deUint32 pname)
        int value = -1;
        gl.getIntegerv(pname, &value);
        GLU_EXPECT_NO_ERROR(gl.getError(), ("glGetIntegerv(" + glu::getGettableStateStr((int)pname).toString() + ")").c_str());
-       TCU_CHECK_MSG(value%4 == 0, ("Expected " + glu::getGettableStateStr((int)pname).toString() + " to be divisible by 4").c_str());
+       // Accept truncated division. According to the spec, the number of vectors is number of components divided by four, plain and simple.
        return value/4;
 }