From b0d26ca9312695d05c29503a3f892e7f2c5816dd Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 27 Jan 2013 21:07:03 +0000 Subject: sna: Replace the forced vertex finish with just a wait When completing a batch mid-operation, we need to wait upon the other threads to complete their writes so that memory is coherent before submitting the work to the GPU. This was achieved by forcing the finish, but all that from that is the wait, which makes the handling of threads much explicit and removes the unnecessary vbo refresh. Signed-off-by: Chris Wilson --- src/sna/gen4_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sna/gen4_render.c') diff --git a/src/sna/gen4_render.c b/src/sna/gen4_render.c index e4f5f594..249d6261 100644 --- a/src/sna/gen4_render.c +++ b/src/sna/gen4_render.c @@ -667,7 +667,7 @@ flush: gen4_vertex_flush(sna); gen4_magic_ca_pass(sna, op); } - gen4_vertex_finish(sna); + sna_vertex_wait__locked(&sna->render); _kgem_submit(&sna->kgem); emit_state(sna, op); goto start; -- cgit v1.2.3