Lines Matching refs:spec

54 	gls::DrawTestSpec spec(baseSpec);  in addTestIterations()  local
58 spec.primitiveCount = 1; in addTestIterations()
59 test->addIteration(spec, "draw count = 1"); in addTestIterations()
61 spec.primitiveCount = 5; in addTestIterations()
62 test->addIteration(spec, "draw count = 5"); in addTestIterations()
64 spec.primitiveCount = 25; in addTestIterations()
65 test->addIteration(spec, "draw count = 25"); in addTestIterations()
71 static void genBasicSpec (gls::DrawTestSpec& spec, gls::DrawTestSpec::DrawMethod method) in genBasicSpec() argument
73 spec.apiType = glu::ApiType::es(2,0); in genBasicSpec()
74 spec.primitive = gls::DrawTestSpec::PRIMITIVE_TRIANGLES; in genBasicSpec()
75 spec.primitiveCount = 5; in genBasicSpec()
76 spec.drawMethod = method; in genBasicSpec()
77 spec.indexType = gls::DrawTestSpec::INDEXTYPE_LAST; in genBasicSpec()
78 spec.indexPointerOffset = 0; in genBasicSpec()
79 spec.indexStorage = gls::DrawTestSpec::STORAGE_LAST; in genBasicSpec()
80 spec.first = 0; in genBasicSpec()
81 spec.indexMin = 0; in genBasicSpec()
82 spec.indexMax = 0; in genBasicSpec()
83 spec.instanceCount = 1; in genBasicSpec()
85 spec.attribs.resize(2); 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()
91 spec.attribs[0].componentCount = 4; in genBasicSpec()
92 spec.attribs[0].offset = 0; in genBasicSpec()
93 spec.attribs[0].stride = 0; in genBasicSpec()
94 spec.attribs[0].normalize = false; in genBasicSpec()
95 spec.attribs[0].instanceDivisor = 0; in genBasicSpec()
96 spec.attribs[0].useDefaultAttribute = false; 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()
102 spec.attribs[1].componentCount = 2; in genBasicSpec()
103 spec.attribs[1].offset = 0; in genBasicSpec()
104 spec.attribs[1].stride = 0; in genBasicSpec()
105 spec.attribs[1].normalize = false; in genBasicSpec()
106 spec.attribs[1].instanceDivisor = 0; in genBasicSpec()
107 spec.attribs[1].useDefaultAttribute = false; in genBasicSpec()
144 gls::DrawTestSpec spec; in init() local
146 spec.apiType = glu::ApiType::es(2,0); in init()
147 spec.primitive = m_primitive; in init()
148 spec.primitiveCount = 0; in init()
149 spec.drawMethod = m_method; in init()
150 spec.indexType = m_indexType; in init()
151 spec.indexPointerOffset = 0; in init()
152 spec.indexStorage = m_indexStorage; in init()
153 spec.first = 0; in init()
154 spec.indexMin = 0; in init()
155 spec.indexMax = 0; in init()
156 spec.instanceCount = 1; in init()
158 spec.attribs.resize(1); 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()
164 spec.attribs[0].componentCount = 2; in init()
165 spec.attribs[0].offset = 0; in init()
166 spec.attribs[0].stride = 0; in init()
167 spec.attribs[0].normalize = false; in init()
168 spec.attribs[0].instanceDivisor = 0; in init()
169 spec.attribs[0].useDefaultAttribute = false; in init()
171 addTestIterations(test, spec, TYPE_DRAW_COUNT); in init()
179 gls::DrawTestSpec spec; in init() local
181 spec.apiType = glu::ApiType::es(2,0); in init()
182 spec.primitive = m_primitive; in init()
183 spec.primitiveCount = 0; in init()
184 spec.drawMethod = m_method; in init()
185 spec.indexType = m_indexType; in init()
186 spec.indexPointerOffset = 0; in init()
187 spec.indexStorage = m_indexStorage; in init()
188 spec.first = 0; in init()
189 spec.indexMin = 0; in init()
190 spec.indexMax = 0; in init()
191 spec.instanceCount = 1; in init()
193 spec.attribs.resize(2); 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()
199 spec.attribs[0].componentCount = 4; in init()
200 spec.attribs[0].offset = 0; in init()
201 spec.attribs[0].stride = 0; in init()
202 spec.attribs[0].normalize = false; in init()
203 spec.attribs[0].instanceDivisor = 0; in init()
204 spec.attribs[0].useDefaultAttribute = false; 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()
210 spec.attribs[1].componentCount = 2; in init()
211 spec.attribs[1].offset = 0; in init()
212 spec.attribs[1].stride = 0; in init()
213 spec.attribs[1].normalize = false; in init()
214 spec.attribs[1].instanceDivisor = 0; in init()
215 spec.attribs[1].useDefaultAttribute = false; in init()
217 addTestIterations(test, spec, TYPE_DRAW_COUNT); in init()
225 gls::DrawTestSpec spec; in init() local
227 spec.apiType = glu::ApiType::es(2,0); in init()
228 spec.primitive = m_primitive; in init()
229 spec.primitiveCount = 5; in init()
230 spec.drawMethod = m_method; in init()
231 spec.indexType = m_indexType; in init()
232 spec.indexPointerOffset = 0; in init()
233 spec.indexStorage = m_indexStorage; in init()
234 spec.first = 0; in init()
235 spec.indexMin = 0; in init()
236 spec.indexMax = 0; in init()
237 spec.instanceCount = 1; in init()
239 spec.attribs.resize(2); 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()
245 spec.attribs[0].componentCount = 2; in init()
246 spec.attribs[0].offset = 0; in init()
247 spec.attribs[0].stride = 0; in init()
248 spec.attribs[0].normalize = false; in init()
249 spec.attribs[0].instanceDivisor = 0; in init()
250 spec.attribs[0].useDefaultAttribute = false; in init()
267 spec.attribs[1].inputType = iopairs[ioNdx].input; in init()
268 spec.attribs[1].outputType = iopairs[ioNdx].output; 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()
271 spec.attribs[1].componentCount = iopairs[ioNdx].componentCount; in init()
272 spec.attribs[1].offset = 0; in init()
273 spec.attribs[1].stride = 0; in init()
274 spec.attribs[1].normalize = false; in init()
275 spec.attribs[1].instanceDivisor = 0; in init()
276 spec.attribs[1].useDefaultAttribute = true; in init()
278 test->addIteration(spec, desc.c_str()); in init()
328 gls::DrawTestSpec spec; in init() local
334 genBasicSpec(spec, m_method); in init()
351 spec.indexType = indexTest.type; in init()
352 spec.indexStorage = indexTest.storage; in init()
357 spec.indexPointerOffset = indexTest.offsets[iterationNdx]; in init()
358 test->addIteration(spec, iterationDesc.c_str()); 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()
397 gls::DrawTestSpec spec; in init() local
398 genBasicSpec(spec, m_method); in init()
406 spec.first = firsts[firstNdx]; in init()
408 addTestIterations(test, spec, TYPE_DRAW_COUNT); in init()
595 gls::DrawTestSpec spec; in init() local
597 spec.apiType = glu::ApiType::es(2,0); in init()
598spec.primitive = random.chooseWeighted<gls::DrawTestSpec::Primitive> (DE_ARRAY_BEGIN(primitives… in init()
599spec.primitiveCount = random.chooseWeighted<int, const int*, const float*> (DE_ARRAY_BEGIN(primi… in init()
600spec.drawMethod = random.chooseWeighted<gls::DrawTestSpec::DrawMethod> (DE_ARRAY_BEGIN(drawMeth… in init()
601spec.indexType = random.chooseWeighted<gls::DrawTestSpec::IndexType> (DE_ARRAY_BEGIN(indexTypes… in init()
602spec.indexPointerOffset = random.chooseWeighted<int, const int*, const float*> (DE_ARRAY_BEGIN(in… in init()
603spec.indexStorage = random.chooseWeighted<gls::DrawTestSpec::Storage> (DE_ARRAY_BEGIN(storages)… in init()
604spec.first = random.chooseWeighted<int, const int*, const float*> (DE_ARRAY_BEGIN(firsts), D… in init()
605 spec.indexMin = 0; in init()
606 spec.indexMax = 0; in init()
607 spec.instanceCount = 0; in init()
610 if (!spec.valid()) in init()
630 valid = attribSpec.valid(spec.apiType); in init()
639 spec.attribs.push_back(attribSpec); in init()
645 if (spec.primitive != gls::DrawTestSpec::PRIMITIVE_POINTS) in init()
646 spec.attribs[0].instanceDivisor = 0; in init()
651 …if (spec.drawMethod == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED && spec.indexMin == spec.… in init()
653 if (spec.attribs[0].useDefaultAttribute && spec.primitive != gls::DrawTestSpec::PRIMITIVE_POINTS) in init()
657 …if (spec.primitive == gls::DrawTestSpec::PRIMITIVE_TRIANGLES || spec.primitive == gls::DrawTestSpe… in init()
659 if (spec.attribs[0].componentCount == 1) in init()
661 …if (spec.attribs[0].outputType == gls::DrawTestSpec::OUTPUTTYPE_FLOAT || spec.attribs[0].outputTyp… in init()
663 …if (spec.drawMethod == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED && (spec.indexMax - spec.… in init()
670 deUint32 hash = spec.hash(); in init()
672 hash = (hash << 2) ^ (deUint32)spec.attribs[attrNdx].hash(); in init()
678 if (spec.isCompatibilityTest() != gls::DrawTestSpec::COMPATIBILITY_UNALIGNED_OFFSET && in init()
679 spec.isCompatibilityTest() != gls::DrawTestSpec::COMPATIBILITY_UNALIGNED_STRIDE) in init()
680 …s::DrawTest(m_testCtx, m_context.getRenderContext(), spec, de::toString(insertedCount).c_str(), sp… in init()