]> git.baikalelectronics.ru Git - kernel.git/commit
drm/pl111: Fix offset calculation for the primary plane.
authorEric Anholt <eric@anholt.net>
Sat, 3 Jun 2017 01:57:33 +0000 (18:57 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 7 Jun 2017 18:50:00 +0000 (11:50 -0700)
commit5bf154249951d79e51e6f4439a60b2f29844c809
tree073b54f19d1b561290d574eebb0b787367afe7d4
parentd5946e334c2f2f96ef27acd221142efded940575
drm/pl111: Fix offset calculation for the primary plane.

If src_x/y were nonzero, we failed to shift them down by 16 to get the
pixel offset.  The recent CMA helper function gets it right.

Signed-off-by: Eric Anholt <eric@anholt.net>
Fixes: 1cd1d6810453 ("drm/pl111: Initial drm/kms driver for pl111")
Reported-by: Mircea Carausu <mircea.carausu@broadcom.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170603015733.13266-1-eric@anholt.net
Reviewed-by: Sean Paul <seanpaul@chromium.org>
drivers/gpu/drm/pl111/pl111_display.c