zink: only flag fbfetch as rp update if fbfetch wasn't already configured

otherwise this is probably just a swapchain acquire which needs to update
the descriptor during begin_renderpass

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17665>
This commit is contained in:
Mike Blumenkrantz 2022-07-20 15:26:15 -04:00 committed by Marge Bot
parent 1468cd82de
commit c24c5972a8

View file

@ -2127,8 +2127,10 @@ zink_update_fbfetch(struct zink_context *ctx)
ctx->di.fbfetch.imageLayout = VK_IMAGE_LAYOUT_GENERAL;
if (changed) {
zink_screen(ctx->base.screen)->context_invalidate_descriptor_state(ctx, PIPE_SHADER_FRAGMENT, ZINK_DESCRIPTOR_TYPE_UBO, 0, 1);
ctx->rp_changed = true;
zink_batch_no_rp(ctx);
if (!had_fbfetch) {
ctx->rp_changed = true;
zink_batch_no_rp(ctx);
}
}
}