Lines Matching refs:clear
239 for (vector<Clear>::iterator clear = clears.begin(); clear != clears.end(); clear++) in generateClears() local
248 clear->useScissor = true; // \todo [pyry] Should we randomize? in generateClears()
249 clear->scissor = tcu::IVec4(x, y, w, h); in generateClears()
252 clear->useScissor = false; in generateClears()
254 clear->clearDepth = rnd.getFloat(-0.2f, 1.2f); in generateClears()
255 clear->clearStencil = rnd.getUint32(); in generateClears()
257 clear->depthMask = m_masked ? rnd.getBool() : true; in generateClears()
258 clear->stencilMask = m_masked ? rnd.getUint32() : 0xffffffffu; in generateClears()
264 case 0: clear->clearMask = GL_DEPTH_BUFFER_BIT; break; in generateClears()
265 case 1: clear->clearMask = GL_STENCIL_BUFFER_BIT; break; in generateClears()
266 case 2: clear->clearMask = GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT; break; in generateClears()
270 clear->clearMask = GL_DEPTH_BUFFER_BIT; in generateClears()
274 clear->clearMask = GL_STENCIL_BUFFER_BIT; in generateClears()
290 gl.clear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); in renderGL()
294 for (vector<Clear>::const_iterator clear = clears.begin(); clear != clears.end(); clear++) in renderGL() local
296 if (clear->useScissor) in renderGL()
299 gl.scissor(clear->scissor.x(), clear->scissor.y(), clear->scissor.z(), clear->scissor.w()); in renderGL()
303 gl.clearDepthf (clear->clearDepth); in renderGL()
304 gl.clearStencil (clear->clearStencil); in renderGL()
307 gl.depthMask (clear->depthMask ? GL_TRUE : GL_FALSE); in renderGL()
308 gl.stencilMask (clear->stencilMask); in renderGL()
311 gl.clear (clear->clearMask); in renderGL()
313 if (clear->useScissor) in renderGL()
406 tcu::clear(dst.getAccess(), tcu::RGBA::red().toVec()); in renderReference()
421 for (vector<Clear>::const_iterator clear = clears.begin(); clear != clears.end(); clear++) in renderReference() local
424 if ((clear->clearMask & GL_DEPTH_BUFFER_BIT) == 0 || !clear->depthMask) in renderReference()
427 …tcu::IVec4 clearRect = clear->useScissor ? clear->scissor : tcu::IVec4(0, 0, dst.getWidth(), dst.g… in renderReference()
434 rowAccess.setPixDepth(de::clamp(clear->clearDepth, 0.0f, 1.0f), x, 0); in renderReference()
465 for (vector<Clear>::const_iterator clear = clears.begin(); clear != clears.end(); clear++) in renderReference() local
468 if ((clear->clearMask & GL_STENCIL_BUFFER_BIT) == 0 || clear->stencilMask == 0) in renderReference()
471 …tcu::IVec4 clearRect = clear->useScissor ? clear->scissor : tcu::IVec4(0, 0, dst.getWidth(), dst.g… in renderReference()
480 …deUint32 newVal = ((oldVal & ~clear->stencilMask) | (clear->clearStencil & clear->stencilMask)) & … in renderReference()