mesa/st: Pass the context to fence_finish as part of flush+wait

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40876>
This commit is contained in:
Jesse Natalie 2026-04-09 16:33:23 -07:00 committed by Marge Bot
parent 6ffac15b31
commit 5bd3b51cb9

View file

@ -803,7 +803,7 @@ st_context_flush(struct st_context *st, unsigned flags,
st_flush(st, fence, pipe_flags);
if ((flags & ST_FLUSH_WAIT) && fence && *fence) {
st->screen->fence_finish(st->screen, NULL, *fence,
st->screen->fence_finish(st->screen, st->pipe, *fence,
OS_TIMEOUT_INFINITE);
st->screen->fence_reference(st->screen, fence, NULL);
}