Home | History | Annotate | Download | only in functional

Lines Matching full:inputs

155 		m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_FLOAT_VEC2, precision)));
164 std::vector<tcu::Vec2> inputs;
171 inputs.push_back(tcu::Vec2(0.0f, 0.0f));
172 inputs.push_back(tcu::Vec2(-1.0f, 1.0f));
173 inputs.push_back(tcu::Vec2(0.5f, -0.5f));
174 inputs.push_back(tcu::Vec2(-1.5f, 1.5f));
175 inputs.push_back(tcu::Vec2(0.25f, -0.75f));
182 inputs.push_back(tcu::Vec2(x, y));
190 inputs.push_back(tcu::Vec2(x, y));
193 outputs.resize(inputs.size());
195 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
198 const void* in = &inputs[0];
202 m_executor->execute((int)inputs.size(), &in, &out);
207 const int numValues = (int)inputs.size();
213 const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f, 1.0f) * 32767.0f), -(1<<15), (1<<15)-1);
214 const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f, 1.0f) * 32767.0f), -(1<<15), (1<<15)-1);
227 << ", expected packSnorm2x16(" << inputs[valNdx] << ") = " << tcu::toHex(ref)
258 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_UINT, glu::PRECISION_HIGHP)));
268 std::vector<deUint32> inputs;
271 inputs.push_back(0x00000000u);
272 inputs.push_back(0x7fff8000u);
273 inputs.push_back(0x80007fffu);
274 inputs.push_back(0xffffffffu);
275 inputs.push_back(0x0001fffeu);
279 inputs.push_back(rnd.getUint32());
281 outputs.resize(inputs.size());
283 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
286 const void* in = &inputs[0];
290 m_executor->execute((int)inputs.size(), &in, &out);
295 const int numValues = (int)inputs.size();
299 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++)
301 const deInt16 in0 = (deInt16)(deUint16)(inputs[valNdx] & 0xffff);
302 const deInt16 in1 = (deInt16)(deUint16)(inputs[valNdx] >> 16);
316 << " expected unpackSnorm2x16(" << tcu::toHex(inputs[valNdx]) << ") = "
346 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_FLOAT_VEC2, precision)));
355 std::vector<tcu::Vec2> inputs;
362 inputs.push_back(tcu::Vec2(0.0f, 0.0f));
363 inputs.push_back(tcu::Vec2(0.5f, 1.0f));
364 inputs.push_back(tcu::Vec2(1.0f, 0.5f));
365 inputs.push_back(tcu::Vec2(-0.5f, 1.5f));
366 inputs.push_back(tcu::Vec2(0.25f, 0.75f));
373 inputs.push_back(tcu::Vec2(x, y));
381 inputs.push_back(tcu::Vec2(x, y));
384 outputs.resize(inputs.size());
386 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
389 const void* in = &inputs[0];
393 m_executor->execute((int)inputs.size(), &in, &out);
398 const int numValues = (int)inputs.size();
402 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++)
404 const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), 0.0f, 1.0f) * 65535.0f), 0, (1<<16)-1);
405 const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), 0.0f, 1.0f) * 65535.0f), 0, (1<<16)-1);
418 << ", expected packUnorm2x16(" << inputs[valNdx] << ") = " << tcu::toHex(ref)
449 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_UINT, glu::PRECISION_HIGHP)));
459 std::vector<deUint32> inputs;
462 inputs.push_back(0x00000000u);
463 inputs.push_back(0x7fff8000u);
464 inputs.push_back(0x80007fffu);
465 inputs.push_back(0xffffffffu);
466 inputs.push_back(0x0001fffeu);
470 inputs.push_back(rnd.getUint32());
472 outputs.resize(inputs.size());
474 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
477 const void* in = &inputs[0];
481 m_executor->execute((int)inputs.size(), &in, &out);
486 const int numValues = (int)inputs.size();
490 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++)
492 const deUint16 in0 = (deUint16)(inputs[valNdx] & 0xffff);
493 const deUint16 in1 = (deUint16)(inputs[valNdx] >> 16);
507 << " expected unpackUnorm2x16(" << tcu::toHex(inputs[valNdx]) << ") = "
536 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_FLOAT_VEC2, glu::PRECISION_HIGHP)));
546 std::vector<tcu::Vec2> inputs;
550 inputs.push_back(tcu::Vec2(0.0f, 0.0f));
551 inputs.push_back(tcu::Vec2(0.5f, 1.0f));
552 inputs.push_back(tcu::Vec2(1.0f, 0.5f));
553 inputs.push_back(tcu::Vec2(-0.5f, 1.5f));
554 inputs.push_back(tcu::Vec2(0.25f, 0.75f));
572 inputs.push_back(v);
577 for (std::vector<tcu::Vec2>::iterator inVal = inputs.begin(); inVal != inputs.end(); ++inVal)
580 outputs.resize(inputs.size());
582 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
585 const void* in = &inputs[0];
589 m_executor->execute((int)inputs.size(), &in, &out);
594 const int numValues = (int)inputs.size();
598 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++)
600 const deUint16 ref0 = (deUint16)tcu::Float16(inputs[valNdx].x()).bits();
601 const deUint16 ref1 = (deUint16)tcu::Float16(inputs[valNdx].y()).bits();
614 << ", expected packHalf2x16(" << inputs[valNdx] << ") = " << tcu::toHex(ref)
642 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_UINT, glu::PRECISION_HIGHP)));
652 std::vector<deUint32> inputs;
656 inputs.push_back((tcu::Float16( 0.0f).bits() << 16) | tcu::Float16( 1.0f).bits());
657 inputs.push_back((tcu::Float16( 1.0f).bits() << 16) | tcu::Float16( 0.0f).bits());
658 inputs.push_back((tcu::Float16(-1.0f).bits() << 16) | tcu::Float16( 0.5f).bits());
659 inputs.push_back((tcu::Float16( 0.5f).bits() << 16) | tcu::Float16(-0.5f).bits());
679 inputs.push_back(inVal);
683 outputs.resize(inputs.size());
685 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
688 const void* in = &inputs[0];
692 m_executor->execute((int)inputs.size(), &in, &out);
697 const int numValues = (int)inputs.size();
701 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++)
703 const deUint16 in0 = (deUint16)(inputs[valNdx] & 0xffff);
704 const deUint16 in1 = (deUint16)(inputs[valNdx] >> 16);
723 << " expected unpackHalf2x16(" << tcu::toHex(inputs[valNdx]) << ") = "
753 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_FLOAT_VEC4, precision)));
762 std::vector<tcu::Vec4> inputs;
769 inputs.push_back(tcu::Vec4(0.0f, 0.0f, 0.0f, 0.0f));
770 inputs.push_back(tcu::Vec4(-1.0f, 1.0f, -1.0f, 1.0f));
771 inputs.push_back(tcu::Vec4(0.5f, -0.5f, -0.5f, 0.5f));
772 inputs.push_back(tcu::Vec4(-1.5f, 1.5f, -1.5f, 1.5f));
773 inputs.push_back(tcu::Vec4(0.25f, -0.75f, -0.25f, 0.75f));
782 inputs.push_back(tcu::Vec4(x, y, z, w));
792 inputs.push_back(tcu::Vec4(x, y, z, w));
795 outputs.resize(inputs.size());
797 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
800 const void* in = &inputs[0];
804 m_executor->execute((int)inputs.size(), &in, &out);
809 const int numValues = (int)inputs.size();
815 const deUint16 ref0 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f, 1.0f) * 127.0f), -(1<<7), (1<<7)-1);
816 const deUint16 ref1 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f, 1.0f) * 127.0f), -(1<<7), (1<<7)-1);
817 const deUint16 ref2 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].z(), -1.0f, 1.0f) * 127.0f), -(1<<7), (1<<7)-1);
818 const deUint16 ref3 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].w(), -1.0f, 1.0f) * 127.0f), -(1<<7), (1<<7)-1);
835 << ", expected packSnorm4x8(" << inputs[valNdx] << ") = " << tcu::toHex(ref)
866 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_UINT, glu::PRECISION_HIGHP)));
876 std::vector<deUint32> inputs;
879 inputs.push_back(0x00000000u);
880 inputs.push_back(0x7fff8000u);
881 inputs.push_back(0x80007fffu);
882 inputs.push_back(0xffffffffu);
883 inputs.push_back(0x0001fffeu);
887 inputs.push_back(rnd.getUint32());
889 outputs.resize(inputs.size());
891 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
894 const void* in = &inputs[0];
898 m_executor->execute((int)inputs.size(), &in, &out);
903 const int numValues = (int)inputs.size();
907 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++)
909 const deInt8 in0 = (deInt8)(deUint8)(inputs[valNdx] & 0xff);
910 const deInt8 in1 = (deInt8)(deUint8)((inputs[valNdx] >> 8) & 0xff);
911 const deInt8 in2 = (deInt8)(deUint8)((inputs[valNdx] >> 16) & 0xff);
912 const deInt8 in3 = (deInt8)(deUint8)(inputs[valNdx] >> 24);
932 << " expected unpackSnorm4x8(" << tcu::toHex(inputs[valNdx]) << ") = "
962 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_FLOAT_VEC4, precision)));
971 std::vector<tcu::Vec4> inputs;
978 inputs.push_back(tcu::Vec4(0.0f, 0.0f, 0.0f, 0.0f));
979 inputs.push_back(tcu::Vec4(-1.0f, 1.0f, -1.0f, 1.0f));
980 inputs.push_back(tcu::Vec4(0.5f, -0.5f, -0.5f, 0.5f));
981 inputs.push_back(tcu::Vec4(-1.5f, 1.5f, -1.5f, 1.5f));
982 inputs.push_back(tcu::Vec4(0.25f, -0.75f, -0.25f, 0.75f));
991 inputs.push_back(tcu::Vec4(x, y, z, w));
1001 inputs.push_back(tcu::Vec4(x, y, z, w));
1004 outputs.resize(inputs.size());
1006 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
1009 const void* in = &inputs[0];
1013 m_executor->execute((int)inputs.size(), &in, &out);
1018 const int numValues = (int)inputs.size();
1022 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++)
1024 const deUint16 ref0 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), 0.0f, 1.0f) * 255.0f), 0, (1<<8)-1);
1025 const deUint16 ref1 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), 0.0f, 1.0f) * 255.0f), 0, (1<<8)-1);
1026 const deUint16 ref2 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].z(), 0.0f, 1.0f) * 255.0f), 0, (1<<8)-1);
1027 const deUint16 ref3 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].w(), 0.0f, 1.0f) * 255.0f), 0, (1<<8)-1);
1044 << ", expected packUnorm4x8(" << inputs[valNdx] << ") = " << tcu::toHex(ref)
1075 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_UINT, glu::PRECISION_HIGHP)));
1085 std::vector<deUint32> inputs;
1088 inputs.push_back(0x00000000u);
1089 inputs.push_back(0x7fff8000u);
1090 inputs.push_back(0x80007fffu);
1091 inputs.push_back(0xffffffffu);
1092 inputs.push_back(0x0001fffeu);
1096 inputs.push_back(rnd.getUint32());
1098 outputs.resize(inputs.size());
1100 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
1103 const void* in = &inputs[0];
1107 m_executor->execute((int)inputs.size(), &in, &out);
1112 const int numValues = (int)inputs.size();
1116 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++)
1118 const deUint8 in0 = (deUint8)(inputs[valNdx] & 0xff);
1119 const deUint8 in1 = (deUint8)((inputs[valNdx] >> 8) & 0xff);
1120 const deUint8 in2 = (deUint8)((inputs[valNdx] >> 16) & 0xff);
1121 const deUint8 in3 = (deUint8)(inputs[valNdx] >> 24);
1141 << " expected unpackUnorm4x8(" << tcu::toHex(inputs[valNdx]) << ") = "