[Mesa-dev] [PATCH] i965: add support for RGBA dma_buf imports.
Gwenole Beauchesne
gb.devel at gmail.com
Mon Sep 15 23:52:02 PDT 2014
Hi,
2014-09-09 10:56 GMT+02:00 Gwenole Beauchesne <gb.devel at gmail.com>:
> This allows for importing foreign buffers in RGB32 native endian
> byte order, i.e. DRM_FORMAT_XBGR8888, and DRM_FORMAT_ABGR8888.
>
> Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne at intel.com>
> ---
> src/mesa/drivers/dri/i965/intel_screen.c | 6 ++++++
> 1 file changed, 6 insertions(+)
Ping. This looks trivial enough, unless I missed anything. :)
Besides, I would like this to land into 10.3, if this is not too late,
or the next 10.3.x.
Thanks,
Gwenole.
> diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c
> index 9e743ee..db7feb2 100644
> --- a/src/mesa/drivers/dri/i965/intel_screen.c
> +++ b/src/mesa/drivers/dri/i965/intel_screen.c
> @@ -217,12 +217,18 @@ static struct intel_image_format intel_image_formats[] = {
> { __DRI_IMAGE_FOURCC_ARGB8888, __DRI_IMAGE_COMPONENTS_RGBA, 1,
> { { 0, 0, 0, __DRI_IMAGE_FORMAT_ARGB8888, 4 } } },
>
> + { __DRI_IMAGE_FOURCC_ABGR8888, __DRI_IMAGE_COMPONENTS_RGBA, 1,
> + { { 0, 0, 0, __DRI_IMAGE_FORMAT_ABGR8888, 4 } } },
> +
> { __DRI_IMAGE_FOURCC_SARGB8888, __DRI_IMAGE_COMPONENTS_RGBA, 1,
> { { 0, 0, 0, __DRI_IMAGE_FORMAT_SARGB8, 4 } } },
>
> { __DRI_IMAGE_FOURCC_XRGB8888, __DRI_IMAGE_COMPONENTS_RGB, 1,
> { { 0, 0, 0, __DRI_IMAGE_FORMAT_XRGB8888, 4 }, } },
>
> + { __DRI_IMAGE_FOURCC_XBGR8888, __DRI_IMAGE_COMPONENTS_RGB, 1,
> + { { 0, 0, 0, __DRI_IMAGE_FORMAT_XBGR8888, 4 }, } },
> +
> { __DRI_IMAGE_FOURCC_RGB565, __DRI_IMAGE_COMPONENTS_RGB, 1,
> { { 0, 0, 0, __DRI_IMAGE_FORMAT_RGB565, 2 } } },
>
> --
> 1.7.9.5
>
--
Gwenole Beauchesne
Intel Corporation SAS / 2 rue de Paris, 92196 Meudon Cedex, France
Registration Number (RCS): Nanterre B 302 456 199
More information about the mesa-dev
mailing list