* [hwc PATCH v1] drm_hwcomposer: reorder source layers according to zorder
@ 2017-09-21 23:53 Adrian Salido
2017-09-22 0:02 ` Zach Reizner
0 siblings, 1 reply; 3+ messages in thread
From: Adrian Salido @ 2017-09-21 23:53 UTC (permalink / raw)
To: dri-devel; +Cc: 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 <salidoa@google.com>
---
drmdisplaycomposition.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drmdisplaycomposition.cpp b/drmdisplaycomposition.cpp
index 293160bfd012..0f8084b39706 100644
--- a/drmdisplaycomposition.cpp
+++ b/drmdisplaycomposition.cpp
@@ -379,6 +379,9 @@ int DrmDisplayComposition::Plan(SquashState *squash,
if (!i.plane())
continue;
+ // make sure that source layers are ordered based on zorder
+ std::sort(i.source_layers().begin(), i.source_layers().end());
+
std::vector<DrmPlane *> *container;
if (i.plane()->type() == DRM_PLANE_TYPE_PRIMARY)
container = primary_planes;
--
2.14.1.821.g8fa685d3b7-goog
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [hwc PATCH v1] drm_hwcomposer: reorder source layers according to zorder
2017-09-21 23:53 [hwc PATCH v1] drm_hwcomposer: reorder source layers according to zorder Adrian Salido
@ 2017-09-22 0:02 ` Zach Reizner
2017-09-22 16:25 ` Sean Paul
0 siblings, 1 reply; 3+ messages in thread
From: Zach Reizner @ 2017-09-22 0:02 UTC (permalink / raw)
To: Adrian Salido; +Cc: dri-devel@lists.freedesktop.org
On Thu, Sep 21, 2017 at 4:53 PM, Adrian Salido <salidoa@google.com> wrote:
> 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 <salidoa@google.com>
Reviewed-by: Zach Reizner <zachr@chromium.org>
> ---
> drmdisplaycomposition.cpp | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drmdisplaycomposition.cpp b/drmdisplaycomposition.cpp
> index 293160bfd012..0f8084b39706 100644
> --- a/drmdisplaycomposition.cpp
> +++ b/drmdisplaycomposition.cpp
> @@ -379,6 +379,9 @@ int DrmDisplayComposition::Plan(SquashState *squash,
> if (!i.plane())
> continue;
>
> + // make sure that source layers are ordered based on zorder
> + std::sort(i.source_layers().begin(), i.source_layers().end());
> +
> std::vector<DrmPlane *> *container;
> if (i.plane()->type() == DRM_PLANE_TYPE_PRIMARY)
> container = primary_planes;
> --
> 2.14.1.821.g8fa685d3b7-goog
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [hwc PATCH v1] drm_hwcomposer: reorder source layers according to zorder
2017-09-22 0:02 ` Zach Reizner
@ 2017-09-22 16:25 ` Sean Paul
0 siblings, 0 replies; 3+ messages in thread
From: Sean Paul @ 2017-09-22 16:25 UTC (permalink / raw)
To: Zach Reizner; +Cc: dri-devel@lists.freedesktop.org, Adrian Salido
On Thu, Sep 21, 2017 at 05:02:21PM -0700, Zach Reizner wrote:
> On Thu, Sep 21, 2017 at 4:53 PM, Adrian Salido <salidoa@google.com> wrote:
> > 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 <salidoa@google.com>
> Reviewed-by: Zach Reizner <zachr@chromium.org>
Applied.
Sean
> > ---
> > drmdisplaycomposition.cpp | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/drmdisplaycomposition.cpp b/drmdisplaycomposition.cpp
> > index 293160bfd012..0f8084b39706 100644
> > --- a/drmdisplaycomposition.cpp
> > +++ b/drmdisplaycomposition.cpp
> > @@ -379,6 +379,9 @@ int DrmDisplayComposition::Plan(SquashState *squash,
> > if (!i.plane())
> > continue;
> >
> > + // make sure that source layers are ordered based on zorder
> > + std::sort(i.source_layers().begin(), i.source_layers().end());
> > +
> > std::vector<DrmPlane *> *container;
> > if (i.plane()->type() == DRM_PLANE_TYPE_PRIMARY)
> > container = primary_planes;
> > --
> > 2.14.1.821.g8fa685d3b7-goog
> >
> > _______________________________________________
> > dri-devel mailing list
> > dri-devel@lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/dri-devel
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
--
Sean Paul, Software Engineer, Google / Chromium OS
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-09-22 16:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-21 23:53 [hwc PATCH v1] drm_hwcomposer: reorder source layers according to zorder Adrian Salido
2017-09-22 0:02 ` Zach Reizner
2017-09-22 16:25 ` Sean Paul
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.