drm/bochs: fix framebuffer setup.
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 27 Jun 2019 08:12:06 +0000 (10:12 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 28 Jun 2019 12:30:40 +0000 (14:30 +0200)
commitdd2b5959785c75c23ab2295a4095700e47dabff3
treefccd4eed51e043315603efd01eaa8cd50a30452b
parentdaed277e4d5ace0883d30b9be245d35c46289f49
drm/bochs: fix framebuffer setup.

The driver doesn't consider framebuffer pitch and offset, leading to a
wrong display in case offset != 0 or pitch != width * bpp.  Fix it.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: http://patchwork.freedesktop.org/patch/msgid/20190627081206.23135-1-kraxel@redhat.com
drivers/gpu/drm/bochs/bochs.h
drivers/gpu/drm/bochs/bochs_hw.c
drivers/gpu/drm/bochs/bochs_kms.c