mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
virgl: PIPE_TRANSFER_READ does not imply flush
virgl_res_needs_flush should suffice. Signed-off-by: Chia-I Wu <olvaffe@gmail.com> Reviewed-by: Alexandros Frantzis <alexandros.frantzis@collabora.com> Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
This commit is contained in:
parent
9f8521882a
commit
76e45534d2
1 changed files with 1 additions and 4 deletions
|
|
@ -43,11 +43,8 @@ static void *virgl_buffer_transfer_map(struct pipe_context *ctx,
|
|||
|
||||
trans = virgl_resource_create_transfer(&vctx->transfer_pool, resource,
|
||||
&vbuf->metadata, level, usage, box);
|
||||
if (usage & PIPE_TRANSFER_READ)
|
||||
flush = true;
|
||||
else
|
||||
flush = virgl_res_needs_flush(vctx, trans);
|
||||
|
||||
flush = virgl_res_needs_flush(vctx, trans);
|
||||
if (flush)
|
||||
ctx->flush(ctx, NULL, 0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue