Commit 9c66a092 by Shahbaz Youssefi Committed by Commit Bot

Vulkan: Update scissor only in DRAW framebuffer's syncState

Bug: angleproject:4988 Change-Id: I16f9268cdc221c84f962bbb9bd06ef5b19a6ac05 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2510013Reviewed-by: 's avatarTim Van Patten <timvp@google.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
parent 8a50b42b
...@@ -1777,8 +1777,11 @@ angle::Result FramebufferVk::syncState(const gl::Context *context, ...@@ -1777,8 +1777,11 @@ angle::Result FramebufferVk::syncState(const gl::Context *context,
} }
// The FBO's new attachment may have changed the renderable area // The FBO's new attachment may have changed the renderable area
const gl::State &glState = context->getState(); if (binding == GL_DRAW_FRAMEBUFFER)
ANGLE_TRY(contextVk->updateScissor(glState)); {
const gl::State &glState = context->getState();
ANGLE_TRY(contextVk->updateScissor(glState));
}
if (command != gl::Command::Blit) if (command != gl::Command::Blit)
{ {
...@@ -1794,8 +1797,7 @@ angle::Result FramebufferVk::syncState(const gl::Context *context, ...@@ -1794,8 +1797,7 @@ angle::Result FramebufferVk::syncState(const gl::Context *context,
updateRenderPassDesc(); updateRenderPassDesc();
// Notify the ContextVk to update the pipeline desc. // Notify the ContextVk to update the pipeline desc.
FramebufferVk *currentDrawFramebuffer = vk::GetImpl(context->getState().getDrawFramebuffer()); if (binding == GL_DRAW_FRAMEBUFFER)
if (currentDrawFramebuffer == this)
{ {
contextVk->onDrawFramebufferChange(this); contextVk->onDrawFramebufferChange(this);
} }
......
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