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:
Boyuan Zhang 2021-01-18 19:21:35 -05:00 committed by Marge Bot
parent f6755eee0c
commit 27209e63ea

View file

@ -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;