With the DRM scheduler changes, I'm about to remove all seqnos from the
UABI.
vc5_wait_seqno(struct vc5_screen *screen, uint64_t seqno, uint64_t timeout_ns,
const char *reason)
{
- if (screen->finished_seqno >= seqno)
- return true;
-
if (unlikely(V3D_DEBUG & V3D_DEBUG_PERF) && timeout_ns && reason) {
if (vc5_wait_seqno_ioctl(screen->fd, seqno, 0) == -ETIME) {
fprintf(stderr, "Blocking on seqno %lld for %s\n",
return false;
}
- screen->finished_seqno = seqno;
return true;
}
const char *name;
- /** The last seqno we've completed a wait for.
- *
- * This lets us slightly optimize our waits by skipping wait syscalls
- * if we know the job's already done.
- */
- uint64_t finished_seqno;
-
struct slab_parent_pool transfer_pool;
struct vc5_bo_cache {