drm/msm/mdp: Add support for more RGBX formats
diff mbox

Message ID 1460417031-9859-1-git-send-email-robh@kernel.org
State New
Headers show

Commit Message

Rob Herring April 11, 2016, 11:23 p.m. UTC
Android needs XBGR8888 format. Add all the missing 32-bpp formats
without alpha for completeness.

Cc: Archit Taneja <architt@codeaurora.org>
Cc: Rob Clark <robdclark@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
---
 drivers/gpu/drm/msm/mdp/mdp_format.c | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Archit Taneja April 12, 2016, 1:08 p.m. UTC | #1
On 04/12/2016 04:53 AM, Rob Herring wrote:
> Android needs XBGR8888 format. Add all the missing 32-bpp formats
> without alpha for completeness.
>

Reviewed-by: Archit Taneja  <architt@codeaurora.org>

> Cc: Archit Taneja <architt@codeaurora.org>
> Cc: Rob Clark <robdclark@gmail.com>
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>   drivers/gpu/drm/msm/mdp/mdp_format.c | 6 ++++++
>   1 file changed, 6 insertions(+)
>
> diff --git a/drivers/gpu/drm/msm/mdp/mdp_format.c b/drivers/gpu/drm/msm/mdp/mdp_format.c
> index 1c2caff..b4a8aa4 100644
> --- a/drivers/gpu/drm/msm/mdp/mdp_format.c
> +++ b/drivers/gpu/drm/msm/mdp/mdp_format.c
> @@ -105,6 +105,12 @@ static const struct mdp_format formats[] = {
>   			MDP_PLANE_INTERLEAVED, CHROMA_FULL, false),
>   	FMT(XRGB8888, 8, 8, 8, 8,  1, 0, 2, 3,  false,  true,  4,  4,
>   			MDP_PLANE_INTERLEAVED, CHROMA_FULL, false),
> +	FMT(XBGR8888, 8, 8, 8, 8,  2, 0, 1, 3,  false,   true,  4,  4,
> +			MDP_PLANE_INTERLEAVED, CHROMA_FULL, false),
> +	FMT(RGBX8888, 8, 8, 8, 8,  3, 1, 0, 2,  false,   true,  4,  4,
> +			MDP_PLANE_INTERLEAVED, CHROMA_FULL, false),
> +	FMT(BGRX8888, 8, 8, 8, 8,  3, 2, 0, 1,  false,   true,  4,  4,
> +			MDP_PLANE_INTERLEAVED, CHROMA_FULL, false),
>   	FMT(RGB888,   0, 8, 8, 8,  1, 0, 2, 0,  false,  true,  3,  3,
>   			MDP_PLANE_INTERLEAVED, CHROMA_FULL, false),
>   	FMT(BGR888,   0, 8, 8, 8,  2, 0, 1, 0,  false,  true,  3,  3,
>

Patch
diff mbox

diff --git a/drivers/gpu/drm/msm/mdp/mdp_format.c b/drivers/gpu/drm/msm/mdp/mdp_format.c
index 1c2caff..b4a8aa4 100644
--- a/drivers/gpu/drm/msm/mdp/mdp_format.c
+++ b/drivers/gpu/drm/msm/mdp/mdp_format.c
@@ -105,6 +105,12 @@  static const struct mdp_format formats[] = {
 			MDP_PLANE_INTERLEAVED, CHROMA_FULL, false),
 	FMT(XRGB8888, 8, 8, 8, 8,  1, 0, 2, 3,  false,  true,  4,  4,
 			MDP_PLANE_INTERLEAVED, CHROMA_FULL, false),
+	FMT(XBGR8888, 8, 8, 8, 8,  2, 0, 1, 3,  false,   true,  4,  4,
+			MDP_PLANE_INTERLEAVED, CHROMA_FULL, false),
+	FMT(RGBX8888, 8, 8, 8, 8,  3, 1, 0, 2,  false,   true,  4,  4,
+			MDP_PLANE_INTERLEAVED, CHROMA_FULL, false),
+	FMT(BGRX8888, 8, 8, 8, 8,  3, 2, 0, 1,  false,   true,  4,  4,
+			MDP_PLANE_INTERLEAVED, CHROMA_FULL, false),
 	FMT(RGB888,   0, 8, 8, 8,  1, 0, 2, 0,  false,  true,  3,  3,
 			MDP_PLANE_INTERLEAVED, CHROMA_FULL, false),
 	FMT(BGR888,   0, 8, 8, 8,  2, 0, 1, 0,  false,  true,  3,  3,