Skip to content

Commit b6b1bb9

Browse files
Mark Yacoubckhu-mediatek
authored andcommitted
drm/mediatek: Turn off Alpha bit when plane format has no alpha
This change enables XR24 format to be displayed as an overlay on top of the primary plane. Suggested-by: Sean Paul <[email protected]> To: CK Hu <[email protected]> To: [email protected] Cc: Daniele Castagna <[email protected]> Cc: Philipp Zabel <[email protected]> Cc: David Airlie <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: Matthias Brugger <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Mark Yacoub <[email protected]> Signed-off-by: CK Hu <[email protected]>
1 parent 039cf36 commit b6b1bb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/mediatek/mtk_disp_ovl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ static void mtk_ovl_layer_config(struct mtk_ddp_comp *comp, unsigned int idx,
266266
}
267267

268268
con = ovl_fmt_convert(ovl, fmt);
269-
if (idx != 0)
269+
if (state->base.fb->format->has_alpha)
270270
con |= OVL_CON_AEN | OVL_CON_ALPHA;
271271

272272
if (pending->rotation & DRM_MODE_REFLECT_Y) {

0 commit comments

Comments
 (0)