Lines Matching defs:format
278 static float requiredDepthEpsilon(VkFormat format)
284 switch (format)
473 const tcu::TextureFormat format = mapVkFormat(vkFormat);
477 switch (format.order)
671 Attachment (VkFormat format,
682 : m_format (format)
993 const tcu::TextureFormat format = mapVkFormat(vkFormat);
994 const tcu::TextureChannelClass channelClass = tcu::getTextureChannelClass(format.type);
995 const tcu::BVec4 channelMask = tcu::getTextureFormatChannelMask(format);
996 const auto numUsedChannels = static_cast<uint32_t>(getShaderNumChannels(format.order));
1057 const tcu::TextureFormat format = mapVkFormat(vkFormat);
1059 if (tcu::hasStencilComponent(format.order) || tcu::hasDepthComponent(format.order))
1065 if (tcu::hasStencilComponent(format.order))
1068 if (tcu::hasStencilComponent(format.order) && tcu::hasDepthComponent(format.order))
1071 if (tcu::hasDepthComponent(format.order))
1085 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
1086 const tcu::TextureChannelClass channelClass = tcu::getTextureChannelClass(format.type);
1087 const tcu::BVec4 channelMask = tcu::getTextureFormatChannelMask(format);
1088 const auto numUsedChannels = static_cast<uint32_t>(getShaderNumChannels(format.order));
1147 attachment.getFormat(), // VkFormat format; || VkFormat format;
1333 VkFormat format,
1339 const tcu::TextureFormat textureFormat = mapVkFormat(format);
1341 DE_ASSERT(!(tcu::hasDepthComponent(vk::mapVkFormat(format).order) || tcu::hasStencilComponent(vk::mapVkFormat(format).order))
1344 DE_ASSERT((tcu::hasDepthComponent(vk::mapVkFormat(format).order) || tcu::hasStencilComponent(vk::mapVkFormat(format).order))
1355 format,
1388 VkFormat format,
1400 return createImageView(vk, device, 0u, image, VK_IMAGE_VIEW_TYPE_2D, format, makeComponentMappingRGBA(), range);
1406 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
1408 if (tcu::hasStencilComponent(format.order) || tcu::hasDepthComponent(format.order))
1415 if (tcu::hasStencilComponent(format.order))
1420 if (tcu::hasDepthComponent(format.order))
1452 const tcu::TextureFormat format = mapVkFormat(attachmentInfo.getFormat());
1453 const bool isDepthFormat = tcu::hasDepthComponent(format.order);
1454 const bool isStencilFormat = tcu::hasStencilComponent(format.order);
1468 if (tcu::hasDepthComponent(format.order) && tcu::hasStencilComponent(format.order))
1488 m_bufferSize = size.x() * size.y() * format.getPixelSize();
1934 VK_FORMAT_R32G32_SFLOAT, // format
2216 const tcu::TextureFormat format = mapVkFormat(dsAttachmentInfo.getFormat());
2218 if (tcu::hasDepthComponent(format.order))
2231 if (tcu::hasStencilComponent(format.order))
2325 const tcu::TextureFormat format = mapVkFormat(attachmentInfo.getFormat());
2326 const bool isDepthFormat = tcu::hasDepthComponent(format.order);
2327 const bool isStencilFormat = tcu::hasStencilComponent(format.order);
2434 const tcu::TextureFormat format = mapVkFormat(attachmentInfo.getFormat());
2435 const bool isDepthFormat = tcu::hasDepthComponent(format.order);
2436 const bool isStencilFormat = tcu::hasStencilComponent(format.order);
2608 tcu::TextureFormat format = mapVkFormat(m_renderInfo.getDepthStencilAttachment()->getFormat());
2612 (VkImageAspectFlags)((hasDepthComponent(format.order) && layout != VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL ? VK_IMAGE_ASPECT_DEPTH_BIT : 0)
2613 | (hasStencilComponent(format.order) && layout != VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL ? VK_IMAGE_ASPECT_STENCIL_BIT : 0)),
2627 if ((tcu::hasDepthComponent(format.order) && layout != VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL)
2628 || (tcu::hasStencilComponent(format.order) && layout != VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL))
2677 const tcu::TextureFormat format = mapVkFormat(m_renderInfo.getDepthStencilAttachment()->getFormat());
2678 const bool hasDepth = hasDepthComponent(format.order);
2679 const bool hasStencil = hasStencilComponent(format.order);
2810 const tcu::TextureFormat format = mapVkFormat(attachmentInfo[attachmentNdx].getFormat());
2812 if (hasStencilComponent(format.order) || hasDepthComponent(format.order))
2815 const float clearDepth = hasDepthComponent(format.order) ? clearValues[attachmentNdx]->depthStencil.depth : clearNan;
2816 const deUint32 clearStencil = hasStencilComponent(format.order) ? clearValues[attachmentNdx]->depthStencil.stencil : 0xDEu;
2824 (VkImageAspectFlags)((hasDepthComponent(format.order) ? VK_IMAGE_ASPECT_DEPTH_BIT : 0)
2825 | (hasStencilComponent(format.order) ? VK_IMAGE_ASPECT_STENCIL_BIT : 0)),
3465 const tcu::TextureFormat& format,
3468 const bool isDepthAttachment = hasDepthComponent(format.order);
3469 const bool isStencilAttachment = hasStencilComponent(format.order);
3497 const tcu::TextureChannelClass channelClass = tcu::getTextureChannelClass(format.type);
3498 const tcu::BVec4 channelMask = tcu::getTextureFormatChannelMask(format);
3576 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
3582 clearReferenceValues(reference, targetSize, UVec2(0, 0), targetSize, BVec4(true), clearValueToPixelValue(*imageClearValues[attachmentNdx], format, depthValues));
3600 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
3602 DE_ASSERT(!tcu::hasDepthComponent(format.order));
3603 DE_ASSERT(!tcu::hasStencilComponent(format.order));
3606 clearReferenceValues(reference, targetSize, renderPos, renderSize, BVec4(true), clearValueToPixelValue(*renderPassClearValues[attachmentIndex], format, depthValues));
3624 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
3626 if (tcu::hasDepthComponent(format.order))
3629 clearReferenceValues(reference, targetSize, renderPos, renderSize, BVec4(true, false, false, false), clearValueToPixelValue(*renderPassClearValues[attachmentIndex], format, depthValues));
3634 if (tcu::hasStencilComponent(format.order))
3637 clearReferenceValues(reference, targetSize, renderPos, renderSize, BVec4(false, true, false, false), clearValueToPixelValue(*renderPassClearValues[attachmentIndex], format, depthValues));
3653 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
3659 clearReferenceValues(reference, targetSize, offset, size, BVec4(true), clearValueToPixelValue(value, format, depthValues));
3670 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
3671 const bool hasStencil = tcu::hasStencilComponent(format.order)
3673 const bool hasDepth = tcu::hasDepthComponent(format.order)
3681 clearReferenceValues(reference, targetSize, offset, size, BVec4(hasDepth, hasStencil, false, false), clearValueToPixelValue(value, format, depthValues));
3709 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
3710 const tcu::BVec4 channelMask = tcu::getTextureFormatChannelMask(format);
3734 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
3740 if (tcu::hasDepthComponent(format.order)
3752 if (tcu::hasStencilComponent(format.order)
3774 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
3775 const int componentCount = getShaderNumChannels(format.order);
3785 const tcu::TextureFormat format (mapVkFormat(attachment.getFormat()));
3787 if (tcu::hasDepthComponent(format.order))
3801 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
3802 const int componentCount = getShaderNumChannels(format.order);
3825 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
3827 const int componentCount = getShaderNumChannels(format.order);
3894 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
3897 if (tcu::hasStencilComponent(format.order))
3915 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
3917 const bool isStencilAttachment = hasStencilComponent(format.order);
3918 const bool isDepthOrStencilAttachment = hasDepthComponent(format.order) || isStencilAttachment;
3944 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
3946 const bool hasDepth = tcu::hasDepthComponent(format.order);
3947 const bool hasStencil = tcu::hasStencilComponent(format.order);
3951 referenceImage.setStorage(format, targetSize.x(), targetSize.y());
4075 // Same channel order, but using UNORM_INT8 for the color format.
4243 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
4245 if (tcu::hasDepthComponent(format.order) && tcu::hasStencilComponent(format.order))
4310 const ConstPixelBufferAccess access (format, targetSize.x(), targetSize.y(), 1, ptr);
4313 if (tcu::hasDepthComponent(format.order))
4321 else if (tcu::hasStencilComponent(format.order))
4349 // Convert color images to better reflect test status and output in any format.
4378 const tcu::TextureFormat format = mapVkFormat(vkFormat);
4379 const tcu::TextureChannelClass channelClass = tcu::getTextureChannelClass(format.type);
4402 const tcu::TextureFormat format = mapVkFormat(vkFormat);
4403 const tcu::TextureChannelClass channelClass = tcu::getTextureChannelClass(format.type);
4404 const size_t componentCount = (size_t)getShaderNumChannels(format.order);
4463 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
4464 const bool isDepthFormat = tcu::hasDepthComponent(format.order);
4465 const bool isStencilFormat = tcu::hasStencilComponent(format.order);
4513 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
4514 const size_t componentCount = config.useFormatCompCount ? (size_t)getShaderNumChannels(format.order) : 4;
4559 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
4560 const size_t componentCount = (size_t)getShaderNumChannels(format.order);
4574 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
4575 const size_t componentCount = (size_t)getShaderNumChannels(format.order);
4610 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
4611 const size_t componentCount = (size_t)getShaderNumChannels(format.order);
4612 const bool isDepthFormat = tcu::hasDepthComponent(format.order);
4613 const bool isStencilFormat = tcu::hasStencilComponent(format.order);
4648 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
4649 const size_t componentCount = (size_t)getShaderNumChannels(format.order);
5085 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
5086 const bool isDepthOrStencilAttachment = hasDepthComponent(format.order) || hasStencilComponent(format.order);
5371 VK_FORMAT_R8G8B8A8_UNORM, // VkFormat format
5445 imageFormat, // VkFormat format;
5713 const VkFormat format = rng.choose<VkFormat>(DE_ARRAY_BEGIN(s_coreColorFormats), DE_ARRAY_END(s_coreColorFormats));
5739 attachments.push_back(Attachment(format, sampleCount, loadOp, storeOp, stencilLoadOp, stencilStoreOp, initialLayout, finalizeLayout));
5746 const VkFormat format = rng.choose<VkFormat>(DE_ARRAY_BEGIN(s_coreDepthStencilFormats), DE_ARRAY_END(s_coreDepthStencilFormats));
5771 attachments.push_back(Attachment(format, sampleCount, loadOp, storeOp, stencilLoadOp, stencilStoreOp, initialLayout, finalizeLayout));
5851 const VkFormat format = attachmentFormats[formatNdx];
5862 attachments.push_back(Attachment(format, sampleCount, loadOp, storeOp, stencilLoadOp, stencilStoreOp, initialLayout, finalizeLayout));
6102 const VkFormat format = rng.choose<VkFormat>(DE_ARRAY_BEGIN(s_coreDepthStencilFormats), DE_ARRAY_END(s_coreDepthStencilFormats));
6110 attachments.push_back(Attachment(format, sampleCount, loadOp, storeOp, stencilLoadOp, stencilStoreOp, initialLayout, finalizeLayout));
6114 const VkFormat format = rng.choose<VkFormat>(DE_ARRAY_BEGIN(s_coreColorFormats), DE_ARRAY_END(s_coreColorFormats));
6121 attachments.push_back(Attachment(format, sampleCount, loadOp, storeOp, stencilLoadOp, stencilStoreOp, initialLayout, finalizeLayout));
6396 const VkFormat format = rng.choose<VkFormat>(DE_ARRAY_BEGIN(s_coreColorFormats), DE_ARRAY_END(s_coreColorFormats));
6411 attachments.push_back(Attachment(format, sampleCount, loadOp, storeOp, stencilLoadOp, stencilStoreOp, initialLayout, finalizeLayout));
6957 std::string formatToName (VkFormat format)
6959 const std::string formatStr = de::toString(format);
7013 for (const auto& format : colorFormatsToTest)
7015 de::MovePtr<tcu::TestCaseGroup> formatGroup (new tcu::TestCaseGroup(testCtx, formatToName(format).c_str()));
7024 const RenderPass renderPass (vector<Attachment>(1, Attachment(format,
7061 // Test attachment format as input
7092 attachments.push_back(Attachment(format,
7171 attachments.push_back(Attachment(format,
7261 const tcu::TextureFormat format = mapVkFormat(vkFormat);
7262 const bool isStencilAttachment = hasStencilComponent(format.order);
7263 const bool isDepthAttachment = hasDepthComponent(format.order);
7927 // Attachment format and count tests with load and store ops and image layouts