[PATCH v16 07/23] compositor-drm: Use plane_state_coords_for_view for scanout
Daniel Stone
daniel at fooishbar.org
Fri Jul 6 12:53:02 UTC 2018
Hi Pekka,
On Fri, 6 Jul 2018 at 13:48, Pekka Paalanen <ppaalanen at gmail.com> wrote:
>
> On Thu, 5 Jul 2018 18:16:34 +0100
> Daniel Stone <daniels at collabora.com> wrote:
> > + /* Check the view spans exactly the output size, calculated in the
> > + * logical co-ordinate space. */
> > + extents = pixman_region32_extents(&ev->transform.boundingbox);
> > + if (extents->x1 != output->base.x ||
> > + extents->y1 != output->base.y ||
> > + extents->x2 != output->base.x + output->base.width ||
> > + extents->y2 != output->base.y + output->base.height)
> > return NULL;
>
> Isn't this check a sub-set of the dest and src rectangles check below?
> Is this needed for something? Just an early exit?
Yep, it allows us to skip trying to import a FB or set up plane state
if we know the view can never be compatible. As you say, the below
check is far more comprehensive, but this is enough to skip obviously
pointless work.
Cheers,
Daniel
More information about the wayland-devel
mailing list