summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/meson/meson_plane.c
diff options
context:
space:
mode:
authorNeil Armstrong <narmstrong@baylibre.com>2019-10-21 11:15:03 +0200
committerNeil Armstrong <narmstrong@baylibre.com>2019-12-10 10:08:37 +0100
commitce7cb472108c37884c6084b317ceb07592906133 (patch)
tree4f857ab75c03b4ec903bd9f8fac35f8b084cd2ed /drivers/gpu/drm/meson/meson_plane.c
parent7704ddc6a59077088c8b2a43550b7b5be1877385 (diff)
downloadlinux-ce7cb472108c37884c6084b317ceb07592906133.tar.bz2
drm/meson: store the framebuffer width for plane commit
Also store the framebuffer width in the private common struct to be used by the AFBC decoder module driver when committing the AFBC plane. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Reviewed-by: Kevin Hilman <khilman@baylibre.com> Link: https://patchwork.freedesktop.org/patch/msgid/20191021091509.3864-4-narmstrong@baylibre.com
Diffstat (limited to 'drivers/gpu/drm/meson/meson_plane.c')
-rw-r--r--drivers/gpu/drm/meson/meson_plane.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/meson/meson_plane.c b/drivers/gpu/drm/meson/meson_plane.c
index ed543227b00d..5e798c276037 100644
--- a/drivers/gpu/drm/meson/meson_plane.c
+++ b/drivers/gpu/drm/meson/meson_plane.c
@@ -305,6 +305,7 @@ static void meson_plane_atomic_update(struct drm_plane *plane,
priv->viu.osd1_addr = gem->paddr;
priv->viu.osd1_stride = fb->pitches[0];
priv->viu.osd1_height = fb->height;
+ priv->viu.osd1_width = fb->width;
if (!meson_plane->enabled) {
/* Reset OSD1 before enabling it on GXL+ SoCs */