Lines Matching defs:access

82 static inline bool isEmpty (const tcu::ConstPixelBufferAccess& access)
84 return access.getWidth() == 0 || access.getHeight() == 0 || access.getDepth() == 0;
87 static inline bool isEmpty (const rr::MultisampleConstPixelBufferAccess& access)
89 return access.raw().getWidth() == 0 || access.raw().getHeight() == 0 || access.raw().getDepth() == 0;
236 static inline tcu::IVec4 getBufferRect (const rr::MultisampleConstPixelBufferAccess& access)
238 return tcu::IVec4(0, 0, access.raw().getHeight(), access.raw().getDepth());
1027 static void clearToTextureInitialValue (PixelBufferAccess access)
1029 const bool hasDepth = access.getFormat().order == tcu::TextureFormat::D || access.getFormat().order == tcu::TextureFormat::DS;
1030 const bool hasStencil = access.getFormat().order == tcu::TextureFormat::S || access.getFormat().order == tcu::TextureFormat::DS;
1034 tcu::clearDepth(access, 0.0f);
1036 tcu::clearStencil(access, 0u);
1038 tcu::clear(access, Vec4(0.0f, 0.0f, 0.0f, 1.0f));
3049 static inline void writeMaskedStencil (const rr::MultisamplePixelBufferAccess& access, int s, int x, int y, deUint32 stencil, deUint32 writeMask)
3051 DE_ASSERT(access.raw().getFormat().order == tcu::TextureFormat::S);
3053 const deUint32 oldVal = access.raw().getPixelUint(s, x, y).x();
3055 access.raw().setPixel(tcu::UVec4(newVal, 0u, 0u, 0u), s, x, y);
3058 static inline void writeDepthOnly (const rr::MultisamplePixelBufferAccess& access, int s, int x, int y, float depth)
3060 access.raw().setPixDepth(depth, s, x, y);
3364 rr::MultisamplePixelBufferAccess access = rr::getSubregion(buf, area.x(), area.y(), area.z(), area.w());
3367 rr::clear(access, colorClearValue);
3369 rr::clear(access, tcu::Vec4(depthClearValue));
3371 rr::clear(access, tcu::IVec4(stencilClearValue));
3412 rr::MultisamplePixelBufferAccess access = rr::getSubregion(colorBuf0, colorArea.x(), colorArea.y(), colorArea.z(), colorArea.w());
3419 rr::clear(access, c);
3422 for (int y = 0; y < access.raw().getDepth(); y++)
3423 for (int x = 0; x < access.raw().getHeight(); x++)
3424 for (int s = 0; s < access.getNumSamples(); s++)
3425 access.raw().setPixel(tcu::select(c, access.raw().getPixel(s, x, y), m_colorMask), s, x, y);
3432 rr::MultisamplePixelBufferAccess access = getDepthMultisampleAccess(rr::getSubregion(depthBuf, depthArea.x(), depthArea.y(), depthArea.z(), depthArea.w()));
3433 rr::clearDepth(access, m_clearDepth);
3438 rr::MultisamplePixelBufferAccess access = getStencilMultisampleAccess(rr::getSubregion(stencilBuf, stencilArea.x(), stencilArea.y(), stencilArea.z(), stencilArea.w()));
3445 for (int y = 0; y < access.raw().getDepth(); y++)
3446 for (int x = 0; x < access.raw().getHeight(); x++)
3447 for (int s = 0; s < access.getNumSamples(); s++)
3448 writeMaskedStencil(access, s, x, y, stencil, m_stencil[rr::FACETYPE_FRONT].writeMask);
3451 rr::clearStencil(access, stencil);
3471 rr::MultisamplePixelBufferAccess access = rr::getSubregion(colorBuf, area.x(), area.y(), area.z(), area.w());
3475 rr::clear(access, color);
3478 for (int y = 0; y < access.raw().getDepth(); y++)
3479 for (int x = 0; x < access.raw().getHeight(); x++)
3480 for (int s = 0; s < access.getNumSamples(); s++)
3481 access.raw().setPixel(tcu::select(color, access.raw().getPixelInt(s, x, y), m_colorMask), s, x, y);
3494 rr::MultisamplePixelBufferAccess access = getStencilMultisampleAccess(rr::getSubregion(stencilBuf, area.x(), area.y(), area.z(), area.w()));
3497 for (int y = 0; y < access.raw().getDepth(); y++)
3498 for (int x = 0; x < access.raw().getHeight(); x++)
3499 for (int s = 0; s < access.getNumSamples(); s++)
3500 writeMaskedStencil(access, s, x, y, stencil, m_stencil[rr::FACETYPE_FRONT].writeMask);
3521 rr::MultisamplePixelBufferAccess access = rr::getSubregion(colorBuf, area.x(), area.y(), area.z(), area.w());
3524 if (m_sRGBUpdateEnabled && tcu::isSRGB(access.raw().getFormat()))
3528 rr::clear(access, color);
3531 for (int y = 0; y < access.raw().getDepth(); y++)
3532 for (int x = 0; x < access.raw().getHeight(); x++)
3533 for (int s = 0; s < access.getNumSamples(); s++)
3534 access.raw().setPixel(tcu::select(color, access.raw().getPixel(s, x, y), m_colorMask), s, x, y);
3547 rr::MultisamplePixelBufferAccess access = rr::getSubregion(depthBuf, area.x(), area.y(), area.z(), area.w());
3550 rr::clearDepth(access, depth);
3571 rr::MultisamplePixelBufferAccess access = rr::getSubregion(colorBuf, area.x(), area.y(), area.z(), area.w());
3575 rr::clear(access, color.asInt());
3578 for (int y = 0; y < access.raw().getDepth(); y++)
3579 for (int x = 0; x < access.raw().getHeight(); x++)
3580 for (int s = 0; s < access.getNumSamples(); s++)
3581 access.raw().setPixel(tcu::select(color, access.raw().getPixelUint(s, x, y), m_colorMask), s, x, y);