From 27209e63ea816762708deef4b4fbec0dfbf4a331 Mon Sep 17 00:00:00 2001 From: Boyuan Zhang Date: Mon, 18 Jan 2021 19:21:35 -0500 Subject: [PATCH] frontend/va/image: add pipe flush for vlVaPutImage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Marek Olšák Part-of: --- src/gallium/frontends/va/image.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/frontends/va/image.c b/src/gallium/frontends/va/image.c index 76cb403ed99..1b63c22ec78 100644 --- a/src/gallium/frontends/va/image.c +++ b/src/gallium/frontends/va/image.c @@ -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;