Home | History | Annotate | Download | only in functional

Lines Matching defs:compNdx

328 	for (int compNdx = 0; compNdx < numComponents; compNdx++)
330 if (compNdx != 0)
335 case glu::TYPE_FLOAT: str << HexFloat(((const float*)varValue.value)[compNdx]); break;
336 case glu::TYPE_INT: str << ((const deInt32*)varValue.value)[compNdx]; break;
337 case glu::TYPE_UINT: str << tcu::toHex(((const deUint32*)varValue.value)[compNdx]); break;
338 case glu::TYPE_BOOL: str << HexBool(((const deUint32*)varValue.value)[compNdx]); break;
498 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
500 const float in0 = ((const float*)inputs[0])[compNdx];
501 const float out0 = ((const float*)outputs[0])[compNdx];
507 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref0) << " with ULP threshold " << maxUlpDiff << ", got ULP diff " << ulpDiff0;
514 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
516 const int in0 = ((const int*)inputs[0])[compNdx];
517 compNdx];
522 m_failMsg << "Expected [" << compNdx << "] = " << ref0;
591 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
593 const float in0 = ((const float*)inputs[0])[compNdx];
594 const float out0 = ((const float*)outputs[0])[compNdx];
601 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref0) << " with ULP threshold " << maxUlpDiff << ", got ULP diff " << ulpDiff0;
608 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
610 const int in0 = ((const int*)inputs[0])[compNdx];
611 const int out0 = ((const int*)outputs[0])[compNdx];
617 m_failMsg << "Expected [" << compNdx << "] = " << ref0;
697 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
699 const float in0 = ((const float*)inputs[0])[compNdx];
700 const float out0 = ((const float*)outputs[0])[compNdx];
707 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref) << ", got ULP diff " << tcu::toHex(ulpDiff);
718 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
720 const float in0 = ((const float*)inputs[0])[compNdx];
721 const float out0 = ((const float*)outputs[0])[compNdx];
739 m_failMsg << "Expected [" << compNdx << "] = [" << minRes << ", " << maxRes << "] with ULP threshold " << tcu::toHex(maxUlpDiff);
787 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
789 const float in0 = ((const float*)inputs[0])[compNdx];
790 const float out0 = ((const float*)outputs[0])[compNdx];
791 const float out1 = ((const float*)outputs[1])[compNdx];
805 m_failMsg << "Expected [" << compNdx << "] = (" << HexFloat(refOut0) << ") + (" << HexFloat(refOut1) << ") = " << HexFloat(in0) << " with ULP threshold "
864 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
866 const float in0 = ((const float*)inputs[0])[compNdx];
867 const bool out0 = ((const deUint32*)outputs[0])[compNdx] != 0;
872 m_failMsg << "Expected [" << compNdx << "] = " << (ref ? "true" : "false");
880 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
882 const float in0 = ((const float*)inputs[0])[compNdx];
883 const bool out0 = ((const deUint32*)outputs[0])[compNdx] != 0;
888 m_failMsg << "Expected [" << compNdx << "] = " << (ref ? "true" : "false");
947 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
949 const float in0 = ((const float*)inputs[0])[compNdx];
950 const bool out0 = ((const deUint32*)outputs[0])[compNdx] != 0;
955 m_failMsg << "Expected [" << compNdx << "] = " << HexBool(ref);
963 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
965 const float in0 = ((const float*)inputs[0])[compNdx];
966 const bool out0 = ((const deUint32*)outputs[0])[compNdx] != 0;
971 m_failMsg << "Expected [" << compNdx << "] = " << (ref ? "true" : "false");
1023 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1025 const float in0 = ((const float*)inputs[0])[compNdx];
1026 const deUint32 out0 = ((const deUint32*)outputs[0])[compNdx];
1032 m_failMsg << "Expected [" << compNdx << "] = " << tcu::toHex(refOut0) << " with threshold "
1092 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1094 const float in0 = ((const float*)inputs[0])[compNdx];
1095 const float out0 = ((const float*)outputs[0])[compNdx];
1100 m_failMsg << "Expected [" << compNdx << "] = " << tcu::toHex(in0) << " with ULP threshold "
1154 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1156 const float in0 = ((const float*)inputs[0])[compNdx];
1157 const float out0 = ((const float*)outputs[0])[compNdx];
1164 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref) << ", got ULP diff " << tcu::toHex(ulpDiff);
1175 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1177 const float in0 = ((const float*)inputs[0])[compNdx];
1178 const float out0 = ((const float*)outputs[0])[compNdx];
1196 m_failMsg << "Expected [" << compNdx << "] = [" << minRes << ", " << maxRes << "] with ULP threshold " << tcu::toHex(maxUlpDiff);
1260 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1262 const float in0 = ((const float*)inputs[0])[compNdx];
1263 const float out0 = ((const float*)outputs[0])[compNdx];
1272 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref) << ", got ULP diff " << tcu::toHex(ulpDiff);
1283 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1285 const float in0 = ((const float*)inputs[0])[compNdx];
1286 const float out0 = ((const float*)outputs[0])[compNdx];
1304 m_failMsg << "Expected [" << compNdx << "] = [" << minRes << ", " << maxRes << "] with ULP threshold " << tcu::toHex(maxUlpDiff);
1372 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1374 const float in0 = ((const float*)inputs[0])[compNdx];
1375 const float out0 = ((const float*)outputs[0])[compNdx];
1387 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref0) << " or " << HexFloat(ref1) << ", got ULP diff " << tcu::toHex(de::min(ulpDiff0, ulpDiff1));
1399 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref) << ", got ULP diff " << tcu::toHex(ulpDiff);
1411 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1413 const float in0 = ((const float*)inputs[0])[compNdx];
1414 const float out0 = ((const float*)outputs[0])[compNdx];
1432 m_failMsg << "Expected [" << compNdx << "] = [" << minRes << ", " << maxRes << "] with ULP threshold " << tcu::toHex(maxUlpDiff);
1488 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1490 const float in0 = ((const float*)inputs[0])[compNdx];
1491 const float out0 = ((const float*)outputs[0])[compNdx];
1498 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref) << ", got ULP diff " << tcu::toHex(ulpDiff);
1509 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1511 const float in0 = ((const float*)inputs[0])[compNdx];
1512 const float out0 = ((const float*)outputs[0])[compNdx];
1537 m_failMsg << "Expected [" << compNdx << "] = [" << minRes << ", " << maxRes << "] with ULP threshold " << tcu::toHex(maxUlpDiff);
1606 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1608 const float in0 = ((const float*)inputs[0])[compNdx];
1609 const float out0 = ((const float*)outputs[0])[compNdx];
1616 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref) << ", got ULP diff " << tcu::toHex(ulpDiff);
1626 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1628 const float in0 = ((const float*)inputs[0])[compNdx];
1629 const float out0 = ((const float*)outputs[0])[compNdx];
1640 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref) << " with ULP threshold " << tcu::toHex(maxUlpDiff) << ", got diff " << tcu::toHex(ulpDiff);
1648 m_failMsg << "Expected [" << compNdx << "] < 1.0";
1720 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1722 ((float*)values[0])[scalarSize*0 + compNdx] = 0.0f;
1723 ((float*)values[0])[scalarSize*1 + compNdx] = -0.0f;
1724 ((float*)values[0])[scalarSize*2 + compNdx] = 0.5f;
1725 ((float*)values[0])[scalarSize*3 + compNdx] = -0.5f;
1726 ((float*)values[0])[scalarSize*4 + compNdx] = 1.0f;
1727 ((float*)values[0])[scalarSize*5 + compNdx] = -1.0f;
1728 ((float*)values[0])[scalarSize*6 + compNdx] = 2.0f;
1729 ((float*)values[0])[scalarSize*7 + compNdx] = -2.0f;
1745 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1747 const float in0 = ((const float*)inputs[0])[compNdx];
1748 const float out0 = ((const float*)outputs[0])[compNdx];
1749 const int out1 = ((const int*)outputs[1])[compNdx];
1760 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(refOut0) << ", " << refOut1 << " with ULP threshold "
1811 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1813 ((float*)values[0])[valueNdx*scalarSize + compNdx] = in0;
1814 ((int*)values[1])[valueNdx*scalarSize + compNdx] = in1;
1828 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1836 ((float*)values[0])[valueNdx*scalarSize + compNdx] = in0;
1837 ((int*)values[1])[valueNdx*scalarSize + compNdx] = in1;
1850 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1866 ((float*)values[0])[valueNdx*scalarSize + compNdx] = in0;
1867 ((int*)values[1])[valueNdx*scalarSize + compNdx] = in1;
1885 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
1887 const float in0 = ((const float*)inputs[0])[compNdx];
1888 const int in1 = ((const int*)inputs[1])[compNdx];
1889 const float out0 = ((const float*)outputs[0])[compNdx];
1897 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(refOut0) << ", (exp = " << inExp << ") with ULP threshold "
2032 for (int compNdx = 0; compNdx < scalarSize; compNdx++)
2034 const float a = ((const float*)inputs[0])[compNdx];
2035 const float b = ((const float*)inputs[1])[compNdx];
2036 const float c = ((const float*)inputs[2])[compNdx];
2037 const float res = ((const float*)outputs[0])[compNdx];
2047 m_failMsg << "Expected [" << compNdx << "] = " << HexFloat(ref) << " with ULP threshold "