summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoyuan Zhang <boyuan.zhang@amd.com>2021-01-18 19:21:35 -0500
committerMarge Bot <eric+marge@anholt.net>2021-01-22 15:03:38 +0000
commit27209e63ea816762708deef4b4fbec0dfbf4a331 (patch)
tree9f3ed70763294b6622133bf1599479b60e6b6738
parentf6755eee0c7bfe01fdd38537e9ed6609da428980 (diff)
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>
-rw-r--r--src/gallium/frontends/va/image.c1
1 files changed, 1 insertions, 0 deletions
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;