Lines Matching defs:expected

380 	bool ValidateReadBuffer(int x, int y, int w, int h, const vec3& expected)
396 if (!ColorEqual(display[j * w + i], expected, g_color_eps))
401 << ") should be (" << expected[0] << " " << expected[1] << " " << expected[2] << ")."
838 bool Check(GLenum e, GLuint expected)
853 if (static_cast<GLuint>(i) != expected)
855 if (static_cast<GLuint>(i64) != expected)
857 if (static_cast<GLuint>(f) != expected)
859 if (static_cast<GLuint>(d) != expected)
861 if (b != (expected != 0 ? GL_TRUE : GL_FALSE))
867 << " should be " << expected << tcu::TestLog::EndMessage;
872 bool CheckIndexed(GLenum e, GLuint index, GLuint expected)
887 if (static_cast<GLuint>(i) != expected)
889 if (static_cast<GLuint>(i64) != expected)
891 if (static_cast<GLuint>(f) != expected)
893 if (static_cast<GLuint>(d) != expected)
895 if (b != (expected != 0 ? GL_TRUE : GL_FALSE))
901 << " is " << i << " should be " << expected << tcu::TestLog::EndMessage;
3990 /* expected output */
4106 /* expected output */
4578 virtual const char* GetInput(std::vector<float>& in, std::vector<float>& expected) = 0;
4598 std::vector<float> expected;
4599 const char* glsl_vs = GetInput(in, expected);
4610 std::vector<float> zero(expected.size());
4612 glBufferData(GL_SHADER_STORAGE_BUFFER, (GLsizeiptr)(expected.size() * sizeof(float)), &zero[0],
4626 std::vector<float> out_data(expected.size());
4634 if (!Equal(expected[i], out_data[i]))
4638 << " should be " << expected[i] << tcu::TestLog::EndMessage;
4663 virtual const char* GetInput(std::vector<float>& in, std::vector<float>& expected) = 0;
4680 std::vector<float> expected;
4682 ss << "layout(local_size_x = 1) in;\n" << GetInput(in, expected);
4692 std::vector<float> zero(expected.size());
4694 glBufferData(GL_SHADER_STORAGE_BUFFER, (GLsizeiptr)(expected.size() * sizeof(float)), &zero[0],
4707 (GLsizeiptr)(expected.size() * sizeof(float)), GL_MAP_READ_BIT);
4712 for (size_t i = 0; i < expected.size(); ++i)
4714 if (!Equal(expected[i], out_data[i]))
4718 << " should be " << expected[i] << tcu::TestLog::EndMessage;
4739 const char* GetInputM1(std::vector<float>& in, std::vector<float>& expected)
4750 expected.resize(4);
4751 expected[0] = 7.0f;
4752 expected[2] = 15.0f;
4753 expected[1] = 10.0f;
4754 expected[3] = 22.0f;
4763 virtual const char* GetInput(std::vector<float>& in, std::vector<float>& expected)
4765 return GetInputM1(in, expected);
4771 virtual const char* GetInput(std::vector<float>& in, std::vector<float>& expected)
4773 return GetInputM1(in, expected);
4780 const char* GetInputM2(std::vector<float>& in, std::vector<float>& expected)
4783 expected.resize(4);
4799 expected[0] = 22.0f;
4800 expected[2] = 49.0f;
4801 expected[1] = 28.0f;
4802 expected[3] = 64.0f;
4812 virtual const char* GetInput(std::vector<float>& in, std::vector<float>& expected)
4814 return GetInputM2(in, expected);
4820 virtual const char* GetInput(std::vector<float>& in, std::vector<float>& expected)
4822 return GetInputM2(in, expected);
4829 const char* GetInputM3(std::vector<float>& in, std::vector<float>& expected)
4832 expected.resize(4);
4848 expected[0] = 22.0f;
4849 expected[1] = 49.0f;
4850 expected[2] = 28.0f;
4851 expected[3] = 64.0f;
4860 virtual const char* GetInput(std::vector<float>& in, std::vector<float>& expected)
4862 return GetInputM3(in, expected);
4868 virtual const char* GetInput(std::vector<float>& in, std::vector<float>& expected)
4870 return GetInputM3(in, expected);
4877 const char* GetInputM4(std::vector<float>& in, std::vector<float>& expected)
4880 expected.resize(4);
4896 expected[0] = 13.0f;
4897 expected[1] = 16.0f;
4898 expected[2] = 37.0f;
4899 expected[3] = 46.0f;
4909 virtual const char* GetInput(std::vector<float>& in, std::vector<float>& expected)
4911 return GetInputM4(in, expected);
4917 virtual const char* GetInput(std::vector<float>& in, std::vector<float>& expected)
4919 return GetInputM4(in, expected);
4926 const char* GetInputM5(std::vector<float>& in, std::vector<float>& expected)
4929 expected.resize(4);
4945 expected[0] = 13.0f;
4946 expected[1] = 37.0f;
4947 expected[2] = 16.0f;
4948 expected[3] = 46.0f;
4957 virtual const char* GetInput(std::vector<float>& in, std::vector<float>& expected)
4959 return GetInputM5(in, expected);
4965 virtual const char* GetInput(std::vector<float>& in, std::vector<float>& expected)
4967 return GetInputM5(in, expected);
4974 const char* GetInputM6(std::vector<float>& in, std::vector<float>& expected)
4977 expected.resize(4);
4993 expected[0] = 22.0f;
4994 expected[1] = 28.0f;
4995 expected[2] = 49.0f;
4996 expected[3] = 64.0f;
5006 virtual const char* GetInput(std::vector<float>& in, std::vector<float>& expected)
5008 return GetInputM6(in, expected);
5014 virtual const char* GetInput(std::vector<float>& in, std::vector<float>& expected)
5016 return GetInputM6(in, expected);
5022 const char* GetInputM7(std::vector<float>& in, std::vector<float>& expected)
5025 expected.resize(4);
5041 expected[0] = 22.0f;
5042 expected[1] = 49.0f;
5043 expected[2] = 28.0f;
5044 expected[3] = 64.0f;
5053 virtual const char* GetInput(std::vector<float>& in, std::vector<float>& expected)
5055 return GetInputM7(in, expected);
5061 virtual const char* GetInput(std::vector<float>& in, std::vector<float>& expected)
5063 return GetInputM7(in, expected);
5501 GLuint expected[4] = { 0xff000000, 0x00ff0000, 0x0000ff00, 0x000000ff };
5502 if (out_data[0] != expected[0] || out_data[1] != expected[1] || out_data[2] != expected[2] ||
5503 out_data[3] != expected[3])
5508 << ", but expected: " << tcu::toHex(expected[0]) << ", " << tcu::toHex(expected[1]) << ", "
5509 << tcu::toHex(expected[2]) << ", " << tcu::toHex(expected[3]) << tcu::TestLog::EndMessage;
5525 if (out_data[0] != expected[0] || out_data[1] != expected[1] || out_data[2] != expected[2] ||
5526 out_data[3] != expected[3])
5531 << ", but expected: " << tcu::toHex(expected[0]) << ", " << tcu::toHex(expected[1]) << ", "
5532 << tcu::toHex(expected[2]) << ", " << tcu::toHex(expected[3]) << tcu::TestLog::EndMessage;
5757 GLuint expected[4] = { 0xff000000, 0x00ff0000, 0x0000ff00, 0x000000ff };
5758 if (out_data[0] != expected[0] || out_data[1] != expected[1] || out_data[2] != expected[2] ||
5759 out_data[3] != expected[3])
5764 << ", but expected: " << tcu::toHex(expected[0]) << ", " << tcu::toHex(expected[1]) << ", "
5765 << tcu::toHex(expected[2]) << ", " << tcu::toHex(expected[3]) << tcu::TestLog::EndMessage;
6387 GLfloat expected[16 * 4 + 16 * 2] = {
6398 if (out_data[i * 4 + 0] != expected[i * 4 + 0] || out_data[i * 4 + 1] != expected[i * 4 + 1] ||
6399 out_data[i * 4 + 2] != expected[i * 4 + 2])
6403 << ", " << out_data[i * 4 + 2] << ", but expected: " << expected[i * 4 + 0] << ", "
6404 << expected[i * 4 + 1] << ", " << expected[i * 4 + 2] << tcu::TestLog::EndMessage;
6410 if (fabs(out_data[i * 2 + 0] - expected[i * 2 + 0]) > 1e-6 ||
6411 fabs(out_data[i * 2 + 1] - expected[i * 2 + 1]) > 1e-6)
6415 << ", but expected: " << expected[i * 2 + 0] << ", " << expected[i * 2 + 1]
6459 << ", " << out_data2[i * 4 + 2] << ", but expected: " << expected2[i * 4 + 0] << ", "
6471 << ", but expected: " << expected2[i * 2 + 0] << ", " << expected2[i * 2 + 1]
6713 const float* expected = &data[1][0];
6717 if (out_data[i * 4 + 0] != expected[0] || out_data[i * 4 + 1] != expected[1] ||
6718 out_data[i * 4 + 2] != expected[2])
6722 << ", " << out_data[i * 4 + 2] << ", but expected: " << expected[0] << ", " << expected[1] << ", "
6723 << expected[2] << tcu::TestLog::EndMessage;
6734 expected = &data[3][0];
6738 if (out_data[i * 4 + 0] != expected[0] || out_data[i * 4 + 1] != expected[1] ||
6739 out_data[i * 4 + 2] != expected[2])
6743 << ", " << out_data[i * 4 + 2] << ", but expected: " << expected[0] << ", " << expected[1] << ", "
6744 << expected[2] << tcu::TestLog::EndMessage;
6930 << ", but expected: " << data[i * 4] << " -> " << out_data[i * 4 + 1] << " -> "
6956 << ", but expected: " << data[i * 4] << tcu::TestLog::EndMessage;
8656 GLfloat expected[32] = { 32.0f, 33.0f, 34.0f, 0.0f, 39.0f, 39.0f, 36.0f, 0.0f,
8663 if (out_data[i] != expected[i])
8666 << ", but expected: " << expected[i] << tcu::TestLog::EndMessage;