Lines Matching defs:testCtx

73 bool checkIntEquals (tcu::TestContext& testCtx, GLint got, GLint expected)
79 testCtx.getLog() << TestLog::Message << "// ERROR: Expected " << expected << "; got " << got << TestLog::EndMessage;
80 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
81 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid value");
87 void checkPointerEquals (tcu::TestContext& testCtx, const void* got, const void* expected)
93 testCtx.getLog() << TestLog::Message << "// ERROR: Expected " << expected << "; got " << got << TestLog::EndMessage;
94 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
95 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid value");
99 void verifyShaderParam (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint shader, GLenum pname, GLenum reference)
104 if (state.verifyValidity(testCtx))
105 checkIntEquals(testCtx, state, reference);
108 bool verifyProgramParam (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLenum pname, GLenum reference)
113 if (state.verifyValidity(testCtx))
114 return checkIntEquals(testCtx, state, reference);
118 void verifyCurrentVertexAttribf (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
125 attribValue.verifyValidity(testCtx);
129 testCtx.getLog() << TestLog::Message
133 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
134 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid attribute value");
138 void verifyCurrentVertexAttribConversion (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
145 attribValue.verifyValidity(testCtx);
167 testCtx.getLog() << TestLog::Message
184 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
185 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid attribute value");
189 void verifyVertexAttrib (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLint index, GLenum pname, GLenum reference)
194 if (state.verifyValidity(testCtx))
195 checkIntEquals(testCtx, state, reference);
198 void verifyUniformValue1f (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, float x)
205 if (!state.verifyValidity(testCtx))
210 testCtx.getLog() << TestLog::Message
218 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
219 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid uniform value");
223 void verifyUniformValue2f (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, float x, float y)
230 if (!state.verifyValidity(testCtx))
236 testCtx.getLog() << TestLog::Message
246 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
247 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid uniform value");
251 void verifyUniformValue3f (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, float x, float y, float z)
258 if (!state.verifyValidity(testCtx))
265 testCtx.getLog() << TestLog::Message
277 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
278 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid uniform value");
282 void verifyUniformValue4f (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, float x, float y, float z, float w)
289 if (!state.verifyValidity(testCtx))
297 testCtx.getLog() << TestLog::Message
311 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
312 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid uniform value");
316 void verifyUniformValue1i (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, GLint x)
323 if (!state.verifyValidity(testCtx))
328 testCtx.getLog() << TestLog::Message
336 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
337 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid uniform value");
341 void verifyUniformValue2i (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, GLint x, GLint y)
348 if (!state.verifyValidity(testCtx))
354 testCtx.getLog() << TestLog::Message
364 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
365 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid uniform value");
369 void verifyUniformValue3i (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, GLint x, GLint y, GLint z)
376 if (!state.verifyValidity(testCtx))
383 testCtx.getLog() << TestLog::Message
395 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
396 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid uniform value");
400 void verifyUniformValue4i (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, GLint x, GLint y, GLint z, GLint w)
407 if (!state.verifyValidity(testCtx))
415 testCtx.getLog() << TestLog::Message
429 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
430 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid uniform value");
435 void verifyUniformValues (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, const GLfloat* values)
442 if (!state.verifyValidity(testCtx))
449 testCtx.getLog() << TestLog::Message << "// ERROR: at index " << ndx << " expected " << values[ndx] << "; got " << state[ndx] << TestLog::EndMessage;
451 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
452 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid uniform value");
458 void verifyUniformMatrixValues (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, const GLfloat* values, bool transpose)
465 if (!state.verifyValidity(testCtx))
476 testCtx.getLog() << TestLog::Message << "// ERROR: at index [" << y << "][" << x << "] expected " << values[refIndex] << "; got " << state[stateIndex] << TestLog::EndMessage;
478 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
479 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid uniform value");
484 void requireShaderCompiler (tcu::TestContext& testCtx, glu::CallLogWrapper& gl)
489 if (!state.verifyValidity(testCtx) || state != GL_TRUE)