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

Zhao Yakui yakui.zhao at intel.com
Wed Nov 9 19:39:52 UTC 2016


Otherwise it still selects NV12 for 10-bit surfaces, which is wrong.

Signed-off-by: Zhao Yakui <yakui.zhao 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 95bbcd6..069088a 100644
--- a/src/gen75_picture_process.c
+++ b/src/gen75_picture_process.c
@@ -158,6 +158,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);
     }  
 
-- 
2.8.3



More information about the Libva mailing list