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