Lines Matching refs:state

271 void queryState (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLenum target, QueriedState& state)
285 state = QueriedState(value == GL_TRUE);
302 state = QueriedState(value == GL_TRUE);
317 state = QueriedState(value);
332 state = QueriedState(value);
347 state = QueriedState(value);
357 void queryIndexedState (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLenum target, int index, QueriedState& state)
381 state = QueriedState(res);
398 state = QueriedState(value);
413 state = QueriedState(value);
427 state = QueriedState(value == GL_TRUE);
444 state = QueriedState(value == GL_TRUE);
459 state = QueriedState(value);
474 state = QueriedState(value);
484 void queryAttributeState (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLenum target, int index, QueriedState& state)
499 state = QueriedState(value);
513 state = QueriedState(value);
527 state = QueriedState(value);
541 state = QueriedState(value);
549 void queryFramebufferState (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLenum target, glw::GLenum pname, QueriedState& state)
564 state = QueriedState(value);
572 void queryProgramState (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLuint program, glw::GLenum pname, QueriedState& state)
587 state = QueriedState(value);
601 state = QueriedState(value);
609 void queryPipelineState (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLuint pipeline, glw::GLenum pname, QueriedState& state)
624 state = QueriedState(value);
632 void queryTextureParamState (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLenum target, glw::GLenum pname, QueriedState& state)
647 state = QueriedState(value);
661 state = QueriedState(value);
675 state = QueriedState(value);
689 state = QueriedState(value);
703 state = QueriedState(value);
717 state = QueriedState(value);
731 state = QueriedState(value);
745 state = QueriedState(value);
753 void queryTextureLevelState (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLenum target, int level, glw::GLenum pname, QueriedState& state)
768 state = QueriedState(value);
782 state = QueriedState(value);
790 void queryPointerState (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLenum pname, QueriedState& state)
805 state = QueriedState(value);
813 void queryObjectState (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLuint handle, QueriedState& state)
827 state = QueriedState(value == GL_TRUE);
835 void queryQueryState (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLenum target, glw::GLenum pname, QueriedState& state)
850 state = QueriedState(value);
858 void querySamplerState (tcu::ResultCollector& result, glu::CallLogWrapper& gl, QueryType type, glw::GLuint sampler, glw::GLenum pname, QueriedState& state)
873 state = QueriedState(value);
887 state = QueriedState(value);
901 state = QueriedState(value);
915 state = QueriedState(value);
929 state = QueriedState(value);
943 state = QueriedState(value);
957 state = QueriedState(value);
971 state = QueriedState(value);
981 void verifyBoolean (tcu::ResultCollector& result, QueriedState& state, bool expected)
983 switch (state.getType())
987 if (state.getBoolAccess() != expected)
990 buf << "Expected " << glu::getBooleanStr(mapBoolToGLBoolean(expected)) << ", got " << glu::getBooleanStr(mapBoolToGLBoolean(state.getBoolAccess()));
999 if (state.getIntAccess() != reference)
1002 buf << "Expected " << reference << ", got " << state.getIntAccess();
1011 if (state.getInt64Access() != reference)
1014 buf << "Expected " << reference << ", got " << state.getInt64Access();
1023 if (state.getFloatAccess() != reference)
1026 buf << "Expected " << reference << ", got " << state.getFloatAccess();
1038 void verifyInteger (tcu::ResultCollector& result, QueriedState& state, int expected)
1040 switch (state.getType())
1045 if (state.getBoolAccess() != reference)
1048 buf << "Expected " << glu::getBooleanStr(mapBoolToGLBoolean(reference)) << ", got " << glu::getBooleanStr(mapBoolToGLBoolean(state.getBoolAccess()));
1057 if (state.getIntAccess() != reference)
1061 << ") , got " << state.getIntAccess() << "(" << de::toString(tcu::Format::Hex<8>(state.getIntAccess())) << ")";
1070 if (state.getInt64Access() != reference)
1074 << state.getInt64Access() << "(" << de::toString(tcu::Format::Hex<8>(state.getInt64Access())) << ")";
1085 if (state.getFloatAccess() < refValueMin ||
1086 state.getFloatAccess() > refValueMax ||
1087 deIsNaN(state.getFloatAccess()))
1092 buf << "Expected " << refValueMin << ", got " << state.getFloatAccess();
1094 buf << "Expected in range [" << refValueMin << ", " << refValueMax << "], got " << state.getFloatAccess();
1104 if (state.getUintAccess() != reference)
1108 << state.getUintAccess() << "(" << de::toString(tcu::Format::Hex<8>(state.getUintAccess())) << ")";
1120 void verifyIntegerMin (tcu::ResultCollector& result, QueriedState& state, int minValue)
1122 switch (state.getType())
1126 if (minValue > 0 && state.getBoolAccess() != true)
1137 if (state.getIntAccess() < minValue)
1140 buf << "Expected greater or equal to " << minValue << ", got " << state.getIntAccess();
1148 if (state.getInt64Access() < minValue)
1151 buf << "Expected greater or equal to " << minValue << ", got " << state.getInt64Access();
1159 if (state.getFloatAccess() < deInt32ToFloatRoundToNegInf(minValue) || deIsNaN(state.getFloatAccess()))
1162 buf << "Expected greater or equal to " << minValue << ", got " << state.getFloatAccess();
1174 void verifyIntegerMax (tcu::ResultCollector& result, QueriedState& state, int maxValue)
1176 switch (state.getType())
1180 if (maxValue < 0 && state.getBoolAccess() != true)
1191 if (state.getIntAccess() > maxValue)
1194 buf << "Expected less or equal to " << maxValue << ", got " << state.getIntAccess();
1202 if (state.getInt64Access() > maxValue)
1205 buf << "Expected less or equal to " << maxValue << ", got " << state.getInt64Access();
1213 if (state.getFloatAccess() > deInt32ToFloatRoundToPosInf(maxValue) || deIsNaN(state.getFloatAccess()))
1216 buf << "Expected less or equal to " << maxValue << ", got " << state.getFloatAccess();
1228 void verifyFloat (tcu::ResultCollector& result, QueriedState& state, float expected)
1230 switch (state.getType())
1236 if (state.getBoolAccess() != reference)
1239 buf << "Expected " << glu::getBooleanStr(mapBoolToGLBoolean(reference)) << ", got " << glu::getBooleanStr(mapBoolToGLBoolean(state.getBoolAccess()));
1250 if (state.getIntAccess() < refValueMin ||
1251 state.getIntAccess() > refValueMax)
1256 buf << "Expected " << refValueMin << ", got " << state.getIntAccess();
1258 buf << "Expected in range [" << refValueMin << ", " << refValueMax << "], got " << state.getIntAccess();
1267 if (state.getFloatAccess() != expected)
1270 buf << "Expected " << expected << ", got " << state.getFloatAccess();
1281 if (state.getInt64Access() < refValueMin ||
1282 state.getInt64Access() > refValueMax)
1287 buf << "Expected " << refValueMin << ", got " << state.getInt64Access();
1289 buf << "Expected in range [" << refValueMin << ", " << refValueMax << "], got " << state.getInt64Access();
1301 if (state.getUintAccess() < refValueMin ||
1302 state.getUintAccess() > refValueMax)
1307 buf << "Expected " << refValueMin << ", got " << state.getUintAccess();
1309 buf << "Expected in range [" << refValueMin << ", " << refValueMax << "], got " << state.getUintAccess();
1322 void verifyFloatMin (tcu::ResultCollector& result, QueriedState& state, float minValue)
1324 switch (state.getType())
1328 if (minValue > 0.0f && state.getBoolAccess() != true)
1337 if (state.getIntAccess() < refValue)
1340 buf << "Expected greater or equal to " << refValue << ", got " << state.getIntAccess();
1348 if (state.getFloatAccess() < minValue || deIsNaN(state.getFloatAccess()))
1351 buf << "Expected greater or equal to " << minValue << ", got " << state.getFloatAccess();
1361 if (state.getInt64Access() < refValue)
1364 buf << "Expected greater or equal to " << refValue << ", got " << state.getInt64Access();
1376 void verifyFloatMax (tcu::ResultCollector& result, QueriedState& state, float maxValue)
1378 switch (state.getType())
1382 if (maxValue < 0.0f && state.getBoolAccess() != true)
1391 if (state.getIntAccess() > refValue)
1394 buf << "Expected less or equal to " << refValue << ", got " << state.getIntAccess();
1402 if (state.getFloatAccess() > maxValue || deIsNaN(state.getFloatAccess()))
1405 buf << "Expected less or equal to " << maxValue << ", got " << state.getFloatAccess();
1415 if (state.getInt64Access() > refValue)
1418 buf << "Expected less or equal to " << refValue << ", got " << state.getInt64Access();
1430 void verifyIntegerVec3 (tcu::ResultCollector& result, QueriedState& state, const tcu::IVec3& expected)
1432 switch (state.getType())
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)
1455 switch (state.getType())
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)
1479 switch (state.getType())
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)
1503 switch (state.getType())
1517 mapBoolToGLBoolean(state.getBooleanVec4Access()[0]),
1518 mapBoolToGLBoolean(state.getBooleanVec4Access()[1]),
1519 mapBoolToGLBoolean(state.getBooleanVec4Access()[2]),
1520 mapBoolToGLBoolean(state.getBooleanVec4Access()[3])
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());
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());
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());
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());
1626 void verifyFloatVec4 (tcu::ResultCollector& result, QueriedState& state, const tcu::Vec4& expected)
1628 switch (state.getType())
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());
1653 if (state.getIntVec4Access()[ndx] < refValueMin ||
1654 state.getIntVec4Access()[ndx] > refValueMax)
1671 buf << "Expected {" << expectation.str() << "}, got " << tcu::formatArray(state.getIntVec4Access());
1686 if (state.getUintVec4Access()[ndx] < refValueMin ||
1687 state.getUintVec4Access()[ndx] > refValueMax)
1704 buf << "Expected {" << expectation.str() << "}, got " << tcu::formatArray(state.getUintVec4Access());
1716 void verifyPointer (tcu::ResultCollector& result, QueriedState& state, const void* expected)
1718 switch (state.getType())
1722 if (state.getPtrAccess() != expected)
1725 buf << "Expected " << expected << ", got " << state.getPtrAccess();
1742 void verifyNormalizedI32Vec4 (tcu::ResultCollector& result, QueriedState& state, const tcu::IVec4& expected)
1759 switch (state.getType())
1768 if (state.getFloatVec4Access()[ndx] < validLow[ndx] ||
1769 state.getFloatVec4Access()[ndx] > validHigh[ndx])
1782 buf << "Expected {" << expectation.str() << "}, got " << tcu::formatArray(state.getFloatVec4Access());
1797 if (state.getIntVec4Access()[ndx] < refValueMin ||
1798 state.getIntVec4Access()[ndx] > refValueMax)
1815 buf << "Expected {" << expectation.str() << "}, got " << tcu::formatArray(state.getIntVec4Access());
1831 QueriedState state;
1833 queryState(result, gl, type, target, state);
1835 if (!state.isUndefined())
1836 verifyBoolean(result, state, refValue);
1841 QueriedState state;
1843 queryState(result, gl, type, target, state);
1845 if (!state.isUndefined())
1846 verifyInteger(result, state, refValue);
1851 QueriedState state;
1853 queryState(result, gl, type, target, state);
1855 if (!state.isUndefined())
1856 verifyIntegerMin(result, state, minValue);
1861 QueriedState state;
1863 queryState(result, gl, type, target, state);
1865 if (!state.isUndefined())
1866 verifyIntegerMax(result, state, maxValue);
1918 QueriedState state;
1920 queryState(result, gl, type, target, state);
1922 if (!state.isUndefined())
1923 verifyFloat(result, state, reference);
1928 QueriedState state;
1930 queryState(result, gl, type, target, state);
1932 if (!state.isUndefined())
1933 verifyFloatMin(result, state, minValue);
1938 QueriedState state;
1940 queryState(result, gl, type, target, state);
1942 if (!state.isUndefined())
1943 verifyFloatMax(result, state, maxValue);
1948 QueriedState state;
1950 queryPointerState(result, gl, type, target, state);
1952 if (!state.isUndefined())
1953 verifyPointer(result, state, expected);
1958 QueriedState state;
1960 queryIndexedState(result, gl, type, target, index, state);
1962 if (!state.isUndefined())
1963 verifyBoolean(result, state, expected);
1968 QueriedState state;
1970 queryIndexedState(result, gl, type, target, index, state);
1972 if (!state.isUndefined())
1973 verifyBooleanVec4(result, state, expected);
1978 QueriedState state;
1980 queryIndexedState(result, gl, type, target, index, state);
1982 if (!state.isUndefined())
1983 verifyInteger(result, state, expected);
1988 QueriedState state;
1990 queryIndexedState(result, gl, type, target, index, state);
1992 if (!state.isUndefined())
1993 verifyIntegerMin(result, state, minValue);
1998 QueriedState state;
2000 queryAttributeState(result, gl, type, target, index, state);
2002 if (!state.isUndefined())
2003 verifyInteger(result, state, expected);
2008 QueriedState state;
2010 queryFramebufferState(result, gl, type, target, pname, state);
2012 if (!state.isUndefined())
2013 verifyInteger(result, state, expected);
2018 QueriedState state;
2020 queryFramebufferState(result, gl, type, target, pname, state);
2022 if (!state.isUndefined())
2023 verifyIntegerMin(result, state, minValue);
2028 QueriedState state;
2030 queryProgramState(result, gl, type, program, pname, state);
2032 if (!state.isUndefined())
2033 verifyInteger(result, state, expected);
2038 QueriedState state;
2040 queryProgramState(result, gl, type, program, pname, state);
2042 if (!state.isUndefined())
2043 verifyIntegerVec3(result, state, expected);
2048 QueriedState state;
2050 queryPipelineState(result, gl, type, pipeline, pname, state);
2052 if (!state.isUndefined())
2053 verifyInteger(result, state, expected);
2058 QueriedState state;
2060 queryTextureParamState(result, gl, type, target, pname, state);
2062 if (!state.isUndefined())
2063 verifyInteger(result, state, expected);
2068 QueriedState state;
2070 queryTextureParamState(result, gl, type, target, pname, state);
2072 if (!state.isUndefined())
2073 verifyFloat(result, state, expected);
2078 QueriedState state;
2080 queryTextureParamState(result, gl, type, target, pname, state);
2082 if (!state.isUndefined())
2083 verifyFloatVec4(result, state, expected);
2088 QueriedState state;
2090 queryTextureParamState(result, gl, type, target, pname, state);
2092 if (!state.isUndefined())
2093 verifyNormalizedI32Vec4(result, state, expected);
2098 QueriedState state;
2100 queryTextureParamState(result, gl, type, target, pname, state);
2102 if (!state.isUndefined())
2103 verifyIntegerVec4(result, state, expected);
2108 QueriedState state;
2110 queryTextureParamState(result, gl, type, target, pname, state);
2112 if (!state.isUndefined())
2113 verifyUnsignedIntegerVec4(result, state, expected);
2118 QueriedState state;
2120 queryTextureLevelState(result, gl, type, target, level, pname, state);
2122 if (!state.isUndefined())
2123 verifyInteger(result, state, expected);
2128 QueriedState state;
2130 queryObjectState(result, gl, type, handle, state);
2132 if (!state.isUndefined())
2133 verifyBoolean(result, state, expected);
2138 QueriedState state;
2140 queryQueryState(result, gl, type, target, pname, state);
2142 if (!state.isUndefined())
2143 verifyInteger(result, state, expected);
2148 QueriedState state;
2150 querySamplerState(result, gl, type, sampler, pname, state);
2152 if (!state.isUndefined())
2153 verifyInteger(result, state, expected);
2158 QueriedState state;
2160 querySamplerState(result, gl, type, sampler, pname, state);
2162 if (!state.isUndefined())
2163 verifyFloat(result, state, expected);
2168 QueriedState state;
2170 querySamplerState(result, gl, type, sampler, pname, state);
2172 if (!state.isUndefined())
2173 verifyFloatVec4(result, state, expected);
2178 QueriedState state;
2180 querySamplerState(result, gl, type, sampler, pname, state);
2182 if (!state.isUndefined())
2183 verifyNormalizedI32Vec4(result, state, expected);
2188 QueriedState state;
2190 querySamplerState(result, gl, type, sampler, pname, state);
2192 if (!state.isUndefined())
2193 verifyIntegerVec4(result, state, expected);
2198 QueriedState state;
2200 querySamplerState(result, gl, type, sampler, pname, state);
2202 if (!state.isUndefined())
2203 verifyUnsignedIntegerVec4(result, state, expected);