drm/vc4: Fix pitch setup for T-format scanout. 11/148511/2
authorEric Anholt <eric@anholt.net>
Sat, 15 Jul 2017 00:33:08 +0000 (17:33 -0700)
committerInki Dae <inki.dae@samsung.com>
Fri, 8 Sep 2017 05:05:25 +0000 (14:05 +0900)
commit7e71d663ff63c8dc0fad8686dcb393523883fbe8
tree022cf162352fd3ba4fcdcf9a4d1a9c3fa14bb65a
parent0f9fdb1abfb9a3dde13e0946d2c8f18ae9722d33
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.

Signed-off-by: Eric Anholt <eric@anholt.net>
Fixes: 98830d91da08 ("drm/vc4: Add T-format scanout support.")

[inki.dae: apply from rpi3-4.9.y]
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Change-Id: Iad1f4838785a0956542cc54d88fdc96dade5e66c
drivers/gpu/drm/vc4/vc4_plane.c