Lines Matching refs:m_testCtx

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