mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-16 06:30:29 +01:00
frontend/va/image: add pipe flush for vlVaPutImage
To fix synchronization issue between multimedia queue and gfx queue. Adding flush call will let multimedia queue to wait for the content of gfx command buffer to be executed, for the case where there is dependency between these two queues. Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8567>
This commit is contained in:
parent
f6755eee0c
commit
27209e63ea
1 changed files with 1 additions and 0 deletions
|
|
@ -698,6 +698,7 @@ vlVaPutImage(VADriverContextP ctx, VASurfaceID surface, VAImageID image,
|
|||
}
|
||||
}
|
||||
}
|
||||
drv->pipe->flush(drv->pipe, NULL, 0);
|
||||
mtx_unlock(&drv->mutex);
|
||||
|
||||
return VA_STATUS_SUCCESS;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue