diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-22 20:19:22 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-23 07:51:38 +0100 |
commit | 1909910fdf89216d18703e50728f4604f75d5d66 (patch) | |
tree | ca93408780eb5e2315e417e9afcb258fde1c253a /src/sna/kgem.h | |
parent | 83cbbcd816e449402f3d49aeba3c099a20b8bc1b (diff) |
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>
Diffstat (limited to 'src/sna/kgem.h')
-rw-r--r-- | src/sna/kgem.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/kgem.h b/src/sna/kgem.h index 5152a3b8..e66bffb1 100644 --- a/src/sna/kgem.h +++ b/src/sna/kgem.h @@ -171,6 +171,8 @@ struct kgem { uint32_t need_purge:1; uint32_t need_retire:1; uint32_t need_throttle:1; + uint32_t needs_semaphore:1; + uint32_t needs_reservation:1; uint32_t scanout_busy:1; uint32_t busy:1; |