Home | History | Annotate | Download | only in shaderexecutor

Lines Matching refs:inputs

166 		std::vector<tcu::Vec2>		inputs;
173 inputs.push_back(tcu::Vec2(0.0f, 0.0f));
174 inputs.push_back(tcu::Vec2(-1.0f, 1.0f));
175 inputs.push_back(tcu::Vec2(0.5f, -0.5f));
176 inputs.push_back(tcu::Vec2(-1.5f, 1.5f));
177 inputs.push_back(tcu::Vec2(0.25f, -0.75f));
184 inputs.push_back(tcu::Vec2(x, y));
192 inputs.push_back(tcu::Vec2(x, y));
195 outputs.resize(inputs.size());
197 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
200 const void* in = &inputs[0];
203 m_executor->execute((int)inputs.size(), &in, &out);
208 const int numValues = (int)inputs.size();
214 const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f, 1.0f) * 32767.0f), -(1<<15), (1<<15)-1);
215 const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f, 1.0f) * 32767.0f), -(1<<15), (1<<15)-1);
228 << ", expected packSnorm2x16(" << inputs[valNdx] << ") = " << tcu::toHex(ref)
261 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_FLOAT_VEC2, precision)));
288 std::vector<deUint32> inputs;
291 inputs.push_back(0x00000000u);
292 inputs.push_back(0x7fff8000u);
293 inputs.push_back(0x80007fffu);
294 inputs.push_back(0xffffffffu);
295 inputs.push_back(0x0001fffeu);
299 inputs.push_back(rnd.getUint32());
301 outputs.resize(inputs.size());
303 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
306 const void* in = &inputs[0];
309 m_executor->execute((int)inputs.size(), &in, &out);
314 const int numValues = (int)inputs.size();
318 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++)
320 const deInt16 in0 = (deInt16)(deUint16)(inputs[valNdx] & 0xffff);
321 const deInt16 in1 = (deInt16)(deUint16)(inputs[valNdx] >> 16);
335 << " expected unpackSnorm2x16(" << tcu::toHex(inputs[valNdx]) << ") = "
365 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_UINT, glu::PRECISION_HIGHP)));
389 std::vector<tcu::Vec2> inputs;
396 inputs.push_back(tcu::Vec2(0.0f, 0.0f));
397 inputs.push_back(tcu::Vec2(0.5f, 1.0f));
398 inputs.push_back(tcu::Vec2(1.0f, 0.5f));
399 inputs.push_back(tcu::Vec2(-0.5f, 1.5f));
400 inputs.push_back(tcu::Vec2(0.25f, 0.75f));
407 inputs.push_back(tcu::Vec2(x, y));
415 inputs.push_back(tcu::Vec2(x, y));
418 outputs.resize(inputs.size());
420 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
423 const void* in = &inputs[0];
426 m_executor->execute((int)inputs.size(), &in, &out);
431 const int numValues = (int)inputs.size();
435 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++)
437 const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), 0.0f, 1.0f) * 65535.0f), 0, (1<<16)-1);
438 const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), 0.0f, 1.0f) * 65535.0f), 0, (1<<16)-1);
451 << ", expected packUnorm2x16(" << inputs[valNdx] << ") = " << tcu::toHex(ref)
484 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_FLOAT_VEC2, precision)));
511 std::vector<deUint32> inputs;
514 inputs.push_back(0x00000000u);
515 inputs.push_back(0x7fff8000u);
516 inputs.push_back(0x80007fffu);
517 inputs.push_back(0xffffffffu);
518 inputs.push_back(0x0001fffeu);
522 inputs.push_back(rnd.getUint32());
524 outputs.resize(inputs.size());
526 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
529 const void* in = &inputs[0];
532 m_executor->execute((int)inputs.size(), &in, &out);
537 const int numValues = (int)inputs.size();
541 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++)
543 const deUint16 in0 = (deUint16)(inputs[valNdx] & 0xffff);
544 const deUint16 in1 = (deUint16)(inputs[valNdx] >> 16);
558 << " expected unpackUnorm2x16(" << tcu::toHex(inputs[valNdx]) << ") = "
589 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_UINT, glu::PRECISION_HIGHP)));
614 std::vector<tcu::Vec2> inputs;
618 inputs.push_back(tcu::Vec2(0.0f, 0.0f));
619 inputs.push_back(tcu::Vec2(0.5f, 1.0f));
620 inputs.push_back(tcu::Vec2(1.0f, 0.5f));
621 inputs.push_back(tcu::Vec2(-0.5f, 1.5f));
622 inputs.push_back(tcu::Vec2(0.25f, 0.75f));
640 inputs.push_back(v);
645 for (std::vector<tcu::Vec2>::iterator inVal = inputs.begin(); inVal != inputs.end(); ++inVal)
648 outputs.resize(inputs.size());
650 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
653 const void* in = &inputs[0];
656 m_executor->execute((int)inputs.size(), &in, &out);
661 const int numValues = (int)inputs.size();
665 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++)
667 const deUint16 ref0 = (deUint16)tcu::Float16(inputs[valNdx].x()).bits();
668 const deUint16 ref1 = (deUint16)tcu::Float16(inputs[valNdx].y()).bits();
681 << ", expected packHalf2x16(" << inputs[valNdx] << ") = " << tcu::toHex(ref)
710 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_FLOAT_VEC2, glu::PRECISION_HIGHP)));
735 std::vector<deUint32> inputs;
739 inputs.push_back((tcu::Float16( 0.0f).bits() << 16) | tcu::Float16( 1.0f).bits());
740 inputs.push_back((tcu::Float16( 1.0f).bits() << 16) | tcu::Float16( 0.0f).bits());
741 inputs.push_back((tcu::Float16(-1.0f).bits() << 16) | tcu::Float16( 0.5f).bits());
742 inputs.push_back((tcu::Float16( 0.5f).bits() << 16) | tcu::Float16(-0.5f).bits());
762 inputs.push_back(inVal);
766 outputs.resize(inputs.size());
768 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
771 const void* in = &inputs[0];
774 m_executor->execute((int)inputs.size(), &in, &out);
779 const int numValues = (int)inputs.size();
783 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++)
785 const deUint16 in0 = (deUint16)(inputs[valNdx] & 0xffff);
786 const deUint16 in1 = (deUint16)(inputs[valNdx] >> 16);
805 << " expected unpackHalf2x16(" << tcu::toHex(inputs[valNdx]) << ") = "
835 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_UINT, glu::PRECISION_HIGHP)));
860 std::vector<tcu::Vec4> inputs;
867 inputs.push_back(tcu::Vec4(0.0f, 0.0f, 0.0f, 0.0f));
868 inputs.push_back(tcu::Vec4(-1.0f, 1.0f, -1.0f, 1.0f));
869 inputs.push_back(tcu::Vec4(0.5f, -0.5f, -0.5f, 0.5f));
870 inputs.push_back(tcu::Vec4(-1.5f, 1.5f, -1.5f, 1.5f));
871 inputs.push_back(tcu::Vec4(0.25f, -0.75f, -0.25f, 0.75f));
880 inputs.push_back(tcu::Vec4(x, y, z, w));
890 inputs.push_back(tcu::Vec4(x, y, z, w));
893 outputs.resize(inputs.size());
895 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
898 const void* in = &inputs[0];
901 m_executor->execute((int)inputs.size(), &in, &out);
906 const int numValues = (int)inputs.size();
912 const deUint16 ref0 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f, 1.0f) * 127.0f), -(1<<7), (1<<7)-1);
913 const deUint16 ref1 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f, 1.0f) * 127.0f), -(1<<7), (1<<7)-1);
914 const deUint16 ref2 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].z(), -1.0f, 1.0f) * 127.0f), -(1<<7), (1<<7)-1);
915 const deUint16 ref3 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].w(), -1.0f, 1.0f) * 127.0f), -(1<<7), (1<<7)-1);
932 << ", expected packSnorm4x8(" << inputs[valNdx] << ") = " << tcu::toHex(ref)
965 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_FLOAT_VEC4, precision)));
992 std::vector<deUint32> inputs;
995 inputs.push_back(0x00000000u);
996 inputs.push_back(0x7fff8000u);
997 inputs.push_back(0x80007fffu);
998 inputs.push_back(0xffffffffu);
999 inputs.push_back(0x0001fffeu);
1003 inputs.push_back(rnd.getUint32());
1005 outputs.resize(inputs.size());
1007 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
1010 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 deInt8 in0 = (deInt8)(deUint8)(inputs[valNdx] & 0xff);
1025 const deInt8 in1 = (deInt8)(deUint8)((inputs[valNdx] >> 8) & 0xff);
1026 const deInt8 in2 = (deInt8)(deUint8)((inputs[valNdx] >> 16) & 0xff);
1027 const deInt8 in3 = (deInt8)(deUint8)(inputs[valNdx] >> 24);
1047 << " expected unpackSnorm4x8(" << tcu::toHex(inputs[valNdx]) << ") = "
1078 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_UINT, glu::PRECISION_HIGHP)));
1103 std::vector<tcu::Vec4> inputs;
1110 inputs.push_back(tcu::Vec4(0.0f, 0.0f, 0.0f, 0.0f));
1111 inputs.push_back(tcu::Vec4(-1.0f, 1.0f, -1.0f, 1.0f));
1112 inputs.push_back(tcu::Vec4(0.5f, -0.5f, -0.5f, 0.5f));
1113 inputs.push_back(tcu::Vec4(-1.5f, 1.5f, -1.5f, 1.5f));
1114 inputs.push_back(tcu::Vec4(0.25f, -0.75f, -0.25f, 0.75f));
1123 inputs.push_back(tcu::Vec4(x, y, z, w));
1133 inputs.push_back(tcu::Vec4(x, y, z, w));
1136 outputs.resize(inputs.size());
1138 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
1141 const void* in = &inputs[0];
1144 m_executor->execute((int)inputs.size(), &in, &out);
1149 const int numValues = (int)inputs.size();
1153 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++)
1155 const deUint16 ref0 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), 0.0f, 1.0f) * 255.0f), 0, (1<<8)-1);
1156 const deUint16 ref1 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), 0.0f, 1.0f) * 255.0f), 0, (1<<8)-1);
1157 const deUint16 ref2 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].z(), 0.0f, 1.0f) * 255.0f), 0, (1<<8)-1);
1158 const deUint16 ref3 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].w(), 0.0f, 1.0f) * 255.0f), 0, (1<<8)-1);
1175 << ", expected packUnorm4x8(" << inputs[valNdx] << ") = " << tcu::toHex(ref)
1208 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_FLOAT_VEC4, precision)));
1235 std::vector<deUint32> inputs;
1238 inputs.push_back(0x00000000u);
1239 inputs.push_back(0x7fff8000u);
1240 inputs.push_back(0x80007fffu);
1241 inputs.push_back(0xffffffffu);
1242 inputs.push_back(0x0001fffeu);
1246 inputs.push_back(rnd.getUint32());
1248 outputs.resize(inputs.size());
1250 m_testCtx.getLog() << TestLog::Message << "Executing shader for " << inputs.size() << " input values" << tcu::TestLog::EndMessage;
1253 const void* in = &inputs[0];
1256 m_executor->execute((int)inputs.size(), &in, &out);
1261 const int numValues = (int)inputs.size();
1265 for (int valNdx = 0; valNdx < (int)inputs.size(); valNdx++)
1267 const deUint8 in0 = (deUint8)(inputs[valNdx] & 0xff);
1268 const deUint8 in1 = (deUint8)((inputs[valNdx] >> 8) & 0xff);
1269 const deUint8 in2 = (deUint8)((inputs[valNdx] >> 16) & 0xff);
1270 const deUint8 in3 = (deUint8)(inputs[valNdx] >> 24);
1290 << " expected unpackUnorm4x8(" << tcu::toHex(inputs[valNdx]) << ") = "
1320 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_UINT, glu::PRECISION_HIGHP)));