diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-06-27 11:12:06 +0300 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-06-28 15:30:40 +0300 |
commit | dd2b5959785c75c23ab2295a4095700e47dabff3 (patch) | |
tree | fccd4eed51e043315603efd01eaa8cd50a30452b /drivers/gpu/drm/bochs/bochs.h | |
parent | daed277e4d5ace0883d30b9be245d35c46289f49 (diff) | |
download | linux-dd2b5959785c75c23ab2295a4095700e47dabff3.tar.xz |
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
Diffstat (limited to 'drivers/gpu/drm/bochs/bochs.h')
-rw-r--r-- | drivers/gpu/drm/bochs/bochs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/bochs/bochs.h b/drivers/gpu/drm/bochs/bochs.h index cc35d492142c..2a65434500ee 100644 --- a/drivers/gpu/drm/bochs/bochs.h +++ b/drivers/gpu/drm/bochs/bochs.h @@ -86,7 +86,7 @@ void bochs_hw_setmode(struct bochs_device *bochs, void bochs_hw_setformat(struct bochs_device *bochs, const struct drm_format_info *format); void bochs_hw_setbase(struct bochs_device *bochs, - int x, int y, u64 addr); + int x, int y, int stride, u64 addr); int bochs_hw_load_edid(struct bochs_device *bochs); /* bochs_mm.c */ |