Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dynamic_rendering_local_read needs to turn off color write mask on 2nd/3rd draw #1289

Open
spencer-lunarg opened this issue Mar 6, 2025 · 0 comments

Comments

@spencer-lunarg
Copy link
Contributor

With the Latest ToT Validation the dynamic_rendering_local_read example gives the following

Validation Warning: [ Undefined-Value-ShaderInputNotProduced-DynamicRendering ] | MessageID = 0x733b5ff8
vkCmdDrawIndexed(): Inside the fragment shader, the output Locaiton 1 was never written to. This means the bound VkRenderingInfo::pColorAttachments[1].imageView (VkImageView 0x3a6cbb0000000025) will have undefined values written to it.The pipeline was created with pColorBlendState->pAttachments[1].colorWriteMask 0xf so setting it to zero is one way to prevent undefined values overriding your color attachment.
Spec information at https://docs.vulkan.org/spec/latest/chapters/interfaces.html#interfaces-fragmentoutput
Objects: 2
    [0] VkCommandBuffer 0x59c2af1c3320
    [1] VkPipeline 0xc25f26000000009c

Simple fix is to

  1. enable independentBlend (basically supported everywhere)
  2. adjust the blend_attachment_states for the 2 pipelines not writing out to the color attachments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant