Lines Matching refs:m_spec
111 TestSpec m_spec; member in deqp::gles2::Performance::__anona27ec58e0111::DrawCallBatchingTest
157 , m_spec (spec) in DrawCallBatchingTest()
172 if (m_spec.dynamicIndices) in createIndexData()
174 for (int drawNdx = 0; drawNdx < m_spec.drawCallCount; drawNdx++) in createIndexData()
176 for (int triangleNdx = 0; triangleNdx < m_spec.triangleCount; triangleNdx++) in createIndexData()
186 for (int drawNdx = 0; drawNdx < m_spec.drawCallCount; drawNdx++) in createIndexData()
188 for (int triangleNdx = 0; triangleNdx < m_spec.triangleCount; triangleNdx++) in createIndexData()
203 for (int attributeNdx = 0; attributeNdx < m_spec.staticAttributeCount; attributeNdx++) in createShader()
206 if (m_spec.staticAttributeCount > 0 && m_spec.dynamicAttributeCount > 0) in createShader()
209 for (int attributeNdx = 0; attributeNdx < m_spec.dynamicAttributeCount; attributeNdx++) in createShader()
223 for (int attributeNdx = 0; attributeNdx < m_spec.staticAttributeCount; attributeNdx++) in createShader()
232 for (int attributeNdx = 0; attributeNdx < m_spec.dynamicAttributeCount; attributeNdx++) in createShader()
243 if (m_spec.dynamicAttributeCount > 0) in createShader()
268 for (int attribute = 0; attribute < m_spec.staticAttributeCount; attribute++) in createAttributeDatas()
272 if (m_spec.dynamicAttributeCount == 0 && attribute == 0) in createAttributeDatas()
274 data.reserve(4 * 3 * m_spec.triangleCount * m_spec.drawCallCount); in createAttributeDatas()
276 for (int i = 0; i < m_spec.triangleCount * m_spec.drawCallCount; i++) in createAttributeDatas()
278 int sign = (m_spec.triangleCount % 2 == 1 || i % 2 == 0 ? 1 : -1); in createAttributeDatas()
298 data.reserve(4 * 3 * m_spec.triangleCount * m_spec.drawCallCount); in createAttributeDatas()
300 for (int i = 0; i < 4 * 3 * m_spec.triangleCount * m_spec.drawCallCount; i++) in createAttributeDatas()
308 for (int attribute = 0; attribute < m_spec.dynamicAttributeCount; attribute++) in createAttributeDatas()
314 data.reserve(4 * 3 * m_spec.triangleCount * m_spec.drawCallCount); in createAttributeDatas()
316 for (int i = 0; i < m_spec.triangleCount * m_spec.drawCallCount; i++) in createAttributeDatas()
338 data.reserve(4 * 3 * m_spec.triangleCount * m_spec.drawCallCount); in createAttributeDatas()
340 for (int i = 0; i < 4 * 3 * m_spec.triangleCount * m_spec.drawCallCount; i++) in createAttributeDatas()
352 if (m_spec.useStaticBuffer) in createArrayBuffers()
355 for (int attribute = 0; attribute < m_spec.staticAttributeCount; attribute++) in createArrayBuffers()
361 …gl.bufferData(GL_ARRAY_BUFFER, 4 * 3 * m_spec.triangleCount * m_spec.drawCallCount, &(m_staticAttr… in createArrayBuffers()
369 for (int attribute = 0; attribute < m_spec.staticAttributeCount; attribute++) in createArrayBuffers()
375 …gl.bufferData(GL_ARRAY_BUFFER, 4 * 3 * m_spec.triangleCount, &(m_staticAttributeDatas[attribute][0… in createArrayBuffers()
383 if (m_spec.useDynamicBuffer) in createArrayBuffers()
386 for (int attribute = 0; attribute < m_spec.dynamicAttributeCount; attribute++) in createArrayBuffers()
392 …gl.bufferData(GL_ARRAY_BUFFER, 4 * 3 * m_spec.triangleCount * m_spec.drawCallCount, &(m_dynamicAtt… in createArrayBuffers()
400 for (int attribute = 0; attribute < m_spec.dynamicAttributeCount; attribute++) in createArrayBuffers()
404 for (int drawNdx = 0; drawNdx < m_spec.drawCallCount; drawNdx++) in createArrayBuffers()
410 …gl.bufferData(GL_ARRAY_BUFFER, 4 * 3 * m_spec.triangleCount * m_spec.drawCallCount, &(m_dynamicAtt… in createArrayBuffers()
426 if (m_spec.dynamicIndices) in createIndexBuffer()
428 for (int drawNdx = 0; drawNdx < m_spec.drawCallCount; drawNdx++) in createIndexBuffer()
434 …gl.bufferData(GL_ELEMENT_ARRAY_BUFFER, 3 * m_spec.triangleCount, &(m_dynamicIndexData[drawNdx * m_… in createIndexBuffer()
446 …gl.bufferData(GL_ELEMENT_ARRAY_BUFFER, 3 * m_spec.triangleCount * m_spec.drawCallCount, &(m_dynami… in createIndexBuffer()
460 …gl.bufferData(GL_ELEMENT_ARRAY_BUFFER, 3 * m_spec.triangleCount * m_spec.drawCallCount, &(m_static… in createIndexBuffer()
472 …gl.bufferData(GL_ELEMENT_ARRAY_BUFFER, 3 * m_spec.triangleCount, &(m_staticIndexData[0]), GL_STATI… in createIndexBuffer()
487 if (m_spec.useDrawElements) in init()
491 if (m_spec.useIndexBuffer) in init()
588 for (int attribNdx = 0; attribNdx < m_spec.staticAttributeCount; attribNdx++) in renderUnbatched()
594 if (m_spec.useStaticBuffer) in renderUnbatched()
605 for (int attribNdx = 0; attribNdx < m_spec.dynamicAttributeCount; attribNdx++) in renderUnbatched()
613 if (m_spec.useDrawElements && m_spec.useIndexBuffer && !m_spec.dynamicIndices) in renderUnbatched()
622 for (int drawNdx = 0; drawNdx < m_spec.drawCallCount; drawNdx++) in renderUnbatched()
624 for (int attribNdx = 0; attribNdx < m_spec.dynamicAttributeCount; attribNdx++) in renderUnbatched()
626 if (m_spec.useDynamicBuffer) in renderUnbatched()
633 …attribNdx], 4, GL_BYTE, GL_TRUE, 0, &(m_dynamicAttributeDatas[attribNdx][m_spec.triangleCount * 3 … in renderUnbatched()
636 if (m_spec.useDrawElements) in renderUnbatched()
638 if (m_spec.useIndexBuffer) in renderUnbatched()
640 if (m_spec.dynamicIndices) in renderUnbatched()
643 gl.drawElements(GL_TRIANGLES, m_spec.triangleCount * 3, GL_UNSIGNED_BYTE, NULL); in renderUnbatched()
647 gl.drawElements(GL_TRIANGLES, m_spec.triangleCount * 3, GL_UNSIGNED_BYTE, NULL); in renderUnbatched()
651 if (m_spec.dynamicIndices) in renderUnbatched()
652 …gl.drawElements(GL_TRIANGLES, m_spec.triangleCount * 3, GL_UNSIGNED_BYTE, &(m_dynamicIndexData[dra… in renderUnbatched()
654 …gl.drawElements(GL_TRIANGLES, m_spec.triangleCount * 3, GL_UNSIGNED_BYTE, &(m_staticIndexData[0])); in renderUnbatched()
658 gl.drawArrays(GL_TRIANGLES, 0, 3 * m_spec.triangleCount); in renderUnbatched()
669 for (int attribNdx = 0; attribNdx < m_spec.staticAttributeCount; attribNdx++) in renderUnbatched()
675 for (int attribNdx = 0; attribNdx < m_spec.dynamicAttributeCount; attribNdx++) in renderUnbatched()
694 for (int attribNdx = 0; attribNdx < m_spec.staticAttributeCount; attribNdx++) in renderBatched()
700 if (m_spec.useStaticBuffer) in renderBatched()
711 for (int attribNdx = 0; attribNdx < m_spec.dynamicAttributeCount; attribNdx++) in renderBatched()
719 if (m_spec.useDrawElements && m_spec.useIndexBuffer && !m_spec.dynamicIndices) in renderBatched()
728 for (int attribute = 0; attribute < m_spec.dynamicAttributeCount; attribute++) in renderBatched()
730 if (m_spec.useDynamicBuffer) in renderBatched()
740 if (m_spec.useDrawElements) in renderBatched()
742 if (m_spec.useIndexBuffer) in renderBatched()
744 if (m_spec.dynamicIndices) in renderBatched()
747 …gl.drawElements(GL_TRIANGLES, m_spec.triangleCount * 3 * m_spec.drawCallCount, GL_UNSIGNED_BYTE, N… in renderBatched()
751 …gl.drawElements(GL_TRIANGLES, m_spec.triangleCount * 3 * m_spec.drawCallCount, GL_UNSIGNED_BYTE, N… in renderBatched()
755 if (m_spec.dynamicIndices) in renderBatched()
756 …gl.drawElements(GL_TRIANGLES, m_spec.triangleCount * 3 * m_spec.drawCallCount, GL_UNSIGNED_BYTE, &… in renderBatched()
758 …gl.drawElements(GL_TRIANGLES, m_spec.triangleCount * 3 * m_spec.drawCallCount, GL_UNSIGNED_BYTE, &… in renderBatched()
762 gl.drawArrays(GL_TRIANGLES, 0, 3 * m_spec.triangleCount * m_spec.drawCallCount); in renderBatched()
772 for (int attribNdx = 0; attribNdx < m_spec.staticAttributeCount; attribNdx++) in renderBatched()
778 for (int attribNdx = 0; attribNdx < m_spec.dynamicAttributeCount; attribNdx++) in renderBatched()
829 …log << TestLog::Message << "Rendering using " << (m_spec.useDrawElements ? "glDrawElements()" : "g… in logTestInfo()
831 if (m_spec.useDrawElements) in logTestInfo()
832 …log << TestLog::Message << "Using " << (m_spec.dynamicIndices ? "dynamic " : "") << "indices from … in logTestInfo()
834 if (m_spec.staticAttributeCount > 0) in logTestInfo()
835 … << "Using " << m_spec.staticAttributeCount << " static attribute" << (m_spec.staticAttributeCount… in logTestInfo()
837 if (m_spec.dynamicAttributeCount > 0) in logTestInfo()
838 …< "Using " << m_spec.dynamicAttributeCount << " dynamic attribute" << (m_spec.dynamicAttributeCoun… in logTestInfo()
840 …log << TestLog::Message << "Rendering " << m_spec.drawCallCount << " draw calls with " << m_spec.t… in logTestInfo()