Lines Matching refs:clear
236 for (vector<Clear>::iterator clear = clears.begin(); clear != clears.end(); clear++) in generateClears() local
245 clear->useScissor = true; // \todo [pyry] Should we randomize? in generateClears()
246 clear->scissor = tcu::IVec4(x, y, w, h); in generateClears()
249 clear->useScissor = false; in generateClears()
251 clear->clearDepth = rnd.getFloat(-0.2f, 1.2f); in generateClears()
252 clear->clearStencil = rnd.getUint32(); in generateClears()
254 clear->depthMask = m_masked ? rnd.getBool() : true; in generateClears()
255 clear->stencilMask = m_masked ? rnd.getUint32() : 0xffffffffu; in generateClears()
261 case 0: clear->clearMask = GL_DEPTH_BUFFER_BIT; break; in generateClears()
262 case 1: clear->clearMask = GL_STENCIL_BUFFER_BIT; break; in generateClears()
263 case 2: clear->clearMask = GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT; break; in generateClears()
267 clear->clearMask = GL_DEPTH_BUFFER_BIT; in generateClears()
271 clear->clearMask = GL_STENCIL_BUFFER_BIT; in generateClears()
287 gl.clear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); in renderGL()
291 for (vector<Clear>::const_iterator clear = clears.begin(); clear != clears.end(); clear++) in renderGL() local
293 if (clear->useScissor) in renderGL()
296 gl.scissor(clear->scissor.x(), clear->scissor.y(), clear->scissor.z(), clear->scissor.w()); in renderGL()
300 gl.clearDepthf (clear->clearDepth); in renderGL()
301 gl.clearStencil (clear->clearStencil); in renderGL()
304 gl.depthMask (clear->depthMask ? GL_TRUE : GL_FALSE); in renderGL()
305 gl.stencilMask (clear->stencilMask); in renderGL()
308 gl.clear (clear->clearMask); in renderGL()
310 if (clear->useScissor) in renderGL()
403 tcu::clear(dst.getAccess(), tcu::RGBA::red().toVec()); in renderReference()
418 for (vector<Clear>::const_iterator clear = clears.begin(); clear != clears.end(); clear++) in renderReference() local
421 if ((clear->clearMask & GL_DEPTH_BUFFER_BIT) == 0 || !clear->depthMask) in renderReference()
424 …tcu::IVec4 clearRect = clear->useScissor ? clear->scissor : tcu::IVec4(0, 0, dst.getWidth(), dst.g… in renderReference()
431 rowAccess.setPixDepth(de::clamp(clear->clearDepth, 0.0f, 1.0f), x, 0); in renderReference()
462 for (vector<Clear>::const_iterator clear = clears.begin(); clear != clears.end(); clear++) in renderReference() local
465 if ((clear->clearMask & GL_STENCIL_BUFFER_BIT) == 0 || clear->stencilMask == 0) in renderReference()
468 …tcu::IVec4 clearRect = clear->useScissor ? clear->scissor : tcu::IVec4(0, 0, dst.getWidth(), dst.g… in renderReference()
477 …deUint32 newVal = ((oldVal & ~clear->stencilMask) | (clear->clearStencil & clear->stencilMask)) & … in renderReference()