]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb4b2af53feaa4b10411a5edb1d3081ffe53ebe5d
treefccd4eed51e043315603efd01eaa8cd50a30452b
parent93969fe9b8ac338863a824ae28bbf269ef6fe7fd
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