Module: Mesa
Branch: staging/21.0
Commit: 759ce9f053edc6c515ca2414807da08a6d92629e
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=759ce9f053edc6c515ca2414807da08a6d92629e

Author: Boyuan Zhang <[email protected]>
Date:   Mon Jan 18 19:21:35 2021 -0500

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.

Fixes: 2f50dea2188c ("radeonsi: always use a staging texture for linear 1D 
textures in VRAM")
Signed-off-by: Boyuan Zhang <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
(cherry picked from commit 27209e63ea816762708deef4b4fbec0dfbf4a331)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9995>

---

 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 7a0d391e470..e54cb699b75 100644
--- a/src/gallium/frontends/va/image.c
+++ b/src/gallium/frontends/va/image.c
@@ -696,6 +696,7 @@ vlVaPutImage(VADriverContextP ctx, VASurfaceID surface, 
VAImageID image,
          }
       }
    }
+   drv->pipe->flush(drv->pipe, NULL, 0);
    mtx_unlock(&drv->mutex);
 
    return VA_STATUS_SUCCESS;

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to