sna: Inject a batch flush before adding a fresh bo
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 22 Jun 2014 19:19:22 +0000 (20:19 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 23 Jun 2014 06:51:38 +0000 (07:51 +0100)
commit1909910fdf89216d18703e50728f4604f75d5d66
treeca93408780eb5e2315e417e9afcb258fde1c253a
parent83cbbcd816e449402f3d49aeba3c099a20b8bc1b
sna: Inject a batch flush before adding a fresh bo

Fresh bo (those without a reservation already defined, ala
presumed_offset) will cause the kernel to do a full relocation pass. So,
if possible flush the already correct batch in the hope of trimming the
amount of checking the kernel has to perform on this new batch.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/gen4_vertex.c
src/sna/kgem.c
src/sna/kgem.h