Signed-off-by: Zhao Yakui <[email protected]>
Reviewed-by: Xiang, Haihao<[email protected]>
---
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
_______________________________________________
Libva mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libva