[Libva] [PATCH intel-driver v2] dri: return error for unimplemented surface formats
Xiang, Haihao
haihao.xiang at intel.com
Wed Jul 27 07:53:44 UTC 2016
Thanks for the new patch, applied.
> Previously packed YUV422 surface were allowed to be renderd but
> got rendered improperly.
>
> Signed-off-by: Scott D Phillips <scott.d.phillips at intel.com>
> ---
> Changes since v1:
> - blacklist certain fourcc's instead of all 4:2:2 surfaces
>
> src/i965_output_dri.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/src/i965_output_dri.c b/src/i965_output_dri.c
> index d36fec5..ae3bcf6 100644
> --- a/src/i965_output_dri.c
> +++ b/src/i965_output_dri.c
> @@ -135,6 +135,9 @@ i965_put_surface_dri(
> */
> obj_surface = SURFACE(surface);
> ASSERT_RET(obj_surface && obj_surface->bo, VA_STATUS_SUCCESS);
> + ASSERT_RET(obj_surface->fourcc != VA_FOURCC_YUY2 &&
> + obj_surface->fourcc != VA_FOURCC_UYVY,
> + VA_STATUS_ERROR_UNIMPLEMENTED);
>
> _i965LockMutex(&i965->render_mutex);
>
More information about the Libva
mailing list