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