Lines Matching defs:height
247 void copyMemoryToImage (const std::vector<deUint8> testData, vk::VkImage image, deUint32 texelSize, const vk::VkImageSubresourceLayers subresourceLayers, deInt32 xOffset, deInt32 yOffset, deUint32 width, deUint32 height);
284 void HostImageCopyTestInstance::copyMemoryToImage (const std::vector<deUint8> testData, vk::VkImage image, deUint32 texelSize, const vk::VkImageSubresourceLayers subresourceLayers, deInt32 xOffset, deInt32 yOffset, deUint32 width, deUint32 height)
288 std::vector<deUint8> data (texelSize * width * height);
290 for (deUint32 i = 0; i < height; ++i) {
294 const deUint32 regionsCount = m_parameters.regionsCount > height ? m_parameters.regionsCount : 1u;
299 vk::VkOffset3D offset = { xOffset, (deInt32)(yOffset + height / regionsCount * i), 0 };
300 vk::VkExtent3D extent = { width, height / regionsCount, 1 };
302 extent.height = height - height / regionsCount * i;
304 if (extent.height == 0)
307 deUint32 dataOffset = width * (height / regionsCount * i) * texelSize;
353 const vk::VkExtent3D imageSize = { m_parameters.imageSize.width * (deUint32)dePow(2, m_parameters.mipLevel), m_parameters.imageSize.height * (deUint32)dePow(2, m_parameters.mipLevel), 1 };
354 const vk::VkExtent3D mipImageSize = { m_parameters.imageSize.width, m_parameters.imageSize.height, 1 };
356 const vk::VkRect2D renderArea = vk::makeRect2D(0, 0, mipImageSize.width, mipImageSize.height);
360 const auto sampledBufferCount = mipImageSize.width * mipImageSize.height * sampledNumChannels;
366 const auto outputBufferCount = mipImageSize.width * mipImageSize.height * outputNumChannels;
547 framebuffer = makeFramebuffer(vk, device, *renderPass, *outputImageView, renderArea.extent.width, renderArea.extent.height);
688 copyMemoryToImage(testData, sampledImage, sampledChannelSize * sampledNumChannels, sampledSubresourceLayers, 0, 0, mipImageSize.width, mipImageSize.height);
689 commandsLog << "vkCopyMemoryToImageEXT() with image " << sampledImage << ", xOffset (0), yOffset (0), width (" << mipImageSize.width << "), height (" << mipImageSize.height << ")\n";
693 deInt32Hash((deUint32)mipImageSize.height) ^
698 deInt32 yOffset = randomGen.getInt32() % (mipImageSize.height / 2);
700 deUint32 height = deMaxu32(randomGen.getUint32() % (mipImageSize.height / 2), 1u);
708 height = deMaxu32((height / blockHeight) * blockHeight, blockHeight);
711 copyMemoryToImage(testData, sampledImage, sampledChannelSize * sampledNumChannels, sampledSubresourceLayers, xOffset, yOffset, width, height);
712 commandsLog << "vkCopyMemoryToImageEXT() with image " << sampledImage << ", xOffset (" << xOffset << "), yOffset (" << yOffset << "), width (" << width << "), height (" << height << ")\n";
742 mipImageSize.height,
747 commandsLog << "vkCmdCopyBufferToImage() with image " << sampledImage << ", xOffset (" << copyRegion.imageOffset.x << "), yOffset (" << copyRegion.imageOffset.y << "), width (" << mipImageSize.width << "), height (" << mipImageSize.height << ")\n";
811 commandsLog << "vkCopyImageToMemoryEXT() with image " << sampledImage << ", xOffset (" << region.imageOffset.x << "), yOffset (" << region.imageOffset.y << "), width (" << mipImageSize.width << "), height (" << mipImageSize.height << ")\n";
837 commandsLog << "vkCopyMemoryToImageEXT() with image " << **sampledImageWithMemoryCopy << ", xOffset (" << toImageRegion.imageOffset.x << "), yOffset (" << toImageRegion.imageOffset.y << "), width (" << toImageRegion.imageExtent.width << "), height (" << toImageRegion.imageExtent.height << ")\n";
880 vk.cmdDispatch(*cmdBuffer, renderArea.extent.width, renderArea.extent.height, 1);
907 {renderArea.extent.width, renderArea.extent.height, 1} // VkExtent3D imageExtent;
910 commandsLog << "vkCmdCopyImageToBuffer() with image " << **outputImage << ", xOffset (" << imageOffset.x << "), yOffset (" << imageOffset.y << "), width (" << renderArea.extent.width << "), height (" << renderArea.extent.height << "\n";
916 tcu::ConstPixelBufferAccess resultBuffer = tcu::ConstPixelBufferAccess(outputFormat, renderArea.extent.width, renderArea.extent.height, 1, (const void*)colorOutputBuffer->getAllocation().getHostPtr());
920 const deUint32 paddedBufferSize = (mipImageSize.width + m_parameters.padding) * (mipImageSize.height + m_parameters.padding) * outputNumChannels * outputChannelSize;
922 const deUint32 memoryImageHeight = (mipImageSize.height + m_parameters.padding);
930 vk::VkOffset3D offset = { 0, (deInt32)(mipImageSize.height / m_parameters.regionsCount * i), 0 };
931 vk::VkExtent3D extent = { mipImageSize.width, mipImageSize.height / m_parameters.regionsCount, 1 };
933 extent.height = mipImageSize.height - mipImageSize.height / m_parameters.regionsCount * i;
965 for (deUint32 j = 0; j < mipImageSize.height; ++j)
1005 m_parameters.imageSize.height,
1272 const auto bufferCount = m_size.width * m_size.height * m_size.depth * m_arrayLayers * numChannels;