This change enables XR24 format to be displayed as an overlay on top of the primary plane.
Unified · Split
| @@ -266,7 +266,7 @@ static void mtk_ovl_layer_config(struct mtk_ddp_comp *comp, unsigned int idx, · 265 unmodified lines | |||
| 266 | } | 266 | } |
| 267 | 267 | ||
| 268 | con = ovl_fmt_convert(ovl, fmt); | 268 | con = ovl_fmt_convert(ovl, fmt); |
| 269 | if (idx != 0) | 269 | if (state->base.fb->format->has_alpha) |
| 270 | con |= OVL_CON_AEN | OVL_CON_ALPHA; | 270 | con |= OVL_CON_AEN | OVL_CON_ALPHA; |
| 271 | 271 | ||
| 272 | if (pending->rotation & DRM_MODE_REFLECT_Y) { | 272 | if (pending->rotation & DRM_MODE_REFLECT_Y) { |