From: Chia-I Wu Date: Tue, 7 May 2019 17:56:40 +0000 (-0700) Subject: virgl: do not skip readback because of explicit flush X-Git-Tag: upstream/19.3.0~6339 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9f8521882a62e9441afb7fbb55329306d50fef8d;p=platform%2Fupstream%2Fmesa.git 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 --- 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; }