mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 07:48:07 +02:00
vc4: Fix context creation when syncobjs aren't supported.
Noticed when trying to run current Mesa on rpi's downstream kernel.
Fixes: b0acc3a562 ("broadcom/vc4: Native fence fd support")
This commit is contained in:
parent
1561e4984e
commit
86095e9bb1
1 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue