Commit ed46cde6 by Chris Forbes

Synchronize before performing mid-subpass attachment clears

Bug: b/119620767 Test: dEQP-VK.renderpass* Change-Id: I749c26e9924d69735f45ca981957016718fe5b0a Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29708Tested-by: 's avatarChris Forbes <chrisforbes@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
parent 451cad2c
......@@ -765,6 +765,10 @@ struct ClearAttachment : public CommandBuffer::Command
void play(CommandBuffer::ExecutionState& executionState) override
{
// attachment clears are drawing operations, and so have rasterization-order guarantees.
// however, we don't do the clear through the rasterizer, so need to ensure prior drawing
// has completed first.
executionState.renderer->synchronize();
executionState.renderPassFramebuffer->clear(executionState.renderPass, attachment, rect);
}
......
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