/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ycbcr/ |
H A D | vktYCbCrStorageImageWriteTests.cpp | 120 vk::VkFormat getPlaneCompatibleFormatForWriting(const vk::PlanarFormatDescription& formatInfo, deUint32 planeNdx) in getPlaneCompatibleFormatForWriting() argument 122 DE_ASSERT(planeNdx < formatInfo.numPlanes); in getPlaneCompatibleFormatForWriting() 123 vk::VkFormat result = formatInfo.planes[planeNdx].planeCompatibleFormat; in getPlaneCompatibleFormatForWriting() 210 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) 212 const VkImageAspectFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : VK_IMAGE_ASPECT_COLOR_BIT; 214 VkFormat planeCompatibleFormat = getPlaneCompatibleFormatForWriting(formatDescription, planeNdx); 215 vk::PlanarFormatDescription compatibleFormatDescription = (planeCompatibleFormat != getPlaneCompatibleFormat(formatDescription, planeNdx)) ? getPlanarFormatDescription(planeCompatibleFormat) : formatDescription; 217 VkExtent3D shaderExtent = getPlaneExtent(compatibleFormatDescription, VkExtent3D{ compatibleShaderGridSize.x(), compatibleShaderGridSize.y(), compatibleShaderGridSize.z() }, planeNdx, [all...] |
H A D | vktYCbCrUtil.cpp | 69 for (deUint32 planeNdx = 0; planeNdx < m_description.numPlanes; ++planeNdx) in MultiPlaneImageData() 70 m_planeData[planeNdx].resize(getPlaneSizeInBytes(m_description, size, planeNdx, 0, BUFFER_IMAGE_COPY_OFFSET_GRANULARITY)); in MultiPlaneImageData() 78 for (deUint32 planeNdx = 0; planeNdx < m_description.numPlanes; ++planeNdx) in MultiPlaneImageData() 79 m_planeData[planeNdx] = other.m_planeData[planeNdx]; in MultiPlaneImageData() [all...] |
H A D | vktYCbCrViewTests.cpp | 326 deUint32 planeNdx; member 336 , planeNdx (planeNdx_) in TestParameters() 347 , planeNdx (0u) in TestParameters() 445 deInt32Hash((deUint32)params.planeNdx) ^ in testPlaneView() 456 const UVec2 planeExtent = getPlaneExtent(formatInfo, size, params.planeNdx, 0); in testPlaneView() 479 allocations[params.planeNdx]->getMemory(), in testPlaneView() 480 allocations[params.planeNdx]->getOffset(), in testPlaneView() 487 VK_CHECK(vkd.bindImageMemory(device, *imageAlias, allocations[params.planeNdx]->getMemory(), allocations[params.planeNdx]->getOffset())); in testPlaneView() 521 !imageAlias ? getPlaneAspect(params.planeNdx) in testPlaneView() [all...] |
H A 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()
|
H A D | vktYCbCrImageOffsetTests.cpp | 110 for (deUint32 planeNdx = 0; planeNdx < numPlanes; ++planeNdx) in imageOffsetTest() 112 const vk::VkImageAspectFlagBits planeAspect = (vk::VkImageAspectFlagBits)(vk::VK_IMAGE_ASPECT_PLANE_0_BIT << planeNdx); in imageOffsetTest()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ycbcr/ |
H A D | vktYCbCrStorageImageWriteTests.cpp | 71 vk::VkFormat getPlaneCompatibleFormatForWriting(const vk::PlanarFormatDescription& formatInfo, deUint32 planeNdx) in getPlaneCompatibleFormatForWriting() argument 73 DE_ASSERT(planeNdx < formatInfo.numPlanes); in getPlaneCompatibleFormatForWriting() 74 vk::VkFormat result = formatInfo.planes[planeNdx].planeCompatibleFormat; in getPlaneCompatibleFormatForWriting() 150 deUint32 planeNdx = formatDescription.channels[channelNdx].planeNdx; 151 vk::VkFormat planeCompatibleFormat = getPlaneCompatibleFormatForWriting(formatDescription, planeNdx); 189 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) 191 const VkFormat planeCompatibleFormat = getPlaneCompatibleFormatForWriting(formatDescription, planeNdx); [all...] |
H A D | vktYCbCrUtil.cpp | 69 for (deUint32 planeNdx = 0; planeNdx < m_description.numPlanes; ++planeNdx) in MultiPlaneImageData() 70 m_planeData[planeNdx].resize(getPlaneSizeInBytes(m_description, size, planeNdx, 0, BUFFER_IMAGE_COPY_OFFSET_GRANULARITY)); in MultiPlaneImageData() 78 for (deUint32 planeNdx = 0; planeNdx < m_description.numPlanes; ++planeNdx) in MultiPlaneImageData() 79 m_planeData[planeNdx] = other.m_planeData[planeNdx]; in MultiPlaneImageData() [all...] |
H A D | vktYCbCrViewTests.cpp | 328 deUint32 planeNdx; member 338 , planeNdx (planeNdx_) in TestParameters() 349 , planeNdx (0u) in TestParameters() 493 deInt32Hash((deUint32)params.planeNdx) ^ in testPlaneView() 504 const UVec2 planeExtent = getPlaneExtent(formatInfo, size, params.planeNdx, 0); in testPlaneView() 527 allocations[params.planeNdx]->getMemory(), in testPlaneView() 528 allocations[params.planeNdx]->getOffset(), in testPlaneView() 535 VK_CHECK(vkd.bindImageMemory(device, *imageAlias, allocations[params.planeNdx]->getMemory(), allocations[params.planeNdx]->getOffset())); in testPlaneView() 569 !imageAlias ? getPlaneAspect(params.planeNdx) in testPlaneView() [all...] |
H A 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()
|
H A D | vktYCbCrImageOffsetTests.cpp | 110 for (deUint32 planeNdx = 0; planeNdx < numPlanes; ++planeNdx) in imageOffsetTest() 112 const vk::VkImageAspectFlagBits planeAspect = (vk::VkImageAspectFlagBits)(vk::VK_IMAGE_ASPECT_PLANE_0_BIT << planeNdx); in imageOffsetTest()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/sparse_resources/ |
H A D | vktSparseResourcesImageMemoryAliasing.cpp | 323 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() 325 const VkImageAspectFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : VK_IMAGE_ASPECT_COLOR_BIT; in iterate() 342 const VkExtent3D mipExtent = getPlaneExtent(formatDescription, imageSparseInfo.extent, planeNdx, mipLevelNdx); in iterate() 460 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() 465 planeOffsets[mipmapNdx][planeNdx] = imageSizeInBytes; in iterate() 466 const deUint32 planeW = gridSize.x() / (formatDescription.blockWidth * formatDescription.planes[planeNdx] in iterate() 733 deUint32 planeNdx = formatDescription.channels[channelNdx].planeNdx; iterate() local [all...] |
H A D | vktSparseResourcesShaderIntrinsicsBase.cpp | 538 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() 542 imageSparseSizeInBytes += getImageMipLevelSizeInBytes(imageSparseInfo.extent, imageSparseInfo.arrayLayers, formatDescription, planeNdx, mipmapNdx, BUFFER_IMAGE_COPY_OFFSET_GRANULARITY); in iterate() 543 imageSizeInPixels += getImageMipLevelSizeInBytes(imageSparseInfo.extent, imageSparseInfo.arrayLayers, formatDescription, planeNdx, mipmapNdx) / formatDescription.planes[planeNdx].elementSizeBytes; in iterate() 574 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() 576 const VkImageAspectFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) in iterate() [all...] |
H A D | vktSparseResourcesImageSparseBinding.cpp | 291 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() 293 imageSizeInBytes += getImageMipLevelSizeInBytes(imageSparseInfo.extent, imageSparseInfo.arrayLayers, formatDescription, planeNdx, mipmapNdx, BUFFER_IMAGE_COPY_OFFSET_GRANULARITY); in iterate() 298 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() 300 const VkImageAspectFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : VK_IMAGE_ASPECT_COLOR_BIT; in iterate() 304 bufferImageCopy[planeNdx*imageSparseInfo.mipLevels + mipmapNdx] = in iterate() 311 vk::getPlaneExtent(formatDescription, imageSparseInfo.extent, planeNdx, mipmapNd in iterate() [all...] |
H A D | vktSparseResourcesMipmapSparseResidency.cpp | 261 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() 263 const VkImageAspectFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : VK_IMAGE_ASPECT_COLOR_BIT; in iterate() 280 const VkExtent3D mipExtent = getPlaneExtent(formatDescription, imageSparseInfo.extent, planeNdx, mipLevelNdx); in iterate() 403 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() 405 imageSizeInBytes += getImageMipLevelSizeInBytes(imageSparseInfo.extent, imageSparseInfo.arrayLayers, formatDescription, planeNdx, mipmapNdx, BUFFER_IMAGE_COPY_OFFSET_GRANULARITY); in iterate() 411 for (deUint32 planeNdx in iterate() [all...] |
H A D | vktSparseResourcesImageSparseResidency.cpp | 199 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in initPrograms() 201 VkFormat planeCompatibleFormat = getPlaneCompatibleFormatForWriting(formatDescription, planeNdx); in initPrograms() 202 vk::PlanarFormatDescription compatibleFormatDescription = (planeCompatibleFormat != getPlaneCompatibleFormat(formatDescription, planeNdx)) ? getPlanarFormatDescription(planeCompatibleFormat) : formatDescription; in initPrograms() 210 if (formatDescription.channels[channelNdx].planeNdx != planeNdx) in initPrograms() 218 VkExtent3D shaderExtent = getPlaneExtent(compatibleFormatDescription, compatibleShaderGridSize, planeNdx, 0); in initPrograms() 246 shaderName << "comp" << planeNdx; in initPrograms() local 438 for (deUint32 planeNdx in iterate() 635 shaderName << "comp" << planeNdx; iterate() local 778 deUint32 planeNdx = formatDescription.channels[channelNdx].planeNdx; iterate() local 794 deUint32 planeNdx = formatDescription.channels[channelNdx].planeNdx; iterate() local [all...] |
H A D | vktSparseResourcesImageBlockShapes.cpp | 217 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() 219 const VkImageAspectFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : VK_IMAGE_ASPECT_COLOR_BIT; in iterate() 227 deUint32 pixelSize = static_cast<deUint32>(formatDescription.planes[planeNdx].elementSizeBytes) * 8u; in iterate()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/sparse_resources/ |
H A D | vktSparseResourcesImageMemoryAliasing.cpp | 325 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() 327 const VkImageAspectFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : VK_IMAGE_ASPECT_COLOR_BIT; in iterate() 344 const VkExtent3D mipExtent = getPlaneExtent(formatDescription, imageSparseInfo.extent, planeNdx, mipLevelNdx); in iterate() 462 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() 467 planeOffsets[mipmapNdx][planeNdx] = imageSizeInBytes; in iterate() 468 const deUint32 planeW = gridSize.x() / (formatDescription.blockWidth * formatDescription.planes[planeNdx] in iterate() 735 deUint32 planeNdx = formatDescription.channels[channelNdx].planeNdx; iterate() local [all...] |
H A D | vktSparseResourcesShaderIntrinsicsBase.cpp | 538 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() 542 imageSparseSizeInBytes += getImageMipLevelSizeInBytes(imageSparseInfo.extent, imageSparseInfo.arrayLayers, formatDescription, planeNdx, mipmapNdx, BUFFER_IMAGE_COPY_OFFSET_GRANULARITY); in iterate() 543 imageSizeInPixels += getImageMipLevelSizeInBytes(imageSparseInfo.extent, imageSparseInfo.arrayLayers, formatDescription, planeNdx, mipmapNdx) / formatDescription.planes[planeNdx].elementSizeBytes; in iterate() 574 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() 576 const VkImageAspectFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) in iterate() [all...] |
H A D | vktSparseResourcesImageSparseBinding.cpp | 288 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() 290 imageSizeInBytes += getImageMipLevelSizeInBytes(imageSparseInfo.extent, imageSparseInfo.arrayLayers, formatDescription, planeNdx, mipmapNdx, BUFFER_IMAGE_COPY_OFFSET_GRANULARITY); in iterate() 295 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() 297 const VkImageAspectFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : VK_IMAGE_ASPECT_COLOR_BIT; in iterate() 301 bufferImageCopy[planeNdx*imageSparseInfo.mipLevels + mipmapNdx] = in iterate() 308 vk::getPlaneExtent(formatDescription, imageSparseInfo.extent, planeNdx, mipmapNd in iterate() [all...] |
H A D | vktSparseResourcesMipmapSparseResidency.cpp | 263 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() 265 const VkImageAspectFlags aspect = (formatDescription.numPlanes > 1) ? getPlaneAspect(planeNdx) : VK_IMAGE_ASPECT_COLOR_BIT; in iterate() 282 const VkExtent3D mipExtent = getPlaneExtent(formatDescription, imageSparseInfo.extent, planeNdx, mipLevelNdx); in iterate() 405 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in iterate() 407 imageSizeInBytes += getImageMipLevelSizeInBytes(imageSparseInfo.extent, imageSparseInfo.arrayLayers, formatDescription, planeNdx, mipmapNdx, BUFFER_IMAGE_COPY_OFFSET_GRANULARITY); in iterate() 413 for (deUint32 planeNdx in iterate() [all...] |
H A D | vktSparseResourcesImageSparseResidency.cpp | 199 for (deUint32 planeNdx = 0; planeNdx < formatDescription.numPlanes; ++planeNdx) in initPrograms() 201 VkFormat planeCompatibleFormat = getPlaneCompatibleFormatForWriting(formatDescription, planeNdx); in initPrograms() 202 vk::PlanarFormatDescription compatibleFormatDescription = (planeCompatibleFormat != getPlaneCompatibleFormat(formatDescription, planeNdx)) ? getPlanarFormatDescription(planeCompatibleFormat) : formatDescription; in initPrograms() 210 if (formatDescription.channels[channelNdx].planeNdx != planeNdx) in initPrograms() 218 VkExtent3D shaderExtent = getPlaneExtent(compatibleFormatDescription, compatibleShaderGridSize, planeNdx, 0); in initPrograms() 242 shaderName << "comp" << planeNdx; in initPrograms() local 423 for (deUint32 planeNdx in iterate() 620 shaderName << "comp" << planeNdx; iterate() local 763 deUint32 planeNdx = formatDescription.channels[channelNdx].planeNdx; iterate() local 779 deUint32 planeNdx = formatDescription.channels[channelNdx].planeNdx; iterate() local [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/protected_memory/ |
H A D | vktProtectedMemYCbCrConversionTests.cpp | 336 for (deUint32 planeNdx = 0; planeNdx < imageData.getDescription().numPlanes; ++planeNdx) in uploadYCbCrImage() 341 (deUint32)imageData.getPlaneSize(planeNdx), in uploadYCbCrImage() 355 (deUint32)imageData.getPlaneSize(planeNdx) in uploadYCbCrImage() 359 deMemcpy(buffer->getAllocation().getHostPtr(), imageData.getPlanePtr(planeNdx), imageData.getPlaneSize(planeNdx)); in uploadYCbCrImage() 367 for (deUint32 planeNdx = 0; planeNdx < imageData.getDescription().numPlanes; ++planeNdx) in uploadYCbCrImage() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/protected_memory/ |
H A D | vktProtectedMemYCbCrConversionTests.cpp | 336 for (deUint32 planeNdx = 0; planeNdx < imageData.getDescription().numPlanes; ++planeNdx) in uploadYCbCrImage() 341 (deUint32)imageData.getPlaneSize(planeNdx), in uploadYCbCrImage() 355 (deUint32)imageData.getPlaneSize(planeNdx) in uploadYCbCrImage() 359 deMemcpy(buffer->getAllocation().getHostPtr(), imageData.getPlanePtr(planeNdx), imageData.getPlaneSize(planeNdx)); in uploadYCbCrImage() 367 for (deUint32 planeNdx = 0; planeNdx < imageData.getDescription().numPlanes; ++planeNdx) in uploadYCbCrImage() [all...] |
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/ |
H A D | vkImageUtil.hpp | 123 deUint8 planeNdx; member 188 const deUint32 planeNdx, 193 const deUint32 planeNdx, 198 const deUint32 planeNdx, 202 const deUint32 planeNdx, 209 deUint32 planeNdx); 211 deUint32 planeNdx); 213 VkImageAspectFlagBits getPlaneAspect (deUint32 planeNdx);
|
H A D | vkImageUtil.cpp | 2731 const deUint32 planeNdx, in getPlaneSizeInBytes() 2735 VkExtent3D imageExtent = getPlaneExtent(formatInfo, baseExtents, planeNdx, mipmapLevel); in getPlaneSizeInBytes() 2738 return deAlign32( formatInfo.planes[planeNdx].elementSizeBytes * imageExtent.width * imageExtent.height * imageExtent.depth, mipmapMemoryAlignment); in getPlaneSizeInBytes() 2743 const deUint32 planeNdx, in getPlaneSizeInBytes() 2747 tcu::UVec2 mipExtents = getPlaneExtent(formatInfo, baseExtents, planeNdx, mipmapLevel) / tcu::UVec2(formatInfo.blockWidth, formatInfo.blockHeight); in getPlaneSizeInBytes() 2748 return deAlign32( formatInfo.planes[planeNdx].elementSizeBytes * mipExtents.x() * mipExtents.y(), mipmapMemoryAlignment); in getPlaneSizeInBytes() 2753 const deUint32 planeNdx, in getPlaneExtent() 2756 deUint32 widthDivisor = formatInfo.planes[planeNdx].widthDivisor; in getPlaneExtent() 2757 deUint32 heightDivisor = formatInfo.planes[planeNdx].heightDivisor; in getPlaneExtent() 2766 const deUint32 planeNdx, in getPlaneExtent() 2729 getPlaneSizeInBytes(const PlanarFormatDescription& formatInfo, const VkExtent3D& baseExtents, const deUint32 planeNdx, const deUint32 mipmapLevel, const deUint32 mipmapMemoryAlignment) getPlaneSizeInBytes() argument 2741 getPlaneSizeInBytes(const PlanarFormatDescription& formatInfo, const tcu::UVec2& baseExtents, const deUint32 planeNdx, const deUint32 mipmapLevel, const deUint32 mipmapMemoryAlignment) getPlaneSizeInBytes() argument 2751 getPlaneExtent(const PlanarFormatDescription& formatInfo, const VkExtent3D& baseExtents, const deUint32 planeNdx, const deUint32 mipmapLevel) getPlaneExtent() argument 2764 getPlaneExtent(const PlanarFormatDescription& formatInfo, const tcu::UVec2& baseExtents, const deUint32 planeNdx, const deUint32 mipmapLevel) getPlaneExtent() argument 2806 getPlaneCompatibleFormat(VkFormat format, deUint32 planeNdx) getPlaneCompatibleFormat() argument 2811 getPlaneCompatibleFormat(const PlanarFormatDescription& formatInfo, deUint32 planeNdx) getPlaneCompatibleFormat() argument [all...] |