Lines Matching defs:height
102 inline int getNumMipLevels2D (int width, int height)
104 return deLog2Floor32(de::max(width, height))+1;
107 inline int getNumMipLevels3D (int width, int height, int depth)
109 return deLog2Floor32(de::max(width, de::max(height, depth)))+1;
306 ReferenceContextBuffers::ReferenceContextBuffers (const tcu::PixelFormat& colorBits, int depthBits, int stencilBits, int width, int height, int samples)
308 m_colorbuffer.setStorage(toTextureFormat(colorBits), samples, width, height);
311 m_depthbuffer.setStorage(getDepthFormat(depthBits), samples, width, height);
314 m_stencilbuffer.setStorage(getStencilFormat(stencilBits), samples, width, height);
949 tcu::ConstPixelBufferAccess ReferenceContext::getUnpack2DAccess (const tcu::TextureFormat& format, int width, int height, const void* data)
956 return tcu::ConstPixelBufferAccess(format, width, height, 1, rowPitch, 0, ptr);
959 tcu::ConstPixelBufferAccess ReferenceContext::getUnpack3DAccess (const tcu::TextureFormat& format, int width, int height, int depth, const void* data)
963 int imageHeight = m_pixelUnpackImageHeight > 0 ? m_pixelUnpackImageHeight : height;
968 return tcu::ConstPixelBufferAccess(format, width, height, depth, rowPitch, slicePitch, ptr);
989 int height = dst.getHeight();
992 DE_ASSERT(src.getWidth() == width && src.getHeight() == height && src.getDepth() == depth);
1000 for (int y = 0; y < height; y++)
1011 for (int y = 0; y < height; y++)
1022 void ReferenceContext::texImage2D (deUint32 target, int level, deUint32 internalFormat, int width, int height, int border, deUint32 format, deUint32 type, const void* data)
1024 texImage3D(target, level, internalFormat, width, height, 1, border, format, type, data);
1041 void ReferenceContext::texImage3D (deUint32 target, int level, deUint32 internalFormat, int width, int height, int depth, int border, deUint32 format, deUint32 type, const void* data)
1050 RC_IF_ERROR(width < 0 || height < 0 || depth < 0 || level < 0, GL_INVALID_VALUE, RC_RET_VOID);
1065 RC_IF_ERROR(width > m_limits.maxTexture2DSize || height != 1 || depth != 1, GL_INVALID_VALUE, RC_RET_VOID);
1100 RC_IF_ERROR(width > m_limits.maxTexture2DSize || height > m_limits.maxTexture2DSize || depth != 1, GL_INVALID_VALUE, RC_RET_VOID);
1112 height != dst.getHeight(), GL_INVALID_OPERATION, RC_RET_VOID);
1115 texture->allocLevel(level, storageFmt, width, height);
1119 ConstPixelBufferAccess src = getUnpack2DAccess(transferFmt, width, height, unpackPtr);
1141 RC_IF_ERROR(width != height || width > m_limits.maxTextureCubeSize || depth != 1, GL_INVALID_VALUE, RC_RET_VOID);
1154 height != dst.getHeight(), GL_INVALID_OPERATION, RC_RET_VOID);
1157 texture->allocFace(level, face, storageFmt, width, height);
1161 ConstPixelBufferAccess src = getUnpack2DAccess(transferFmt, width, height, unpackPtr);
1179 height > m_limits.maxTexture2DSize ||
1192 height != dst.getHeight() ||
1196 texture->allocLevel(level, storageFmt, width, height, depth);
1200 ConstPixelBufferAccess src = getUnpack3DAccess(transferFmt, width, height, depth, unpackPtr);
1218 height > m_limits.maxTexture3DSize ||
1231 height != dst.getHeight() ||
1235 texture->allocLevel(level, storageFmt, width, height, depth);
1239 ConstPixelBufferAccess src = getUnpack3DAccess(transferFmt, width, height, depth, unpackPtr);
1256 RC_IF_ERROR(width != height ||
1271 height != dst.getHeight() ||
1275 texture->allocLevel(level, storageFmt, width, height, depth);
1279 ConstPixelBufferAccess src = getUnpack3DAccess(transferFmt, width, height, depth, unpackPtr);
1302 void ReferenceContext::texSubImage2D (deUint32 target, int level, int xoffset, int yoffset, int width, int height, deUint32 format, deUint32 type, const void* data)
1304 texSubImage3D(target, level, xoffset, yoffset, 0, width, height, 1, format, type, data);
1307 void ReferenceContext::texSubImage3D (deUint32 target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, deUint32 format, deUint32 type, const void* data)
1312 RC_IF_ERROR(width < 0 || height < 0 || depth < 0, GL_INVALID_VALUE, RC_RET_VOID);
1318 ConstPixelBufferAccess src = getUnpack3DAccess(transferFmt, width, height, depth, getPixelUnpackPtr(data));
1329 yoffset + height > dst.getHeight() ||
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);
1348 yoffset + height > dst.getHeight() ||
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);
1373 yoffset + height > dst.getHeight() ||
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);
1392 yoffset + height > dst.getHeight() ||
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);
1411 yoffset + height > dst.getHeight() ||
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);
1430 yoffset + height > dst.getHeight() ||
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);
1492 void ReferenceContext::copyTexImage2D (deUint32 target, int level, deUint32 internalFormat, int x, int y, int width, int height, int border)
1499 RC_IF_ERROR(width < 0 || height < 0 || level < 0, GL_INVALID_VALUE, RC_RET_VOID);
1510 RC_IF_ERROR(width > m_limits.maxTexture2DSize || height > m_limits.maxTexture2DSize, GL_INVALID_VALUE, RC_RET_VOID);
1522 height != dst.getHeight(), GL_INVALID_OPERATION, RC_RET_VOID);
1525 texture->allocLevel(level, storageFmt, width, height);
1529 for (int yo = 0; yo < height; yo++)
1546 RC_IF_ERROR(width != height || width > m_limits.maxTextureCubeSize, GL_INVALID_VALUE, RC_RET_VOID);
1559 height != dst.getHeight(), GL_INVALID_OPERATION, RC_RET_VOID);
1562 texture->allocFace(level, face, storageFmt, width, height);
1566 for (int yo = 0; yo < height; yo++)
1610 void ReferenceContext::copyTexSubImage2D (deUint32 target, int level, int xoffset, int yoffset, int x, int y, int width, int height)
1616 RC_IF_ERROR(width < 0 || height < 0, GL_INVALID_VALUE, RC_RET_VOID);
1628 yoffset + height > dst.getHeight(),
1631 for (int yo = 0; yo < height; yo++)
1655 yoffset + height > dst.getHeight(),
1658 for (int yo = 0; yo < height; yo++)
1671 void ReferenceContext::copyTexSubImage3D (deUint32 target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height)
1673 DE_UNREF(target && level && xoffset && yoffset && zoffset && x && y && width && height);
1677 void ReferenceContext::texStorage2D (deUint32 target, int levels, deUint32 internalFormat, int width, int height)
1682 RC_IF_ERROR(width <= 0 || height <= 0, GL_INVALID_VALUE, RC_RET_VOID);
1683 RC_IF_ERROR(!de::inRange(levels, 1, (int)deLog2Floor32(de::max(width, height))+1), GL_INVALID_VALUE, RC_RET_VOID);
1694 RC_IF_ERROR(width > m_limits.maxTexture2DSize || height >= m_limits.maxTexture2DSize, GL_INVALID_VALUE, RC_RET_VOID);
1703 int levelH = de::max(1, height >> level);
1712 RC_IF_ERROR(width > m_limits.maxTextureCubeSize || height > m_limits.maxTextureCubeSize, GL_INVALID_VALUE, RC_RET_VOID);
1721 int levelH = de::max(1, height >> level);
1731 void ReferenceContext::texStorage3D (deUint32 target, int levels, deUint32 internalFormat, int width, int height, int depth)
1736 RC_IF_ERROR(width <= 0 || height <= 0, GL_INVALID_VALUE, RC_RET_VOID);
1737 RC_IF_ERROR(!de::inRange(levels, 1, (int)deLog2Floor32(de::max(width, height))+1), GL_INVALID_VALUE, RC_RET_VOID);
1749 height >= m_limits.maxTexture2DSize ||
1759 int levelH = de::max(1, height >> level);
1769 height > m_limits.maxTexture3DSize ||
1779 int levelH = de::max(1, height >> level);
1789 RC_IF_ERROR(width != height ||
1801 int levelH = de::max(1, height >> level);
2185 int height = -1;
2272 height = attachmentHeight;
2275 else if (attachmentWidth != width || attachmentHeight != height)
2328 void ReferenceContext::renderbufferStorage (deUint32 target, deUint32 internalformat, int width, int height)
2335 !deInRange32(height, 0, m_limits.maxRenderbufferSize),
2340 m_renderbufferBinding->setStorage(format, (int)width, (int)height);
2343 void ReferenceContext::renderbufferStorageMultisample (deUint32 target, int samples, deUint32 internalFormat, int width, int height)
2347 renderbufferStorage(target, internalFormat, width, height);
2647 void ReferenceContext::scissor (int x, int y, int width, int height)
2649 RC_IF_ERROR(width < 0 || height < 0, GL_INVALID_VALUE, RC_RET_VOID);
2650 m_scissorBox = IVec4(x, y, width, height);
3151 // Negative width/height means swap.
3319 void ReferenceContext::invalidateSubFramebuffer (deUint32 target, int numAttachments, const deUint32* attachments, int x, int y, int width, int height)
3323 RC_IF_ERROR(width < 0 || height < 0, GL_INVALID_VALUE, RC_RET_VOID);
3363 tcu::IVec4 area = intersect(tcu::IVec4(0, 0, buf.raw().getHeight(), buf.raw().getDepth()), tcu::IVec4(x, y, width, height));
3382 int height = 0;
3388 height = de::max(height, colorBuf0.raw().getDepth());
3389 height = de::max(height, depthBuf.raw().getDepth());
3390 height = de::max(height, stencilBuf.raw().getDepth());
3392 invalidateSubFramebuffer(target, numAttachments, attachments, 0, 0, width, height);
4630 void ReferenceContext::readPixels (int x, int y, int width, int height, deUint32 format, deUint32 type, void* data)
4644 const int copyHeight = deClamp32(height, 0, src.raw().getDepth()-y);
4646 PixelBufferAccess dst(transferFmt, width, height, 1, deAlign32(width*transferFmt.getPixelSize(), m_pixelPackAlignment), 0, getPixelPackPtr(data));
4720 void TextureLevelArray::allocLevel (int level, const tcu::TextureFormat& format, int width, int height, int depth)
4722 const int dataSize = format.getPixelSize()*width*height*depth;
4730 m_access[level] = PixelBufferAccess(format, width, height, depth, m_data[level].getPtr());
4875 void Texture2D::allocLevel (int level, const tcu::TextureFormat& format, int width, int height)
4877 m_levels.allocLevel(level, format, width, height, 1);
4928 const int height = getLevel(baseLevel).getHeight();
4930 const int numLevels = isMipmap ? de::min(getMaxLevel()-baseLevel+1, getNumMipLevels2D(width, height)) : 1;
4984 void TextureCube::allocFace (int level, tcu::CubeFace face, const tcu::TextureFormat& format, int width, int height)
4986 m_levels[face].allocLevel(level, format, width, height, 1);
4996 const int height = getFace(baseLevel, tcu::CUBEFACE_NEGATIVE_X).getHeight();
4999 const int numLevels = mipmap ? de::min(getMaxLevel()-baseLevel+1, getNumMipLevels2D(width, height)) : 1;
5001 if (width != height)
5008 const int levelH = getMipLevelSize(height, levelNdx);
5107 void Texture2DArray::allocLevel (int level, const tcu::TextureFormat& format, int width, int height, int numLayers)
5109 m_levels.allocLevel(level, format, width, height, numLayers);
5161 const int height = getLevel(baseLevel).getHeight();
5163 const int numLevels = isMipmap ? de::min(getMaxLevel()-baseLevel+1, getNumMipLevels2D(width, height)) : 1;
5212 void TextureCubeArray::allocLevel (int level, const tcu::TextureFormat& format, int width, int height, int numLayers)
5215 m_levels.allocLevel(level, format, width, height, numLayers);
5267 const int height = getLevel(baseLevel).getHeight();
5269 const int numLevels = isMipmap ? de::min(getMaxLevel()-baseLevel+1, getNumMipLevels2D(width, height)) : 1;
5333 void Texture3D::allocLevel (int level, const tcu::TextureFormat& format, int width, int height, int depth)
5335 m_levels.allocLevel(level, format, width, height, depth);
5420 const int height = getLevel(baseLevel).getHeight();
5423 const int numLevels = isMipmap ? de::min(getMaxLevel()-baseLevel+1, getNumMipLevels3D(width, height, depth)) : 1;
5441 void Renderbuffer::setStorage (const TextureFormat& format, int width, int height)
5443 m_data.setStorage(format, width, height);