[PATCH hwc] drm_hwcomposer: make sure primary plane is allocated for squash

2017-10-02 Thread Adrian Salido
There are instances where the primary plane may have been disabled, look through disabled planes as well to find primary plane to use for squash. Signed-off-by: Adrian Salido --- drmdisplaycompositor.cpp | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a

[hwc PATCH v1] drm_hwcomposer: reorder source layers according to zorder

2017-09-21 Thread Adrian Salido
Precomp layers may be added to the back at different points which may cause elements to be unsorted. Make sure that these are sorted after provisioning planes to ensure right composition based on zorder. Signed-off-by: Adrian Salido --- drmdisplaycomposition.cpp | 3 +++ 1 file changed, 3