Lines Matching refs:m_testCtx
507 verifyShaderParam(m_testCtx, *this, shader, GL_SHADER_TYPE, shaderTypes[ndx]); in test()
523 requireShaderCompiler(m_testCtx, *this); in test()
528 verifyShaderParam(m_testCtx, *this, shaderVert, GL_COMPILE_STATUS, GL_FALSE); in test()
529 verifyShaderParam(m_testCtx, *this, shaderFrag, GL_COMPILE_STATUS, GL_FALSE); in test()
538 verifyShaderParam(m_testCtx, *this, shaderVert, GL_COMPILE_STATUS, GL_TRUE); in test()
539 verifyShaderParam(m_testCtx, *this, shaderFrag, GL_COMPILE_STATUS, GL_TRUE); in test()
557 requireShaderCompiler(m_testCtx, *this); in test()
563 verifyShaderParam(m_testCtx, *this, shader, GL_INFO_LOG_LENGTH, 0); in test()
572 if (!logLength.verifyValidity(m_testCtx)) in test()
595 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected length " << logLength-1 << "; got " … in test()
596 if (m_testCtx.getTestResult() == QP_TEST_RESULT_PASS) in test()
597 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid log length"); in test()
608 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected null terminator, got " << (int)*term… in test()
609 if (m_testCtx.getTestResult() == QP_TEST_RESULT_PASS) in test()
610 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid log terminator"); in test()
623 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected length 0; got " << written << TestLo… in test()
624 if (m_testCtx.getTestResult() == QP_TEST_RESULT_PASS) in test()
625 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid log length"); in test()
629 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected null terminator, got " << (int)buffe… in test()
630 if (m_testCtx.getTestResult() == QP_TEST_RESULT_PASS) in test()
631 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid log terminator"); in test()
650 requireShaderCompiler(m_testCtx, *this); in test()
656 verifyShaderParam(m_testCtx, *this, shader, GL_SHADER_SOURCE_LENGTH, 0); in test()
666 sourceLength.verifyValidity(m_testCtx); in test()
671 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected length " << referenceLength << "; go… in test()
672 if (m_testCtx.getTestResult() == QP_TEST_RESULT_PASS) in test()
673 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid source length"); in test()
686 sourceLength.verifyValidity(m_testCtx); in test()
691 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected length " << referenceLength << "; go… in test()
692 if (m_testCtx.getTestResult() == QP_TEST_RESULT_PASS) in test()
693 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid source length"); in test()
708 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected write length " << referenceLength <<… in test()
709 if (m_testCtx.getTestResult() == QP_TEST_RESULT_PASS) in test()
710 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid source length"); in test()
717 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected null terminator at " << referenceLen… in test()
718 if (m_testCtx.getTestResult() == QP_TEST_RESULT_PASS) in test()
719 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "did not get a null terminator"); in test()
733 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected write length 0; got " << written << … in test()
734 if (m_testCtx.getTestResult() == QP_TEST_RESULT_PASS) in test()
735 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid source length"); in test()
739 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected null terminator; got=" << int(buffer… in test()
740 if (m_testCtx.getTestResult() == QP_TEST_RESULT_PASS) in test()
741 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid terminator"); in test()
770 verifyShaderParam(m_testCtx, *this, shaderVert, GL_COMPILE_STATUS, GL_TRUE); in test()
771 verifyShaderParam(m_testCtx, *this, shaderFrag, GL_COMPILE_STATUS, GL_TRUE); in test()
779 verifyProgramParam (m_testCtx, *this, shaderProg, GL_LINK_STATUS, GL_TRUE); in test()
781 verifyShaderParam (m_testCtx, *this, shaderVert, GL_DELETE_STATUS, GL_FALSE); in test()
782 verifyShaderParam (m_testCtx, *this, shaderFrag, GL_DELETE_STATUS, GL_FALSE); in test()
783 verifyProgramParam (m_testCtx, *this, shaderProg, GL_DELETE_STATUS, GL_FALSE); in test()
793 verifyShaderParam (m_testCtx, *this, shaderVert, GL_DELETE_STATUS, GL_TRUE); in test()
794 verifyShaderParam (m_testCtx, *this, shaderFrag, GL_DELETE_STATUS, GL_TRUE); in test()
795 verifyProgramParam (m_testCtx, *this, shaderProg, GL_DELETE_STATUS, GL_TRUE); in test()
824 attribValue.verifyValidity(m_testCtx); in test()
828 m_testCtx.getLog() << TestLog::Message in test()
832 if (m_testCtx.getTestResult() == QP_TEST_RESULT_PASS) in test()
833 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid attribute value"); in test()
866 verifyCurrentVertexAttribf(m_testCtx, *this, index, x, y, z, w); in test()
876 verifyCurrentVertexAttribf(m_testCtx, *this, index, x, y, z, w); in test()
886 verifyCurrentVertexAttribf(m_testCtx, *this, index, x, y, z, w); in test()
896 verifyCurrentVertexAttribf(m_testCtx, *this, index, x, y, z, w); in test()
928 verifyCurrentVertexAttribConversion(m_testCtx, *this, index, x, y, z, w); in test()
938 verifyCurrentVertexAttribConversion(m_testCtx, *this, index, x, y, z, w); in test()
948 verifyCurrentVertexAttribConversion(m_testCtx, *this, index, x, y, z, w); in test()
958 verifyCurrentVertexAttribConversion(m_testCtx, *this, index, x, y, z, w); in test()
999 logLength.verifyValidity(m_testCtx); in test()
1003 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected INFO_LOG_LENGTH " << written+1 << ";… in test()
1004 if (m_testCtx.getTestResult() == QP_TEST_RESULT_PASS) in test()
1005 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid log length"); in test()
1018 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected write length 0; got " << written << … in test()
1019 if (m_testCtx.getTestResult() == QP_TEST_RESULT_PASS) in test()
1020 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got invalid log length"); in test()
1059 verifyShaderParam (m_testCtx, *this, shaderVert, GL_COMPILE_STATUS, GL_TRUE); in test()
1060 verifyShaderParam (m_testCtx, *this, shaderFrag, GL_COMPILE_STATUS, GL_TRUE); in test()
1061 verifyProgramParam (m_testCtx, *this, program, GL_LINK_STATUS, GL_TRUE); in test()
1064 verifyProgramParam(m_testCtx, *this, program, GL_VALIDATE_STATUS, GL_TRUE); in test()
1090 verifyShaderParam (m_testCtx, *this, shaderVert, GL_COMPILE_STATUS, GL_TRUE); in test()
1091 verifyShaderParam (m_testCtx, *this, shaderFrag, GL_COMPILE_STATUS, GL_FALSE); in test()
1092 verifyProgramParam (m_testCtx, *this, program, GL_LINK_STATUS, GL_FALSE); in test()
1095 verifyProgramParam(m_testCtx, *this, program, GL_VALIDATE_STATUS, GL_FALSE); in test()
1130 verifyProgramParam(m_testCtx, *this, program, GL_ATTACHED_SHADERS, 0); in test()
1134 verifyProgramParam(m_testCtx, *this, program, GL_ATTACHED_SHADERS, 1); in test()
1138 verifyProgramParam(m_testCtx, *this, program, GL_ATTACHED_SHADERS, 2); in test()
1149 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected 2; got " << count << TestLog::EndMes… in test()
1150 if (m_testCtx.getTestResult() == QP_TEST_RESULT_PASS) in test()
1151 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got wrong shader count"); in test()
1157 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected {" << shaderVert << ", " << shaderFr… in test()
1158 if (m_testCtx.getTestResult() == QP_TEST_RESULT_PASS) in test()
1159 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got wrong shader count"); in test()
1171 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected 0; got " << count << TestLog::EndMes… in test()
1172 if (m_testCtx.getTestResult() == QP_TEST_RESULT_PASS) in test()
1173 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got wrong shader count"); in test()
1180 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected 1; got " << count << TestLog::EndMes… in test()
1181 if (m_testCtx.getTestResult() == QP_TEST_RESULT_PASS) in test()
1182 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got wrong shader count"); in test()
1236 verifyProgramParam(m_testCtx, *this, program, GL_ACTIVE_UNIFORMS, 3); in test()
1237 …verifyProgramParam(m_testCtx, *this, program, GL_ACTIVE_UNIFORM_MAX_LENGTH, (GLint)std::string("un… in test()
1277 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Got unknown uniform name: " << uniformName <<… in test()
1278 if (m_testCtx.getTestResult() == QP_TEST_RESULT_PASS) in test()
1279 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got wrong uniform name"); in test()
1289 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected 0 got " << written << TestLog::EndMe… in test()
1290 if (m_testCtx.getTestResult() == QP_TEST_RESULT_PASS) in test()
1291 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got wrong uniform name length"); in test()
1387 if (verifyProgramParam(m_testCtx, *this, program, GL_LINK_STATUS, GL_TRUE)) in test()
1397 checkIntEquals(m_testCtx, type, uniformTypes[ndx].type); in test()
1398 checkIntEquals(m_testCtx, size, uniformTypes[ndx].size); in test()
1450 verifyProgramParam(m_testCtx, *this, program, GL_ACTIVE_ATTRIBUTES, 2); in test()
1451 …verifyProgramParam(m_testCtx, *this, program, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, (GLint)std::string("… in test()
1466 …checkIntEquals(m_testCtx, written, (GLint)std::string("longInputAttributeName").length()); // does… in test()
1470 …checkIntEquals(m_testCtx, written, (GLint)std::string("shortName").length()); // does NOT include … in test()
1474 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Got unexpected attribute name." << TestLog::E… in test()
1475 if (m_testCtx.getTestResult() == QP_TEST_RESULT_PASS) in test()
1476 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "got unexpected name"); in test()
1490 checkIntEquals(m_testCtx, written, 0); in test()
1540 verifyVertexAttrib(m_testCtx, *this, 0, GL_VERTEX_ATTRIB_ARRAY_SIZE, pointers[ndx].size); in test()
1572 verifyVertexAttrib(m_testCtx, *this, 0, GL_VERTEX_ATTRIB_ARRAY_TYPE, pointers[ndx].type); in test()
1623 verifyVertexAttrib(m_testCtx, *this, 0, GL_VERTEX_ATTRIB_ARRAY_STRIDE, pointers[ndx].stride); in test()
1660 …verifyVertexAttrib(m_testCtx, *this, 0, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, pointers[ndx].normalize… in test()
1678 verifyVertexAttrib(m_testCtx, *this, 0, GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_FALSE); in test()
1680 verifyVertexAttrib(m_testCtx, *this, 0, GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_TRUE); in test()
1682 verifyVertexAttrib(m_testCtx, *this, 0, GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_FALSE); in test()
1697 verifyVertexAttrib(m_testCtx, *this, 0, GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, 0); in test()
1707 verifyVertexAttrib(m_testCtx, *this, 0, GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, bufferID); in test()
1726 initialState.verifyValidity(m_testCtx); in test()
1727 checkPointerEquals(m_testCtx, initialState, 0); in test()
1751 state.verifyValidity(m_testCtx); in test()
1752 checkPointerEquals(m_testCtx, state, pointers[ndx].pointer); in test()
1787 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Failed to compile shader"); in test()
1798 verifyUniformValue1f(m_testCtx, *this, program.getProgram(), location, 1.0f); in test()
1802 verifyUniformValue2f(m_testCtx, *this, program.getProgram(), location, 1.0f, 2.0f); in test()
1806 verifyUniformValue3f(m_testCtx, *this, program.getProgram(), location, 1.0f, 2.0f, 3.0f); in test()
1810 verifyUniformValue4f(m_testCtx, *this, program.getProgram(), location, 1.0f, 2.0f, 3.0f, 4.0f); in test()
1846 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Failed to compile shader"); in test()
1857 verifyUniformValue1i(m_testCtx, *this, program.getProgram(), location, 1); in test()
1861 verifyUniformValue2i(m_testCtx, *this, program.getProgram(), location, 1, 2); in test()
1865 verifyUniformValue3i(m_testCtx, *this, program.getProgram(), location, 1, 2, 3); in test()
1869 verifyUniformValue4i(m_testCtx, *this, program.getProgram(), location, 1, 2, 3, 4); in test()
1905 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Failed to compile shader"); in test()
1918 verifyUniformValue1i(m_testCtx, *this, program.getProgram(), location, 1); in test()
1922 verifyUniformValue2i(m_testCtx, *this, program.getProgram(), location, 1, 1); in test()
1926 verifyUniformValue3i(m_testCtx, *this, program.getProgram(), location, 0, 1, 1); in test()
1930 verifyUniformValue4i(m_testCtx, *this, program.getProgram(), location, 1, 0, 1, 1); in test()
1936 verifyUniformValue1i(m_testCtx, *this, program.getProgram(), location, 1); in test()
1940 verifyUniformValue2i(m_testCtx, *this, program.getProgram(), location, 1, 1); in test()
1944 verifyUniformValue3i(m_testCtx, *this, program.getProgram(), location, 0, 1, 1); in test()
1948 verifyUniformValue4i(m_testCtx, *this, program.getProgram(), location, 1, 0, 1, 1); in test()
1982 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Failed to compile shader"); in test()
1993 verifyUniformValue1i(m_testCtx, *this, program.getProgram(), location, 1); in test()
2034 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Failed to compile shader"); in test()
2056 …verifyUniformValue1f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgr… in test()
2057 …verifyUniformValue1f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgr… in test()
2058 …verifyUniformValue1f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgr… in test()
2059 …verifyUniformValue1f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgr… in test()
2060 …verifyUniformValue1f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgr… in test()
2067 …verifyUniformValue2f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgr… in test()
2068 …verifyUniformValue2f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgr… in test()
2069 …verifyUniformValue2f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgr… in test()
2070 …verifyUniformValue2f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgr… in test()
2071 …verifyUniformValue2f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgr… in test()
2078 …verifyUniformValue3f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgr… in test()
2079 …verifyUniformValue3f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgr… in test()
2080 …verifyUniformValue3f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgr… in test()
2081 …verifyUniformValue3f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgr… in test()
2082 …verifyUniformValue3f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgr… in test()
2089 …verifyUniformValue4f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgr… in test()
2090 …verifyUniformValue4f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgr… in test()
2091 …verifyUniformValue4f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgr… in test()
2092 …verifyUniformValue4f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgr… in test()
2093 …verifyUniformValue4f(m_testCtx, *this, program.getProgram(), glGetUniformLocation(program.getProgr… in test()
2130 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Failed to compile shader"); in test()
2151 …verifyUniformMatrixValues<2>(m_testCtx, *this, program.getProgram(), location, matrixValues, false… in test()
2155 …verifyUniformMatrixValues<3>(m_testCtx, *this, program.getProgram(), location, matrixValues, false… in test()
2159 …verifyUniformMatrixValues<4>(m_testCtx, *this, program.getProgram(), location, matrixValues, false… in test()
2196 if (!shaderCompiler.verifyValidity(m_testCtx)) in test()
2205 if (!range.verifyValidity(m_testCtx)) in test()
2207 if (!precision.verifyValidity(m_testCtx)) in test()
2247 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid precision/range"); in test()