Lines Matching defs:testCtx
77 virtual void verifyFloat (tcu::TestContext& testCtx, GLenum name, GLfloat reference) = DE_NULL;
80 virtual void verifyFloatExpanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference) = DE_NULL;
81 virtual void verifyFloat2Expanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1) = DE_NULL;
82 virtual void verifyFloat4Color (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1, GLfloat reference2, GLfloat reference3) = DE_NULL;
85 virtual void verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max) = DE_NULL;
86 virtual void verifyFloatGreaterOrEqual (tcu::TestContext& testCtx, GLenum name, GLfloat reference) = DE_NULL;
114 void verifyFloat (tcu::TestContext& testCtx, GLenum name, GLfloat reference);
115 void verifyFloatExpanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference);
116 void verifyFloat2Expanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1);
117 void verifyFloat4Color (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1, GLfloat reference2, GLfloat reference3);
118 void verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max);
119 void verifyFloatGreaterOrEqual (tcu::TestContext& testCtx, GLenum name, GLfloat reference);
127 void GetBooleanVerifier::verifyFloat (tcu::TestContext& testCtx, GLenum name, GLfloat reference)
134 if (!state.verifyValidity(testCtx))
141 testCtx.getLog() << TestLog::Message << "// ERROR: expected " << (expectedGLState==GL_TRUE ? "GL_TRUE" : "GL_FALSE") << "; got " << (state == GL_TRUE ? "GL_TRUE" : (state == GL_FALSE ? "GL_FALSE" : "non-boolean")) << TestLog::EndMessage;
142 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
143 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid boolean value");
147 void GetBooleanVerifier::verifyFloatExpanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference)
150 verifyFloat(testCtx, name, reference);
153 void GetBooleanVerifier::verifyFloat2Expanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1)
163 if (!boolVector2.verifyValidity(testCtx))
175 testCtx.getLog() << TestLog::Message << "// ERROR: expected "
180 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
181 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid boolean value");
185 void GetBooleanVerifier::verifyFloat4Color (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1, GLfloat reference2, GLfloat reference3)
192 if (!boolVector4.verifyValidity(testCtx))
208 testCtx.getLog() << TestLog::Message << "// ERROR: expected "
214 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
215 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid boolean value");
219 void GetBooleanVerifier::verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max)
226 if (!range.verifyValidity(testCtx))
233 testCtx.getLog() << TestLog::Message << "// ERROR: range [" << min << ", " << max << "] is not in range [" << (range[0] == GL_TRUE ? "GL_TRUE" : (range[0] == GL_FALSE ? "GL_FALSE" : "non-boolean")) << ", " << (range[1] == GL_TRUE ? "GL_TRUE" : (range[1] == GL_FALSE ? "GL_FALSE" : "non-boolean")) << "]" << TestLog::EndMessage;
234 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
235 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid boolean range");
243 testCtx.getLog() << TestLog::Message << "// ERROR: range [" << min << ", " << max << "] is not in range [" << (range[0] == GL_TRUE ? "GL_TRUE" : (range[0] == GL_FALSE ? "GL_FALSE" : "non-boolean")) << ", " << (range[1] == GL_TRUE ? "GL_TRUE" : (range[1] == GL_FALSE ? "GL_FALSE" : "non-boolean")) << "]" << TestLog::EndMessage;
244 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
245 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid boolean range");
251 void GetBooleanVerifier::verifyFloatGreaterOrEqual (tcu::TestContext& testCtx, GLenum name, GLfloat reference)
258 if (!state.verifyValidity(testCtx))
268 testCtx.getLog() << TestLog::Message << "// ERROR: expected GL_TRUE" << TestLog::EndMessage;
269 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
270 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid boolean value");
275 testCtx.getLog() << TestLog::Message << "// ERROR: expected GL_TRUE or GL_FALSE" << TestLog::EndMessage;
276 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
277 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid boolean value");
287 void verifyFloat (tcu::TestContext& testCtx, GLenum name, GLfloat reference);
288 void verifyFloatExpanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference);
289 void verifyFloat2Expanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1);
290 void verifyFloat4Color (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1, GLfloat reference2, GLfloat reference3);
291 void verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max);
292 void verifyFloatGreaterOrEqual (tcu::TestContext& testCtx, GLenum name, GLfloat reference);
300 void GetIntegerVerifier::verifyFloat (tcu::TestContext& testCtx, GLenum name, GLfloat reference)
310 if (!state.verifyValidity(testCtx))
315 testCtx.getLog() << TestLog::Message << "// ERROR: expected rounding to the nearest integer, valid range [" << expectedGLStateMin << "," << expectedGLStateMax << "]; got " << state << TestLog::EndMessage;
316 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
317 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid integer value");
321 void GetIntegerVerifier::verifyFloatExpanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference)
331 if (!state.verifyValidity(testCtx))
339 testCtx.getLog() << TestLog::Message << "// ERROR: expected in range [" << toHex(expectedGLStateMin) << "," << toHex(expectedGLStateMax) << "]; got " << toHex((GLint)state) << TestLog::EndMessage;
340 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
341 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid integer value");
345 void GetIntegerVerifier::verifyFloat2Expanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1)
356 if (!floatVector2.verifyValidity(testCtx))
373 testCtx.getLog() << TestLog::Message
381 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
382 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid integer value");
386 void GetIntegerVerifier::verifyFloat4Color (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1, GLfloat reference2, GLfloat reference3)
394 if (!floatVector4.verifyValidity(testCtx))
417 testCtx.getLog() << TestLog::Message
429 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
430 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid integer value");
434 void GetIntegerVerifier::verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max)
441 if (!range.verifyValidity(testCtx))
454 testCtx.getLog() << TestLog::Message
462 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
463 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid integer range");
467 void GetIntegerVerifier::verifyFloatGreaterOrEqual (tcu::TestContext& testCtx, GLenum name, GLfloat reference)
474 if (!state.verifyValidity(testCtx))
481 testCtx.getLog() << TestLog::Message << "// ERROR: expected expected greater or equal to " << referenceAsInt << "; got " << state << TestLog::EndMessage;
482 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
483 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid integer value");
493 void verifyFloat (tcu::TestContext& testCtx, GLenum name, GLfloat reference);
494 void verifyFloatExpanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference);
495 void verifyFloat2Expanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1);
496 void verifyFloat4Color (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1, GLfloat reference2, GLfloat reference3);
497 void verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max);
498 void verifyFloatGreaterOrEqual (tcu::TestContext& testCtx, GLenum name, GLfloat reference);
506 void GetInteger64Verifier::verifyFloat (tcu::TestContext& testCtx, GLenum name, GLfloat reference)
516 if (!state.verifyValidity(testCtx))
521 testCtx.getLog() << TestLog::Message << "// ERROR: expected rounding to the nearest integer, valid range [" << expectedGLStateMin << "," << expectedGLStateMax << "]; got " << state << TestLog::EndMessage;
522 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
523 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid integer value");
527 void GetInteger64Verifier::verifyFloatExpanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference)
537 if (!state.verifyValidity(testCtx))
545 testCtx.getLog() << TestLog::Message << "// ERROR: expected in range [" << toHex(expectedGLStateMin) << "," << toHex(expectedGLStateMax) << "]; got " << toHex((GLint64)state) << TestLog::EndMessage;
546 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
547 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid integer value");
551 void GetInteger64Verifier::verifyFloat2Expanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1)
562 if (!floatVector2.verifyValidity(testCtx))
579 testCtx.getLog() << TestLog::Message
587 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
588 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid integer value");
592 void GetInteger64Verifier::verifyFloat4Color (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1, GLfloat reference2, GLfloat reference3)
600 if (!floatVector4.verifyValidity(testCtx))
623 testCtx.getLog() << TestLog::Message
635 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
636 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid integer value");
640 void GetInteger64Verifier::verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max)
647 if (!range.verifyValidity(testCtx))
660 testCtx.getLog() << TestLog::Message
668 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
669 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid integer range");
673 void GetInteger64Verifier::verifyFloatGreaterOrEqual (tcu::TestContext& testCtx, GLenum name, GLfloat reference)
680 if (!state.verifyValidity(testCtx))
687 testCtx.getLog() << TestLog::Message << "// ERROR: expected expected greater or equal to " << referenceAsInt << "; got " << state << TestLog::EndMessage;
688 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
689 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid integer value");
699 void verifyFloat (tcu::TestContext& testCtx, GLenum name, GLfloat reference);
700 void verifyFloatExpanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference);
701 void verifyFloat2Expanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1);
702 void verifyFloat4Color (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1, GLfloat reference2, GLfloat reference3);
703 void verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max);
704 void verifyFloatGreaterOrEqual (tcu::TestContext& testCtx, GLenum name, GLfloat reference);
712 void GetFloatVerifier::verifyFloat (tcu::TestContext& testCtx, GLenum name, GLfloat reference)
719 if (!state.verifyValidity(testCtx))
724 testCtx.getLog() << TestLog::Message << "// ERROR: expected " << reference << "; got " << state << TestLog::EndMessage;
725 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
726 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid float value");
730 void GetFloatVerifier::verifyFloatExpanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference)
733 verifyFloat(testCtx, name, reference);
736 void GetFloatVerifier::verifyFloat2Expanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1)
746 if (!floatVector2.verifyValidity(testCtx))
752 testCtx.getLog() << TestLog::Message << "// ERROR: expected " << reference0 << ", " << reference1 << "; got " << floatVector2[0] << " " << floatVector2[1] << TestLog::EndMessage;
754 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
755 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid float value");
759 void GetFloatVerifier::verifyFloat4Color (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1, GLfloat reference2, GLfloat reference3)
766 if (!floatVector4.verifyValidity(testCtx))
774 testCtx.getLog() << TestLog::Message
779 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
780 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid float value");
784 void GetFloatVerifier::verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max)
791 if (!floatVector2.verifyValidity(testCtx))
797 testCtx.getLog() << TestLog::Message << "// ERROR: expected in range [" << min << ", " << max << "]; got [" << floatVector2[0] << " " << floatVector2[1] << "]" << TestLog::EndMessage;
799 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
800 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid float range");
804 void GetFloatVerifier::verifyFloatGreaterOrEqual (tcu::TestContext& testCtx, GLenum name, GLfloat reference)
811 if (!state.verifyValidity(testCtx))
816 testCtx.getLog() << TestLog::Message << "// ERROR: expected greater or equal to " << reference << "; got " << state << TestLog::EndMessage;
817 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
818 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid float value");