[Mesa-dev] [PATCH 03/10] dri: Add 10 bpc formats as available formats.
Tapani Pälli
tapani.palli at intel.com
Wed Sep 6 06:30:06 UTC 2017
verified values against drm_fourcc.h,
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
On 09/05/2017 08:01 AM, Mario Kleiner wrote:
> Used to support ARGB2101010 and XRGB2101010
> winsys framebuffers / drawables, but added
> other 10 bpc fourcc's as well for consistency
> with definitions in wayland_drm.h, gbm.h, and
> drm_fourcc.h.
>
> Signed-off-by: Mario Kleiner <mario.kleiner.de at gmail.com>
> ---
> include/GL/internal/dri_interface.h | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
> index 1c91bde..195c2a7 100644
> --- a/include/GL/internal/dri_interface.h
> +++ b/include/GL/internal/dri_interface.h
> @@ -1246,6 +1246,14 @@ struct __DRIdri2ExtensionRec {
> #define __DRI_IMAGE_FOURCC_ABGR8888 0x34324241
> #define __DRI_IMAGE_FOURCC_XBGR8888 0x34324258
> #define __DRI_IMAGE_FOURCC_SARGB8888 0x83324258
> +#define __DRI_IMAGE_FOURCC_ARGB2101010 0x30335241
> +#define __DRI_IMAGE_FOURCC_XRGB2101010 0x30335258
> +#define __DRI_IMAGE_FOURCC_ABGR2101010 0x30334241
> +#define __DRI_IMAGE_FOURCC_XBGR2101010 0x30334258
> +#define __DRI_IMAGE_FOURCC_RGBA1010102 0x30334152
> +#define __DRI_IMAGE_FOURCC_RGBX1010102 0x30335852
> +#define __DRI_IMAGE_FOURCC_BGRA1010102 0x30334142
> +#define __DRI_IMAGE_FOURCC_BGRX1010102 0x30335842
> #define __DRI_IMAGE_FOURCC_YUV410 0x39565559
> #define __DRI_IMAGE_FOURCC_YUV411 0x31315559
> #define __DRI_IMAGE_FOURCC_YUV420 0x32315559
>
More information about the mesa-dev
mailing list