[Mesa-dev] [PATCH 04/10] loader/dri3: Add XRGB2101010 and ARGB2101010 support.

Tapani Pälli tapani.palli at intel.com
Wed Sep 6 06:33:31 UTC 2017


there are similar helpers between mesa formats and dri ones in 
dri_util.c but I can see that it had already these covered;

Reviewed-by: Tapani Pälli <tapani.palli at intel.com>

On 09/05/2017 08:01 AM, Mario Kleiner wrote:
> To allow DRI3/Present buffer sharing for 10 bpc buffers.
> 
> Signed-off-by: Mario Kleiner <mario.kleiner.de at gmail.com>
> ---
>   src/loader/loader_dri3_helper.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/src/loader/loader_dri3_helper.c b/src/loader/loader_dri3_helper.c
> index e3120f5..e3d819f 100644
> --- a/src/loader/loader_dri3_helper.c
> +++ b/src/loader/loader_dri3_helper.c
> @@ -980,6 +980,8 @@ image_format_to_fourcc(int format)
>      case __DRI_IMAGE_FORMAT_ARGB8888: return __DRI_IMAGE_FOURCC_ARGB8888;
>      case __DRI_IMAGE_FORMAT_ABGR8888: return __DRI_IMAGE_FOURCC_ABGR8888;
>      case __DRI_IMAGE_FORMAT_XBGR8888: return __DRI_IMAGE_FOURCC_XBGR8888;
> +   case __DRI_IMAGE_FORMAT_XRGB2101010: return __DRI_IMAGE_FOURCC_XRGB2101010;
> +   case __DRI_IMAGE_FORMAT_ARGB2101010: return __DRI_IMAGE_FOURCC_ARGB2101010;
>      }
>      return 0;
>   }
> 


More information about the mesa-dev mailing list