Lines Matching refs:Utils
50 const glw::GLenum Utils::programInfo::ARB_COMPUTE_SHADER = 0x91B9;
56 Utils::programInfo::programInfo(deqp::Context& context) in programInfo()
72 Utils::programInfo::~programInfo() in ~programInfo()
136 void Utils::programInfo::build(const glw::GLchar* compute_shader_code, const glw::GLchar* fragment_… in build()
215 void Utils::programInfo::compile(glw::GLuint shader_id, const glw::GLchar* shader_code) const in compile()
264 void Utils::programInfo::link() const in link()
348 Utils::_variable_type Utils::getBaseVariableType(_variable_type type) in getBaseVariableType()
434 unsigned int Utils::getBaseVariableTypeComponentSize(_variable_type type) in getBaseVariableTypeComponentSize()
473 unsigned char Utils::getComponentAtIndex(unsigned int index) in getComponentAtIndex()
508 Utils::_variable_type Utils::getDoubleVariableType(glw::GLuint n_columns, glw::GLuint n_rows) in getDoubleVariableType()
510 Utils::_variable_type type = VARIABLE_TYPE_UNKNOWN; in getDoubleVariableType()
532 std::string Utils::getFPVariableTypeStringForVariableType(_variable_type type) in getFPVariableTypeStringForVariableType()
594 glw::GLenum Utils::getGLDataTypeOfBaseVariableType(_variable_type type) in getGLDataTypeOfBaseVariableType()
631 glw::GLenum Utils::getGLDataTypeOfVariableType(_variable_type type) in getGLDataTypeOfVariableType()
759 Utils::_variable_type Utils::getIntVariableType(glw::GLuint n_columns, glw::GLuint n_rows) in getIntVariableType()
761 Utils::_variable_type type = VARIABLE_TYPE_UNKNOWN; in getIntVariableType()
786 unsigned int Utils::getNumberOfComponentsForVariableType(_variable_type type) in getNumberOfComponentsForVariableType()
903 unsigned int Utils::getNumberOfColumnsForVariableType(_variable_type type) in getNumberOfColumnsForVariableType()
984 unsigned int Utils::getNumberOfLocationsUsedByDoublePrecisionVariableType(_variable_type type) in getNumberOfLocationsUsedByDoublePrecisionVariableType()
1045 unsigned int Utils::getNumberOfRowsForVariableType(_variable_type type) in getNumberOfRowsForVariableType()
1126 Utils::_variable_type Utils::getPostMatrixMultiplicationVariableType(_variable_type type_matrix_a, in getPostMatrixMultiplicationVariableType()
1129 const unsigned int n_a_columns = Utils::getNumberOfColumnsForVariableType(type_matrix_a); in getPostMatrixMultiplicationVariableType()
1130 const unsigned int n_a_components = Utils::getNumberOfComponentsForVariableType(type_matrix_a); in getPostMatrixMultiplicationVariableType()
1132 const unsigned int n_b_columns = Utils::getNumberOfColumnsForVariableType(type_matrix_b); in getPostMatrixMultiplicationVariableType()
1135 Utils::_variable_type result; in getPostMatrixMultiplicationVariableType()
1223 std::string Utils::getStringForVariableTypeValue(_variable_type type, const unsigned char* data_ptr) in getStringForVariableTypeValue()
1260 Utils::_variable_type Utils::getTransposedMatrixVariableType(Utils::_variable_type type) in getTransposedMatrixVariableType()
1262 Utils::_variable_type result; in getTransposedMatrixVariableType()
1310 Utils::_variable_type Utils::getUintVariableType(glw::GLuint n_columns, glw::GLuint n_rows) in getUintVariableType()
1312 Utils::_variable_type type = VARIABLE_TYPE_UNKNOWN; in getUintVariableType()
1336 std::string Utils::getVariableTypeString(_variable_type type) in getVariableTypeString()
1474 bool Utils::isGLVersionAtLeast(const glw::Functions& gl, glw::GLint required_major, glw::GLint requ… in isGLVersionAtLeast()
1517 bool Utils::isMatrixVariableType(_variable_type type) in isMatrixVariableType()
1531 bool Utils::isScalarVariableType(_variable_type type) in isScalarVariableType()
1566 void Utils::replaceToken(const glw::GLchar* token, size_t& search_position, const glw::GLchar* text, in replaceToken()
3377 Utils::_variable_type type = Utils::getDoubleVariableType(n_columns, n_rows); in uniformTypeDetails()
3379 m_type_name = Utils::getVariableTypeString(type); in uniformTypeDetails()
3380 m_type = Utils::getGLDataTypeOfVariableType(type); in uniformTypeDetails()
3516 …static const glw::GLuint vec4_size = 4 * Utils::getBaseVariableTypeComponentSize(Utils::VARIABLE_… in getUniformTypeMemberSize()
3708 Utils::replaceToken(layout_token, search_position, stage_specific_layout, string); in prepareBoilerplateShader()
3709 Utils::replaceToken(body_token, search_position, stage_specific_main_body, string); in prepareBoilerplateShader()
3722 Utils::programInfo& out_program_info) const in prepareProgram()
4030 Utils::replaceToken(layout_token, search_position, stage_specific_layout, string); in prepareTestShader()
4031 Utils::replaceToken(uni_def_token, search_position, uniform_definitions, string); in prepareTestShader()
4032 Utils::replaceToken(in_var_token, search_position, in_variable_definitions, string); in prepareTestShader()
4033 Utils::replaceToken(out_var_token, search_position, out_variable_definitions, string); in prepareTestShader()
4034 Utils::replaceToken(uni_ver_token, search_position, uniform_verification, string); in prepareTestShader()
4035 Utils::replaceToken(body_token, search_position, stage_specific_main_body, string); in prepareTestShader()
4081 Utils::replaceToken(uni_def_token, search_position, uniform_definitions, string); in prepareTestComputeShader()
4082 Utils::replaceToken(uni_ver_token, search_position, uniform_verification, string); in prepareTestComputeShader()
4123 const Utils::programInfo& program_info) const in prepareUniforms()
4269 Utils::programInfo program_info(m_context); in test()
4480 (true == Utils::isGLVersionAtLeast(gl, 4 /* major */, 2 /* minor */))) in testInit()
6064 (true == Utils::isGLVersionAtLeast(gl, 4 /* major */, 2 /* minor */))) in initProgramObjects()
7289 Utils::_variable_type base_value_type = Utils::getBaseVariableType(test_case.src_type); in executeIteration()
7291 if (base_value_type == Utils::VARIABLE_TYPE_BOOL) in executeIteration()
7294 base_value_type = Utils::VARIABLE_TYPE_INT; in executeIteration()
7297 …const unsigned int base_value_component_size = Utils::getBaseVariableTypeComponentSize(base_value_… in executeIteration()
7308 case Utils::VARIABLE_TYPE_DOUBLE: in executeIteration()
7311 case Utils::VARIABLE_TYPE_FLOAT: in executeIteration()
7314 case Utils::VARIABLE_TYPE_INT: in executeIteration()
7317 case Utils::VARIABLE_TYPE_UINT: in executeIteration()
7342 if (base_value_type == Utils::VARIABLE_TYPE_FLOAT) in executeIteration()
7345 Utils::getGLDataTypeOfBaseVariableType(base_value_type), GL_FALSE, /* normalized */ in executeIteration()
7350 …else if (base_value_type == Utils::VARIABLE_TYPE_INT || base_value_type == Utils::VARIABLE_TYPE_UI… in executeIteration()
7353 Utils::getGLDataTypeOfBaseVariableType(base_value_type), 0, /* stride */ in executeIteration()
7359 DE_ASSERT(base_value_type == Utils::VARIABLE_TYPE_DOUBLE); in executeIteration()
7595 …const std::string base_type_string = Utils::getVariableTypeString(Utils::getBaseVariableType(test… in getVertexShaderBody()
7596 const std::string dst_type_string = Utils::getVariableTypeString(test_case.dst_type); in getVertexShaderBody()
7597 …const unsigned int n_dst_components = Utils::getNumberOfComponentsForVariableType(test_case.dst_ty… in getVertexShaderBody()
7598 …const unsigned int n_src_components = Utils::getNumberOfComponentsForVariableType(test_case.src_ty… in getVertexShaderBody()
7599 const std::string src_type_string = Utils::getVariableTypeString(test_case.src_type); in getVertexShaderBody()
7607 if (test_case.dst_type == Utils::VARIABLE_TYPE_BOOL) in getVertexShaderBody()
7617 if (test_case.src_type == Utils::VARIABLE_TYPE_BOOL) in getVertexShaderBody()
7637 if (test_case.src_type == Utils::VARIABLE_TYPE_BOOL) in getVertexShaderBody()
7646 if (test_case.src_type != Utils::VARIABLE_TYPE_BOOL) in getVertexShaderBody()
7668 if (test_case.dst_type == Utils::VARIABLE_TYPE_BOOL) in getVertexShaderBody()
7692 if (n_src_components > 1 && !Utils::isMatrixVariableType(test_case.src_type)) in getVertexShaderBody()
7870 { TEST_CASE_TYPE_IMPLICIT, Utils::VARIABLE_TYPE_INT, Utils::VARIABLE_TYPE_DOUBLE, "" }, in iterate()
7871 { TEST_CASE_TYPE_IMPLICIT, Utils::VARIABLE_TYPE_IVEC2, Utils::VARIABLE_TYPE_DVEC2, "" }, in iterate()
7872 { TEST_CASE_TYPE_IMPLICIT, Utils::VARIABLE_TYPE_IVEC3, Utils::VARIABLE_TYPE_DVEC3, "" }, in iterate()
7873 { TEST_CASE_TYPE_IMPLICIT, Utils::VARIABLE_TYPE_IVEC4, Utils::VARIABLE_TYPE_DVEC4, "" }, in iterate()
7874 { TEST_CASE_TYPE_IMPLICIT, Utils::VARIABLE_TYPE_UINT, Utils::VARIABLE_TYPE_DOUBLE, "" }, in iterate()
7875 { TEST_CASE_TYPE_IMPLICIT, Utils::VARIABLE_TYPE_UVEC2, Utils::VARIABLE_TYPE_DVEC2, "" }, in iterate()
7876 { TEST_CASE_TYPE_IMPLICIT, Utils::VARIABLE_TYPE_UVEC3, Utils::VARIABLE_TYPE_DVEC3, "" }, in iterate()
7877 { TEST_CASE_TYPE_IMPLICIT, Utils::VARIABLE_TYPE_UVEC4, Utils::VARIABLE_TYPE_DVEC4, "" }, in iterate()
7878 { TEST_CASE_TYPE_IMPLICIT, Utils::VARIABLE_TYPE_FLOAT, Utils::VARIABLE_TYPE_DOUBLE, "" }, in iterate()
7879 { TEST_CASE_TYPE_IMPLICIT, Utils::VARIABLE_TYPE_VEC2, Utils::VARIABLE_TYPE_DVEC2, "" }, in iterate()
7880 { TEST_CASE_TYPE_IMPLICIT, Utils::VARIABLE_TYPE_VEC3, Utils::VARIABLE_TYPE_DVEC3, "" }, in iterate()
7881 { TEST_CASE_TYPE_IMPLICIT, Utils::VARIABLE_TYPE_VEC4, Utils::VARIABLE_TYPE_DVEC4, "" }, in iterate()
7882 { TEST_CASE_TYPE_IMPLICIT, Utils::VARIABLE_TYPE_MAT2, Utils::VARIABLE_TYPE_DMAT2, "" }, in iterate()
7883 { TEST_CASE_TYPE_IMPLICIT, Utils::VARIABLE_TYPE_MAT3, Utils::VARIABLE_TYPE_DMAT3, "" }, in iterate()
7884 { TEST_CASE_TYPE_IMPLICIT, Utils::VARIABLE_TYPE_MAT4, Utils::VARIABLE_TYPE_DMAT4, "" }, in iterate()
7885 { TEST_CASE_TYPE_IMPLICIT, Utils::VARIABLE_TYPE_MAT2X3, Utils::VARIABLE_TYPE_DMAT2X3, "" }, in iterate()
7886 { TEST_CASE_TYPE_IMPLICIT, Utils::VARIABLE_TYPE_MAT2X4, Utils::VARIABLE_TYPE_DMAT2X4, "" }, in iterate()
7887 { TEST_CASE_TYPE_IMPLICIT, Utils::VARIABLE_TYPE_MAT3X2, Utils::VARIABLE_TYPE_DMAT3X2, "" }, in iterate()
7888 { TEST_CASE_TYPE_IMPLICIT, Utils::VARIABLE_TYPE_MAT3X4, Utils::VARIABLE_TYPE_DMAT3X4, "" }, in iterate()
7889 { TEST_CASE_TYPE_IMPLICIT, Utils::VARIABLE_TYPE_MAT4X2, Utils::VARIABLE_TYPE_DMAT4X2, "" }, in iterate()
7890 { TEST_CASE_TYPE_IMPLICIT, Utils::VARIABLE_TYPE_MAT4X3, Utils::VARIABLE_TYPE_DMAT4X3, "" }, in iterate()
7892 { TEST_CASE_TYPE_EXPLICIT, Utils::VARIABLE_TYPE_INT, Utils::VARIABLE_TYPE_DOUBLE, "" }, in iterate()
7893 { TEST_CASE_TYPE_EXPLICIT, Utils::VARIABLE_TYPE_UINT, Utils::VARIABLE_TYPE_DOUBLE, "" }, in iterate()
7894 { TEST_CASE_TYPE_EXPLICIT, Utils::VARIABLE_TYPE_FLOAT, Utils::VARIABLE_TYPE_DOUBLE, "" }, in iterate()
7895 { TEST_CASE_TYPE_EXPLICIT, Utils::VARIABLE_TYPE_DOUBLE, Utils::VARIABLE_TYPE_INT, "" }, in iterate()
7896 { TEST_CASE_TYPE_EXPLICIT, Utils::VARIABLE_TYPE_DOUBLE, Utils::VARIABLE_TYPE_UINT, "" }, in iterate()
7897 { TEST_CASE_TYPE_EXPLICIT, Utils::VARIABLE_TYPE_DOUBLE, Utils::VARIABLE_TYPE_FLOAT, "" }, in iterate()
7898 { TEST_CASE_TYPE_EXPLICIT, Utils::VARIABLE_TYPE_DOUBLE, Utils::VARIABLE_TYPE_BOOL, "" }, in iterate()
7899 { TEST_CASE_TYPE_EXPLICIT, Utils::VARIABLE_TYPE_BOOL, Utils::VARIABLE_TYPE_DOUBLE, "" } in iterate()
7942 const Utils::_variable_type base_dst_type = Utils::getBaseVariableType(test_case.dst_type); in verifyXFBData()
7943 const Utils::_variable_type base_src_type = Utils::getBaseVariableType(test_case.src_type); in verifyXFBData()
7946 …const unsigned int n_result_components = Utils::getNumberOfComponentsForVariableType(test_case.d… in verifyXFBData()
7947 …const unsigned int n_src_components = Utils::getNumberOfComponentsForVariableType(test_case.src_… in verifyXFBData()
7953 if (!Utils::isMatrixVariableType(test_case.src_type)) in verifyXFBData()
7979 case Utils::VARIABLE_TYPE_BOOL: in verifyXFBData()
7980 case Utils::VARIABLE_TYPE_INT: in verifyXFBData()
7986 if (base_dst_type == Utils::VARIABLE_TYPE_BOOL) in verifyXFBData()
7999 << " cast from GLSL type [" << Utils::getVariableTypeString(test_case.src_type) in verifyXFBData()
8006 << Utils::getVariableTypeString(test_case.dst_type) << "]" in verifyXFBData()
8021 case Utils::VARIABLE_TYPE_DOUBLE: in verifyXFBData()
8027 if (base_src_type == Utils::VARIABLE_TYPE_BOOL) in verifyXFBData()
8031 else if (base_src_type == Utils::VARIABLE_TYPE_INT) in verifyXFBData()
8035 else if (base_src_type == Utils::VARIABLE_TYPE_UINT) in verifyXFBData()
8056 << " cast from GLSL type [" << Utils::getVariableTypeString(test_case.src_type) in verifyXFBData()
8063 << Utils::getVariableTypeString(test_case.dst_type) << "]" in verifyXFBData()
8077 case Utils::VARIABLE_TYPE_FLOAT: in verifyXFBData()
8083 if (base_src_type == Utils::VARIABLE_TYPE_BOOL) in verifyXFBData()
8087 else if (base_src_type == Utils::VARIABLE_TYPE_INT) in verifyXFBData()
8091 else if (base_src_type == Utils::VARIABLE_TYPE_UINT) in verifyXFBData()
8102 << " cast from GLSL type [" << Utils::getVariableTypeString(test_case.src_type) in verifyXFBData()
8109 << Utils::getVariableTypeString(test_case.dst_type) << "]" in verifyXFBData()
8123 case Utils::VARIABLE_TYPE_UINT: in verifyXFBData()
8141 << " cast from GLSL type [" << Utils::getVariableTypeString(test_case.src_type) in verifyXFBData()
8148 << Utils::getVariableTypeString(test_case.dst_type) << "]" in verifyXFBData()
8352 result_sstream << Utils::getVariableTypeString(test_case.src_type) << " src"; in getComputeShaderBody()
8365 << Utils::getVariableTypeString(test_case.dst_type) << " member"; in getComputeShaderBody()
8369 result_sstream << Utils::getVariableTypeString(test_case.dst_type) << " dst"; in getComputeShaderBody()
8405 result_sstream << Utils::getVariableTypeString(test_case.src_type) << " src"; in getFragmentShaderBody()
8418 << Utils::getVariableTypeString(test_case.dst_type) << " member"; in getFragmentShaderBody()
8422 result_sstream << Utils::getVariableTypeString(test_case.dst_type) << " dst"; in getFragmentShaderBody()
8461 result_sstream << Utils::getVariableTypeString(test_case.src_type) << " src"; in getGeometryShaderBody()
8474 << Utils::getVariableTypeString(test_case.dst_type) << " member"; in getGeometryShaderBody()
8478 result_sstream << Utils::getVariableTypeString(test_case.dst_type) << " dst"; in getGeometryShaderBody()
8517 result_sstream << Utils::getVariableTypeString(test_case.src_type) << " src"; in getTessellationControlShaderBody()
8530 << Utils::getVariableTypeString(test_case.dst_type) << " member"; in getTessellationControlShaderBody()
8534 result_sstream << Utils::getVariableTypeString(test_case.dst_type) << " dst"; in getTessellationControlShaderBody()
8577 result_sstream << Utils::getVariableTypeString(test_case.src_type) << " src"; in getTessellationEvaluationShaderBody()
8590 << Utils::getVariableTypeString(test_case.dst_type) << " member"; in getTessellationEvaluationShaderBody()
8594 result_sstream << Utils::getVariableTypeString(test_case.dst_type) << " dst"; in getTessellationEvaluationShaderBody()
8635 result_sstream << Utils::getVariableTypeString(test_case.src_type) << " src"; in getVertexShaderBody()
8648 << Utils::getVariableTypeString(test_case.dst_type) << " member"; in getVertexShaderBody()
8652 result_sstream << Utils::getVariableTypeString(test_case.dst_type) << " dst"; in getVertexShaderBody()
8682 (true == Utils::isGLVersionAtLeast(gl, 4 /* major */, 2 /* minor */))) in initTest()
8751 { 2, Utils::VARIABLE_TYPE_INT, Utils::VARIABLE_TYPE_DOUBLE, false, "", "", "", "", "", "" }, in iterate()
8752 { 2, Utils::VARIABLE_TYPE_INT, Utils::VARIABLE_TYPE_DOUBLE, true, "", "", "", "", "", "" }, in iterate()
8753 { 2, Utils::VARIABLE_TYPE_IVEC2, Utils::VARIABLE_TYPE_DVEC2, false, "", "", "", "", "", "" }, in iterate()
8754 { 2, Utils::VARIABLE_TYPE_IVEC2, Utils::VARIABLE_TYPE_DVEC2, true, "", "", "", "", "", "" }, in iterate()
8755 { 2, Utils::VARIABLE_TYPE_IVEC3, Utils::VARIABLE_TYPE_DVEC3, false, "", "", "", "", "", "" }, in iterate()
8756 { 2, Utils::VARIABLE_TYPE_IVEC3, Utils::VARIABLE_TYPE_DVEC3, true, "", "", "", "", "", "" }, in iterate()
8757 { 2, Utils::VARIABLE_TYPE_IVEC4, Utils::VARIABLE_TYPE_DVEC4, false, "", "", "", "", "", "" }, in iterate()
8758 { 2, Utils::VARIABLE_TYPE_IVEC4, Utils::VARIABLE_TYPE_DVEC4, true, "", "", "", "", "", "" }, in iterate()
8759 { 2, Utils::VARIABLE_TYPE_UINT, Utils::VARIABLE_TYPE_DOUBLE, false, "", "", "", "", "", "" }, in iterate()
8760 { 2, Utils::VARIABLE_TYPE_UINT, Utils::VARIABLE_TYPE_DOUBLE, true, "", "", "", "", "", "" }, in iterate()
8761 { 2, Utils::VARIABLE_TYPE_UVEC2, Utils::VARIABLE_TYPE_DVEC2, false, "", "", "", "", "", "" }, in iterate()
8762 { 2, Utils::VARIABLE_TYPE_UVEC2, Utils::VARIABLE_TYPE_DVEC2, true, "", "", "", "", "", "" }, in iterate()
8763 { 2, Utils::VARIABLE_TYPE_UVEC3, Utils::VARIABLE_TYPE_DVEC3, false, "", "", "", "", "", "" }, in iterate()
8764 { 2, Utils::VARIABLE_TYPE_UVEC3, Utils::VARIABLE_TYPE_DVEC3, true, "", "", "", "", "", "" }, in iterate()
8765 { 2, Utils::VARIABLE_TYPE_UVEC4, Utils::VARIABLE_TYPE_DVEC4, false, "", "", "", "", "", "" }, in iterate()
8766 { 2, Utils::VARIABLE_TYPE_UVEC4, Utils::VARIABLE_TYPE_DVEC4, true, "", "", "", "", "", "" }, in iterate()
8767 { 2, Utils::VARIABLE_TYPE_FLOAT, Utils::VARIABLE_TYPE_DOUBLE, false, "", "", "", "", "", "" }, in iterate()
8768 { 2, Utils::VARIABLE_TYPE_FLOAT, Utils::VARIABLE_TYPE_DOUBLE, true, "", "", "", "", "", "" }, in iterate()
8769 { 2, Utils::VARIABLE_TYPE_VEC2, Utils::VARIABLE_TYPE_DVEC2, false, "", "", "", "", "", "" }, in iterate()
8770 { 2, Utils::VARIABLE_TYPE_VEC2, Utils::VARIABLE_TYPE_DVEC2, true, "", "", "", "", "", "" }, in iterate()
8771 { 2, Utils::VARIABLE_TYPE_VEC3, Utils::VARIABLE_TYPE_DVEC3, false, "", "", "", "", "", "" }, in iterate()
8772 { 2, Utils::VARIABLE_TYPE_VEC3, Utils::VARIABLE_TYPE_DVEC3, true, "", "", "", "", "", "" }, in iterate()
8773 { 2, Utils::VARIABLE_TYPE_VEC4, Utils::VARIABLE_TYPE_DVEC4, false, "", "", "", "", "", "" }, in iterate()
8774 { 2, Utils::VARIABLE_TYPE_VEC4, Utils::VARIABLE_TYPE_DVEC4, true, "", "", "", "", "", "" }, in iterate()
8775 { 2, Utils::VARIABLE_TYPE_MAT2, Utils::VARIABLE_TYPE_DMAT2, false, "", "", "", "", "", "" }, in iterate()
8776 { 2, Utils::VARIABLE_TYPE_MAT2, Utils::VARIABLE_TYPE_DMAT2, true, "", "", "", "", "", "" }, in iterate()
8777 { 2, Utils::VARIABLE_TYPE_MAT3, Utils::VARIABLE_TYPE_DMAT3, false, "", "", "", "", "", "" }, in iterate()
8778 { 2, Utils::VARIABLE_TYPE_MAT3, Utils::VARIABLE_TYPE_DMAT3, true, "", "", "", "", "", "" }, in iterate()
8779 { 2, Utils::VARIABLE_TYPE_MAT4, Utils::VARIABLE_TYPE_DMAT4, false, "", "", "", "", "", "" }, in iterate()
8780 { 2, Utils::VARIABLE_TYPE_MAT4, Utils::VARIABLE_TYPE_DMAT4, true, "", "", "", "", "", "" }, in iterate()
8781 { 2, Utils::VARIABLE_TYPE_MAT2X3, Utils::VARIABLE_TYPE_DMAT2X3, false, "", "", "", "", "", "" }, in iterate()
8782 { 2, Utils::VARIABLE_TYPE_MAT2X3, Utils::VARIABLE_TYPE_DMAT2X3, true, "", "", "", "", "", "" }, in iterate()
8783 { 2, Utils::VARIABLE_TYPE_MAT2X4, Utils::VARIABLE_TYPE_DMAT2X4, false, "", "", "", "", "", "" }, in iterate()
8784 { 2, Utils::VARIABLE_TYPE_MAT2X4, Utils::VARIABLE_TYPE_DMAT2X4, true, "", "", "", "", "", "" }, in iterate()
8785 { 2, Utils::VARIABLE_TYPE_MAT3X2, Utils::VARIABLE_TYPE_DMAT3X2, false, "", "", "", "", "", "" }, in iterate()
8786 { 2, Utils::VARIABLE_TYPE_MAT3X2, Utils::VARIABLE_TYPE_DMAT3X2, true, "", "", "", "", "", "" }, in iterate()
8787 { 2, Utils::VARIABLE_TYPE_MAT3X4, Utils::VARIABLE_TYPE_DMAT3X4, false, "", "", "", "", "", "" }, in iterate()
8788 { 2, Utils::VARIABLE_TYPE_MAT3X4, Utils::VARIABLE_TYPE_DMAT3X4, true, "", "", "", "", "", "" }, in iterate()
8789 { 2, Utils::VARIABLE_TYPE_MAT4X2, Utils::VARIABLE_TYPE_DMAT4X2, false, "", "", "", "", "", "" }, in iterate()
8790 { 2, Utils::VARIABLE_TYPE_MAT4X2, Utils::VARIABLE_TYPE_DMAT4X2, true, "", "", "", "", "", "" }, in iterate()
8791 { 2, Utils::VARIABLE_TYPE_MAT4X3, Utils::VARIABLE_TYPE_DMAT4X3, false, "", "", "", "", "", "" }, in iterate()
8792 { 2, Utils::VARIABLE_TYPE_MAT4X3, Utils::VARIABLE_TYPE_DMAT4X3, true, "", "", "", "", "", "" } in iterate()
9018 …Utils::getNumberOfComponentsForVariableType(variable.type) * variable.array_size * sizeof(double)); in configureXFBBuffer()
9207 << Utils::getVariableTypeString(variables[n_variable].type) in executeFunctionalTest()
9310 Utils::_variable_type input_variable_type, unsigned int array_size) in getCodeOfFragmentShaderWithNonFlatDoublePrecisionInput()
9322 if (Utils::isMatrixVariableType(input_variable_type)) in getCodeOfFragmentShaderWithNonFlatDoublePrecisionInput()
9326 else if (Utils::getNumberOfComponentsForVariableType(input_variable_type) > 1) in getCodeOfFragmentShaderWithNonFlatDoublePrecisionInput()
9334 << Utils::getVariableTypeString(input_variable_type) << " test_input" in getCodeOfFragmentShaderWithNonFlatDoublePrecisionInput()
9364 Utils::_variable_type output_variable_type, unsigned int array_size) in getCodeOfFragmentShaderWithDoublePrecisionOutput()
9369 std::string output_variable_type_string = Utils::getVariableTypeString(output_variable_type); in getCodeOfFragmentShaderWithDoublePrecisionOutput()
9431 Utils::_variable_type variable_type = variables[n_variable].type; in getFragmentShaderBody()
9432 …unsigned int n_variable_type_components = Utils::getNumberOfComponentsForVariableType(variable_… in getFragmentShaderBody()
9433 std::string variable_type_string = Utils::getVariableTypeString(variable_type); in getFragmentShaderBody()
9496 Utils::_variable_type variable_type = variables[n_variable].type; in getFragmentShaderBody()
9497 bool is_variable_type_matrix = Utils::isMatrixVariableType(variable_type); in getFragmentShaderBody()
9498 …unsigned int n_variable_type_components = Utils::getNumberOfComponentsForVariableType(variable_… in getFragmentShaderBody()
9499 std::string variable_type_string = Utils::getVariableTypeString(variable_type); in getFragmentShaderBody()
9523 const unsigned int n_columns = Utils::getNumberOfColumnsForVariableType(variable_type); in getFragmentShaderBody()
9529 << Utils::getComponentAtIndex(row); in getFragmentShaderBody()
9540 const unsigned int n_columns = Utils::getNumberOfColumnsForVariableType(variable_type); in getFragmentShaderBody()
9546 << Utils::getComponentAtIndex(row); in getFragmentShaderBody()
9617 Utils::_variable_type variable_type = variables[n_variable].type; in getGeometryShaderBody()
9618 …unsigned int n_variable_type_components = Utils::getNumberOfComponentsForVariableType(variable_t… in getGeometryShaderBody()
9619 std::string variable_type_string = Utils::getVariableTypeString(variable_type); in getGeometryShaderBody()
9705 Utils::_variable_type variable_type = variables[n_variable].type; in getTessellationControlShaderBody()
9706 …unsigned int n_variable_type_components = Utils::getNumberOfComponentsForVariableType(variable_… in getTessellationControlShaderBody()
9707 std::string variable_type_string = Utils::getVariableTypeString(variable_type); in getTessellationControlShaderBody()
9782 Utils::_variable_type variable_type = variables[n_variable].type; in getTessellationEvaluationShaderBody()
9783 …unsigned int n_variable_type_components = Utils::getNumberOfComponentsForVariableType(variable_… in getTessellationEvaluationShaderBody()
9784 std::string variable_type_string = Utils::getVariableTypeString(variable_type); in getTessellationEvaluationShaderBody()
9841 Utils::_variable_type variable_type = variables[n_variable].type; in getVariableDeclarations()
9842 std::string variable_type_string = Utils::getVariableTypeString(variable_type); in getVariableDeclarations()
9897 Utils::_variable_type variable_type = variables[n_variable].type; in getVertexShaderBody()
9898 …const unsigned int n_variable_type_components = Utils::getNumberOfComponentsForVariableType(variab… in getVertexShaderBody()
9899 std::string variable_type_string = Utils::getVariableTypeString(variable_type); in getVertexShaderBody()
9927 if (Utils::isMatrixVariableType(variables[n_variable].type)) in getVertexShaderBody()
9929 const unsigned int n_columns = Utils::getNumberOfColumnsForVariableType(variable_type); in getVertexShaderBody()
9935 << Utils::getComponentAtIndex(row); in getVertexShaderBody()
10102 const Utils::_variable_type double_variable_types[] = { in iterate()
10103 Utils::VARIABLE_TYPE_DOUBLE, Utils::VARIABLE_TYPE_DVEC2, Utils::VARIABLE_TYPE_DVEC3, in iterate()
10104 Utils::VARIABLE_TYPE_DVEC4, Utils::VARIABLE_TYPE_DMAT2, Utils::VARIABLE_TYPE_DMAT2X3, in iterate()
10105 Utils::VARIABLE_TYPE_DMAT2X4, Utils::VARIABLE_TYPE_DMAT3, Utils::VARIABLE_TYPE_DMAT3X2, in iterate()
10106 Utils::VARIABLE_TYPE_DMAT3X4, Utils::VARIABLE_TYPE_DMAT4, Utils::VARIABLE_TYPE_DMAT4X2, in iterate()
10107 Utils::VARIABLE_TYPE_DMAT4X3, in iterate()
10116 Utils::_variable_type variable_type = double_variable_types[n_double_variable_type]; in iterate()
10166 Utils::getNumberOfLocationsUsedByDoublePrecisionVariableType(new_variable.type); in iterate()
10229 const Utils::_variable_type& base_variable_type = Utils::getBaseVariableType(variable.type); in logVariableContents()
10230 const unsigned int n_components = Utils::getNumberOfComponentsForVariableType(variable.type); in logVariableContents()
10245 log_sstream << Utils::getStringForVariableTypeValue(base_variable_type, traveller_ptr); in logVariableContents()
10298 const bool is_matrix_type = Utils::isMatrixVariableType(variable.type); in setInputAttributeValues()
10299 …const unsigned int n_total_components = Utils::getNumberOfComponentsForVariableType(variable.type); in setInputAttributeValues()
10305 n_columns = Utils::getNumberOfColumnsForVariableType(variable.type); in setInputAttributeValues()
10534 const Utils::_variable_type& variable_type) in getArgumentListsForVariableType()
10536 const Utils::_variable_type matrix_types[] = { in getArgumentListsForVariableType()
10537 Utils::VARIABLE_TYPE_DMAT2, Utils::VARIABLE_TYPE_DMAT2X3, Utils::VARIABLE_TYPE_DMAT2X4, in getArgumentListsForVariableType()
10538 Utils::VARIABLE_TYPE_DMAT3, Utils::VARIABLE_TYPE_DMAT3X2, Utils::VARIABLE_TYPE_DMAT3X4, in getArgumentListsForVariableType()
10539 Utils::VARIABLE_TYPE_DMAT4, Utils::VARIABLE_TYPE_DMAT4X2, Utils::VARIABLE_TYPE_DMAT4X3, in getArgumentListsForVariableType()
10541 …const Utils::_variable_type scalar_types[] = { Utils::VARIABLE_TYPE_DOUBLE, Utils::VARIABLE_TYPE_D… in getArgumentListsForVariableType()
10542 Utils::VARIABLE_TYPE_DVEC3, Utils::VARIABLE_TYPE_DVEC4 }; in getArgumentListsForVariableType()
10545 const int n_total_components = (int)Utils::getNumberOfComponentsForVariableType(variable_type); in getArgumentListsForVariableType()
10577 if (Utils::isMatrixVariableType(current_node_ptr->type)) in getArgumentListsForVariableType()
10584 Utils::_variable_type new_argument_type = matrix_types[n_matrix_type]; in getArgumentListsForVariableType()
10605 if (!Utils::isMatrixVariableType(current_node_ptr->type)) in getArgumentListsForVariableType()
10610 Utils::_variable_type new_argument_type = scalar_types[n_scalar_type]; in getArgumentListsForVariableType()
10611 …const int n_new_argument_components = Utils::getNumberOfComponentsForVariableType(new_argument_typ… in getArgumentListsForVariableType()
10755 std::string variable_type_string = Utils::getVariableTypeString(test_case.type); in getGeneralBody()
10762 const Utils::_variable_type argument_variable_type = *argument_list_iterator; in getGeneralBody()
10763 …std::string argument_variable_type_string = Utils::getVariableTypeString(argument_variable_t… in getGeneralBody()
10764 …const unsigned int argument_n_components = Utils::getNumberOfComponentsForVariableType(argument_va… in getGeneralBody()
10898 (true == Utils::isGLVersionAtLeast(gl, 4 /* major */, 2 /* minor */))) in initTest()
10965 …const Utils::_variable_type variable_types[] = { Utils::VARIABLE_TYPE_DMAT2, Utils::VARIABLE_TYP… in iterate()
10966 Utils::VARIABLE_TYPE_DMAT2X4, Utils::VARIABLE_TYPE_DMAT3, in iterate()
10967 Utils::VARIABLE_TYPE_DMAT3X2, Utils::VARIABLE_TYPE_DMAT3X4, in iterate()
10968 Utils::VARIABLE_TYPE_DMAT4, Utils::VARIABLE_TYPE_DMAT4X2, in iterate()
10969 Utils::VARIABLE_TYPE_DMAT4X3, Utils::VARIABLE_TYPE_DOUBLE, in iterate()
10970 Utils::VARIABLE_TYPE_DVEC2, Utils::VARIABLE_TYPE_DVEC3, in iterate()
10971 Utils::VARIABLE_TYPE_DVEC4 }; in iterate()
10976 const Utils::_variable_type variable_type = variable_types[n_variable_type]; in iterate()
11113 void GPUShaderFP64Test9::getMatrixMultiplicationResult(const Utils::_variable_type& matrix_a_type, in getMatrixMultiplicationResult()
11115 const Utils::_variable_type& matrix_b_type, in getMatrixMultiplicationResult()
11123 case Utils::VARIABLE_TYPE_DMAT2: in getMatrixMultiplicationResult()
11125 DE_ASSERT(matrix_b_type == Utils::VARIABLE_TYPE_DMAT2); in getMatrixMultiplicationResult()
11139 case Utils::VARIABLE_TYPE_DMAT2X3: in getMatrixMultiplicationResult()
11141 DE_ASSERT(matrix_b_type == Utils::VARIABLE_TYPE_DMAT3X2); in getMatrixMultiplicationResult()
11157 case Utils::VARIABLE_TYPE_DMAT2X4: in getMatrixMultiplicationResult()
11159 DE_ASSERT(matrix_b_type == Utils::VARIABLE_TYPE_DMAT4X2); in getMatrixMultiplicationResult()
11175 case Utils::VARIABLE_TYPE_DMAT3: in getMatrixMultiplicationResult()
11177 DE_ASSERT(matrix_b_type == Utils::VARIABLE_TYPE_DMAT3); in getMatrixMultiplicationResult()
11191 case Utils::VARIABLE_TYPE_DMAT3X2: in getMatrixMultiplicationResult()
11193 DE_ASSERT(matrix_b_type == Utils::VARIABLE_TYPE_DMAT2X3); in getMatrixMultiplicationResult()
11209 case Utils::VARIABLE_TYPE_DMAT3X4: in getMatrixMultiplicationResult()
11211 DE_ASSERT(matrix_b_type == Utils::VARIABLE_TYPE_DMAT4X3); in getMatrixMultiplicationResult()
11227 case Utils::VARIABLE_TYPE_DMAT4: in getMatrixMultiplicationResult()
11229 DE_ASSERT(matrix_b_type == Utils::VARIABLE_TYPE_DMAT4); in getMatrixMultiplicationResult()
11243 case Utils::VARIABLE_TYPE_DMAT4X2: in getMatrixMultiplicationResult()
11245 DE_ASSERT(matrix_b_type == Utils::VARIABLE_TYPE_DMAT2X4); in getMatrixMultiplicationResult()
11261 case Utils::VARIABLE_TYPE_DMAT4X3: in getMatrixMultiplicationResult()
11263 DE_ASSERT(matrix_b_type == Utils::VARIABLE_TYPE_DMAT3X4); in getMatrixMultiplicationResult()
11392 …std::string result_variable_type_string = Utils::getVariableTypeString(test_case.variable_type… in getVertexShaderBody()
11393 …std::string variable_type_fp_string = Utils::getFPVariableTypeStringForVariableType(test_case.… in getVertexShaderBody()
11394 std::string variable_type_string = Utils::getVariableTypeString(test_case.variable_type); in getVertexShaderBody()
11395 …const unsigned int n_variable_components = Utils::getNumberOfComponentsForVariableType(test_case… in getVertexShaderBody()
11401 Utils::isMatrixVariableType(test_case.variable_type)) in getVertexShaderBody()
11403 Utils::_variable_type result_variable_type; in getVertexShaderBody()
11404 Utils::_variable_type transposed_matrix_variable_type = in getVertexShaderBody()
11405 Utils::getTransposedMatrixVariableType(test_case.variable_type); in getVertexShaderBody()
11408 …Utils::getPostMatrixMultiplicationVariableType(test_case.variable_type, transposed_matrix_variable… in getVertexShaderBody()
11409 result_variable_type_string = Utils::getVariableTypeString(result_variable_type); in getVertexShaderBody()
11446 Utils::_variable_type compatible_variable_type = test_case.variable_type; in getVertexShaderBody()
11448 if (Utils::isMatrixVariableType(compatible_variable_type) && in getVertexShaderBody()
11451 compatible_variable_type = Utils::getTransposedMatrixVariableType(compatible_variable_type); in getVertexShaderBody()
11455 Utils::getFPVariableTypeStringForVariableType(compatible_variable_type); in getVertexShaderBody()
11456 std::string ref2_variable_type_string = Utils::getVariableTypeString(compatible_variable_type); in getVertexShaderBody()
11506 if (Utils::isScalarVariableType(test_case.variable_type)) in getVertexShaderBody()
11625 Utils::getNumberOfComponentsForVariableType(test_case.result_variable_type) * sizeof(double)); in initTestIteration()
11649 …const Utils::_variable_type variable_types[] = { Utils::VARIABLE_TYPE_DMAT2, Utils::VARIABLE_TYP… in iterate()
11650 Utils::VARIABLE_TYPE_DMAT2X4, Utils::VARIABLE_TYPE_DMAT3, in iterate()
11651 Utils::VARIABLE_TYPE_DMAT3X2, Utils::VARIABLE_TYPE_DMAT3X4, in iterate()
11652 Utils::VARIABLE_TYPE_DMAT4, Utils::VARIABLE_TYPE_DMAT4X2, in iterate()
11653 Utils::VARIABLE_TYPE_DMAT4X3, Utils::VARIABLE_TYPE_DOUBLE, in iterate()
11654 Utils::VARIABLE_TYPE_DVEC2, Utils::VARIABLE_TYPE_DVEC3, in iterate()
11655 Utils::VARIABLE_TYPE_DVEC4 }; in iterate()
11664 const Utils::_variable_type& variable_type = variable_types[n_variable_type]; in iterate()
11706 Utils::getNumberOfComponentsForVariableType(test_case.result_variable_type); in verifyXFBData()
11734 if (Utils::isMatrixVariableType(test_case.variable_type)) in verifyXFBData()
11739 const Utils::_variable_type matrix_a_type = test_case.variable_type; in verifyXFBData()
11740 …const Utils::_variable_type matrix_b_type = Utils::getTransposedMatrixVariableType(test_case.varia… in verifyXFBData()
11741 …const unsigned int n_matrix_a_components = Utils::getNumberOfComponentsForVariableType(matrix_a_… in verifyXFBData()
11742 …const unsigned int n_matrix_b_components = Utils::getNumberOfComponentsForVariableType(matrix_b_… in verifyXFBData()
11766 Utils::isMatrixVariableType(test_case.variable_type)) in verifyXFBData()
11770 Utils::_variable_type matrix_a_type = test_case.variable_type; in verifyXFBData()
11771 …Utils::_variable_type matrix_b_type = Utils::getTransposedMatrixVariableType(test_case.variable_ty… in verifyXFBData()
11781 log_sstream << "Data returned for " << Utils::getVariableTypeString(matrix_a_type) << " * " in verifyXFBData()
11782 << Utils::getVariableTypeString(matrix_b_type) in verifyXFBData()
11864 std::string variable_type_string = Utils::getVariableTypeString(test_case.variable_type); in verifyXFBData()
11880 if (Utils::isScalarVariableType(test_case.variable_type)) in verifyXFBData()
11893 std::string variable_type_string = Utils::getVariableTypeString(test_case.variable_type); in verifyXFBData()
11912 std::string variable_type_string = Utils::getVariableTypeString(test_case.variable_type); in verifyXFBData()
11931 std::string variable_type_string = Utils::getVariableTypeString(test_case.variable_type); in verifyXFBData()
11950 std::string variable_type_string = Utils::getVariableTypeString(test_case.variable_type); in verifyXFBData()
11973 std::string variable_type_string = Utils::getVariableTypeString(test_case.variable_type); in verifyXFBData()
12020 static const Utils::_variable_type variable_type = Utils::VARIABLE_TYPE_BOOL;
12027 static const Utils::_variable_type variable_type = Utils::VARIABLE_TYPE_DOUBLE;
12034 static const Utils::_variable_type variable_type = Utils::VARIABLE_TYPE_UVEC2;
12041 static const Utils::_variable_type variable_type = Utils::VARIABLE_TYPE_UVEC3;
12048 static const Utils::_variable_type variable_type = Utils::VARIABLE_TYPE_UVEC4;
12055 static const Utils::_variable_type variable_type = Utils::VARIABLE_TYPE_DVEC2;
12062 static const Utils::_variable_type variable_type = Utils::VARIABLE_TYPE_DVEC3;
12069 static const Utils::_variable_type variable_type = Utils::VARIABLE_TYPE_DVEC4;
12076 static const Utils::_variable_type variable_type = Utils::VARIABLE_TYPE_DMAT2;
12083 static const Utils::_variable_type variable_type = Utils::VARIABLE_TYPE_DMAT2X3;
12090 static const Utils::_variable_type variable_type = Utils::VARIABLE_TYPE_DMAT2X4;
12097 static const Utils::_variable_type variable_type = Utils::VARIABLE_TYPE_DMAT3;
12104 static const Utils::_variable_type variable_type = Utils::VARIABLE_TYPE_DMAT3X2;
12111 static const Utils::_variable_type variable_type = Utils::VARIABLE_TYPE_DMAT3X4;
12118 static const Utils::_variable_type variable_type = Utils::VARIABLE_TYPE_DMAT4;
12125 static const Utils::_variable_type variable_type = Utils::VARIABLE_TYPE_DMAT4X2;
12132 static const Utils::_variable_type variable_type = Utils::VARIABLE_TYPE_DMAT4X3;
12826 Utils::_variable_type result_type);
12835 virtual Utils::_variable_type getArgumentType(glw::GLuint argument) const = 0;
12846 virtual Utils::_variable_type getResultType(glw::GLuint result) const;
12855 const Utils::_variable_type m_res_type;
12892 bool compare(Utils::_variable_type type, const glw::GLvoid* left, const glw::GLvoid* right);
12913 …void logVariableType(const glw::GLvoid* buffer, const glw::GLchar* name, Utils::_variable_type typ…
12920 void prepareProgram(const functionObject& function_object, Utils::programInfo& program_info);
12932 const Utils::_variable_type result_type, const glw::GLvoid* expected_result_src,
12975 static const Utils::_variable_type variable_type =
13066 const Utils::_variable_type res_type, const Utils::_variable_type arg_type) in unaryBase()
13076 virtual Utils::_variable_type getArgumentType(glw::GLuint /* argument */) const in getArgumentType()
13082 const Utils::_variable_type m_arg_type;
13128 const Utils::_variable_type res_type, const Utils::_variable_type arg_type) in unaryByComponent()
13135 glw::GLuint n_components = Utils::getNumberOfComponentsForVariableType(m_arg_type); in call()
13161 functionPointer function_pointer, const Utils::_variable_type res_type, in unaryWithOutputByComponent()
13162 const Utils::_variable_type arg_type, const Utils::_variable_type out_type) in unaryWithOutputByComponent()
13197 Utils::_variable_type getResultType(glw::GLuint result) const in getResultType()
13199 Utils::_variable_type type = Utils::VARIABLE_TYPE_UNKNOWN; in getResultType()
13218 const Utils::_variable_type m_out_type;
13228 const Utils::_variable_type res_type, const Utils::_variable_type arg_1_type, in binaryBase()
13229 const Utils::_variable_type arg_2_type) in binaryBase()
13241 virtual Utils::_variable_type getArgumentType(glw::GLuint argument) const in getArgumentType()
13250 return Utils::VARIABLE_TYPE_UNKNOWN; in getArgumentType()
13255 const Utils::_variable_type m_arg_1_type;
13256 const Utils::_variable_type m_arg_2_type;
13309 const Utils::_variable_type res_type, const Utils::_variable_type arg_1_type, in binaryByComponent()
13310 const Utils::_variable_type arg_2_type) in binaryByComponent()
13347 const Utils::_variable_type res_type, const Utils::_variable_type arg_1_type, in tenaryBase()
13348 const Utils::_variable_type arg_2_type, const Utils::_variable_type arg_3_type) in tenaryBase()
13361 virtual Utils::_variable_type getArgumentType(glw::GLuint argument) const in getArgumentType()
13372 return Utils::VARIABLE_TYPE_UNKNOWN; in getArgumentType()
13377 const Utils::_variable_type m_arg_1_type;
13378 const Utils::_variable_type m_arg_2_type;
13379 const Utils::_variable_type m_arg_3_type;
13436 const Utils::_variable_type res_type, const Utils::_variable_type arg_1_type, in tenaryByComponent()
13437 const Utils::_variable_type arg_2_type, const Utils::_variable_type arg_3_type) in tenaryByComponent()
13547 glw::GLvoid* function_pointer, Utils::_variable_type result_type) in functionObject()
13564 const Utils::_variable_type type = getArgumentType(argument); in getArgumentComponents()
13565 const glw::GLuint n_components = Utils::getNumberOfComponentsForVariableType(type); in getArgumentComponents()
13578 const Utils::_variable_type type = getArgumentType(argument); in getArgumentComponentSize()
13579 const Utils::_variable_type base_type = Utils::getBaseVariableType(type); in getArgumentComponentSize()
13580 const glw::GLuint base_type_size = Utils::getBaseVariableTypeComponentSize(base_type); in getArgumentComponentSize()
13660 const Utils::_variable_type type = getResultType(result); in getResultComponents()
13661 const glw::GLuint n_components = Utils::getNumberOfComponentsForVariableType(type); in getResultComponents()
13702 const Utils::_variable_type type = getResultType(result); in getResultStride()
13703 const glw::GLuint n_components = Utils::getNumberOfComponentsForVariableType(type); in getResultStride()
13716 const Utils::_variable_type type = getResultType(result); in getBaseTypeSize()
13717 const Utils::_variable_type base_type = Utils::getBaseVariableType(type); in getBaseTypeSize()
13718 const glw::GLuint base_type_size = Utils::getBaseVariableTypeComponentSize(base_type); in getBaseTypeSize()
13752 Utils::_variable_type BuiltinFunctionTest::functionObject::getResultType(glw::GLuint /* result */) … in getResultType()
13765 Utils::_variable_type type = Utils::getDoubleVariableType(n_columns, n_rows); in typeDetails()
13766 m_type = Utils::getGLDataTypeOfVariableType(type); in typeDetails()
13767 m_type_name = Utils::getVariableTypeString(type); in typeDetails()
13794 bool BuiltinFunctionTest::compare(Utils::_variable_type type, const glw::GLvoid* left, const glw::G… in compare()
13798 const glw::GLuint n_components = Utils::getNumberOfComponentsForVariableType(type); in compare()
13799 const Utils::_variable_type base_type = Utils::getBaseVariableType(type); in compare()
13803 case Utils::VARIABLE_TYPE_DOUBLE: in compare()
13825 case Utils::VARIABLE_TYPE_INT: in compare()
13846 case Utils::VARIABLE_TYPE_UINT: in compare()
13897 const Utils::_variable_type scalar_type = Utils::getDoubleVariableType(1, 1); in getFunctionObject()
13898 const Utils::_variable_type variable_type = Utils::getDoubleVariableType(n_columns, n_rows); in getFunctionObject()
13899 const Utils::_variable_type uint_type = Utils::getUintVariableType(1, n_rows); in getFunctionObject()
13900 const Utils::_variable_type int_type = Utils::getIntVariableType(1, n_rows); in getFunctionObject()
13935 case Utils::VARIABLE_TYPE_DMAT2: in getFunctionObject()
13938 case Utils::VARIABLE_TYPE_DMAT3: in getFunctionObject()
13941 case Utils::VARIABLE_TYPE_DMAT4: in getFunctionObject()
13952 case Utils::VARIABLE_TYPE_DVEC2: in getFunctionObject()
13955 case Utils::VARIABLE_TYPE_DVEC3: in getFunctionObject()
13958 case Utils::VARIABLE_TYPE_DVEC4: in getFunctionObject()
13971 case Utils::VARIABLE_TYPE_DVEC2: in getFunctionObject()
13974 case Utils::VARIABLE_TYPE_DVEC3: in getFunctionObject()
13977 case Utils::VARIABLE_TYPE_DVEC4: in getFunctionObject()
13990 case Utils::VARIABLE_TYPE_DVEC2: in getFunctionObject()
13993 case Utils::VARIABLE_TYPE_DVEC3: in getFunctionObject()
13996 case Utils::VARIABLE_TYPE_DVEC4: in getFunctionObject()
14009 case Utils::VARIABLE_TYPE_DVEC2: in getFunctionObject()
14013 case Utils::VARIABLE_TYPE_DVEC3: in getFunctionObject()
14017 case Utils::VARIABLE_TYPE_DVEC4: in getFunctionObject()
14054 case Utils::VARIABLE_TYPE_DVEC2: in getFunctionObject()
14057 case Utils::VARIABLE_TYPE_DVEC3: in getFunctionObject()
14060 case Utils::VARIABLE_TYPE_DVEC4: in getFunctionObject()
14073 case Utils::VARIABLE_TYPE_DVEC2: in getFunctionObject()
14076 case Utils::VARIABLE_TYPE_DVEC3: in getFunctionObject()
14079 case Utils::VARIABLE_TYPE_DVEC4: in getFunctionObject()
14092 case Utils::VARIABLE_TYPE_DMAT2: in getFunctionObject()
14094 case Utils::VARIABLE_TYPE_DMAT3: in getFunctionObject()
14096 case Utils::VARIABLE_TYPE_DMAT4: in getFunctionObject()
14120 case Utils::VARIABLE_TYPE_DVEC2: in getFunctionObject()
14123 case Utils::VARIABLE_TYPE_DVEC3: in getFunctionObject()
14126 case Utils::VARIABLE_TYPE_DVEC4: in getFunctionObject()
14139 case Utils::VARIABLE_TYPE_DVEC2: in getFunctionObject()
14142 case Utils::VARIABLE_TYPE_DVEC3: in getFunctionObject()
14145 case Utils::VARIABLE_TYPE_DVEC4: in getFunctionObject()
14158 case Utils::VARIABLE_TYPE_DVEC2: in getFunctionObject()
14161 case Utils::VARIABLE_TYPE_DVEC3: in getFunctionObject()
14164 case Utils::VARIABLE_TYPE_DVEC4: in getFunctionObject()
14239 case Utils::VARIABLE_TYPE_DVEC2: in getFunctionObject()
14242 case Utils::VARIABLE_TYPE_DVEC3: in getFunctionObject()
14245 case Utils::VARIABLE_TYPE_DVEC4: in getFunctionObject()
14258 case Utils::VARIABLE_TYPE_DVEC2: in getFunctionObject()
14261 case Utils::VARIABLE_TYPE_DVEC3: in getFunctionObject()
14264 case Utils::VARIABLE_TYPE_DVEC4: in getFunctionObject()
14277 case Utils::VARIABLE_TYPE_DMAT2: in getFunctionObject()
14280 case Utils::VARIABLE_TYPE_DMAT2X3: in getFunctionObject()
14283 case Utils::VARIABLE_TYPE_DMAT2X4: in getFunctionObject()
14286 case Utils::VARIABLE_TYPE_DMAT3: in getFunctionObject()
14289 case Utils::VARIABLE_TYPE_DMAT3X2: in getFunctionObject()
14292 case Utils::VARIABLE_TYPE_DMAT3X4: in getFunctionObject()
14295 case Utils::VARIABLE_TYPE_DMAT4: in getFunctionObject()
14298 case Utils::VARIABLE_TYPE_DMAT4X2: in getFunctionObject()
14301 case Utils::VARIABLE_TYPE_DMAT4X3: in getFunctionObject()
14319 case Utils::VARIABLE_TYPE_DVEC2: in getFunctionObject()
14322 case Utils::VARIABLE_TYPE_DVEC3: in getFunctionObject()
14325 case Utils::VARIABLE_TYPE_DVEC4: in getFunctionObject()
14338 case Utils::VARIABLE_TYPE_DVEC2: in getFunctionObject()
14342 case Utils::VARIABLE_TYPE_DVEC3: in getFunctionObject()
14346 case Utils::VARIABLE_TYPE_DVEC4: in getFunctionObject()
14406 case Utils::VARIABLE_TYPE_DMAT2: in getFunctionObject()
14409 case Utils::VARIABLE_TYPE_DMAT2X3: in getFunctionObject()
14412 case Utils::VARIABLE_TYPE_DMAT2X4: in getFunctionObject()
14415 case Utils::VARIABLE_TYPE_DMAT3: in getFunctionObject()
14418 case Utils::VARIABLE_TYPE_DMAT3X2: in getFunctionObject()
14421 case Utils::VARIABLE_TYPE_DMAT3X4: in getFunctionObject()
14424 case Utils::VARIABLE_TYPE_DMAT4: in getFunctionObject()
14427 case Utils::VARIABLE_TYPE_DMAT4X2: in getFunctionObject()
14430 case Utils::VARIABLE_TYPE_DMAT4X3: in getFunctionObject()
14478 const Utils::_variable_type argument_type = function_object.getArgumentType(argument); in getUniformFunctionForDMat()
14483 case Utils::VARIABLE_TYPE_DMAT2: in getUniformFunctionForDMat()
14485 case Utils::VARIABLE_TYPE_DMAT2X3: in getUniformFunctionForDMat()
14487 case Utils::VARIABLE_TYPE_DMAT2X4: in getUniformFunctionForDMat()
14489 case Utils::VARIABLE_TYPE_DMAT3: in getUniformFunctionForDMat()
14491 case Utils::VARIABLE_TYPE_DMAT3X2: in getUniformFunctionForDMat()
14493 case Utils::VARIABLE_TYPE_DMAT3X4: in getUniformFunctionForDMat()
14495 case Utils::VARIABLE_TYPE_DMAT4: in getUniformFunctionForDMat()
14497 case Utils::VARIABLE_TYPE_DMAT4X2: in getUniformFunctionForDMat()
14499 case Utils::VARIABLE_TYPE_DMAT4X3: in getUniformFunctionForDMat()
14519 const Utils::_variable_type argument_type = function_object.getArgumentType(argument); in getUniformFunctionForDVec()
14524 case Utils::VARIABLE_TYPE_DOUBLE: in getUniformFunctionForDVec()
14526 case Utils::VARIABLE_TYPE_DVEC2: in getUniformFunctionForDVec()
14528 case Utils::VARIABLE_TYPE_DVEC3: in getUniformFunctionForDVec()
14530 case Utils::VARIABLE_TYPE_DVEC4: in getUniformFunctionForDVec()
14549 const Utils::_variable_type argument_type = function_object.getArgumentType(argument); in getUniformFunctionForIVec()
14554 case Utils::VARIABLE_TYPE_INT: in getUniformFunctionForIVec()
14556 case Utils::VARIABLE_TYPE_IVEC2: in getUniformFunctionForIVec()
14558 case Utils::VARIABLE_TYPE_IVEC3: in getUniformFunctionForIVec()
14560 case Utils::VARIABLE_TYPE_IVEC4: in getUniformFunctionForIVec()
14579 const Utils::_variable_type argument_type = function_object.getArgumentType(argument); in getUniformFunctionForUVec()
14584 case Utils::VARIABLE_TYPE_UVEC2: in getUniformFunctionForUVec()
14728 Utils::_variable_type type) const in logVariableType()
14730 const Utils::_variable_type base_type = Utils::getBaseVariableType(type); in logVariableType()
14731 const glw::GLuint n_components = Utils::getNumberOfComponentsForVariableType(type); in logVariableType()
14734 message << name << " (" << Utils::getVariableTypeString(type) << ") ["; in logVariableType()
14745 case Utils::VARIABLE_TYPE_DOUBLE: in logVariableType()
14748 case Utils::VARIABLE_TYPE_INT: in logVariableType()
14751 case Utils::VARIABLE_TYPE_UINT: in logVariableType()
14795 …const Utils::_variable_type base_arg_type = Utils::getBaseVariableType(function_object.getArgument… in prepareComponents()
14864 case Utils::VARIABLE_TYPE_DOUBLE: in prepareComponents()
14890 case Utils::VARIABLE_TYPE_INT: in prepareComponents()
14904 case Utils::VARIABLE_TYPE_UINT: in prepareComponents()
14929 void BuiltinFunctionTest::prepareProgram(const functionObject& function_object, Utils::programInfo&… in prepareProgram()
15008 std::string result_type = Utils::getVariableTypeString(function_object.getResultType(0)); in prepareVertexShaderCode()
15016 Utils::_variable_type argument_type = function_object.getArgumentType(argument); in prepareVertexShaderCode()
15018 std::string uniform_type = Utils::getVariableTypeString(argument_type); in prepareVertexShaderCode()
15020 Utils::replaceToken(argument_definition_token, search_position, argument_definition, string); in prepareVertexShaderCode()
15024 Utils::replaceToken(uniform_type_token, search_position, uniform_type.c_str(), string); in prepareVertexShaderCode()
15025 Utils::replaceToken(uniform_name_token, search_position, uniform_name, string); in prepareVertexShaderCode()
15029 Utils::replaceToken(argument_definition_token, search_position, "", string); in prepareVertexShaderCode()
15034 Utils::_variable_type variable_type = function_object.getResultType(result); in prepareVertexShaderCode()
15036 std::string varying_type = Utils::getVariableTypeString(variable_type); in prepareVertexShaderCode()
15038 Utils::replaceToken(result_definition_token, search_position, result_definition, string); in prepareVertexShaderCode()
15042 Utils::replaceToken(result_type_token, search_position, varying_type.c_str(), string); in prepareVertexShaderCode()
15043 Utils::replaceToken(result_name_token, search_position, varying_name, string); in prepareVertexShaderCode()
15047 Utils::replaceToken(result_definition_token, search_position, "", string); in prepareVertexShaderCode()
15050 Utils::replaceToken(result_name_token, search_position, getVaryingName(0), string); in prepareVertexShaderCode()
15053 Utils::replaceToken(result_type_token, search_position, result_type.c_str(), string); in prepareVertexShaderCode()
15056 Utils::replaceToken(function_name_token, search_position, function_object.getName(), string); in prepareVertexShaderCode()
15065 Utils::replaceToken(argument_token, search_position, first_argument, string); in prepareVertexShaderCode()
15069 Utils::replaceToken(argument_token, search_position, argument_str, string); in prepareVertexShaderCode()
15074 Utils::replaceToken(uniform_name_token, search_position, uniform_name, string); in prepareVertexShaderCode()
15081 Utils::replaceToken(argument_token, search_position, argument_str, string); in prepareVertexShaderCode()
15085 Utils::replaceToken(uniform_name_token, search_position, varying_name, string); in prepareVertexShaderCode()
15089 Utils::replaceToken(argument_token, search_position, "", string); in prepareVertexShaderCode()
15111 Utils::programInfo program(m_context); in test()
15179 const Utils::_variable_type argument_type = function_object.getArgumentType(argument); in testBegin()
15180 const glw::GLuint n_columns = Utils::getNumberOfColumnsForVariableType(argument_type); in testBegin()
15194 switch (Utils::getBaseVariableType(argument_type)) in testBegin()
15196 case Utils::VARIABLE_TYPE_DOUBLE: in testBegin()
15203 case Utils::VARIABLE_TYPE_UINT: in testBegin()
15210 case Utils::VARIABLE_TYPE_INT: in testBegin()
15254 const Utils::_variable_type result_type, in isResultEdgeCase()
15282 const glw::GLuint n_components = Utils::getNumberOfComponentsForVariableType(result_type); in isResultEdgeCase()
15332 const Utils::_variable_type result_type = function_object.getResultType(result); in verifyResults()
15365 const Utils::_variable_type result_type = function_object.getResultType(result); in verifyResults()