Home
last modified time | relevance | path

Searched refs:planeNdx (Results 1 – 21 of 21) sorted by relevance

/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ycbcr/
DvktYCbCrStorageImageWriteTests.cpp149 …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 …]
DvktYCbCrUtil.cpp69 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()
[all …]
DvktYCbCrViewTests.cpp324 deUint32 planeNdx; member
334 , planeNdx (planeNdx_) in TestParameters()
345 , planeNdx (0u) in TestParameters()
426 deInt32Hash((deUint32)params.planeNdx) ^ in testPlaneView()
437 const UVec2 planeExtent = getPlaneExtent(formatInfo, size, params.planeNdx, 0); in testPlaneView()
460 allocations[params.planeNdx]->getMemory(), in testPlaneView()
461 allocations[params.planeNdx]->getOffset(), in testPlaneView()
468 …mageMemory(device, *imageAlias, allocations[params.planeNdx]->getMemory(), allocations[params.plan… in testPlaneView()
502 !imageAlias ? getPlaneAspect(params.planeNdx) : VK_IMAGE_ASPECT_COLOR_BIT, in testPlaneView()
670 imageData.getPlanePtr(params.planeNdx)); in testPlaneView()
[all …]
DvktYCbCrUtil.hpp68 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()
DvktYCbCrCopyTests.cpp734 for (deUint32 planeNdx = 0; planeNdx < result.getDescription().numPlanes; ++planeNdx) in imageCopyTest() local
736 …2 planeSize = vk::getPlaneSizeInBytes(result.getDescription(), result.getSize(), planeNdx, 0u, 1u); in imageCopyTest()
739 const deUint8 res = ((const deUint8*)result.getPlanePtr(planeNdx))[byteNdx]; in imageCopyTest()
740 const deUint8 ref = ((const deUint8*)reference.getPlanePtr(planeNdx))[byteNdx]; in imageCopyTest()
750 …log << TestLog::Message << "Plane: " << planeNdx << ", Offset: " << byteNdx << ", Expected: " << (… in imageCopyTest()
DvktYCbCrConversionTests.cpp722 for (deUint32 planeNdx = 0; planeNdx < planeInfo.numPlanes; planeNdx++) in textureConversionTest() local
723 deMemset(src.getPlanePtr(planeNdx), 0u, src.getPlaneSize(planeNdx)); in textureConversionTest()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/sparse_resources/
DvktSparseResourcesShaderIntrinsicsBase.cpp515 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local
519 …imageSparseInfo.extent, imageSparseInfo.arrayLayers, formatDescription, planeNdx, mipmapNdx, BUFFE… in iterate()
520 …imageSparseInfo.arrayLayers, formatDescription, planeNdx, mipmapNdx) / formatDescription.planes[pl… in iterate()
551 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local
553 …ctFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : VK_IMAGE_ASPEC… in iterate()
568 …imageSparseInfo.arrayLayers, formatDescription, planeNdx, mipmapNdx) / formatDescription.planes[pl… in iterate()
585 …nt3D mipExtent = getPlaneExtent(formatDescription, imageSparseInfo.extent, planeNdx, mipmapNdx); in iterate()
756 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local
758 …const VkImageAspectFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : V… in iterate()
762 bufferImageSparseCopy[planeNdx*imageSparseInfo.mipLevels + mipmapNdx] = in iterate()
[all …]
DvktSparseResourcesImageMemoryAliasing.cpp325 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local
327 …ctFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : VK_IMAGE_ASPEC… in iterate()
344 …D mipExtent = getPlaneExtent(formatDescription, imageSparseInfo.extent, planeNdx, mipLevelNdx); in iterate()
462 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local
467 planeOffsets[mipmapNdx][planeNdx] = imageSizeInBytes; in iterate()
468 … = gridSize.x() / (formatDescription.blockWidth * formatDescription.planes[planeNdx].widthDivisor); in iterate()
469 …planeRowPitches[mipmapNdx][planeNdx] = formatDescription.planes[planeNdx].elementSizeBytes * plane… in iterate()
470 …imageSparseInfo.extent, imageSparseInfo.arrayLayers, formatDescription, planeNdx, mipmapNdx, BUFFE… in iterate()
478 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local
480 …const VkImageAspectFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : V… in iterate()
[all …]
DvktSparseResourcesMipmapSparseResidency.cpp263 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local
265 …ctFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : VK_IMAGE_ASPEC… in iterate()
282 …D mipExtent = getPlaneExtent(formatDescription, imageSparseInfo.extent, planeNdx, mipLevelNdx); in iterate()
405 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local
407 …imageSparseInfo.extent, imageSparseInfo.arrayLayers, formatDescription, planeNdx, mipmapNdx, BUFFE… in iterate()
413 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local
415 …const VkImageAspectFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : V… in iterate()
419 bufferImageCopy[planeNdx*imageSparseInfo.mipLevels + mipmapNdx] = in iterate()
426 …vk::getPlaneExtent(formatDescription, imageSparseInfo.extent, planeNdx, mipmapNdx) // VkExtent3D … in iterate()
428 …imageSparseInfo.extent, imageSparseInfo.arrayLayers, formatDescription, planeNdx, mipmapNdx, BUFFE… in iterate()
[all …]
DvktSparseResourcesImageSparseResidency.cpp199 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()
242 shaderName << "comp" << planeNdx; in initPrograms()
423 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local
425 …ctFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : VK_IMAGE_ASPEC… in iterate()
439 … planeExtent = getPlaneExtent(formatDescription, imageCreateInfo.extent, planeNdx, mipLevelNdx); in iterate()
609 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local
[all …]
DvktSparseResourcesImageSparseBinding.cpp288 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local
290 …imageSparseInfo.extent, imageSparseInfo.arrayLayers, formatDescription, planeNdx, mipmapNdx, BUFFE… in iterate()
295 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local
297 …const VkImageAspectFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : V… in iterate()
301 bufferImageCopy[planeNdx*imageSparseInfo.mipLevels + mipmapNdx] = in iterate()
308 …vk::getPlaneExtent(formatDescription, imageSparseInfo.extent, planeNdx, mipmapNdx) // VkExtent3D … in iterate()
310 …imageSparseInfo.extent, imageSparseInfo.arrayLayers, formatDescription, planeNdx, mipmapNdx, BUFFE… in iterate()
349 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local
351 …const VkImageAspectFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : V… in iterate()
372 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local
[all …]
DvktSparseResourcesImageBlockShapes.cpp220 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() local
222 …const VkImageAspectFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx)… in iterate()
230 …deUint32 pixelSize = static_cast<deUint32>(formatDescription.planes[planeNdx].elementSizeBy… in iterate()
DvktSparseResourcesTestsUtil.cpp842 …t, const vk::PlanarFormatDescription& formatDescription, const deUint32 planeNdx, const deUint32 m… in getImageMipLevelSizeInBytes() argument
844 …return layersCount * getPlaneSizeInBytes(formatDescription, baseExtents, planeNdx, mipmapLevel, mi… in getImageMipLevelSizeInBytes()
847 …t, const vk::PlanarFormatDescription& formatDescription, const deUint32 planeNdx, const deUint32 m… in getImageSizeInBytes() argument
852 …etImageMipLevelSizeInBytes(baseExtents, layersCount, formatDescription, planeNdx, mipmapLevel, mip… in getImageSizeInBytes()
1021 …etPlaneCompatibleFormatForWriting(const vk::PlanarFormatDescription& formatInfo, deUint32 planeNdx) in getPlaneCompatibleFormatForWriting() argument
1023 DE_ASSERT(planeNdx < formatInfo.numPlanes); in getPlaneCompatibleFormatForWriting()
1024 vk::VkFormat result = formatInfo.planes[planeNdx].planeCompatibleFormat; in getPlaneCompatibleFormatForWriting()
DvktSparseResourcesTestsUtil.hpp160 const deUint32 planeNdx,
167 const deUint32 planeNdx,
248 deUint32 planeNdx);
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/
DvkImageUtil.hpp116 deUint8 planeNdx; member
148 const deUint32 planeNdx,
153 const deUint32 planeNdx,
158 const deUint32 planeNdx,
162 const deUint32 planeNdx,
169 deUint32 planeNdx);
171 deUint32 planeNdx);
173 VkImageAspectFlagBits getPlaneAspect (deUint32 planeNdx);
DvkImageUtil.cpp2518 const deUint32 planeNdx, in getPlaneSizeInBytes() argument
2522 VkExtent3D imageExtent = getPlaneExtent(formatInfo, baseExtents, planeNdx, mipmapLevel); in getPlaneSizeInBytes()
2525 …return deAlign32( formatInfo.planes[planeNdx].elementSizeBytes * imageExtent.width * imageExtent.h… in getPlaneSizeInBytes()
2530 const deUint32 planeNdx, in getPlaneSizeInBytes() argument
2534 …tcu::UVec2 mipExtents = getPlaneExtent(formatInfo, baseExtents, planeNdx, mipmapLevel) / tcu::UVec… in getPlaneSizeInBytes()
2535 …return deAlign32( formatInfo.planes[planeNdx].elementSizeBytes * mipExtents.x() * mipExtents.y(), … in getPlaneSizeInBytes()
2540 const deUint32 planeNdx, in getPlaneExtent() argument
2543 deUint32 widthDivisor = formatInfo.planes[planeNdx].widthDivisor; in getPlaneExtent()
2544 deUint32 heightDivisor = formatInfo.planes[planeNdx].heightDivisor; in getPlaneExtent()
2553 const deUint32 planeNdx, in getPlaneExtent() argument
[all …]
DvkMemUtil.cpp385 for (deUint32 planeNdx = 0; planeNdx < numPlanes; ++planeNdx) in bindImagePlanesMemory() local
387 const VkImageAspectFlagBits planeAspect = getPlaneAspect(planeNdx); in bindImagePlanesMemory()
DvkNullDriver.cpp1245 for (deUint32 planeNdx = 0; planeNdx < desc.numPlanes; ++planeNdx) in getYCbCrImageDataSize() local
1247 const deUint32 elementSize = desc.planes[planeNdx].elementSizeBytes; in getYCbCrImageDataSize()
1250 totalSize += getPlaneSizeInBytes(desc, extent, planeNdx, 0, BUFFER_IMAGE_COPY_OFFSET_GRANULARITY); in getYCbCrImageDataSize()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/protected_memory/
DvktProtectedMemYCbCrConversionTests.cpp336 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()
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()
405 ? imageData.getSize().y() / formatDesc.planes[planeNdx].heightDivisor in uploadYCbCrImage()
[all …]
/third_party/vk-gl-cts/framework/referencerenderer/
DrrRenderer.cpp553 for (int planeNdx = 0; planeNdx < numPlanes; ++planeNdx) in clipPrimitives() local
555 const ClipVolumePlane* plane = planes[planeNdx]; in clipPrimitives()
569 clippedByPlane[planeNdx] = true; in clipPrimitives()
574 clippedByPlane[planeNdx] = false; in clipPrimitives()
608 for (int planeNdx = 0; planeNdx < numPlanes; ++planeNdx) in clipPrimitives() local
612 if (!clippedByPlane[planeNdx]) in clipPrimitives()
620 clipTriangleToPlane(convexPrimitive, subTriangles[subTriangleNdx].vertices, *planes[planeNdx]); in clipPrimitives()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/memory/
DvktMemoryRequirementsTests.cpp1959 for (deUint32 planeNdx = 0; planeNdx < (deUint32)getPlaneCount(format); planeNdx++) in testMultiplaneImages() local
1967 const VkImageAspectFlagBits aspect = getPlaneAspect(planeNdx); in testMultiplaneImages()