Lines Matching refs:spec

56 	gls::DrawTestSpec spec(baseSpec);  in addTestIterations()  local
60 spec.primitiveCount = 1; in addTestIterations()
61 test->addIteration(spec, "draw count = 1"); in addTestIterations()
63 spec.primitiveCount = 5; in addTestIterations()
64 test->addIteration(spec, "draw count = 5"); in addTestIterations()
66 spec.primitiveCount = 25; in addTestIterations()
67 test->addIteration(spec, "draw count = 25"); in addTestIterations()
71 spec.instanceCount = 1; in addTestIterations()
72 test->addIteration(spec, "instance count = 1"); in addTestIterations()
74 spec.instanceCount = 4; in addTestIterations()
75 test->addIteration(spec, "instance count = 4"); in addTestIterations()
77 spec.instanceCount = 11; in addTestIterations()
78 test->addIteration(spec, "instance count = 11"); in addTestIterations()
82 spec.indexMin = 0; in addTestIterations()
83 spec.indexMax = 23; in addTestIterations()
84 test->addIteration(spec, "index range = [0, 23]"); in addTestIterations()
86 spec.indexMin = 23; in addTestIterations()
87 spec.indexMax = 40; in addTestIterations()
88 test->addIteration(spec, "index range = [23, 40]"); in addTestIterations()
91 if (spec.primitive == gls::DrawTestSpec::PRIMITIVE_POINTS) in addTestIterations()
93 spec.indexMin = 5; in addTestIterations()
94 spec.indexMax = 5; in addTestIterations()
95 test->addIteration(spec, "index range = [5, 5]"); in addTestIterations()
102 static void genBasicSpec (gls::DrawTestSpec& spec, gls::DrawTestSpec::DrawMethod method) in genBasicSpec() argument
104 spec.apiType = glu::ApiType::es(3,0); in genBasicSpec()
105 spec.primitive = gls::DrawTestSpec::PRIMITIVE_TRIANGLES; in genBasicSpec()
106 spec.primitiveCount = 5; in genBasicSpec()
107 spec.drawMethod = method; in genBasicSpec()
108 spec.indexType = gls::DrawTestSpec::INDEXTYPE_LAST; in genBasicSpec()
109 spec.indexPointerOffset = 0; in genBasicSpec()
110 spec.indexStorage = gls::DrawTestSpec::STORAGE_LAST; in genBasicSpec()
111 spec.first = 0; in genBasicSpec()
112 spec.indexMin = 0; in genBasicSpec()
113 spec.indexMax = 0; in genBasicSpec()
114 spec.instanceCount = 1; in genBasicSpec()
116 spec.attribs.resize(2); 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()
122 spec.attribs[0].componentCount = 4; in genBasicSpec()
123 spec.attribs[0].offset = 0; in genBasicSpec()
124 spec.attribs[0].stride = 0; in genBasicSpec()
125 spec.attribs[0].normalize = false; in genBasicSpec()
126 spec.attribs[0].instanceDivisor = 0; in genBasicSpec()
127 spec.attribs[0].useDefaultAttribute = false; 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()
133 spec.attribs[1].componentCount = 2; in genBasicSpec()
134 spec.attribs[1].offset = 0; in genBasicSpec()
135 spec.attribs[1].stride = 0; in genBasicSpec()
136 spec.attribs[1].normalize = false; in genBasicSpec()
137 spec.attribs[1].instanceDivisor = 0; in genBasicSpec()
138 spec.attribs[1].useDefaultAttribute = false; in genBasicSpec()
180 gls::DrawTestSpec spec; in init() local
182 spec.apiType = glu::ApiType::es(3,0); in init()
183 spec.primitive = m_primitive; in init()
184 spec.primitiveCount = 5; in init()
185 spec.drawMethod = m_method; in init()
186 spec.indexType = m_indexType; in init()
187 spec.indexPointerOffset = 0; in init()
188 spec.indexStorage = m_indexStorage; in init()
189 spec.first = 0; in init()
190 spec.indexMin = 0; in init()
191 spec.indexMax = 0; in init()
192 spec.instanceCount = 1; in init()
194 spec.attribs.resize(1); 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()
200 spec.attribs[0].componentCount = 2; in init()
201 spec.attribs[0].offset = 0; in init()
202 spec.attribs[0].stride = 0; in init()
203 spec.attribs[0].normalize = false; in init()
204 spec.attribs[0].instanceDivisor = 0; in init()
205 spec.attribs[0].useDefaultAttribute = false; in init()
207 addTestIterations(test, spec, testType); in init()
215 gls::DrawTestSpec spec; in init() local
217 spec.apiType = glu::ApiType::es(3,0); in init()
218 spec.primitive = m_primitive; in init()
219 spec.primitiveCount = 5; in init()
220 spec.drawMethod = m_method; in init()
221 spec.indexType = m_indexType; in init()
222 spec.indexPointerOffset = 0; in init()
223 spec.indexStorage = m_indexStorage; in init()
224 spec.first = 0; in init()
225 spec.indexMin = 0; in init()
226 spec.indexMax = 0; in init()
227 spec.instanceCount = 1; in init()
229 spec.attribs.resize(2); 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()
235 spec.attribs[0].componentCount = 4; in init()
236 spec.attribs[0].offset = 0; in init()
237 spec.attribs[0].stride = 0; in init()
238 spec.attribs[0].normalize = false; in init()
239 spec.attribs[0].instanceDivisor = 0; in init()
240 spec.attribs[0].useDefaultAttribute = false; 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()
246 spec.attribs[1].componentCount = 2; in init()
247 spec.attribs[1].offset = 0; in init()
248 spec.attribs[1].stride = 0; in init()
249 spec.attribs[1].normalize = false; in init()
250 spec.attribs[1].instanceDivisor = 0; in init()
251 spec.attribs[1].useDefaultAttribute = false; in init()
253 addTestIterations(test, spec, testType); in init()
261 gls::DrawTestSpec spec; in init() local
263 spec.apiType = glu::ApiType::es(3,0); in init()
264 spec.primitive = m_primitive; in init()
265 spec.primitiveCount = 5; in init()
266 spec.drawMethod = m_method; in init()
267 spec.indexType = m_indexType; in init()
268 spec.indexPointerOffset = 0; in init()
269 spec.indexStorage = m_indexStorage; in init()
270 spec.first = 0; in init()
271 spec.indexMin = 0; in init()
272 spec.indexMax = 0; in init()
273 spec.instanceCount = 1; in init()
275 spec.attribs.resize(3); 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()
281 spec.attribs[0].componentCount = 4; in init()
282 spec.attribs[0].offset = 0; in init()
283 spec.attribs[0].stride = 0; in init()
284 spec.attribs[0].normalize = false; in init()
285 spec.attribs[0].instanceDivisor = 0; in init()
286 spec.attribs[0].useDefaultAttribute = false; 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()
293 spec.attribs[1].componentCount = 2; in init()
294 spec.attribs[1].offset = 0; in init()
295 spec.attribs[1].stride = 0; in init()
296 spec.attribs[1].normalize = false; in init()
297 spec.attribs[1].instanceDivisor = 1; in init()
298 spec.attribs[1].useDefaultAttribute = false; in init()
299 spec.attribs[1].additionalPositionAttribute = true; 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()
306 spec.attribs[2].componentCount = 3; in init()
307 spec.attribs[2].offset = 0; in init()
308 spec.attribs[2].stride = 0; in init()
309 spec.attribs[2].normalize = false; in init()
310 spec.attribs[2].instanceDivisor = 1; in init()
311 spec.attribs[2].useDefaultAttribute = false; in init()
313 addTestIterations(test, spec, testType); in init()
321 gls::DrawTestSpec spec; in init() local
323 spec.apiType = glu::ApiType::es(3,0); in init()
324 spec.primitive = m_primitive; in init()
325 spec.primitiveCount = 5; in init()
326 spec.drawMethod = m_method; in init()
327 spec.indexType = m_indexType; in init()
328 spec.indexPointerOffset = 0; in init()
329 spec.indexStorage = m_indexStorage; in init()
330 spec.first = 0; in init()
331 spec.indexMin = 0; in init()
332spec.indexMax = 20; // \note addTestIterations is not called for the spec, so we must ensure… in init()
333 spec.instanceCount = 1; in init()
335 spec.attribs.resize(2); 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()
341 spec.attribs[0].componentCount = 2; in init()
342 spec.attribs[0].offset = 0; in init()
343 spec.attribs[0].stride = 0; in init()
344 spec.attribs[0].normalize = false; in init()
345 spec.attribs[0].instanceDivisor = 0; in init()
346 spec.attribs[0].useDefaultAttribute = false; in init()
365 spec.attribs[1].inputType = iopairs[ioNdx].input; in init()
366 spec.attribs[1].outputType = iopairs[ioNdx].output; 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()
369 spec.attribs[1].componentCount = iopairs[ioNdx].componentCount; in init()
370 spec.attribs[1].offset = 0; in init()
371 spec.attribs[1].stride = 0; in init()
372 spec.attribs[1].normalize = false; in init()
373 spec.attribs[1].instanceDivisor = 0; in init()
374 spec.attribs[1].useDefaultAttribute = true; in init()
376 test->addIteration(spec, desc.c_str()); in init()
429 gls::DrawTestSpec spec; in init() local
435 genBasicSpec(spec, m_method); in init()
452 spec.indexType = indexTest.type; in init()
453 spec.indexStorage = indexTest.storage; in init()
458 spec.indexPointerOffset = indexTest.offsets[iterationNdx]; in init()
459 test->addIteration(spec, iterationDesc.c_str()); 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()
498 gls::DrawTestSpec spec; in init() local
499 genBasicSpec(spec, m_method); in init()
507 spec.first = firsts[firstNdx]; in init()
509 addTestIterations(test, spec, TYPE_DRAW_COUNT); in init()
1030 gls::DrawTestSpec spec; in init() local
1032 spec.apiType = glu::ApiType::es(3,0); in init()
1033spec.primitive = random.chooseWeighted<gls::DrawTestSpec::Primitive> (DE_ARRAY_BEGIN(primitives… in init()
1034spec.primitiveCount = random.chooseWeighted<int, const int*, const float*> (DE_ARRAY_BEGIN(primi… in init()
1035spec.drawMethod = random.chooseWeighted<gls::DrawTestSpec::DrawMethod> (DE_ARRAY_BEGIN(drawMeth… in init()
1036spec.indexType = random.chooseWeighted<gls::DrawTestSpec::IndexType> (DE_ARRAY_BEGIN(indexTypes… in init()
1037spec.indexPointerOffset = random.chooseWeighted<int, const int*, const float*> (DE_ARRAY_BEGIN(in… in init()
1038spec.indexStorage = random.chooseWeighted<gls::DrawTestSpec::Storage> (DE_ARRAY_BEGIN(storages)… in init()
1039spec.first = random.chooseWeighted<int, const int*, const float*> (DE_ARRAY_BEGIN(firsts), D… in init()
1040spec.indexMin = random.chooseWeighted<int, const int*, const float*> (DE_ARRAY_BEGIN(indexMins)… in init()
1041spec.indexMax = random.chooseWeighted<int, const int*, const float*> (DE_ARRAY_BEGIN(indexMaxs)… in init()
1042spec.instanceCount = random.chooseWeighted<int, const int*, const float*> (DE_ARRAY_BEGIN(instan… in init()
1045 if (!spec.valid()) in init()
1065 valid = attribSpec.valid(spec.apiType); in init()
1074 spec.attribs.push_back(attribSpec); in init()
1080 if (spec.primitive != gls::DrawTestSpec::PRIMITIVE_POINTS) in init()
1081 spec.attribs[0].instanceDivisor = 0; in init()
1086 …if (spec.drawMethod == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED && spec.indexMin == spec.… in init()
1088 if (spec.attribs[0].useDefaultAttribute && spec.primitive != gls::DrawTestSpec::PRIMITIVE_POINTS) in init()
1092 …if (spec.primitive == gls::DrawTestSpec::PRIMITIVE_TRIANGLES || spec.primitive == gls::DrawTestSpe… in init()
1094 if (spec.attribs[0].componentCount == 1) in init()
1096 …if (spec.attribs[0].outputType == gls::DrawTestSpec::OUTPUTTYPE_FLOAT || spec.attribs[0].outputTyp… in init()
1098 …if (spec.drawMethod == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED && (spec.indexMax - spec.… in init()
1105 deUint32 hash = spec.hash(); in init()
1107 hash = (hash << 2) ^ (deUint32)spec.attribs[attrNdx].hash(); in init()
1112 if (spec.isCompatibilityTest() != gls::DrawTestSpec::COMPATIBILITY_UNALIGNED_OFFSET && in init()
1113 spec.isCompatibilityTest() != gls::DrawTestSpec::COMPATIBILITY_UNALIGNED_STRIDE && in init()
1116 …s::DrawTest(m_testCtx, m_context.getRenderContext(), spec, de::toString(insertedCount).c_str(), sp… in init()