summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gallium/drivers/v3d/v3d_context.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/v3d/v3d_context.c b/src/gallium/drivers/v3d/v3d_context.c
index edcfc9a475f..4821624635c 100644
--- a/src/gallium/drivers/v3d/v3d_context.c
+++ b/src/gallium/drivers/v3d/v3d_context.c
@@ -296,6 +296,13 @@ v3d_context_destroy(struct pipe_context *pctx)
v3d_program_fini(pctx);
+ if (v3d->screen->has_syncobj) {
+ drmSyncobjDestroy(v3d->fd, v3d->out_sync);
+ drmSyncobjDestroy(v3d->fd, v3d->in_syncobj);
+ }
+ if (v3d->in_fence_fd >= 0)
+ close(v3d->in_fence_fd);
+
ralloc_free(v3d);
}