History

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.

Mark Yacoub committed 6 years ago

Commit b6b1bb91 parent 039cf361 file · +1 −1Browse files

Unified · Split

drivers/gpu/drm/mediatek/mtk_disp_ovl.c+1−1
@@ -266,7 +266,7 @@ static void mtk_ovl_layer_config(struct mtk_ddp_comp *comp, unsigned int idx, · 265 unmodified lines
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) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t