Lines Matching refs:DrawTestSpec

54 static void addTestIterations (gls::DrawTest* test, const gls::DrawTestSpec& baseSpec, TestIteratio…  in addTestIterations()
56 gls::DrawTestSpec spec(baseSpec); in addTestIterations()
91 if (spec.primitive == gls::DrawTestSpec::PRIMITIVE_POINTS) in addTestIterations()
102 static void genBasicSpec (gls::DrawTestSpec& spec, gls::DrawTestSpec::DrawMethod method) in genBasicSpec()
105 spec.primitive = gls::DrawTestSpec::PRIMITIVE_TRIANGLES; in genBasicSpec()
108 spec.indexType = gls::DrawTestSpec::INDEXTYPE_LAST; in genBasicSpec()
110 spec.indexStorage = gls::DrawTestSpec::STORAGE_LAST; in genBasicSpec()
118 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in genBasicSpec()
119 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in genBasicSpec()
120 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in genBasicSpec()
121 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in genBasicSpec()
129 spec.attribs[1].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in genBasicSpec()
130 spec.attribs[1].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in genBasicSpec()
131 spec.attribs[1].storage = gls::DrawTestSpec::STORAGE_BUFFER; in genBasicSpec()
132 spec.attribs[1].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in genBasicSpec()
144 …cr, gls::DrawTestSpec::DrawMethod drawMethod, gls::DrawTestSpec::Primitive primitive, gls::DrawTes…
150 gls::DrawTestSpec::DrawMethod m_method;
151 gls::DrawTestSpec::Primitive m_primitive;
152 gls::DrawTestSpec::IndexType m_indexType;
153 gls::DrawTestSpec::Storage m_indexStorage;
156 …cr, gls::DrawTestSpec::DrawMethod drawMethod, gls::DrawTestSpec::Primitive primitive, gls::DrawTes… in AttributeGroup()
172 const bool instanced = (m_method == gls::DrawTestSpec::DRAWMETHOD_DRAWARRAYS_INSTANCED) || in init()
173 (m_method == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INSTANCED); in init()
174 const bool ranged = (m_method == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED); in init()
180 gls::DrawTestSpec spec; in init()
196 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
197 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
198 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
199 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
215 gls::DrawTestSpec spec; in init()
231 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
232 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
233 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
234 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
242 spec.attribs[1].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
243 spec.attribs[1].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
244 spec.attribs[1].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
245 spec.attribs[1].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
261 gls::DrawTestSpec spec; in init()
277 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
278 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
279 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
280 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
289 spec.attribs[1].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
290 spec.attribs[1].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
291 spec.attribs[1].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
292 spec.attribs[1].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
302 spec.attribs[2].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
303 spec.attribs[2].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
304 spec.attribs[2].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
305 spec.attribs[2].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
321 gls::DrawTestSpec spec; in init()
337 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
338 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
339 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
340 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
350 gls::DrawTestSpec::InputType input; in init()
351 gls::DrawTestSpec::OutputType output; in init()
355 { gls::DrawTestSpec::INPUTTYPE_FLOAT, gls::DrawTestSpec::OUTPUTTYPE_VEC2, 4 }, in init()
356 { gls::DrawTestSpec::INPUTTYPE_FLOAT, gls::DrawTestSpec::OUTPUTTYPE_VEC4, 2 }, in init()
357 { gls::DrawTestSpec::INPUTTYPE_INT, gls::DrawTestSpec::OUTPUTTYPE_IVEC3, 4 }, in init()
358 { gls::DrawTestSpec::INPUTTYPE_UNSIGNED_INT, gls::DrawTestSpec::OUTPUTTYPE_UVEC2, 4 }, in init()
363 …desc = gls::DrawTestSpec::inputTypeToString(iopairs[ioNdx].input) + de::toString(iopairs[ioNdx].co… in init()
367 spec.attribs[1].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
368 spec.attribs[1].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
386 …IndexGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMethod …
392 gls::DrawTestSpec::DrawMethod m_method;
395 IndexGroup::IndexGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::D… in IndexGroup()
409 gls::DrawTestSpec::Storage storage; in init()
410 gls::DrawTestSpec::IndexType type; in init()
417 { gls::DrawTestSpec::STORAGE_USER, gls::DrawTestSpec::INDEXTYPE_BYTE, true, { 0, 1, -1 } }, in init()
418 { gls::DrawTestSpec::STORAGE_USER, gls::DrawTestSpec::INDEXTYPE_SHORT, true, { 0, 2, -1 } }, in init()
419 { gls::DrawTestSpec::STORAGE_USER, gls::DrawTestSpec::INDEXTYPE_INT, true, { 0, 4, -1 } }, in init()
421 { gls::DrawTestSpec::STORAGE_USER, gls::DrawTestSpec::INDEXTYPE_SHORT, false, { 1, 3, -1 } }, in init()
422 { gls::DrawTestSpec::STORAGE_USER, gls::DrawTestSpec::INDEXTYPE_INT, false, { 2, 3, -1 } }, in init()
424 { gls::DrawTestSpec::STORAGE_BUFFER, gls::DrawTestSpec::INDEXTYPE_BYTE, true, { 0, 1, -1 } }, in init()
425 { gls::DrawTestSpec::STORAGE_BUFFER, gls::DrawTestSpec::INDEXTYPE_SHORT, true, { 0, 2, -1 } }, in init()
426 { gls::DrawTestSpec::STORAGE_BUFFER, gls::DrawTestSpec::INDEXTYPE_INT, true, { 0, 4, -1 } }, in init()
429 gls::DrawTestSpec spec; in init()
444 tcu::TestCaseGroup* group = (indexTest.storage == gls::DrawTestSpec::STORAGE_USER) in init()
448 …const std::string name = std::string("index_") + gls::DrawTestSpec::indexTypeToString(indexTes… in init()
449 … desc = std::string("index ") + gls::DrawTestSpec::indexTypeToString(indexTest.type) + " in " + g… in init()
462 DE_ASSERT(spec.isCompatibilityTest() != gls::DrawTestSpec::COMPATIBILITY_UNALIGNED_OFFSET); in init()
463 DE_ASSERT(spec.isCompatibilityTest() != gls::DrawTestSpec::COMPATIBILITY_UNALIGNED_STRIDE); in init()
472 …FirstGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMethod …
478 gls::DrawTestSpec::DrawMethod m_method;
481 FirstGroup::FirstGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::D… in FirstGroup()
498 gls::DrawTestSpec spec; in init()
518 …MethodGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMetho…
524 gls::DrawTestSpec::DrawMethod m_method;
527 MethodGroup::MethodGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec:… in MethodGroup()
539 …gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS) || (m_method == gls::DrawTestSpec::DRAWMETHOD_DRAWELEM… in init()
540 …const bool hasFirst = (m_method == gls::DrawTestSpec::DRAWMETHOD_DRAWARRAYS) || (m_method == gls:… in init()
542 const gls::DrawTestSpec::Primitive primitive[] = in init()
544 gls::DrawTestSpec::PRIMITIVE_POINTS, in init()
545 gls::DrawTestSpec::PRIMITIVE_TRIANGLES, in init()
546 gls::DrawTestSpec::PRIMITIVE_TRIANGLE_FAN, in init()
547 gls::DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP, in init()
548 gls::DrawTestSpec::PRIMITIVE_LINES, in init()
549 gls::DrawTestSpec::PRIMITIVE_LINE_STRIP, in init()
550 gls::DrawTestSpec::PRIMITIVE_LINE_LOOP in init()
562 if (m_method != gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED) in init()
568 const std::string name = gls::DrawTestSpec::primitiveToString(primitive[ndx]); in init()
569 const std::string desc = gls::DrawTestSpec::primitiveToString(primitive[ndx]); in init()
571 …str(), desc.c_str(), m_method, primitive[ndx], gls::DrawTestSpec::INDEXTYPE_SHORT, gls::DrawTestSp… in init()
933 static const gls::DrawTestSpec::Primitive primitives[] = in init()
935 gls::DrawTestSpec::PRIMITIVE_POINTS, in init()
936 gls::DrawTestSpec::PRIMITIVE_TRIANGLES, in init()
937 gls::DrawTestSpec::PRIMITIVE_TRIANGLE_FAN, in init()
938 gls::DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP, in init()
939 gls::DrawTestSpec::PRIMITIVE_LINES, in init()
940 gls::DrawTestSpec::PRIMITIVE_LINE_STRIP, in init()
941 gls::DrawTestSpec::PRIMITIVE_LINE_LOOP in init()
945 static const gls::DrawTestSpec::DrawMethod drawMethods[] = in init()
947 gls::DrawTestSpec::DRAWMETHOD_DRAWARRAYS, in init()
948 gls::DrawTestSpec::DRAWMETHOD_DRAWARRAYS_INSTANCED, in init()
949 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS, in init()
950 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED, in init()
951 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INSTANCED in init()
955 static const gls::DrawTestSpec::IndexType indexTypes[] = in init()
957 gls::DrawTestSpec::INDEXTYPE_BYTE, in init()
958 gls::DrawTestSpec::INDEXTYPE_SHORT, in init()
959 gls::DrawTestSpec::INDEXTYPE_INT, in init()
963 static const gls::DrawTestSpec::Storage storages[] = in init()
965 gls::DrawTestSpec::STORAGE_USER, in init()
966 gls::DrawTestSpec::STORAGE_BUFFER, in init()
970 static const gls::DrawTestSpec::InputType inputTypes[] = in init()
972 gls::DrawTestSpec::INPUTTYPE_FLOAT, in init()
973 gls::DrawTestSpec::INPUTTYPE_FIXED, in init()
974 gls::DrawTestSpec::INPUTTYPE_BYTE, in init()
975 gls::DrawTestSpec::INPUTTYPE_SHORT, in init()
976 gls::DrawTestSpec::INPUTTYPE_UNSIGNED_BYTE, in init()
977 gls::DrawTestSpec::INPUTTYPE_UNSIGNED_SHORT, in init()
978 gls::DrawTestSpec::INPUTTYPE_INT, in init()
979 gls::DrawTestSpec::INPUTTYPE_UNSIGNED_INT, in init()
980 gls::DrawTestSpec::INPUTTYPE_HALF, in init()
981 gls::DrawTestSpec::INPUTTYPE_UNSIGNED_INT_2_10_10_10, in init()
982 gls::DrawTestSpec::INPUTTYPE_INT_2_10_10_10, in init()
986 static const gls::DrawTestSpec::OutputType outputTypes[] = in init()
988 gls::DrawTestSpec::OUTPUTTYPE_FLOAT, in init()
989 gls::DrawTestSpec::OUTPUTTYPE_VEC2, in init()
990 gls::DrawTestSpec::OUTPUTTYPE_VEC3, in init()
991 gls::DrawTestSpec::OUTPUTTYPE_VEC4, in init()
992 gls::DrawTestSpec::OUTPUTTYPE_INT, in init()
993 gls::DrawTestSpec::OUTPUTTYPE_UINT, in init()
994 gls::DrawTestSpec::OUTPUTTYPE_IVEC2, in init()
995 gls::DrawTestSpec::OUTPUTTYPE_IVEC3, in init()
996 gls::DrawTestSpec::OUTPUTTYPE_IVEC4, in init()
997 gls::DrawTestSpec::OUTPUTTYPE_UVEC2, in init()
998 gls::DrawTestSpec::OUTPUTTYPE_UVEC3, in init()
999 gls::DrawTestSpec::OUTPUTTYPE_UVEC4, in init()
1003 static const gls::DrawTestSpec::Usage usages[] = in init()
1005 gls::DrawTestSpec::USAGE_DYNAMIC_DRAW, in init()
1006 gls::DrawTestSpec::USAGE_STATIC_DRAW, in init()
1007 gls::DrawTestSpec::USAGE_STREAM_DRAW, in init()
1008 gls::DrawTestSpec::USAGE_STREAM_READ, in init()
1009 gls::DrawTestSpec::USAGE_STREAM_COPY, in init()
1010 gls::DrawTestSpec::USAGE_STATIC_READ, in init()
1011 gls::DrawTestSpec::USAGE_STATIC_COPY, in init()
1012 gls::DrawTestSpec::USAGE_DYNAMIC_READ, in init()
1013 gls::DrawTestSpec::USAGE_DYNAMIC_COPY, in init()
1030 gls::DrawTestSpec spec; in init()
1033 …spec.primitive = random.chooseWeighted<gls::DrawTestSpec::Primitive> (DE_ARRAY_BEGIN(primitives… in init()
1035 …spec.drawMethod = random.chooseWeighted<gls::DrawTestSpec::DrawMethod> (DE_ARRAY_BEGIN(drawMeth… in init()
1036 …spec.indexType = random.chooseWeighted<gls::DrawTestSpec::IndexType> (DE_ARRAY_BEGIN(indexTypes… in init()
1038 …spec.indexStorage = random.chooseWeighted<gls::DrawTestSpec::Storage> (DE_ARRAY_BEGIN(storages)… in init()
1051 gls::DrawTestSpec::AttributeSpec attribSpec; in init()
1053 …attribSpec.inputType = random.chooseWeighted<gls::DrawTestSpec::InputType> (DE_ARRAY_BEGIN(input… in init()
1054 …attribSpec.outputType = random.chooseWeighted<gls::DrawTestSpec::OutputType> (DE_ARRAY_BEGIN(out… in init()
1055 …attribSpec.storage = random.chooseWeighted<gls::DrawTestSpec::Storage> (DE_ARRAY_BEGIN(storage… in init()
1056 …attribSpec.usage = random.chooseWeighted<gls::DrawTestSpec::Usage> (DE_ARRAY_BEGIN(usages), … in init()
1068 …if (attribSpec.stride && attribSpec.componentCount * gls::DrawTestSpec::inputTypeSize(attribSpec.i… in init()
1080 if (spec.primitive != gls::DrawTestSpec::PRIMITIVE_POINTS) in init()
1086 …rawMethod == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED && spec.indexMin == spec.indexMax &… in init()
1088 if (spec.attribs[0].useDefaultAttribute && spec.primitive != gls::DrawTestSpec::PRIMITIVE_POINTS) in init()
1092 … == gls::DrawTestSpec::PRIMITIVE_TRIANGLES || spec.primitive == gls::DrawTestSpec::PRIMITIVE_TRIAN… in init()
1096 …::DrawTestSpec::OUTPUTTYPE_FLOAT || spec.attribs[0].outputType == gls::DrawTestSpec::OUTPUTTYPE_IN… in init()
1098 …if (spec.drawMethod == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED && (spec.indexMax - spec.… in init()
1112 if (spec.isCompatibilityTest() != gls::DrawTestSpec::COMPATIBILITY_UNALIGNED_OFFSET && in init()
1113 spec.isCompatibilityTest() != gls::DrawTestSpec::COMPATIBILITY_UNALIGNED_STRIDE && in init()
1141 const gls::DrawTestSpec::DrawMethod basicMethods[] = in init()
1143 gls::DrawTestSpec::DRAWMETHOD_DRAWARRAYS, in init()
1144 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS, in init()
1145 gls::DrawTestSpec::DRAWMETHOD_DRAWARRAYS_INSTANCED, in init()
1146 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INSTANCED, in init()
1147 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED, in init()
1152 const std::string name = gls::DrawTestSpec::drawMethodToString(basicMethods[ndx]); in init()
1153 const std::string desc = gls::DrawTestSpec::drawMethodToString(basicMethods[ndx]); in init()