[PATCH v14 38/41] compositor-drm: Relax plane restrictions for atomic

Daniel Stone daniel at fooishbar.org
Tue Jul 10 07:56:43 UTC 2018


Hi,

On Mon, 29 Jan 2018 at 13:59, Pekka Paalanen <ppaalanen at gmail.com> wrote:
> On Wed, 20 Dec 2017 12:26:55 +0000 Daniel Stone <daniels at collabora.com> wrote:
> > @@ -1818,12 +1819,10 @@ drm_output_prepare_scanout_view(struct drm_output_state *output_state,
> >       drm_plane_state_coords_for_view(state, ev);
> >
> >       /* The legacy API does not let us perform cropping or scaling. */
> > -     if (state->src_x != 0 || state->src_y != 0 ||
> > -         state->src_w != state->dest_w << 16 ||
> > -         state->src_h != state->dest_h << 16 ||
> > -         state->dest_x != 0 || state->dest_y != 0 ||
> > -         state->dest_w != (unsigned) output->base.current_mode->width ||
> > -         state->dest_h != (unsigned) output->base.current_mode->height)
> > +     if (!b->atomic_modeset &&
> > +         (state->src_x != 0 || state->src_y != 0 ||
> > +          state->src_w != state->dest_w << 16 ||
> > +          state->src_h != state->dest_h << 16))
>
> Where did the mode size checks go?

These are retained in v17.

Cheers,
Daniel


More information about the wayland-devel mailing list