]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/mediatek: plane: Use FB's format's cpp to compute x offset
authorDaniel Kurtz <djkurtz@chromium.org>
Thu, 4 Aug 2016 02:59:56 +0000 (10:59 +0800)
committerSean Paul <seanpaul@chromium.org>
Mon, 8 Aug 2016 18:20:02 +0000 (14:20 -0400)
commit9c350d834f08407d8470b3c09bbc34e42d261362
tree3183901d1ecb03fea43b755761893ea5dc8d4af2
parentf176cbf6f9407d363e72ba9bc2f7cd40853b4388
drm/mediatek: plane: Use FB's format's cpp to compute x offset

Use the framebuffer's format to compute its cpp, and use it when
calculating the address shift value.

Signed-off-by: Bibby Hsieh <bibby.hsieh@mediatek.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1470279597-60453-7-git-send-email-bibby.hsieh@mediatek.com
drivers/gpu/drm/mediatek/mtk_drm_plane.c