Lines Matching refs:test_case
7280 * @param test_case Test case descriptor to use.
7285 bool GPUShaderFP64Test5::executeIteration(const _test_case& test_case)
7292 Utils::_variable_type base_value_type = Utils::getBaseVariableType(test_case.src_type);
7393 result &= verifyXFBData((const unsigned char*)xfb_data_ptr, test_case);
7591 * @param test_case Descriptor to use for the query.
7595 std::string GPUShaderFP64Test5::getVertexShaderBody(const _test_case& test_case)
7598 const std::string base_type_string = Utils::getVariableTypeString(Utils::getBaseVariableType(test_case.src_type));
7599 const std::string dst_type_string = Utils::getVariableTypeString(test_case.dst_type);
7600 const unsigned int n_dst_components = Utils::getNumberOfComponentsForVariableType(test_case.dst_type);
7601 const unsigned int n_src_components = Utils::getNumberOfComponentsForVariableType(test_case.src_type);
7602 const std::string src_type_string = Utils::getVariableTypeString(test_case.src_type);
7610 if (test_case.dst_type == Utils::VARIABLE_TYPE_BOOL)
7620 if (test_case.src_type == Utils::VARIABLE_TYPE_BOOL)
7640 if (test_case.src_type == Utils::VARIABLE_TYPE_BOOL)
7649 if (test_case.src_type != Utils::VARIABLE_TYPE_BOOL)
7671 if (test_case.dst_type == Utils::VARIABLE_TYPE_BOOL)
7674 if (test_case.type == TEST_CASE_TYPE_EXPLICIT)
7685 if (test_case.type == TEST_CASE_TYPE_EXPLICIT)
7695 if (n_src_components > 1 && !Utils::isMatrixVariableType(test_case.src_type))
7727 * @param test_case Descriptor to use for the iteration.
7729 void GPUShaderFP64Test5::initIteration(_test_case& test_case)
7741 std::string body = getVertexShaderBody(test_case);
7748 test_case.shader_body = body;
7909 _test_case& test_case = test_cases[n_test_case];
7912 initIteration(test_case);
7915 m_has_test_passed &= executeIteration(test_case);
7938 * @param test_case Descriptor of the test case, for which the vertex shader was
7943 bool GPUShaderFP64Test5::verifyXFBData(const unsigned char* data_ptr, const _test_case& test_case)
7945 const Utils::_variable_type base_dst_type = Utils::getBaseVariableType(test_case.dst_type);
7946 const Utils::_variable_type base_src_type = Utils::getBaseVariableType(test_case.src_type);
7949 const unsigned int n_result_components = Utils::getNumberOfComponentsForVariableType(test_case.dst_type);
7950 const unsigned int n_src_components = Utils::getNumberOfComponentsForVariableType(test_case.src_type);
7956 if (!Utils::isMatrixVariableType(test_case.src_type))
8001 << ((test_case.type == TEST_CASE_TYPE_EXPLICIT) ? "explicit" : "implicit")
8002 << " cast from GLSL type [" << Utils::getVariableTypeString(test_case.src_type)
8009 << Utils::getVariableTypeString(test_case.dst_type) << "]"
8015 << test_case.shader_body.c_str() << tcu::TestLog::EndMessage;
8058 << ((test_case.type == TEST_CASE_TYPE_EXPLICIT) ? "explicit" : "implicit")
8059 << " cast from GLSL type [" << Utils::getVariableTypeString(test_case.src_type)
8066 << Utils::getVariableTypeString(test_case.dst_type) << "]"
8072 << test_case.shader_body.c_str() << tcu::TestLog::EndMessage;
8104 << ((test_case.type == TEST_CASE_TYPE_EXPLICIT) ? "explicit" : "implicit")
8105 << " cast from GLSL type [" << Utils::getVariableTypeString(test_case.src_type)
8112 << Utils::getVariableTypeString(test_case.dst_type) << "]"
8118 << test_case.shader_body.c_str() << tcu::TestLog::EndMessage;
8143 << ((test_case.type == TEST_CASE_TYPE_EXPLICIT) ? "explicit" : "implicit")
8144 << " cast from GLSL type [" << Utils::getVariableTypeString(test_case.src_type)
8151 << Utils::getVariableTypeString(test_case.dst_type) << "]"
8157 << test_case.shader_body.c_str() << tcu::TestLog::EndMessage;
8169 } /* switch (test_case.dst_type) */
8248 * @param test_case Test case descriptor.
8252 bool GPUShaderFP64Test6::executeIteration(const _test_case& test_case)
8286 stage_body = test_case.cs_shader_body.c_str();
8291 stage_body = test_case.fs_shader_body.c_str();
8296 stage_body = test_case.gs_shader_body.c_str();
8301 stage_body = test_case.tc_shader_body.c_str();
8306 stage_body = test_case.te_shader_body.c_str();
8311 stage_body = test_case.vs_shader_body.c_str();
8337 * @param test_case Test case descriptor to use.
8341 std::string GPUShaderFP64Test6::getComputeShaderBody(const _test_case& test_case)
8355 result_sstream << Utils::getVariableTypeString(test_case.src_type) << " src";
8357 if (test_case.src_array_size > 1)
8359 result_sstream << "[" << test_case.src_array_size << "]";
8364 if (test_case.wrap_dst_type_in_structure)
8368 << Utils::getVariableTypeString(test_case.dst_type) << " member";
8372 result_sstream << Utils::getVariableTypeString(test_case.dst_type) << " dst";
8377 if (test_case.wrap_dst_type_in_structure)
8393 * @param test_case Test case descriptor to use.
8397 std::string GPUShaderFP64Test6::getFragmentShaderBody(const _test_case& test_case)
8408 result_sstream << Utils::getVariableTypeString(test_case.src_type) << " src";
8410 if (test_case.src_array_size > 1)
8412 result_sstream << "[" << test_case.src_array_size << "]";
8417 if (test_case.wrap_dst_type_in_structure)
8421 << Utils::getVariableTypeString(test_case.dst_type) << " member";
8425 result_sstream << Utils::getVariableTypeString(test_case.dst_type) << " dst";
8430 if (test_case.wrap_dst_type_in_structure)
8446 * @param test_case Test case descriptor to use.
8450 std::string GPUShaderFP64Test6::getGeometryShaderBody(const _test_case& test_case)
8464 result_sstream << Utils::getVariableTypeString(test_case.src_type) << " src";
8466 if (test_case.src_array_size > 1)
8468 result_sstream << "[" << test_case.src_array_size << "]";
8473 if (test_case.wrap_dst_type_in_structure)
8477 << Utils::getVariableTypeString(test_case.dst_type) << " member";
8481 result_sstream << Utils::getVariableTypeString(test_case.dst_type) << " dst";
8487 if (test_case.wrap_dst_type_in_structure)
8503 * @param test_case Test case descriptor to use.
8507 std::string GPUShaderFP64Test6::getTessellationControlShaderBody(const _test_case& test_case)
8520 result_sstream << Utils::getVariableTypeString(test_case.src_type) << " src";
8522 if (test_case.src_array_size > 1)
8524 result_sstream << "[" << test_case.src_array_size << "]";
8529 if (test_case.wrap_dst_type_in_structure)
8533 << Utils::getVariableTypeString(test_case.dst_type) << " member";
8537 result_sstream << Utils::getVariableTypeString(test_case.dst_type) << " dst";
8540 if (test_case.wrap_dst_type_in_structure)
8563 * @param test_case Test case descriptor to use.
8567 std::string GPUShaderFP64Test6::getTessellationEvaluationShaderBody(const _test_case& test_case)
8580 result_sstream << Utils::getVariableTypeString(test_case.src_type) << " src";
8582 if (test_case.src_array_size > 1)
8584 result_sstream << "[" << test_case.src_array_size << "]";
8589 if (test_case.wrap_dst_type_in_structure)
8593 << Utils::getVariableTypeString(test_case.dst_type) << " member";
8597 result_sstream << Utils::getVariableTypeString(test_case.dst_type) << " dst";
8600 if (test_case.wrap_dst_type_in_structure)
8623 * @param test_case Test case descriptor to use.
8627 std::string GPUShaderFP64Test6::getVertexShaderBody(const _test_case& test_case)
8638 result_sstream << Utils::getVariableTypeString(test_case.src_type) << " src";
8640 if (test_case.src_array_size > 1)
8642 result_sstream << "[" << test_case.src_array_size << "]";
8647 if (test_case.wrap_dst_type_in_structure)
8651 << Utils::getVariableTypeString(test_case.dst_type) << " member";
8655 result_sstream << Utils::getVariableTypeString(test_case.dst_type) << " dst";
8658 if (test_case.wrap_dst_type_in_structure)
8701 * @param test_case Test case descriptor to generate the shader bodies for.
8703 void GPUShaderFP64Test6::initIteration(_test_case& test_case)
8707 test_case.cs_shader_body = getComputeShaderBody(test_case);
8708 test_case.fs_shader_body = getFragmentShaderBody(test_case);
8709 test_case.gs_shader_body = getGeometryShaderBody(test_case);
8710 test_case.tc_shader_body = getTessellationControlShaderBody(test_case);
8711 test_case.te_shader_body = getTessellationEvaluationShaderBody(test_case);
8712 test_case.vs_shader_body = getVertexShaderBody(test_case);
8715 const char* cs_body_raw_ptr = test_case.cs_shader_body.c_str();
8716 const char* fs_body_raw_ptr = test_case.fs_shader_body.c_str();
8717 const char* gs_body_raw_ptr = test_case.gs_shader_body.c_str();
8718 const char* tc_body_raw_ptr = test_case.tc_shader_body.c_str();
8719 const char* te_body_raw_ptr = test_case.te_shader_body.c_str();
8720 const char* vs_body_raw_ptr = test_case.vs_shader_body.c_str();
8802 _test_case& test_case = test_cases[n_test_case];
8805 initIteration(test_case);
8808 m_has_test_passed &= executeIteration(test_case);
10442 * @param test_case Test case descriptor.
10446 bool GPUShaderFP64Test8::executeIteration(const _test_case& test_case)
10480 stage_body = test_case.cs_shader_body.c_str();
10485 stage_body = test_case.fs_shader_body.c_str();
10490 stage_body = test_case.gs_shader_body.c_str();
10495 stage_body = test_case.tc_shader_body.c_str();
10500 stage_body = test_case.te_shader_body.c_str();
10505 stage_body = test_case.vs_shader_body.c_str();
10698 * @param test_case Test case descriptor to use.
10702 std::string GPUShaderFP64Test8::getComputeShaderBody(const _test_case& test_case)
10714 << getGeneralBody(test_case) << "}\n";
10723 * @param test_case Test case descriptor to use.
10727 std::string GPUShaderFP64Test8::getFragmentShaderBody(const _test_case& test_case)
10736 << getGeneralBody(test_case) << "}\n"
10746 * @param test_case Test case descriptor to use for the query.
10750 std::string GPUShaderFP64Test8::getGeneralBody(const _test_case& test_case)
10755 std::string variable_type_string = Utils::getVariableTypeString(test_case.type);
10759 for (_argument_list_const_iterator argument_list_iterator = test_case.argument_list.begin();
10760 argument_list_iterator != test_case.argument_list.end(); argument_list_iterator++)
10766 if (argument_list_iterator != test_case.argument_list.begin())
10794 * @param test_case Test case descriptor to use.
10798 std::string GPUShaderFP64Test8::getGeometryShaderBody(const _test_case& test_case)
10810 << getGeneralBody(test_case) << "}\n"
10820 * @param test_case Test case descriptor to use.
10824 std::string GPUShaderFP64Test8::getTessellationControlShaderBody(const _test_case& test_case)
10835 << getGeneralBody(test_case) << "}\n"
10845 * @param test_case Test case descriptor to use.
10849 std::string GPUShaderFP64Test8::getTessellationEvaluationShaderBody(const _test_case& test_case)
10860 << getGeneralBody(test_case) << "}\n"
10870 * @param test_case Test case descriptor to use.
10874 std::string GPUShaderFP64Test8::getVertexShaderBody(const _test_case& test_case)
10883 << getGeneralBody(test_case) << "}\n"
10914 * @param test_case Test case descriptor to generate the shader bodies for.
10916 void GPUShaderFP64Test8::initIteration(_test_case& test_case)
10920 test_case.cs_shader_body = getComputeShaderBody(test_case);
10921 test_case.fs_shader_body = getFragmentShaderBody(test_case);
10922 test_case.gs_shader_body = getGeometryShaderBody(test_case);
10923 test_case.tc_shader_body = getTessellationControlShaderBody(test_case);
10924 test_case.te_shader_body = getTessellationEvaluationShaderBody(test_case);
10925 test_case.vs_shader_body = getVertexShaderBody(test_case);
10928 const char* cs_body_raw_ptr = test_case.cs_shader_body.c_str();
10929 const char* fs_body_raw_ptr = test_case.fs_shader_body.c_str();
10930 const char* gs_body_raw_ptr = test_case.gs_shader_body.c_str();
10931 const char* tc_body_raw_ptr = test_case.tc_shader_body.c_str();
10932 const char* te_body_raw_ptr = test_case.te_shader_body.c_str();
10933 const char* vs_body_raw_ptr = test_case.vs_shader_body.c_str();
10985 _test_case test_case;
10987 test_case.argument_list = *argument_list_iterator;
10988 test_case.type = variable_type;
10991 initIteration(test_case);
10994 m_has_test_passed &= executeIteration(test_case);
11067 * @param test_case Test case descriptor.
11071 bool GPUShaderFP64Test9::executeTestIteration(const _test_case& test_case)
11095 result = verifyXFBData(test_case, (const unsigned char*)xfb_data_ptr);
11385 * @param test_case Test case descriptor.
11389 std::string GPUShaderFP64Test9::getVertexShaderBody(_test_case& test_case)
11392 std::string result_variable_type_string = Utils::getVariableTypeString(test_case.variable_type);
11393 std::string variable_type_fp_string = Utils::getFPVariableTypeStringForVariableType(test_case.variable_type);
11394 std::string variable_type_string = Utils::getVariableTypeString(test_case.variable_type);
11395 const unsigned int n_variable_components = Utils::getNumberOfComponentsForVariableType(test_case.variable_type);
11400 if (test_case.operation_type == OPERATION_TYPE_MULTIPLICATION &&
11401 Utils::isMatrixVariableType(test_case.variable_type))
11405 Utils::getTransposedMatrixVariableType(test_case.variable_type);
11408 Utils::getPostMatrixMultiplicationVariableType(test_case.variable_type, transposed_matrix_variable_type);
11411 test_case.result_variable_type = result_variable_type;
11446 Utils::_variable_type compatible_variable_type = test_case.variable_type;
11449 test_case.operation_type == OPERATION_TYPE_MULTIPLICATION)
11480 if (test_case.operation_type == OPERATION_TYPE_PRE_DECREMENTATION ||
11481 test_case.operation_type == OPERATION_TYPE_PRE_INCREMENTATION)
11483 result_sstream << getOperatorForOperationType(test_case.operation_type);
11488 if (test_case.operation_type == OPERATION_TYPE_PRE_DECREMENTATION ||
11489 test_case.operation_type == OPERATION_TYPE_PRE_INCREMENTATION ||
11490 test_case.operation_type == OPERATION_TYPE_POST_DECREMENTATION ||
11491 test_case.operation_type == OPERATION_TYPE_POST_INCREMENTATION)
11493 if (test_case.operation_type == OPERATION_TYPE_POST_DECREMENTATION ||
11494 test_case.operation_type == OPERATION_TYPE_POST_INCREMENTATION)
11496 result_sstream << getOperatorForOperationType(test_case.operation_type);
11501 result_sstream << getOperatorForOperationType(test_case.operation_type) << " reference2";
11506 if (Utils::isScalarVariableType(test_case.variable_type))
11574 * @param test_case Test case descriptor to use for the initialization.
11576 void GPUShaderFP64Test9::initTestIteration(_test_case& test_case)
11579 std::string vs_body = getVertexShaderBody(test_case);
11583 test_case.vs_body = vs_body;
11625 Utils::getNumberOfComponentsForVariableType(test_case.result_variable_type) * sizeof(double));
11667 _test_case test_case;
11669 test_case.operation_type = operation_type;
11670 test_case.result_variable_type = variable_type;
11671 test_case.variable_type = variable_type;
11674 initTestIteration(test_case);
11676 m_has_test_passed &= executeTestIteration(test_case);
11696 * @param test_case Test case descriptor
11702 bool GPUShaderFP64Test9::verifyXFBData(const _test_case& test_case, const unsigned char* xfb_data)
11706 Utils::getNumberOfComponentsForVariableType(test_case.result_variable_type);
11719 if (test_case.operation_type == OPERATION_TYPE_PRE_INCREMENTATION ||
11720 test_case.operation_type == OPERATION_TYPE_POST_INCREMENTATION)
11724 else if (test_case.operation_type == OPERATION_TYPE_PRE_DECREMENTATION ||
11725 test_case.operation_type == OPERATION_TYPE_POST_DECREMENTATION)
11734 if (Utils::isMatrixVariableType(test_case.variable_type))
11739 const Utils::_variable_type matrix_a_type = test_case.variable_type;
11740 const Utils::_variable_type matrix_b_type = Utils::getTransposedMatrixVariableType(test_case.variable_type);
11753 } /* if (Utils::isMatrixVariableType(test_case.variable_type) */
11765 if (test_case.operation_type == OPERATION_TYPE_MULTIPLICATION &&
11766 Utils::isMatrixVariableType(test_case.variable_type))
11770 Utils::_variable_type matrix_a_type = test_case.variable_type;
11771 Utils::_variable_type matrix_b_type = Utils::getTransposedMatrixVariableType(test_case.variable_type);
11824 switch (test_case.operation_type)
11859 } /* switch (test_case.operation_type) */
11863 std::string operation_type_string = getOperationTypeString(test_case.operation_type);
11864 std::string variable_type_string = Utils::getVariableTypeString(test_case.variable_type);
11880 if (Utils::isScalarVariableType(test_case.variable_type))
11892 std::string operation_type_string = getOperationTypeString(test_case.operation_type);
11893 std::string variable_type_string = Utils::getVariableTypeString(test_case.variable_type);
11911 std::string operation_type_string = getOperationTypeString(test_case.operation_type);
11912 std::string variable_type_string = Utils::getVariableTypeString(test_case.variable_type);
11930 std::string operation_type_string = getOperationTypeString(test_case.operation_type);
11931 std::string variable_type_string = Utils::getVariableTypeString(test_case.variable_type);
11949 std::string operation_type_string = getOperationTypeString(test_case.operation_type);
11950 std::string variable_type_string = Utils::getVariableTypeString(test_case.variable_type);
11965 } /* if (Utils::isScalarVariableType(test_case.variable_type) ) */
11972 std::string operation_type_string = getOperationTypeString(test_case.operation_type);
11973 std::string variable_type_string = Utils::getVariableTypeString(test_case.variable_type);