From 9f8521882a62e9441afb7fbb55329306d50fef8d Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Tue, 7 May 2019 10:56:40 -0700 Subject: [PATCH] virgl: do not skip readback because of explicit flush Both apps and we (see virgl_buffer_transfer_flush_region) might flush regions that are unmodified. We have to read back for those flushes. Signed-off-by: Chia-I Wu Reviewed-by: Alexandros Frantzis Reviewed-by: Gurchetan Singh --- src/gallium/drivers/virgl/virgl_resource.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gallium/drivers/virgl/virgl_resource.c b/src/gallium/drivers/virgl/virgl_resource.c index bd0a633..9cbff8d 100644 --- a/src/gallium/drivers/virgl/virgl_resource.c +++ b/src/gallium/drivers/virgl/virgl_resource.c @@ -56,9 +56,6 @@ bool virgl_res_needs_readback(struct virgl_context *vctx, readback = false; else if (usage & PIPE_TRANSFER_DISCARD_RANGE) readback = false; - else if ((usage & (PIPE_TRANSFER_WRITE | PIPE_TRANSFER_FLUSH_EXPLICIT)) == - (PIPE_TRANSFER_WRITE | PIPE_TRANSFER_FLUSH_EXPLICIT)) - readback = false; return readback; } -- 2.7.4