Lines Matching defs:expected

981 void verifyBoolean (tcu::ResultCollector& result, QueriedState& state, bool expected)
987 if (state.getBoolAccess() != expected)
990 buf << "Expected " << glu::getBooleanStr(mapBoolToGLBoolean(expected)) << ", got " << glu::getBooleanStr(mapBoolToGLBoolean(state.getBoolAccess()));
998 const glw::GLint reference = expected ? 1 : 0;
1010 const glw::GLint64 reference = expected ? 1 : 0;
1022 const glw::GLfloat reference = expected ? 1.0f : 0.0f;
1038 void verifyInteger (tcu::ResultCollector& result, QueriedState& state, int expected)
1044 const bool reference = (expected != 0);
1056 const glw::GLint reference = expected;
1069 const glw::GLint64 reference = (glw::GLint64)expected;
1082 const glw::GLfloat refValueMin = deInt32ToFloatRoundToNegInf(expected);
1083 const glw::GLfloat refValueMax = deInt32ToFloatRoundToPosInf(expected);
1103 const glw::GLuint reference = (glw::GLuint)expected;
1228 void verifyFloat (tcu::ResultCollector& result, QueriedState& state, float expected)
1234 const bool reference = (expected != 0.0f);
1247 const glw::GLint refValueMin = roundGLfloatToNearestIntegerHalfDown<glw::GLint>(expected);
1248 const glw::GLint refValueMax = roundGLfloatToNearestIntegerHalfUp<glw::GLint>(expected);
1267 if (state.getFloatAccess() != expected)
1270 buf << "Expected " << expected << ", got " << state.getFloatAccess();
1278 const glw::GLint64 refValueMin = roundGLfloatToNearestIntegerHalfDown<glw::GLint64>(expected);
1279 const glw::GLint64 refValueMax = roundGLfloatToNearestIntegerHalfUp<glw::GLint64>(expected);
1298 const glw::GLuint refValueMin = roundGLfloatToNearestIntegerHalfDown<glw::GLuint>(expected);
1299 const glw::GLuint refValueMax = roundGLfloatToNearestIntegerHalfUp<glw::GLuint>(expected);
1329 result.fail("expected GL_TRUE, got GL_FALSE");
1383 result.fail("expected GL_TRUE, got GL_FALSE");
1430 void verifyIntegerVec3 (tcu::ResultCollector& result, QueriedState& state, const tcu::IVec3& expected)
1436 if (state.getIntVec3Access()[0] != expected[0] ||
1437 state.getIntVec3Access()[1] != expected[1] ||
1438 state.getIntVec3Access()[2] != expected[2])
1441 buf << "Expected " << expected << ", got " << tcu::formatArray(state.getIntVec3Access());
1453 void verifyIntegerVec4 (tcu::ResultCollector& result, QueriedState& state, const tcu::IVec4& expected)
1459 if (state.getIntVec4Access()[0] != expected[0] ||
1460 state.getIntVec4Access()[1] != expected[1] ||
1461 state.getIntVec4Access()[2] != expected[2] ||
1462 state.getIntVec4Access()[3] != expected[3])
1465 buf << "Expected " << expected << ", got " << tcu::formatArray(state.getIntVec4Access());
1477 void verifyUnsignedIntegerVec4 (tcu::ResultCollector& result, QueriedState& state, const tcu::UVec4& expected)
1483 if (state.getUintVec4Access()[0] != expected[0] ||
1484 state.getUintVec4Access()[1] != expected[1] ||
1485 state.getUintVec4Access()[2] != expected[2] ||
1486 state.getUintVec4Access()[3] != expected[3])
1489 buf << "Expected " << expected << ", got " << tcu::formatArray(state.getUintVec4Access());
1501 void verifyBooleanVec4 (tcu::ResultCollector& result, QueriedState& state, const tcu::BVec4& expected)
1509 mapBoolToGLBoolean(expected[0]),
1510 mapBoolToGLBoolean(expected[1]),
1511 mapBoolToGLBoolean(expected[2]),
1512 mapBoolToGLBoolean(expected[3])
1539 (expected[0] ? 1.0f : 0.0f),
1540 (expected[1] ? 1.0f : 0.0f),
1541 (expected[2] ? 1.0f : 0.0f),
1542 (expected[3] ? 1.0f : 0.0f)
1560 (expected[0] ? 1 : 0),
1561 (expected[1] ? 1 : 0),
1562 (expected[2] ? 1 : 0),
1563 (expected[3] ? 1 : 0)
1581 (expected[0] ? 1 : 0),
1582 (expected[1] ? 1 : 0),
1583 (expected[2] ? 1 : 0),
1584 (expected[3] ? 1 : 0)
1602 (expected[0] ? 1u : 0u),
1603 (expected[1] ? 1u : 0u),
1604 (expected[2] ? 1u : 0u),
1605 (expected[3] ? 1u : 0u)
1626 void verifyFloatVec4 (tcu::ResultCollector& result, QueriedState& state, const tcu::Vec4& expected)
1632 if (state.getFloatVec4Access()[0] != expected[0] ||
1633 state.getFloatVec4Access()[1] != expected[1] ||
1634 state.getFloatVec4Access()[2] != expected[2] ||
1635 state.getFloatVec4Access()[3] != expected[3])
1638 buf << "Expected " << expected << ", got " << tcu::formatArray(state.getFloatVec4Access());
1650 const glw::GLint refValueMin = roundGLfloatToNearestIntegerHalfDown<glw::GLint>(expected[ndx]);
1651 const glw::GLint refValueMax = roundGLfloatToNearestIntegerHalfUp<glw::GLint>(expected[ndx]);
1683 const glw::GLuint refValueMin = roundGLfloatToNearestIntegerHalfDown<glw::GLuint>(expected[ndx]);
1684 const glw::GLuint refValueMax = roundGLfloatToNearestIntegerHalfUp<glw::GLuint>(expected[ndx]);
1716 void verifyPointer (tcu::ResultCollector& result, QueriedState& state, const void* expected)
1722 if (state.getPtrAccess() != expected)
1725 buf << "Expected " << expected << ", got " << state.getPtrAccess();
1742 void verifyNormalizedI32Vec4 (tcu::ResultCollector& result, QueriedState& state, const tcu::IVec4& expected)
1746 const tcu::Vec4 reference (normalizeI32Float(expected[0]),
1747 normalizeI32Float(expected[1]),
1748 normalizeI32Float(expected[2]),
1749 normalizeI32Float(expected[3]));
1885 result.fail("expected equal results");
1892 result.fail("expected equal results");
1899 result.fail("expected equal results");
1906 result.fail("expected equal results");
1946 void verifyStatePointer (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target, const void* expected, QueryType type)
1953 verifyPointer(result, state, expected);
1956 void verifyStateIndexedBoolean (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target, int index, bool expected, QueryType type)
1963 verifyBoolean(result, state, expected);
1966 void verifyStateIndexedBooleanVec4 (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target, int index, const tcu::BVec4& expected, QueryType type)
1973 verifyBooleanVec4(result, state, expected);
1976 void verifyStateIndexedInteger (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target, int index, int expected, QueryType type)
1983 verifyInteger(result, state, expected);
1996 void verifyStateAttributeInteger (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target, int index, int expected, QueryType type)
2003 verifyInteger(result, state, expected);
2006 void verifyStateFramebufferInteger (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target, glw::GLenum pname, int expected, QueryType type)
2013 verifyInteger(result, state, expected);
2026 void verifyStateProgramInteger (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLuint program, glw::GLenum pname, int expected, QueryType type)
2033 verifyInteger(result, state, expected);
2036 void verifyStateProgramIntegerVec3 (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLuint program, glw::GLenum pname, const tcu::IVec3& expected, QueryType type)
2043 verifyIntegerVec3(result, state, expected);
2046 void verifyStatePipelineInteger (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLuint pipeline, glw::GLenum pname, int expected, QueryType type)
2053 verifyInteger(result, state, expected);
2056 void verifyStateTextureParamInteger (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target, glw::GLenum pname, int expected, QueryType type)
2063 verifyInteger(result, state, expected);
2066 void verifyStateTextureParamFloat (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target, glw::GLenum pname, float expected, QueryType type)
2073 verifyFloat(result, state, expected);
2076 void verifyStateTextureParamFloatVec4 (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target, glw::GLenum pname, const tcu::Vec4& expected, QueryType type)
2083 verifyFloatVec4(result, state, expected);
2086 void verifyStateTextureParamNormalizedI32Vec4 (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target, glw::GLenum pname, const tcu::IVec4& expected, QueryType type)
2093 verifyNormalizedI32Vec4(result, state, expected);
2096 void verifyStateTextureParamIntegerVec4 (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target, glw::GLenum pname, const tcu::IVec4& expected, QueryType type)
2103 verifyIntegerVec4(result, state, expected);
2106 void verifyStateTextureParamUnsignedIntegerVec4 (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target, glw::GLenum pname, const tcu::UVec4& expected, QueryType type)
2113 verifyUnsignedIntegerVec4(result, state, expected);
2116 void verifyStateTextureLevelInteger (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target, int level, glw::GLenum pname, int expected, QueryType type)
2123 verifyInteger(result, state, expected);
2126 void verifyStateObjectBoolean (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLuint handle, bool expected, QueryType type)
2133 verifyBoolean(result, state, expected);
2136 void verifyStateQueryInteger (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target, glw::GLenum pname, int expected, QueryType type)
2143 verifyInteger(result, state, expected);
2146 void verifyStateSamplerParamInteger (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLuint sampler, glw::GLenum pname, int expected, QueryType type)
2153 verifyInteger(result, state, expected);
2156 void verifyStateSamplerParamFloat (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLuint sampler, glw::GLenum pname, float expected, QueryType type)
2163 verifyFloat(result, state, expected);
2166 void verifyStateSamplerParamFloatVec4 (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLuint sampler, glw::GLenum pname, const tcu::Vec4& expected, QueryType type)
2173 verifyFloatVec4(result, state, expected);
2176 void verifyStateSamplerParamNormalizedI32Vec4 (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLuint sampler, glw::GLenum pname, const tcu::IVec4& expected, QueryType type)
2183 verifyNormalizedI32Vec4(result, state, expected);
2186 void verifyStateSamplerParamIntegerVec4 (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLuint sampler, glw::GLenum pname, const tcu::IVec4& expected, QueryType type)
2193 verifyIntegerVec4(result, state, expected);
2196 void verifyStateSamplerParamUnsignedIntegerVec4 (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLuint sampler, glw::GLenum pname, const tcu::UVec4& expected, QueryType type)
2203 verifyUnsignedIntegerVec4(result, state, expected);