• Home
  • Raw
  • Download

Lines Matching refs:test_case

4304 	const testCase& test_case = m_test_cases[test_case_index];  in prepareNextTestCase()  local
4307 << "T1:" << Utils::getTypeName(test_case.m_types.m_t1, test_case.m_n_cols, in prepareNextTestCase()
4308 test_case.m_n_rows) in prepareNextTestCase()
4309 << " T2:" << Utils::getTypeName(test_case.m_types.m_t2, test_case.m_n_cols, in prepareNextTestCase()
4310 test_case.m_n_rows) in prepareNextTestCase()
4505 const testCase& test_case = getCurrentTestCase(); in prepareShaderSource() local
4506 …const GLchar* t1 = Utils::getTypeName(test_case.m_types.m_t1, test_case.m_n_cols, test_case.m… in prepareShaderSource()
4507 …const GLchar* t2 = Utils::getTypeName(test_case.m_types.m_t2, test_case.m_n_cols, test_case.m… in prepareShaderSource()
4508 const std::string& value_list = getValueList(test_case.m_n_cols, test_case.m_n_rows); in prepareShaderSource()
4565 const testCase& test_case = getCurrentTestCase(); in prepareUniforms() local
4567 switch (test_case.m_types.m_t2) in prepareUniforms()
4570 program.uniform("uni_left", Utils::DOUBLE, test_case.m_n_cols, test_case.m_n_rows, double_data); in prepareUniforms()
4571 program.uniform("uni_right", Utils::DOUBLE, test_case.m_n_cols, test_case.m_n_rows, double_data); in prepareUniforms()
4574 program.uniform("uni_left", Utils::FLOAT, test_case.m_n_cols, test_case.m_n_rows, float_data); in prepareUniforms()
4575 program.uniform("uni_right", Utils::FLOAT, test_case.m_n_cols, test_case.m_n_rows, float_data); in prepareUniforms()
4578 program.uniform("uni_left", Utils::INT, test_case.m_n_cols, test_case.m_n_rows, int_data); in prepareUniforms()
4579 program.uniform("uni_right", Utils::INT, test_case.m_n_cols, test_case.m_n_rows, int_data); in prepareUniforms()
4582 program.uniform("uni_left", Utils::UINT, test_case.m_n_cols, test_case.m_n_rows, uint_data); in prepareUniforms()
4583 program.uniform("uni_right", Utils::UINT, test_case.m_n_cols, test_case.m_n_rows, uint_data); in prepareUniforms()
4619 testCase test_case = { types, 1, 1 }; in testInit() local
4621 m_test_cases.push_back(test_case); in testInit()
4628 testCase test_case = { types, col, row }; in testInit() local
4630 m_test_cases.push_back(test_case); in testInit()
5954 const Utils::qualifierSet& test_case = getCurrentTestCase(); in prepareShaderSource() local
5961 …Utils::prepareVariableStrings(in_stage, Utils::INPUT, test_case, "vec4", "test", in_test_decl, in_… in prepareShaderSource()
5962 …Utils::prepareVariableStrings(in_stage, Utils::OUTPUT, test_case, "vec4", "test", out_test_decl, o… in prepareShaderSource()
6337 const Utils::qualifierSet& test_case = getCurrentTestCase(); in prepareShaderSource() local
6347 …Utils::prepareVariableStrings(in_stage, Utils::INPUT, test_case, "vec4", "test", in_test_decl, in_… in prepareShaderSource()
6350 …Utils::prepareBlockVariableStrings(in_stage, Utils::INPUT, test_case, "vec4", "test", "input_block… in prepareShaderSource()
6358 …Utils::prepareVariableStrings(in_stage, Utils::OUTPUT, test_case, "vec4", "test", out_test_decl, o… in prepareShaderSource()
6361 …Utils::prepareBlockVariableStrings(in_stage, Utils::OUTPUT, test_case, "vec4", "test", "output_blo… in prepareShaderSource()
6706 const Utils::qualifierSet& test_case = getCurrentTestCase(); in prepareShaderSource() local
6710 …Utils::prepareVariableStrings(in_stage, Utils::UNIFORM, test_case, "vec4", "test", uni_declaration… in prepareShaderSource()
9811 const GLchar* BindingUniformInvalidTest::getCaseString(TESTCASES test_case) in getCaseString() argument
9813 (void)test_case; in getCaseString()
11562 const GLchar* BindingSamplerInvalidTest::getCaseString(TESTCASES test_case) in getCaseString() argument
11564 (void)test_case; in getCaseString()
13400 const GLchar* BindingImageInvalidTest::getCaseString(TESTCASES test_case) in getCaseString() argument
13402 (void)test_case; in getCaseString()
13719 testCase test_case = { l_init, 1, 1 }; in testInit() local
13729 test_case.m_n_rows = row; in testInit()
13731 m_test_cases.push_back(test_case); in testInit()
13745 test_case.m_n_cols = col; in testInit()
13746 test_case.m_n_rows = row; in testInit()
13748 m_test_cases.push_back(test_case); in testInit()
13756 m_test_cases.push_back(test_case); in testInit()
13771 test_case.m_n_rows = 4; in testInit()
13772 m_test_cases.push_back(test_case); in testInit()
13790 const testCase& test_case = m_test_cases[m_current_test_case_index]; in getArrayDefinition() local
13794 switch (test_case.m_initializer) in getArrayDefinition()
13837 const testCase& test_case = m_test_cases[m_current_test_case_index]; in getExpectedValue() local
13841 switch (test_case.m_initializer) in getExpectedValue()
13846 value = (GLfloat)(test_case.m_n_cols * test_case.m_n_rows); in getExpectedValue()
13854 value = (GLfloat)(test_case.m_n_cols * test_case.m_n_rows) * 4.0f; in getExpectedValue()
13903 const testCase& test_case = m_test_cases[m_current_test_case_index]; in getInitialization() local
13907 switch (test_case.m_initializer) in getInitialization()
13910 initialization.append(getVectorInitializer(0 /*column*/, test_case.m_n_rows)); in getInitialization()
13916 initialization.append(getVectorArrayList(test_case.m_n_cols, test_case.m_n_rows)); in getInitialization()
13924 initialization.append(getVectorArrayCtr(test_case.m_n_cols, test_case.m_n_rows)); in getInitialization()
13931 initialization.append(getVectorInitializer(0 /* column */, test_case.m_n_rows)); in getInitialization()
13933 initialization.append(getVectorInitializer(2 /* column */, test_case.m_n_rows)); in getInitialization()
13949 initialization.append(getVectorArrayList(4 /* columns */, test_case.m_n_rows)); in getInitialization()
13956 initialization.append(getVectorArrayCtr(4 /* columns */, test_case.m_n_rows)); in getInitialization()
13968 initialization.append(getVectorArrayList(test_case.m_n_cols, test_case.m_n_rows)); in getInitialization()
13983 …const std::string& type_name = Utils::getTypeName(Utils::FLOAT, test_case.m_n_cols, test_case.m_n_… in getInitialization()
13991 for (GLuint col = 0; col < test_case.m_n_cols; ++col) in getInitialization()
13993 initialization.append(getVectorValues(col, test_case.m_n_rows)); in getInitialization()
13995 if (col + 1 < test_case.m_n_cols) in getInitialization()
14019 initialization.append(getVectorInitializer(0 /* column */, test_case.m_n_rows)); in getInitialization()
14021 initialization.append(getVectorInitializer(2 /* column */, test_case.m_n_rows)); in getInitialization()
14216 const testCase& test_case = m_test_cases[m_current_test_case_index]; in logTestCaseName() local
14220 switch (test_case.m_initializer) in logTestCaseName()
14223 message << "List. Single vec" << test_case.m_n_rows; in logTestCaseName()
14226 message << "List. Single mat" << test_case.m_n_cols << "x" << test_case.m_n_rows; in logTestCaseName()
14229 message << "Ctr. Single mat" << test_case.m_n_cols << "x" << test_case.m_n_rows; in logTestCaseName()
14256 message << "Ctr. Array of vec" << test_case.m_n_rows; in logTestCaseName()
14259 message << "List. Array of vec" << test_case.m_n_rows; in logTestCaseName()
14262 message << "Ctr. Array of mat" << test_case.m_n_cols << "x" << test_case.m_n_rows; in logTestCaseName()
14265 message << "List. Array of mat" << test_case.m_n_cols << "x" << test_case.m_n_rows; in logTestCaseName()
14280 message << "List. Unsized array of vec" << test_case.m_n_rows; in logTestCaseName()
14283 message << "List. Unsized array of mat" << test_case.m_n_cols << "x" << test_case.m_n_rows; in logTestCaseName()
14303 const testCase& test_case = m_test_cases[m_current_test_case_index]; in getSum() local
14307 switch (test_case.m_initializer) in getSum()
14310 sum = getVectorSum(var, test_case.m_n_rows); in getSum()
14316 sum = getVectorArraySum("variable[INDEX]", test_case.m_n_cols, test_case.m_n_rows); in getSum()
14321 sum = getVectorSum("variable.member_a", test_case.m_n_rows); in getSum()
14323 sum.append(getVectorSum("variable.member_b", test_case.m_n_rows)); in getSum()
14336 sum = getVectorArraySum("variable[INDEX]", 4 /* columns */, test_case.m_n_rows); in getSum()
14343 sum.append(getVectorArraySum("variable[0][INDEX]", test_case.m_n_cols, test_case.m_n_rows)); in getSum()
14345 sum.append(getVectorArraySum("variable[1][INDEX]", test_case.m_n_cols, test_case.m_n_rows)); in getSum()
14347 sum.append(getVectorArraySum("variable[2][INDEX]", test_case.m_n_cols, test_case.m_n_rows)); in getSum()
14349 sum.append(getVectorArraySum("variable[3][INDEX]", test_case.m_n_cols, test_case.m_n_rows)); in getSum()
14355 sum.append(getVectorArraySum("variable[INDEX].member_a", 4, test_case.m_n_rows)); in getSum()
14357 sum.append(getVectorArraySum("variable[INDEX].member_b", 4, test_case.m_n_rows)); in getSum()
14414 const testCase& test_case = m_test_cases[m_current_test_case_index]; in getTypeDefinition() local
14443 switch (test_case.m_initializer) in getTypeDefinition()
14493 const testCase& test_case = m_test_cases[m_current_test_case_index]; in getTypeName() local
14505 switch (test_case.m_initializer) in getTypeName()
14516 type_name = Utils::getTypeName(Utils::FLOAT, test_case.m_n_cols, test_case.m_n_rows); in getTypeName()
15341 const testCase& test_case = m_test_cases[m_current_test_case_index]; in prepareNextTestCase() local
15344 << Utils::getTypeName(test_case.m_type, test_case.m_n_cols, test_case.m_n_rows) in prepareNextTestCase()
15395 const testCase& test_case = m_test_cases[m_current_test_case_index]; in prepareUniforms() local
15397 switch (test_case.m_type) in prepareUniforms()
15400 program.uniform("uni_variable", Utils::FLOAT, test_case.m_n_cols, test_case.m_n_rows, float_data); in prepareUniforms()
15403 program.uniform("uni_variable", Utils::INT, 1 /* columns */, test_case.m_n_rows, int_data); in prepareUniforms()
15406 program.uniform("uni_variable", Utils::UINT, 1 /* columns */, test_case.m_n_rows, uint_data); in prepareUniforms()
15437 const testCase& test_case = m_test_cases[m_current_test_case_index]; in prepareVertexBuffer() local
15455 switch (test_case.m_type) in prepareVertexBuffer()
15479 switch (test_case.m_type) in prepareVertexBuffer()
15482 for (GLuint col = 0; col < test_case.m_n_cols; ++col) in prepareVertexBuffer()
15485 const GLint size = test_case.m_n_rows; in prepareVertexBuffer()
15486 const GLvoid* offset = (const GLvoid*)(test_case.m_n_rows * sizeof(GLfloat) * col); in prepareVertexBuffer()
15493 …gl.vertexAttribIPointer(variable_loc, test_case.m_n_rows /* size */, GL_INT /* type */, 0 /* strid… in prepareVertexBuffer()
15498 …gl.vertexAttribIPointer(variable_loc, test_case.m_n_rows /* size */, GL_UNSIGNED_INT /* type */, 0… in prepareVertexBuffer()
15508 for (GLuint col = 0; col < test_case.m_n_cols; ++col) in prepareVertexBuffer()
15524 testCase test_case = { Utils::UINT, 1 /* n_cols */, row }; in testInit() local
15526 m_test_cases.push_back(test_case); in testInit()
15531 testCase test_case = { Utils::INT, 1 /* n_cols */, row }; in testInit() local
15533 m_test_cases.push_back(test_case); in testInit()
15538 testCase test_case = { Utils::FLOAT, 1 /* n_cols */, row }; in testInit() local
15540 m_test_cases.push_back(test_case); in testInit()
15548 testCase test_case = { Utils::FLOAT, col, row }; in testInit() local
15550 m_test_cases.push_back(test_case); in testInit()
15565 const testCase& test_case = m_test_cases[m_current_test_case_index]; in getExpectedValue() local
15581 if (1 == test_case.m_n_cols) in getExpectedValue()
15583 count *= test_case.m_n_rows; in getExpectedValue()
15587 count *= test_case.m_n_cols; in getExpectedValue()
15593 switch (test_case.m_type) in getExpectedValue()
15627 const testCase& test_case = m_test_cases[m_current_test_case_index]; in getInitialization() local
15631 if (1 == test_case.m_n_cols) in getInitialization()
15633 initialization = getVectorInitializer(test_case.m_type, test_case.m_n_rows); in getInitialization()
15637 initialization = getMatrixInitializer(test_case.m_n_cols, test_case.m_n_rows); in getInitialization()
15974 const testCase& test_case = m_test_cases[m_current_test_case_index]; in prepareDrawShaderSource() local
15979 …const std::string& base_type_name = Utils::getTypeName(test_case.m_type, 1 /* cols */, 1 /* rows *… in prepareDrawShaderSource()
15982 …const std::string& type_name = Utils::getTypeName(test_case.m_type, test_case.m_n_cols, test_cas… in prepareDrawShaderSource()
15992 if ((Utils::UINT == test_case.m_type) || (Utils::INT == test_case.m_type)) in prepareDrawShaderSource()
16047 if (1 != test_case.m_n_cols) in prepareDrawShaderSource()
16164 const testCase& test_case = m_test_cases[m_current_test_case_index]; in prepareComputeShaderSource() local
16167 …const std::string& base_type_name = Utils::getTypeName(test_case.m_type, 1 /* cols */, 1 /* rows *… in prepareComputeShaderSource()
16169 …const std::string& type_name = Utils::getTypeName(test_case.m_type, test_case.m_n_cols, test_cas… in prepareComputeShaderSource()
16171 if (1 != test_case.m_n_cols) in prepareComputeShaderSource()