Lines Matching refs:dst

360 	} src, dst;
377 deBool clearDestinationWithRed; // Used for CopyImageToImage tests to clear dst image with vec4(1.0f, 0.0f, 0.0f, 1.0f)
390 dst.image.createFlags = VK_IMAGE_CREATE_FLAG_BITS_MAX_ENUM;
393 dst.buffer.fillMode = FILL_MODE_GRADIENT;
394 dst.image.fillMode = FILL_MODE_WHITE;
577 void uploadImage (const tcu::ConstPixelBufferAccess& src, VkImage dst, const ImageParms& parms, const deUint32 mipLevels = 1u);
579 virtual void copyRegionToTextureLevel (tcu::ConstPixelBufferAccess src, tcu::PixelBufferAccess dst, CopyRegion region, deUint32 mipLevel = 0u) = 0;
592 const VkImage& dst,
596 const tcu::PixelBufferAccess& dst,
893 void CopiesAndBlittingTestInstance::uploadImage (const tcu::ConstPixelBufferAccess& src, VkImage dst, const ImageParms& parms, const deUint32 mipLevels)
901 uploadImageAspect(depthTexture.getAccess(), dst, parms, mipLevels);
908 uploadImageAspect(stencilTexture.getAccess(), dst, parms, mipLevels);
912 uploadImageAspect(src, dst, parms, mipLevels);
946 const tcu::ConstPixelBufferAccess dst = m_destinationTextureLevel->getAccess();
948 m_expectedTextureLevel[0] = de::MovePtr<tcu::TextureLevel>(new tcu::TextureLevel(dst.getFormat(), dst.getWidth(), dst.getHeight(), dst.getDepth()));
949 tcu::copy(m_expectedTextureLevel[0]->getAccess(), dst);
956 const tcu::PixelBufferAccess& dst,
969 const VkDeviceSize pixelDataSize = calculateSize(dst);
1056 // Copy image to buffer - note that there are cases where m_params.dst.image.format is not the same as dst.getFormat()
1057 const VkImageAspectFlags aspect = isCompressedFormat(m_params.dst.image.format) ?
1058 static_cast<VkImageAspectFlags>(VK_IMAGE_ASPECT_COLOR_BIT) : getAspectFlags(dst.getFormat());
1085 tcu::copy(dst, tcu::ConstPixelBufferAccess(dst.getFormat(), dst.getSize(), bufferAlloc->getHostPtr()));
1262 virtual void copyRegionToTextureLevel (tcu::ConstPixelBufferAccess src, tcu::PixelBufferAccess dst, CopyRegion region, deUint32 mipLevel = 0u);
1308 getCreateFlags(m_params.dst.image), // VkImageCreateFlags flags;
1309 m_params.dst.image.imageType, // VkImageType imageType;
1310 m_params.dst.image.format, // VkFormat format;
1311 getExtent3D(m_params.dst.image), // VkExtent3D extent;
1313 getArraySize(m_params.dst.image), // deUint32 arraySize;
1333 const bool dstCompressed = isCompressedFormat(m_params.dst.image.format);
1336 const tcu::TextureFormat dstTcuFormat = getSizeCompatibleTcuTextureFormat(m_params.dst.image.format);
1344 (int)m_params.dst.image.extent.width,
1345 (int)m_params.dst.image.extent.height,
1346 (int)m_params.dst.image.extent.depth));
1347 generateBuffer(m_destinationTextureLevel->getAccess(), m_params.dst.image.extent.width, m_params.dst.image.extent.height, m_params.dst.image.extent.depth, m_params.clearDestinationWithRed ? FILL_MODE_RED : m_params.dst.image.fillMode);
1351 uploadImage(m_destinationTextureLevel->getAccess(), m_destination.get(), m_params.dst.image);
1383 const deUint32 blockWidth = getBlockWidth(m_params.dst.image.format);
1384 const deUint32 blockHeight = getBlockHeight(m_params.dst.image.format);
1389 if (m_params.dst.image.imageType != vk::VK_IMAGE_TYPE_1D)
1434 m_params.dst.image.operationLayout, // VkImageLayout newLayout;
1443 getArraySize(m_params.dst.image)// deUint32 arraySize;
1468 vk.cmdCopyImage(*m_cmdBuffer, m_source.get(), m_params.src.image.operationLayout, m_destination.get(), m_params.dst.image.operationLayout, (deUint32)imageCopies.size(), imageCopies.data());
1480 m_params.dst.image.operationLayout, // VkImageLayout dstImageLayout;
1493 de::MovePtr<tcu::TextureLevel> resultTextureLevel = readImage(*m_destination, m_params.dst.image);
1550 void CopyImageToImage::copyRegionToTextureLevel (tcu::ConstPixelBufferAccess src, tcu::PixelBufferAccess dst, CopyRegion region, deUint32 mipLevel)
1572 DE_ASSERT(src.getFormat() == dst.getFormat());
1578 const tcu::PixelBufferAccess dstSubRegion = getEffectiveDepthStencilAccess(tcu::getSubregion(dst, dstOffset.x, dstOffset.y, dstOffset.z, extent.width, extent.height, extent.depth), tcu::Sampler::MODE_DEPTH);
1586 const tcu::PixelBufferAccess dstSubRegion = getEffectiveDepthStencilAccess(tcu::getSubregion(dst, dstOffset.x, dstOffset.y, dstOffset.z, extent.width, extent.height, extent.depth), tcu::Sampler::MODE_STENCIL);
1594 const tcu::PixelBufferAccess dstWithSrcFormat (srcSubRegion.getFormat(), dst.getSize(), dst.getDataPtr());
1625 if (m_params.src.image.format == VK_FORMAT_A8_UNORM_KHR || m_params.dst.image.format == VK_FORMAT_A8_UNORM_KHR ||
1626 m_params.src.image.format == VK_FORMAT_A1B5G5R5_UNORM_PACK16_KHR || m_params.dst.image.format == VK_FORMAT_A1B5G5R5_UNORM_PACK16_KHR)
1643 m_params.dst.image.format,
1644 m_params.dst.image.imageType,
1658 if (m_params.dst.image.imageType == VK_IMAGE_TYPE_1D && m_params.dst.image.extent.width > limits.maxImageDimension1D)
1659 TCU_THROW(NotSupportedError, "Requested 1D dst image dimensions not supported");
1670 if (m_params.dst.image.imageType == VK_IMAGE_TYPE_2D && (m_params.dst.image.extent.width > limits.maxImageDimension2D
1671 || m_params.dst.image.extent.height > limits.maxImageDimension2D))
1673 TCU_THROW(NotSupportedError, "Requested 2D dst image dimensions not supported");
1686 if (m_params.dst.image.imageType == VK_IMAGE_TYPE_3D && (m_params.dst.image.extent.width > limits.maxImageDimension3D
1687 || m_params.dst.image.extent.height > limits.maxImageDimension3D
1690 TCU_THROW(NotSupportedError, "Requested 3D dst image dimensions not supported");
1718 virtual void copyRegionToTextureLevel (tcu::ConstPixelBufferAccess src, tcu::PixelBufferAccess dst, CopyRegion region, deUint32 mipLevel = 0u);
1764 getCreateFlags(m_params.dst.image), // VkImageCreateFlags flags;
1765 m_params.dst.image.imageType, // VkImageType imageType;
1766 m_params.dst.image.format, // VkFormat format;
1767 getExtent3D(m_params.dst.image), // VkExtent3D extent;
1769 getArraySize(m_params.dst.image), // deUint32 arraySize;
1789 const bool dstCompressed = isCompressedFormat(m_params.dst.image.format);
1792 const tcu::TextureFormat dstTcuFormat = getSizeCompatibleTcuTextureFormat(m_params.dst.image.format);
1802 (int)m_params.dst.image.extent.width,
1803 (int)m_params.dst.image.extent.height,
1804 (int)m_params.dst.image.extent.depth));
1805 generateBuffer(m_destinationTextureLevel->getAccess(), m_params.dst.image.extent.width, m_params.dst.image.extent.height, m_params.dst.image.extent.depth, FILL_MODE_RED);
1806 uploadImage(m_destinationTextureLevel->getAccess(), m_destination.get(), m_params.dst.image, m_params.mipLevels);
1833 const deUint32 blockWidth = getBlockWidth(m_params.dst.image.format);
1834 const deUint32 blockHeight = getBlockHeight(m_params.dst.image.format);
1879 m_params.dst.image.operationLayout, // VkImageLayout newLayout;
1888 getArraySize(m_params.dst.image)// deUint32 arraySize;
1898 vk.cmdCopyImage(*m_cmdBuffer, m_source.get(), m_params.src.image.operationLayout, m_destination.get(), m_params.dst.image.operationLayout, (deUint32)imageCopies.size(), imageCopies.data());
1910 m_params.dst.image.operationLayout, // VkImageLayout dstImageLayout;
1925 de::MovePtr<tcu::TextureLevel> resultTextureLevel = readImage(*m_destination, m_params.dst.image, miplevel);
2020 void CopyImageToImageMipmap::copyRegionToTextureLevel (tcu::ConstPixelBufferAccess src, tcu::PixelBufferAccess dst, CopyRegion region, deUint32 mipLevel)
2028 if (m_params.src.image.imageType == VK_IMAGE_TYPE_3D && m_params.dst.image.imageType == VK_IMAGE_TYPE_2D)
2033 if (m_params.src.image.imageType == VK_IMAGE_TYPE_2D && m_params.dst.image.imageType == VK_IMAGE_TYPE_3D)
2042 DE_ASSERT(src.getFormat() == dst.getFormat());
2048 const tcu::PixelBufferAccess dstSubRegion = getEffectiveDepthStencilAccess(tcu::getSubregion(dst, dstOffset.x, dstOffset.y, dstOffset.z, extent.width, extent.height, extent.depth), tcu::Sampler::MODE_DEPTH);
2056 const tcu::PixelBufferAccess dstSubRegion = getEffectiveDepthStencilAccess(tcu::getSubregion(dst, dstOffset.x, dstOffset.y, dstOffset.z, extent.width, extent.height, extent.depth), tcu::Sampler::MODE_STENCIL);
2064 const tcu::PixelBufferAccess dstWithSrcFormat (srcSubRegion.getFormat(), dst.getSize(), dst.getDataPtr());
2107 m_params.dst.image.format,
2108 m_params.dst.image.imageType,
2122 if (m_params.dst.image.imageType == VK_IMAGE_TYPE_1D && m_params.dst.image.extent.width > limits.maxImageDimension1D)
2123 TCU_THROW(NotSupportedError, "Requested 1D dst image dimensions not supported");
2134 if (m_params.dst.image.imageType == VK_IMAGE_TYPE_2D && (m_params.dst.image.extent.width > limits.maxImageDimension2D
2135 || m_params.dst.image.extent.height > limits.maxImageDimension2D))
2137 TCU_THROW(NotSupportedError, "Requested 2D dst image dimensions not supported");
2150 if (m_params.dst.image.imageType == VK_IMAGE_TYPE_3D && (m_params.dst.image.extent.width > limits.maxImageDimension3D
2151 || m_params.dst.image.extent.height > limits.maxImageDimension3D
2154 TCU_THROW(NotSupportedError, "Requested 3D dst image dimensions not supported");
2214 m_params.dst.buffer.size, // VkDeviceSize size;
2233 const int dstLevelWidth = (int)(m_params.dst.buffer.size/4);
2268 m_params.dst.buffer.size // VkDeviceSize size;
2322 void CopyBufferToBuffer::copyRegionToTextureLevel (tcu::ConstPixelBufferAccess src, tcu::PixelBufferAccess dst, CopyRegion region, deUint32 mipLevel)
2326 deMemcpy((deUint8*) dst.getDataPtr() + region.bufferCopy.dstOffset,
2367 virtual void copyRegionToTextureLevel (tcu::ConstPixelBufferAccess src, tcu::PixelBufferAccess dst, CopyRegion region, deUint32 mipLevel = 0u);
2381 , m_bufferSize(m_params.dst.buffer.size * tcu::getPixelSize(m_textureFormat))
2444 m_destinationTextureLevel = de::MovePtr<tcu::TextureLevel>(new tcu::TextureLevel(m_textureFormat, (int)m_params.dst.buffer.size, 1));
2445 generateBuffer(m_destinationTextureLevel->getAccess(), (int)m_params.dst.buffer.size, 1, 1, m_params.dst.buffer.fillMode);
2537 de::MovePtr<tcu::TextureLevel> resultLevel (new tcu::TextureLevel(m_textureFormat, (int)m_params.dst.buffer.size, 1));
2571 void CopyImageToBuffer::copyRegionToTextureLevel (tcu::ConstPixelBufferAccess src, tcu::PixelBufferAccess dst, CopyRegion region, deUint32 mipLevel)
2596 const tcu::PixelBufferAccess dstSubRegion = tcu::getSubregion(dst, texelIndex, 0, region.bufferImageCopy.imageExtent.width, 1);
2873 virtual void copyRegionToTextureLevel (tcu::ConstPixelBufferAccess src, tcu::PixelBufferAccess dst, CopyRegion region, deUint32 mipLevel = 0u);
2886 , m_textureFormat(mapVkFormat(testParams.dst.image.format))
2921 getCreateFlags(m_params.dst.image), // VkImageCreateFlags flags;
2922 m_params.dst.image.imageType, // VkImageType imageType;
2923 m_params.dst.image.format, // VkFormat format;
2924 getExtent3D(m_params.dst.image), // VkExtent3D extent;
2926 getArraySize(m_params.dst.image), // deUint32 arraySize;
2948 m_params.dst.image.extent.width,
2949 m_params.dst.image.extent.height,
2950 m_params.dst.image.extent.depth));
2952 generateBuffer(m_destinationTextureLevel->getAccess(), m_params.dst.image.extent.width, m_params.dst.image.extent.height, m_params.dst.image.extent.depth, m_params.dst.image.fillMode);
2957 uploadImage(m_destinationTextureLevel->getAccess(), *m_destination, m_params.dst.image);
2979 getArraySize(m_params.dst.image) // deUint32 arraySize;
3028 de::MovePtr<tcu::TextureLevel> resultLevel = readImage(*m_destination, m_params.dst.image);
3062 void CopyBufferToImage::copyRegionToTextureLevel (tcu::ConstPixelBufferAccess src, tcu::PixelBufferAccess dst, CopyRegion region, deUint32 mipLevel)
3074 const int texelSize = dst.getFormat().getPixelSize();
3086 const tcu::PixelBufferAccess dstSubRegion = tcu::getSubregion(dst, dstOffset.x, dstOffset.y + y, dstOffset.z + z + baseArrayLayer,
3100 virtual void copyRegionToTextureLevel (tcu::ConstPixelBufferAccess src, tcu::PixelBufferAccess dst, CopyRegion region, deUint32 mipLevel = 0u);
3111 void CopyBufferToDepthStencil::copyRegionToTextureLevel(tcu::ConstPixelBufferAccess src, tcu::PixelBufferAccess dst, CopyRegion region, deUint32 mipLevel)
3123 const int texelSize = dst.getFormat().getPixelSize();
3134 const tcu::PixelBufferAccess dstSubRegion = tcu::getSubregion(dst, dstOffset.x, dstOffset.y + y, dstOffset.z + z,
3158 , m_textureFormat(mapVkFormat(testParams.dst.image.format))
3166 const bool hasDepth = tcu::hasDepthComponent(mapVkFormat(m_params.dst.image.format).order);
3167 const bool hasStencil = tcu::hasStencilComponent(mapVkFormat(m_params.dst.image.format).order);
3169 if (!isSupportedDepthStencilFormat(vki, vkPhysDevice, testParams.dst.image.format))
3183 m_bufferSize += static_cast<VkDeviceSize>(m_params.dst.image.extent.width) * static_cast<VkDeviceSize>(m_params.dst.image.extent.height) * static_cast<VkDeviceSize>(texelSize);
3188 m_bufferSize += static_cast<VkDeviceSize>(m_params.dst.image.extent.width) * static_cast<VkDeviceSize>(m_params.dst.image.extent.height);
3216 getCreateFlags(m_params.dst.image), // VkImageCreateFlags flags;
3217 m_params.dst.image.imageType, // VkImageType imageType;
3218 m_params.dst.image.format, // VkFormat format;
3219 getExtent3D(m_params.dst.image), // VkExtent3D extent;
3221 getArraySize(m_params.dst.image), // deUint32 arraySize;
3247 m_params.dst.image.extent.width,
3248 m_params.dst.image.extent.height,
3249 m_params.dst.image.extent.depth));
3252 generateBuffer(m_destinationTextureLevel->getAccess(), m_params.dst.image.extent.width, m_params.dst.image.extent.height, m_params.dst.image.extent.depth);
3338 uploadImage(m_destinationTextureLevel->getAccess(), *m_destination, m_params.dst.image);
3432 de::MovePtr<tcu::TextureLevel> resultLevel = readImage(*m_destination, m_params.dst.image);
3602 tcu::PixelBufferAccess dst,
3679 getCreateFlags(m_params.dst.image), // VkImageCreateFlags flags;
3680 m_params.dst.image.imageType, // VkImageType imageType;
3681 m_params.dst.image.format, // VkFormat format;
3682 getExtent3D(m_params.dst.image), // VkExtent3D extent;
3684 getArraySize(m_params.dst.image), // deUint32 arraySize;
3686 m_params.dst.image.tiling, // VkImageTiling tiling;
3711 const ImageParms& dstImageParams = m_params.dst.image;
3806 getArraySize(m_params.dst.image) // deUint32 arraySize;
4685 void scaleFromWholeSrcBuffer (const tcu::PixelBufferAccess& dst, const tcu::ConstPixelBufferAccess& src, const VkOffset3D regionOffset, const VkOffset3D regionExtent, tcu::Sampler::FilterMode filter, const MirrorMode mirrorMode = 0u)
4692 float sX = (float)regionExtent.x / (float)dst.getWidth();
4693 float sY = (float)regionExtent.y / (float)dst.getHeight();
4694 float sZ = (float)regionExtent.z / (float)dst.getDepth();
4696 for (int z = 0; z < dst.getDepth(); z++)
4697 for (int y = 0; y < dst.getHeight(); y++)
4698 for (int x = 0; x < dst.getWidth(); x++)
4703 if (dst.getDepth() > 1)
4704 dst.setPixel(linearToSRGBIfNeeded(dst.getFormat(), src.sample3D(sampler, filter, srcX, srcY, srcZ)), x, y, z);
4706 dst.setPixel(linearToSRGBIfNeeded(dst.getFormat(), src.sample2D(sampler, filter, srcX, srcY, 0)), x, y);
4710 void blit (const tcu::PixelBufferAccess& dst, const tcu::ConstPixelBufferAccess& src, const tcu::Sampler::FilterMode filter, const MirrorMode mirrorMode)
4717 const float sX = (float)src.getWidth() / (float)dst.getWidth();
4718 const float sY = (float)src.getHeight() / (float)dst.getHeight();
4719 const float sZ = (float)src.getDepth() / (float)dst.getDepth();
4721 const int xOffset = (mirrorMode & MIRROR_MODE_X) ? dst.getWidth() - 1 : 0;
4722 const int yOffset = (mirrorMode & MIRROR_MODE_Y) ? dst.getHeight() - 1 : 0;
4723 const int zOffset = (mirrorMode & MIRROR_MODE_Z) ? dst.getDepth() - 1 : 0;
4729 for (int z = 0; z < dst.getDepth(); ++z)
4730 for (int y = 0; y < dst.getHeight(); ++y)
4731 for (int x = 0; x < dst.getWidth(); ++x)
4733 dst.setPixel(linearToSRGBIfNeeded(dst.getFormat(), src.sample3D(sampler, filter, ((float)x + 0.5f) * sX, ((float)y + 0.5f) * sY, ((float)z + 0.5f) * sZ)), x * xScale + xOffset, y * yScale + yOffset, z * zScale + zOffset);
4803 void BlittingImages::copyRegionToTextureLevel (tcu::ConstPixelBufferAccess src, tcu::PixelBufferAccess dst, CopyRegion region, deUint32 mipLevel)
4840 DE_ASSERT(src.getFormat() == dst.getFormat());
4846 const tcu::PixelBufferAccess dstSubRegion = getEffectiveDepthStencilAccess(tcu::getSubregion(dst, dstOffset.x, dstOffset.y, dstOffset.z, dstExtent.x, dstExtent.y, dstExtent.z), tcu::Sampler::MODE_DEPTH);
4861 const tcu::PixelBufferAccess dstSubRegion = getEffectiveDepthStencilAccess(tcu::getSubregion(dst, dstOffset.x, dstOffset.y, dstOffset.z, dstExtent.x, dstExtent.y, dstExtent.z), tcu::Sampler::MODE_STENCIL);
4875 const tcu::PixelBufferAccess dstSubRegion = tcu::getSubregion(dst, dstOffset.x, dstOffset.y, dstOffset.z, dstExtent.x, dstExtent.y, dstExtent.z);
4889 const tcu::ConstPixelBufferAccess dst = m_destinationCompressedTexture ? m_destinationCompressedTexture->getDecompressedAccess() : m_destinationTextureLevel->getAccess();
4891 m_expectedTextureLevel[0] = de::MovePtr<tcu::TextureLevel>(new tcu::TextureLevel(dst.getFormat(), dst.getWidth(), dst.getHeight(), dst.getDepth()));
4892 tcu::copy(m_expectedTextureLevel[0]->getAccess(), dst);
4896 m_unclampedExpectedTextureLevel = de::MovePtr<tcu::TextureLevel>(new tcu::TextureLevel(dst.getFormat(), dst.getWidth(), dst.getHeight(), dst.getDepth()));
4897 tcu::copy(m_unclampedExpectedTextureLevel->getAccess(), dst);
5059 if (m_params.src.image.format == VK_FORMAT_A8_UNORM_KHR || m_params.dst.image.format == VK_FORMAT_A8_UNORM_KHR ||
5060 m_params.src.image.format == VK_FORMAT_A1B5G5R5_UNORM_PACK16_KHR || m_params.dst.image.format == VK_FORMAT_A1B5G5R5_UNORM_PACK16_KHR)
5076 m_params.dst.image.format,
5077 m_params.dst.image.imageType,
5078 m_params.dst.image.tiling,
5097 context.getInstanceInterface().getPhysicalDeviceFormatProperties(context.getPhysicalDevice(), m_params.dst.image.format, &dstFormatProperties);
5098 VkFormatFeatureFlags dstFormatFeatures = m_params.dst.image.tiling == VK_IMAGE_TILING_LINEAR ? dstFormatProperties.linearTilingFeatures : dstFormatProperties.optimalTilingFeatures;
5134 virtual void copyRegionToTextureLevel (tcu::ConstPixelBufferAccess src, tcu::PixelBufferAccess dst, CopyRegion region, deUint32 mipLevel = 0u);
5190 getCreateFlags(m_params.dst.image), // VkImageCreateFlags flags;
5191 m_params.dst.image.imageType, // VkImageType imageType;
5192 m_params.dst.image.format, // VkFormat format;
5193 getExtent3D(m_params.dst.image), // VkExtent3D extent;
5195 getArraySize(m_params.dst.image), // deUint32 arraySize;
5215 const tcu::TextureFormat dstTcuFormat = mapVkFormat(m_params.dst.image.format);
5222 (int)m_params.dst.image.extent.width,
5223 (int)m_params.dst.image.extent.height,
5224 (int)m_params.dst.image.extent.depth));
5225 generateBuffer(m_destinationTextureLevel->getAccess(), m_params.dst.image.extent.width, m_params.dst.image.extent.height, m_params.dst.image.extent.depth, m_params.dst.image.fillMode);
5230 uploadImage(m_destinationTextureLevel->getAccess(), m_destination.get(), m_params.dst.image, m_params.mipLevels);
5253 uploadImage(m_sourceTextureLevel->getAccess(), m_destination.get(), m_params.dst.image, 1u);
5290 m_params.dst.image.operationLayout, // VkImageLayout newLayout;
5299 getArraySize(m_params.dst.image) // deUint32 arraySize;
5308 vk.cmdBlitImage(*m_cmdBuffer, m_source.get(), m_params.src.image.operationLayout, m_destination.get(), m_params.dst.image.operationLayout, (deUint32)m_params.regions.size(), &regions[0], m_params.filter);
5320 m_params.dst.image.operationLayout, // VkImageLayout dstImageLayout;
5383 m_params.dst.image.operationLayout, // VkImageLayout newLayout;
5392 getArraySize(m_params.dst.image) // deUint32 arraySize;
5403 m_params.dst.image.operationLayout, // VkImageLayout oldLayout;
5421 vk.cmdBlitImage(*m_cmdBuffer, m_destination.get(), m_params.src.image.operationLayout, m_destination.get(), m_params.dst.image.operationLayout, 1u, &regions[regionNdx], m_params.filter);
5433 m_params.dst.image.operationLayout, // VkImageLayout dstImageLayout;
5453 m_params.dst.image.operationLayout, // VkImageLayout newLayout;
5462 getArraySize(m_params.dst.image) // deUint32 arraySize;
5496 prevResultLevel = readImage(*m_destination, m_params.dst.image, srcMipLevel);
5507 de::MovePtr<tcu::TextureLevel> resultLevel = readImage(*m_destination, m_params.dst.image, mipLevelNdx);
5591 de::MovePtr<tcu::TextureLevel> resultLevel = readImage(*m_destination, m_params.dst.image, mipLevelNdx);
5681 void BlittingMipmaps::copyRegionToTextureLevel (tcu::ConstPixelBufferAccess src, tcu::PixelBufferAccess dst, CopyRegion region, deUint32 mipLevel)
5683 DE_ASSERT(src.getDepth() == dst.getDepth());
5718 DE_ASSERT(src.getFormat() == dst.getFormat());
5723 const tcu::PixelBufferAccess dstSubRegion = getEffectiveDepthStencilAccess(tcu::getSubregion(dst, dstOffset.x, dstOffset.y, dstExtent.x, dstExtent.y), tcu::Sampler::MODE_DEPTH);
5738 const tcu::PixelBufferAccess dstSubRegion = getEffectiveDepthStencilAccess(tcu::getSubregion(dst, dstOffset.x, dstOffset.y, dstExtent.x, dstExtent.y), tcu::Sampler::MODE_STENCIL);
5754 const tcu::PixelBufferAccess dstSubRegion = tcu::getSubregion(dst, dstOffset.x, dstOffset.y, layerNdx, dstExtent.x, dstExtent.y, 1);
5769 const tcu::ConstPixelBufferAccess dst = m_destinationTextureLevel->getAccess();
5772 m_expectedTextureLevel[mipLevelNdx] = de::MovePtr<tcu::TextureLevel>(new tcu::TextureLevel(dst.getFormat(), dst.getWidth() >> mipLevelNdx, dst.getHeight() >> mipLevelNdx, dst.getDepth()));
5779 m_unclampedExpectedTextureLevel[mipLevelNdx] = de::MovePtr<tcu::TextureLevel>(new tcu::TextureLevel(dst.getFormat(), dst.getWidth() >> mipLevelNdx, dst.getHeight() >> mipLevelNdx, dst.getDepth()));
5833 m_params.dst.image.format,
5842 else if ((m_params.dst.image.extent.width > properties.maxExtent.width) ||
5843 (m_params.dst.image.extent.height > properties.maxExtent.height) ||
5844 (m_params.dst.image.extent.depth > properties.maxArrayLayers))
5862 const VkFormatProperties dstFormatProperties = getPhysicalDeviceFormatProperties (vki, vkPhysDevice, m_params.dst.image.format);
5948 tcu::PixelBufferAccess dst,
6069 colorImageParams.arrayLayers = getArraySize(m_params.dst.image);
6079 colorImageParams.arrayLayers = getArraySize(m_params.dst.image);
6101 getCreateFlags(m_params.dst.image), // VkImageCreateFlags flags;
6102 m_params.dst.image.imageType, // VkImageType imageType;
6103 m_params.dst.image.format, // VkFormat format;
6104 getExtent3D(m_params.dst.image), // VkExtent3D extent;
6106 getArraySize(m_params.dst.image), // deUint32 arraySize;
6160 getArraySize(m_params.dst.image) // deUint32 arraySize;
6179 getArraySize(m_params.dst.image) // deUint32 arraySize;
6441 const tcu::TextureFormat dstTcuFormat = mapVkFormat(m_params.dst.image.format);
6445 (int)m_params.dst.image.extent.width,
6446 (int)m_params.dst.image.extent.height,
6447 (int)m_params.dst.image.extent.depth));
6448 generateBuffer(m_destinationTextureLevel->getAccess(), m_params.dst.image.extent.width, m_params.dst.image.extent.height, m_params.dst.image.extent.depth);
6449 uploadImage(m_destinationTextureLevel->getAccess(), m_destination.get(), m_params.dst.image);
6454 (int)m_params.dst.image.extent.depth));
6456 generateBuffer(m_sourceTextureLevel->getAccess(), m_params.src.image.extent.width, m_params.src.image.extent.height, m_params.dst.image.extent.depth, FILL_MODE_MULTISAMPLE);
6467 sourceArraySize = getArraySize(m_params.dst.image); // fall through
6538 m_params.dst.image.operationLayout :
6559 m_params.dst.image.operationLayout, // VkImageLayout newLayout;
6568 getArraySize(m_params.dst.image) // deUint32 arraySize;
6579 m_params.dst.image.operationLayout, // VkImageLayout oldLayout;
6580 m_params.dst.image.operationLayout, // VkImageLayout newLayout;
6589 getArraySize(m_params.dst.image) // deUint32 arraySize;
6598 vk.cmdResolveImage(*m_cmdBuffer, sourceImage, m_params.src.image.operationLayout, m_destination.get(), m_params.dst.image.operationLayout, (deUint32)m_params.regions.size(), imageResolves.data());
6610 m_params.dst.image.operationLayout, // VkImageLayout dstImageLayout;
6622 de::MovePtr<tcu::TextureLevel> resultTextureLevel = readImage(*m_destination, m_params.dst.image);
6645 for (int arrayLayerNdx = 0; arrayLayerNdx < (int)getArraySize(m_params.dst.image) - 1; ++arrayLayerNdx)
6660 for (int arrayLayerNdx = 0; arrayLayerNdx < (int)getArraySize(m_params.dst.image); ++arrayLayerNdx)
6672 void ResolveImageToImage::copyRegionToTextureLevel(tcu::ConstPixelBufferAccess src, tcu::PixelBufferAccess dst, CopyRegion region, deUint32 mipLevel)
6687 const tcu::PixelBufferAccess dstWithSrcFormat (srcSubRegion.getFormat(), dst.getSize(), dst.getDataPtr());
6701 const auto numDstLayers = getArraySize(m_params.dst.image);
6840 imageViews.push_back(makeImageView(vkd, device, m_multisampledCopyImage.get(), VK_IMAGE_VIEW_TYPE_2D, m_params.dst.image.format, subresourceRange));
7145 m_params.dst.image.operationLayout, // VkImageLayout newLayout;
7160 m_params.dst.image.operationLayout, // VkImageLayout newLayout;
7174 m_params.dst.image.operationLayout, // VkImageLayout oldLayout;
7189 m_params.dst.image.operationLayout, // VkImageLayout oldLayout;
7276 vk.cmdCopyImage(commandBuffer, m_multisampledImage.get(), m_params.src.image.operationLayout, m_multisampledCopyNoCabImage.get(), m_params.dst.image.operationLayout, (deUint32)imageCopies.size(), imageCopies.data());
7278 vk.cmdCopyImage(commandBuffer, m_multisampledCopyNoCabImage.get(), m_params.src.image.operationLayout, m_multisampledCopyImage.get(), m_params.dst.image.operationLayout, (deUint32)imageCopies.size(), imageCopies.data());
7282 vk.cmdCopyImage(commandBuffer, m_multisampledImage.get(), m_params.src.image.operationLayout, m_multisampledCopyImage.get(), m_params.dst.image.operationLayout, (deUint32)imageCopies.size(), imageCopies.data());
7308 m_params.dst.image.operationLayout, // VkImageLayout dstImageLayout;
7327 m_params.dst.image.operationLayout, // VkImageLayout dstImageLayout;
7445 m_params.dst.image.format,
7446 m_params.dst.image.imageType,
7538 const auto dstLayers = getArraySize(m_params.dst.image);
8593 // CopiedValues, respectively. If the dst image contains multiple array layers, only one layer has the copied data
8867 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
8868 params.dst.image.format = VK_FORMAT_R8G8B8A8_UINT;
8869 params.dst.image.extent = defaultExtent;
8870 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
8871 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
8901 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
8902 params.dst.image.format = VK_FORMAT_R32_UINT;
8903 params.dst.image.extent = defaultExtent;
8904 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
8905 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
8935 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
8936 params.dst.image.format = VK_FORMAT_R8G8B8A8_UINT;
8937 params.dst.image.extent = defaultExtent;
8938 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
8939 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
9006 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
9007 params.dst.image.format = format.format2;
9008 params.dst.image.extent = extent.extent;
9009 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
9010 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
9052 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
9053 params.dst.image.format = VK_FORMAT_D32_SFLOAT;
9054 params.dst.image.extent = defaultExtent;
9055 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
9056 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
9093 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
9094 params.dst.image.format = VK_FORMAT_S8_UINT;
9095 params.dst.image.extent = defaultExtent;
9096 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
9097 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
9153 params.dst.image.operationLayout = copyDstLayouts[dstLayoutNdx];
9156 getImageLayoutCaseName(params.dst.image.operationLayout);
9158 " to " + getImageLayoutCaseName(params.dst.image.operationLayout);
9173 de::contains(dedicatedAllocationImageToImageFormatsToTestSet, testParams.params.dst.image.format) ||
9188 testParams.params.dst.image.format = formatList[dstFormatIndex];
9191 const VkFormat dstFormat = testParams.params.dst.image.format;
9751 params.dst.image.imageType = VK_IMAGE_TYPE_1D;
9753 params.dst.image.extent = default1dExtent;
9755 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
9757 params.dst.image.fillMode = FILL_MODE_GRADIENT;
9807 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
9809 params.dst.image.extent = defaultRootExtent;
9811 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
9813 params.dst.image.fillMode = FILL_MODE_GRADIENT;
9864 params.dst.image.imageType = VK_IMAGE_TYPE_3D;
9866 params.dst.image.extent = default3dSmallExtent;
9868 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
9870 params.dst.image.fillMode = FILL_MODE_GRADIENT;
9924 params.dst.image.imageType = VK_IMAGE_TYPE_1D;
9926 params.dst.image.extent = default1dQuarterSquaredExtent;
9928 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
9930 params.dst.image.fillMode = FILL_MODE_GRADIENT;
9981 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
9983 params.dst.image.extent = defaultExtent;
9985 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
9987 params.dst.image.fillMode = FILL_MODE_GRADIENT;
10037 params.dst.image.imageType = VK_IMAGE_TYPE_3D;
10039 params.dst.image.extent = default3dSmallExtent;
10041 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
10043 params.dst.image.fillMode = FILL_MODE_GRADIENT;
10094 params.dst.image.imageType = VK_IMAGE_TYPE_1D;
10096 params.dst.image.extent = default1dExtent;
10098 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
10100 params.dst.image.fillMode = FILL_MODE_GRADIENT;
10154 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
10156 params.dst.image.extent = defaultExtent;
10158 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
10160 params.dst.image.fillMode = FILL_MODE_GRADIENT;
10214 params.dst.image.imageType = VK_IMAGE_TYPE_3D;
10216 params.dst.image.extent = default3dExtent;
10218 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
10220 params.dst.image.fillMode = FILL_MODE_GRADIENT;
10389 testParams.params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
10390 testParams.params.dst.image.imageType = VK_IMAGE_TYPE_2D;
10391 testParams.params.dst.image.extent = extent;
10401 + "_dst" + de::toString(testParams.params.dst.image.extent.width) + "x" + de::toString(testParams.params.dst.image.extent.height);
10424 testParams.params.dst.image.format = testParams.compatibleFormats[dstFormatIndex];
10426 if (!isSupportedByFramework(testParams.params.dst.image.format) && !isCompressedFormat(testParams.params.dst.image.format))
10432 if (isCompressedFormat(testParams.params.src.image.format) && isCompressedFormat(testParams.params.dst.image.format))
10434 if ((getBlockWidth(testParams.params.src.image.format) != getBlockWidth(testParams.params.dst.image.format))
10435 || (getBlockHeight(testParams.params.src.image.format) != getBlockHeight(testParams.params.dst.image.format)))
10439 tcu::TestCaseGroup* dstFormatGroup = new tcu::TestCaseGroup(testCtx, getFormatCaseName(testParams.params.dst.image.format).c_str());
10448 testParams.params.dst.image.operationLayout = copyDstLayouts[dstLayoutNdx];
10450 const std::string testName = getImageLayoutCaseName(testParams.params.src.image.operationLayout) + "_" + getImageLayoutCaseName(testParams.params.dst.image.operationLayout);
10486 params.dst.image.operationLayout = copyDstLayouts[dstLayoutNdx];
10489 getImageLayoutCaseName(params.dst.image.operationLayout);
10516 params.dst.image.imageType = VK_IMAGE_TYPE_1D;
10518 params.dst.image.extent = default1dExtent;
10520 params.dst.image.format = params.src.image.format;
10522 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
10570 const std::string testName = getFormatCaseName(params.src.image.format) + "_" + getFormatCaseName(params.dst.image.format);
10576 const std::string testName2 = getFormatCaseName(params.src.image.format) + "_" + getFormatCaseName(params.dst.image.format) + "_separate_layouts";
10592 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
10594 params.dst.image.extent = defaultRootExtent;
10596 params.dst.image.format = params.src.image.format;
10598 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
10647 const std::string testName = getFormatCaseName(params.src.image.format) + "_" + getFormatCaseName(params.dst.image.format);
10653 const std::string testName2 = getFormatCaseName(params.src.image.format) + "_" + getFormatCaseName(params.dst.image.format) + "_separate_layouts";
10669 params.dst.image.imageType = VK_IMAGE_TYPE_3D;
10671 params.dst.image.extent = default3dSmallExtent;
10673 params.dst.image.format = params.src.image.format;
10675 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
10727 const std::string testName = getFormatCaseName(params.src.image.format) + "_" + getFormatCaseName(params.dst.image.format);
10733 const std::string testName2 = getFormatCaseName(params.src.image.format) + "_" + getFormatCaseName(params.dst.image.format) + "_separate_layouts";
10749 params.dst.image.imageType = VK_IMAGE_TYPE_1D;
10751 params.dst.image.extent = default1dQuarterSquaredExtent;
10753 params.dst.image.format = params.src.image.format;
10755 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
10805 const std::string testName = getFormatCaseName(params.src.image.format) + "_" + getFormatCaseName(params.dst.image.format);
10811 const std::string testName2 = getFormatCaseName(params.src.image.format) + "_" + getFormatCaseName(params.dst.image.format) + "_separate_layouts";
10840 const std::string testName3 = getFormatCaseName(params.src.image.format) + "_" + getFormatCaseName(params.dst.image.format) + "_depth_stencil_aspects";
10857 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
10859 params.dst.image.extent = defaultExtent;
10861 params.dst.image.format = params.src.image.format;
10863 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
10912 const std::string testName = getFormatCaseName(params.src.image.format) + "_" + getFormatCaseName(params.dst.image.format);
10918 const std::string testName2 = getFormatCaseName(params.src.image.format) + "_" + getFormatCaseName(params.dst.image.format) + "_separate_layouts";
10947 const std::string testName3 = getFormatCaseName(params.src.image.format) + "_" + getFormatCaseName(params.dst.image.format) + "_depth_stencil_aspects";
10964 params.dst.image.imageType = VK_IMAGE_TYPE_3D;
10966 params.dst.image.extent = default3dSmallExtent;
10968 params.dst.image.format = params.src.image.format;
10970 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
11020 const std::string testName = getFormatCaseName(params.src.image.format) + "_" + getFormatCaseName(params.dst.image.format);
11026 const std::string testName2 = getFormatCaseName(params.src.image.format) + "_" + getFormatCaseName(params.dst.image.format) + "_separate_layouts";
11055 const std::string testName3 = getFormatCaseName(params.src.image.format) + "_" + getFormatCaseName(params.dst.image.format) + "_depth_stencil_aspects";
11072 params.dst.image.imageType = VK_IMAGE_TYPE_1D;
11074 params.dst.image.extent = default1dExtent;
11076 params.dst.image.format = params.src.image.format;
11078 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
11130 const std::string testName = getFormatCaseName(params.src.image.format) + "_" + getFormatCaseName(params.dst.image.format);
11136 const std::string testName2 = getFormatCaseName(params.src.image.format) + "_" + getFormatCaseName(params.dst.image.format) + "_separate_layouts";
11152 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
11154 params.dst.image.extent = defaultExtent;
11156 params.dst.image.format = params.src.image.format;
11158 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
11210 const std::string testName = getFormatCaseName(params.src.image.format) + "_" + getFormatCaseName(params.dst.image.format);
11216 const std::string testName2 = getFormatCaseName(params.src.image.format) + "_" + getFormatCaseName(params.dst.image.format) + "_separate_layouts";
11232 params.dst.image.imageType = VK_IMAGE_TYPE_3D;
11234 params.dst.image.extent = default3dExtent;
11236 params.dst.image.format = params.src.image.format;
11238 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
11286 const std::string testName = getFormatCaseName(params.src.image.format) + "_" + getFormatCaseName(params.dst.image.format);
11292 const std::string testName2 = getFormatCaseName(params.src.image.format) + "_" + getFormatCaseName(params.dst.image.format) + "_separate_layouts";
11321 params3DTo2D.dst.image.imageType = VK_IMAGE_TYPE_2D;
11322 params3DTo2D.dst.image.format = VK_FORMAT_R8G8B8A8_UINT;
11323 params3DTo2D.dst.image.extent = defaultHalfExtent;
11324 params3DTo2D.dst.image.extent.depth = slicesLayers;
11325 params3DTo2D.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
11326 params3DTo2D.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
11375 params2DTo3D.dst.image.imageType = VK_IMAGE_TYPE_3D;
11376 params2DTo3D.dst.image.format = VK_FORMAT_R8G8B8A8_UINT;
11377 params2DTo3D.dst.image.extent = defaultHalfExtent;
11378 params2DTo3D.dst.image.extent.depth = slicesLayers;
11379 params2DTo3D.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
11380 params2DTo3D.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
11430 params3DTo2D.dst.image.imageType = VK_IMAGE_TYPE_2D;
11431 params3DTo2D.dst.image.format = VK_FORMAT_R8G8B8A8_UINT;
11432 params3DTo2D.dst.image.extent = defaultHalfExtent;
11433 params3DTo2D.dst.image.extent.depth = slicesLayers;
11434 params3DTo2D.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
11435 params3DTo2D.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
11483 params2DTo3D.dst.image.imageType = VK_IMAGE_TYPE_3D;
11484 params2DTo3D.dst.image.format = VK_FORMAT_R8G8B8A8_UINT;
11485 params2DTo3D.dst.image.extent = defaultHalfExtent;
11486 params2DTo3D.dst.image.extent.depth = slicesLayers;
11487 params2DTo3D.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
11488 params2DTo3D.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
11537 params3DTo2D.dst.image.imageType = VK_IMAGE_TYPE_2D;
11538 params3DTo2D.dst.image.format = VK_FORMAT_R8G8B8A8_UINT;
11539 params3DTo2D.dst.image.extent = defaultHalfExtent;
11540 params3DTo2D.dst.image.extent.depth = slicesLayers;
11541 params3DTo2D.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
11542 params3DTo2D.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
11598 params2DTo3D.dst.image.imageType = VK_IMAGE_TYPE_3D;
11599 params2DTo3D.dst.image.format = VK_FORMAT_R8G8B8A8_UINT;
11600 params2DTo3D.dst.image.extent = defaultHalfExtent;
11601 params2DTo3D.dst.image.extent.depth = slicesLayers;
11602 params2DTo3D.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
11603 params2DTo3D.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
11666 paramsCubeToArray.dst.image.createFlags = 0;
11667 paramsCubeToArray.dst.image.imageType = VK_IMAGE_TYPE_2D;
11668 paramsCubeToArray.dst.image.format = VK_FORMAT_R8G8B8A8_UINT;
11669 paramsCubeToArray.dst.image.extent = defaultHalfExtent;
11670 paramsCubeToArray.dst.image.extent.depth = arrayLayers;
11671 paramsCubeToArray.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
11672 paramsCubeToArray.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
11673 paramsCubeToArray.dst.image.fillMode = FILL_MODE_GRADIENT;
11724 paramsCubeToArray.dst.image.createFlags = 0;
11725 paramsCubeToArray.dst.image.imageType = VK_IMAGE_TYPE_2D;
11726 paramsCubeToArray.dst.image.format = VK_FORMAT_R8G8B8A8_UINT;
11727 paramsCubeToArray.dst.image.extent = defaultHalfExtent;
11728 paramsCubeToArray.dst.image.extent.depth = arrayLayers;
11729 paramsCubeToArray.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
11730 paramsCubeToArray.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
11731 paramsCubeToArray.dst.image.fillMode = FILL_MODE_GRADIENT;
11781 paramsArrayToCube.dst.image.createFlags = VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT;
11782 paramsArrayToCube.dst.image.imageType = VK_IMAGE_TYPE_2D;
11783 paramsArrayToCube.dst.image.format = VK_FORMAT_R8G8B8A8_UINT;
11784 paramsArrayToCube.dst.image.extent = defaultHalfExtent;
11785 paramsArrayToCube.dst.image.extent.depth = arrayLayers;
11786 paramsArrayToCube.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
11787 paramsArrayToCube.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
11788 paramsArrayToCube.dst.image.fillMode = FILL_MODE_GRADIENT;
11839 paramsArrayToCube.dst.image.createFlags = VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT;
11840 paramsArrayToCube.dst.image.imageType = VK_IMAGE_TYPE_2D;
11841 paramsArrayToCube.dst.image.format = VK_FORMAT_R8G8B8A8_UINT;
11842 paramsArrayToCube.dst.image.extent = defaultHalfExtent;
11843 paramsArrayToCube.dst.image.extent.depth = arrayLayers;
11844 paramsArrayToCube.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
11845 paramsArrayToCube.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
11846 paramsArrayToCube.dst.image.fillMode = FILL_MODE_GRADIENT;
11896 paramsCubeToArray.dst.image.createFlags = VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT;
11897 paramsCubeToArray.dst.image.imageType = VK_IMAGE_TYPE_2D;
11898 paramsCubeToArray.dst.image.format = VK_FORMAT_R8G8B8A8_UINT;
11899 paramsCubeToArray.dst.image.extent = defaultHalfExtent;
11900 paramsCubeToArray.dst.image.extent.depth = arrayLayers;
11901 paramsCubeToArray.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
11902 paramsCubeToArray.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
11903 paramsCubeToArray.dst.image.fillMode = FILL_MODE_GRADIENT;
11954 paramsCubeToCube.dst.image.createFlags = VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT;
11955 paramsCubeToCube.dst.image.imageType = VK_IMAGE_TYPE_2D;
11956 paramsCubeToCube.dst.image.format = VK_FORMAT_R8G8B8A8_UINT;
11957 paramsCubeToCube.dst.image.extent = defaultHalfExtent;
11958 paramsCubeToCube.dst.image.extent.depth = arrayLayers;
11959 paramsCubeToCube.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
11960 paramsCubeToCube.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
11961 paramsCubeToCube.dst.image.fillMode = FILL_MODE_GRADIENT;
12015 paramsArrayToArray.dst.image.imageType = VK_IMAGE_TYPE_2D;
12016 paramsArrayToArray.dst.image.format = VK_FORMAT_R8G8B8A8_UINT;
12017 paramsArrayToArray.dst.image.extent = defaultHalfExtent;
12018 paramsArrayToArray.dst.image.extent.depth = arrayLayers;
12019 paramsArrayToArray.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
12020 paramsArrayToArray.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
12021 paramsArrayToArray.dst.image.fillMode = FILL_MODE_GRADIENT;
12071 paramsArrayToArray.dst.image.imageType = VK_IMAGE_TYPE_2D;
12072 paramsArrayToArray.dst.image.format = VK_FORMAT_R8G8B8A8_UINT;
12073 paramsArrayToArray.dst.image.extent = defaultHalfExtent;
12074 paramsArrayToArray.dst.image.extent.depth = arrayLayers;
12075 paramsArrayToArray.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
12076 paramsArrayToArray.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
12077 paramsArrayToArray.dst.image.fillMode = FILL_MODE_GRADIENT;
12127 paramsArrayToArray.dst.image.imageType = VK_IMAGE_TYPE_2D;
12128 paramsArrayToArray.dst.image.format = VK_FORMAT_R8G8B8A8_UINT;
12129 paramsArrayToArray.dst.image.extent = defaultHalfExtent;
12130 paramsArrayToArray.dst.image.extent.depth = arrayLayers;
12131 paramsArrayToArray.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
12132 paramsArrayToArray.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
12133 paramsArrayToArray.dst.image.fillMode = FILL_MODE_GRADIENT;
12183 paramsArrayToArray.dst.image.imageType = VK_IMAGE_TYPE_2D;
12184 paramsArrayToArray.dst.image.format = VK_FORMAT_R8G8B8A8_UINT;
12185 paramsArrayToArray.dst.image.extent = defaultHalfExtent;
12186 paramsArrayToArray.dst.image.extent.depth = arrayLayers;
12187 paramsArrayToArray.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
12188 paramsArrayToArray.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
12189 paramsArrayToArray.dst.image.fillMode = FILL_MODE_GRADIENT;
12238 paramsArrayToArray.dst.image.imageType = VK_IMAGE_TYPE_2D;
12239 paramsArrayToArray.dst.image.extent = defaultHalfExtent;
12240 paramsArrayToArray.dst.image.extent.depth = arrayLayers;
12241 paramsArrayToArray.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
12242 paramsArrayToArray.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
12243 paramsArrayToArray.dst.image.fillMode = FILL_MODE_GRADIENT;
12294 paramsArrayToArray.dst.image.format = imageFormats[imageFormatsNdx];
12329 params.dst.buffer.size = defaultSize;
12359 params.dst.buffer.size = bufferImageHeight;
12390 params.dst.buffer.size = defaultSize * arrayLayers;
12432 params.dst.buffer.size = bufferImageHeight * arrayLayers;
12475 params.dst.buffer.size = defaultSize * layerCount;
12476 params.dst.buffer.fillMode = FILL_MODE_RED;
12519 params.dst.buffer.size = defaultSize * layerCount;
12520 params.dst.buffer.fillMode = FILL_MODE_RED;
12564 params.dst.buffer.size = defaultSize * defaultSize;
12593 params.dst.buffer.size = defaultSize * defaultSize;
12623 params.dst.buffer.size = defaultSize * defaultSize;
12652 params.dst.buffer.size = defaultSize * defaultSize;
12658 const VkDeviceSize bufferSize = pixelSize * params.dst.buffer.size;
12694 params.dst.buffer.size = (defaultHalfSize - 1u) * defaultSize + defaultHalfSize;
12724 params.dst.buffer.size = bufferImageHeight * defaultSize;
12753 params.dst.buffer.size = (defaultHalfSize - 1u) * defaultSize + defaultHalfSize + defaultQuarterSize;
12784 params.dst.buffer.size = defaultHalfSize * defaultHalfSize * arrayLayers;
12825 params.dst.buffer.size = defaultHalfSize * imageBufferHeight * arrayLayers;
12865 params.dst.buffer.size = defaultHalfSize * defaultHalfSize * arrayLayers;
12907 params.dst.buffer.size = defaultHalfSize * defaultHalfSize * layerCount;
12908 params.dst.buffer.fillMode = FILL_MODE_RED;
12951 params.dst.buffer.size = defaultHalfSize * defaultHalfSize * layerCount;
12952 params.dst.buffer.fillMode = FILL_MODE_RED;
13145 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
13146 params.dst.image.format = config.format;
13147 params.dst.image.extent = defaultExtent;
13148 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
13149 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
13201 params.dst.image.imageType = VK_IMAGE_TYPE_1D;
13202 params.dst.image.format = VK_FORMAT_R8G8B8A8_UINT;
13203 params.dst.image.extent = default1dExtent;
13204 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
13205 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
13231 params.dst.image.imageType = VK_IMAGE_TYPE_1D;
13232 params.dst.image.format = VK_FORMAT_R8G8B8A8_UINT;
13233 params.dst.image.extent = default1dExtent;
13234 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
13235 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
13261 params.dst.image.imageType = VK_IMAGE_TYPE_1D;
13262 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
13263 params.dst.image.extent = default1dExtent;
13264 params.dst.image.extent.depth = arrayLayers;
13265 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
13266 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
13271 const int pixelSize = tcu::getPixelSize(mapVkFormat(params.dst.image.format));
13304 params.dst.image.imageType = VK_IMAGE_TYPE_1D;
13305 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
13306 params.dst.image.extent = default1dExtent;
13307 params.dst.image.extent.depth = layerCount;
13308 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
13309 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
13310 params.dst.image.fillMode = FILL_MODE_RED;
13348 params.dst.image.imageType = VK_IMAGE_TYPE_1D;
13349 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
13350 params.dst.image.extent = default1dExtent;
13351 params.dst.image.extent.depth = layerCount;
13352 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
13353 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
13354 params.dst.image.fillMode = FILL_MODE_RED;
13391 params.dst.image.imageType = VK_IMAGE_TYPE_1D;
13392 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
13393 params.dst.image.extent = default1dExtent;
13394 params.dst.image.extent.depth = arrayLayers;
13395 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
13396 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
13401 const int pixelSize = tcu::getPixelSize(mapVkFormat(params.dst.image.format));
13436 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
13437 params.dst.image.format = VK_FORMAT_R8G8B8A8_UINT;
13438 params.dst.image.extent = defaultExtent;
13439 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
13440 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
13465 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
13466 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
13467 params.dst.image.extent = defaultExtent;
13468 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
13469 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
13497 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
13498 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
13499 params.dst.image.extent = defaultExtent;
13500 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
13501 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
13527 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
13528 params.dst.image.format = VK_FORMAT_R8_UNORM;
13529 params.dst.image.extent = defaultExtent;
13530 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
13531 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
13556 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
13557 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
13558 params.dst.image.extent = defaultExtent;
13559 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
13560 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
13586 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
13587 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
13588 params.dst.image.extent = defaultExtent;
13589 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
13590 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
13615 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
13616 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
13617 params.dst.image.extent = defaultExtent;
13618 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
13619 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
13645 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
13646 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
13647 params.dst.image.extent = defaultHalfExtent;
13648 params.dst.image.extent.depth = arrayLayers;
13649 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
13650 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
13655 const int pixelSize = tcu::getPixelSize(mapVkFormat(params.dst.image.format));
13686 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
13687 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
13688 params.dst.image.extent = defaultHalfExtent;
13689 params.dst.image.extent.depth = arrayLayers;
13690 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
13691 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
13696 const int pixelSize = tcu::getPixelSize(mapVkFormat(params.dst.image.format));
13726 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
13727 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
13728 params.dst.image.extent = defaultHalfExtent;
13729 params.dst.image.extent.depth = arrayLayers;
13730 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
13731 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
13736 const int pixelSize = tcu::getPixelSize(mapVkFormat(params.dst.image.format));
13768 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
13769 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
13770 params.dst.image.extent = defaultHalfExtent;
13771 params.dst.image.extent.depth = layerCount;
13772 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
13773 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
13774 params.dst.image.fillMode = FILL_MODE_RED;
13812 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
13813 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
13814 params.dst.image.extent = defaultHalfExtent;
13815 params.dst.image.extent.depth = layerCount;
13816 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
13817 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
13818 params.dst.image.fillMode = FILL_MODE_RED;
13858 params.dst.buffer.size = defaultSize;
13881 params.dst.buffer.size = defaultQuarterSize;
13904 params.dst.buffer.size = size * (size + 1);
13930 params.dst.buffer.size = 32;
13962 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
13965 params.dst.image.format = VK_FORMAT_R32_SFLOAT;
13966 group->addChild(new BlitImageTestCase(testCtx, getFormatCaseName(params.dst.image.format) + "_nearest", params));
13968 params.dst.image.format = VK_FORMAT_B8G8R8A8_UNORM;
13969 group->addChild(new BlitImageTestCase(testCtx, getFormatCaseName(params.dst.image.format) + "_nearest", params));
13976 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
13979 params.dst.image.format = VK_FORMAT_R32_SFLOAT;
13980 group->addChild(new BlitImageTestCase(testCtx, getFormatCaseName(params.dst.image.format) + "_linear", params));
13982 params.dst.image.format = VK_FORMAT_B8G8R8A8_UNORM;
13983 group->addChild(new BlitImageTestCase(testCtx, getFormatCaseName(params.dst.image.format) + "_linear", params));
13988 if (params.dst.image.imageType == VK_IMAGE_TYPE_2D)
13992 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
13995 params.dst.image.format = VK_FORMAT_R32_SFLOAT;
13996 group->addChild(new BlitImageTestCase(testCtx, getFormatCaseName(params.dst.image.format) + "_cubic", params));
13998 params.dst.image.format = VK_FORMAT_B8G8R8A8_UNORM;
13999 group->addChild(new BlitImageTestCase(testCtx, getFormatCaseName(params.dst.image.format) + "_cubic", params));
14005 DE_ASSERT(params.src.image.imageType == params.dst.image.imageType);
14008 params.dst.image.extent = defaultExtent;
14010 params.dst.image.extent.depth = imageDepth;
14038 DE_ASSERT(params.src.image.imageType == params.dst.image.imageType);
14045 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
14047 params.dst.image.extent = defaultExtent;
14049 params.dst.image.extent.depth = layerCount;
14051 params.dst.image.fillMode = FILL_MODE_RED;
14091 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
14093 params.dst.image.extent = defaultExtent;
14095 params.dst.image.extent.depth = layerCount;
14133 DE_ASSERT(params.src.image.imageType == params.dst.image.imageType);
14136 params.dst.image.extent = defaultExtent;
14138 params.dst.image.extent.depth = imageDepth;
14166 DE_ASSERT(params.src.image.imageType == params.dst.image.imageType);
14169 params.dst.image.extent = defaultExtent;
14171 params.dst.image.extent.depth = imageDepth;
14199 DE_ASSERT(params.src.image.imageType == params.dst.image.imageType);
14202 params.dst.image.extent = defaultExtent;
14204 params.dst.image.extent.depth = imageDepth;
14232 DE_ASSERT(params.src.image.imageType == params.dst.image.imageType);
14235 params.dst.image.extent = defaultExtent;
14237 params.dst.image.extent.depth = defaultSize;
14265 DE_ASSERT(params.src.image.imageType == params.dst.image.imageType);
14268 params.dst.image.extent = defaultExtent;
14270 params.dst.image.extent.depth = imageDepth;
14364 DE_ASSERT(params.src.image.imageType == params.dst.image.imageType);
14368 params.dst.image.extent = defaultHalfExtent;
14370 params.dst.image.extent.depth = halfImageDepth;
14398 DE_ASSERT(params.src.image.imageType == params.dst.image.imageType);
14402 params.dst.image.extent = defaultExtent;
14404 params.dst.image.extent.depth = imageDepth;
14432 DE_ASSERT(params.src.image.imageType == params.dst.image.imageType);
14437 params.dst.image.extent = defaultExtent;
14439 params.dst.image.extent.depth = imageDepth;
14467 DE_ASSERT(params.src.image.imageType == params.dst.image.imageType);
14470 params.dst.image.extent = defaultExtent;
14475 params.dst.image.extent.depth = defaultSize;
14510 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
14511 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
14515 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
14528 params.dst.image.imageType = VK_IMAGE_TYPE_3D;
14580 de::contains(dedicatedAllocationBlittingFormatsToTestSet, testParams.params.dst.image.format) ||
14688 testParams.params.dst.image.tiling = blitDstTilings[dstTilingNdx];
14692 testParams.params.dst.image.operationLayout = blitDstLayouts[dstLayoutNdx];
14695 if (testParams.params.dst.image.tiling == VK_IMAGE_TILING_LINEAR && testParams.params.dst.image.operationLayout == VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL)
14698 if ((testParams.params.dst.image.tiling == VK_IMAGE_TILING_LINEAR && !de::contains(linearOtherImageFormatsToTestSet, testParams.params.src.image.format)) ||
14699 (testParams.params.src.image.tiling == VK_IMAGE_TILING_LINEAR && !de::contains(linearOtherImageFormatsToTestSet, testParams.params.dst.image.format)))
14704 getBlitImageTilingLayoutCaseName(testParams.params.dst.image.tiling, testParams.params.dst.image.operationLayout);
14733 otherParams.params.dst.image.fillMode = FILL_MODE_WHITE;
14760 testParams.params.dst.image.format = testParams.compatibleFormats[dstFormatIndex];
14761 if (!isSupportedByFramework(testParams.params.dst.image.format))
14767 addTestGroup(group, getFormatCaseName(testParams.params.dst.image.format), addBlittingImageAllFormatsColorSrcFormatDstFormatTests, testParams);
14776 testParams.params.dst.image.format = srcFormat;
14953 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
14955 params.dst.image.extent = defaultExtent;
14957 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
14991 VkExtent3D& dstImageExtent = params.dst.image.extent;
15017 params.dst.image.imageType = VK_IMAGE_TYPE_1D;
15019 params.dst.image.extent = default1dExtent;
15021 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
15098 params.dst.image.imageType = VK_IMAGE_TYPE_3D;
15100 params.dst.image.extent = default3dExtent;
15102 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
15193 params.dst.image.operationLayout = blitDstLayouts[dstLayoutNdx];
15197 getImageLayoutCaseName(params.dst.image.operationLayout);
15232 params.dst.image.extent = defaultExtent;
15233 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
15234 params.dst.image.format = params.src.image.format;
15235 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
15322 const std::string testName = getFormatCaseName(params.src.image.format) + "_" + getFormatCaseName(params.dst.image.format);
15329 getFormatCaseName(params.dst.image.format) + "_separate_layouts";
15345 params.dst.image.imageType = VK_IMAGE_TYPE_1D;
15347 params.dst.image.extent = default1dExtent;
15349 params.dst.image.format = params.src.image.format;
15351 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
15438 const std::string testName = getFormatCaseName(params.src.image.format) + "_" + getFormatCaseName(params.dst.image.format);
15445 getFormatCaseName(params.dst.image.format) + "_separate_layouts";
15461 params.dst.image.imageType = VK_IMAGE_TYPE_3D;
15463 params.dst.image.extent = default3dExtent;
15465 params.dst.image.format = params.src.image.format;
15467 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
15554 const std::string testName = getFormatCaseName(params.src.image.format) + "_" + getFormatCaseName(params.dst.image.format);
15561 getFormatCaseName(params.dst.image.format) + "_separate_layouts";
15590 testParams.params.dst.image.operationLayout = blitDstLayouts[dstLayoutNdx];
15594 getImageLayoutCaseName(testParams.params.dst.image.operationLayout);
15638 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
15639 params.dst.image.extent = defaultExtent;
15640 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
15693 params.dst.image.format = compatibleFormats[srcFormatIndex];
15706 testParams.params.dst.image.extent.depth = layerCount;
15747 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
15748 params.dst.image.extent = defaultExtent;
15749 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
15805 params.dst.image.format = compatibleFormats[srcFormatIndex];
15818 testParams.params.dst.image.extent.depth = layerCount;
15851 params.dst.image.format = compatibleFormatsUInts[srcFormatIndex];
15862 testParams.params.dst.image.extent.depth = layerCount;
15916 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
15917 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
15918 params.dst.image.extent = resolveExtent;
15919 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
15920 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
15966 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
15967 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
15968 params.dst.image.extent = resolveExtent;
15969 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
15970 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
16016 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
16017 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
16018 params.dst.image.extent = resolveExtent;
16019 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
16020 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
16066 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
16067 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
16068 params.dst.image.extent = defaultExtent;
16069 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
16070 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
16120 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
16121 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
16122 params.dst.image.extent = defaultExtent;
16123 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
16124 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
16170 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
16171 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
16172 params.dst.image.extent = defaultExtent;
16173 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
16174 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
16221 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
16222 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
16223 params.dst.image.extent = defaultExtent;
16224 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
16225 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
16268 params.dst.image.operationLayout = imageLayouts[dstLayoutIndex].layout;
16270 params.dst.image.operationLayout == VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL)
16292 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
16293 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
16294 params.dst.image.extent = defaultExtent;
16295 params.dst.image.extent.depth = 5u;
16296 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
16297 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
16345 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
16346 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
16347 params.dst.image.extent = resolveExtent;
16348 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
16349 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
16425 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
16426 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
16427 params.dst.image.extent = defaultExtent;
16428 params.dst.image.extent.depth = 5u;
16429 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
16430 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
16434 for (deUint32 layerNdx=0; layerNdx < params.dst.image.extent.depth; ++layerNdx)
16479 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
16480 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
16481 params.dst.image.extent = defaultExtent;
16482 params.dst.image.extent.depth = layerCount;
16483 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
16528 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
16529 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
16530 params.dst.image.extent = defaultExtent;
16531 params.dst.image.extent.depth = layerCount;
16532 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
16578 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
16579 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
16580 params.dst.image.extent = defaultExtent;
16581 params.dst.image.extent.depth = layerCount;
16582 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
16629 params.dst.image.imageType = VK_IMAGE_TYPE_2D;
16630 params.dst.image.format = VK_FORMAT_R8G8B8A8_UNORM;
16631 params.dst.image.tiling = VK_IMAGE_TILING_OPTIMAL;
16632 params.dst.image.operationLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
16668 params.dst.image.extent = resolveExtent;
16682 params.dst.image.extent = dstImageSize;