diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-27 21:07:03 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-27 21:07:03 +0000 |
commit | b0d26ca9312695d05c29503a3f892e7f2c5816dd (patch) | |
tree | 580f60c63ddce7d5a790cb4df19073431406e8cb /src/sna/gen3_render.c | |
parent | b0c3170c1092d01b4937f352a3962854785ee549 (diff) |
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen3_render.c')
-rw-r--r-- | src/sna/gen3_render.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/gen3_render.c b/src/sna/gen3_render.c index 6c0ea6a6..3eb29668 100644 --- a/src/sna/gen3_render.c +++ b/src/sna/gen3_render.c @@ -2008,7 +2008,7 @@ flush: gen3_vertex_flush(sna); gen3_magic_ca_pass(sna, op); } - gen3_vertex_finish(sna); + sna_vertex_wait__locked(&sna->render); _kgem_submit(&sna->kgem); gen3_emit_composite_state(sna, op); assert(sna->render.vertex_offset == 0); |