zink: always update sampler descriptor layouts on fb surface unbind

this will affect the layout

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17524>
This commit is contained in:
Mike Blumenkrantz 2022-07-07 12:43:07 -04:00 committed by Marge Bot
parent f79d71f59e
commit b1c1d099a9

View file

@ -2679,8 +2679,11 @@ unbind_fb_surface(struct zink_context *ctx, struct pipe_surface *surf, unsigned
ctx->rp_changed = true;
}
res->fb_binds--;
if (!res->fb_binds)
if (!res->fb_binds) {
check_resource_for_batch_ref(ctx, res);
if (res->sampler_bind_count[0])
update_res_sampler_layouts(ctx, res);
}
}
void