[Libva] [LIBVA_INTEL_DRIVER][PATCH V2 6/8] VPP select the appropriate fourcc for deferred surface based on expected format

Zhao Yakui yakui.zhao at intel.com
Fri Nov 11 01:56:08 UTC 2016


Signed-off-by: Zhao Yakui <yakui.zhao at intel.com>
Reviewed-by: Xiang, Haihao<haihao.xiang at intel.com>
---
 src/gen75_picture_process.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gen75_picture_process.c b/src/gen75_picture_process.c
index 6e1102a..ee99c88 100644
--- a/src/gen75_picture_process.c
+++ b/src/gen75_picture_process.c
@@ -153,6 +153,10 @@ gen75_proc_picture(VADriverContextP ctx,
         unsigned int is_tiled = 1;
         unsigned int fourcc = VA_FOURCC_NV12;
         int sampling = SUBSAMPLE_YUV420;
+
+        if (obj_dst_surf->expected_format == VA_RT_FORMAT_YUV420_10BPP)
+            fourcc = VA_FOURCC_P010;
+
         i965_check_alloc_surface_bo(ctx, obj_dst_surf, is_tiled, fourcc, sampling);
     }  
 
-- 
1.9.0



More information about the Libva mailing list