From: Neil Armstrong <narmstrong@baylibre•com>
To: dri-devel@lists•freedesktop.org
Cc: Neil Armstrong <narmstrong@baylibre•com>,
khilman@baylibre•com, linux-amlogic@lists•infradead.org,
ayan.halder@arm•com, Brian.Starkey@arm•com,
linux-arm-kernel@lists•infradead.org
Subject: [PATCH v2 2/7] drm/meson: store the framebuffer width for plane commit
Date: Mon, 14 Oct 2019 14:38:21 +0200 [thread overview]
Message-ID: <20191014123826.27629-3-narmstrong@baylibre.com> (raw)
In-Reply-To: <20191014123826.27629-1-narmstrong@baylibre.com>
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>
---
drivers/gpu/drm/meson/meson_drv.h | 1 +
drivers/gpu/drm/meson/meson_plane.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/meson/meson_drv.h b/drivers/gpu/drm/meson/meson_drv.h
index 820d07bdd42a..3287282450a9 100644
--- a/drivers/gpu/drm/meson/meson_drv.h
+++ b/drivers/gpu/drm/meson/meson_drv.h
@@ -52,6 +52,7 @@ struct meson_drm {
uint32_t osd1_addr;
uint32_t osd1_stride;
uint32_t osd1_height;
+ uint32_t osd1_width;
uint32_t osd_sc_ctrl0;
uint32_t osd_sc_i_wh_m1;
uint32_t osd_sc_o_h_start_end;
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 */
--
2.22.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists•infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2019-10-14 12:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-14 12:38 [PATCH v2 0/7] drm/meson: add AFBC support Neil Armstrong
2019-10-14 12:38 ` [PATCH v2 1/7] drm/meson: add AFBC decoder registers for GXM and G12A Neil Armstrong
2019-10-14 12:38 ` Neil Armstrong [this message]
2019-10-14 12:38 ` [PATCH v2 3/7] drm/meson: Add AFBCD module driver Neil Armstrong
2019-10-14 12:38 ` [PATCH v2 4/7] drm/meson: plane: add support for AFBC mode for OSD1 plane Neil Armstrong
2019-10-14 12:38 ` [PATCH v2 5/7] drm/meson: viu: add AFBC modules routing functions Neil Armstrong
2019-10-14 12:38 ` [PATCH v2 6/7] drm/meson: hold 32 lines after vsync to give time for AFBC start Neil Armstrong
2019-10-14 12:38 ` [PATCH v2 7/7] drm/meson: crtc: add OSD1 plane AFBC commit Neil Armstrong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191014123826.27629-3-narmstrong@baylibre.com \
--to=narmstrong@baylibre$(echo .)com \
--cc=Brian.Starkey@arm$(echo .)com \
--cc=ayan.halder@arm$(echo .)com \
--cc=dri-devel@lists$(echo .)freedesktop.org \
--cc=khilman@baylibre$(echo .)com \
--cc=linux-amlogic@lists$(echo .)infradead.org \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox