Lines Matching defs:attachment
553 AttachmentReference (deUint32 attachment,
556 : m_attachment (attachment)
856 const Attachment& attachment = attachments[attachmentNdx];
858 log << TestLog::Message << "Format: " << attachment.getFormat() << TestLog::EndMessage;
859 log << TestLog::Message << "Samples: " << attachment.getSamples() << TestLog::EndMessage;
861 log << TestLog::Message << "LoadOp: " << attachment.getLoadOp() << TestLog::EndMessage;
862 log << TestLog::Message << "StoreOp: " << attachment.getStoreOp() << TestLog::EndMessage;
864 log << TestLog::Message << "StencilLoadOp: " << attachment.getStencilLoadOp() << TestLog::EndMessage;
865 log << TestLog::Message << "StencilStoreOp: " << attachment.getStencilStoreOp() << TestLog::EndMessage;
867 log << TestLog::Message << "InitialLayout: " << attachment.getInitialLayout() << TestLog::EndMessage;
868 log << TestLog::Message << "FinalLayout: " << attachment.getFinalLayout() << TestLog::EndMessage;
1082 VkClearColorValue randomColorClearValue (const Attachment& attachment, de::Random& rng, deBool useFormatCompCount)
1085 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
1140 AttachmentDesc createAttachmentDescription (const Attachment& attachment)
1147 attachment.getFormat(), // VkFormat format; || VkFormat format;
1148 attachment.getSamples(), // VkSampleCountFlagBits samples; || VkSampleCountFlagBits samples;
1149 attachment.getLoadOp(), // VkAttachmentLoadOp loadOp; || VkAttachmentLoadOp loadOp;
1150 attachment.getStoreOp(), // VkAttachmentStoreOp storeOp; || VkAttachmentStoreOp storeOp;
1151 attachment.getStencilLoadOp(), // VkAttachmentLoadOp stencilLoadOp; || VkAttachmentLoadOp stencilLoadOp;
1152 attachment.getStencilStoreOp(), // VkAttachmentStoreOp stencilStoreOp; || VkAttachmentStoreOp stencilStoreOp;
1153 attachment.getInitialLayout(), // VkImageLayout initialLayout; || VkImageLayout initialLayout;
1154 attachment.getFinalLayout() // VkImageLayout finalLayout; || VkImageLayout finalLayout;
1167 referenceInfo.getAttachment(), // deUint32 attachment; || deUint32 attachment;
1403 VkClearValue randomClearValue (const Attachment& attachment, de::Random& rng, deBool useFormatCompCount, const DepthValuesArray& depthValues)
1406 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
1429 clearValue.color = randomColorClearValue(attachment, rng, useFormatCompCount);
1887 const Attachment& attachment = renderInfo.getColorAttachment(attachmentNdx);
1889 DE_ASSERT(!rasterSamples || *rasterSamples == attachment.getSamples());
1891 rasterSamples = attachment.getSamples();
1913 const Attachment& attachment = *renderInfo.getDepthStencilAttachment();
1915 DE_ASSERT(!rasterSamples || *rasterSamples == attachment.getSamples());
1916 rasterSamples = attachment.getSamples();
1919 // If there are no attachment use single sample
2081 const Attachment& attachment = *renderInfo.getDepthStencilAttachment();
2082 vk::VkFormat depthStencilFormat = attachment.getFormat();
2396 // \note Reserve 2 per input attachment since depthStencil attachments require 2.
2405 // \note Reserve 2 per input attachment since depthStencil attachments require 2.
2584 const VkClearAttachment attachment =
2600 vk.cmdClearAttachments(commandBuffer, 1u, &attachment, 1u, &rect);
2610 const VkClearAttachment attachment =
2630 vk.cmdClearAttachments(commandBuffer, 1u, &attachment, 1u, &rect);
3575 const Attachment attachment = renderPassInfo.getAttachments()[attachmentNdx];
3576 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
3591 // Apply load op if attachment was used for the first time
3598 const Attachment& attachment = renderPassInfo.getAttachments()[attachmentIndex];
3600 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
3605 if (attachment.getLoadOp() == VK_ATTACHMENT_LOAD_OP_CLEAR)
3607 else if (attachment.getLoadOp() == VK_ATTACHMENT_LOAD_OP_DONT_CARE)
3614 // Apply load op to depth/stencil attachment if it was used for the first time
3619 // Apply load op if attachment was used for the first time
3622 const Attachment& attachment = renderPassInfo.getAttachments()[attachmentIndex];
3624 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
3628 if (attachment.getLoadOp() == VK_ATTACHMENT_LOAD_OP_CLEAR)
3630 else if (attachment.getLoadOp() == VK_ATTACHMENT_LOAD_OP_DONT_CARE)
3636 if (attachment.getStencilLoadOp() == VK_ATTACHMENT_LOAD_OP_CLEAR)
3638 else if (attachment.getStencilLoadOp() == VK_ATTACHMENT_LOAD_OP_DONT_CARE)
3652 const Attachment& attachment = renderPassInfo.getAttachments()[attachmentIndex];
3653 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
3669 const Attachment& attachment = renderPassInfo.getAttachments()[attachmentIndex];
3670 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
3708 const Attachment& attachment = renderPassInfo.getAttachments()[attachmentIndex];
3709 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
3733 const Attachment& attachment = renderPassInfo.getAttachments()[attachmentIndex];
3734 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
3773 const Attachment& attachment = renderPassInfo.getAttachments()[attachmentIndex];
3774 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
3784 const Attachment& attachment (renderPassInfo.getAttachments()[subpass.getDepthStencilAttachment().getAttachment()]);
3785 const tcu::TextureFormat format (mapVkFormat(attachment.getFormat()));
3800 const Attachment& attachment = renderPassInfo.getAttachments()[attachmentIndex];
3801 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
3824 const Attachment& attachment = renderPassInfo.getAttachments()[attachmentIndex];
3825 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
3893 const Attachment& attachment = renderPassInfo.getAttachments()[attachmentIndex];
3894 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
3914 const Attachment attachment = renderPassInfo.getAttachments()[attachmentIndex];
3915 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
3943 const Attachment attachment = renderPassInfo.getAttachments()[attachmentNdx];
3944 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
4242 const Attachment attachment = renderPassInfo.getAttachments()[attachmentNdx];
4243 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
4247 const tcu::TextureFormat depthFormat = getDepthCopyFormat(attachment.getFormat());
4250 const tcu::TextureFormat stencilFormat = getStencilCopyFormat(attachment.getFormat());
4265 && !verifyDepthAttachment(referenceValues[attachmentNdx], depthAccess, depthErrorImage.getAccess(), config.depthValues, requiredDepthEpsilon(attachment.getFormat())))
4316 && !verifyDepthAttachment(referenceValues[attachmentNdx], access, errorImage.getAccess(), config.depthValues, requiredDepthEpsilon(attachment.getFormat())))
4340 log << TestLog::ImageSet("TestImages", "Output attachment, reference image and error mask");
4354 log << TestLog::Message << "Check the attachment formats and test data to verify which components affect the test result." << TestLog::EndMessage;
4356 log << TestLog::Message << "Output attachment pixel components are always set to 0.5 or 1.0 but may not be taken into account if not set in the reference image." << TestLog::EndMessage;
4462 const Attachment attachment = config.renderPass.getAttachments()[attachmentIndex];
4463 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
4484 const std::string attachmentType = getInputAttachmentType(attachment.getFormat());
4512 const Attachment attachment = config.renderPass.getAttachments()[attachmentIndex];
4513 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
4515 const std::string attachmentType = getAttachmentType(attachment.getFormat(), config.useFormatCompCount);
4558 const Attachment attachment = config.renderPass.getAttachments()[attachmentIndex];
4559 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
4573 const Attachment attachment = config.renderPass.getAttachments()[attachmentIndex];
4574 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
4609 const Attachment attachment = config.renderPass.getAttachments()[attachmentIndex];
4610 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
4621 std::fixed << std::setprecision(12) << requiredDepthEpsilon(attachment.getFormat()) << ");\n";
4646 const Attachment attachment = config.renderPass.getAttachments()[attachmentIndex];
4648 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
4786 const deUint32 attachment = references[referenceNdx].getAttachment();
4788 if (attachment != VK_ATTACHMENT_UNUSED)
4808 DE_FATAL("Unexpected attachment reference type");
4813 attachmentImageUsage[attachment] |= usage;
4842 const Attachment& attachment = renderPassInfo.getAttachments()[attachmentNdx];
4843 const VkFormatProperties formatProperties = getPhysicalDeviceFormatProperties(context.getInstanceInterface(), context.getPhysicalDevice(), attachment.getFormat());
4852 attachmentImageUsage[attachmentNdx] |= getImageUsageFromLayout(attachment.getInitialLayout());
4853 attachmentImageUsage[attachmentNdx] |= getImageUsageFromLayout(attachment.getFinalLayout());
4931 log << TestLog::Message << "Clearing color attachment " << attachmentNdx
4941 log << TestLog::Message << "Clearing depth stencil attachment"
5036 const Attachment& attachment = renderPass.getAttachments()[attachmentRef.getAttachment()];
5040 const VkClearColorValue color = randomColorClearValue(attachment, rng, config.useFormatCompCount);
5047 const Attachment& attachment = renderPass.getAttachments()[subpass.getDepthStencilAttachment().getAttachment()];
5051 const VkClearValue value = randomClearValue(attachment, rng, config.useFormatCompCount, config.depthValues);
5084 const Attachment& attachment = attachments[attachmentNdx];
5085 const tcu::TextureFormat format = mapVkFormat(attachment.getFormat());
5090 vk.getPhysicalDeviceFormatProperties(device, attachment.getFormat(), &properties);
5095 log << TestLog::Message << "Format: " << attachment.getFormat() << " not supported as " << (isDepthOrStencilAttachment ? "depth stencil attachment" : "color attachment") << TestLog::EndMessage;
5367 // Result attachment
5383 0u, // deUint32 attachment
5983 // Each pass uses one less attachment than previous one
5985 // Each pass drops one attachment and picks up new one
5989 // Each subpass has single input and single output attachment
5991 // Each subpass has multiple inputs and multiple outputs attachment
6872 // Color, depth and stencil attachment case.
6909 // First subpass: use color attachment, create pipeline with color blend state
6919 // Second subpass: don't use color attachment, create pipeline without color blend state
6952 // Two unused color attachment case without blend state
7061 // Test attachment format as input
7928 addTestGroup(group, "attachment", addAttachmentTests, testConfigExternal);