mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 11:30:21 +01:00
st/interop: fix fence leak
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14050
Fixes: 1396dc1c38 ("mesa/st, dri2, wgl, glx: Modify flush_objects interop func to export a fence_fd")
Tested-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38310>
This commit is contained in:
parent
6e936ebc9c
commit
87550fc657
1 changed files with 1 additions and 0 deletions
|
|
@ -437,6 +437,7 @@ st_interop_flush_objects(struct st_context *st,
|
|||
struct pipe_fence_handle *fence = NULL;
|
||||
ctx->pipe->flush(ctx->pipe, &fence, PIPE_FLUSH_FENCE_FD | PIPE_FLUSH_ASYNC);
|
||||
*out->fence_fd = ctx->screen->fence_get_fd(ctx->screen, fence);
|
||||
ctx->screen->fence_reference(ctx->screen, &fence, NULL);
|
||||
}
|
||||
out->version = MIN2(out->version, 1);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue