diff options
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_fence.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gallium/drivers/vc4/vc4_fence.c b/src/gallium/drivers/vc4/vc4_fence.c index 7071425595c..fac9df34d4f 100644 --- a/src/gallium/drivers/vc4/vc4_fence.c +++ b/src/gallium/drivers/vc4/vc4_fence.c @@ -142,8 +142,12 @@ vc4_fence_context_init(struct vc4_context *vc4) /* Since we initialize the in_fence_fd to -1 (no wait necessary), * we also need to initialize our in_syncobj as signaled. */ - return drmSyncobjCreate(vc4->fd, DRM_SYNCOBJ_CREATE_SIGNALED, - &vc4->in_syncobj); + if (vc4->screen->has_syncobj) { + return drmSyncobjCreate(vc4->fd, DRM_SYNCOBJ_CREATE_SIGNALED, + &vc4->in_syncobj); + } else { + return 0; + } } void |