Lines Matching refs:inputs
151 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_FLOAT_VEC2, precision))); in PackSnorm2x16Case()
160 std::vector<tcu::Vec2> inputs; in iterate() local
167 inputs.push_back(tcu::Vec2(0.0f, 0.0f)); in iterate()
168 inputs.push_back(tcu::Vec2(-1.0f, 1.0f)); in iterate()
169 inputs.push_back(tcu::Vec2(0.5f, -0.5f)); in iterate()
170 inputs.push_back(tcu::Vec2(-1.5f, 1.5f)); in iterate()
171 inputs.push_back(tcu::Vec2(0.25f, -0.75f)); in iterate()
178 inputs.push_back(tcu::Vec2(x, y)); in iterate()
186 inputs.push_back(tcu::Vec2(x, y)); in iterate()
189 outputs.resize(inputs.size()); in iterate()
191 …m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input valu… in iterate()
194 const void* in = &inputs[0]; in iterate()
198 m_executor->execute((int)inputs.size(), &in, &out); in iterate()
203 const int numValues = (int)inputs.size(); in iterate()
209 …const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f,… in iterate()
210 …const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f,… in iterate()
223 << ", expected packSnorm2x16(" << inputs[valNdx] << ") = " << tcu::toHex(ref) in iterate()
254 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_UINT, glu::PRECISION_HIGHP))); in UnpackSnorm2x16Case()
264 std::vector<deUint32> inputs; in iterate() local
267 inputs.push_back(0x00000000u); in iterate()
268 inputs.push_back(0x7fff8000u); in iterate()
269 inputs.push_back(0x80007fffu); in iterate()
270 inputs.push_back(0xffffffffu); in iterate()
271 inputs.push_back(0x0001fffeu); in iterate()
275 inputs.push_back(rnd.getUint32()); in iterate()
277 outputs.resize(inputs.size()); in iterate()
279 …m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input valu… in iterate()
282 const void* in = &inputs[0]; in iterate()
286 m_executor->execute((int)inputs.size(), &in, &out); in iterate()
291 const int numValues = (int)inputs.size(); in iterate()
295 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++) in iterate()
297 const deInt16 in0 = (deInt16)(deUint16)(inputs[valNdx] & 0xffff); in iterate()
298 const deInt16 in1 = (deInt16)(deUint16)(inputs[valNdx] >> 16); in iterate()
312 << " expected unpackSnorm2x16(" << tcu::toHex(inputs[valNdx]) << ") = " in iterate()
342 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_FLOAT_VEC2, precision))); in PackUnorm2x16Case()
351 std::vector<tcu::Vec2> inputs; in iterate() local
358 inputs.push_back(tcu::Vec2(0.0f, 0.0f)); in iterate()
359 inputs.push_back(tcu::Vec2(0.5f, 1.0f)); in iterate()
360 inputs.push_back(tcu::Vec2(1.0f, 0.5f)); in iterate()
361 inputs.push_back(tcu::Vec2(-0.5f, 1.5f)); in iterate()
362 inputs.push_back(tcu::Vec2(0.25f, 0.75f)); in iterate()
369 inputs.push_back(tcu::Vec2(x, y)); in iterate()
377 inputs.push_back(tcu::Vec2(x, y)); in iterate()
380 outputs.resize(inputs.size()); in iterate()
382 …m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input valu… in iterate()
385 const void* in = &inputs[0]; in iterate()
389 m_executor->execute((int)inputs.size(), &in, &out); in iterate()
394 const int numValues = (int)inputs.size(); in iterate()
398 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++) in iterate()
400 …const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), 0.0f, … in iterate()
401 …const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), 0.0f, … in iterate()
414 << ", expected packUnorm2x16(" << inputs[valNdx] << ") = " << tcu::toHex(ref) in iterate()
445 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_UINT, glu::PRECISION_HIGHP))); in UnpackUnorm2x16Case()
455 std::vector<deUint32> inputs; in iterate() local
458 inputs.push_back(0x00000000u); in iterate()
459 inputs.push_back(0x7fff8000u); in iterate()
460 inputs.push_back(0x80007fffu); in iterate()
461 inputs.push_back(0xffffffffu); in iterate()
462 inputs.push_back(0x0001fffeu); in iterate()
466 inputs.push_back(rnd.getUint32()); in iterate()
468 outputs.resize(inputs.size()); in iterate()
470 …m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input valu… in iterate()
473 const void* in = &inputs[0]; in iterate()
477 m_executor->execute((int)inputs.size(), &in, &out); in iterate()
482 const int numValues = (int)inputs.size(); in iterate()
486 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++) in iterate()
488 const deUint16 in0 = (deUint16)(inputs[valNdx] & 0xffff); in iterate()
489 const deUint16 in1 = (deUint16)(inputs[valNdx] >> 16); in iterate()
503 << " expected unpackUnorm2x16(" << tcu::toHex(inputs[valNdx]) << ") = " in iterate()
532 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_FLOAT_VEC2, glu::PRECISION_HIGHP))); in PackHalf2x16Case()
542 std::vector<tcu::Vec2> inputs; in iterate() local
546 inputs.push_back(tcu::Vec2(0.0f, 0.0f)); in iterate()
547 inputs.push_back(tcu::Vec2(0.5f, 1.0f)); in iterate()
548 inputs.push_back(tcu::Vec2(1.0f, 0.5f)); in iterate()
549 inputs.push_back(tcu::Vec2(-0.5f, 1.5f)); in iterate()
550 inputs.push_back(tcu::Vec2(0.25f, 0.75f)); in iterate()
568 inputs.push_back(v); in iterate()
573 for (std::vector<tcu::Vec2>::iterator inVal = inputs.begin(); inVal != inputs.end(); ++inVal) in iterate()
576 outputs.resize(inputs.size()); in iterate()
578 …m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input valu… in iterate()
581 const void* in = &inputs[0]; in iterate()
585 m_executor->execute((int)inputs.size(), &in, &out); in iterate()
590 const int numValues = (int)inputs.size(); in iterate()
594 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++) in iterate()
596 const deUint16 ref0 = (deUint16)tcu::Float16(inputs[valNdx].x()).bits(); in iterate()
597 const deUint16 ref1 = (deUint16)tcu::Float16(inputs[valNdx].y()).bits(); in iterate()
610 << ", expected packHalf2x16(" << inputs[valNdx] << ") = " << tcu::toHex(ref) in iterate()
638 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_UINT, glu::PRECISION_HIGHP))); in UnpackHalf2x16Case()
648 std::vector<deUint32> inputs; in iterate() local
652 inputs.push_back((tcu::Float16( 0.0f).bits() << 16) | tcu::Float16( 1.0f).bits()); in iterate()
653 inputs.push_back((tcu::Float16( 1.0f).bits() << 16) | tcu::Float16( 0.0f).bits()); in iterate()
654 inputs.push_back((tcu::Float16(-1.0f).bits() << 16) | tcu::Float16( 0.5f).bits()); in iterate()
655 inputs.push_back((tcu::Float16( 0.5f).bits() << 16) | tcu::Float16(-0.5f).bits()); in iterate()
675 inputs.push_back(inVal); in iterate()
679 outputs.resize(inputs.size()); in iterate()
681 …m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input valu… in iterate()
684 const void* in = &inputs[0]; in iterate()
688 m_executor->execute((int)inputs.size(), &in, &out); in iterate()
693 const int numValues = (int)inputs.size(); in iterate()
697 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++) in iterate()
699 const deUint16 in0 = (deUint16)(inputs[valNdx] & 0xffff); in iterate()
700 const deUint16 in1 = (deUint16)(inputs[valNdx] >> 16); in iterate()
719 << " expected unpackHalf2x16(" << tcu::toHex(inputs[valNdx]) << ") = " in iterate()