Any other caller would want it, too.
bool
vc4_wait_seqno(struct vc4_screen *screen, uint64_t seqno, uint64_t timeout_ns)
{
+ if (screen->finished_seqno >= seqno)
+ return true;
+
#ifndef USE_VC4_SIMULATOR
struct drm_vc4_wait_seqno wait;
memset(&wait, 0, sizeof(wait));
struct vc4_screen *screen = vc4_screen(pscreen);
struct vc4_fence *f = (struct vc4_fence *)pf;
- if (screen->finished_seqno >= f->seqno)
- return true;
-
return vc4_wait_seqno(screen, f->seqno, 0);
}
struct vc4_screen *screen = vc4_screen(pscreen);
struct vc4_fence *f = (struct vc4_fence *)pf;
- if (screen->finished_seqno >= f->seqno)
- return true;
-
return vc4_wait_seqno(screen, f->seqno, timeout_ns);
}