Commit a845b599 by Shahbaz Youssefi Committed by Commit Bot

Vulkan: fix depth/stencil-only blit

The draw-call path was outputting color unconditionally even though only depth/stencil was written by the shader, causing flakiness. Bug: angleproject:3200 Change-Id: I1b28e37160153863e7e6c2875c3002abf4ec176b Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1682729Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
parent be3d2d98
...@@ -977,8 +977,15 @@ angle::Result UtilsVk::blitResolveImpl(ContextVk *contextVk, ...@@ -977,8 +977,15 @@ angle::Result UtilsVk::blitResolveImpl(ContextVk *contextVk,
vk::GraphicsPipelineDesc pipelineDesc; vk::GraphicsPipelineDesc pipelineDesc;
pipelineDesc.initDefaults(); pipelineDesc.initDefaults();
pipelineDesc.setColorWriteMask(kAllColorComponents, if (blitColor)
framebuffer->getEmulatedAlphaAttachmentMask()); {
pipelineDesc.setColorWriteMask(kAllColorComponents,
framebuffer->getEmulatedAlphaAttachmentMask());
}
else
{
pipelineDesc.setColorWriteMask(0, gl::DrawBufferMask());
}
pipelineDesc.setRenderPassDesc(framebuffer->getRenderPassDesc()); pipelineDesc.setRenderPassDesc(framebuffer->getRenderPassDesc());
pipelineDesc.setDepthTestEnabled(blitDepth); pipelineDesc.setDepthTestEnabled(blitDepth);
pipelineDesc.setDepthWriteEnabled(blitDepth); pipelineDesc.setDepthWriteEnabled(blitDepth);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment