Lines Matching refs:reference
998 const glw::GLint reference = expected ? 1 : 0;
999 if (state.getIntAccess() != reference)
1002 buf << "Expected " << reference << ", got " << state.getIntAccess();
1010 const glw::GLint64 reference = expected ? 1 : 0;
1011 if (state.getInt64Access() != reference)
1014 buf << "Expected " << reference << ", got " << state.getInt64Access();
1022 const glw::GLfloat reference = expected ? 1.0f : 0.0f;
1023 if (state.getFloatAccess() != reference)
1026 buf << "Expected " << reference << ", got " << state.getFloatAccess();
1044 const bool reference = (expected != 0);
1045 if (state.getBoolAccess() != reference)
1048 buf << "Expected " << glu::getBooleanStr(mapBoolToGLBoolean(reference)) << ", got " << glu::getBooleanStr(mapBoolToGLBoolean(state.getBoolAccess()));
1056 const glw::GLint reference = expected;
1057 if (state.getIntAccess() != reference)
1060 buf << "Expected " << reference << "(" << de::toString(tcu::Format::Hex<8>(reference))
1069 const glw::GLint64 reference = (glw::GLint64)expected;
1070 if (state.getInt64Access() != reference)
1073 buf << "Expected " << reference << "(" << de::toString(tcu::Format::Hex<8>(reference)) << "), got "
1103 const glw::GLuint reference = (glw::GLuint)expected;
1104 if (state.getUintAccess() != reference)
1107 buf << "Expected " << reference << "(" << de::toString(tcu::Format::Hex<8>(reference)) << "), got "
1234 const bool reference = (expected != 0.0f);
1236 if (state.getBoolAccess() != reference)
1239 buf << "Expected " << glu::getBooleanStr(mapBoolToGLBoolean(reference)) << ", got " << glu::getBooleanStr(mapBoolToGLBoolean(state.getBoolAccess()));
1537 const glw::GLfloat reference[4] =
1545 if (state.getFloatVec4Access()[0] != reference[0] ||
1546 state.getFloatVec4Access()[1] != reference[1] ||
1547 state.getFloatVec4Access()[2] != reference[2] ||
1548 state.getFloatVec4Access()[3] != reference[3])
1551 buf << "Expected " << reference << ", got " << tcu::formatArray(state.getFloatVec4Access());
1558 const glw::GLint reference[4] =
1566 if (state.getIntVec4Access()[0] != reference[0] ||
1567 state.getIntVec4Access()[1] != reference[1] ||
1568 state.getIntVec4Access()[2] != reference[2] ||
1569 state.getIntVec4Access()[3] != reference[3])
1572 buf << "Expected " << reference << ", got " << tcu::formatArray(state.getIntVec4Access());
1579 const glw::GLint64 reference[4] =
1587 if (state.getInt64Vec4Access()[0] != reference[0] ||
1588 state.getInt64Vec4Access()[1] != reference[1] ||
1589 state.getInt64Vec4Access()[2] != reference[2] ||
1590 state.getInt64Vec4Access()[3] != reference[3])
1593 buf << "Expected " << reference << ", got " << tcu::formatArray(state.getInt64Vec4Access());
1600 const glw::GLuint reference[4] =
1608 if (state.getUintVec4Access()[0] != reference[0] ||
1609 state.getUintVec4Access()[1] != reference[1] ||
1610 state.getUintVec4Access()[2] != reference[2] ||
1611 state.getUintVec4Access()[3] != reference[3])
1614 buf << "Expected " << reference << ", got " << tcu::formatArray(state.getUintVec4Access());
1746 const tcu::Vec4 reference (normalizeI32Float(expected[0]),
1750 const tcu::Vec4 validHigh (de::min( 1.0f, reference[0] + normalizationError),
1751 de::min( 1.0f, reference[1] + normalizationError),
1752 de::min( 1.0f, reference[2] + normalizationError),
1753 de::min( 1.0f, reference[3] + normalizationError));
1754 const tcu::Vec4 validLow (de::max(-1.0f, reference[0] - normalizationError),
1755 de::max(-1.0f, reference[1] - normalizationError),
1756 de::max(-1.0f, reference[2] - normalizationError),
1757 de::max(-1.0f, reference[3] - normalizationError));
1916 void verifyStateFloat (tcu::ResultCollector& result, glu::CallLogWrapper& gl, glw::GLenum target, float reference, QueryType type)
1923 verifyFloat(result, state, reference);