aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2016-09-29 23:00:36 -0400
committerDave Airlie <airlied@redhat.com>2016-09-29 23:00:36 -0400
commitb2d7e08903e62b9f504fe6a954425b737aa9ff96 (patch)
tree20dde1ed527527304d32f33d76af396bd2b67485
parent011a9b9d50c952de93a984e971d1865946641577 (diff)
parent08ee01789eebf433c27e8b3eecc3ddbb5f7c4d51 (diff)
Merge tag 'drm/tegra/for-4.9-rc1' of git://anongit.freedesktop.org/tegra/linux into drm-next
drm/tegra: Changes for v4.9-rc1 One bugfix that avoids overwriting the Y plane base address when displaying buffers with one of the YUV/YVU formats. * tag 'drm/tegra/for-4.9-rc1' of git://anongit.freedesktop.org/tegra/linux: drm/tegra: Fix window[0] base address corruption
-rw-r--r--drivers/gpu/drm/tegra/dc.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c
index 3de7ce33d3d4..4010d69cbd08 100644
--- a/drivers/gpu/drm/tegra/dc.c
+++ b/drivers/gpu/drm/tegra/dc.c
@@ -580,7 +580,14 @@ static void tegra_plane_atomic_update(struct drm_plane *plane,
580 struct tegra_bo *bo = tegra_fb_get_plane(fb, i); 580 struct tegra_bo *bo = tegra_fb_get_plane(fb, i);
581 581
582 window.base[i] = bo->paddr + fb->offsets[i]; 582 window.base[i] = bo->paddr + fb->offsets[i];
583 window.stride[i] = fb->pitches[i]; 583
584 /*
585 * Tegra uses a shared stride for UV planes. Framebuffers are
586 * already checked for this in the tegra_plane_atomic_check()
587 * function, so it's safe to ignore the V-plane pitch here.
588 */
589 if (i < 2)
590 window.stride[i] = fb->pitches[i];
584 } 591 }
585 592
586 tegra_dc_setup_window(dc, p->index, &window); 593 tegra_dc_setup_window(dc, p->index, &window);