aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/omap_fb.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2017-05-16 05:48:58 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-06-02 04:08:15 -0400
commit16f9ede51ff9b37e04fb64dad8b4099c2814c436 (patch)
tree8d87277e9ba7da55fa6aec38f0c4ba36b5371e67 /drivers/gpu/drm/omapdrm/omap_fb.c
parent4eebb80e2465be3f5ec471547c455494c050ebd1 (diff)
drm/omap: pass rotation to dispc
The omapdrm driver has not passed the rotation value to the dispc driver. This doesn't affect RGB formats, but YUV formats don't work without dispc knowing the orientation. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_fb.c')
-rw-r--r--drivers/gpu/drm/omapdrm/omap_fb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_fb.c b/drivers/gpu/drm/omapdrm/omap_fb.c
index 4093e0e38a90..c7a805702b54 100644
--- a/drivers/gpu/drm/omapdrm/omap_fb.c
+++ b/drivers/gpu/drm/omapdrm/omap_fb.c
@@ -193,6 +193,7 @@ void omap_framebuffer_update_scanout(struct drm_framebuffer *fb,
193 omap_gem_rotated_dma_addr(plane->bo, orient, x, y, 193 omap_gem_rotated_dma_addr(plane->bo, orient, x, y,
194 &info->paddr); 194 &info->paddr);
195 info->rotation_type = OMAP_DSS_ROT_TILER; 195 info->rotation_type = OMAP_DSS_ROT_TILER;
196 info->rotation = state->rotation ?: DRM_MODE_ROTATE_0;
196 info->screen_width = omap_gem_tiled_stride(plane->bo, orient); 197 info->screen_width = omap_gem_tiled_stride(plane->bo, orient);
197 } else { 198 } else {
198 switch (state->rotation & DRM_MODE_ROTATE_MASK) { 199 switch (state->rotation & DRM_MODE_ROTATE_MASK) {
@@ -210,6 +211,7 @@ void omap_framebuffer_update_scanout(struct drm_framebuffer *fb,
210 211
211 info->paddr = get_linear_addr(plane, format, 0, x, y); 212 info->paddr = get_linear_addr(plane, format, 0, x, y);
212 info->rotation_type = OMAP_DSS_ROT_NONE; 213 info->rotation_type = OMAP_DSS_ROT_NONE;
214 info->rotation = DRM_MODE_ROTATE_0;
213 info->screen_width = plane->pitch; 215 info->screen_width = plane->pitch;
214 } 216 }
215 217