Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02614872 authored by Nirmal Abraham's avatar Nirmal Abraham Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdp3: Correct RGBX_8888 source format configuration



For a layer with RGBX_8888 format, the DMA source format
was not getting selected correctly due to which wrong bpp
value was used while configuring DMA buffer address. This
caused screen content to be stretched for RGBX_8888 single
layer usecase. Add RGBX_8888 support in get_source_format
function to address this. Add same support for MDP_XRGB_8888
and MDP_BRGA_8888 formats also.

Change-Id: I1ad22908c1f4c5efddc0cbe5406b2215c0b83e47
Signed-off-by: default avatarNirmal Abraham <nabrah@codeaurora.org>
parent e02d9991
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -651,8 +651,11 @@ int mdp3_ctrl_get_source_format(u32 imgType)
	case MDP_RGB_888:
		format = MDP3_DMA_IBUF_FORMAT_RGB888;
		break;
	case MDP_XRGB_8888:
	case MDP_ARGB_8888:
	case MDP_RGBA_8888:
	case MDP_BGRA_8888:
	case MDP_RGBX_8888:
		format = MDP3_DMA_IBUF_FORMAT_XRGB8888;
		break;
	default: