From: Gurchetan Singh Date: Sat, 12 Jan 2019 01:49:59 +0000 (-0800) Subject: virgl: don't mark unclean after a flush X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c19aedcf1a83c70a999b963dfbc0bce47a189600;p=mesa.git virgl: don't mark unclean after a flush The guest memory is still clean until host GL touches it, which we should track elsewhere. Reviewed-by: Gert Wollny --- diff --git a/src/gallium/drivers/virgl/virgl_buffer.c b/src/gallium/drivers/virgl/virgl_buffer.c index 6762011e5c6..25fb992ef1f 100644 --- a/src/gallium/drivers/virgl/virgl_buffer.c +++ b/src/gallium/drivers/virgl/virgl_buffer.c @@ -120,7 +120,6 @@ static void virgl_buffer_transfer_flush_region(struct pipe_context *ctx, * We'll end up flushing 25 --> 70. */ util_range_add(&trans->range, box->x, box->x + box->width); - vbuf->clean[0] = FALSE; } static const struct u_resource_vtbl virgl_buffer_vtbl =