Many graphics pipelines are used in dynamic render pass which uses
fragment shading attachment, but these pipelines don't have
VK_PIPELINE_CREATE_RENDERING_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR
flags when they are created. Adding those flags.
Affects: dEQP-VK.fragment_shading_rate.dynamic_rendering.*
Components: Vulkan
VK-GL-CTS issue: 3440
Change-Id: I3dd0aae9d6e9f2fc0bb5266f4f4ba442ebc0317b
0.0f, // float maxDepthBounds;
};
- const VkGraphicsPipelineCreateInfo graphicsPipelineCreateInfo =
+ VkGraphicsPipelineCreateInfo graphicsPipelineCreateInfo =
{
VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO, // VkStructureType sType;
&shadingRateStateCreateInfo, // const void* pNext;
0 // int basePipelineIndex;
};
+ if (m_data.useDynamicRendering)
+ graphicsPipelineCreateInfo.flags |= VK_PIPELINE_CREATE_RENDERING_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR;
+
VkImageMemoryBarrier imageBarrier =
{
VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER, // VkStructureType sType