/external/deqp/external/vulkancts/modules/vulkan/ycbcr/ |
D | vktYCbCrStorageImageWriteTests.cpp | 149 …etPlaneCompatibleFormatForWriting(const vk::PlanarFormatDescription& formatInfo, deUint32 planeNdx) in getPlaneCompatibleFormatForWriting() argument 151 DE_ASSERT(planeNdx < formatInfo.numPlanes); in getPlaneCompatibleFormatForWriting() 152 vk::VkFormat result = formatInfo.planes[planeNdx].planeCompatibleFormat; in getPlaneCompatibleFormatForWriting() 239 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in testStorageImageWrite() local 241 …Flags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : VK_IMAGE_ASPEC… in testStorageImageWrite() 243 …rmat planeCompatibleFormat = getPlaneCompatibleFormatForWriting(formatDescription, planeNdx); in testStorageImageWrite() 244 …= (planeCompatibleFormat != getPlaneCompatibleFormat(formatDescription, planeNdx)) ? getPlanarForm… in testStorageImageWrite() 246 …bleShaderGridSize.x(), compatibleShaderGridSize.y(), compatibleShaderGridSize.z() }, planeNdx, 0u); in testStorageImageWrite() 250 shaderName << "comp" << planeNdx; in testStorageImageWrite() 300 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in testStorageImageWrite() local [all …]
|
D | vktYCbCrUtil.cpp | 67 for (deUint32 planeNdx = 0; planeNdx < m_description.numPlanes; ++planeNdx) in MultiPlaneImageData() local 68 …m_planeData[planeNdx].resize(getPlaneSizeInBytes(m_description, size, planeNdx, 0, BUFFER_IMAGE_CO… in MultiPlaneImageData() 76 for (deUint32 planeNdx = 0; planeNdx < m_description.numPlanes; ++planeNdx) in MultiPlaneImageData() local 77 m_planeData[planeNdx] = other.m_planeData[planeNdx]; in MultiPlaneImageData() 89 for (deUint32 planeNdx = 0; planeNdx < m_description.numPlanes; ++planeNdx) in getChannelAccess() local 91 …const deUint32 planeW = m_size.x() / ( m_description.blockWidth * m_description.planes[planeNdx].… in getChannelAccess() 92 planeRowPitches[planeNdx] = m_description.planes[planeNdx].elementSizeBytes * planeW; in getChannelAccess() 93 planePtrs[planeNdx] = &m_planeData[planeNdx][0]; in getChannelAccess() 108 for (deUint32 planeNdx = 0; planeNdx < m_description.numPlanes; ++planeNdx) in getChannelAccess() local 110 …const deUint32 planeW = m_size.x() / (m_description.blockWidth * m_description.planes[planeNdx].w… in getChannelAccess() [all …]
|
D | vktYCbCrViewTests.cpp | 291 deUint32 planeNdx; member 299 , planeNdx (planeNdx_) in TestParameters() 308 , planeNdx (0u) in TestParameters() 372 const VkFormat planeViewFormat = getPlaneCompatibleFormat(params.format, params.planeNdx); in checkSupport() 383 deInt32Hash((deUint32)params.planeNdx) ^ in testPlaneView() 391 const VkFormat planeViewFormat = getPlaneCompatibleFormat(format, params.planeNdx); in testPlaneView() 394 const UVec2 planeExtent = getPlaneExtent(formatInfo, size, params.planeNdx, 0); in testPlaneView() 417 allocations[params.planeNdx]->getMemory(), in testPlaneView() 418 allocations[params.planeNdx]->getOffset(), in testPlaneView() 425 …mageMemory(device, *imageAlias, allocations[params.planeNdx]->getMemory(), allocations[params.plan… in testPlaneView() [all …]
|
D | vktYCbCrUtil.hpp | 68 size_t getPlaneSize (deUint32 planeNdx) const { return m_planeData[planeNdx].size(); } in getPlaneSize() 69 void* getPlanePtr (deUint32 planeNdx) { return &m_planeData[planeNdx][0]; } in getPlanePtr() argument 70 const void* getPlanePtr (deUint32 planeNdx) const { return &m_planeData[planeNdx][0]; } in getPlanePtr()
|
D | vktYCbCrCopyTests.cpp | 728 for (deUint32 planeNdx = 0; planeNdx < result.getDescription().numPlanes; ++planeNdx) in imageCopyTest() local 730 …2 planeSize = vk::getPlaneSizeInBytes(result.getDescription(), result.getSize(), planeNdx, 0u, 1u); in imageCopyTest() 733 const deUint8 res = ((const deUint8*)result.getPlanePtr(planeNdx))[byteNdx]; in imageCopyTest() 734 const deUint8 ref = ((const deUint8*)reference.getPlanePtr(planeNdx))[byteNdx]; in imageCopyTest() 744 …log << TestLog::Message << "Plane: " << planeNdx << ", Offset: " << byteNdx << ", Expected: " << (… in imageCopyTest()
|
D | vktYCbCrConversionTests.cpp | 691 for (deUint32 planeNdx = 0; planeNdx < planeInfo.numPlanes; planeNdx++) in textureConversionTest() local 692 deMemset(src.getPlanePtr(planeNdx), 0u, src.getPlaneSize(planeNdx)); in textureConversionTest()
|
/external/deqp/external/vulkancts/modules/vulkan/sparse_resources/ |
D | vktSparseResourcesShaderIntrinsicsBase.cpp | 484 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local 488 …imageSparseInfo.extent, imageSparseInfo.arrayLayers, formatDescription, planeNdx, mipmapNdx, BUFFE… in iterate() 489 …imageSparseInfo.arrayLayers, formatDescription, planeNdx, mipmapNdx) / formatDescription.planes[pl… in iterate() 520 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local 522 …ctFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : VK_IMAGE_ASPEC… in iterate() 537 …imageSparseInfo.arrayLayers, formatDescription, planeNdx, mipmapNdx) / formatDescription.planes[pl… in iterate() 554 …nt3D mipExtent = getPlaneExtent(formatDescription, imageSparseInfo.extent, planeNdx, mipmapNdx); in iterate() 697 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local 699 …const VkImageAspectFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : V… in iterate() 703 bufferImageSparseCopy[planeNdx*imageSparseInfo.mipLevels + mipmapNdx] = in iterate() [all …]
|
D | vktSparseResourcesImageMemoryAliasing.cpp | 310 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local 312 …ctFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : VK_IMAGE_ASPEC… in iterate() 329 …D mipExtent = getPlaneExtent(formatDescription, imageSparseInfo.extent, planeNdx, mipLevelNdx); in iterate() 447 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local 452 planeOffsets[mipmapNdx][planeNdx] = imageSizeInBytes; in iterate() 453 … = gridSize.x() / (formatDescription.blockWidth * formatDescription.planes[planeNdx].widthDivisor); in iterate() 454 …planeRowPitches[mipmapNdx][planeNdx] = formatDescription.planes[planeNdx].elementSizeBytes * plane… in iterate() 455 …imageSparseInfo.extent, imageSparseInfo.arrayLayers, formatDescription, planeNdx, mipmapNdx, BUFFE… in iterate() 463 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local 465 …const VkImageAspectFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : V… in iterate() [all …]
|
D | vktSparseResourcesImageSparseResidency.cpp | 199 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in initPrograms() local 201 …rmat planeCompatibleFormat = getPlaneCompatibleFormatForWriting(formatDescription, planeNdx); in initPrograms() 202 …= (planeCompatibleFormat != getPlaneCompatibleFormat(formatDescription, planeNdx)) ? getPlanarForm… in initPrograms() 210 if (formatDescription.channels[channelNdx].planeNdx != planeNdx) in initPrograms() 218 …shaderExtent = getPlaneExtent(compatibleFormatDescription, compatibleShaderGridSize, planeNdx, 0); in initPrograms() 237 shaderName << "comp" << planeNdx; in initPrograms() 402 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local 404 …ctFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : VK_IMAGE_ASPEC… in iterate() 418 … planeExtent = getPlaneExtent(formatDescription, imageCreateInfo.extent, planeNdx, mipLevelNdx); in iterate() 588 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local [all …]
|
D | vktSparseResourcesMipmapSparseResidency.cpp | 252 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local 254 …ctFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : VK_IMAGE_ASPEC… in iterate() 271 …D mipExtent = getPlaneExtent(formatDescription, imageSparseInfo.extent, planeNdx, mipLevelNdx); in iterate() 394 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local 396 …imageSparseInfo.extent, imageSparseInfo.arrayLayers, formatDescription, planeNdx, mipmapNdx, BUFFE… in iterate() 402 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local 404 …const VkImageAspectFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : V… in iterate() 408 bufferImageCopy[planeNdx*imageSparseInfo.mipLevels + mipmapNdx] = in iterate() 415 …vk::getPlaneExtent(formatDescription, imageSparseInfo.extent, planeNdx, mipmapNdx) // VkExtent3D … in iterate() 417 …imageSparseInfo.extent, imageSparseInfo.arrayLayers, formatDescription, planeNdx, mipmapNdx, BUFFE… in iterate() [all …]
|
D | vktSparseResourcesImageSparseBinding.cpp | 280 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local 282 …imageSparseInfo.extent, imageSparseInfo.arrayLayers, formatDescription, planeNdx, mipmapNdx, BUFFE… in iterate() 287 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local 289 …const VkImageAspectFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : V… in iterate() 293 bufferImageCopy[planeNdx*imageSparseInfo.mipLevels + mipmapNdx] = in iterate() 300 …vk::getPlaneExtent(formatDescription, imageSparseInfo.extent, planeNdx, mipmapNdx) // VkExtent3D … in iterate() 302 …imageSparseInfo.extent, imageSparseInfo.arrayLayers, formatDescription, planeNdx, mipmapNdx, BUFFE… in iterate() 341 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local 343 …const VkImageAspectFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : V… in iterate() 364 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local [all …]
|
D | vktSparseResourcesImageBlockShapes.cpp | 210 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local 212 …const VkImageAspectFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx)… in iterate() 220 …deUint32 pixelSize = static_cast<deUint32>(formatDescription.planes[planeNdx].elementSizeBy… in iterate()
|
D | vktSparseResourcesTestsUtil.cpp | 810 …t, const vk::PlanarFormatDescription& formatDescription, const deUint32 planeNdx, const deUint32 m… in getImageMipLevelSizeInBytes() argument 812 …return layersCount * getPlaneSizeInBytes(formatDescription, baseExtents, planeNdx, mipmapLevel, mi… in getImageMipLevelSizeInBytes() 815 …t, const vk::PlanarFormatDescription& formatDescription, const deUint32 planeNdx, const deUint32 m… in getImageSizeInBytes() argument 820 …etImageMipLevelSizeInBytes(baseExtents, layersCount, formatDescription, planeNdx, mipmapLevel, mip… in getImageSizeInBytes() 989 …etPlaneCompatibleFormatForWriting(const vk::PlanarFormatDescription& formatInfo, deUint32 planeNdx) in getPlaneCompatibleFormatForWriting() argument 991 DE_ASSERT(planeNdx < formatInfo.numPlanes); in getPlaneCompatibleFormatForWriting() 992 vk::VkFormat result = formatInfo.planes[planeNdx].planeCompatibleFormat; in getPlaneCompatibleFormatForWriting()
|
D | vktSparseResourcesTestsUtil.hpp | 158 const deUint32 planeNdx, 165 const deUint32 planeNdx, 246 deUint32 planeNdx);
|
/external/deqp/external/vulkancts/framework/vulkan/ |
D | vkImageUtil.hpp | 109 deUint8 planeNdx; member 140 const deUint32 planeNdx, 145 const deUint32 planeNdx, 150 const deUint32 planeNdx, 154 const deUint32 planeNdx, 161 deUint32 planeNdx); 163 deUint32 planeNdx); 165 VkImageAspectFlagBits getPlaneAspect (deUint32 planeNdx);
|
D | vkImageUtil.cpp | 2241 const deUint32 planeNdx, in getPlaneSizeInBytes() argument 2245 VkExtent3D imageExtent = getPlaneExtent(formatInfo, baseExtents, planeNdx, mipmapLevel); in getPlaneSizeInBytes() 2248 …return deAlign32( formatInfo.planes[planeNdx].elementSizeBytes * imageExtent.width * imageExtent.h… in getPlaneSizeInBytes() 2253 const deUint32 planeNdx, in getPlaneSizeInBytes() argument 2257 …tcu::UVec2 mipExtents = getPlaneExtent(formatInfo, baseExtents, planeNdx, mipmapLevel) / tcu::UVec… in getPlaneSizeInBytes() 2258 …return deAlign32( formatInfo.planes[planeNdx].elementSizeBytes * mipExtents.x() * mipExtents.y(), … in getPlaneSizeInBytes() 2263 const deUint32 planeNdx, in getPlaneExtent() argument 2266 deUint32 widthDivisor = formatInfo.planes[planeNdx].widthDivisor; in getPlaneExtent() 2267 deUint32 heightDivisor = formatInfo.planes[planeNdx].heightDivisor; in getPlaneExtent() 2276 const deUint32 planeNdx, in getPlaneExtent() argument [all …]
|
D | vkMemUtil.cpp | 385 for (deUint32 planeNdx = 0; planeNdx < numPlanes; ++planeNdx) in bindImagePlanesMemory() local 387 const VkImageAspectFlagBits planeAspect = getPlaneAspect(planeNdx); in bindImagePlanesMemory()
|
D | vkNullDriver.cpp | 1137 for (deUint32 planeNdx = 0; planeNdx < desc.numPlanes; ++planeNdx) in getYCbCrImageDataSize() local 1139 const deUint32 elementSize = desc.planes[planeNdx].elementSizeBytes; in getYCbCrImageDataSize() 1142 totalSize += getPlaneSizeInBytes(desc, extent, planeNdx, 0, BUFFER_IMAGE_COPY_OFFSET_GRANULARITY); in getYCbCrImageDataSize()
|
/external/deqp/external/vulkancts/modules/vulkan/protected_memory/ |
D | vktProtectedMemYCbCrConversionTests.cpp | 336 for (deUint32 planeNdx = 0; planeNdx < imageData.getDescription().numPlanes; ++planeNdx) in uploadYCbCrImage() local 341 (deUint32)imageData.getPlaneSize(planeNdx), in uploadYCbCrImage() 355 (deUint32)imageData.getPlaneSize(planeNdx) in uploadYCbCrImage() 359 …r->getAllocation().getHostPtr(), imageData.getPlanePtr(planeNdx), imageData.getPlaneSize(planeNdx)… in uploadYCbCrImage() 360 …on().getMemory(), buffer->getAllocation().getOffset(), (deUint32)imageData.getPlaneSize(planeNdx)); in uploadYCbCrImage() 367 for (deUint32 planeNdx = 0; planeNdx < imageData.getDescription().numPlanes; ++planeNdx) in uploadYCbCrImage() local 370 ? vk::getPlaneAspect(planeNdx) in uploadYCbCrImage() 396 for (deUint32 planeNdx = 0; planeNdx < imageData.getDescription().numPlanes; ++planeNdx) in uploadYCbCrImage() local 399 ? vk::getPlaneAspect(planeNdx) in uploadYCbCrImage() 402 ? imageData.getSize().x() / formatDesc.planes[planeNdx].widthDivisor in uploadYCbCrImage() [all …]
|
/external/deqp/framework/referencerenderer/ |
D | rrRenderer.cpp | 549 for (int planeNdx = 0; planeNdx < numPlanes; ++planeNdx) in clipPrimitives() local 551 const ClipVolumePlane* plane = planes[planeNdx]; in clipPrimitives() 565 clippedByPlane[planeNdx] = true; in clipPrimitives() 570 clippedByPlane[planeNdx] = false; in clipPrimitives() 604 for (int planeNdx = 0; planeNdx < numPlanes; ++planeNdx) in clipPrimitives() local 608 if (!clippedByPlane[planeNdx]) in clipPrimitives() 616 clipTriangleToPlane(convexPrimitive, subTriangles[subTriangleNdx].vertices, *planes[planeNdx]); in clipPrimitives()
|
/external/deqp/external/vulkancts/modules/vulkan/memory/ |
D | vktMemoryRequirementsTests.cpp | 1618 for (deUint32 planeNdx = 0; planeNdx < (deUint32)getPlaneCount(format); planeNdx++) in testMultiplaneImages() local 1620 const VkImageAspectFlagBits aspect = getPlaneAspect(planeNdx); in testMultiplaneImages()
|