mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-23 18:24:13 +08:00
zink: check whether clear is enabled before applying in unbind
this is implicit, but make it explicit Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14541>
This commit is contained in:
parent
4deba8cc96
commit
a2711e47af
@ -2582,7 +2582,9 @@ unbind_fb_surface(struct zink_context *ctx, struct pipe_surface *surf, unsigned
|
||||
struct zink_surface *transient = zink_transient_surface(surf);
|
||||
struct zink_resource *res = zink_resource(surf->texture);
|
||||
if (changed) {
|
||||
zink_fb_clears_apply(ctx, surf->texture);
|
||||
if (zink_fb_clear_enabled(ctx, idx)) {
|
||||
zink_fb_clears_apply(ctx, surf->texture);
|
||||
}
|
||||
if (zink_batch_usage_exists(zink_csurface(surf)->batch_uses)) {
|
||||
zink_batch_reference_surface(&ctx->batch, zink_csurface(surf));
|
||||
if (transient)
|
||||
|
Loading…
Reference in New Issue
Block a user