sna: Fix flushing empty batches
A logic inversion in
commit 1909910fdf
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date: Sun Jun 22 20:19:22 2014 +0100
sna: Inject a batch flush before adding a fresh bo
also applied the injection to when the batch was empty.
Reported-by: Jiri Slaby <jirislaby@gmail.com>
References: https://bugs.freedesktop.org/show_bug.cgi?id=70461#c48
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
60fd6764eb
commit
6848fb235b
|
|
@ -5217,7 +5217,7 @@ inline static bool needs_reservation(struct kgem *kgem, struct kgem_bo *bo)
|
|||
|
||||
inline static bool needs_batch_flush(struct kgem *kgem, struct kgem_bo *bo)
|
||||
{
|
||||
if (kgem->nreloc)
|
||||
if (kgem->nreloc == 0)
|
||||
return false;
|
||||
|
||||
if (needs_semaphore(kgem, bo)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue