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]) << ") = "