zink: remove fb rebind check during renderpass begin

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16476>
This commit is contained in:
Mike Blumenkrantz 2022-05-09 12:24:04 -04:00 committed by Marge Bot
parent 3d145ec7f1
commit 37f9b8ef9b

View file

@ -484,10 +484,6 @@ prep_fb_attachments(struct zink_context *ctx, VkImageView *att)
for (int i = 0; i < ctx->fb_state.nr_cbufs; i++) {
struct zink_surface *surf = zink_csurface(ctx->fb_state.cbufs[i]);
struct zink_surface *transient = zink_transient_surface(ctx->fb_state.cbufs[i]);
if (surf && zink_resource(surf->base.texture)->obj != surf->obj) {
zink_resource_rebind(ctx, zink_resource(surf->base.texture));
surf = zink_csurface(ctx->fb_state.cbufs[i]);
}
if (transient) {
att[i] = zink_prep_fb_attachment(ctx, transient, i);
att[i + cresolve_offset] = zink_prep_fb_attachment(ctx, surf, i);