[Mesa-dev] [PATCH 06/22] i965/screen: Add XRGB2101010 and ARGB2101010 support for DRI3.

Tapani Pälli tapani.palli at intel.com
Fri Dec 1 11:28:51 UTC 2017


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

On 29.11.2017 06:20, Mario Kleiner wrote:
> Allow DRI3/Present buffer sharing for 10 bpc buffers.
> Otherwise composited desktops under DRI3 will only display
> black client areas for redirected windows.
> 
> Signed-off-by: Mario Kleiner <mario.kleiner.de at gmail.com>
> ---
>   src/mesa/drivers/dri/i965/intel_screen.c | 6 ++++++
>   1 file changed, 6 insertions(+)
> 
> diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c
> index 39efc1c..455a13c 100644
> --- a/src/mesa/drivers/dri/i965/intel_screen.c
> +++ b/src/mesa/drivers/dri/i965/intel_screen.c
> @@ -181,6 +181,12 @@ static const struct __DRI2flushExtensionRec intelFlushExtension = {
>   };
>   
>   static const struct intel_image_format intel_image_formats[] = {
> +   { __DRI_IMAGE_FOURCC_ARGB2101010, __DRI_IMAGE_COMPONENTS_RGBA, 1,
> +     { { 0, 0, 0, __DRI_IMAGE_FORMAT_ARGB2101010, 4 } } },
> +
> +   { __DRI_IMAGE_FOURCC_XRGB2101010, __DRI_IMAGE_COMPONENTS_RGB, 1,
> +     { { 0, 0, 0, __DRI_IMAGE_FORMAT_XRGB2101010, 4 } } },
> +
>      { __DRI_IMAGE_FOURCC_ARGB8888, __DRI_IMAGE_COMPONENTS_RGBA, 1,
>        { { 0, 0, 0, __DRI_IMAGE_FORMAT_ARGB8888, 4 } } },
>   
> 


More information about the mesa-dev mailing list