Signed-off-by: Pengfei Qu <pengfei...@intel.com> --- src/gen9_vme.c | 1 + src/i965_drv_video.h | 2 ++ 2 files changed, 3 insertions(+)
diff --git a/src/gen9_vme.c b/src/gen9_vme.c index 9e66275..264b27d 100644 --- a/src/gen9_vme.c +++ b/src/gen9_vme.c @@ -1839,6 +1839,7 @@ static VAStatus gen9_intel_init_hevc_surface(VADriverContextP ctx, &rect); assert(status == VA_STATUS_SUCCESS); hevc_encoder_surface->has_p010_to_nv12_done = 1; + i965_SyncSurface(ctx,hevc_encoder_surface->nv12_surface_id); } return VA_STATUS_SUCCESS; } diff --git a/src/i965_drv_video.h b/src/i965_drv_video.h index d9644a7..77e32d8 100644 --- a/src/i965_drv_video.h +++ b/src/i965_drv_video.h @@ -553,6 +553,8 @@ extern VAStatus i965_CreateSurfaces(VADriverContextP ctx, int format, int num_surfaces, VASurfaceID *surfaces); +extern VAStatus i965_SyncSurface(VADriverContextP ctx, + VASurfaceID render_target); #define I965_SURFACE_MEM_NATIVE 0 #define I965_SURFACE_MEM_GEM_FLINK 1 -- 2.7.4 _______________________________________________ Libva mailing list Libva@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libva