1
0
Fork 0

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:
Caio Oliveira 2025-09-30 11:05:24 -07:00 committed by Marge Bot
parent 937fa18bb9
commit d16d7ac470

View file

@ -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");
}
}
}