Home
last modified time | relevance | path

Searched refs:planeNdx (Results 1 - 25 of 39) sorted by relevance

12

/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ycbcr/
H A DvktYCbCrStorageImageWriteTests.cpp120 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 DvktYCbCrUtil.cpp69 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 DvktYCbCrViewTests.cpp326 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 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()
H A DvktYCbCrImageOffsetTests.cpp110 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 DvktYCbCrStorageImageWriteTests.cpp71 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 DvktYCbCrUtil.cpp69 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 DvktYCbCrViewTests.cpp328 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 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()
H A DvktYCbCrImageOffsetTests.cpp110 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 DvktSparseResourcesImageMemoryAliasing.cpp323 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 DvktSparseResourcesShaderIntrinsicsBase.cpp538 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 DvktSparseResourcesImageSparseBinding.cpp291 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 DvktSparseResourcesMipmapSparseResidency.cpp261 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 DvktSparseResourcesImageSparseResidency.cpp199 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 DvktSparseResourcesImageBlockShapes.cpp217 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 DvktSparseResourcesImageMemoryAliasing.cpp325 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 DvktSparseResourcesShaderIntrinsicsBase.cpp538 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 DvktSparseResourcesImageSparseBinding.cpp288 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 DvktSparseResourcesMipmapSparseResidency.cpp263 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 DvktSparseResourcesImageSparseResidency.cpp199 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 DvktProtectedMemYCbCrConversionTests.cpp336 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 DvktProtectedMemYCbCrConversionTests.cpp336 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 DvkImageUtil.hpp123 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 DvkImageUtil.cpp2731 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...]

Completed in 26 milliseconds

12