[Mesa-dev] [PATCH v2 3/4] dri: add AYUV format

Lionel Landwerlin lionel.g.landwerlin at intel.com
Tue Nov 13 11:43:46 UTC 2018


I think this chunk (or the whole patch) should be cherry picked to stable.
Otherwise we get a BAD_ATTRIBUTE error for trying to create an AYUV 
EGLImage.
We should have BAD_MATCH instead.

-
Lionel

On 09/11/2018 10:55, Lionel Landwerlin wrote:
> diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
> index 87e1a704c6e..3b63aebbf9a 100644
> --- a/src/egl/drivers/dri2/egl_dri2.c
> +++ b/src/egl/drivers/dri2/egl_dri2.c
> @@ -2278,6 +2278,7 @@ dri2_num_fourcc_format_planes(EGLint format)
>      case DRM_FORMAT_YVYU:
>      case DRM_FORMAT_UYVY:
>      case DRM_FORMAT_VYUY:
> +   case DRM_FORMAT_AYUV:
>         return 1;
>   
>      case DRM_FORMAT_NV12:




More information about the mesa-dev mailing list