summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJin Li <jinl@codeaurora.org>2016-09-12 15:19:34 -0400
committerGerrit - the friendly Code Review server <code-review@localhost>2017-04-06 01:54:18 -0700
commit280560eaacd0a1c79c9b39d275db4e816e11576b (patch)
tree341f3fad92e2faee150bc4680135c8328ec688be
parent0fe164a0e3a98a452c844a12397f7fcee7074016 (diff)
drm/sde: update plane pitches when it's different than fb
Kernel DRM SDE driver doesn't know the alignment requirement from user space, so it needs to be updated when pitches value when they are different than fb value. Change-Id: I392e247330980fcac87b6fbe49a289e0fc473d85 Signed-off-by: Jin Li <jinl@codeaurora.org> Signed-off-by: Yunyun Cao <yunyunc@codeaurora.org>
-rw-r--r--drivers/gpu/drm/msm/sde/sde_formats.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/msm/sde/sde_formats.c b/drivers/gpu/drm/msm/sde/sde_formats.c
index dc7827872276..6f4d46ca6211 100644
--- a/drivers/gpu/drm/msm/sde/sde_formats.c
+++ b/drivers/gpu/drm/msm/sde/sde_formats.c
@@ -718,12 +718,12 @@ static int _sde_format_populate_addrs_linear(
{
unsigned int i;
- /* Can now check the pitches given vs pitches expected */
+ /* Update layout pitches from fb */
for (i = 0; i < layout->num_planes; ++i) {
if (layout->plane_pitch[i] != fb->pitches[i]) {
- DRM_ERROR("plane %u expected pitch %u, fb %u\n",
+ SDE_DEBUG("plane %u expected pitch %u, fb %u\n",
i, layout->plane_pitch[i], fb->pitches[i]);
- return -EINVAL;
+ layout->plane_pitch[i] = fb->pitches[i];
}
}