Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
int num_exec = 0;
int num_pages = 0;
bool flush = false;
+ bool active = true;
va_start(ap, kgem);
while ((bo = va_arg(ap, struct kgem_bo *))) {
num_exec++;
flush |= bo->flush;
+ active &= bo->rq != NULL;
}
va_end(ap);
return false;
}
+ if (active)
+ return true;
+
return kgem_flush(kgem, flush);
}
return false;
}
+ if (bo->rq)
+ return true;
+
return kgem_flush(kgem, bo->flush);
}
int num_pages = 0;
int fenced_size = 0;
bool flush = false;
+ bool active = true;
va_start(ap, kgem);
while ((bo = va_arg(ap, struct kgem_bo *))) {
}
flush |= bo->flush;
+ active &= bo->rq != NULL;
}
va_end(ap);
return false;
}
+ if (active)
+ return true;
+
return kgem_flush(kgem, flush);
}