zink: flag the use_img as unsync access with buf2img copies, not the swapchain

these are not the same

Fixes: a0510b23f6f ("zink: add automatic swapchain readback using heuristics")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27606>
This commit is contained in:
Mike Blumenkrantz 2023-10-16 15:45:41 -04:00 committed by Marge Bot
parent b8b51d96b0
commit f827055cb4

View file

@ -4580,7 +4580,7 @@ zink_copy_image_buffer(struct zink_context *ctx, struct zink_resource *dst, stru
zink_batch_reference_resource_rw(batch, buf, !buf2img);
if (unsync) {
ctx->batch.state->has_unsync = true;
img->obj->unsync_access = true;
use_img->obj->unsync_access = true;
}
/* we're using u_transfer_helper_deinterleave, which means we'll be getting PIPE_MAP_* usage