Lines Matching refs:compNdx
375 for (int compNdx = 0; compNdx < numComponents; compNdx++)
377 if (compNdx != 0)
382 case glu::TYPE_FLOAT: str << HexFloat(((const float*)varValue.value)[compNdx]); break;
383 case glu::TYPE_INT: str << ((const deInt32*)varValue.value)[compNdx]; break;
384 case glu::TYPE_UINT: str << tcu::toHex(((const deUint32*)varValue.value)[compNdx]); break;
385 case glu::TYPE_BOOL: str << HexBool(((const deUint32*)varValue.value)[compNdx]); break;
545 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
547 const float in0 = ((const float*)inputs[0])[compNdx];
548 const float out0 = ((const float*)outputs[0])[compNdx];
554 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref0) << " with ULP threshold " << maxUlpDiff << ", got ULP diff " << ulpDiff0;
561 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
563 const int in0 = ((const int*)inputs[0])[compNdx];
564 const int out0 = ((const int*)outputs[0])[compNdx];
569 m_failMsg << "Expected [" << compNdx << "] = " << ref0;
638 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
640 const float in0 = ((const float*)inputs[0])[compNdx];
641 const float out0 = ((const float*)outputs[0])[compNdx];
648 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref0) << " with ULP threshold " << maxUlpDiff << ", got ULP diff " << ulpDiff0;
655 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
657 const int in0 = ((const int*)inputs[0])[compNdx];
658 const int out0 = ((const int*)outputs[0])[compNdx];
664 m_failMsg << "Expected [" << compNdx << "] = " << ref0;
744 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
746 const float in0 = ((const float*)inputs[0])[compNdx];
747 const float out0 = ((const float*)outputs[0])[compNdx];
754 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref) << ", got ULP diff " << tcu::toHex(ulpDiff);
765 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
767 const float in0 = ((const float*)inputs[0])[compNdx];
768 const float out0 = ((const float*)outputs[0])[compNdx];
786 m_failMsg << "Expected [" << compNdx << "] = [" << minRes << ", " << maxRes << "] with ULP threshold " << tcu::toHex(maxUlpDiff);
834 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
836 const float in0 = ((const float*)inputs[0])[compNdx];
837 const float out0 = ((const float*)outputs[0])[compNdx];
838 const float out1 = ((const float*)outputs[1])[compNdx];
852 m_failMsg << "Expected [" << compNdx << "] = (" << HexFloat(refOut0) << ") + (" << HexFloat(refOut1) << ") = " << HexFloat(in0) << " with ULP threshold "
911 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
913 const float in0 = ((const float*)inputs[0])[compNdx];
914 const bool out0 = ((const deUint32*)outputs[0])[compNdx] != 0;
919 m_failMsg << "Expected [" << compNdx << "] = " << (ref ? "true" : "false");
927 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
929 const float in0 = ((const float*)inputs[0])[compNdx];
930 const bool out0 = ((const deUint32*)outputs[0])[compNdx] != 0;
935 m_failMsg << "Expected [" << compNdx << "] = " << (ref ? "true" : "false");
994 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
996 const float in0 = ((const float*)inputs[0])[compNdx];
997 const bool out0 = ((const deUint32*)outputs[0])[compNdx] != 0;
1002 m_failMsg << "Expected [" << compNdx << "] = " << HexBool(ref);
1010 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1012 const float in0 = ((const float*)inputs[0])[compNdx];
1013 const bool out0 = ((const deUint32*)outputs[0])[compNdx] != 0;
1018 m_failMsg << "Expected [" << compNdx << "] = " << (ref ? "true" : "false");
1070 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1072 const float in0 = ((const float*)inputs[0])[compNdx];
1073 const deUint32 out0 = ((const deUint32*)outputs[0])[compNdx];
1079 m_failMsg << "Expected [" << compNdx << "] = " << tcu::toHex(refOut0) << " with threshold "
1139 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1141 const float in0 = ((const float*)inputs[0])[compNdx];
1142 const float out0 = ((const float*)outputs[0])[compNdx];
1147 m_failMsg << "Expected [" << compNdx << "] = " << tcu::toHex(tcu::Float32(in0).bits()) << " with ULP threshold "
1201 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1203 const float in0 = ((const float*)inputs[0])[compNdx];
1204 const float out0 = ((const float*)outputs[0])[compNdx];
1211 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref) << ", got ULP diff " << tcu::toHex(ulpDiff);
1222 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1224 const float in0 = ((const float*)inputs[0])[compNdx];
1225 const float out0 = ((const float*)outputs[0])[compNdx];
1243 m_failMsg << "Expected [" << compNdx << "] = [" << minRes << ", " << maxRes << "] with ULP threshold " << tcu::toHex(maxUlpDiff);
1307 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1309 const float in0 = ((const float*)inputs[0])[compNdx];
1310 const float out0 = ((const float*)outputs[0])[compNdx];
1319 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref) << ", got ULP diff " << tcu::toHex(ulpDiff);
1330 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1332 const float in0 = ((const float*)inputs[0])[compNdx];
1333 const float out0 = ((const float*)outputs[0])[compNdx];
1351 m_failMsg << "Expected [" << compNdx << "] = [" << minRes << ", " << maxRes << "] with ULP threshold " << tcu::toHex(maxUlpDiff);
1419 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1421 const float in0 = ((const float*)inputs[0])[compNdx];
1422 const float out0 = ((const float*)outputs[0])[compNdx];
1434 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref0) << " or " << HexFloat(ref1) << ", got ULP diff " << tcu::toHex(de::min(ulpDiff0, ulpDiff1));
1446 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref) << ", got ULP diff " << tcu::toHex(ulpDiff);
1458 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1460 const float in0 = ((const float*)inputs[0])[compNdx];
1461 const float out0 = ((const float*)outputs[0])[compNdx];
1479 m_failMsg << "Expected [" << compNdx << "] = [" << minRes << ", " << maxRes << "] with ULP threshold " << tcu::toHex(maxUlpDiff);
1535 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1537 const float in0 = ((const float*)inputs[0])[compNdx];
1538 const float out0 = ((const float*)outputs[0])[compNdx];
1545 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref) << ", got ULP diff " << tcu::toHex(ulpDiff);
1556 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1558 const float in0 = ((const float*)inputs[0])[compNdx];
1559 const float out0 = ((const float*)outputs[0])[compNdx];
1584 m_failMsg << "Expected [" << compNdx << "] = [" << minRes << ", " << maxRes << "] with ULP threshold " << tcu::toHex(maxUlpDiff);
1653 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1655 const float in0 = ((const float*)inputs[0])[compNdx];
1656 const float out0 = ((const float*)outputs[0])[compNdx];
1663 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref) << ", got ULP diff " << tcu::toHex(ulpDiff);
1673 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1675 const float in0 = ((const float*)inputs[0])[compNdx];
1676 const float out0 = ((const float*)outputs[0])[compNdx];
1687 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref) << " with ULP threshold " << tcu::toHex(maxUlpDiff) << ", got diff " << tcu::toHex(ulpDiff);
1695 m_failMsg << "Expected [" << compNdx << "] < 1.0";
1767 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1769 ((float*)values[0])[scalarSize*0 + compNdx] = 0.0f;
1770 ((float*)values[0])[scalarSize*1 + compNdx] = -0.0f;
1771 ((float*)values[0])[scalarSize*2 + compNdx] = 0.5f;
1772 ((float*)values[0])[scalarSize*3 + compNdx] = -0.5f;
1773 ((float*)values[0])[scalarSize*4 + compNdx] = 1.0f;
1774 ((float*)values[0])[scalarSize*5 + compNdx] = -1.0f;
1775 ((float*)values[0])[scalarSize*6 + compNdx] = 2.0f;
1776 ((float*)values[0])[scalarSize*7 + compNdx] = -2.0f;
1803 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1805 const float in0 = ((const float*)inputs[0])[compNdx];
1806 const float out0 = ((const float*)outputs[0])[compNdx];
1807 const int out1 = ((const int*)outputs[1])[compNdx];
1818 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(refOut0) << ", " << refOut1 << " with ULP threshold "
1869 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1871 ((float*)values[0])[valueNdx*scalarSize + compNdx] = in0;
1872 ((int*)values[1])[valueNdx*scalarSize + compNdx] = in1;
1886 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1894 ((float*)values[0])[valueNdx*scalarSize + compNdx] = in0;
1895 ((int*)values[1])[valueNdx*scalarSize + compNdx] = in1;
1908 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1924 ((float*)values[0])[valueNdx*scalarSize + compNdx] = in0;
1925 ((int*)values[1])[valueNdx*scalarSize + compNdx] = in1;
1942 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1944 const float in0 = ((const float*)inputs[0])[compNdx];
1945 const int in1 = ((const int*)inputs[1])[compNdx];
1946 const float out0 = ((const float*)outputs[0])[compNdx];
1954 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(refOut0) << ", (exp = " << inExp << ") with ULP threshold "
2089 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
2091 const float a = ((const float*)inputs[0])[compNdx];
2092 const float b = ((const float*)inputs[1])[compNdx];
2093 const float c = ((const float*)inputs[2])[compNdx];
2094 const float res = ((const float*)outputs[0])[compNdx];
2099 m_failMsg << "Expected [" << compNdx << "] = " << ref;