[Mesa-dev] [2/5] gbm: Add support for 10bpp BGR formats

Eric Engestrom eric.engestrom at intel.com
Mon Jul 30 16:48:43 UTC 2018


On Wednesday, 2018-06-13 06:04:12 +0200, Mario Kleiner wrote:
> From: Daniel Stone <daniels at collabora.com>
> 
> Add support for XBGR2101010 and ABGR2101010 formats.
> 
> Signed-off-by: Daniel Stone <daniels at collabora.com>
> Reviewed-by: Mario Kleiner <mario.kleiner.de at gmail.com>
> Tested-by: Mario Kleiner <mario.kleiner.de at gmail.com>
> Tested-by: Ilia Mirkin <imirkin at alum.mit.edu>

Reviewed-by: Eric Engestrom <eric.engestrom at intel.com>

Any objection to landing the first 3 patches of this series already?

> ---
>  src/gbm/backends/dri/gbm_dri.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
> index df20db4..b3d6ceb 100644
> --- a/src/gbm/backends/dri/gbm_dri.c
> +++ b/src/gbm/backends/dri/gbm_dri.c
> @@ -580,6 +580,14 @@ static const struct gbm_dri_visual gbm_dri_visuals_table[] = {
>       GBM_FORMAT_ARGB2101010, __DRI_IMAGE_FORMAT_ARGB2101010,
>       { 0x3ff00000, 0x000ffc00, 0x000003ff, 0xc0000000 },
>     },
> +   {
> +     GBM_FORMAT_XBGR2101010, __DRI_IMAGE_FORMAT_XBGR2101010,
> +     { 0x000003ff, 0x000ffc00, 0x3ff00000, 0x00000000 },
> +   },
> +   {
> +     GBM_FORMAT_ABGR2101010, __DRI_IMAGE_FORMAT_ABGR2101010,
> +     { 0x000003ff, 0x000ffc00, 0x3ff00000, 0xc0000000 },
> +   },
>  };
>  
>  /* The two GBM_BO_FORMAT_[XA]RGB8888 formats alias the GBM_FORMAT_*


More information about the mesa-dev mailing list