Lines Matching defs:testCtx
76 bool checkIntEquals (tcu::TestContext& testCtx, GLint got, GLint expected)
82 testCtx.getLog() << TestLog::Message << "// ERROR: Expected " << expected << "; got " << got << TestLog::EndMessage;
83 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
84 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid value");
90 void checkPointerEquals (tcu::TestContext& testCtx, const void* got, const void* expected)
96 testCtx.getLog() << TestLog::Message << "// ERROR: Expected " << expected << "; got " << got << TestLog::EndMessage;
97 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
98 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid value");
102 void verifyShaderParam (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint shader, GLenum pname, GLenum reference)
107 if (state.verifyValidity(testCtx))
108 checkIntEquals(testCtx, state, reference);
111 bool verifyProgramParam (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLenum pname, GLenum reference)
116 return state.verifyValidity(testCtx) && checkIntEquals(testCtx, state, reference);
119 void verifyActiveUniformParam (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLuint index, GLenum pname, GLenum reference)
124 if (state.verifyValidity(testCtx))
125 checkIntEquals(testCtx, state, reference);
128 void verifyActiveUniformBlockParam (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLuint blockIndex, GLenum pname, GLenum reference)
133 if (state.verifyValidity(testCtx))
134 checkIntEquals(testCtx, state, reference);
137 void verifyCurrentVertexAttribf (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
144 attribValue.verifyValidity(testCtx);
148 testCtx.getLog() << TestLog::Message
152 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
153 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid attribute value");
157 void verifyCurrentVertexAttribIi (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLint index, GLint x, GLint y, GLint z, GLint w)
164 attribValue.verifyValidity(testCtx);
168 testCtx.getLog() << TestLog::Message
172 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
173 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid attribute value");
177 void verifyCurrentVertexAttribIui (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLint index, GLuint x, GLuint y, GLuint z, GLuint w)
184 attribValue.verifyValidity(testCtx);
188 testCtx.getLog() << TestLog::Message
192 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
193 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid attribute value");
197 void verifyCurrentVertexAttribConversion (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
204 attribValue.verifyValidity(testCtx);
226 testCtx.getLog() << TestLog::Message
243 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
244 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid attribute value");
248 void verifyVertexAttrib (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLint index, GLenum pname, GLenum reference)
253 if (state.verifyValidity(testCtx))
254 checkIntEquals(testCtx, state, reference);
257 void verifyUniformValue1f (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, float x)
264 if (!state.verifyValidity(testCtx))
269 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 verifyUniformValue2f (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, float x, float y)
289 if (!state.verifyValidity(testCtx))
295 testCtx.getLog() << TestLog::Message
305 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
306 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid uniform value");
310 void verifyUniformValue3f (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, float x, float y, float z)
317 if (!state.verifyValidity(testCtx))
324 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 verifyUniformValue4f (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, float x, float y, float z, float w)
348 if (!state.verifyValidity(testCtx))
356 testCtx.getLog() << TestLog::Message
370 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
371 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid uniform value");
375 void verifyUniformValue1i (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, GLint x)
382 if (!state.verifyValidity(testCtx))
387 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 verifyUniformValue2i (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, GLint x, GLint y)
407 if (!state.verifyValidity(testCtx))
413 testCtx.getLog() << TestLog::Message
423 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
424 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid uniform value");
428 void verifyUniformValue3i (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, GLint x, GLint y, GLint z)
435 if (!state.verifyValidity(testCtx))
442 testCtx.getLog() << TestLog::Message
454 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
455 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid uniform value");
459 void verifyUniformValue4i (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, GLint x, GLint y, GLint z, GLint w)
466 if (!state.verifyValidity(testCtx))
474 testCtx.getLog() << TestLog::Message
488 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
489 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid uniform value");
493 void verifyUniformValue1ui (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, GLuint x)
500 if (!state.verifyValidity(testCtx))
505 testCtx.getLog() << TestLog::Message
513 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
514 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid uniform value");
518 void verifyUniformValue2ui (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, GLuint x, GLuint y)
525 if (!state.verifyValidity(testCtx))
531 testCtx.getLog() << TestLog::Message
541 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
542 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid uniform value");
546 void verifyUniformValue3ui (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, GLuint x, GLuint y, GLuint z)
553 if (!state.verifyValidity(testCtx))
560 testCtx.getLog() << TestLog::Message
572 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
573 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid uniform value");
577 void verifyUniformValue4ui (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, GLuint x, GLuint y, GLuint z, GLuint w)
584 if (!state.verifyValidity(testCtx))
592 testCtx.getLog() << TestLog::Message
606 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
607 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid uniform value");
612 void verifyUniformValues (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, const GLfloat* values)
619 if (!state.verifyValidity(testCtx))
626 testCtx.getLog() << TestLog::Message << "// ERROR: at index " << ndx << " expected " << values[ndx] << "; got " << state[ndx] << TestLog::EndMessage;
628 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
629 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid uniform value");
635 void verifyUniformMatrixValues (tcu::TestContext& testCtx, glu::CallLogWrapper& gl, GLuint program, GLint location, const GLfloat* values, bool transpose)
642 if (!state.verifyValidity(testCtx))
653 testCtx.getLog() << TestLog::Message << "// ERROR: at index [" << y << "][" << x << "] expected " << values[refIndex] << "; got " << state[stateIndex] << TestLog::EndMessage;
655 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
656 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid uniform value");