Lines Matching refs:gls
52 static void addTestIterations (gls::DrawTest* test, const gls::DrawTestSpec& baseSpec, TestIteratio… in addTestIterations()
54 gls::DrawTestSpec spec(baseSpec); in addTestIterations()
71 static void genBasicSpec (gls::DrawTestSpec& spec, gls::DrawTestSpec::DrawMethod method) in genBasicSpec()
74 spec.primitive = gls::DrawTestSpec::PRIMITIVE_TRIANGLES; in genBasicSpec()
77 spec.indexType = gls::DrawTestSpec::INDEXTYPE_LAST; in genBasicSpec()
79 spec.indexStorage = gls::DrawTestSpec::STORAGE_LAST; in genBasicSpec()
87 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in genBasicSpec()
88 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in genBasicSpec()
89 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in genBasicSpec()
90 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in genBasicSpec()
98 spec.attribs[1].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in genBasicSpec()
99 spec.attribs[1].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in genBasicSpec()
100 spec.attribs[1].storage = gls::DrawTestSpec::STORAGE_BUFFER; in genBasicSpec()
101 spec.attribs[1].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in genBasicSpec()
114 … char* descr, gls::DrawTestSpec::DrawMethod drawMethod, gls::DrawTestSpec::Primitive primitive, gl…
120 gls::DrawTestSpec::DrawMethod m_method;
121 gls::DrawTestSpec::Primitive m_primitive;
122 gls::DrawTestSpec::IndexType m_indexType;
123 gls::DrawTestSpec::Storage m_indexStorage;
126 … char* descr, gls::DrawTestSpec::DrawMethod drawMethod, gls::DrawTestSpec::Primitive primitive, gl… in AttributeGroup()
143 …gls::DrawTest* test = new gls::DrawTest(m_testCtx, m_context.getRenderContext(), "single_attri… in init()
144 gls::DrawTestSpec spec; in init()
160 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
161 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
162 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
163 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
178 …gls::DrawTest* test = new gls::DrawTest(m_testCtx, m_context.getRenderContext(), "multiple_att… in init()
179 gls::DrawTestSpec spec; in init()
195 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
196 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
197 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
198 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
206 spec.attribs[1].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
207 spec.attribs[1].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
208 spec.attribs[1].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
209 spec.attribs[1].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
224 …gls::DrawTest* test = new gls::DrawTest(m_testCtx, m_context.getRenderContext(), "default_attr… in init()
225 gls::DrawTestSpec spec; in init()
241 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
242 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
243 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
244 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
254 gls::DrawTestSpec::InputType input; in init()
255 gls::DrawTestSpec::OutputType output; in init()
259 { gls::DrawTestSpec::INPUTTYPE_FLOAT, gls::DrawTestSpec::OUTPUTTYPE_VEC2, 4 }, in init()
260 { gls::DrawTestSpec::INPUTTYPE_FLOAT, gls::DrawTestSpec::OUTPUTTYPE_VEC4, 2 }, in init()
265 …d::string desc = gls::DrawTestSpec::inputTypeToString(iopairs[ioNdx].input) + de::toString(iopairs… in init()
269 spec.attribs[1].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
270 spec.attribs[1].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
288 …IndexGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMethod …
294 gls::DrawTestSpec::DrawMethod m_method;
297 IndexGroup::IndexGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::D… in IndexGroup()
311 gls::DrawTestSpec::Storage storage; in init()
312 gls::DrawTestSpec::IndexType type; in init()
319 { gls::DrawTestSpec::STORAGE_USER, gls::DrawTestSpec::INDEXTYPE_BYTE, true, { 0, 1, -1 } }, in init()
320 { gls::DrawTestSpec::STORAGE_USER, gls::DrawTestSpec::INDEXTYPE_SHORT, true, { 0, 2, -1 } }, in init()
322 { gls::DrawTestSpec::STORAGE_USER, gls::DrawTestSpec::INDEXTYPE_SHORT, false, { 1, 3, -1 } }, in init()
324 { gls::DrawTestSpec::STORAGE_BUFFER, gls::DrawTestSpec::INDEXTYPE_BYTE, true, { 0, 1, -1 } }, in init()
325 { gls::DrawTestSpec::STORAGE_BUFFER, gls::DrawTestSpec::INDEXTYPE_SHORT, true, { 0, 2, -1 } }, in init()
328 gls::DrawTestSpec spec; in init()
343 tcu::TestCaseGroup* group = (indexTest.storage == gls::DrawTestSpec::STORAGE_USER) in init()
347 …const std::string name = std::string("index_") + gls::DrawTestSpec::indexTypeToString(indexTes… in init()
348 …:string desc = std::string("index ") + gls::DrawTestSpec::indexTypeToString(indexTest.type) + … in init()
349 …de::MovePtr<gls::DrawTest> test (new gls::DrawTest(m_testCtx, m_context.getRenderContext(), name… in init()
361 DE_ASSERT(spec.isCompatibilityTest() != gls::DrawTestSpec::COMPATIBILITY_UNALIGNED_OFFSET); in init()
362 DE_ASSERT(spec.isCompatibilityTest() != gls::DrawTestSpec::COMPATIBILITY_UNALIGNED_STRIDE); in init()
371 …FirstGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMethod …
377 gls::DrawTestSpec::DrawMethod m_method;
380 FirstGroup::FirstGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::D… in FirstGroup()
397 gls::DrawTestSpec spec; in init()
404 …gls::DrawTest* test = new gls::DrawTest(m_testCtx, m_context.getRenderContext(), name.c_str(), de… in init()
417 …MethodGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMetho…
423 gls::DrawTestSpec::DrawMethod m_method;
426 MethodGroup::MethodGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec:… in MethodGroup()
438 …method == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS) || (m_method == gls::DrawTestSpec::DRAWMETHO… in init()
439 …const bool hasFirst = (m_method == gls::DrawTestSpec::DRAWMETHOD_DRAWARRAYS) || (m_method == gls:… in init()
441 const gls::DrawTestSpec::Primitive primitive[] = in init()
443 gls::DrawTestSpec::PRIMITIVE_POINTS, in init()
444 gls::DrawTestSpec::PRIMITIVE_TRIANGLES, in init()
445 gls::DrawTestSpec::PRIMITIVE_TRIANGLE_FAN, in init()
446 gls::DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP, in init()
447 gls::DrawTestSpec::PRIMITIVE_LINES, in init()
448 gls::DrawTestSpec::PRIMITIVE_LINE_STRIP, in init()
449 gls::DrawTestSpec::PRIMITIVE_LINE_LOOP in init()
461 if (m_method != gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED) in init()
467 const std::string name = gls::DrawTestSpec::primitiveToString(primitive[ndx]); in init()
468 const std::string desc = gls::DrawTestSpec::primitiveToString(primitive[ndx]); in init()
470 …t, name.c_str(), desc.c_str(), m_method, primitive[ndx], gls::DrawTestSpec::INDEXTYPE_SHORT, gls::… in init()
521 static const gls::DrawTestSpec::Primitive primitives[] = in init()
523 gls::DrawTestSpec::PRIMITIVE_POINTS, in init()
524 gls::DrawTestSpec::PRIMITIVE_TRIANGLES, in init()
525 gls::DrawTestSpec::PRIMITIVE_TRIANGLE_FAN, in init()
526 gls::DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP, in init()
527 gls::DrawTestSpec::PRIMITIVE_LINES, in init()
528 gls::DrawTestSpec::PRIMITIVE_LINE_STRIP, in init()
529 gls::DrawTestSpec::PRIMITIVE_LINE_LOOP in init()
533 static const gls::DrawTestSpec::DrawMethod drawMethods[] = in init()
535 gls::DrawTestSpec::DRAWMETHOD_DRAWARRAYS, in init()
536 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS, in init()
540 static const gls::DrawTestSpec::IndexType indexTypes[] = in init()
542 gls::DrawTestSpec::INDEXTYPE_BYTE, in init()
543 gls::DrawTestSpec::INDEXTYPE_SHORT, in init()
547 static const gls::DrawTestSpec::Storage storages[] = in init()
549 gls::DrawTestSpec::STORAGE_USER, in init()
550 gls::DrawTestSpec::STORAGE_BUFFER, in init()
554 static const gls::DrawTestSpec::InputType inputTypes[] = in init()
556 gls::DrawTestSpec::INPUTTYPE_FLOAT, in init()
557 gls::DrawTestSpec::INPUTTYPE_FIXED, in init()
558 gls::DrawTestSpec::INPUTTYPE_BYTE, in init()
559 gls::DrawTestSpec::INPUTTYPE_SHORT, in init()
560 gls::DrawTestSpec::INPUTTYPE_UNSIGNED_BYTE, in init()
561 gls::DrawTestSpec::INPUTTYPE_UNSIGNED_SHORT in init()
565 static const gls::DrawTestSpec::OutputType outputTypes[] = in init()
567 gls::DrawTestSpec::OUTPUTTYPE_FLOAT, in init()
568 gls::DrawTestSpec::OUTPUTTYPE_VEC2, in init()
569 gls::DrawTestSpec::OUTPUTTYPE_VEC3, in init()
570 gls::DrawTestSpec::OUTPUTTYPE_VEC4, in init()
574 static const gls::DrawTestSpec::Usage usages[] = in init()
576 gls::DrawTestSpec::USAGE_STATIC_DRAW, in init()
577 gls::DrawTestSpec::USAGE_DYNAMIC_DRAW, in init()
578 gls::DrawTestSpec::USAGE_STREAM_DRAW, in init()
595 gls::DrawTestSpec spec; in init()
598 …spec.primitive = random.chooseWeighted<gls::DrawTestSpec::Primitive> (DE_ARRAY_BEGIN(primitives… in init()
600 …spec.drawMethod = random.chooseWeighted<gls::DrawTestSpec::DrawMethod> (DE_ARRAY_BEGIN(drawMeth… in init()
601 …spec.indexType = random.chooseWeighted<gls::DrawTestSpec::IndexType> (DE_ARRAY_BEGIN(indexTypes… in init()
603 …spec.indexStorage = random.chooseWeighted<gls::DrawTestSpec::Storage> (DE_ARRAY_BEGIN(storages)… in init()
616 gls::DrawTestSpec::AttributeSpec attribSpec; in init()
618 …attribSpec.inputType = random.chooseWeighted<gls::DrawTestSpec::InputType> (DE_ARRAY_BEGIN(input… in init()
619 …attribSpec.outputType = random.chooseWeighted<gls::DrawTestSpec::OutputType> (DE_ARRAY_BEGIN(out… in init()
620 …attribSpec.storage = random.chooseWeighted<gls::DrawTestSpec::Storage> (DE_ARRAY_BEGIN(storage… in init()
621 …attribSpec.usage = random.chooseWeighted<gls::DrawTestSpec::Usage> (DE_ARRAY_BEGIN(usages), … in init()
633 …if (attribSpec.stride && attribSpec.componentCount * gls::DrawTestSpec::inputTypeSize(attribSpec.i… in init()
645 if (spec.primitive != gls::DrawTestSpec::PRIMITIVE_POINTS) in init()
651 …f (spec.drawMethod == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED && spec.indexMin == spec.i… in init()
653 if (spec.attribs[0].useDefaultAttribute && spec.primitive != gls::DrawTestSpec::PRIMITIVE_POINTS) in init()
657 …primitive == gls::DrawTestSpec::PRIMITIVE_TRIANGLES || spec.primitive == gls::DrawTestSpec::PRIMIT… in init()
661 …ype == gls::DrawTestSpec::OUTPUTTYPE_FLOAT || spec.attribs[0].outputType == gls::DrawTestSpec::OUT… in init()
663 …if (spec.drawMethod == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED && (spec.indexMax - spec.… in init()
678 if (spec.isCompatibilityTest() != gls::DrawTestSpec::COMPATIBILITY_UNALIGNED_OFFSET && in init()
679 spec.isCompatibilityTest() != gls::DrawTestSpec::COMPATIBILITY_UNALIGNED_STRIDE) in init()
680 …this->addChild(new gls::DrawTest(m_testCtx, m_context.getRenderContext(), spec, de::toString(inser… in init()
704 const gls::DrawTestSpec::DrawMethod basicMethods[] = in init()
706 gls::DrawTestSpec::DRAWMETHOD_DRAWARRAYS, in init()
707 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS, in init()
712 std::string name = gls::DrawTestSpec::drawMethodToString(basicMethods[ndx]); in init()
713 std::string desc = gls::DrawTestSpec::drawMethodToString(basicMethods[ndx]); in init()