]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit93fe4cba1cc79b8fb6e2719cd7d765baee11a986
tree6c983c8af0c590b2939de645c9eb2060debb9b39
parente37e889b8c14e3cef9db470f1a94d971c7a7fc11
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: dff99075478e ("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