mbox series

[0/6] drm/vc4: Allow scaling on cursor planes

Message ID 20181115103721.25601-1-boris.brezillon@bootlin.com (mailing list archive)
Headers show
Series drm/vc4: Allow scaling on cursor planes | expand

Message

Boris Brezillon Nov. 15, 2018, 10:37 a.m. UTC
Hello,

A few months back I tried to add support for the underscan props to the
VC4 driver [1] and this lead to the conclusion that, if we want to use
the HW scaler to implement underscan we should scale all planes by the
same factor, including the cursor plane which currently does not
support scaling.

This series addresses this limitation by allowing a cursor plane to be
scaled. When the scaling factors stay the same, async updates can take
place, when they change, the driver will fallback to sync updates.

I will submit a new version of the underscan patchset as soon as this
rework is accepted/merged.

Regards,

Boris

[1]https://patchwork.kernel.org/patch/10394563/

Boris Brezillon (6):
  drm/vc4: Make vc4_lbm_size() return 0 when vertical scaling is
    disabled
  drm/vc4: Move LBM creation out of vc4_plane_mode_set()
  drm/vc4: Don't check plane state more than once
  drm/vc4: Rework the async update logic
  drm/vc4: Allow scaling on cursor plane
  drm/vc4: Allow YUV formats on cursor planes

 drivers/gpu/drm/vc4/vc4_drv.h   |   6 +
 drivers/gpu/drm/vc4/vc4_plane.c | 223 ++++++++++++++++++++------------
 2 files changed, 148 insertions(+), 81 deletions(-)