OSDN Git Service

drm/vc4: Fix pitch setup for T-format scanout.
authorEric Anholt <eric@anholt.net>
Wed, 27 Sep 2017 19:32:09 +0000 (12:32 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 13 Oct 2017 23:40:24 +0000 (16:40 -0700)
commit652badb9458b41a24b156146a73a5bfbc4356f29
tree6c983c8af0c590b2939de645c9eb2060debb9b39
parentd409eeafa9ba1c0f2eb75a2619fc787808a545e4
drm/vc4: Fix pitch setup for T-format scanout.

The documentation said to use src_w here, and I didn't consider that
we actually needed to be using pitch somewhere in our setup.  Fixes
scanout on my DSI panel when X11 does initial setup with 1920x1080
HDMI and 800x480 DSI both at 0,0 of the same framebuffer.

v2: Add some comments requested by Boris

Signed-off-by: Eric Anholt <eric@anholt.net>
Fixes: 98830d91da08 ("drm/vc4: Add T-format scanout support.")
Link: https://patchwork.freedesktop.org/patch/msgid/20170927193209.11870-1-eric@anholt.net
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/gpu/drm/vc4/vc4_plane.c