virgl: don't mark unclean after a flush
authorGurchetan Singh <gurchetansingh@chromium.org>
Sat, 12 Jan 2019 01:49:59 +0000 (17:49 -0800)
committerGert Wollny <gert.wollny@collabora.com>
Fri, 15 Feb 2019 10:19:04 +0000 (11:19 +0100)
The guest memory is still clean until host GL touches it,
which we should track elsewhere.

Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
src/gallium/drivers/virgl/virgl_buffer.c

index 6762011e5c68fa90f6856e167bf1f881c04f11ac..25fb992ef1fb5c17a5054c537c00c8ca551d1b34 100644 (file)
@@ -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 =