diff options
author | Chia-I Wu <[email protected]> | 2019-05-07 10:56:40 -0700 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2019-05-14 17:00:22 +0000 |
commit | 9f8521882a62e9441afb7fbb55329306d50fef8d (patch) | |
tree | dec0614146fc4cbf1f07e4c77c0b0ec048557fd3 | |
parent | be8eeb3b59abf18d6b706016c5fa05b746d88f65 (diff) |
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 <[email protected]>
Reviewed-by: Alexandros Frantzis <[email protected]>
Reviewed-by: Gurchetan Singh <[email protected]>
-rw-r--r-- | src/gallium/drivers/virgl/virgl_resource.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gallium/drivers/virgl/virgl_resource.c b/src/gallium/drivers/virgl/virgl_resource.c index bd0a633e471..9cbff8d8d54 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; } |