Lines Matching refs: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;
113 void verifyFloat (tcu::TestContext& testCtx, GLenum name, GLfloat reference);
114 void verifyFloatExpanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference);
115 void verifyFloat2Expanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1);
116 void verifyFloat4Color (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1, GLfloat reference2, GLfloat reference3);
117 void verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max);
125 void GetBooleanVerifier::verifyFloat (tcu::TestContext& testCtx, GLenum name, GLfloat reference)
132 if (!state.verifyValidity(testCtx))
139 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;
140 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
141 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid boolean value");
145 void GetBooleanVerifier::verifyFloatExpanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference)
148 verifyFloat(testCtx, name, reference);
151 void GetBooleanVerifier::verifyFloat2Expanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1)
167 if (!boolVector2.verifyValidity(testCtx))
173 testCtx.getLog() << TestLog::Message << "// ERROR: expected "
178 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
179 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid boolean value");
183 void GetBooleanVerifier::verifyFloat4Color (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1, GLfloat reference2, GLfloat reference3)
198 if (!boolVector4.verifyValidity(testCtx))
206 testCtx.getLog() << TestLog::Message << "// ERROR: expected "
212 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
213 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid boolean value");
217 void GetBooleanVerifier::verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max)
224 if (!range.verifyValidity(testCtx))
231 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;
232 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
233 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid boolean range");
241 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;
242 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
243 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid boolean range");
255 void verifyFloat (tcu::TestContext& testCtx, GLenum name, GLfloat reference);
256 void verifyFloatExpanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference);
257 void verifyFloat2Expanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1);
258 void verifyFloat4Color (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1, GLfloat reference2, GLfloat reference3);
259 void verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max);
267 void GetIntegerVerifier::verifyFloat (tcu::TestContext& testCtx, GLenum name, GLfloat reference)
277 if (!state.verifyValidity(testCtx))
282 testCtx.getLog() << TestLog::Message << "// ERROR: expected rounding to the nearest integer, valid range [" << expectedGLStateMin << "," << expectedGLStateMax << "]; got " << state << TestLog::EndMessage;
283 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
284 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid integer value");
288 void GetIntegerVerifier::verifyFloatExpanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference)
301 if (!state.verifyValidity(testCtx))
306 testCtx.getLog() << TestLog::Message << "// ERROR: expected in range [" << toHex(expectedGLStateMin) << "," << toHex(expectedGLStateMax) << "]; got " << toHex((GLint)state) << TestLog::EndMessage;
307 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
308 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid integer value");
312 void GetIntegerVerifier::verifyFloat2Expanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1)
334 if (!floatVector2.verifyValidity(testCtx))
340 testCtx.getLog() << TestLog::Message
348 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
349 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid integer value");
353 void GetIntegerVerifier::verifyFloat4Color (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1, GLfloat reference2, GLfloat reference3)
376 if (!floatVector4.verifyValidity(testCtx))
384 testCtx.getLog() << TestLog::Message
396 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
397 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid integer value");
401 void GetIntegerVerifier::verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max)
414 if (!range.verifyValidity(testCtx))
421 testCtx.getLog() << TestLog::Message
429 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
430 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid integer range");
440 void verifyFloat (tcu::TestContext& testCtx, GLenum name, GLfloat reference);
441 void verifyFloatExpanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference);
442 void verifyFloat2Expanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1);
443 void verifyFloat4Color (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1, GLfloat reference2, GLfloat reference3);
444 void verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max);
452 void GetInteger64Verifier::verifyFloat (tcu::TestContext& testCtx, GLenum name, GLfloat reference)
462 if (!state.verifyValidity(testCtx))
467 testCtx.getLog() << TestLog::Message << "// ERROR: expected rounding to the nearest integer, valid range [" << expectedGLStateMin << "," << expectedGLStateMax << "]; got " << state << TestLog::EndMessage;
468 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
469 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid integer value");
473 void GetInteger64Verifier::verifyFloatExpanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference)
486 if (!state.verifyValidity(testCtx))
491 testCtx.getLog() << TestLog::Message << "// ERROR: expected in range [" << toHex(expectedGLStateMin) << "," << toHex(expectedGLStateMax) << "]; got " << toHex((GLint64)state) << TestLog::EndMessage;
492 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
493 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid integer value");
497 void GetInteger64Verifier::verifyFloat2Expanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1)
519 if (!floatVector2.verifyValidity(testCtx))
525 testCtx.getLog() << TestLog::Message
533 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
534 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid integer value");
538 void GetInteger64Verifier::verifyFloat4Color (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1, GLfloat reference2, GLfloat reference3)
561 if (!floatVector4.verifyValidity(testCtx))
569 testCtx.getLog() << TestLog::Message
581 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
582 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid integer value");
586 void GetInteger64Verifier::verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max)
599 if (!range.verifyValidity(testCtx))
606 testCtx.getLog() << TestLog::Message
614 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
615 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid integer range");
625 void verifyFloat (tcu::TestContext& testCtx, GLenum name, GLfloat reference);
626 void verifyFloatExpanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference);
627 void verifyFloat2Expanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1);
628 void verifyFloat4Color (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1, GLfloat reference2, GLfloat reference3);
629 void verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max);
637 void GetFloatVerifier::verifyFloat (tcu::TestContext& testCtx, GLenum name, GLfloat reference)
644 if (!state.verifyValidity(testCtx))
649 testCtx.getLog() << TestLog::Message << "// ERROR: expected " << reference << "; got " << state << TestLog::EndMessage;
650 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
651 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid float value");
655 void GetFloatVerifier::verifyFloatExpanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference)
658 verifyFloat(testCtx, name, reference);
661 void GetFloatVerifier::verifyFloat2Expanded (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1)
671 if (!floatVector2.verifyValidity(testCtx))
677 testCtx.getLog() << TestLog::Message << "// ERROR: expected " << reference0 << ", " << reference1 << "; got " << floatVector2[0] << " " << floatVector2[1] << TestLog::EndMessage;
679 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
680 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid float value");
684 void GetFloatVerifier::verifyFloat4Color (tcu::TestContext& testCtx, GLenum name, GLfloat reference0, GLfloat reference1, GLfloat reference2, GLfloat reference3)
691 if (!floatVector4.verifyValidity(testCtx))
699 testCtx.getLog() << TestLog::Message
704 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
705 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid float value");
709 void GetFloatVerifier::verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max)
716 if (!floatVector2.verifyValidity(testCtx))
722 testCtx.getLog() << TestLog::Message << "// ERROR: expected in range [" << min << ", " << max << "]; got [" << floatVector2[0] << " " << floatVector2[1] << "]" << TestLog::EndMessage;
724 if (testCtx.getTestResult() == QP_TEST_RESULT_PASS)
725 testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid float range");