iris: Skip msaa16 on gen < 9.
[mesa.git] / src / gallium / drivers / iris / iris_fence.c
index f14f329cc4db2a4b02d76b927be4fa16c2380903..06452f709669d905e77daeffe402682e6d3f4fc9 100644 (file)
@@ -138,9 +138,10 @@ iris_fence_reference(struct pipe_screen *p_screen,
    *dst = src;
 }
 
-static bool
-check_syncpt(struct pipe_screen *p_screen,
-             struct iris_syncpt *syncpt)
+bool
+iris_wait_syncpt(struct pipe_screen *p_screen,
+                 struct iris_syncpt *syncpt,
+                 int64_t timeout_nsec)
 {
    if (!syncpt)
       return false;
@@ -149,6 +150,7 @@ check_syncpt(struct pipe_screen *p_screen,
    struct drm_syncobj_wait args = {
       .handles = (uintptr_t)&syncpt->handle,
       .count_handles = 1,
+      .timeout_nsec = timeout_nsec,
    };
    return drm_ioctl(screen->fd, DRM_IOCTL_SYNCOBJ_WAIT, &args);
 }
@@ -175,7 +177,7 @@ iris_fence_flush(struct pipe_context *ctx,
    pipe_reference_init(&fence->ref, 1);
 
    for (unsigned b = 0; b < IRIS_BATCH_COUNT; b++) {
-      if (!check_syncpt(ctx->screen, ice->batches[b].last_syncpt))
+      if (!iris_wait_syncpt(ctx->screen, ice->batches[b].last_syncpt, 0))
          continue;
 
       iris_syncpt_reference(screen, &fence->syncpt[fence->count++],