zink: reset fb clears using the clears_enabled mask

iterating was fine before, but it will become problematic to reset
all the clears once they start being stashed for unordered ops

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21906>
This commit is contained in:
Mike Blumenkrantz
2023-03-18 09:58:43 -04:00
committed by Marge Bot
parent 7411264ca6
commit 07a5ede65a

View File

@@ -408,8 +408,10 @@ out:
}
to_clear = 0;
}
for (int i = 0; i < ARRAY_SIZE(ctx->fb_clears); i++)
zink_fb_clear_reset(ctx, i);
if (ctx->clears_enabled & PIPE_CLEAR_DEPTHSTENCIL)
zink_fb_clear_reset(ctx, PIPE_MAX_COLOR_BUFS);
u_foreach_bit(i, ctx->clears_enabled >> 2)
zink_fb_clear_reset(ctx, i);
}
static struct pipe_surface *