Lines Matching refs:planeNdx
69 for (deUint32 planeNdx = 0; planeNdx < m_description.numPlanes; ++planeNdx) in MultiPlaneImageData() local
70 …m_planeData[planeNdx].resize(getPlaneSizeInBytes(m_description, size, planeNdx, 0, BUFFER_IMAGE_CO… in MultiPlaneImageData()
78 for (deUint32 planeNdx = 0; planeNdx < m_description.numPlanes; ++planeNdx) in MultiPlaneImageData() local
79 m_planeData[planeNdx] = other.m_planeData[planeNdx]; in MultiPlaneImageData()
91 for (deUint32 planeNdx = 0; planeNdx < m_description.numPlanes; ++planeNdx) in getChannelAccess() local
93 …const deUint32 planeW = m_size.x() / ( m_description.blockWidth * m_description.planes[planeNdx].… in getChannelAccess()
94 planeRowPitches[planeNdx] = m_description.planes[planeNdx].elementSizeBytes * planeW; in getChannelAccess()
95 planePtrs[planeNdx] = &m_planeData[planeNdx][0]; in getChannelAccess()
110 for (deUint32 planeNdx = 0; planeNdx < m_description.numPlanes; ++planeNdx) in getChannelAccess() local
112 …const deUint32 planeW = m_size.x() / (m_description.blockWidth * m_description.planes[planeNdx].w… in getChannelAccess()
113 planeRowPitches[planeNdx] = m_description.planes[planeNdx].elementSizeBytes * planeW; in getChannelAccess()
114 planePtrs[planeNdx] = &m_planeData[planeNdx][0]; in getChannelAccess()
136 for (deUint32 planeNdx = 0; planeNdx < imageData.getDescription().numPlanes; ++planeNdx) in allocateStagingBuffers() local
143 (VkDeviceSize)imageData.getPlaneSize(planeNdx), in allocateStagingBuffers()
169 for (deUint32 planeNdx = 0; planeNdx < imageData.getDescription().numPlanes; ++planeNdx) in allocateAndWriteStagingBuffers() local
171 …deMemcpy((*allocations)[planeNdx]->getHostPtr(), imageData.getPlanePtr(planeNdx), imageData.getPla… in allocateAndWriteStagingBuffers()
172 flushMappedMemoryRange(vkd, device, (*allocations)[planeNdx]->getMemory(), 0u, VK_WHOLE_SIZE); in allocateAndWriteStagingBuffers()
181 for (deUint32 planeNdx = 0; planeNdx < imageData->getDescription().numPlanes; ++planeNdx) in readStagingBuffers() local
183 invalidateMappedMemoryRange(vkd, device, allocations[planeNdx]->getMemory(), 0u, VK_WHOLE_SIZE); in readStagingBuffers()
184 …deMemcpy(imageData->getPlanePtr(planeNdx), allocations[planeNdx]->getHostPtr(), imageData->getPlan… in readStagingBuffers()
273 for (deUint32 planeNdx = 0; planeNdx < imageData->getDescription().numPlanes; ++planeNdx) in fillRandom() local
275 const size_t planeSize = imageData->getPlaneSize(planeNdx); in fillRandom()
276 deUint8* const planePtr = (deUint8*)imageData->getPlanePtr(planeNdx); in fillRandom()
314 for (deUint32 planeNdx = 0; planeNdx < imageData->getDescription().numPlanes; ++planeNdx) in fillZero() local
315 deMemset(imageData->getPlanePtr(planeNdx), 0, imageData->getPlaneSize(planeNdx)); in fillZero()
368 for (deUint32 planeNdx = 0; planeNdx < imageData.getDescription().numPlanes; ++planeNdx) in uploadImage() local
371 ? getPlaneAspect(planeNdx) in uploadImage()
374 const VkExtent3D planeExtent = getPlaneExtent(formatDesc, imageExtent, planeNdx, 0); in uploadImage()
412 …vkd.cmdCopyBufferToImage(*cmdBuffer, **stagingBuffers[planeNdx], image, VK_IMAGE_LAYOUT_TRANSFER_D… in uploadImage()
463 for (deUint32 planeNdx = 0; planeNdx < formatDesc.numPlanes; ++planeNdx) in fillImageMemory() local
466 ? getPlaneAspect(planeNdx) in fillImageMemory()
469 ? allocations[planeNdx] in fillImageMemory()
471 const size_t planeSize = imageData.getPlaneSize(planeNdx); in fillImageMemory()
472 const deUint32 planeH = imageData.getSize().y() / formatDesc.planes[planeNdx].heightDivisor; in fillImageMemory()
487 const void* const srcPtr = ((const deUint8*)imageData.getPlanePtr(planeNdx)) + row * rowSize; in fillImageMemory()
549 for (deUint32 planeNdx = 0; planeNdx < imageData->getDescription().numPlanes; ++planeNdx) in downloadImage() local
552 ? getPlaneAspect(planeNdx) in downloadImage()
588 const VkExtent3D planeExtent = getPlaneExtent(formatDesc, imageExtent, planeNdx, 0); in downloadImage()
599 …er(*cmdBuffer, image, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, **stagingBuffers[planeNdx], 1u, ©); in downloadImage()
610 **stagingBuffers[planeNdx], in downloadImage()
682 for (deUint32 planeNdx = 0; planeNdx < formatDesc.numPlanes; ++planeNdx) in readImageMemory() local
685 ? getPlaneAspect(planeNdx) in readImageMemory()
688 ? allocations[planeNdx] in readImageMemory()
690 const size_t planeSize = imageData->getPlaneSize(planeNdx); in readImageMemory()
691 …const deUint32 planeH = imageData->getSize().y() / formatDesc.planes[planeNdx].heightDivisor; in readImageMemory()
708 void* const dstPtr = ((deUint8*)imageData->getPlanePtr(planeNdx)) + row * rowSize; in readImageMemory()
966 const deUint32 planeNdx = formatInfo.channels[channelNdx].planeNdx; in getChannelAccess() local
972 DE_ASSERT(size.x() % (formatInfo.blockWidth * formatInfo.planes[planeNdx].widthDivisor) == 0); in getChannelAccess()
973 DE_ASSERT(size.y() % (formatInfo.blockHeight * formatInfo.planes[planeNdx].heightDivisor) == 0); in getChannelAccess()
975 …deUint32 accessWidth = size.x() / ( formatInfo.blockWidth * formatInfo.planes[planeNdx].widthDi… in getChannelAccess()
976 …const deUint32 accessHeight = size.y() / ( formatInfo.blockHeight * formatInfo.planes[planeNdx].h… in getChannelAccess()
977 const deUint32 elementSizeBytes = formatInfo.planes[planeNdx].elementSizeBytes; in getChannelAccess()
978 const deUint32 rowPitch = formatInfo.planes[planeNdx].elementSizeBytes * accessWidth; in getChannelAccess()
987 …cu::IVec3((int)pixelStrideBits, (int)rowPitchBits, 0), data.getPlanePtr(planeNdx), (deUint32)value… in getChannelAccess()