mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
zink: always check for fb rebinds when starting renderpass
ensure the right image is being used Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
d3095f5cf0
commit
1e2b6e131e
1 changed files with 4 additions and 0 deletions
|
|
@ -2276,6 +2276,10 @@ 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] = prep_fb_attachment(ctx, transient, i);
|
||||
att[i + cresolve_offset] = prep_fb_attachment(ctx, surf, i);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue