intel/executor: Destroy syncobjs after using them
Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37645>
This commit is contained in:
parent
937fa18bb9
commit
d16d7ac470
1 changed files with 9 additions and 0 deletions
|
|
@ -726,6 +726,15 @@ executor_context_dispatch(executor_context *ec)
|
|||
err = intel_ioctl(ec->fd, DRM_IOCTL_SYNCOBJ_WAIT, &wait);
|
||||
if (err)
|
||||
failf("syncobj_wait");
|
||||
|
||||
for (int i = 0; i < ARRAY_SIZE(sync_handles); i++) {
|
||||
struct drm_syncobj_destroy sync_destroy = {
|
||||
.handle = sync_handles[i],
|
||||
};
|
||||
err = intel_ioctl(ec->fd, DRM_IOCTL_SYNCOBJ_DESTROY, &sync_destroy);
|
||||
if (err)
|
||||
failf("syncobj_destroy");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue