[Mesa-dev] [PATCH 2/2] gbm: Add GBM_FORMAT_ARGB1555 support

Marek Olšák maraeo at gmail.com
Fri Oct 5 21:42:18 UTC 2018


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek
On Fri, Oct 5, 2018 at 6:23 AM Michel Dänzer <michel at daenzer.net> wrote:
>
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
> ---
>  src/gbm/backends/dri/gbm_dri.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
> index b3d6ceb15a3..35ec3a1c3a2 100644
> --- a/src/gbm/backends/dri/gbm_dri.c
> +++ b/src/gbm/backends/dri/gbm_dri.c
> @@ -552,6 +552,10 @@ static const struct gbm_dri_visual gbm_dri_visuals_table[] = {
>       GBM_FORMAT_GR88, __DRI_IMAGE_FORMAT_GR88,
>       { 0x000000ff, 0x0000ff00, 0x00000000, 0x00000000 },
>     },
> +   {
> +     GBM_FORMAT_ARGB1555, __DRI_IMAGE_FORMAT_ARGB1555,
> +     { 0x00007c00, 0x000003e0, 0x0000001f, 0x00008000 },
> +   },
>     {
>       GBM_FORMAT_RGB565, __DRI_IMAGE_FORMAT_RGB565,
>       { 0x0000f800, 0x000007e0, 0x0000001f, 0x00000000 },
> --
> 2.19.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list