From e9c5e13344c1e798204028a94546b9565dd01c8e Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Thu, 18 Apr 2019 15:10:22 -0700 Subject: [PATCH] virgl: clear vertex_array_dirty Clear vertex_array_dirty after the state is emitted. Signed-off-by: Chia-I Wu Reviewed-by: Gurchetan Singh --- src/gallium/drivers/virgl/virgl_context.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/virgl/virgl_context.c b/src/gallium/drivers/virgl/virgl_context.c index b07cab7..69b56bf 100644 --- a/src/gallium/drivers/virgl/virgl_context.c +++ b/src/gallium/drivers/virgl/virgl_context.c @@ -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; } } -- 2.7.4