Lines Matching refs:inputs
127 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_FLOAT_VEC2, precision)));
136 std::vector<tcu::Vec2> inputs;
143 inputs.push_back(tcu::Vec2(0.0f, 0.0f));
144 inputs.push_back(tcu::Vec2(-1.0f, 1.0f));
145 inputs.push_back(tcu::Vec2(0.5f, -0.5f));
146 inputs.push_back(tcu::Vec2(-1.5f, 1.5f));
147 inputs.push_back(tcu::Vec2(0.25f, -0.75f));
154 inputs.push_back(tcu::Vec2(x, y));
162 inputs.push_back(tcu::Vec2(x, y));
165 outputs.resize(inputs.size());
167 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
170 const void* in = &inputs[0];
174 m_executor->execute((int)inputs.size(), &in, &out);
179 const int numValues = (int)inputs.size();
185 const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f, 1.0f) * 32767.0f), -(1<<15), (1<<15)-1);
186 const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f, 1.0f) * 32767.0f), -(1<<15), (1<<15)-1);
199 << ", expected packSnorm2x16(" << inputs[valNdx] << ") = " << tcu::toHex(ref)
230 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_UINT, glu::PRECISION_HIGHP)));
240 std::vector<deUint32> inputs;
243 inputs.push_back(0x00000000u);
244 inputs.push_back(0x7fff8000u);
245 inputs.push_back(0x80007fffu);
246 inputs.push_back(0xffffffffu);
247 inputs.push_back(0x0001fffeu);
251 inputs.push_back(rnd.getUint32());
253 outputs.resize(inputs.size());
255 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
258 const void* in = &inputs[0];
262 m_executor->execute((int)inputs.size(), &in, &out);
267 const int numValues = (int)inputs.size();
271 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++)
273 const deInt16 in0 = (deInt16)(deUint16)(inputs[valNdx] & 0xffff);
274 const deInt16 in1 = (deInt16)(deUint16)(inputs[valNdx] >> 16);
288 << " expected unpackSnorm2x16(" << tcu::toHex(inputs[valNdx]) << ") = "
318 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_FLOAT_VEC2, precision)));
327 std::vector<tcu::Vec2> inputs;
334 inputs.push_back(tcu::Vec2(0.0f, 0.0f));
335 inputs.push_back(tcu::Vec2(0.5f, 1.0f));
336 inputs.push_back(tcu::Vec2(1.0f, 0.5f));
337 inputs.push_back(tcu::Vec2(-0.5f, 1.5f));
338 inputs.push_back(tcu::Vec2(0.25f, 0.75f));
345 inputs.push_back(tcu::Vec2(x, y));
353 inputs.push_back(tcu::Vec2(x, y));
356 outputs.resize(inputs.size());
358 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
361 const void* in = &inputs[0];
365 m_executor->execute((int)inputs.size(), &in, &out);
370 const int numValues = (int)inputs.size();
374 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++)
376 const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), 0.0f, 1.0f) * 65535.0f), 0, (1<<16)-1);
377 const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), 0.0f, 1.0f) * 65535.0f), 0, (1<<16)-1);
390 << ", expected packUnorm2x16(" << inputs[valNdx] << ") = " << tcu::toHex(ref)
421 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_UINT, glu::PRECISION_HIGHP)));
431 std::vector<deUint32> inputs;
434 inputs.push_back(0x00000000u);
435 inputs.push_back(0x7fff8000u);
436 inputs.push_back(0x80007fffu);
437 inputs.push_back(0xffffffffu);
438 inputs.push_back(0x0001fffeu);
442 inputs.push_back(rnd.getUint32());
444 outputs.resize(inputs.size());
446 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
449 const void* in = &inputs[0];
453 m_executor->execute((int)inputs.size(), &in, &out);
458 const int numValues = (int)inputs.size();
462 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++)
464 const deUint16 in0 = (deUint16)(inputs[valNdx] & 0xffff);
465 const deUint16 in1 = (deUint16)(inputs[valNdx] >> 16);
479 << " expected unpackUnorm2x16(" << tcu::toHex(inputs[valNdx]) << ") = "
508 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_FLOAT_VEC2, glu::PRECISION_HIGHP)));
518 std::vector<tcu::Vec2> inputs;
522 inputs.push_back(tcu::Vec2(0.0f, 0.0f));
523 inputs.push_back(tcu::Vec2(0.5f, 1.0f));
524 inputs.push_back(tcu::Vec2(1.0f, 0.5f));
525 inputs.push_back(tcu::Vec2(-0.5f, 1.5f));
526 inputs.push_back(tcu::Vec2(0.25f, 0.75f));
544 inputs.push_back(v);
549 for (std::vector<tcu::Vec2>::iterator inVal = inputs.begin(); inVal != inputs.end(); ++inVal)
552 outputs.resize(inputs.size());
554 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
557 const void* in = &inputs[0];
561 m_executor->execute((int)inputs.size(), &in, &out);
566 const int numValues = (int)inputs.size();
570 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++)
572 const deUint16 ref0 = (deUint16)tcu::Float16(inputs[valNdx].x()).bits();
573 const deUint16 ref1 = (deUint16)tcu::Float16(inputs[valNdx].y()).bits();
586 << ", expected packHalf2x16(" << inputs[valNdx] << ") = " << tcu::toHex(ref)
614 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_UINT, glu::PRECISION_HIGHP)));
624 std::vector<deUint32> inputs;
628 inputs.push_back((tcu::Float16( 0.0f).bits() << 16) | tcu::Float16( 1.0f).bits());
629 inputs.push_back((tcu::Float16( 1.0f).bits() << 16) | tcu::Float16( 0.0f).bits());
630 inputs.push_back((tcu::Float16(-1.0f).bits() << 16) | tcu::Float16( 0.5f).bits());
631 inputs.push_back((tcu::Float16( 0.5f).bits() << 16) | tcu::Float16(-0.5f).bits());
651 inputs.push_back(inVal);
655 outputs.resize(inputs.size());
657 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
660 const void* in = &inputs[0];
664 m_executor->execute((int)inputs.size(), &in, &out);
669 const int numValues = (int)inputs.size();
673 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++)
675 const deUint16 in0 = (deUint16)(inputs[valNdx] & 0xffff);
676 const deUint16 in1 = (deUint16)(inputs[valNdx] >> 16);
695 << " expected unpackHalf2x16(" << tcu::toHex(inputs[valNdx]) << ") = "
725 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_FLOAT_VEC4, precision)));
734 std::vector<tcu::Vec4> inputs;
741 inputs.push_back(tcu::Vec4(0.0f, 0.0f, 0.0f, 0.0f));
742 inputs.push_back(tcu::Vec4(-1.0f, 1.0f, -1.0f, 1.0f));
743 inputs.push_back(tcu::Vec4(0.5f, -0.5f, -0.5f, 0.5f));
744 inputs.push_back(tcu::Vec4(-1.5f, 1.5f, -1.5f, 1.5f));
745 inputs.push_back(tcu::Vec4(0.25f, -0.75f, -0.25f, 0.75f));
754 inputs.push_back(tcu::Vec4(x, y, z, w));
764 inputs.push_back(tcu::Vec4(x, y, z, w));
767 outputs.resize(inputs.size());
769 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
772 const void* in = &inputs[0];
776 m_executor->execute((int)inputs.size(), &in, &out);
781 const int numValues = (int)inputs.size();
787 const deUint16 ref0 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f, 1.0f) * 127.0f), -(1<<7), (1<<7)-1);
788 const deUint16 ref1 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f, 1.0f) * 127.0f), -(1<<7), (1<<7)-1);
789 const deUint16 ref2 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].z(), -1.0f, 1.0f) * 127.0f), -(1<<7), (1<<7)-1);
790 const deUint16 ref3 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].w(), -1.0f, 1.0f) * 127.0f), -(1<<7), (1<<7)-1);
807 << ", expected packSnorm4x8(" << inputs[valNdx] << ") = " << tcu::toHex(ref)
838 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_UINT, glu::PRECISION_HIGHP)));
848 std::vector<deUint32> inputs;
851 inputs.push_back(0x00000000u);
852 inputs.push_back(0x7fff8000u);
853 inputs.push_back(0x80007fffu);
854 inputs.push_back(0xffffffffu);
855 inputs.push_back(0x0001fffeu);
859 inputs.push_back(rnd.getUint32());
861 outputs.resize(inputs.size());
863 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
866 const void* in = &inputs[0];
870 m_executor->execute((int)inputs.size(), &in, &out);
875 const int numValues = (int)inputs.size();
879 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++)
881 const deInt8 in0 = (deInt8)(deUint8)(inputs[valNdx] & 0xff);
882 const deInt8 in1 = (deInt8)(deUint8)((inputs[valNdx] >> 8) & 0xff);
883 const deInt8 in2 = (deInt8)(deUint8)((inputs[valNdx] >> 16) & 0xff);
884 const deInt8 in3 = (deInt8)(deUint8)(inputs[valNdx] >> 24);
904 << " expected unpackSnorm4x8(" << tcu::toHex(inputs[valNdx]) << ") = "
934 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_FLOAT_VEC4, precision)));
943 std::vector<tcu::Vec4> inputs;
950 inputs.push_back(tcu::Vec4(0.0f, 0.0f, 0.0f, 0.0f));
951 inputs.push_back(tcu::Vec4(-1.0f, 1.0f, -1.0f, 1.0f));
952 inputs.push_back(tcu::Vec4(0.5f, -0.5f, -0.5f, 0.5f));
953 inputs.push_back(tcu::Vec4(-1.5f, 1.5f, -1.5f, 1.5f));
954 inputs.push_back(tcu::Vec4(0.25f, -0.75f, -0.25f, 0.75f));
963 inputs.push_back(tcu::Vec4(x, y, z, w));
973 inputs.push_back(tcu::Vec4(x, y, z, w));
976 outputs.resize(inputs.size());
978 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
981 const void* in = &inputs[0];
985 m_executor->execute((int)inputs.size(), &in, &out);
990 const int numValues = (int)inputs.size();
994 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++)
996 const deUint16 ref0 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), 0.0f, 1.0f) * 255.0f), 0, (1<<8)-1);
997 const deUint16 ref1 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), 0.0f, 1.0f) * 255.0f), 0, (1<<8)-1);
998 const deUint16 ref2 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].z(), 0.0f, 1.0f) * 255.0f), 0, (1<<8)-1);
999 const deUint16 ref3 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].w(), 0.0f, 1.0f) * 255.0f), 0, (1<<8)-1);
1016 << ", expected packUnorm4x8(" << inputs[valNdx] << ") = " << tcu::toHex(ref)
1047 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_UINT, glu::PRECISION_HIGHP)));
1057 std::vector<deUint32> inputs;
1060 inputs.push_back(0x00000000u);
1061 inputs.push_back(0x7fff8000u);
1062 inputs.push_back(0x80007fffu);
1063 inputs.push_back(0xffffffffu);
1064 inputs.push_back(0x0001fffeu);
1068 inputs.push_back(rnd.getUint32());
1070 outputs.resize(inputs.size());
1072 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
1075 const void* in = &inputs[0];
1079 m_executor->execute((int)inputs.size(), &in, &out);
1084 const int numValues = (int)inputs.size();
1088 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++)
1090 const deUint8 in0 = (deUint8)(inputs[valNdx] & 0xff);
1091 const deUint8 in1 = (deUint8)((inputs[valNdx] >> 8) & 0xff);
1092 const deUint8 in2 = (deUint8)((inputs[valNdx] >> 16) & 0xff);
1093 const deUint8 in3 = (deUint8)(inputs[valNdx] >> 24);
1113 << " expected unpackUnorm4x8(" << tcu::toHex(inputs[valNdx]) << ") = "