• Home
  • Raw
  • Download

Lines Matching refs:drawOp

144 void randomizeDrawOp (de::Random& rnd, DrawPrimitiveOp& drawOp)  in randomizeDrawOp()  argument
160 drawOp.type = (PrimitiveType)rnd.getInt(0, PRIMITIVETYPE_LAST-1); in randomizeDrawOp()
161 drawOp.count = rnd.getInt(minPrimitives, maxPrimitives); in randomizeDrawOp()
162 drawOp.blend = (BlendMode)rnd.getInt(0, BLENDMODE_LAST-1); in randomizeDrawOp()
163 drawOp.depth = (DepthMode)rnd.getInt(0, DEPTHMODE_LAST-1); in randomizeDrawOp()
164 drawOp.stencil = (StencilMode)rnd.getInt(0, STENCILMODE_LAST-1); in randomizeDrawOp()
165 drawOp.stencilRef = rnd.getInt(minStencilRef, maxStencilRef); in randomizeDrawOp()
167 if (drawOp.type == PRIMITIVETYPE_TRIANGLE) in randomizeDrawOp()
169 drawOp.positions.resize(drawOp.count*3); in randomizeDrawOp()
170 drawOp.colors.resize(drawOp.count*3); in randomizeDrawOp()
172 for (int triNdx = 0; triNdx < drawOp.count; triNdx++) in randomizeDrawOp()
179 tcu::Vec4& position = drawOp.positions[triNdx*3 + coordNdx]; in randomizeDrawOp()
180 tcu::Vec4& color = drawOp.colors[triNdx*3 + coordNdx]; in randomizeDrawOp()
197 tcu::Vec4& p0 = drawOp.positions[triNdx*3 + 0]; in randomizeDrawOp()
198 tcu::Vec4& p1 = drawOp.positions[triNdx*3 + 1]; in randomizeDrawOp()
199 tcu::Vec4& p2 = drawOp.positions[triNdx*3 + 2]; in randomizeDrawOp()
281 void toReferenceRenderState (rr::RenderState& state, const DrawPrimitiveOp& drawOp) in toReferenceRenderState() argument
285 if (drawOp.blend != BLENDMODE_NONE) in toReferenceRenderState()
289 switch (drawOp.blend) in toReferenceRenderState()
310 if (drawOp.depth != DEPTHMODE_NONE) in toReferenceRenderState()
314 DE_ASSERT(drawOp.depth == DEPTHMODE_LESS); in toReferenceRenderState()
318 if (drawOp.stencil != STENCILMODE_NONE) in toReferenceRenderState()
322 DE_ASSERT(drawOp.stencil == STENCILMODE_LEQUAL_INC); in toReferenceRenderState()
327 state.fragOps.stencilStates[0].ref = drawOp.stencilRef; in toReferenceRenderState()
425 …for (vector<DrawPrimitiveOp>::const_iterator drawOp = drawOps.begin(); drawOp != drawOps.end(); dr… in renderReference() local
429 toReferenceRenderState(renderState, *drawOp); in renderReference()
431 DE_ASSERT(drawOp->type == PRIMITIVETYPE_TRIANGLE); in renderReference()
433 attributes[0].pointer = &drawOp->positions[0]; in renderReference()
434 attributes[1].pointer = &drawOp->colors[0]; in renderReference()
443 rr::PrimitiveList(rr::PRIMITIVETYPE_TRIANGLES, drawOp->count * 3, 0))); in renderReference()
528 void drawGLES2 (const glw::Functions& gl, const Program& program, const DrawPrimitiveOp& drawOp) in drawGLES2() argument
532 switch (drawOp.blend) in drawGLES2()
552 switch (drawOp.depth) in drawGLES2()
566 switch (drawOp.stencil) in drawGLES2()
574 gl.stencilFunc(GL_LEQUAL, drawOp.stencilRef, ~0u); in drawGLES2()
584 …gl.vertexAttribPointer(gles2Program.getPositionLoc(), 4, GL_FLOAT, GL_FALSE, 0, &drawOp.positions[… in drawGLES2()
585 gl.vertexAttribPointer(gles2Program.getColorLoc(), 4, GL_FLOAT, GL_FALSE, 0, &drawOp.colors[0]); in drawGLES2()
587 DE_ASSERT(drawOp.type == PRIMITIVETYPE_TRIANGLE); in drawGLES2()
588 gl.drawArrays(GL_TRIANGLES, 0, drawOp.count*3); in drawGLES2()
607 … draw (const glw::Functions& gl, EGLint api, const Program& program, const DrawPrimitiveOp& drawOp) in draw() argument
611 case EGL_OPENGL_ES2_BIT: drawGLES2(gl, program, drawOp); break; in draw()
612 case EGL_OPENGL_ES3_BIT_KHR: drawGLES2(gl, program, drawOp); break; in draw()
729 for (vector<DrawPrimitiveOp>::iterator drawOp = drawOps.begin(); drawOp != drawOps.end(); ++drawOp) in executeForContexts() local
730 randomizeDrawOp(rnd, *drawOp); in executeForContexts()
767 …const DrawPrimitiveOp& drawOp = drawOps[iterNdx*numContexts*drawsPerCtx + ctxNdx*drawsPerCtx + dra… in executeForContexts() local
768 draw(m_gl, api, *programs[ctxNdx], drawOp); in executeForContexts()
940 for (vector<DrawPrimitiveOp>::iterator drawOp = drawOps.begin(); drawOp != drawOps.end(); ++drawOp) in executeForContexts() local
941 randomizeDrawOp(rnd, *drawOp); in executeForContexts()