st/va: flush pipeline after post processing
authorsguttula <suresh.guttula@amd.com>
Thu, 10 Nov 2016 05:59:53 +0000 (00:59 -0500)
committerChristian König <christian.koenig@amd.com>
Fri, 13 Jan 2017 13:21:29 +0000 (14:21 +0100)
This will flush the pipeline,which will allow to share dma-buf based
buffers.

Signed-off-by: Suresh Guttula <Suresh.Guttula@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/va/postproc.c

index d06f01617dfa4ebe25c0b2d849fe38b8942ca6c0..01e240f0167e7d57df524f78f4800397ea762736 100644 (file)
@@ -80,6 +80,7 @@ vlVaPostProcCompositor(vlVaDriver *drv, vlVaContext *context,
    vl_compositor_set_layer_dst_area(&drv->cstate, 0, &dst_rect);
    vl_compositor_render(&drv->cstate, &drv->compositor, surfaces[0], NULL, false);
 
+   drv->pipe->flush(drv->pipe, NULL, 0);
    return VA_STATUS_SUCCESS;
 }