[Libva] [HEVC10bit ENC V2 4/5] HEVC10bit ENC: work around the gpu hang when convrt p010 to nv12

Pengfei Qu Pengfei.Qu at intel.com
Fri Sep 2 07:01:41 UTC 2016


Signed-off-by: Pengfei Qu <Pengfei.Qu at intel.com>
---
 src/gen9_mfc_hevc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gen9_mfc_hevc.c b/src/gen9_mfc_hevc.c
index bc9225a..019dadf 100644
--- a/src/gen9_mfc_hevc.c
+++ b/src/gen9_mfc_hevc.c
@@ -2666,6 +2666,7 @@ static VAStatus intel_hcpe_yuv_prepare(struct encode_state *encode_state,
             &dst_surface,
             &rect);
         assert(status == VA_STATUS_SUCCESS);
+        i965_SyncSurface(ctx,vme_context->input_yuv_surface_internal);
 
         //convert ref  P010->NV12
         for (i = 0; i < 15; i++) {
@@ -2719,6 +2720,7 @@ static VAStatus intel_hcpe_yuv_prepare(struct encode_state *encode_state,
                         &dst_surface,
                         &rect);
                     assert(status == VA_STATUS_SUCCESS);
+                    i965_SyncSurface(ctx,vme_context->reference_surface_internal[i]);
                 }
             }
         }
-- 
2.7.4



More information about the Libva mailing list