Lines Matching defs:dst
986 static void depthValueFloatClampCopy (const PixelBufferAccess& dst, const ConstPixelBufferAccess& src)
988 int width = dst.getWidth();
989 int height = dst.getHeight();
990 int depth = dst.getDepth();
996 if (src.getFormat().order == tcu::TextureFormat::DS && dst.getFormat().order == tcu::TextureFormat::DS)
1003 dst.setPixDepth(de::clamp(src.getPixDepth(x, y, z), 0.0f, 1.0f), x, y, z);
1004 dst.setPixStencil(src.getPixStencil(x, y, z), x, y, z);
1013 dst.setPixDepth(de::clamp(src.getPixDepth(x, y, z), 0.0f, 1.0f), x, y, z);
1074 ConstPixelBufferAccess dst(texture->getLevel(level));
1075 RC_IF_ERROR(storageFmt != dst.getFormat() ||
1076 width != dst.getWidth(), GL_INVALID_OPERATION, RC_RET_VOID);
1084 PixelBufferAccess dst (texture->getLevel(level));
1087 depthValueFloatClampCopy(dst, src);
1089 tcu::copy(dst, src);
1109 ConstPixelBufferAccess dst(texture->getLevel(level));
1110 RC_IF_ERROR(storageFmt != dst.getFormat() ||
1111 width != dst.getWidth() ||
1112 height != dst.getHeight(), GL_INVALID_OPERATION, RC_RET_VOID);
1120 PixelBufferAccess dst (texture->getLevel(level));
1123 depthValueFloatClampCopy(dst, src);
1125 tcu::copy(dst, src);
1151 ConstPixelBufferAccess dst(texture->getFace(level, face));
1152 RC_IF_ERROR(storageFmt != dst.getFormat() ||
1153 width != dst.getWidth() ||
1154 height != dst.getHeight(), GL_INVALID_OPERATION, RC_RET_VOID);
1162 PixelBufferAccess dst (texture->getFace(level, face));
1165 depthValueFloatClampCopy(dst, src);
1167 tcu::copy(dst, src);
1189 ConstPixelBufferAccess dst(texture->getLevel(level));
1190 RC_IF_ERROR(storageFmt != dst.getFormat() ||
1191 width != dst.getWidth() ||
1192 height != dst.getHeight() ||
1193 depth != dst.getDepth(), GL_INVALID_OPERATION, RC_RET_VOID);
1201 PixelBufferAccess dst (texture->getLevel(level));
1204 depthValueFloatClampCopy(dst, src);
1206 tcu::copy(dst, src);
1228 ConstPixelBufferAccess dst(texture->getLevel(level));
1229 RC_IF_ERROR(storageFmt != dst.getFormat() ||
1230 width != dst.getWidth() ||
1231 height != dst.getHeight() ||
1232 depth != dst.getDepth(), GL_INVALID_OPERATION, RC_RET_VOID);
1240 PixelBufferAccess dst (texture->getLevel(level));
1243 depthValueFloatClampCopy(dst, src);
1245 tcu::copy(dst, src);
1268 ConstPixelBufferAccess dst(texture->getLevel(level));
1269 RC_IF_ERROR(storageFmt != dst.getFormat() ||
1270 width != dst.getWidth() ||
1271 height != dst.getHeight() ||
1272 depth != dst.getDepth(), GL_INVALID_OPERATION, RC_RET_VOID);
1280 PixelBufferAccess dst (texture->getLevel(level));
1283 depthValueFloatClampCopy(dst, src);
1285 tcu::copy(dst, src);
1326 PixelBufferAccess dst = texture.getLevel(level);
1328 RC_IF_ERROR(xoffset + width > dst.getWidth() ||
1329 yoffset + height > dst.getHeight() ||
1330 zoffset + depth > dst.getDepth(),
1334 if (dst.getFormat().order == tcu::TextureFormat::D || dst.getFormat().order == tcu::TextureFormat::DS)
1335 depthValueFloatClampCopy(tcu::getSubregion(dst, xoffset, yoffset, zoffset, width, height, depth), src);
1337 tcu::copy(tcu::getSubregion(dst, xoffset, yoffset, zoffset, width, height, depth), src);
1345 PixelBufferAccess dst = texture.getLevel(level);
1347 RC_IF_ERROR(xoffset + width > dst.getWidth() ||
1348 yoffset + height > dst.getHeight() ||
1349 zoffset + depth > dst.getDepth(),
1353 if (dst.getFormat().order == tcu::TextureFormat::D || dst.getFormat().order == tcu::TextureFormat::DS)
1354 depthValueFloatClampCopy(tcu::getSubregion(dst, xoffset, yoffset, zoffset, width, height, depth), src);
1356 tcu::copy(tcu::getSubregion(dst, xoffset, yoffset, zoffset, width, height, depth), src);
1370 PixelBufferAccess dst = texture.getFace(level, face);
1372 RC_IF_ERROR(xoffset + width > dst.getWidth() ||
1373 yoffset + height > dst.getHeight() ||
1374 zoffset + depth > dst.getDepth(),
1378 if (dst.getFormat().order == tcu::TextureFormat::D || dst.getFormat().order == tcu::TextureFormat::DS)
1379 depthValueFloatClampCopy(tcu::getSubregion(dst, xoffset, yoffset, zoffset, width, height, depth), src);
1381 tcu::copy(tcu::getSubregion(dst, xoffset, yoffset, zoffset, width, height, depth), src);
1389 PixelBufferAccess dst = texture.getLevel(level);
1391 RC_IF_ERROR(xoffset + width > dst.getWidth() ||
1392 yoffset + height > dst.getHeight() ||
1393 zoffset + depth > dst.getDepth(),
1397 if (dst.getFormat().order == tcu::TextureFormat::D || dst.getFormat().order == tcu::TextureFormat::DS)
1398 depthValueFloatClampCopy(tcu::getSubregion(dst, xoffset, yoffset, zoffset, width, height, depth), src);
1400 tcu::copy(tcu::getSubregion(dst, xoffset, yoffset, zoffset, width, height, depth), src);
1408 PixelBufferAccess dst = texture.getLevel(level);
1410 RC_IF_ERROR(xoffset + width > dst.getWidth() ||
1411 yoffset + height > dst.getHeight() ||
1412 zoffset + depth > dst.getDepth(),
1416 if (dst.getFormat().order == tcu::TextureFormat::D || dst.getFormat().order == tcu::TextureFormat::DS)
1417 depthValueFloatClampCopy(tcu::getSubregion(dst, xoffset, yoffset, zoffset, width, height, depth), src);
1419 tcu::copy(tcu::getSubregion(dst, xoffset, yoffset, zoffset, width, height, depth), src);
1427 PixelBufferAccess dst = texture.getLevel(level);
1429 RC_IF_ERROR(xoffset + width > dst.getWidth() ||
1430 yoffset + height > dst.getHeight() ||
1431 zoffset + depth > dst.getDepth(),
1435 if (dst.getFormat().order == tcu::TextureFormat::D || dst.getFormat().order == tcu::TextureFormat::DS)
1436 depthValueFloatClampCopy(tcu::getSubregion(dst, xoffset, yoffset, zoffset, width, height, depth), src);
1438 tcu::copy(tcu::getSubregion(dst, xoffset, yoffset, zoffset, width, height, depth), src);
1471 ConstPixelBufferAccess dst(texture->getLevel(level));
1472 RC_IF_ERROR(storageFmt != dst.getFormat() ||
1473 width != dst.getWidth(), GL_INVALID_OPERATION, RC_RET_VOID);
1479 PixelBufferAccess dst = texture->getLevel(level);
1485 dst.setPixel(rr::resolveMultisamplePixel(src, x+xo, y), xo, 0);
1519 ConstPixelBufferAccess dst(texture->getLevel(level));
1520 RC_IF_ERROR(storageFmt != dst.getFormat() ||
1521 width != dst.getWidth() ||
1522 height != dst.getHeight(), GL_INVALID_OPERATION, RC_RET_VOID);
1528 PixelBufferAccess dst = texture->getLevel(level);
1535 dst.setPixel(rr::resolveMultisamplePixel(src, x+xo, y+yo), xo, yo);
1556 ConstPixelBufferAccess dst(texture->getFace(level, face));
1557 RC_IF_ERROR(storageFmt != dst.getFormat() ||
1558 width != dst.getWidth() ||
1559 height != dst.getHeight(), GL_INVALID_OPERATION, RC_RET_VOID);
1565 PixelBufferAccess dst = texture->getFace(level, face);
1572 dst.setPixel(rr::resolveMultisamplePixel(src, x+xo, y+yo), xo, yo);
1594 PixelBufferAccess dst = texture.getLevel(level);
1596 RC_IF_ERROR(xoffset + width > dst.getWidth(), GL_INVALID_VALUE, RC_RET_VOID);
1603 dst.setPixel(rr::resolveMultisamplePixel(src, x+xo, y), xo+xoffset, 0);
1625 PixelBufferAccess dst = texture.getLevel(level);
1627 RC_IF_ERROR(xoffset + width > dst.getWidth() ||
1628 yoffset + height > dst.getHeight(),
1637 dst.setPixel(rr::resolveMultisamplePixel(src, x+xo, y+yo), xo+xoffset, yo+yoffset);
1652 PixelBufferAccess dst = texture.getFace(level, face);
1654 RC_IF_ERROR(xoffset + width > dst.getWidth() ||
1655 yoffset + height > dst.getHeight(),
1664 dst.setPixel(rr::resolveMultisamplePixel(src, x+xo, y+yo), xo+xoffset, yo+yoffset);
2953 void ReferenceContext::blendFunc (deUint32 src, deUint32 dst)
2956 !isValidBlendFactor(dst),
2961 m_blendFactorDstRGB = dst;
2962 m_blendFactorDstAlpha = dst;
3078 tcu::PixelBufferAccess dst = tcu::getSubregion(getDrawColorbuffer().toSinglesampleAccess(), dstRect.x(), dstRect.y(), dstRect.z(), dstRect.w());
3079 tcu::TextureChannelClass dstClass = tcu::getTextureChannelClass(dst.getFormat().type);
3084 bool dstIsSRGB = tcu::isSRGB(dst.getFormat());
3095 dst = tcu::PixelBufferAccess(toNonSRGBFormat(dst.getFormat()), dst.getWidth(), dst.getHeight(), dst.getDepth(), dst.getRowPitch(), dst.getSlicePitch(), dst.getDataPtr());
3107 dst.setPixel((dstIsSRGB && convertSRGB) ? tcu::linearToSRGB(p) : p, x, y);
3110 dst.setPixel(src.raw().getPixelInt(0, srcX, srcY), x, y);
3117 rr::MultisamplePixelBufferAccess dst = rr::getSubregion(getDrawDepthbuffer(), dstRect.x(), dstRect.y(), dstRect.z(), dstRect.w());
3125 writeDepthOnly(dst, 0, x, y, src.raw().getPixel(0, srcX, srcY).x());
3132 rr::MultisamplePixelBufferAccess dst = getStencilMultisampleAccess(rr::getSubregion(getDrawStencilbuffer(), dstRect.x(), dstRect.y(), dstRect.z(), dstRect.w()));
3141 writeMaskedStencil(dst, 0, x, y, srcStencil, m_stencil[rr::FACETYPE_FRONT].writeMask);
3218 // Dst offset space -> dst rectangle space -> src rectangle space -> src offset space.
3228 tcu::PixelBufferAccess dst = tcu::getSubregion(getDrawColorbuffer().toSinglesampleAccess(), dstRect.x(), dstRect.y(), dstRect.z(), dstRect.w());
3229 tcu::TextureChannelClass dstClass = tcu::getTextureChannelClass(dst.getFormat().type);
3237 bool dstIsSRGB = tcu::isSRGB(dst.getFormat());
3243 dst = tcu::PixelBufferAccess (toNonSRGBFormat(dst.getFormat()), dst.getWidth(), dst.getHeight(), dst.getDepth(), dst.getRowPitch(), dst.getSlicePitch(), dst.getDataPtr());
3267 dst.setPixel((dstIsSRGB && convertSRGB) ? tcu::linearToSRGB(p) : p, xo, yo);
3270 dst.setPixel(src.getPixelInt(deFloorFloatToInt32(sX), deFloorFloatToInt32(sY)), xo, yo);
3278 rr::MultisamplePixelBufferAccess dst = getDepthMultisampleAccess(rr::getSubregion(getDrawDepthbuffer(), dstRect.x(), dstRect.y(), dstRect.z(), dstRect.w()));
3291 writeDepthOnly(dst, sampleNdx, xo, yo, src.raw().getPixDepth(sampleNdx, deFloorFloatToInt32(sX), deFloorFloatToInt32(sY)));
3299 rr::MultisamplePixelBufferAccess dst = getStencilMultisampleAccess(rr::getSubregion(getDrawStencilbuffer(), dstRect.x(), dstRect.y(), dstRect.z(), dstRect.w()));
3313 writeMaskedStencil(dst, sampleNdx, xo, yo, srcStencil, m_stencil[rr::FACETYPE_FRONT].writeMask);
4646 PixelBufferAccess dst(transferFmt, width, height, 1, deAlign32(width*transferFmt.getPixelSize(), m_pixelPackAlignment), 0, getPixelPackPtr(data));
4647 rr::resolveMultisampleColorBuffer(tcu::getSubregion(dst, 0, 0, copyWidth, copyHeight), rr::getSubregion(src, copyX, copyY, copyWidth, copyHeight));