Commits on Source (8)
-
Add a boolean member named need_hole in weston_paint_node, which is used to indicate whether the renderer should draw through hole on primary plane when rendering. For paint node whose view are placed on the underlay plane, this member should be set to true, otherwise it is false. Signed-off-by: Chao Guo <chao.guo@nxp.com>
e1594110 -
When users need to place view on underlay HW plane, they need to set the output format to alpha format. This will cause gl-renderer to output a transparent image, allowing through holes to work. Signed-off-by: Chao Guo <chao.guo@nxp.com>
0000c491 -
Signed-off-by: Chao Guo <chao.guo@nxp.com>
99eff127 -
Signed-off-by: Chao Guo <chao.guo@nxp.com>
827e2276 -
Add 'is_underlay' in drm_plane, which is used to indicate whether the HW plane is below the primary plane at the Z position. Add 'has_underlay' in drm_backend, which is used indicate that there are underlay planes in drm backend. Signed-off-by: Chao Guo <chao.guo@nxp.com> Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
a7bfecd5 -
On underlay platforms, the HW planes can be placed below the primary plane, so some views that intersect with the renderer region can try to be placed on the underlay planes. In order to assign these views to underlay planes, the improvement is as follows: 1. Add current_lowest_zpos_overlay. Record the current lowest zpos of the overlay planes. 2. Add current_lowest_zpos_underlay. Record the current lowest zpos of the underlay plane. It is initialized to scanout_plane::zpos. 3. Add need_underlay to indicate whether to find underlay plane for view. 4. The views that intersect with the renderer region and underlay views should be assigned to underlay planes. Signed-off-by: Chao Guo <chao.guo@nxp.com>
1065d234 -
1. remove the restriction on underlay planes when finding plane. Because the view on the underlay plane can be displayed by drawing a through hole on primary plane, so we can try underlay planes. 2. Add step to check if the view is assigned on underlay plane, When it is successfully placed on a HW plane. Because we need to set the underlay view pnode->need_hole to true so that gl-renderer will draw a hole for it when repainting. 3. Avoid assigning views to underlay HW planes when the backend format is opaque and avoid assigning views with alpha to underlay HW planes. 4. when overlay plane is not enough, try to find underlay plane on platform with both overlay and underlay plane. Signed-off-by: Chao Guo <chao.guo@nxp.com> Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
5ce48603 -
Marius Vlad authored
We do inform users when this is not happening, add also a note about that in the man page. Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
3bb9b664