summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/virgl
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2019-05-07 10:56:40 -0700
committerChia-I Wu <[email protected]>2019-05-14 17:00:22 +0000
commit9f8521882a62e9441afb7fbb55329306d50fef8d (patch)
treedec0614146fc4cbf1f07e4c77c0b0ec048557fd3 /src/gallium/drivers/virgl
parentbe8eeb3b59abf18d6b706016c5fa05b746d88f65 (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]>
Diffstat (limited to 'src/gallium/drivers/virgl')
-rw-r--r--src/gallium/drivers/virgl/virgl_resource.c3
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;
}