Lines Matching refs:planeNdx
2731 const deUint32 planeNdx,
2735 VkExtent3D imageExtent = getPlaneExtent(formatInfo, baseExtents, planeNdx, mipmapLevel);
2738 return deAlign32( formatInfo.planes[planeNdx].elementSizeBytes * imageExtent.width * imageExtent.height * imageExtent.depth, mipmapMemoryAlignment);
2743 const deUint32 planeNdx,
2747 tcu::UVec2 mipExtents = getPlaneExtent(formatInfo, baseExtents, planeNdx, mipmapLevel) / tcu::UVec2(formatInfo.blockWidth, formatInfo.blockHeight);
2748 return deAlign32( formatInfo.planes[planeNdx].elementSizeBytes * mipExtents.x() * mipExtents.y(), mipmapMemoryAlignment);
2753 const deUint32 planeNdx,
2756 deUint32 widthDivisor = formatInfo.planes[planeNdx].widthDivisor;
2757 deUint32 heightDivisor = formatInfo.planes[planeNdx].heightDivisor;
2766 const deUint32 planeNdx,
2769 deUint32 widthDivisor = formatInfo.planes[planeNdx].widthDivisor;
2770 deUint32 heightDivisor = formatInfo.planes[planeNdx].heightDivisor;
2788 for (deUint32 planeNdx = 0; planeNdx < formatInfo.numPlanes; ++planeNdx)
2790 imgAlignment.x() = std::max(imgAlignment.x(), static_cast<deUint32>(formatInfo.planes[planeNdx].widthDivisor));
2791 imgAlignment.y() = std::max(imgAlignment.y(), static_cast<deUint32>(formatInfo.planes[planeNdx].heightDivisor));
2806 VkFormat getPlaneCompatibleFormat(VkFormat format, deUint32 planeNdx)
2808 return getPlaneCompatibleFormat(getPlanarFormatDescription(format), planeNdx);
2811 VkFormat getPlaneCompatibleFormat(const PlanarFormatDescription& formatInfo, deUint32 planeNdx)
2813 DE_ASSERT(planeNdx < formatInfo.numPlanes);
2814 return formatInfo.planes[planeNdx].planeCompatibleFormat;
2817 VkImageAspectFlagBits getPlaneAspect (deUint32 planeNdx)
2819 DE_ASSERT(de::inBounds(planeNdx, 0u, 3u));
2820 return (VkImageAspectFlagBits)(VK_IMAGE_ASPECT_PLANE_0_BIT << planeNdx);
3590 const deUint32 planeNdx = formatInfo.channels[channelNdx].planeNdx;
3595 DE_ASSERT(size.x() % (formatInfo.blockWidth * formatInfo.planes[planeNdx].widthDivisor) == 0);
3596 DE_ASSERT(size.y() % (formatInfo.blockHeight * formatInfo.planes[planeNdx].heightDivisor) == 0);
3598 const deUint32 accessHeight = size.y() / ( formatInfo.blockHeight * formatInfo.planes[planeNdx].heightDivisor );
3599 const deUint32 elementSizeBytes = formatInfo.planes[planeNdx].elementSizeBytes;
3600 const deUint32 rowPitch = planeRowPitches[planeNdx];
3605 std::max(formatInfo.blockWidth * formatInfo.planes[planeNdx].widthDivisor * pixelStrideBytes / elementSizeBytes, 1u),
3606 std::max(formatInfo.blockHeight * formatInfo.planes[planeNdx].heightDivisor * pixelStrideBytes / elementSizeBytes, 1u),
3615 (deUint8*)planePtrs[planeNdx] + planeOffsetBytes);
3635 const deUint32 planeNdx = formatInfo.channels[channelNdx].planeNdx;
3640 DE_ASSERT(size.x() % (formatInfo.blockWidth * formatInfo.planes[planeNdx].widthDivisor) == 0);
3641 DE_ASSERT(size.y() % (formatInfo.blockHeight * formatInfo.planes[planeNdx].heightDivisor) == 0);
3643 const deUint32 accessHeight = size.y() / ( formatInfo.blockHeight * formatInfo.planes[planeNdx].heightDivisor );
3644 const deUint32 elementSizeBytes = formatInfo.planes[planeNdx].elementSizeBytes;
3645 const deUint32 rowPitch = planeRowPitches[planeNdx];
3650 std::max(formatInfo.blockWidth * formatInfo.planes[planeNdx].widthDivisor * pixelStrideBytes / elementSizeBytes, 1u),
3651 std::max(formatInfo.blockHeight * formatInfo.planes[planeNdx].heightDivisor * pixelStrideBytes / elementSizeBytes, 1u),
3660 (deUint8*)planePtrs[planeNdx] + planeOffsetBytes);