virgl: clear vertex_array_dirty
authorChia-I Wu <olvaffe@gmail.com>
Thu, 18 Apr 2019 22:10:22 +0000 (15:10 -0700)
committerChia-I Wu <olvaffe@gmail.com>
Mon, 22 Apr 2019 17:19:47 +0000 (10:19 -0700)
Clear vertex_array_dirty after the state is emitted.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
src/gallium/drivers/virgl/virgl_context.c

index b07cab7289d6314ad3d800f06354f0af33abac14..69b56bfd0363350e33efae85fd0a7a842eb31205 100644 (file)
@@ -466,6 +466,8 @@ static void virgl_hw_set_vertex_buffers(struct virgl_context *vctx)
          virgl_encoder_set_vertex_buffers(vctx, vctx->num_vertex_buffers, vctx->vertex_buffer);
 
       virgl_attach_res_vertex_buffers(vctx);
+
+      vctx->vertex_array_dirty = FALSE;
    }
 }